Documentation ¶
Overview ¶
Package sql implements the Azure ARM Sql service API version 2017-10-01-preview.
The Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type BackupShortTermRetentionPoliciesClient
- func (client BackupShortTermRetentionPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (result BackupShortTermRetentionPoliciesCreateOrUpdateFuture, err error)
- func (client BackupShortTermRetentionPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client BackupShortTermRetentionPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result BackupShortTermRetentionPolicy, err error)
- func (client BackupShortTermRetentionPoliciesClient) CreateOrUpdateSender(req *http.Request) (future BackupShortTermRetentionPoliciesCreateOrUpdateFuture, err error)
- func (client BackupShortTermRetentionPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (result BackupShortTermRetentionPolicy, err error)
- func (client BackupShortTermRetentionPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client BackupShortTermRetentionPoliciesClient) GetResponder(resp *http.Response) (result BackupShortTermRetentionPolicy, err error)
- func (client BackupShortTermRetentionPoliciesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client BackupShortTermRetentionPoliciesClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, ...) (result BackupShortTermRetentionPolicyListResultPage, err error)
- func (client BackupShortTermRetentionPoliciesClient) ListByDatabaseComplete(ctx context.Context, resourceGroupName string, serverName string, ...) (result BackupShortTermRetentionPolicyListResultIterator, err error)
- func (client BackupShortTermRetentionPoliciesClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client BackupShortTermRetentionPoliciesClient) ListByDatabaseResponder(resp *http.Response) (result BackupShortTermRetentionPolicyListResult, err error)
- func (client BackupShortTermRetentionPoliciesClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)
- func (client BackupShortTermRetentionPoliciesClient) Update(ctx context.Context, resourceGroupName string, serverName string, ...) (result BackupShortTermRetentionPoliciesUpdateFuture, err error)
- func (client BackupShortTermRetentionPoliciesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client BackupShortTermRetentionPoliciesClient) UpdateResponder(resp *http.Response) (result BackupShortTermRetentionPolicy, err error)
- func (client BackupShortTermRetentionPoliciesClient) UpdateSender(req *http.Request) (future BackupShortTermRetentionPoliciesUpdateFuture, err error)
- type BackupShortTermRetentionPoliciesCreateOrUpdateFuture
- type BackupShortTermRetentionPoliciesUpdateFuture
- type BackupShortTermRetentionPolicy
- type BackupShortTermRetentionPolicyListResult
- type BackupShortTermRetentionPolicyListResultIterator
- func (iter *BackupShortTermRetentionPolicyListResultIterator) Next() error
- func (iter *BackupShortTermRetentionPolicyListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter BackupShortTermRetentionPolicyListResultIterator) NotDone() bool
- func (iter BackupShortTermRetentionPolicyListResultIterator) Response() BackupShortTermRetentionPolicyListResult
- func (iter BackupShortTermRetentionPolicyListResultIterator) Value() BackupShortTermRetentionPolicy
- type BackupShortTermRetentionPolicyListResultPage
- func (page *BackupShortTermRetentionPolicyListResultPage) Next() error
- func (page *BackupShortTermRetentionPolicyListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page BackupShortTermRetentionPolicyListResultPage) NotDone() bool
- func (page BackupShortTermRetentionPolicyListResultPage) Response() BackupShortTermRetentionPolicyListResult
- func (page BackupShortTermRetentionPolicyListResultPage) Values() []BackupShortTermRetentionPolicy
- type BackupShortTermRetentionPolicyProperties
- type BaseClient
- type CapabilitiesClient
- func (client CapabilitiesClient) ListByLocation(ctx context.Context, locationName string, include CapabilityGroup) (result LocationCapabilities, err error)
- func (client CapabilitiesClient) ListByLocationPreparer(ctx context.Context, locationName string, include CapabilityGroup) (*http.Request, error)
- func (client CapabilitiesClient) ListByLocationResponder(resp *http.Response) (result LocationCapabilities, err error)
- func (client CapabilitiesClient) ListByLocationSender(req *http.Request) (*http.Response, error)
- type CapabilityGroup
- type CapabilityStatus
- type CatalogCollationType
- type CreateMode
- type Database
- type DatabaseLicenseType
- type DatabaseListResult
- type DatabaseListResultIterator
- func (iter *DatabaseListResultIterator) Next() error
- func (iter *DatabaseListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter DatabaseListResultIterator) NotDone() bool
- func (iter DatabaseListResultIterator) Response() DatabaseListResult
- func (iter DatabaseListResultIterator) Value() Database
- type DatabaseListResultPage
- func (page *DatabaseListResultPage) Next() error
- func (page *DatabaseListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page DatabaseListResultPage) NotDone() bool
- func (page DatabaseListResultPage) Response() DatabaseListResult
- func (page DatabaseListResultPage) Values() []Database
- type DatabaseOperation
- type DatabaseOperationListResult
- type DatabaseOperationListResultIterator
- func (iter *DatabaseOperationListResultIterator) Next() error
- func (iter *DatabaseOperationListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter DatabaseOperationListResultIterator) NotDone() bool
- func (iter DatabaseOperationListResultIterator) Response() DatabaseOperationListResult
- func (iter DatabaseOperationListResultIterator) Value() DatabaseOperation
- type DatabaseOperationListResultPage
- func (page *DatabaseOperationListResultPage) Next() error
- func (page *DatabaseOperationListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page DatabaseOperationListResultPage) NotDone() bool
- func (page DatabaseOperationListResultPage) Response() DatabaseOperationListResult
- func (page DatabaseOperationListResultPage) Values() []DatabaseOperation
- type DatabaseOperationProperties
- type DatabaseOperationsClient
- func (client DatabaseOperationsClient) Cancel(ctx context.Context, resourceGroupName string, serverName string, ...) (result autorest.Response, err error)
- func (client DatabaseOperationsClient) CancelPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabaseOperationsClient) CancelResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DatabaseOperationsClient) CancelSender(req *http.Request) (*http.Response, error)
- func (client DatabaseOperationsClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, ...) (result DatabaseOperationListResultPage, err error)
- func (client DatabaseOperationsClient) ListByDatabaseComplete(ctx context.Context, resourceGroupName string, serverName string, ...) (result DatabaseOperationListResultIterator, err error)
- func (client DatabaseOperationsClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabaseOperationsClient) ListByDatabaseResponder(resp *http.Response) (result DatabaseOperationListResult, err error)
- func (client DatabaseOperationsClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)
- type DatabaseProperties
- type DatabaseReadScale
- type DatabaseStatus
- type DatabaseUpdate
- type DatabaseVulnerabilityAssessment
- type DatabaseVulnerabilityAssessmentListResult
- type DatabaseVulnerabilityAssessmentListResultIterator
- func (iter *DatabaseVulnerabilityAssessmentListResultIterator) Next() error
- func (iter *DatabaseVulnerabilityAssessmentListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter DatabaseVulnerabilityAssessmentListResultIterator) NotDone() bool
- func (iter DatabaseVulnerabilityAssessmentListResultIterator) Response() DatabaseVulnerabilityAssessmentListResult
- func (iter DatabaseVulnerabilityAssessmentListResultIterator) Value() DatabaseVulnerabilityAssessment
- type DatabaseVulnerabilityAssessmentListResultPage
- func (page *DatabaseVulnerabilityAssessmentListResultPage) Next() error
- func (page *DatabaseVulnerabilityAssessmentListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page DatabaseVulnerabilityAssessmentListResultPage) NotDone() bool
- func (page DatabaseVulnerabilityAssessmentListResultPage) Response() DatabaseVulnerabilityAssessmentListResult
- func (page DatabaseVulnerabilityAssessmentListResultPage) Values() []DatabaseVulnerabilityAssessment
- type DatabaseVulnerabilityAssessmentProperties
- type DatabaseVulnerabilityAssessmentRuleBaseline
- type DatabaseVulnerabilityAssessmentRuleBaselineItem
- type DatabaseVulnerabilityAssessmentRuleBaselineProperties
- type DatabaseVulnerabilityAssessmentScanExportProperties
- type DatabaseVulnerabilityAssessmentScansClient
- func (client DatabaseVulnerabilityAssessmentScansClient) Export(ctx context.Context, resourceGroupName string, serverName string, ...) (result DatabaseVulnerabilityAssessmentScansExport, err error)
- func (client DatabaseVulnerabilityAssessmentScansClient) ExportPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabaseVulnerabilityAssessmentScansClient) ExportResponder(resp *http.Response) (result DatabaseVulnerabilityAssessmentScansExport, err error)
- func (client DatabaseVulnerabilityAssessmentScansClient) ExportSender(req *http.Request) (*http.Response, error)
- func (client DatabaseVulnerabilityAssessmentScansClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (result VulnerabilityAssessmentScanRecord, err error)
- func (client DatabaseVulnerabilityAssessmentScansClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabaseVulnerabilityAssessmentScansClient) GetResponder(resp *http.Response) (result VulnerabilityAssessmentScanRecord, err error)
- func (client DatabaseVulnerabilityAssessmentScansClient) GetSender(req *http.Request) (*http.Response, error)
- func (client DatabaseVulnerabilityAssessmentScansClient) InitiateScan(ctx context.Context, resourceGroupName string, serverName string, ...) (result DatabaseVulnerabilityAssessmentScansInitiateScanFuture, err error)
- func (client DatabaseVulnerabilityAssessmentScansClient) InitiateScanPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabaseVulnerabilityAssessmentScansClient) InitiateScanResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DatabaseVulnerabilityAssessmentScansClient) InitiateScanSender(req *http.Request) (future DatabaseVulnerabilityAssessmentScansInitiateScanFuture, err error)
- func (client DatabaseVulnerabilityAssessmentScansClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, ...) (result VulnerabilityAssessmentScanRecordListResultPage, err error)
- func (client DatabaseVulnerabilityAssessmentScansClient) ListByDatabaseComplete(ctx context.Context, resourceGroupName string, serverName string, ...) (result VulnerabilityAssessmentScanRecordListResultIterator, err error)
- func (client DatabaseVulnerabilityAssessmentScansClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabaseVulnerabilityAssessmentScansClient) ListByDatabaseResponder(resp *http.Response) (result VulnerabilityAssessmentScanRecordListResult, err error)
- func (client DatabaseVulnerabilityAssessmentScansClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)
- type DatabaseVulnerabilityAssessmentScansExport
- type DatabaseVulnerabilityAssessmentScansInitiateScanFuture
- type DatabasesClient
- func (client DatabasesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (result DatabasesCreateOrUpdateFuture, err error)
- func (client DatabasesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabasesClient) CreateOrUpdateResponder(resp *http.Response) (result Database, err error)
- func (client DatabasesClient) CreateOrUpdateSender(req *http.Request) (future DatabasesCreateOrUpdateFuture, err error)
- func (client DatabasesClient) Delete(ctx context.Context, resourceGroupName string, serverName string, ...) (result DatabasesDeleteFuture, err error)
- func (client DatabasesClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabasesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DatabasesClient) DeleteSender(req *http.Request) (future DatabasesDeleteFuture, err error)
- func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (result Database, err error)
- func (client DatabasesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabasesClient) GetResponder(resp *http.Response) (result Database, err error)
- func (client DatabasesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client DatabasesClient) ListByElasticPool(ctx context.Context, resourceGroupName string, serverName string, ...) (result DatabaseListResultPage, err error)
- func (client DatabasesClient) ListByElasticPoolComplete(ctx context.Context, resourceGroupName string, serverName string, ...) (result DatabaseListResultIterator, err error)
- func (client DatabasesClient) ListByElasticPoolPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabasesClient) ListByElasticPoolResponder(resp *http.Response) (result DatabaseListResult, err error)
- func (client DatabasesClient) ListByElasticPoolSender(req *http.Request) (*http.Response, error)
- func (client DatabasesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result DatabaseListResultPage, err error)
- func (client DatabasesClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result DatabaseListResultIterator, err error)
- func (client DatabasesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client DatabasesClient) ListByServerResponder(resp *http.Response) (result DatabaseListResult, err error)
- func (client DatabasesClient) ListByServerSender(req *http.Request) (*http.Response, error)
- func (client DatabasesClient) Pause(ctx context.Context, resourceGroupName string, serverName string, ...) (result DatabasesPauseFuture, err error)
- func (client DatabasesClient) PausePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabasesClient) PauseResponder(resp *http.Response) (result Database, err error)
- func (client DatabasesClient) PauseSender(req *http.Request) (future DatabasesPauseFuture, err error)
- func (client DatabasesClient) Rename(ctx context.Context, resourceGroupName string, serverName string, ...) (result autorest.Response, err error)
- func (client DatabasesClient) RenamePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabasesClient) RenameResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DatabasesClient) RenameSender(req *http.Request) (*http.Response, error)
- func (client DatabasesClient) Resume(ctx context.Context, resourceGroupName string, serverName string, ...) (result DatabasesResumeFuture, err error)
- func (client DatabasesClient) ResumePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabasesClient) ResumeResponder(resp *http.Response) (result Database, err error)
- func (client DatabasesClient) ResumeSender(req *http.Request) (future DatabasesResumeFuture, err error)
- func (client DatabasesClient) Update(ctx context.Context, resourceGroupName string, serverName string, ...) (result DatabasesUpdateFuture, err error)
- func (client DatabasesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabasesClient) UpdateResponder(resp *http.Response) (result Database, err error)
- func (client DatabasesClient) UpdateSender(req *http.Request) (future DatabasesUpdateFuture, err error)
- func (client DatabasesClient) UpgradeDataWarehouse(ctx context.Context, resourceGroupName string, serverName string, ...) (result DatabasesUpgradeDataWarehouseFuture, err error)
- func (client DatabasesClient) UpgradeDataWarehousePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabasesClient) UpgradeDataWarehouseResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DatabasesClient) UpgradeDataWarehouseSender(req *http.Request) (future DatabasesUpgradeDataWarehouseFuture, err error)
- type DatabasesCreateOrUpdateFuture
- type DatabasesDeleteFuture
- type DatabasesPauseFuture
- type DatabasesResumeFuture
- type DatabasesUpdateFuture
- type DatabasesUpgradeDataWarehouseFuture
- type EditionCapability
- type ElasticPool
- type ElasticPoolEditionCapability
- type ElasticPoolLicenseType
- type ElasticPoolListResult
- type ElasticPoolListResultIterator
- func (iter *ElasticPoolListResultIterator) Next() error
- func (iter *ElasticPoolListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter ElasticPoolListResultIterator) NotDone() bool
- func (iter ElasticPoolListResultIterator) Response() ElasticPoolListResult
- func (iter ElasticPoolListResultIterator) Value() ElasticPool
- type ElasticPoolListResultPage
- func (page *ElasticPoolListResultPage) Next() error
- func (page *ElasticPoolListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page ElasticPoolListResultPage) NotDone() bool
- func (page ElasticPoolListResultPage) Response() ElasticPoolListResult
- func (page ElasticPoolListResultPage) Values() []ElasticPool
- type ElasticPoolOperation
- type ElasticPoolOperationListResult
- type ElasticPoolOperationListResultIterator
- func (iter *ElasticPoolOperationListResultIterator) Next() error
- func (iter *ElasticPoolOperationListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter ElasticPoolOperationListResultIterator) NotDone() bool
- func (iter ElasticPoolOperationListResultIterator) Response() ElasticPoolOperationListResult
- func (iter ElasticPoolOperationListResultIterator) Value() ElasticPoolOperation
- type ElasticPoolOperationListResultPage
- func (page *ElasticPoolOperationListResultPage) Next() error
- func (page *ElasticPoolOperationListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page ElasticPoolOperationListResultPage) NotDone() bool
- func (page ElasticPoolOperationListResultPage) Response() ElasticPoolOperationListResult
- func (page ElasticPoolOperationListResultPage) Values() []ElasticPoolOperation
- type ElasticPoolOperationProperties
- type ElasticPoolOperationsClient
- func (client ElasticPoolOperationsClient) Cancel(ctx context.Context, resourceGroupName string, serverName string, ...) (result autorest.Response, err error)
- func (client ElasticPoolOperationsClient) CancelPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ElasticPoolOperationsClient) CancelResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ElasticPoolOperationsClient) CancelSender(req *http.Request) (*http.Response, error)
- func (client ElasticPoolOperationsClient) ListByElasticPool(ctx context.Context, resourceGroupName string, serverName string, ...) (result ElasticPoolOperationListResultPage, err error)
- func (client ElasticPoolOperationsClient) ListByElasticPoolComplete(ctx context.Context, resourceGroupName string, serverName string, ...) (result ElasticPoolOperationListResultIterator, err error)
- func (client ElasticPoolOperationsClient) ListByElasticPoolPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ElasticPoolOperationsClient) ListByElasticPoolResponder(resp *http.Response) (result ElasticPoolOperationListResult, err error)
- func (client ElasticPoolOperationsClient) ListByElasticPoolSender(req *http.Request) (*http.Response, error)
- type ElasticPoolPerDatabaseMaxPerformanceLevelCapability
- type ElasticPoolPerDatabaseMinPerformanceLevelCapability
- type ElasticPoolPerDatabaseSettings
- type ElasticPoolPerformanceLevelCapability
- type ElasticPoolProperties
- type ElasticPoolState
- type ElasticPoolUpdate
- type ElasticPoolUpdateProperties
- type ElasticPoolsClient
- func (client ElasticPoolsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (result ElasticPoolsCreateOrUpdateFuture, err error)
- func (client ElasticPoolsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ElasticPoolsClient) CreateOrUpdateResponder(resp *http.Response) (result ElasticPool, err error)
- func (client ElasticPoolsClient) CreateOrUpdateSender(req *http.Request) (future ElasticPoolsCreateOrUpdateFuture, err error)
- func (client ElasticPoolsClient) Delete(ctx context.Context, resourceGroupName string, serverName string, ...) (result ElasticPoolsDeleteFuture, err error)
- func (client ElasticPoolsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ElasticPoolsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ElasticPoolsClient) DeleteSender(req *http.Request) (future ElasticPoolsDeleteFuture, err error)
- func (client ElasticPoolsClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (result ElasticPool, err error)
- func (client ElasticPoolsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ElasticPoolsClient) GetResponder(resp *http.Response) (result ElasticPool, err error)
- func (client ElasticPoolsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ElasticPoolsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string, skip *int32) (result ElasticPoolListResultPage, err error)
- func (client ElasticPoolsClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string, skip *int32) (result ElasticPoolListResultIterator, err error)
- func (client ElasticPoolsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string, skip *int32) (*http.Request, error)
- func (client ElasticPoolsClient) ListByServerResponder(resp *http.Response) (result ElasticPoolListResult, err error)
- func (client ElasticPoolsClient) ListByServerSender(req *http.Request) (*http.Response, error)
- func (client ElasticPoolsClient) Update(ctx context.Context, resourceGroupName string, serverName string, ...) (result ElasticPoolsUpdateFuture, err error)
- func (client ElasticPoolsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ElasticPoolsClient) UpdateResponder(resp *http.Response) (result ElasticPool, err error)
- func (client ElasticPoolsClient) UpdateSender(req *http.Request) (future ElasticPoolsUpdateFuture, err error)
- type ElasticPoolsCreateOrUpdateFuture
- type ElasticPoolsDeleteFuture
- type ElasticPoolsUpdateFuture
- type InstanceFailoverGroup
- type InstanceFailoverGroupListResult
- type InstanceFailoverGroupListResultIterator
- func (iter *InstanceFailoverGroupListResultIterator) Next() error
- func (iter *InstanceFailoverGroupListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter InstanceFailoverGroupListResultIterator) NotDone() bool
- func (iter InstanceFailoverGroupListResultIterator) Response() InstanceFailoverGroupListResult
- func (iter InstanceFailoverGroupListResultIterator) Value() InstanceFailoverGroup
- type InstanceFailoverGroupListResultPage
- func (page *InstanceFailoverGroupListResultPage) Next() error
- func (page *InstanceFailoverGroupListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page InstanceFailoverGroupListResultPage) NotDone() bool
- func (page InstanceFailoverGroupListResultPage) Response() InstanceFailoverGroupListResult
- func (page InstanceFailoverGroupListResultPage) Values() []InstanceFailoverGroup
- type InstanceFailoverGroupProperties
- type InstanceFailoverGroupReadOnlyEndpoint
- type InstanceFailoverGroupReadWriteEndpoint
- type InstanceFailoverGroupReplicationRole
- type InstanceFailoverGroupsClient
- func (client InstanceFailoverGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, locationName string, ...) (result InstanceFailoverGroupsCreateOrUpdateFuture, err error)
- func (client InstanceFailoverGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, locationName string, ...) (*http.Request, error)
- func (client InstanceFailoverGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result InstanceFailoverGroup, err error)
- func (client InstanceFailoverGroupsClient) CreateOrUpdateSender(req *http.Request) (future InstanceFailoverGroupsCreateOrUpdateFuture, err error)
- func (client InstanceFailoverGroupsClient) Delete(ctx context.Context, resourceGroupName string, locationName string, ...) (result InstanceFailoverGroupsDeleteFuture, err error)
- func (client InstanceFailoverGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, locationName string, ...) (*http.Request, error)
- func (client InstanceFailoverGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client InstanceFailoverGroupsClient) DeleteSender(req *http.Request) (future InstanceFailoverGroupsDeleteFuture, err error)
- func (client InstanceFailoverGroupsClient) Failover(ctx context.Context, resourceGroupName string, locationName string, ...) (result InstanceFailoverGroupsFailoverFuture, err error)
- func (client InstanceFailoverGroupsClient) FailoverPreparer(ctx context.Context, resourceGroupName string, locationName string, ...) (*http.Request, error)
- func (client InstanceFailoverGroupsClient) FailoverResponder(resp *http.Response) (result InstanceFailoverGroup, err error)
- func (client InstanceFailoverGroupsClient) FailoverSender(req *http.Request) (future InstanceFailoverGroupsFailoverFuture, err error)
- func (client InstanceFailoverGroupsClient) ForceFailoverAllowDataLoss(ctx context.Context, resourceGroupName string, locationName string, ...) (result InstanceFailoverGroupsForceFailoverAllowDataLossFuture, err error)
- func (client InstanceFailoverGroupsClient) ForceFailoverAllowDataLossPreparer(ctx context.Context, resourceGroupName string, locationName string, ...) (*http.Request, error)
- func (client InstanceFailoverGroupsClient) ForceFailoverAllowDataLossResponder(resp *http.Response) (result InstanceFailoverGroup, err error)
- func (client InstanceFailoverGroupsClient) ForceFailoverAllowDataLossSender(req *http.Request) (future InstanceFailoverGroupsForceFailoverAllowDataLossFuture, err error)
- func (client InstanceFailoverGroupsClient) Get(ctx context.Context, resourceGroupName string, locationName string, ...) (result InstanceFailoverGroup, err error)
- func (client InstanceFailoverGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, locationName string, ...) (*http.Request, error)
- func (client InstanceFailoverGroupsClient) GetResponder(resp *http.Response) (result InstanceFailoverGroup, err error)
- func (client InstanceFailoverGroupsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client InstanceFailoverGroupsClient) ListByLocation(ctx context.Context, resourceGroupName string, locationName string) (result InstanceFailoverGroupListResultPage, err error)
- func (client InstanceFailoverGroupsClient) ListByLocationComplete(ctx context.Context, resourceGroupName string, locationName string) (result InstanceFailoverGroupListResultIterator, err error)
- func (client InstanceFailoverGroupsClient) ListByLocationPreparer(ctx context.Context, resourceGroupName string, locationName string) (*http.Request, error)
- func (client InstanceFailoverGroupsClient) ListByLocationResponder(resp *http.Response) (result InstanceFailoverGroupListResult, err error)
- func (client InstanceFailoverGroupsClient) ListByLocationSender(req *http.Request) (*http.Response, error)
- type InstanceFailoverGroupsCreateOrUpdateFuture
- type InstanceFailoverGroupsDeleteFuture
- type InstanceFailoverGroupsFailoverFuture
- type InstanceFailoverGroupsForceFailoverAllowDataLossFuture
- type LicenseTypeCapability
- type LocationCapabilities
- type LogSizeCapability
- type LogSizeUnit
- type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient
- func NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient(subscriptionID string) ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient
- func NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient
- func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (result DatabaseVulnerabilityAssessmentRuleBaseline, err error)
- func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (*http.Request, error)
- func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdateResponder(resp *http.Response) (result DatabaseVulnerabilityAssessmentRuleBaseline, err error)
- func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) Delete(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (result autorest.Response, err error)
- func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (*http.Request, error)
- func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (result DatabaseVulnerabilityAssessmentRuleBaseline, err error)
- func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (*http.Request, error)
- func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) GetResponder(resp *http.Response) (result DatabaseVulnerabilityAssessmentRuleBaseline, err error)
- func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) GetSender(req *http.Request) (*http.Response, error)
- type ManagedDatabaseVulnerabilityAssessmentScansClient
- func (client ManagedDatabaseVulnerabilityAssessmentScansClient) Export(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (result DatabaseVulnerabilityAssessmentScansExport, err error)
- func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ExportPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (*http.Request, error)
- func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ExportResponder(resp *http.Response) (result DatabaseVulnerabilityAssessmentScansExport, err error)
- func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ExportSender(req *http.Request) (*http.Response, error)
- func (client ManagedDatabaseVulnerabilityAssessmentScansClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (result VulnerabilityAssessmentScanRecord, err error)
- func (client ManagedDatabaseVulnerabilityAssessmentScansClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (*http.Request, error)
- func (client ManagedDatabaseVulnerabilityAssessmentScansClient) GetResponder(resp *http.Response) (result VulnerabilityAssessmentScanRecord, err error)
- func (client ManagedDatabaseVulnerabilityAssessmentScansClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScan(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (result ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture, ...)
- func (client ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScanPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (*http.Request, error)
- func (client ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScanResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScanSender(req *http.Request) (future ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture, ...)
- func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabase(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (result VulnerabilityAssessmentScanRecordListResultPage, err error)
- func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabaseComplete(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (result VulnerabilityAssessmentScanRecordListResultIterator, err error)
- func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (*http.Request, error)
- func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabaseResponder(resp *http.Response) (result VulnerabilityAssessmentScanRecordListResult, err error)
- func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)
- type ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture
- type ManagedDatabaseVulnerabilityAssessmentsClient
- func (client ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (result DatabaseVulnerabilityAssessment, err error)
- func (client ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (*http.Request, error)
- func (client ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdateResponder(resp *http.Response) (result DatabaseVulnerabilityAssessment, err error)
- func (client ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client ManagedDatabaseVulnerabilityAssessmentsClient) Delete(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (result autorest.Response, err error)
- func (client ManagedDatabaseVulnerabilityAssessmentsClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (*http.Request, error)
- func (client ManagedDatabaseVulnerabilityAssessmentsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ManagedDatabaseVulnerabilityAssessmentsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client ManagedDatabaseVulnerabilityAssessmentsClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (result DatabaseVulnerabilityAssessment, err error)
- func (client ManagedDatabaseVulnerabilityAssessmentsClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (*http.Request, error)
- func (client ManagedDatabaseVulnerabilityAssessmentsClient) GetResponder(resp *http.Response) (result DatabaseVulnerabilityAssessment, err error)
- func (client ManagedDatabaseVulnerabilityAssessmentsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabase(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (result DatabaseVulnerabilityAssessmentListResultPage, err error)
- func (client ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabaseComplete(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (result DatabaseVulnerabilityAssessmentListResultIterator, err error)
- func (client ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (*http.Request, error)
- func (client ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabaseResponder(resp *http.Response) (result DatabaseVulnerabilityAssessmentListResult, err error)
- func (client ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)
- type ManagedInstanceEditionCapability
- type ManagedInstanceEncryptionProtector
- type ManagedInstanceEncryptionProtectorListResult
- type ManagedInstanceEncryptionProtectorListResultIterator
- func (iter *ManagedInstanceEncryptionProtectorListResultIterator) Next() error
- func (iter *ManagedInstanceEncryptionProtectorListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter ManagedInstanceEncryptionProtectorListResultIterator) NotDone() bool
- func (iter ManagedInstanceEncryptionProtectorListResultIterator) Response() ManagedInstanceEncryptionProtectorListResult
- func (iter ManagedInstanceEncryptionProtectorListResultIterator) Value() ManagedInstanceEncryptionProtector
- type ManagedInstanceEncryptionProtectorListResultPage
- func (page *ManagedInstanceEncryptionProtectorListResultPage) Next() error
- func (page *ManagedInstanceEncryptionProtectorListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page ManagedInstanceEncryptionProtectorListResultPage) NotDone() bool
- func (page ManagedInstanceEncryptionProtectorListResultPage) Response() ManagedInstanceEncryptionProtectorListResult
- func (page ManagedInstanceEncryptionProtectorListResultPage) Values() []ManagedInstanceEncryptionProtector
- type ManagedInstanceEncryptionProtectorProperties
- type ManagedInstanceEncryptionProtectorsClient
- func (client ManagedInstanceEncryptionProtectorsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (result ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture, err error)
- func (client ManagedInstanceEncryptionProtectorsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (*http.Request, error)
- func (client ManagedInstanceEncryptionProtectorsClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedInstanceEncryptionProtector, err error)
- func (client ManagedInstanceEncryptionProtectorsClient) CreateOrUpdateSender(req *http.Request) (future ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture, err error)
- func (client ManagedInstanceEncryptionProtectorsClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceEncryptionProtector, err error)
- func (client ManagedInstanceEncryptionProtectorsClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error)
- func (client ManagedInstanceEncryptionProtectorsClient) GetResponder(resp *http.Response) (result ManagedInstanceEncryptionProtector, err error)
- func (client ManagedInstanceEncryptionProtectorsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ManagedInstanceEncryptionProtectorsClient) ListByInstance(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceEncryptionProtectorListResultPage, err error)
- func (client ManagedInstanceEncryptionProtectorsClient) ListByInstanceComplete(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceEncryptionProtectorListResultIterator, err error)
- func (client ManagedInstanceEncryptionProtectorsClient) ListByInstancePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error)
- func (client ManagedInstanceEncryptionProtectorsClient) ListByInstanceResponder(resp *http.Response) (result ManagedInstanceEncryptionProtectorListResult, err error)
- func (client ManagedInstanceEncryptionProtectorsClient) ListByInstanceSender(req *http.Request) (*http.Response, error)
- func (client ManagedInstanceEncryptionProtectorsClient) Revalidate(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceEncryptionProtectorsRevalidateFuture, err error)
- func (client ManagedInstanceEncryptionProtectorsClient) RevalidatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error)
- func (client ManagedInstanceEncryptionProtectorsClient) RevalidateResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ManagedInstanceEncryptionProtectorsClient) RevalidateSender(req *http.Request) (future ManagedInstanceEncryptionProtectorsRevalidateFuture, err error)
- type ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture
- type ManagedInstanceEncryptionProtectorsRevalidateFuture
- type ManagedInstanceFamilyCapability
- type ManagedInstanceKey
- type ManagedInstanceKeyListResult
- type ManagedInstanceKeyListResultIterator
- func (iter *ManagedInstanceKeyListResultIterator) Next() error
- func (iter *ManagedInstanceKeyListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter ManagedInstanceKeyListResultIterator) NotDone() bool
- func (iter ManagedInstanceKeyListResultIterator) Response() ManagedInstanceKeyListResult
- func (iter ManagedInstanceKeyListResultIterator) Value() ManagedInstanceKey
- type ManagedInstanceKeyListResultPage
- func (page *ManagedInstanceKeyListResultPage) Next() error
- func (page *ManagedInstanceKeyListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page ManagedInstanceKeyListResultPage) NotDone() bool
- func (page ManagedInstanceKeyListResultPage) Response() ManagedInstanceKeyListResult
- func (page ManagedInstanceKeyListResultPage) Values() []ManagedInstanceKey
- type ManagedInstanceKeyProperties
- type ManagedInstanceKeysClient
- func (client ManagedInstanceKeysClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (result ManagedInstanceKeysCreateOrUpdateFuture, err error)
- func (client ManagedInstanceKeysClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (*http.Request, error)
- func (client ManagedInstanceKeysClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedInstanceKey, err error)
- func (client ManagedInstanceKeysClient) CreateOrUpdateSender(req *http.Request) (future ManagedInstanceKeysCreateOrUpdateFuture, err error)
- func (client ManagedInstanceKeysClient) Delete(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (result ManagedInstanceKeysDeleteFuture, err error)
- func (client ManagedInstanceKeysClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (*http.Request, error)
- func (client ManagedInstanceKeysClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ManagedInstanceKeysClient) DeleteSender(req *http.Request) (future ManagedInstanceKeysDeleteFuture, err error)
- func (client ManagedInstanceKeysClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (result ManagedInstanceKey, err error)
- func (client ManagedInstanceKeysClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (*http.Request, error)
- func (client ManagedInstanceKeysClient) GetResponder(resp *http.Response) (result ManagedInstanceKey, err error)
- func (client ManagedInstanceKeysClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ManagedInstanceKeysClient) ListByInstance(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (result ManagedInstanceKeyListResultPage, err error)
- func (client ManagedInstanceKeysClient) ListByInstanceComplete(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (result ManagedInstanceKeyListResultIterator, err error)
- func (client ManagedInstanceKeysClient) ListByInstancePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (*http.Request, error)
- func (client ManagedInstanceKeysClient) ListByInstanceResponder(resp *http.Response) (result ManagedInstanceKeyListResult, err error)
- func (client ManagedInstanceKeysClient) ListByInstanceSender(req *http.Request) (*http.Response, error)
- type ManagedInstanceKeysCreateOrUpdateFuture
- type ManagedInstanceKeysDeleteFuture
- type ManagedInstancePairInfo
- type ManagedInstanceTdeCertificatesClient
- func (client ManagedInstanceTdeCertificatesClient) Create(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (result ManagedInstanceTdeCertificatesCreateFuture, err error)
- func (client ManagedInstanceTdeCertificatesClient) CreatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (*http.Request, error)
- func (client ManagedInstanceTdeCertificatesClient) CreateResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ManagedInstanceTdeCertificatesClient) CreateSender(req *http.Request) (future ManagedInstanceTdeCertificatesCreateFuture, err error)
- type ManagedInstanceTdeCertificatesCreateFuture
- type ManagedInstanceVcoresCapability
- type ManagedInstanceVersionCapability
- type ManagementOperationState
- type MaxSizeCapability
- type MaxSizeRangeCapability
- type MaxSizeUnit
- type PartnerRegionInfo
- type PerformanceLevelCapability
- type PerformanceLevelUnit
- type ProxyResource
- type ReadOnlyEndpointFailoverPolicy
- type ReadWriteEndpointFailoverPolicy
- type RecoverableManagedDatabase
- type RecoverableManagedDatabaseListResult
- type RecoverableManagedDatabaseListResultIterator
- func (iter *RecoverableManagedDatabaseListResultIterator) Next() error
- func (iter *RecoverableManagedDatabaseListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter RecoverableManagedDatabaseListResultIterator) NotDone() bool
- func (iter RecoverableManagedDatabaseListResultIterator) Response() RecoverableManagedDatabaseListResult
- func (iter RecoverableManagedDatabaseListResultIterator) Value() RecoverableManagedDatabase
- type RecoverableManagedDatabaseListResultPage
- func (page *RecoverableManagedDatabaseListResultPage) Next() error
- func (page *RecoverableManagedDatabaseListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page RecoverableManagedDatabaseListResultPage) NotDone() bool
- func (page RecoverableManagedDatabaseListResultPage) Response() RecoverableManagedDatabaseListResult
- func (page RecoverableManagedDatabaseListResultPage) Values() []RecoverableManagedDatabase
- type RecoverableManagedDatabaseProperties
- type RecoverableManagedDatabasesClient
- func (client RecoverableManagedDatabasesClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (result RecoverableManagedDatabase, err error)
- func (client RecoverableManagedDatabasesClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, ...) (*http.Request, error)
- func (client RecoverableManagedDatabasesClient) GetResponder(resp *http.Response) (result RecoverableManagedDatabase, err error)
- func (client RecoverableManagedDatabasesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client RecoverableManagedDatabasesClient) ListByInstance(ctx context.Context, resourceGroupName string, managedInstanceName string) (result RecoverableManagedDatabaseListResultPage, err error)
- func (client RecoverableManagedDatabasesClient) ListByInstanceComplete(ctx context.Context, resourceGroupName string, managedInstanceName string) (result RecoverableManagedDatabaseListResultIterator, err error)
- func (client RecoverableManagedDatabasesClient) ListByInstancePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error)
- func (client RecoverableManagedDatabasesClient) ListByInstanceResponder(resp *http.Response) (result RecoverableManagedDatabaseListResult, err error)
- func (client RecoverableManagedDatabasesClient) ListByInstanceSender(req *http.Request) (*http.Response, error)
- type Resource
- type ResourceMoveDefinition
- type SampleName
- type ServerKeyType
- type ServerVersionCapability
- type ServiceObjectiveCapability
- type Sku
- type TdeCertificate
- type TdeCertificateProperties
- type TdeCertificatesClient
- func (client TdeCertificatesClient) Create(ctx context.Context, resourceGroupName string, serverName string, ...) (result TdeCertificatesCreateFuture, err error)
- func (client TdeCertificatesClient) CreatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client TdeCertificatesClient) CreateResponder(resp *http.Response) (result autorest.Response, err error)
- func (client TdeCertificatesClient) CreateSender(req *http.Request) (future TdeCertificatesCreateFuture, err error)
- type TdeCertificatesCreateFuture
- type TrackedResource
- type VulnerabilityAssessmentPolicyBaselineName
- type VulnerabilityAssessmentRecurringScansProperties
- type VulnerabilityAssessmentScanError
- type VulnerabilityAssessmentScanRecord
- type VulnerabilityAssessmentScanRecordListResult
- type VulnerabilityAssessmentScanRecordListResultIterator
- func (iter *VulnerabilityAssessmentScanRecordListResultIterator) Next() error
- func (iter *VulnerabilityAssessmentScanRecordListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter VulnerabilityAssessmentScanRecordListResultIterator) NotDone() bool
- func (iter VulnerabilityAssessmentScanRecordListResultIterator) Response() VulnerabilityAssessmentScanRecordListResult
- func (iter VulnerabilityAssessmentScanRecordListResultIterator) Value() VulnerabilityAssessmentScanRecord
- type VulnerabilityAssessmentScanRecordListResultPage
- func (page *VulnerabilityAssessmentScanRecordListResultPage) Next() error
- func (page *VulnerabilityAssessmentScanRecordListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page VulnerabilityAssessmentScanRecordListResultPage) NotDone() bool
- func (page VulnerabilityAssessmentScanRecordListResultPage) Response() VulnerabilityAssessmentScanRecordListResult
- func (page VulnerabilityAssessmentScanRecordListResultPage) Values() []VulnerabilityAssessmentScanRecord
- type VulnerabilityAssessmentScanRecordProperties
- type VulnerabilityAssessmentScanState
- type VulnerabilityAssessmentScanTriggerType
Constants ¶
const (
// DefaultBaseURI is the default URI used for the service Sql
DefaultBaseURI = "https://management.azure.com"
)
Variables ¶
This section is empty.
Functions ¶
func UserAgent ¶
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version ¶
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
Types ¶
type BackupShortTermRetentionPoliciesClient ¶
type BackupShortTermRetentionPoliciesClient struct {
BaseClient
}
BackupShortTermRetentionPoliciesClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.
func NewBackupShortTermRetentionPoliciesClient ¶
func NewBackupShortTermRetentionPoliciesClient(subscriptionID string) BackupShortTermRetentionPoliciesClient
NewBackupShortTermRetentionPoliciesClient creates an instance of the BackupShortTermRetentionPoliciesClient client.
func NewBackupShortTermRetentionPoliciesClientWithBaseURI ¶
func NewBackupShortTermRetentionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) BackupShortTermRetentionPoliciesClient
NewBackupShortTermRetentionPoliciesClientWithBaseURI creates an instance of the BackupShortTermRetentionPoliciesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (BackupShortTermRetentionPoliciesClient) CreateOrUpdate ¶
func (client BackupShortTermRetentionPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters BackupShortTermRetentionPolicy) (result BackupShortTermRetentionPoliciesCreateOrUpdateFuture, err error)
CreateOrUpdate updates a database's short term retention policy. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database. parameters - the short term retention policy info.
func (BackupShortTermRetentionPoliciesClient) CreateOrUpdatePreparer ¶
func (client BackupShortTermRetentionPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters BackupShortTermRetentionPolicy) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (BackupShortTermRetentionPoliciesClient) CreateOrUpdateResponder ¶
func (client BackupShortTermRetentionPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result BackupShortTermRetentionPolicy, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (BackupShortTermRetentionPoliciesClient) CreateOrUpdateSender ¶
func (client BackupShortTermRetentionPoliciesClient) CreateOrUpdateSender(req *http.Request) (future BackupShortTermRetentionPoliciesCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (BackupShortTermRetentionPoliciesClient) Get ¶
func (client BackupShortTermRetentionPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result BackupShortTermRetentionPolicy, err error)
Get gets a database's short term retention policy. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database.
func (BackupShortTermRetentionPoliciesClient) GetPreparer ¶
func (client BackupShortTermRetentionPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (BackupShortTermRetentionPoliciesClient) GetResponder ¶
func (client BackupShortTermRetentionPoliciesClient) GetResponder(resp *http.Response) (result BackupShortTermRetentionPolicy, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (BackupShortTermRetentionPoliciesClient) GetSender ¶
func (client BackupShortTermRetentionPoliciesClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (BackupShortTermRetentionPoliciesClient) ListByDatabase ¶
func (client BackupShortTermRetentionPoliciesClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result BackupShortTermRetentionPolicyListResultPage, err error)
ListByDatabase gets a database's short term retention policy. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database.
func (BackupShortTermRetentionPoliciesClient) ListByDatabaseComplete ¶
func (client BackupShortTermRetentionPoliciesClient) ListByDatabaseComplete(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result BackupShortTermRetentionPolicyListResultIterator, err error)
ListByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.
func (BackupShortTermRetentionPoliciesClient) ListByDatabasePreparer ¶
func (client BackupShortTermRetentionPoliciesClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
ListByDatabasePreparer prepares the ListByDatabase request.
func (BackupShortTermRetentionPoliciesClient) ListByDatabaseResponder ¶
func (client BackupShortTermRetentionPoliciesClient) ListByDatabaseResponder(resp *http.Response) (result BackupShortTermRetentionPolicyListResult, err error)
ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.
func (BackupShortTermRetentionPoliciesClient) ListByDatabaseSender ¶
func (client BackupShortTermRetentionPoliciesClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)
ListByDatabaseSender sends the ListByDatabase request. The method will close the http.Response Body if it receives an error.
func (BackupShortTermRetentionPoliciesClient) Update ¶
func (client BackupShortTermRetentionPoliciesClient) Update(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters BackupShortTermRetentionPolicy) (result BackupShortTermRetentionPoliciesUpdateFuture, err error)
Update updates a database's short term retention policy. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database. parameters - the short term retention policy info.
func (BackupShortTermRetentionPoliciesClient) UpdatePreparer ¶
func (client BackupShortTermRetentionPoliciesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters BackupShortTermRetentionPolicy) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (BackupShortTermRetentionPoliciesClient) UpdateResponder ¶
func (client BackupShortTermRetentionPoliciesClient) UpdateResponder(resp *http.Response) (result BackupShortTermRetentionPolicy, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (BackupShortTermRetentionPoliciesClient) UpdateSender ¶
func (client BackupShortTermRetentionPoliciesClient) UpdateSender(req *http.Request) (future BackupShortTermRetentionPoliciesUpdateFuture, err error)
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type BackupShortTermRetentionPoliciesCreateOrUpdateFuture ¶
BackupShortTermRetentionPoliciesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*BackupShortTermRetentionPoliciesCreateOrUpdateFuture) Result ¶
func (future *BackupShortTermRetentionPoliciesCreateOrUpdateFuture) Result(client BackupShortTermRetentionPoliciesClient) (bstrp BackupShortTermRetentionPolicy, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type BackupShortTermRetentionPoliciesUpdateFuture ¶
BackupShortTermRetentionPoliciesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*BackupShortTermRetentionPoliciesUpdateFuture) Result ¶
func (future *BackupShortTermRetentionPoliciesUpdateFuture) Result(client BackupShortTermRetentionPoliciesClient) (bstrp BackupShortTermRetentionPolicy, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type BackupShortTermRetentionPolicy ¶
type BackupShortTermRetentionPolicy struct { autorest.Response `json:"-"` // BackupShortTermRetentionPolicyProperties - Resource properties. *BackupShortTermRetentionPolicyProperties `json:"properties,omitempty"` // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` }
BackupShortTermRetentionPolicy a short term retention policy.
func (BackupShortTermRetentionPolicy) MarshalJSON ¶
func (bstrp BackupShortTermRetentionPolicy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for BackupShortTermRetentionPolicy.
func (*BackupShortTermRetentionPolicy) UnmarshalJSON ¶
func (bstrp *BackupShortTermRetentionPolicy) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for BackupShortTermRetentionPolicy struct.
type BackupShortTermRetentionPolicyListResult ¶
type BackupShortTermRetentionPolicyListResult struct { autorest.Response `json:"-"` // Value - READ-ONLY; Array of results. Value *[]BackupShortTermRetentionPolicy `json:"value,omitempty"` // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` }
BackupShortTermRetentionPolicyListResult a list of short term retention policies.
func (BackupShortTermRetentionPolicyListResult) IsEmpty ¶
func (bstrplr BackupShortTermRetentionPolicyListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type BackupShortTermRetentionPolicyListResultIterator ¶
type BackupShortTermRetentionPolicyListResultIterator struct {
// contains filtered or unexported fields
}
BackupShortTermRetentionPolicyListResultIterator provides access to a complete listing of BackupShortTermRetentionPolicy values.
func NewBackupShortTermRetentionPolicyListResultIterator ¶
func NewBackupShortTermRetentionPolicyListResultIterator(page BackupShortTermRetentionPolicyListResultPage) BackupShortTermRetentionPolicyListResultIterator
Creates a new instance of the BackupShortTermRetentionPolicyListResultIterator type.
func (*BackupShortTermRetentionPolicyListResultIterator) Next ¶
func (iter *BackupShortTermRetentionPolicyListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*BackupShortTermRetentionPolicyListResultIterator) NextWithContext ¶
func (iter *BackupShortTermRetentionPolicyListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (BackupShortTermRetentionPolicyListResultIterator) NotDone ¶
func (iter BackupShortTermRetentionPolicyListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (BackupShortTermRetentionPolicyListResultIterator) Response ¶
func (iter BackupShortTermRetentionPolicyListResultIterator) Response() BackupShortTermRetentionPolicyListResult
Response returns the raw server response from the last page request.
func (BackupShortTermRetentionPolicyListResultIterator) Value ¶
func (iter BackupShortTermRetentionPolicyListResultIterator) Value() BackupShortTermRetentionPolicy
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type BackupShortTermRetentionPolicyListResultPage ¶
type BackupShortTermRetentionPolicyListResultPage struct {
// contains filtered or unexported fields
}
BackupShortTermRetentionPolicyListResultPage contains a page of BackupShortTermRetentionPolicy values.
func NewBackupShortTermRetentionPolicyListResultPage ¶
func NewBackupShortTermRetentionPolicyListResultPage(getNextPage func(context.Context, BackupShortTermRetentionPolicyListResult) (BackupShortTermRetentionPolicyListResult, error)) BackupShortTermRetentionPolicyListResultPage
Creates a new instance of the BackupShortTermRetentionPolicyListResultPage type.
func (*BackupShortTermRetentionPolicyListResultPage) Next ¶
func (page *BackupShortTermRetentionPolicyListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*BackupShortTermRetentionPolicyListResultPage) NextWithContext ¶
func (page *BackupShortTermRetentionPolicyListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (BackupShortTermRetentionPolicyListResultPage) NotDone ¶
func (page BackupShortTermRetentionPolicyListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (BackupShortTermRetentionPolicyListResultPage) Response ¶
func (page BackupShortTermRetentionPolicyListResultPage) Response() BackupShortTermRetentionPolicyListResult
Response returns the raw server response from the last page request.
func (BackupShortTermRetentionPolicyListResultPage) Values ¶
func (page BackupShortTermRetentionPolicyListResultPage) Values() []BackupShortTermRetentionPolicy
Values returns the slice of values for the current page or nil if there are no values.
type BackupShortTermRetentionPolicyProperties ¶
type BackupShortTermRetentionPolicyProperties struct { // RetentionDays - The backup retention period in days. This is how many days Point-in-Time Restore will be supported. RetentionDays *int32 `json:"retentionDays,omitempty"` }
BackupShortTermRetentionPolicyProperties properties of a short term retention policy
type BaseClient ¶
BaseClient is the base client for Sql.
func New ¶
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
func NewWithBaseURI ¶
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
type CapabilitiesClient ¶
type CapabilitiesClient struct {
BaseClient
}
CapabilitiesClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.
func NewCapabilitiesClient ¶
func NewCapabilitiesClient(subscriptionID string) CapabilitiesClient
NewCapabilitiesClient creates an instance of the CapabilitiesClient client.
func NewCapabilitiesClientWithBaseURI ¶
func NewCapabilitiesClientWithBaseURI(baseURI string, subscriptionID string) CapabilitiesClient
NewCapabilitiesClientWithBaseURI creates an instance of the CapabilitiesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (CapabilitiesClient) ListByLocation ¶
func (client CapabilitiesClient) ListByLocation(ctx context.Context, locationName string, include CapabilityGroup) (result LocationCapabilities, err error)
ListByLocation gets the subscription capabilities available for the specified location. Parameters: locationName - the location name whose capabilities are retrieved. include - if specified, restricts the response to only include the selected item.
func (CapabilitiesClient) ListByLocationPreparer ¶
func (client CapabilitiesClient) ListByLocationPreparer(ctx context.Context, locationName string, include CapabilityGroup) (*http.Request, error)
ListByLocationPreparer prepares the ListByLocation request.
func (CapabilitiesClient) ListByLocationResponder ¶
func (client CapabilitiesClient) ListByLocationResponder(resp *http.Response) (result LocationCapabilities, err error)
ListByLocationResponder handles the response to the ListByLocation request. The method always closes the http.Response Body.
func (CapabilitiesClient) ListByLocationSender ¶
ListByLocationSender sends the ListByLocation request. The method will close the http.Response Body if it receives an error.
type CapabilityGroup ¶
type CapabilityGroup string
CapabilityGroup enumerates the values for capability group.
const ( // SupportedEditions ... SupportedEditions CapabilityGroup = "supportedEditions" // SupportedElasticPoolEditions ... SupportedElasticPoolEditions CapabilityGroup = "supportedElasticPoolEditions" // SupportedManagedInstanceVersions ... SupportedManagedInstanceVersions CapabilityGroup = "supportedManagedInstanceVersions" )
func PossibleCapabilityGroupValues ¶
func PossibleCapabilityGroupValues() []CapabilityGroup
PossibleCapabilityGroupValues returns an array of possible values for the CapabilityGroup const type.
type CapabilityStatus ¶
type CapabilityStatus string
CapabilityStatus enumerates the values for capability status.
const ( // Available ... Available CapabilityStatus = "Available" // Default ... Default CapabilityStatus = "Default" // Disabled ... Disabled CapabilityStatus = "Disabled" // Visible ... Visible CapabilityStatus = "Visible" )
func PossibleCapabilityStatusValues ¶
func PossibleCapabilityStatusValues() []CapabilityStatus
PossibleCapabilityStatusValues returns an array of possible values for the CapabilityStatus const type.
type CatalogCollationType ¶
type CatalogCollationType string
CatalogCollationType enumerates the values for catalog collation type.
const ( // DATABASEDEFAULT ... DATABASEDEFAULT CatalogCollationType = "DATABASE_DEFAULT" // SQLLatin1GeneralCP1CIAS ... SQLLatin1GeneralCP1CIAS CatalogCollationType = "SQL_Latin1_General_CP1_CI_AS" )
func PossibleCatalogCollationTypeValues ¶
func PossibleCatalogCollationTypeValues() []CatalogCollationType
PossibleCatalogCollationTypeValues returns an array of possible values for the CatalogCollationType const type.
type CreateMode ¶
type CreateMode string
CreateMode enumerates the values for create mode.
const ( // CreateModeCopy ... CreateModeCopy CreateMode = "Copy" // CreateModeDefault ... CreateModeDefault CreateMode = "Default" // CreateModeOnlineSecondary ... CreateModeOnlineSecondary CreateMode = "OnlineSecondary" // CreateModePointInTimeRestore ... CreateModePointInTimeRestore CreateMode = "PointInTimeRestore" // CreateModeRecovery ... CreateModeRecovery CreateMode = "Recovery" // CreateModeRestore ... CreateModeRestore CreateMode = "Restore" // CreateModeRestoreExternalBackup ... CreateModeRestoreExternalBackup CreateMode = "RestoreExternalBackup" // CreateModeRestoreExternalBackupSecondary ... CreateModeRestoreExternalBackupSecondary CreateMode = "RestoreExternalBackupSecondary" // CreateModeRestoreLongTermRetentionBackup ... CreateModeRestoreLongTermRetentionBackup CreateMode = "RestoreLongTermRetentionBackup" // CreateModeSecondary ... CreateModeSecondary CreateMode = "Secondary" )
func PossibleCreateModeValues ¶
func PossibleCreateModeValues() []CreateMode
PossibleCreateModeValues returns an array of possible values for the CreateMode const type.
type Database ¶
type Database struct { autorest.Response `json:"-"` // Sku - The database SKU. // // The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands: // // “`azurecli // az sql db list-editions -l <location> -o table // ““ // // “`powershell // Get-AzSqlServerServiceObjective -Location <location> // ““ Sku *Sku `json:"sku,omitempty"` // Kind - READ-ONLY; Kind of database. This is metadata used for the Azure portal experience. Kind *string `json:"kind,omitempty"` // ManagedBy - READ-ONLY; Resource that manages the database. ManagedBy *string `json:"managedBy,omitempty"` // DatabaseProperties - Resource properties. *DatabaseProperties `json:"properties,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` }
Database a database resource.
func (Database) MarshalJSON ¶
MarshalJSON is the custom marshaler for Database.
func (*Database) UnmarshalJSON ¶
UnmarshalJSON is the custom unmarshaler for Database struct.
type DatabaseLicenseType ¶
type DatabaseLicenseType string
DatabaseLicenseType enumerates the values for database license type.
const ( // BasePrice ... BasePrice DatabaseLicenseType = "BasePrice" // LicenseIncluded ... LicenseIncluded DatabaseLicenseType = "LicenseIncluded" )
func PossibleDatabaseLicenseTypeValues ¶
func PossibleDatabaseLicenseTypeValues() []DatabaseLicenseType
PossibleDatabaseLicenseTypeValues returns an array of possible values for the DatabaseLicenseType const type.
type DatabaseListResult ¶
type DatabaseListResult struct { autorest.Response `json:"-"` // Value - READ-ONLY; Array of results. Value *[]Database `json:"value,omitempty"` // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` }
DatabaseListResult a list of databases.
func (DatabaseListResult) IsEmpty ¶
func (dlr DatabaseListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type DatabaseListResultIterator ¶
type DatabaseListResultIterator struct {
// contains filtered or unexported fields
}
DatabaseListResultIterator provides access to a complete listing of Database values.
func NewDatabaseListResultIterator ¶
func NewDatabaseListResultIterator(page DatabaseListResultPage) DatabaseListResultIterator
Creates a new instance of the DatabaseListResultIterator type.
func (*DatabaseListResultIterator) Next ¶
func (iter *DatabaseListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*DatabaseListResultIterator) NextWithContext ¶
func (iter *DatabaseListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (DatabaseListResultIterator) NotDone ¶
func (iter DatabaseListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (DatabaseListResultIterator) Response ¶
func (iter DatabaseListResultIterator) Response() DatabaseListResult
Response returns the raw server response from the last page request.
func (DatabaseListResultIterator) Value ¶
func (iter DatabaseListResultIterator) Value() Database
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type DatabaseListResultPage ¶
type DatabaseListResultPage struct {
// contains filtered or unexported fields
}
DatabaseListResultPage contains a page of Database values.
func NewDatabaseListResultPage ¶
func NewDatabaseListResultPage(getNextPage func(context.Context, DatabaseListResult) (DatabaseListResult, error)) DatabaseListResultPage
Creates a new instance of the DatabaseListResultPage type.
func (*DatabaseListResultPage) Next ¶
func (page *DatabaseListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*DatabaseListResultPage) NextWithContext ¶
func (page *DatabaseListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (DatabaseListResultPage) NotDone ¶
func (page DatabaseListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (DatabaseListResultPage) Response ¶
func (page DatabaseListResultPage) Response() DatabaseListResult
Response returns the raw server response from the last page request.
func (DatabaseListResultPage) Values ¶
func (page DatabaseListResultPage) Values() []Database
Values returns the slice of values for the current page or nil if there are no values.
type DatabaseOperation ¶
type DatabaseOperation struct { // DatabaseOperationProperties - Resource properties. *DatabaseOperationProperties `json:"properties,omitempty"` // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` }
DatabaseOperation a database operation.
func (DatabaseOperation) MarshalJSON ¶
func (do DatabaseOperation) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DatabaseOperation.
func (*DatabaseOperation) UnmarshalJSON ¶
func (do *DatabaseOperation) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DatabaseOperation struct.
type DatabaseOperationListResult ¶
type DatabaseOperationListResult struct { autorest.Response `json:"-"` // Value - READ-ONLY; Array of results. Value *[]DatabaseOperation `json:"value,omitempty"` // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` }
DatabaseOperationListResult the response to a list database operations request
func (DatabaseOperationListResult) IsEmpty ¶
func (dolr DatabaseOperationListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type DatabaseOperationListResultIterator ¶
type DatabaseOperationListResultIterator struct {
// contains filtered or unexported fields
}
DatabaseOperationListResultIterator provides access to a complete listing of DatabaseOperation values.
func NewDatabaseOperationListResultIterator ¶
func NewDatabaseOperationListResultIterator(page DatabaseOperationListResultPage) DatabaseOperationListResultIterator
Creates a new instance of the DatabaseOperationListResultIterator type.
func (*DatabaseOperationListResultIterator) Next ¶
func (iter *DatabaseOperationListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*DatabaseOperationListResultIterator) NextWithContext ¶
func (iter *DatabaseOperationListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (DatabaseOperationListResultIterator) NotDone ¶
func (iter DatabaseOperationListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (DatabaseOperationListResultIterator) Response ¶
func (iter DatabaseOperationListResultIterator) Response() DatabaseOperationListResult
Response returns the raw server response from the last page request.
func (DatabaseOperationListResultIterator) Value ¶
func (iter DatabaseOperationListResultIterator) Value() DatabaseOperation
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type DatabaseOperationListResultPage ¶
type DatabaseOperationListResultPage struct {
// contains filtered or unexported fields
}
DatabaseOperationListResultPage contains a page of DatabaseOperation values.
func NewDatabaseOperationListResultPage ¶
func NewDatabaseOperationListResultPage(getNextPage func(context.Context, DatabaseOperationListResult) (DatabaseOperationListResult, error)) DatabaseOperationListResultPage
Creates a new instance of the DatabaseOperationListResultPage type.
func (*DatabaseOperationListResultPage) Next ¶
func (page *DatabaseOperationListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*DatabaseOperationListResultPage) NextWithContext ¶
func (page *DatabaseOperationListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (DatabaseOperationListResultPage) NotDone ¶
func (page DatabaseOperationListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (DatabaseOperationListResultPage) Response ¶
func (page DatabaseOperationListResultPage) Response() DatabaseOperationListResult
Response returns the raw server response from the last page request.
func (DatabaseOperationListResultPage) Values ¶
func (page DatabaseOperationListResultPage) Values() []DatabaseOperation
Values returns the slice of values for the current page or nil if there are no values.
type DatabaseOperationProperties ¶
type DatabaseOperationProperties struct { // DatabaseName - READ-ONLY; The name of the database the operation is being performed on. DatabaseName *string `json:"databaseName,omitempty"` // Operation - READ-ONLY; The name of operation. Operation *string `json:"operation,omitempty"` // OperationFriendlyName - READ-ONLY; The friendly name of operation. OperationFriendlyName *string `json:"operationFriendlyName,omitempty"` // PercentComplete - READ-ONLY; The percentage of the operation completed. PercentComplete *int32 `json:"percentComplete,omitempty"` // ServerName - READ-ONLY; The name of the server. ServerName *string `json:"serverName,omitempty"` // StartTime - READ-ONLY; The operation start time. StartTime *date.Time `json:"startTime,omitempty"` // State - READ-ONLY; The operation state. Possible values include: 'Pending', 'InProgress', 'Succeeded', 'Failed', 'CancelInProgress', 'Cancelled' State ManagementOperationState `json:"state,omitempty"` // ErrorCode - READ-ONLY; The operation error code. ErrorCode *int32 `json:"errorCode,omitempty"` // ErrorDescription - READ-ONLY; The operation error description. ErrorDescription *string `json:"errorDescription,omitempty"` // ErrorSeverity - READ-ONLY; The operation error severity. ErrorSeverity *int32 `json:"errorSeverity,omitempty"` // IsUserError - READ-ONLY; Whether or not the error is a user error. IsUserError *bool `json:"isUserError,omitempty"` // EstimatedCompletionTime - READ-ONLY; The estimated completion time of the operation. EstimatedCompletionTime *date.Time `json:"estimatedCompletionTime,omitempty"` // Description - READ-ONLY; The operation description. Description *string `json:"description,omitempty"` // IsCancellable - READ-ONLY; Whether the operation can be cancelled. IsCancellable *bool `json:"isCancellable,omitempty"` }
DatabaseOperationProperties the properties of a database operation.
type DatabaseOperationsClient ¶
type DatabaseOperationsClient struct {
BaseClient
}
DatabaseOperationsClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.
func NewDatabaseOperationsClient ¶
func NewDatabaseOperationsClient(subscriptionID string) DatabaseOperationsClient
NewDatabaseOperationsClient creates an instance of the DatabaseOperationsClient client.
func NewDatabaseOperationsClientWithBaseURI ¶
func NewDatabaseOperationsClientWithBaseURI(baseURI string, subscriptionID string) DatabaseOperationsClient
NewDatabaseOperationsClientWithBaseURI creates an instance of the DatabaseOperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (DatabaseOperationsClient) Cancel ¶
func (client DatabaseOperationsClient) Cancel(ctx context.Context, resourceGroupName string, serverName string, databaseName string, operationID uuid.UUID) (result autorest.Response, err error)
Cancel cancels the asynchronous operation on the database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database. operationID - the operation identifier.
func (DatabaseOperationsClient) CancelPreparer ¶
func (client DatabaseOperationsClient) CancelPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, operationID uuid.UUID) (*http.Request, error)
CancelPreparer prepares the Cancel request.
func (DatabaseOperationsClient) CancelResponder ¶
func (client DatabaseOperationsClient) CancelResponder(resp *http.Response) (result autorest.Response, err error)
CancelResponder handles the response to the Cancel request. The method always closes the http.Response Body.
func (DatabaseOperationsClient) CancelSender ¶
CancelSender sends the Cancel request. The method will close the http.Response Body if it receives an error.
func (DatabaseOperationsClient) ListByDatabase ¶
func (client DatabaseOperationsClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseOperationListResultPage, err error)
ListByDatabase gets a list of operations performed on the database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database.
func (DatabaseOperationsClient) ListByDatabaseComplete ¶
func (client DatabaseOperationsClient) ListByDatabaseComplete(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseOperationListResultIterator, err error)
ListByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.
func (DatabaseOperationsClient) ListByDatabasePreparer ¶
func (client DatabaseOperationsClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
ListByDatabasePreparer prepares the ListByDatabase request.
func (DatabaseOperationsClient) ListByDatabaseResponder ¶
func (client DatabaseOperationsClient) ListByDatabaseResponder(resp *http.Response) (result DatabaseOperationListResult, err error)
ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.
func (DatabaseOperationsClient) ListByDatabaseSender ¶
func (client DatabaseOperationsClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)
ListByDatabaseSender sends the ListByDatabase request. The method will close the http.Response Body if it receives an error.
type DatabaseProperties ¶
type DatabaseProperties struct { // CreateMode - Specifies the mode of database creation. // // Default: regular database creation. // // Copy: creates a database as a copy of an existing database. sourceDatabaseId must be specified as the resource ID of the source database. // // Secondary: creates a database as a secondary replica of an existing database. sourceDatabaseId must be specified as the resource ID of the existing primary database. // // PointInTimeRestore: Creates a database by restoring a point in time backup of an existing database. sourceDatabaseId must be specified as the resource ID of the existing database, and restorePointInTime must be specified. // // Recovery: Creates a database by restoring a geo-replicated backup. sourceDatabaseId must be specified as the recoverable database resource ID to restore. // // Restore: Creates a database by restoring a backup of a deleted database. sourceDatabaseId must be specified. If sourceDatabaseId is the database's original resource ID, then sourceDatabaseDeletionDate must be specified. Otherwise sourceDatabaseId must be the restorable dropped database resource ID and sourceDatabaseDeletionDate is ignored. restorePointInTime may also be specified to restore from an earlier point in time. // // RestoreLongTermRetentionBackup: Creates a database by restoring from a long term retention vault. recoveryServicesRecoveryPointResourceId must be specified as the recovery point resource ID. // // Copy, Secondary, and RestoreLongTermRetentionBackup are not supported for DataWarehouse edition. Possible values include: 'CreateModeDefault', 'CreateModeCopy', 'CreateModeSecondary', 'CreateModePointInTimeRestore', 'CreateModeRestore', 'CreateModeRecovery', 'CreateModeRestoreExternalBackup', 'CreateModeRestoreExternalBackupSecondary', 'CreateModeRestoreLongTermRetentionBackup', 'CreateModeOnlineSecondary' CreateMode CreateMode `json:"createMode,omitempty"` // Collation - The collation of the database. Collation *string `json:"collation,omitempty"` // MaxSizeBytes - The max size of the database expressed in bytes. MaxSizeBytes *int64 `json:"maxSizeBytes,omitempty"` // SampleName - The name of the sample schema to apply when creating this database. Possible values include: 'AdventureWorksLT', 'WideWorldImportersStd', 'WideWorldImportersFull' SampleName SampleName `json:"sampleName,omitempty"` // ElasticPoolID - The resource identifier of the elastic pool containing this database. ElasticPoolID *string `json:"elasticPoolId,omitempty"` // SourceDatabaseID - The resource identifier of the source database associated with create operation of this database. SourceDatabaseID *string `json:"sourceDatabaseId,omitempty"` // Status - READ-ONLY; The status of the database. Possible values include: 'DatabaseStatusOnline', 'DatabaseStatusRestoring', 'DatabaseStatusRecoveryPending', 'DatabaseStatusRecovering', 'DatabaseStatusSuspect', 'DatabaseStatusOffline', 'DatabaseStatusStandby', 'DatabaseStatusShutdown', 'DatabaseStatusEmergencyMode', 'DatabaseStatusAutoClosed', 'DatabaseStatusCopying', 'DatabaseStatusCreating', 'DatabaseStatusInaccessible', 'DatabaseStatusOfflineSecondary', 'DatabaseStatusPausing', 'DatabaseStatusPaused', 'DatabaseStatusResuming', 'DatabaseStatusScaling', 'DatabaseStatusOfflineChangingDwPerformanceTiers', 'DatabaseStatusOnlineChangingDwPerformanceTiers', 'DatabaseStatusDisabled' Status DatabaseStatus `json:"status,omitempty"` // DatabaseID - READ-ONLY; The ID of the database. DatabaseID *uuid.UUID `json:"databaseId,omitempty"` // CreationDate - READ-ONLY; The creation date of the database (ISO8601 format). CreationDate *date.Time `json:"creationDate,omitempty"` // CurrentServiceObjectiveName - READ-ONLY; The current service level objective name of the database. CurrentServiceObjectiveName *string `json:"currentServiceObjectiveName,omitempty"` // RequestedServiceObjectiveName - READ-ONLY; The requested service level objective name of the database. RequestedServiceObjectiveName *string `json:"requestedServiceObjectiveName,omitempty"` // DefaultSecondaryLocation - READ-ONLY; The default secondary region for this database. DefaultSecondaryLocation *string `json:"defaultSecondaryLocation,omitempty"` // FailoverGroupID - READ-ONLY; Failover Group resource identifier that this database belongs to. FailoverGroupID *string `json:"failoverGroupId,omitempty"` // RestorePointInTime - Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. RestorePointInTime *date.Time `json:"restorePointInTime,omitempty"` // SourceDatabaseDeletionDate - Specifies the time that the database was deleted. SourceDatabaseDeletionDate *date.Time `json:"sourceDatabaseDeletionDate,omitempty"` // RecoveryServicesRecoveryPointID - The resource identifier of the recovery point associated with create operation of this database. RecoveryServicesRecoveryPointID *string `json:"recoveryServicesRecoveryPointId,omitempty"` // LongTermRetentionBackupResourceID - The resource identifier of the long term retention backup associated with create operation of this database. LongTermRetentionBackupResourceID *string `json:"longTermRetentionBackupResourceId,omitempty"` // RecoverableDatabaseID - The resource identifier of the recoverable database associated with create operation of this database. RecoverableDatabaseID *string `json:"recoverableDatabaseId,omitempty"` // RestorableDroppedDatabaseID - The resource identifier of the restorable dropped database associated with create operation of this database. RestorableDroppedDatabaseID *string `json:"restorableDroppedDatabaseId,omitempty"` // CatalogCollation - Collation of the metadata catalog. Possible values include: 'DATABASEDEFAULT', 'SQLLatin1GeneralCP1CIAS' CatalogCollation CatalogCollationType `json:"catalogCollation,omitempty"` // ZoneRedundant - Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones. ZoneRedundant *bool `json:"zoneRedundant,omitempty"` // LicenseType - The license type to apply for this database. `LicenseIncluded` if you need a license, or `BasePrice` if you have a license and are eligible for the Azure Hybrid Benefit. Possible values include: 'LicenseIncluded', 'BasePrice' LicenseType DatabaseLicenseType `json:"licenseType,omitempty"` // MaxLogSizeBytes - READ-ONLY; The max log size for this database. MaxLogSizeBytes *int64 `json:"maxLogSizeBytes,omitempty"` // EarliestRestoreDate - READ-ONLY; This records the earliest start date and time that restore is available for this database (ISO8601 format). EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"` // ReadScale - If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica. This property is only settable for Premium and Business Critical databases. Possible values include: 'DatabaseReadScaleEnabled', 'DatabaseReadScaleDisabled' ReadScale DatabaseReadScale `json:"readScale,omitempty"` // ReadReplicaCount - The number of readonly secondary replicas associated with the database to which readonly application intent connections may be routed. This property is only settable for Hyperscale edition databases. ReadReplicaCount *int32 `json:"readReplicaCount,omitempty"` // CurrentSku - READ-ONLY; The name and tier of the SKU. CurrentSku *Sku `json:"currentSku,omitempty"` // AutoPauseDelay - Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled AutoPauseDelay *int32 `json:"autoPauseDelay,omitempty"` // MinCapacity - Minimal capacity that database will always have allocated, if not paused MinCapacity *float64 `json:"minCapacity,omitempty"` // PausedDate - READ-ONLY; The date when database was paused by user configuration or action (ISO8601 format). Null if the database is ready. PausedDate *date.Time `json:"pausedDate,omitempty"` // ResumedDate - READ-ONLY; The date when database was resumed by user action or database login (ISO8601 format). Null if the database is paused. ResumedDate *date.Time `json:"resumedDate,omitempty"` }
DatabaseProperties the database's properties.
type DatabaseReadScale ¶
type DatabaseReadScale string
DatabaseReadScale enumerates the values for database read scale.
const ( // DatabaseReadScaleDisabled ... DatabaseReadScaleDisabled DatabaseReadScale = "Disabled" // DatabaseReadScaleEnabled ... DatabaseReadScaleEnabled DatabaseReadScale = "Enabled" )
func PossibleDatabaseReadScaleValues ¶
func PossibleDatabaseReadScaleValues() []DatabaseReadScale
PossibleDatabaseReadScaleValues returns an array of possible values for the DatabaseReadScale const type.
type DatabaseStatus ¶
type DatabaseStatus string
DatabaseStatus enumerates the values for database status.
const ( // DatabaseStatusAutoClosed ... DatabaseStatusAutoClosed DatabaseStatus = "AutoClosed" // DatabaseStatusCopying ... DatabaseStatusCopying DatabaseStatus = "Copying" // DatabaseStatusCreating ... DatabaseStatusCreating DatabaseStatus = "Creating" // DatabaseStatusDisabled ... DatabaseStatusDisabled DatabaseStatus = "Disabled" // DatabaseStatusEmergencyMode ... DatabaseStatusEmergencyMode DatabaseStatus = "EmergencyMode" // DatabaseStatusInaccessible ... DatabaseStatusInaccessible DatabaseStatus = "Inaccessible" // DatabaseStatusOffline ... DatabaseStatusOffline DatabaseStatus = "Offline" // DatabaseStatusOfflineChangingDwPerformanceTiers ... DatabaseStatusOfflineChangingDwPerformanceTiers DatabaseStatus = "OfflineChangingDwPerformanceTiers" // DatabaseStatusOfflineSecondary ... DatabaseStatusOfflineSecondary DatabaseStatus = "OfflineSecondary" // DatabaseStatusOnline ... DatabaseStatusOnline DatabaseStatus = "Online" // DatabaseStatusOnlineChangingDwPerformanceTiers ... DatabaseStatusOnlineChangingDwPerformanceTiers DatabaseStatus = "OnlineChangingDwPerformanceTiers" // DatabaseStatusPaused ... DatabaseStatusPaused DatabaseStatus = "Paused" // DatabaseStatusPausing ... DatabaseStatusPausing DatabaseStatus = "Pausing" // DatabaseStatusRecovering ... DatabaseStatusRecovering DatabaseStatus = "Recovering" // DatabaseStatusRecoveryPending ... DatabaseStatusRecoveryPending DatabaseStatus = "RecoveryPending" // DatabaseStatusRestoring ... DatabaseStatusRestoring DatabaseStatus = "Restoring" // DatabaseStatusResuming ... DatabaseStatusResuming DatabaseStatus = "Resuming" // DatabaseStatusScaling ... DatabaseStatusScaling DatabaseStatus = "Scaling" // DatabaseStatusShutdown ... DatabaseStatusShutdown DatabaseStatus = "Shutdown" // DatabaseStatusStandby ... DatabaseStatusStandby DatabaseStatus = "Standby" // DatabaseStatusSuspect ... DatabaseStatusSuspect DatabaseStatus = "Suspect" )
func PossibleDatabaseStatusValues ¶
func PossibleDatabaseStatusValues() []DatabaseStatus
PossibleDatabaseStatusValues returns an array of possible values for the DatabaseStatus const type.
type DatabaseUpdate ¶
type DatabaseUpdate struct { // Sku - The name and tier of the SKU. Sku *Sku `json:"sku,omitempty"` // DatabaseProperties - Resource properties. *DatabaseProperties `json:"properties,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` }
DatabaseUpdate a database resource.
func (DatabaseUpdate) MarshalJSON ¶
func (du DatabaseUpdate) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DatabaseUpdate.
func (*DatabaseUpdate) UnmarshalJSON ¶
func (du *DatabaseUpdate) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DatabaseUpdate struct.
type DatabaseVulnerabilityAssessment ¶
type DatabaseVulnerabilityAssessment struct { autorest.Response `json:"-"` // DatabaseVulnerabilityAssessmentProperties - Resource properties. *DatabaseVulnerabilityAssessmentProperties `json:"properties,omitempty"` // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` }
DatabaseVulnerabilityAssessment a database vulnerability assessment.
func (DatabaseVulnerabilityAssessment) MarshalJSON ¶
func (dva DatabaseVulnerabilityAssessment) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DatabaseVulnerabilityAssessment.
func (*DatabaseVulnerabilityAssessment) UnmarshalJSON ¶
func (dva *DatabaseVulnerabilityAssessment) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DatabaseVulnerabilityAssessment struct.
type DatabaseVulnerabilityAssessmentListResult ¶
type DatabaseVulnerabilityAssessmentListResult struct { autorest.Response `json:"-"` // Value - READ-ONLY; Array of results. Value *[]DatabaseVulnerabilityAssessment `json:"value,omitempty"` // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` }
DatabaseVulnerabilityAssessmentListResult a list of the database's vulnerability assessments.
func (DatabaseVulnerabilityAssessmentListResult) IsEmpty ¶
func (dvalr DatabaseVulnerabilityAssessmentListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type DatabaseVulnerabilityAssessmentListResultIterator ¶
type DatabaseVulnerabilityAssessmentListResultIterator struct {
// contains filtered or unexported fields
}
DatabaseVulnerabilityAssessmentListResultIterator provides access to a complete listing of DatabaseVulnerabilityAssessment values.
func NewDatabaseVulnerabilityAssessmentListResultIterator ¶
func NewDatabaseVulnerabilityAssessmentListResultIterator(page DatabaseVulnerabilityAssessmentListResultPage) DatabaseVulnerabilityAssessmentListResultIterator
Creates a new instance of the DatabaseVulnerabilityAssessmentListResultIterator type.
func (*DatabaseVulnerabilityAssessmentListResultIterator) Next ¶
func (iter *DatabaseVulnerabilityAssessmentListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*DatabaseVulnerabilityAssessmentListResultIterator) NextWithContext ¶
func (iter *DatabaseVulnerabilityAssessmentListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (DatabaseVulnerabilityAssessmentListResultIterator) NotDone ¶
func (iter DatabaseVulnerabilityAssessmentListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (DatabaseVulnerabilityAssessmentListResultIterator) Response ¶
func (iter DatabaseVulnerabilityAssessmentListResultIterator) Response() DatabaseVulnerabilityAssessmentListResult
Response returns the raw server response from the last page request.
func (DatabaseVulnerabilityAssessmentListResultIterator) Value ¶
func (iter DatabaseVulnerabilityAssessmentListResultIterator) Value() DatabaseVulnerabilityAssessment
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type DatabaseVulnerabilityAssessmentListResultPage ¶
type DatabaseVulnerabilityAssessmentListResultPage struct {
// contains filtered or unexported fields
}
DatabaseVulnerabilityAssessmentListResultPage contains a page of DatabaseVulnerabilityAssessment values.
func NewDatabaseVulnerabilityAssessmentListResultPage ¶
func NewDatabaseVulnerabilityAssessmentListResultPage(getNextPage func(context.Context, DatabaseVulnerabilityAssessmentListResult) (DatabaseVulnerabilityAssessmentListResult, error)) DatabaseVulnerabilityAssessmentListResultPage
Creates a new instance of the DatabaseVulnerabilityAssessmentListResultPage type.
func (*DatabaseVulnerabilityAssessmentListResultPage) Next ¶
func (page *DatabaseVulnerabilityAssessmentListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*DatabaseVulnerabilityAssessmentListResultPage) NextWithContext ¶
func (page *DatabaseVulnerabilityAssessmentListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (DatabaseVulnerabilityAssessmentListResultPage) NotDone ¶
func (page DatabaseVulnerabilityAssessmentListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (DatabaseVulnerabilityAssessmentListResultPage) Response ¶
func (page DatabaseVulnerabilityAssessmentListResultPage) Response() DatabaseVulnerabilityAssessmentListResult
Response returns the raw server response from the last page request.
func (DatabaseVulnerabilityAssessmentListResultPage) Values ¶
func (page DatabaseVulnerabilityAssessmentListResultPage) Values() []DatabaseVulnerabilityAssessment
Values returns the slice of values for the current page or nil if there are no values.
type DatabaseVulnerabilityAssessmentProperties ¶
type DatabaseVulnerabilityAssessmentProperties struct { // StorageContainerPath - A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment policy doesn't set StorageContainerPath *string `json:"storageContainerPath,omitempty"` // StorageContainerSasKey - A shared access signature (SAS Key) that has read and write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. StorageContainerSasKey *string `json:"storageContainerSasKey,omitempty"` // StorageAccountAccessKey - Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. StorageAccountAccessKey *string `json:"storageAccountAccessKey,omitempty"` // RecurringScans - The recurring scans settings RecurringScans *VulnerabilityAssessmentRecurringScansProperties `json:"recurringScans,omitempty"` }
DatabaseVulnerabilityAssessmentProperties properties of a database Vulnerability Assessment.
type DatabaseVulnerabilityAssessmentRuleBaseline ¶
type DatabaseVulnerabilityAssessmentRuleBaseline struct { autorest.Response `json:"-"` // DatabaseVulnerabilityAssessmentRuleBaselineProperties - Resource properties. *DatabaseVulnerabilityAssessmentRuleBaselineProperties `json:"properties,omitempty"` // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` }
DatabaseVulnerabilityAssessmentRuleBaseline a database vulnerability assessment rule baseline.
func (DatabaseVulnerabilityAssessmentRuleBaseline) MarshalJSON ¶
func (dvarb DatabaseVulnerabilityAssessmentRuleBaseline) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DatabaseVulnerabilityAssessmentRuleBaseline.
func (*DatabaseVulnerabilityAssessmentRuleBaseline) UnmarshalJSON ¶
func (dvarb *DatabaseVulnerabilityAssessmentRuleBaseline) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DatabaseVulnerabilityAssessmentRuleBaseline struct.
type DatabaseVulnerabilityAssessmentRuleBaselineItem ¶
type DatabaseVulnerabilityAssessmentRuleBaselineItem struct { // Result - The rule baseline result Result *[]string `json:"result,omitempty"` }
DatabaseVulnerabilityAssessmentRuleBaselineItem properties for an Azure SQL Database Vulnerability Assessment rule baseline's result.
type DatabaseVulnerabilityAssessmentRuleBaselineProperties ¶
type DatabaseVulnerabilityAssessmentRuleBaselineProperties struct { // BaselineResults - The rule baseline result BaselineResults *[]DatabaseVulnerabilityAssessmentRuleBaselineItem `json:"baselineResults,omitempty"` }
DatabaseVulnerabilityAssessmentRuleBaselineProperties properties of a database Vulnerability Assessment rule baseline.
type DatabaseVulnerabilityAssessmentScanExportProperties ¶
type DatabaseVulnerabilityAssessmentScanExportProperties struct { // ExportedReportLocation - READ-ONLY; Location of the exported report (e.g. https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx). ExportedReportLocation *string `json:"exportedReportLocation,omitempty"` }
DatabaseVulnerabilityAssessmentScanExportProperties properties of the export operation's result.
type DatabaseVulnerabilityAssessmentScansClient ¶
type DatabaseVulnerabilityAssessmentScansClient struct {
BaseClient
}
DatabaseVulnerabilityAssessmentScansClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.
func NewDatabaseVulnerabilityAssessmentScansClient ¶
func NewDatabaseVulnerabilityAssessmentScansClient(subscriptionID string) DatabaseVulnerabilityAssessmentScansClient
NewDatabaseVulnerabilityAssessmentScansClient creates an instance of the DatabaseVulnerabilityAssessmentScansClient client.
func NewDatabaseVulnerabilityAssessmentScansClientWithBaseURI ¶
func NewDatabaseVulnerabilityAssessmentScansClientWithBaseURI(baseURI string, subscriptionID string) DatabaseVulnerabilityAssessmentScansClient
NewDatabaseVulnerabilityAssessmentScansClientWithBaseURI creates an instance of the DatabaseVulnerabilityAssessmentScansClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (DatabaseVulnerabilityAssessmentScansClient) Export ¶
func (client DatabaseVulnerabilityAssessmentScansClient) Export(ctx context.Context, resourceGroupName string, serverName string, databaseName string, scanID string) (result DatabaseVulnerabilityAssessmentScansExport, err error)
Export convert an existing scan result to a human readable format. If already exists nothing happens Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the scanned database. scanID - the vulnerability assessment scan Id.
func (DatabaseVulnerabilityAssessmentScansClient) ExportPreparer ¶
func (client DatabaseVulnerabilityAssessmentScansClient) ExportPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, scanID string) (*http.Request, error)
ExportPreparer prepares the Export request.
func (DatabaseVulnerabilityAssessmentScansClient) ExportResponder ¶
func (client DatabaseVulnerabilityAssessmentScansClient) ExportResponder(resp *http.Response) (result DatabaseVulnerabilityAssessmentScansExport, err error)
ExportResponder handles the response to the Export request. The method always closes the http.Response Body.
func (DatabaseVulnerabilityAssessmentScansClient) ExportSender ¶
func (client DatabaseVulnerabilityAssessmentScansClient) ExportSender(req *http.Request) (*http.Response, error)
ExportSender sends the Export request. The method will close the http.Response Body if it receives an error.
func (DatabaseVulnerabilityAssessmentScansClient) Get ¶
func (client DatabaseVulnerabilityAssessmentScansClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string, scanID string) (result VulnerabilityAssessmentScanRecord, err error)
Get gets a vulnerability assessment scan record of a database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database. scanID - the vulnerability assessment scan Id of the scan to retrieve.
func (DatabaseVulnerabilityAssessmentScansClient) GetPreparer ¶
func (client DatabaseVulnerabilityAssessmentScansClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, scanID string) (*http.Request, error)
GetPreparer prepares the Get request.
func (DatabaseVulnerabilityAssessmentScansClient) GetResponder ¶
func (client DatabaseVulnerabilityAssessmentScansClient) GetResponder(resp *http.Response) (result VulnerabilityAssessmentScanRecord, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (DatabaseVulnerabilityAssessmentScansClient) GetSender ¶
func (client DatabaseVulnerabilityAssessmentScansClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (DatabaseVulnerabilityAssessmentScansClient) InitiateScan ¶
func (client DatabaseVulnerabilityAssessmentScansClient) InitiateScan(ctx context.Context, resourceGroupName string, serverName string, databaseName string, scanID string) (result DatabaseVulnerabilityAssessmentScansInitiateScanFuture, err error)
InitiateScan executes a Vulnerability Assessment database scan. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database. scanID - the vulnerability assessment scan Id of the scan to retrieve.
func (DatabaseVulnerabilityAssessmentScansClient) InitiateScanPreparer ¶
func (client DatabaseVulnerabilityAssessmentScansClient) InitiateScanPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, scanID string) (*http.Request, error)
InitiateScanPreparer prepares the InitiateScan request.
func (DatabaseVulnerabilityAssessmentScansClient) InitiateScanResponder ¶
func (client DatabaseVulnerabilityAssessmentScansClient) InitiateScanResponder(resp *http.Response) (result autorest.Response, err error)
InitiateScanResponder handles the response to the InitiateScan request. The method always closes the http.Response Body.
func (DatabaseVulnerabilityAssessmentScansClient) InitiateScanSender ¶
func (client DatabaseVulnerabilityAssessmentScansClient) InitiateScanSender(req *http.Request) (future DatabaseVulnerabilityAssessmentScansInitiateScanFuture, err error)
InitiateScanSender sends the InitiateScan request. The method will close the http.Response Body if it receives an error.
func (DatabaseVulnerabilityAssessmentScansClient) ListByDatabase ¶
func (client DatabaseVulnerabilityAssessmentScansClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result VulnerabilityAssessmentScanRecordListResultPage, err error)
ListByDatabase lists the vulnerability assessment scans of a database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database.
func (DatabaseVulnerabilityAssessmentScansClient) ListByDatabaseComplete ¶
func (client DatabaseVulnerabilityAssessmentScansClient) ListByDatabaseComplete(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result VulnerabilityAssessmentScanRecordListResultIterator, err error)
ListByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.
func (DatabaseVulnerabilityAssessmentScansClient) ListByDatabasePreparer ¶
func (client DatabaseVulnerabilityAssessmentScansClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
ListByDatabasePreparer prepares the ListByDatabase request.
func (DatabaseVulnerabilityAssessmentScansClient) ListByDatabaseResponder ¶
func (client DatabaseVulnerabilityAssessmentScansClient) ListByDatabaseResponder(resp *http.Response) (result VulnerabilityAssessmentScanRecordListResult, err error)
ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.
func (DatabaseVulnerabilityAssessmentScansClient) ListByDatabaseSender ¶
func (client DatabaseVulnerabilityAssessmentScansClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)
ListByDatabaseSender sends the ListByDatabase request. The method will close the http.Response Body if it receives an error.
type DatabaseVulnerabilityAssessmentScansExport ¶
type DatabaseVulnerabilityAssessmentScansExport struct { autorest.Response `json:"-"` // DatabaseVulnerabilityAssessmentScanExportProperties - Resource properties. *DatabaseVulnerabilityAssessmentScanExportProperties `json:"properties,omitempty"` // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` }
DatabaseVulnerabilityAssessmentScansExport a database Vulnerability Assessment scan export resource.
func (DatabaseVulnerabilityAssessmentScansExport) MarshalJSON ¶
func (dvase DatabaseVulnerabilityAssessmentScansExport) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DatabaseVulnerabilityAssessmentScansExport.
func (*DatabaseVulnerabilityAssessmentScansExport) UnmarshalJSON ¶
func (dvase *DatabaseVulnerabilityAssessmentScansExport) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DatabaseVulnerabilityAssessmentScansExport struct.
type DatabaseVulnerabilityAssessmentScansInitiateScanFuture ¶
DatabaseVulnerabilityAssessmentScansInitiateScanFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabaseVulnerabilityAssessmentScansInitiateScanFuture) Result ¶
func (future *DatabaseVulnerabilityAssessmentScansInitiateScanFuture) Result(client DatabaseVulnerabilityAssessmentScansClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabasesClient ¶
type DatabasesClient struct {
BaseClient
}
DatabasesClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.
func NewDatabasesClient ¶
func NewDatabasesClient(subscriptionID string) DatabasesClient
NewDatabasesClient creates an instance of the DatabasesClient client.
func NewDatabasesClientWithBaseURI ¶
func NewDatabasesClientWithBaseURI(baseURI string, subscriptionID string) DatabasesClient
NewDatabasesClientWithBaseURI creates an instance of the DatabasesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (DatabasesClient) CreateOrUpdate ¶
func (client DatabasesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters Database) (result DatabasesCreateOrUpdateFuture, err error)
CreateOrUpdate creates a new database or updates an existing database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database. parameters - the requested database resource state.
func (DatabasesClient) CreateOrUpdatePreparer ¶
func (client DatabasesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters Database) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (DatabasesClient) CreateOrUpdateResponder ¶
func (client DatabasesClient) CreateOrUpdateResponder(resp *http.Response) (result Database, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (DatabasesClient) CreateOrUpdateSender ¶
func (client DatabasesClient) CreateOrUpdateSender(req *http.Request) (future DatabasesCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (DatabasesClient) Delete ¶
func (client DatabasesClient) Delete(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabasesDeleteFuture, err error)
Delete deletes the database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database.
func (DatabasesClient) DeletePreparer ¶
func (client DatabasesClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (DatabasesClient) DeleteResponder ¶
func (client DatabasesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (DatabasesClient) DeleteSender ¶
func (client DatabasesClient) DeleteSender(req *http.Request) (future DatabasesDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (DatabasesClient) Get ¶
func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result Database, err error)
Get gets a database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database.
func (DatabasesClient) GetPreparer ¶
func (client DatabasesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (DatabasesClient) GetResponder ¶
func (client DatabasesClient) GetResponder(resp *http.Response) (result Database, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (DatabasesClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (DatabasesClient) ListByElasticPool ¶
func (client DatabasesClient) ListByElasticPool(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (result DatabaseListResultPage, err error)
ListByElasticPool gets a list of databases in an elastic pool. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. elasticPoolName - the name of the elastic pool.
func (DatabasesClient) ListByElasticPoolComplete ¶
func (client DatabasesClient) ListByElasticPoolComplete(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (result DatabaseListResultIterator, err error)
ListByElasticPoolComplete enumerates all values, automatically crossing page boundaries as required.
func (DatabasesClient) ListByElasticPoolPreparer ¶
func (client DatabasesClient) ListByElasticPoolPreparer(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (*http.Request, error)
ListByElasticPoolPreparer prepares the ListByElasticPool request.
func (DatabasesClient) ListByElasticPoolResponder ¶
func (client DatabasesClient) ListByElasticPoolResponder(resp *http.Response) (result DatabaseListResult, err error)
ListByElasticPoolResponder handles the response to the ListByElasticPool request. The method always closes the http.Response Body.
func (DatabasesClient) ListByElasticPoolSender ¶
ListByElasticPoolSender sends the ListByElasticPool request. The method will close the http.Response Body if it receives an error.
func (DatabasesClient) ListByServer ¶
func (client DatabasesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result DatabaseListResultPage, err error)
ListByServer gets a list of databases. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.
func (DatabasesClient) ListByServerComplete ¶
func (client DatabasesClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result DatabaseListResultIterator, err error)
ListByServerComplete enumerates all values, automatically crossing page boundaries as required.
func (DatabasesClient) ListByServerPreparer ¶
func (client DatabasesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
ListByServerPreparer prepares the ListByServer request.
func (DatabasesClient) ListByServerResponder ¶
func (client DatabasesClient) ListByServerResponder(resp *http.Response) (result DatabaseListResult, err error)
ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.
func (DatabasesClient) ListByServerSender ¶
ListByServerSender sends the ListByServer request. The method will close the http.Response Body if it receives an error.
func (DatabasesClient) Pause ¶
func (client DatabasesClient) Pause(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabasesPauseFuture, err error)
Pause pauses a database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database to be paused.
func (DatabasesClient) PausePreparer ¶
func (client DatabasesClient) PausePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
PausePreparer prepares the Pause request.
func (DatabasesClient) PauseResponder ¶
func (client DatabasesClient) PauseResponder(resp *http.Response) (result Database, err error)
PauseResponder handles the response to the Pause request. The method always closes the http.Response Body.
func (DatabasesClient) PauseSender ¶
func (client DatabasesClient) PauseSender(req *http.Request) (future DatabasesPauseFuture, err error)
PauseSender sends the Pause request. The method will close the http.Response Body if it receives an error.
func (DatabasesClient) Rename ¶
func (client DatabasesClient) Rename(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters ResourceMoveDefinition) (result autorest.Response, err error)
Rename renames a database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database to rename. parameters - the resource move definition for renaming this database.
func (DatabasesClient) RenamePreparer ¶
func (client DatabasesClient) RenamePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters ResourceMoveDefinition) (*http.Request, error)
RenamePreparer prepares the Rename request.
func (DatabasesClient) RenameResponder ¶
func (client DatabasesClient) RenameResponder(resp *http.Response) (result autorest.Response, err error)
RenameResponder handles the response to the Rename request. The method always closes the http.Response Body.
func (DatabasesClient) RenameSender ¶
RenameSender sends the Rename request. The method will close the http.Response Body if it receives an error.
func (DatabasesClient) Resume ¶
func (client DatabasesClient) Resume(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabasesResumeFuture, err error)
Resume resumes a database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database to be resumed.
func (DatabasesClient) ResumePreparer ¶
func (client DatabasesClient) ResumePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
ResumePreparer prepares the Resume request.
func (DatabasesClient) ResumeResponder ¶
func (client DatabasesClient) ResumeResponder(resp *http.Response) (result Database, err error)
ResumeResponder handles the response to the Resume request. The method always closes the http.Response Body.
func (DatabasesClient) ResumeSender ¶
func (client DatabasesClient) ResumeSender(req *http.Request) (future DatabasesResumeFuture, err error)
ResumeSender sends the Resume request. The method will close the http.Response Body if it receives an error.
func (DatabasesClient) Update ¶
func (client DatabasesClient) Update(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseUpdate) (result DatabasesUpdateFuture, err error)
Update updates an existing database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database. parameters - the requested database resource state.
func (DatabasesClient) UpdatePreparer ¶
func (client DatabasesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseUpdate) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (DatabasesClient) UpdateResponder ¶
func (client DatabasesClient) UpdateResponder(resp *http.Response) (result Database, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (DatabasesClient) UpdateSender ¶
func (client DatabasesClient) UpdateSender(req *http.Request) (future DatabasesUpdateFuture, err error)
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
func (DatabasesClient) UpgradeDataWarehouse ¶
func (client DatabasesClient) UpgradeDataWarehouse(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabasesUpgradeDataWarehouseFuture, err error)
UpgradeDataWarehouse upgrades a data warehouse. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database to be upgraded.
func (DatabasesClient) UpgradeDataWarehousePreparer ¶
func (client DatabasesClient) UpgradeDataWarehousePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
UpgradeDataWarehousePreparer prepares the UpgradeDataWarehouse request.
func (DatabasesClient) UpgradeDataWarehouseResponder ¶
func (client DatabasesClient) UpgradeDataWarehouseResponder(resp *http.Response) (result autorest.Response, err error)
UpgradeDataWarehouseResponder handles the response to the UpgradeDataWarehouse request. The method always closes the http.Response Body.
func (DatabasesClient) UpgradeDataWarehouseSender ¶
func (client DatabasesClient) UpgradeDataWarehouseSender(req *http.Request) (future DatabasesUpgradeDataWarehouseFuture, err error)
UpgradeDataWarehouseSender sends the UpgradeDataWarehouse request. The method will close the http.Response Body if it receives an error.
type DatabasesCreateOrUpdateFuture ¶
DatabasesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabasesCreateOrUpdateFuture) Result ¶
func (future *DatabasesCreateOrUpdateFuture) Result(client DatabasesClient) (d Database, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabasesDeleteFuture ¶
DatabasesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabasesDeleteFuture) Result ¶
func (future *DatabasesDeleteFuture) Result(client DatabasesClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabasesPauseFuture ¶
DatabasesPauseFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabasesPauseFuture) Result ¶
func (future *DatabasesPauseFuture) Result(client DatabasesClient) (d Database, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabasesResumeFuture ¶
DatabasesResumeFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabasesResumeFuture) Result ¶
func (future *DatabasesResumeFuture) Result(client DatabasesClient) (d Database, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabasesUpdateFuture ¶
DatabasesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabasesUpdateFuture) Result ¶
func (future *DatabasesUpdateFuture) Result(client DatabasesClient) (d Database, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabasesUpgradeDataWarehouseFuture ¶
DatabasesUpgradeDataWarehouseFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabasesUpgradeDataWarehouseFuture) Result ¶
func (future *DatabasesUpgradeDataWarehouseFuture) Result(client DatabasesClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type EditionCapability ¶
type EditionCapability struct { // Name - READ-ONLY; The database edition name. Name *string `json:"name,omitempty"` // SupportedServiceLevelObjectives - READ-ONLY; The list of supported service objectives for the edition. SupportedServiceLevelObjectives *[]ServiceObjectiveCapability `json:"supportedServiceLevelObjectives,omitempty"` // ZoneRedundant - READ-ONLY; Whether or not zone redundancy is supported for the edition. ZoneRedundant *bool `json:"zoneRedundant,omitempty"` // Status - READ-ONLY; The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` }
EditionCapability the edition capability.
type ElasticPool ¶
type ElasticPool struct { autorest.Response `json:"-"` // Sku - The elastic pool SKU. // // The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or the following command: // // “`azurecli // az sql elastic-pool list-editions -l <location> -o table // ““ Sku *Sku `json:"sku,omitempty"` // Kind - READ-ONLY; Kind of elastic pool. This is metadata used for the Azure portal experience. Kind *string `json:"kind,omitempty"` // ElasticPoolProperties - Resource properties. *ElasticPoolProperties `json:"properties,omitempty"` // Location - Resource location. Location *string `json:"location,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` }
ElasticPool an elastic pool.
func (ElasticPool) MarshalJSON ¶
func (ep ElasticPool) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ElasticPool.
func (*ElasticPool) UnmarshalJSON ¶
func (ep *ElasticPool) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ElasticPool struct.
type ElasticPoolEditionCapability ¶
type ElasticPoolEditionCapability struct { // Name - READ-ONLY; The elastic pool edition name. Name *string `json:"name,omitempty"` // SupportedElasticPoolPerformanceLevels - READ-ONLY; The list of supported elastic pool DTU levels for the edition. SupportedElasticPoolPerformanceLevels *[]ElasticPoolPerformanceLevelCapability `json:"supportedElasticPoolPerformanceLevels,omitempty"` // ZoneRedundant - READ-ONLY; Whether or not zone redundancy is supported for the edition. ZoneRedundant *bool `json:"zoneRedundant,omitempty"` // Status - READ-ONLY; The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` }
ElasticPoolEditionCapability the elastic pool edition capability.
type ElasticPoolLicenseType ¶
type ElasticPoolLicenseType string
ElasticPoolLicenseType enumerates the values for elastic pool license type.
const ( // ElasticPoolLicenseTypeBasePrice ... ElasticPoolLicenseTypeBasePrice ElasticPoolLicenseType = "BasePrice" // ElasticPoolLicenseTypeLicenseIncluded ... ElasticPoolLicenseTypeLicenseIncluded ElasticPoolLicenseType = "LicenseIncluded" )
func PossibleElasticPoolLicenseTypeValues ¶
func PossibleElasticPoolLicenseTypeValues() []ElasticPoolLicenseType
PossibleElasticPoolLicenseTypeValues returns an array of possible values for the ElasticPoolLicenseType const type.
type ElasticPoolListResult ¶
type ElasticPoolListResult struct { autorest.Response `json:"-"` // Value - READ-ONLY; Array of results. Value *[]ElasticPool `json:"value,omitempty"` // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` }
ElasticPoolListResult the result of an elastic pool list request.
func (ElasticPoolListResult) IsEmpty ¶
func (eplr ElasticPoolListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type ElasticPoolListResultIterator ¶
type ElasticPoolListResultIterator struct {
// contains filtered or unexported fields
}
ElasticPoolListResultIterator provides access to a complete listing of ElasticPool values.
func NewElasticPoolListResultIterator ¶
func NewElasticPoolListResultIterator(page ElasticPoolListResultPage) ElasticPoolListResultIterator
Creates a new instance of the ElasticPoolListResultIterator type.
func (*ElasticPoolListResultIterator) Next ¶
func (iter *ElasticPoolListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*ElasticPoolListResultIterator) NextWithContext ¶
func (iter *ElasticPoolListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (ElasticPoolListResultIterator) NotDone ¶
func (iter ElasticPoolListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (ElasticPoolListResultIterator) Response ¶
func (iter ElasticPoolListResultIterator) Response() ElasticPoolListResult
Response returns the raw server response from the last page request.
func (ElasticPoolListResultIterator) Value ¶
func (iter ElasticPoolListResultIterator) Value() ElasticPool
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type ElasticPoolListResultPage ¶
type ElasticPoolListResultPage struct {
// contains filtered or unexported fields
}
ElasticPoolListResultPage contains a page of ElasticPool values.
func NewElasticPoolListResultPage ¶
func NewElasticPoolListResultPage(getNextPage func(context.Context, ElasticPoolListResult) (ElasticPoolListResult, error)) ElasticPoolListResultPage
Creates a new instance of the ElasticPoolListResultPage type.
func (*ElasticPoolListResultPage) Next ¶
func (page *ElasticPoolListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*ElasticPoolListResultPage) NextWithContext ¶
func (page *ElasticPoolListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (ElasticPoolListResultPage) NotDone ¶
func (page ElasticPoolListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (ElasticPoolListResultPage) Response ¶
func (page ElasticPoolListResultPage) Response() ElasticPoolListResult
Response returns the raw server response from the last page request.
func (ElasticPoolListResultPage) Values ¶
func (page ElasticPoolListResultPage) Values() []ElasticPool
Values returns the slice of values for the current page or nil if there are no values.
type ElasticPoolOperation ¶
type ElasticPoolOperation struct { // ElasticPoolOperationProperties - Resource properties. *ElasticPoolOperationProperties `json:"properties,omitempty"` // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` }
ElasticPoolOperation a elastic pool operation.
func (ElasticPoolOperation) MarshalJSON ¶
func (epo ElasticPoolOperation) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ElasticPoolOperation.
func (*ElasticPoolOperation) UnmarshalJSON ¶
func (epo *ElasticPoolOperation) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ElasticPoolOperation struct.
type ElasticPoolOperationListResult ¶
type ElasticPoolOperationListResult struct { autorest.Response `json:"-"` // Value - READ-ONLY; Array of results. Value *[]ElasticPoolOperation `json:"value,omitempty"` // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` }
ElasticPoolOperationListResult the response to a list elastic pool operations request
func (ElasticPoolOperationListResult) IsEmpty ¶
func (epolr ElasticPoolOperationListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type ElasticPoolOperationListResultIterator ¶
type ElasticPoolOperationListResultIterator struct {
// contains filtered or unexported fields
}
ElasticPoolOperationListResultIterator provides access to a complete listing of ElasticPoolOperation values.
func NewElasticPoolOperationListResultIterator ¶
func NewElasticPoolOperationListResultIterator(page ElasticPoolOperationListResultPage) ElasticPoolOperationListResultIterator
Creates a new instance of the ElasticPoolOperationListResultIterator type.
func (*ElasticPoolOperationListResultIterator) Next ¶
func (iter *ElasticPoolOperationListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*ElasticPoolOperationListResultIterator) NextWithContext ¶
func (iter *ElasticPoolOperationListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (ElasticPoolOperationListResultIterator) NotDone ¶
func (iter ElasticPoolOperationListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (ElasticPoolOperationListResultIterator) Response ¶
func (iter ElasticPoolOperationListResultIterator) Response() ElasticPoolOperationListResult
Response returns the raw server response from the last page request.
func (ElasticPoolOperationListResultIterator) Value ¶
func (iter ElasticPoolOperationListResultIterator) Value() ElasticPoolOperation
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type ElasticPoolOperationListResultPage ¶
type ElasticPoolOperationListResultPage struct {
// contains filtered or unexported fields
}
ElasticPoolOperationListResultPage contains a page of ElasticPoolOperation values.
func NewElasticPoolOperationListResultPage ¶
func NewElasticPoolOperationListResultPage(getNextPage func(context.Context, ElasticPoolOperationListResult) (ElasticPoolOperationListResult, error)) ElasticPoolOperationListResultPage
Creates a new instance of the ElasticPoolOperationListResultPage type.
func (*ElasticPoolOperationListResultPage) Next ¶
func (page *ElasticPoolOperationListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*ElasticPoolOperationListResultPage) NextWithContext ¶
func (page *ElasticPoolOperationListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (ElasticPoolOperationListResultPage) NotDone ¶
func (page ElasticPoolOperationListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (ElasticPoolOperationListResultPage) Response ¶
func (page ElasticPoolOperationListResultPage) Response() ElasticPoolOperationListResult
Response returns the raw server response from the last page request.
func (ElasticPoolOperationListResultPage) Values ¶
func (page ElasticPoolOperationListResultPage) Values() []ElasticPoolOperation
Values returns the slice of values for the current page or nil if there are no values.
type ElasticPoolOperationProperties ¶
type ElasticPoolOperationProperties struct { // ElasticPoolName - READ-ONLY; The name of the elastic pool the operation is being performed on. ElasticPoolName *string `json:"elasticPoolName,omitempty"` // Operation - READ-ONLY; The name of operation. Operation *string `json:"operation,omitempty"` // OperationFriendlyName - READ-ONLY; The friendly name of operation. OperationFriendlyName *string `json:"operationFriendlyName,omitempty"` // PercentComplete - READ-ONLY; The percentage of the operation completed. PercentComplete *int32 `json:"percentComplete,omitempty"` // ServerName - READ-ONLY; The name of the server. ServerName *string `json:"serverName,omitempty"` // StartTime - READ-ONLY; The operation start time. StartTime *date.Time `json:"startTime,omitempty"` // State - READ-ONLY; The operation state. State *string `json:"state,omitempty"` // ErrorCode - READ-ONLY; The operation error code. ErrorCode *int32 `json:"errorCode,omitempty"` // ErrorDescription - READ-ONLY; The operation error description. ErrorDescription *string `json:"errorDescription,omitempty"` // ErrorSeverity - READ-ONLY; The operation error severity. ErrorSeverity *int32 `json:"errorSeverity,omitempty"` // IsUserError - READ-ONLY; Whether or not the error is a user error. IsUserError *bool `json:"isUserError,omitempty"` // EstimatedCompletionTime - READ-ONLY; The estimated completion time of the operation. EstimatedCompletionTime *date.Time `json:"estimatedCompletionTime,omitempty"` // Description - READ-ONLY; The operation description. Description *string `json:"description,omitempty"` // IsCancellable - READ-ONLY; Whether the operation can be cancelled. IsCancellable *bool `json:"isCancellable,omitempty"` }
ElasticPoolOperationProperties the properties of a elastic pool operation.
type ElasticPoolOperationsClient ¶
type ElasticPoolOperationsClient struct {
BaseClient
}
ElasticPoolOperationsClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.
func NewElasticPoolOperationsClient ¶
func NewElasticPoolOperationsClient(subscriptionID string) ElasticPoolOperationsClient
NewElasticPoolOperationsClient creates an instance of the ElasticPoolOperationsClient client.
func NewElasticPoolOperationsClientWithBaseURI ¶
func NewElasticPoolOperationsClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolOperationsClient
NewElasticPoolOperationsClientWithBaseURI creates an instance of the ElasticPoolOperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (ElasticPoolOperationsClient) Cancel ¶
func (client ElasticPoolOperationsClient) Cancel(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string, operationID uuid.UUID) (result autorest.Response, err error)
Cancel cancels the asynchronous operation on the elastic pool. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. operationID - the operation identifier.
func (ElasticPoolOperationsClient) CancelPreparer ¶
func (client ElasticPoolOperationsClient) CancelPreparer(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string, operationID uuid.UUID) (*http.Request, error)
CancelPreparer prepares the Cancel request.
func (ElasticPoolOperationsClient) CancelResponder ¶
func (client ElasticPoolOperationsClient) CancelResponder(resp *http.Response) (result autorest.Response, err error)
CancelResponder handles the response to the Cancel request. The method always closes the http.Response Body.
func (ElasticPoolOperationsClient) CancelSender ¶
CancelSender sends the Cancel request. The method will close the http.Response Body if it receives an error.
func (ElasticPoolOperationsClient) ListByElasticPool ¶
func (client ElasticPoolOperationsClient) ListByElasticPool(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (result ElasticPoolOperationListResultPage, err error)
ListByElasticPool gets a list of operations performed on the elastic pool. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.
func (ElasticPoolOperationsClient) ListByElasticPoolComplete ¶
func (client ElasticPoolOperationsClient) ListByElasticPoolComplete(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (result ElasticPoolOperationListResultIterator, err error)
ListByElasticPoolComplete enumerates all values, automatically crossing page boundaries as required.
func (ElasticPoolOperationsClient) ListByElasticPoolPreparer ¶
func (client ElasticPoolOperationsClient) ListByElasticPoolPreparer(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (*http.Request, error)
ListByElasticPoolPreparer prepares the ListByElasticPool request.
func (ElasticPoolOperationsClient) ListByElasticPoolResponder ¶
func (client ElasticPoolOperationsClient) ListByElasticPoolResponder(resp *http.Response) (result ElasticPoolOperationListResult, err error)
ListByElasticPoolResponder handles the response to the ListByElasticPool request. The method always closes the http.Response Body.
func (ElasticPoolOperationsClient) ListByElasticPoolSender ¶
func (client ElasticPoolOperationsClient) ListByElasticPoolSender(req *http.Request) (*http.Response, error)
ListByElasticPoolSender sends the ListByElasticPool request. The method will close the http.Response Body if it receives an error.
type ElasticPoolPerDatabaseMaxPerformanceLevelCapability ¶
type ElasticPoolPerDatabaseMaxPerformanceLevelCapability struct { // Limit - READ-ONLY; The maximum performance level per database. Limit *float64 `json:"limit,omitempty"` // Unit - READ-ONLY; Unit type used to measure performance level. Possible values include: 'DTU', 'VCores' Unit PerformanceLevelUnit `json:"unit,omitempty"` // SupportedPerDatabaseMinPerformanceLevels - READ-ONLY; The list of supported min database performance levels. SupportedPerDatabaseMinPerformanceLevels *[]ElasticPoolPerDatabaseMinPerformanceLevelCapability `json:"supportedPerDatabaseMinPerformanceLevels,omitempty"` // Status - READ-ONLY; The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` }
ElasticPoolPerDatabaseMaxPerformanceLevelCapability the max per-database performance level capability.
type ElasticPoolPerDatabaseMinPerformanceLevelCapability ¶
type ElasticPoolPerDatabaseMinPerformanceLevelCapability struct { // Limit - READ-ONLY; The minimum performance level per database. Limit *float64 `json:"limit,omitempty"` // Unit - READ-ONLY; Unit type used to measure performance level. Possible values include: 'DTU', 'VCores' Unit PerformanceLevelUnit `json:"unit,omitempty"` // Status - READ-ONLY; The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` }
ElasticPoolPerDatabaseMinPerformanceLevelCapability the minimum per-database performance level capability.
type ElasticPoolPerDatabaseSettings ¶
type ElasticPoolPerDatabaseSettings struct { // MinCapacity - The minimum capacity all databases are guaranteed. MinCapacity *float64 `json:"minCapacity,omitempty"` // MaxCapacity - The maximum capacity any one database can consume. MaxCapacity *float64 `json:"maxCapacity,omitempty"` }
ElasticPoolPerDatabaseSettings per database settings of an elastic pool.
type ElasticPoolPerformanceLevelCapability ¶
type ElasticPoolPerformanceLevelCapability struct { // PerformanceLevel - READ-ONLY; The performance level for the pool. PerformanceLevel *PerformanceLevelCapability `json:"performanceLevel,omitempty"` // Sku - READ-ONLY; The sku. Sku *Sku `json:"sku,omitempty"` // SupportedLicenseTypes - READ-ONLY; List of supported license types. SupportedLicenseTypes *[]LicenseTypeCapability `json:"supportedLicenseTypes,omitempty"` // MaxDatabaseCount - READ-ONLY; The maximum number of databases supported. MaxDatabaseCount *int32 `json:"maxDatabaseCount,omitempty"` // IncludedMaxSize - READ-ONLY; The included (free) max size for this performance level. IncludedMaxSize *MaxSizeCapability `json:"includedMaxSize,omitempty"` // SupportedMaxSizes - READ-ONLY; The list of supported max sizes. SupportedMaxSizes *[]MaxSizeRangeCapability `json:"supportedMaxSizes,omitempty"` // SupportedPerDatabaseMaxSizes - READ-ONLY; The list of supported per database max sizes. SupportedPerDatabaseMaxSizes *[]MaxSizeRangeCapability `json:"supportedPerDatabaseMaxSizes,omitempty"` // SupportedPerDatabaseMaxPerformanceLevels - READ-ONLY; The list of supported per database max performance levels. SupportedPerDatabaseMaxPerformanceLevels *[]ElasticPoolPerDatabaseMaxPerformanceLevelCapability `json:"supportedPerDatabaseMaxPerformanceLevels,omitempty"` // Status - READ-ONLY; The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` }
ElasticPoolPerformanceLevelCapability the Elastic Pool performance level capability.
type ElasticPoolProperties ¶
type ElasticPoolProperties struct { // State - READ-ONLY; The state of the elastic pool. Possible values include: 'ElasticPoolStateCreating', 'ElasticPoolStateReady', 'ElasticPoolStateDisabled' State ElasticPoolState `json:"state,omitempty"` // CreationDate - READ-ONLY; The creation date of the elastic pool (ISO8601 format). CreationDate *date.Time `json:"creationDate,omitempty"` // MaxSizeBytes - The storage limit for the database elastic pool in bytes. MaxSizeBytes *int64 `json:"maxSizeBytes,omitempty"` // PerDatabaseSettings - The per database settings for the elastic pool. PerDatabaseSettings *ElasticPoolPerDatabaseSettings `json:"perDatabaseSettings,omitempty"` // ZoneRedundant - Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones. ZoneRedundant *bool `json:"zoneRedundant,omitempty"` // LicenseType - The license type to apply for this elastic pool. Possible values include: 'ElasticPoolLicenseTypeLicenseIncluded', 'ElasticPoolLicenseTypeBasePrice' LicenseType ElasticPoolLicenseType `json:"licenseType,omitempty"` }
ElasticPoolProperties properties of an elastic pool
type ElasticPoolState ¶
type ElasticPoolState string
ElasticPoolState enumerates the values for elastic pool state.
const ( // ElasticPoolStateCreating ... ElasticPoolStateCreating ElasticPoolState = "Creating" // ElasticPoolStateDisabled ... ElasticPoolStateDisabled ElasticPoolState = "Disabled" // ElasticPoolStateReady ... ElasticPoolStateReady ElasticPoolState = "Ready" )
func PossibleElasticPoolStateValues ¶
func PossibleElasticPoolStateValues() []ElasticPoolState
PossibleElasticPoolStateValues returns an array of possible values for the ElasticPoolState const type.
type ElasticPoolUpdate ¶
type ElasticPoolUpdate struct { Sku *Sku `json:"sku,omitempty"` // ElasticPoolUpdateProperties - Resource properties. *ElasticPoolUpdateProperties `json:"properties,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` }
ElasticPoolUpdate an elastic pool update.
func (ElasticPoolUpdate) MarshalJSON ¶
func (epu ElasticPoolUpdate) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ElasticPoolUpdate.
func (*ElasticPoolUpdate) UnmarshalJSON ¶
func (epu *ElasticPoolUpdate) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ElasticPoolUpdate struct.
type ElasticPoolUpdateProperties ¶
type ElasticPoolUpdateProperties struct { // MaxSizeBytes - The storage limit for the database elastic pool in bytes. MaxSizeBytes *int64 `json:"maxSizeBytes,omitempty"` // PerDatabaseSettings - The per database settings for the elastic pool. PerDatabaseSettings *ElasticPoolPerDatabaseSettings `json:"perDatabaseSettings,omitempty"` // ZoneRedundant - Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones. ZoneRedundant *bool `json:"zoneRedundant,omitempty"` // LicenseType - The license type to apply for this elastic pool. Possible values include: 'ElasticPoolLicenseTypeLicenseIncluded', 'ElasticPoolLicenseTypeBasePrice' LicenseType ElasticPoolLicenseType `json:"licenseType,omitempty"` }
ElasticPoolUpdateProperties properties of an elastic pool
type ElasticPoolsClient ¶
type ElasticPoolsClient struct {
BaseClient
}
ElasticPoolsClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.
func NewElasticPoolsClient ¶
func NewElasticPoolsClient(subscriptionID string) ElasticPoolsClient
NewElasticPoolsClient creates an instance of the ElasticPoolsClient client.
func NewElasticPoolsClientWithBaseURI ¶
func NewElasticPoolsClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolsClient
NewElasticPoolsClientWithBaseURI creates an instance of the ElasticPoolsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (ElasticPoolsClient) CreateOrUpdate ¶
func (client ElasticPoolsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string, parameters ElasticPool) (result ElasticPoolsCreateOrUpdateFuture, err error)
CreateOrUpdate creates or updates an elastic pool. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. elasticPoolName - the name of the elastic pool. parameters - the elastic pool parameters.
func (ElasticPoolsClient) CreateOrUpdatePreparer ¶
func (client ElasticPoolsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string, parameters ElasticPool) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (ElasticPoolsClient) CreateOrUpdateResponder ¶
func (client ElasticPoolsClient) CreateOrUpdateResponder(resp *http.Response) (result ElasticPool, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (ElasticPoolsClient) CreateOrUpdateSender ¶
func (client ElasticPoolsClient) CreateOrUpdateSender(req *http.Request) (future ElasticPoolsCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (ElasticPoolsClient) Delete ¶
func (client ElasticPoolsClient) Delete(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (result ElasticPoolsDeleteFuture, err error)
Delete deletes an elastic pool. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. elasticPoolName - the name of the elastic pool.
func (ElasticPoolsClient) DeletePreparer ¶
func (client ElasticPoolsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (ElasticPoolsClient) DeleteResponder ¶
func (client ElasticPoolsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (ElasticPoolsClient) DeleteSender ¶
func (client ElasticPoolsClient) DeleteSender(req *http.Request) (future ElasticPoolsDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (ElasticPoolsClient) Get ¶
func (client ElasticPoolsClient) Get(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (result ElasticPool, err error)
Get gets an elastic pool. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. elasticPoolName - the name of the elastic pool.
func (ElasticPoolsClient) GetPreparer ¶
func (client ElasticPoolsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ElasticPoolsClient) GetResponder ¶
func (client ElasticPoolsClient) GetResponder(resp *http.Response) (result ElasticPool, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ElasticPoolsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ElasticPoolsClient) ListByServer ¶
func (client ElasticPoolsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string, skip *int32) (result ElasticPoolListResultPage, err error)
ListByServer gets all elastic pools in a server. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. skip - the number of elements in the collection to skip.
func (ElasticPoolsClient) ListByServerComplete ¶
func (client ElasticPoolsClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string, skip *int32) (result ElasticPoolListResultIterator, err error)
ListByServerComplete enumerates all values, automatically crossing page boundaries as required.
func (ElasticPoolsClient) ListByServerPreparer ¶
func (client ElasticPoolsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string, skip *int32) (*http.Request, error)
ListByServerPreparer prepares the ListByServer request.
func (ElasticPoolsClient) ListByServerResponder ¶
func (client ElasticPoolsClient) ListByServerResponder(resp *http.Response) (result ElasticPoolListResult, err error)
ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.
func (ElasticPoolsClient) ListByServerSender ¶
ListByServerSender sends the ListByServer request. The method will close the http.Response Body if it receives an error.
func (ElasticPoolsClient) Update ¶
func (client ElasticPoolsClient) Update(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string, parameters ElasticPoolUpdate) (result ElasticPoolsUpdateFuture, err error)
Update updates an elastic pool. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. elasticPoolName - the name of the elastic pool. parameters - the elastic pool update parameters.
func (ElasticPoolsClient) UpdatePreparer ¶
func (client ElasticPoolsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string, parameters ElasticPoolUpdate) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (ElasticPoolsClient) UpdateResponder ¶
func (client ElasticPoolsClient) UpdateResponder(resp *http.Response) (result ElasticPool, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (ElasticPoolsClient) UpdateSender ¶
func (client ElasticPoolsClient) UpdateSender(req *http.Request) (future ElasticPoolsUpdateFuture, err error)
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type ElasticPoolsCreateOrUpdateFuture ¶
ElasticPoolsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ElasticPoolsCreateOrUpdateFuture) Result ¶
func (future *ElasticPoolsCreateOrUpdateFuture) Result(client ElasticPoolsClient) (ep ElasticPool, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type ElasticPoolsDeleteFuture ¶
ElasticPoolsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ElasticPoolsDeleteFuture) Result ¶
func (future *ElasticPoolsDeleteFuture) Result(client ElasticPoolsClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type ElasticPoolsUpdateFuture ¶
ElasticPoolsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ElasticPoolsUpdateFuture) Result ¶
func (future *ElasticPoolsUpdateFuture) Result(client ElasticPoolsClient) (ep ElasticPool, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type InstanceFailoverGroup ¶
type InstanceFailoverGroup struct { autorest.Response `json:"-"` // InstanceFailoverGroupProperties - Resource properties. *InstanceFailoverGroupProperties `json:"properties,omitempty"` // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` }
InstanceFailoverGroup an instance failover group.
func (InstanceFailoverGroup) MarshalJSON ¶
func (ifg InstanceFailoverGroup) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for InstanceFailoverGroup.
func (*InstanceFailoverGroup) UnmarshalJSON ¶
func (ifg *InstanceFailoverGroup) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for InstanceFailoverGroup struct.
type InstanceFailoverGroupListResult ¶
type InstanceFailoverGroupListResult struct { autorest.Response `json:"-"` // Value - READ-ONLY; Array of results. Value *[]InstanceFailoverGroup `json:"value,omitempty"` // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` }
InstanceFailoverGroupListResult a list of instance failover groups.
func (InstanceFailoverGroupListResult) IsEmpty ¶
func (ifglr InstanceFailoverGroupListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type InstanceFailoverGroupListResultIterator ¶
type InstanceFailoverGroupListResultIterator struct {
// contains filtered or unexported fields
}
InstanceFailoverGroupListResultIterator provides access to a complete listing of InstanceFailoverGroup values.
func NewInstanceFailoverGroupListResultIterator ¶
func NewInstanceFailoverGroupListResultIterator(page InstanceFailoverGroupListResultPage) InstanceFailoverGroupListResultIterator
Creates a new instance of the InstanceFailoverGroupListResultIterator type.
func (*InstanceFailoverGroupListResultIterator) Next ¶
func (iter *InstanceFailoverGroupListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*InstanceFailoverGroupListResultIterator) NextWithContext ¶
func (iter *InstanceFailoverGroupListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (InstanceFailoverGroupListResultIterator) NotDone ¶
func (iter InstanceFailoverGroupListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (InstanceFailoverGroupListResultIterator) Response ¶
func (iter InstanceFailoverGroupListResultIterator) Response() InstanceFailoverGroupListResult
Response returns the raw server response from the last page request.
func (InstanceFailoverGroupListResultIterator) Value ¶
func (iter InstanceFailoverGroupListResultIterator) Value() InstanceFailoverGroup
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type InstanceFailoverGroupListResultPage ¶
type InstanceFailoverGroupListResultPage struct {
// contains filtered or unexported fields
}
InstanceFailoverGroupListResultPage contains a page of InstanceFailoverGroup values.
func NewInstanceFailoverGroupListResultPage ¶
func NewInstanceFailoverGroupListResultPage(getNextPage func(context.Context, InstanceFailoverGroupListResult) (InstanceFailoverGroupListResult, error)) InstanceFailoverGroupListResultPage
Creates a new instance of the InstanceFailoverGroupListResultPage type.
func (*InstanceFailoverGroupListResultPage) Next ¶
func (page *InstanceFailoverGroupListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*InstanceFailoverGroupListResultPage) NextWithContext ¶
func (page *InstanceFailoverGroupListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (InstanceFailoverGroupListResultPage) NotDone ¶
func (page InstanceFailoverGroupListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (InstanceFailoverGroupListResultPage) Response ¶
func (page InstanceFailoverGroupListResultPage) Response() InstanceFailoverGroupListResult
Response returns the raw server response from the last page request.
func (InstanceFailoverGroupListResultPage) Values ¶
func (page InstanceFailoverGroupListResultPage) Values() []InstanceFailoverGroup
Values returns the slice of values for the current page or nil if there are no values.
type InstanceFailoverGroupProperties ¶
type InstanceFailoverGroupProperties struct { // ReadWriteEndpoint - Read-write endpoint of the failover group instance. ReadWriteEndpoint *InstanceFailoverGroupReadWriteEndpoint `json:"readWriteEndpoint,omitempty"` // ReadOnlyEndpoint - Read-only endpoint of the failover group instance. ReadOnlyEndpoint *InstanceFailoverGroupReadOnlyEndpoint `json:"readOnlyEndpoint,omitempty"` // ReplicationRole - READ-ONLY; Local replication role of the failover group instance. Possible values include: 'Primary', 'Secondary' ReplicationRole InstanceFailoverGroupReplicationRole `json:"replicationRole,omitempty"` // ReplicationState - READ-ONLY; Replication state of the failover group instance. ReplicationState *string `json:"replicationState,omitempty"` // PartnerRegions - Partner region information for the failover group. PartnerRegions *[]PartnerRegionInfo `json:"partnerRegions,omitempty"` // ManagedInstancePairs - List of managed instance pairs in the failover group. ManagedInstancePairs *[]ManagedInstancePairInfo `json:"managedInstancePairs,omitempty"` }
InstanceFailoverGroupProperties properties of a instance failover group.
type InstanceFailoverGroupReadOnlyEndpoint ¶
type InstanceFailoverGroupReadOnlyEndpoint struct { // FailoverPolicy - Failover policy of the read-only endpoint for the failover group. Possible values include: 'ReadOnlyEndpointFailoverPolicyDisabled', 'ReadOnlyEndpointFailoverPolicyEnabled' FailoverPolicy ReadOnlyEndpointFailoverPolicy `json:"failoverPolicy,omitempty"` }
InstanceFailoverGroupReadOnlyEndpoint read-only endpoint of the failover group instance.
type InstanceFailoverGroupReadWriteEndpoint ¶
type InstanceFailoverGroupReadWriteEndpoint struct { // FailoverPolicy - Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. Possible values include: 'Manual', 'Automatic' FailoverPolicy ReadWriteEndpointFailoverPolicy `json:"failoverPolicy,omitempty"` // FailoverWithDataLossGracePeriodMinutes - Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. FailoverWithDataLossGracePeriodMinutes *int32 `json:"failoverWithDataLossGracePeriodMinutes,omitempty"` }
InstanceFailoverGroupReadWriteEndpoint read-write endpoint of the failover group instance.
type InstanceFailoverGroupReplicationRole ¶
type InstanceFailoverGroupReplicationRole string
InstanceFailoverGroupReplicationRole enumerates the values for instance failover group replication role.
const ( // Primary ... Primary InstanceFailoverGroupReplicationRole = "Primary" // Secondary ... Secondary InstanceFailoverGroupReplicationRole = "Secondary" )
func PossibleInstanceFailoverGroupReplicationRoleValues ¶
func PossibleInstanceFailoverGroupReplicationRoleValues() []InstanceFailoverGroupReplicationRole
PossibleInstanceFailoverGroupReplicationRoleValues returns an array of possible values for the InstanceFailoverGroupReplicationRole const type.
type InstanceFailoverGroupsClient ¶
type InstanceFailoverGroupsClient struct {
BaseClient
}
InstanceFailoverGroupsClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.
func NewInstanceFailoverGroupsClient ¶
func NewInstanceFailoverGroupsClient(subscriptionID string) InstanceFailoverGroupsClient
NewInstanceFailoverGroupsClient creates an instance of the InstanceFailoverGroupsClient client.
func NewInstanceFailoverGroupsClientWithBaseURI ¶
func NewInstanceFailoverGroupsClientWithBaseURI(baseURI string, subscriptionID string) InstanceFailoverGroupsClient
NewInstanceFailoverGroupsClientWithBaseURI creates an instance of the InstanceFailoverGroupsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (InstanceFailoverGroupsClient) CreateOrUpdate ¶
func (client InstanceFailoverGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string, parameters InstanceFailoverGroup) (result InstanceFailoverGroupsCreateOrUpdateFuture, err error)
CreateOrUpdate creates or updates a failover group. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. locationName - the name of the region where the resource is located. failoverGroupName - the name of the failover group. parameters - the failover group parameters.
func (InstanceFailoverGroupsClient) CreateOrUpdatePreparer ¶
func (client InstanceFailoverGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string, parameters InstanceFailoverGroup) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (InstanceFailoverGroupsClient) CreateOrUpdateResponder ¶
func (client InstanceFailoverGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result InstanceFailoverGroup, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (InstanceFailoverGroupsClient) CreateOrUpdateSender ¶
func (client InstanceFailoverGroupsClient) CreateOrUpdateSender(req *http.Request) (future InstanceFailoverGroupsCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (InstanceFailoverGroupsClient) Delete ¶
func (client InstanceFailoverGroupsClient) Delete(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string) (result InstanceFailoverGroupsDeleteFuture, err error)
Delete deletes a failover group. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. locationName - the name of the region where the resource is located. failoverGroupName - the name of the failover group.
func (InstanceFailoverGroupsClient) DeletePreparer ¶
func (client InstanceFailoverGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (InstanceFailoverGroupsClient) DeleteResponder ¶
func (client InstanceFailoverGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (InstanceFailoverGroupsClient) DeleteSender ¶
func (client InstanceFailoverGroupsClient) DeleteSender(req *http.Request) (future InstanceFailoverGroupsDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (InstanceFailoverGroupsClient) Failover ¶
func (client InstanceFailoverGroupsClient) Failover(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string) (result InstanceFailoverGroupsFailoverFuture, err error)
Failover fails over from the current primary managed instance to this managed instance. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. locationName - the name of the region where the resource is located. failoverGroupName - the name of the failover group.
func (InstanceFailoverGroupsClient) FailoverPreparer ¶
func (client InstanceFailoverGroupsClient) FailoverPreparer(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string) (*http.Request, error)
FailoverPreparer prepares the Failover request.
func (InstanceFailoverGroupsClient) FailoverResponder ¶
func (client InstanceFailoverGroupsClient) FailoverResponder(resp *http.Response) (result InstanceFailoverGroup, err error)
FailoverResponder handles the response to the Failover request. The method always closes the http.Response Body.
func (InstanceFailoverGroupsClient) FailoverSender ¶
func (client InstanceFailoverGroupsClient) FailoverSender(req *http.Request) (future InstanceFailoverGroupsFailoverFuture, err error)
FailoverSender sends the Failover request. The method will close the http.Response Body if it receives an error.
func (InstanceFailoverGroupsClient) ForceFailoverAllowDataLoss ¶
func (client InstanceFailoverGroupsClient) ForceFailoverAllowDataLoss(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string) (result InstanceFailoverGroupsForceFailoverAllowDataLossFuture, err error)
ForceFailoverAllowDataLoss fails over from the current primary managed instance to this managed instance. This operation might result in data loss. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. locationName - the name of the region where the resource is located. failoverGroupName - the name of the failover group.
func (InstanceFailoverGroupsClient) ForceFailoverAllowDataLossPreparer ¶
func (client InstanceFailoverGroupsClient) ForceFailoverAllowDataLossPreparer(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string) (*http.Request, error)
ForceFailoverAllowDataLossPreparer prepares the ForceFailoverAllowDataLoss request.
func (InstanceFailoverGroupsClient) ForceFailoverAllowDataLossResponder ¶
func (client InstanceFailoverGroupsClient) ForceFailoverAllowDataLossResponder(resp *http.Response) (result InstanceFailoverGroup, err error)
ForceFailoverAllowDataLossResponder handles the response to the ForceFailoverAllowDataLoss request. The method always closes the http.Response Body.
func (InstanceFailoverGroupsClient) ForceFailoverAllowDataLossSender ¶
func (client InstanceFailoverGroupsClient) ForceFailoverAllowDataLossSender(req *http.Request) (future InstanceFailoverGroupsForceFailoverAllowDataLossFuture, err error)
ForceFailoverAllowDataLossSender sends the ForceFailoverAllowDataLoss request. The method will close the http.Response Body if it receives an error.
func (InstanceFailoverGroupsClient) Get ¶
func (client InstanceFailoverGroupsClient) Get(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string) (result InstanceFailoverGroup, err error)
Get gets a failover group. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. locationName - the name of the region where the resource is located. failoverGroupName - the name of the failover group.
func (InstanceFailoverGroupsClient) GetPreparer ¶
func (client InstanceFailoverGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (InstanceFailoverGroupsClient) GetResponder ¶
func (client InstanceFailoverGroupsClient) GetResponder(resp *http.Response) (result InstanceFailoverGroup, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (InstanceFailoverGroupsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (InstanceFailoverGroupsClient) ListByLocation ¶
func (client InstanceFailoverGroupsClient) ListByLocation(ctx context.Context, resourceGroupName string, locationName string) (result InstanceFailoverGroupListResultPage, err error)
ListByLocation lists the failover groups in a location. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. locationName - the name of the region where the resource is located.
func (InstanceFailoverGroupsClient) ListByLocationComplete ¶
func (client InstanceFailoverGroupsClient) ListByLocationComplete(ctx context.Context, resourceGroupName string, locationName string) (result InstanceFailoverGroupListResultIterator, err error)
ListByLocationComplete enumerates all values, automatically crossing page boundaries as required.
func (InstanceFailoverGroupsClient) ListByLocationPreparer ¶
func (client InstanceFailoverGroupsClient) ListByLocationPreparer(ctx context.Context, resourceGroupName string, locationName string) (*http.Request, error)
ListByLocationPreparer prepares the ListByLocation request.
func (InstanceFailoverGroupsClient) ListByLocationResponder ¶
func (client InstanceFailoverGroupsClient) ListByLocationResponder(resp *http.Response) (result InstanceFailoverGroupListResult, err error)
ListByLocationResponder handles the response to the ListByLocation request. The method always closes the http.Response Body.
func (InstanceFailoverGroupsClient) ListByLocationSender ¶
func (client InstanceFailoverGroupsClient) ListByLocationSender(req *http.Request) (*http.Response, error)
ListByLocationSender sends the ListByLocation request. The method will close the http.Response Body if it receives an error.
type InstanceFailoverGroupsCreateOrUpdateFuture ¶
InstanceFailoverGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*InstanceFailoverGroupsCreateOrUpdateFuture) Result ¶
func (future *InstanceFailoverGroupsCreateOrUpdateFuture) Result(client InstanceFailoverGroupsClient) (ifg InstanceFailoverGroup, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type InstanceFailoverGroupsDeleteFuture ¶
InstanceFailoverGroupsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*InstanceFailoverGroupsDeleteFuture) Result ¶
func (future *InstanceFailoverGroupsDeleteFuture) Result(client InstanceFailoverGroupsClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type InstanceFailoverGroupsFailoverFuture ¶
InstanceFailoverGroupsFailoverFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*InstanceFailoverGroupsFailoverFuture) Result ¶
func (future *InstanceFailoverGroupsFailoverFuture) Result(client InstanceFailoverGroupsClient) (ifg InstanceFailoverGroup, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type InstanceFailoverGroupsForceFailoverAllowDataLossFuture ¶
InstanceFailoverGroupsForceFailoverAllowDataLossFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*InstanceFailoverGroupsForceFailoverAllowDataLossFuture) Result ¶
func (future *InstanceFailoverGroupsForceFailoverAllowDataLossFuture) Result(client InstanceFailoverGroupsClient) (ifg InstanceFailoverGroup, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type LicenseTypeCapability ¶
type LicenseTypeCapability struct { // Name - READ-ONLY; License type identifier. Name *string `json:"name,omitempty"` // Status - READ-ONLY; The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` }
LicenseTypeCapability the license type capability
type LocationCapabilities ¶
type LocationCapabilities struct { autorest.Response `json:"-"` // Name - READ-ONLY; The location name. Name *string `json:"name,omitempty"` // SupportedServerVersions - READ-ONLY; The list of supported server versions. SupportedServerVersions *[]ServerVersionCapability `json:"supportedServerVersions,omitempty"` // SupportedManagedInstanceVersions - READ-ONLY; The list of supported managed instance versions. SupportedManagedInstanceVersions *[]ManagedInstanceVersionCapability `json:"supportedManagedInstanceVersions,omitempty"` // Status - READ-ONLY; The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` }
LocationCapabilities the location capability.
type LogSizeCapability ¶
type LogSizeCapability struct { // Limit - READ-ONLY; The log size limit (see 'unit' for the units). Limit *int32 `json:"limit,omitempty"` // Unit - READ-ONLY; The units that the limit is expressed in. Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes', 'Percent' Unit LogSizeUnit `json:"unit,omitempty"` }
LogSizeCapability the log size capability.
type LogSizeUnit ¶
type LogSizeUnit string
LogSizeUnit enumerates the values for log size unit.
const ( // Gigabytes ... Gigabytes LogSizeUnit = "Gigabytes" // Megabytes ... Megabytes LogSizeUnit = "Megabytes" // Percent ... Percent LogSizeUnit = "Percent" // Petabytes ... Petabytes LogSizeUnit = "Petabytes" // Terabytes ... Terabytes LogSizeUnit = "Terabytes" )
func PossibleLogSizeUnitValues ¶
func PossibleLogSizeUnitValues() []LogSizeUnit
PossibleLogSizeUnitValues returns an array of possible values for the LogSizeUnit const type.
type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient ¶
type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient struct {
BaseClient
}
ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.
func NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient ¶
func NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient(subscriptionID string) ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient
NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient creates an instance of the ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient client.
func NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI ¶
func NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient
NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI creates an instance of the ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdate ¶
func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName, parameters DatabaseVulnerabilityAssessmentRuleBaseline) (result DatabaseVulnerabilityAssessmentRuleBaseline, err error)
CreateOrUpdate creates or updates a database's vulnerability assessment rule baseline. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database for which the vulnerability assessment rule baseline is defined. ruleID - the vulnerability assessment rule ID. baselineName - the name of the vulnerability assessment rule baseline (default implies a baseline on a database level rule and master for server level rule). parameters - the requested rule baseline resource.
func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdatePreparer ¶
func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName, parameters DatabaseVulnerabilityAssessmentRuleBaseline) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdateResponder ¶
func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdateResponder(resp *http.Response) (result DatabaseVulnerabilityAssessmentRuleBaseline, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdateSender ¶
func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) Delete ¶
func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) Delete(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName) (result autorest.Response, err error)
Delete removes the database's vulnerability assessment rule baseline. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database for which the vulnerability assessment rule baseline is defined. ruleID - the vulnerability assessment rule ID. baselineName - the name of the vulnerability assessment rule baseline (default implies a baseline on a database level rule and master for server level rule).
func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) DeletePreparer ¶
func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) DeleteResponder ¶
func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) DeleteSender ¶
func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) DeleteSender(req *http.Request) (*http.Response, error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) Get ¶
func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName) (result DatabaseVulnerabilityAssessmentRuleBaseline, err error)
Get gets a database's vulnerability assessment rule baseline. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database for which the vulnerability assessment rule baseline is defined. ruleID - the vulnerability assessment rule ID. baselineName - the name of the vulnerability assessment rule baseline (default implies a baseline on a database level rule and master for server level rule).
func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) GetPreparer ¶
func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName) (*http.Request, error)
GetPreparer prepares the Get request.
func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) GetResponder ¶
func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) GetResponder(resp *http.Response) (result DatabaseVulnerabilityAssessmentRuleBaseline, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) GetSender ¶
func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
type ManagedDatabaseVulnerabilityAssessmentScansClient ¶
type ManagedDatabaseVulnerabilityAssessmentScansClient struct {
BaseClient
}
ManagedDatabaseVulnerabilityAssessmentScansClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.
func NewManagedDatabaseVulnerabilityAssessmentScansClient ¶
func NewManagedDatabaseVulnerabilityAssessmentScansClient(subscriptionID string) ManagedDatabaseVulnerabilityAssessmentScansClient
NewManagedDatabaseVulnerabilityAssessmentScansClient creates an instance of the ManagedDatabaseVulnerabilityAssessmentScansClient client.
func NewManagedDatabaseVulnerabilityAssessmentScansClientWithBaseURI ¶
func NewManagedDatabaseVulnerabilityAssessmentScansClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseVulnerabilityAssessmentScansClient
NewManagedDatabaseVulnerabilityAssessmentScansClientWithBaseURI creates an instance of the ManagedDatabaseVulnerabilityAssessmentScansClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (ManagedDatabaseVulnerabilityAssessmentScansClient) Export ¶
func (client ManagedDatabaseVulnerabilityAssessmentScansClient) Export(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, scanID string) (result DatabaseVulnerabilityAssessmentScansExport, err error)
Export convert an existing scan result to a human readable format. If already exists nothing happens Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the scanned database. scanID - the vulnerability assessment scan Id.
func (ManagedDatabaseVulnerabilityAssessmentScansClient) ExportPreparer ¶
func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ExportPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, scanID string) (*http.Request, error)
ExportPreparer prepares the Export request.
func (ManagedDatabaseVulnerabilityAssessmentScansClient) ExportResponder ¶
func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ExportResponder(resp *http.Response) (result DatabaseVulnerabilityAssessmentScansExport, err error)
ExportResponder handles the response to the Export request. The method always closes the http.Response Body.
func (ManagedDatabaseVulnerabilityAssessmentScansClient) ExportSender ¶
func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ExportSender(req *http.Request) (*http.Response, error)
ExportSender sends the Export request. The method will close the http.Response Body if it receives an error.
func (ManagedDatabaseVulnerabilityAssessmentScansClient) Get ¶
func (client ManagedDatabaseVulnerabilityAssessmentScansClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, scanID string) (result VulnerabilityAssessmentScanRecord, err error)
Get gets a vulnerability assessment scan record of a database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database. scanID - the vulnerability assessment scan Id of the scan to retrieve.
func (ManagedDatabaseVulnerabilityAssessmentScansClient) GetPreparer ¶
func (client ManagedDatabaseVulnerabilityAssessmentScansClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, scanID string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ManagedDatabaseVulnerabilityAssessmentScansClient) GetResponder ¶
func (client ManagedDatabaseVulnerabilityAssessmentScansClient) GetResponder(resp *http.Response) (result VulnerabilityAssessmentScanRecord, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ManagedDatabaseVulnerabilityAssessmentScansClient) GetSender ¶
func (client ManagedDatabaseVulnerabilityAssessmentScansClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScan ¶
func (client ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScan(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, scanID string) (result ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture, err error)
InitiateScan executes a Vulnerability Assessment database scan. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database. scanID - the vulnerability assessment scan Id of the scan to retrieve.
func (ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScanPreparer ¶
func (client ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScanPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, scanID string) (*http.Request, error)
InitiateScanPreparer prepares the InitiateScan request.
func (ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScanResponder ¶
func (client ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScanResponder(resp *http.Response) (result autorest.Response, err error)
InitiateScanResponder handles the response to the InitiateScan request. The method always closes the http.Response Body.
func (ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScanSender ¶
func (client ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScanSender(req *http.Request) (future ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture, err error)
InitiateScanSender sends the InitiateScan request. The method will close the http.Response Body if it receives an error.
func (ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabase ¶
func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabase(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result VulnerabilityAssessmentScanRecordListResultPage, err error)
ListByDatabase lists the vulnerability assessment scans of a database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database.
func (ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabaseComplete ¶
func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabaseComplete(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result VulnerabilityAssessmentScanRecordListResultIterator, err error)
ListByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.
func (ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabasePreparer ¶
func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (*http.Request, error)
ListByDatabasePreparer prepares the ListByDatabase request.
func (ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabaseResponder ¶
func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabaseResponder(resp *http.Response) (result VulnerabilityAssessmentScanRecordListResult, err error)
ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.
func (ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabaseSender ¶
func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)
ListByDatabaseSender sends the ListByDatabase request. The method will close the http.Response Body if it receives an error.
type ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture ¶
ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture) Result ¶
func (future *ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture) Result(client ManagedDatabaseVulnerabilityAssessmentScansClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type ManagedDatabaseVulnerabilityAssessmentsClient ¶
type ManagedDatabaseVulnerabilityAssessmentsClient struct {
BaseClient
}
ManagedDatabaseVulnerabilityAssessmentsClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.
func NewManagedDatabaseVulnerabilityAssessmentsClient ¶
func NewManagedDatabaseVulnerabilityAssessmentsClient(subscriptionID string) ManagedDatabaseVulnerabilityAssessmentsClient
NewManagedDatabaseVulnerabilityAssessmentsClient creates an instance of the ManagedDatabaseVulnerabilityAssessmentsClient client.
func NewManagedDatabaseVulnerabilityAssessmentsClientWithBaseURI ¶
func NewManagedDatabaseVulnerabilityAssessmentsClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseVulnerabilityAssessmentsClient
NewManagedDatabaseVulnerabilityAssessmentsClientWithBaseURI creates an instance of the ManagedDatabaseVulnerabilityAssessmentsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdate ¶
func (client ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters DatabaseVulnerabilityAssessment) (result DatabaseVulnerabilityAssessment, err error)
CreateOrUpdate creates or updates the database's vulnerability assessment. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database for which the vulnerability assessment is defined. parameters - the requested resource.
func (ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdatePreparer ¶
func (client ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters DatabaseVulnerabilityAssessment) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdateResponder ¶
func (client ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdateResponder(resp *http.Response) (result DatabaseVulnerabilityAssessment, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdateSender ¶
func (client ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (ManagedDatabaseVulnerabilityAssessmentsClient) Delete ¶
func (client ManagedDatabaseVulnerabilityAssessmentsClient) Delete(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result autorest.Response, err error)
Delete removes the database's vulnerability assessment. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database for which the vulnerability assessment is defined.
func (ManagedDatabaseVulnerabilityAssessmentsClient) DeletePreparer ¶
func (client ManagedDatabaseVulnerabilityAssessmentsClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (ManagedDatabaseVulnerabilityAssessmentsClient) DeleteResponder ¶
func (client ManagedDatabaseVulnerabilityAssessmentsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (ManagedDatabaseVulnerabilityAssessmentsClient) DeleteSender ¶
func (client ManagedDatabaseVulnerabilityAssessmentsClient) DeleteSender(req *http.Request) (*http.Response, error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (ManagedDatabaseVulnerabilityAssessmentsClient) Get ¶
func (client ManagedDatabaseVulnerabilityAssessmentsClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result DatabaseVulnerabilityAssessment, err error)
Get gets the database's vulnerability assessment. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database for which the vulnerability assessment is defined.
func (ManagedDatabaseVulnerabilityAssessmentsClient) GetPreparer ¶
func (client ManagedDatabaseVulnerabilityAssessmentsClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ManagedDatabaseVulnerabilityAssessmentsClient) GetResponder ¶
func (client ManagedDatabaseVulnerabilityAssessmentsClient) GetResponder(resp *http.Response) (result DatabaseVulnerabilityAssessment, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ManagedDatabaseVulnerabilityAssessmentsClient) GetSender ¶
func (client ManagedDatabaseVulnerabilityAssessmentsClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabase ¶
func (client ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabase(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result DatabaseVulnerabilityAssessmentListResultPage, err error)
ListByDatabase lists the vulnerability assessments of a managed database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database for which the vulnerability assessment is defined.
func (ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabaseComplete ¶
func (client ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabaseComplete(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result DatabaseVulnerabilityAssessmentListResultIterator, err error)
ListByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.
func (ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabasePreparer ¶
func (client ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (*http.Request, error)
ListByDatabasePreparer prepares the ListByDatabase request.
func (ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabaseResponder ¶
func (client ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabaseResponder(resp *http.Response) (result DatabaseVulnerabilityAssessmentListResult, err error)
ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.
func (ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabaseSender ¶
func (client ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)
ListByDatabaseSender sends the ListByDatabase request. The method will close the http.Response Body if it receives an error.
type ManagedInstanceEditionCapability ¶
type ManagedInstanceEditionCapability struct { // Name - READ-ONLY; The managed server version name. Name *string `json:"name,omitempty"` // SupportedFamilies - READ-ONLY; The supported families. SupportedFamilies *[]ManagedInstanceFamilyCapability `json:"supportedFamilies,omitempty"` // Status - READ-ONLY; The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` }
ManagedInstanceEditionCapability the managed server capability
type ManagedInstanceEncryptionProtector ¶
type ManagedInstanceEncryptionProtector struct { autorest.Response `json:"-"` // Kind - READ-ONLY; Kind of encryption protector. This is metadata used for the Azure portal experience. Kind *string `json:"kind,omitempty"` // ManagedInstanceEncryptionProtectorProperties - Resource properties. *ManagedInstanceEncryptionProtectorProperties `json:"properties,omitempty"` // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` }
ManagedInstanceEncryptionProtector the managed instance encryption protector.
func (ManagedInstanceEncryptionProtector) MarshalJSON ¶
func (miep ManagedInstanceEncryptionProtector) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ManagedInstanceEncryptionProtector.
func (*ManagedInstanceEncryptionProtector) UnmarshalJSON ¶
func (miep *ManagedInstanceEncryptionProtector) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ManagedInstanceEncryptionProtector struct.
type ManagedInstanceEncryptionProtectorListResult ¶
type ManagedInstanceEncryptionProtectorListResult struct { autorest.Response `json:"-"` // Value - READ-ONLY; Array of results. Value *[]ManagedInstanceEncryptionProtector `json:"value,omitempty"` // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` }
ManagedInstanceEncryptionProtectorListResult a list of managed instance encryption protectors.
func (ManagedInstanceEncryptionProtectorListResult) IsEmpty ¶
func (mieplr ManagedInstanceEncryptionProtectorListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type ManagedInstanceEncryptionProtectorListResultIterator ¶
type ManagedInstanceEncryptionProtectorListResultIterator struct {
// contains filtered or unexported fields
}
ManagedInstanceEncryptionProtectorListResultIterator provides access to a complete listing of ManagedInstanceEncryptionProtector values.
func NewManagedInstanceEncryptionProtectorListResultIterator ¶
func NewManagedInstanceEncryptionProtectorListResultIterator(page ManagedInstanceEncryptionProtectorListResultPage) ManagedInstanceEncryptionProtectorListResultIterator
Creates a new instance of the ManagedInstanceEncryptionProtectorListResultIterator type.
func (*ManagedInstanceEncryptionProtectorListResultIterator) Next ¶
func (iter *ManagedInstanceEncryptionProtectorListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*ManagedInstanceEncryptionProtectorListResultIterator) NextWithContext ¶
func (iter *ManagedInstanceEncryptionProtectorListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (ManagedInstanceEncryptionProtectorListResultIterator) NotDone ¶
func (iter ManagedInstanceEncryptionProtectorListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (ManagedInstanceEncryptionProtectorListResultIterator) Response ¶
func (iter ManagedInstanceEncryptionProtectorListResultIterator) Response() ManagedInstanceEncryptionProtectorListResult
Response returns the raw server response from the last page request.
func (ManagedInstanceEncryptionProtectorListResultIterator) Value ¶
func (iter ManagedInstanceEncryptionProtectorListResultIterator) Value() ManagedInstanceEncryptionProtector
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type ManagedInstanceEncryptionProtectorListResultPage ¶
type ManagedInstanceEncryptionProtectorListResultPage struct {
// contains filtered or unexported fields
}
ManagedInstanceEncryptionProtectorListResultPage contains a page of ManagedInstanceEncryptionProtector values.
func NewManagedInstanceEncryptionProtectorListResultPage ¶
func NewManagedInstanceEncryptionProtectorListResultPage(getNextPage func(context.Context, ManagedInstanceEncryptionProtectorListResult) (ManagedInstanceEncryptionProtectorListResult, error)) ManagedInstanceEncryptionProtectorListResultPage
Creates a new instance of the ManagedInstanceEncryptionProtectorListResultPage type.
func (*ManagedInstanceEncryptionProtectorListResultPage) Next ¶
func (page *ManagedInstanceEncryptionProtectorListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*ManagedInstanceEncryptionProtectorListResultPage) NextWithContext ¶
func (page *ManagedInstanceEncryptionProtectorListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (ManagedInstanceEncryptionProtectorListResultPage) NotDone ¶
func (page ManagedInstanceEncryptionProtectorListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (ManagedInstanceEncryptionProtectorListResultPage) Response ¶
func (page ManagedInstanceEncryptionProtectorListResultPage) Response() ManagedInstanceEncryptionProtectorListResult
Response returns the raw server response from the last page request.
func (ManagedInstanceEncryptionProtectorListResultPage) Values ¶
func (page ManagedInstanceEncryptionProtectorListResultPage) Values() []ManagedInstanceEncryptionProtector
Values returns the slice of values for the current page or nil if there are no values.
type ManagedInstanceEncryptionProtectorProperties ¶
type ManagedInstanceEncryptionProtectorProperties struct { // ServerKeyName - The name of the managed instance key. ServerKeyName *string `json:"serverKeyName,omitempty"` // ServerKeyType - The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: 'ServiceManaged', 'AzureKeyVault' ServerKeyType ServerKeyType `json:"serverKeyType,omitempty"` // URI - READ-ONLY; The URI of the server key. URI *string `json:"uri,omitempty"` // Thumbprint - READ-ONLY; Thumbprint of the server key. Thumbprint *string `json:"thumbprint,omitempty"` }
ManagedInstanceEncryptionProtectorProperties properties for an encryption protector execution.
type ManagedInstanceEncryptionProtectorsClient ¶
type ManagedInstanceEncryptionProtectorsClient struct {
BaseClient
}
ManagedInstanceEncryptionProtectorsClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.
func NewManagedInstanceEncryptionProtectorsClient ¶
func NewManagedInstanceEncryptionProtectorsClient(subscriptionID string) ManagedInstanceEncryptionProtectorsClient
NewManagedInstanceEncryptionProtectorsClient creates an instance of the ManagedInstanceEncryptionProtectorsClient client.
func NewManagedInstanceEncryptionProtectorsClientWithBaseURI ¶
func NewManagedInstanceEncryptionProtectorsClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstanceEncryptionProtectorsClient
NewManagedInstanceEncryptionProtectorsClientWithBaseURI creates an instance of the ManagedInstanceEncryptionProtectorsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (ManagedInstanceEncryptionProtectorsClient) CreateOrUpdate ¶
func (client ManagedInstanceEncryptionProtectorsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters ManagedInstanceEncryptionProtector) (result ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture, err error)
CreateOrUpdate updates an existing encryption protector. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. parameters - the requested encryption protector resource state.
func (ManagedInstanceEncryptionProtectorsClient) CreateOrUpdatePreparer ¶
func (client ManagedInstanceEncryptionProtectorsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters ManagedInstanceEncryptionProtector) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (ManagedInstanceEncryptionProtectorsClient) CreateOrUpdateResponder ¶
func (client ManagedInstanceEncryptionProtectorsClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedInstanceEncryptionProtector, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (ManagedInstanceEncryptionProtectorsClient) CreateOrUpdateSender ¶
func (client ManagedInstanceEncryptionProtectorsClient) CreateOrUpdateSender(req *http.Request) (future ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (ManagedInstanceEncryptionProtectorsClient) Get ¶
func (client ManagedInstanceEncryptionProtectorsClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceEncryptionProtector, err error)
Get gets a managed instance encryption protector. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance.
func (ManagedInstanceEncryptionProtectorsClient) GetPreparer ¶
func (client ManagedInstanceEncryptionProtectorsClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ManagedInstanceEncryptionProtectorsClient) GetResponder ¶
func (client ManagedInstanceEncryptionProtectorsClient) GetResponder(resp *http.Response) (result ManagedInstanceEncryptionProtector, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ManagedInstanceEncryptionProtectorsClient) GetSender ¶
func (client ManagedInstanceEncryptionProtectorsClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ManagedInstanceEncryptionProtectorsClient) ListByInstance ¶
func (client ManagedInstanceEncryptionProtectorsClient) ListByInstance(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceEncryptionProtectorListResultPage, err error)
ListByInstance gets a list of managed instance encryption protectors Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance.
func (ManagedInstanceEncryptionProtectorsClient) ListByInstanceComplete ¶
func (client ManagedInstanceEncryptionProtectorsClient) ListByInstanceComplete(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceEncryptionProtectorListResultIterator, err error)
ListByInstanceComplete enumerates all values, automatically crossing page boundaries as required.
func (ManagedInstanceEncryptionProtectorsClient) ListByInstancePreparer ¶
func (client ManagedInstanceEncryptionProtectorsClient) ListByInstancePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error)
ListByInstancePreparer prepares the ListByInstance request.
func (ManagedInstanceEncryptionProtectorsClient) ListByInstanceResponder ¶
func (client ManagedInstanceEncryptionProtectorsClient) ListByInstanceResponder(resp *http.Response) (result ManagedInstanceEncryptionProtectorListResult, err error)
ListByInstanceResponder handles the response to the ListByInstance request. The method always closes the http.Response Body.
func (ManagedInstanceEncryptionProtectorsClient) ListByInstanceSender ¶
func (client ManagedInstanceEncryptionProtectorsClient) ListByInstanceSender(req *http.Request) (*http.Response, error)
ListByInstanceSender sends the ListByInstance request. The method will close the http.Response Body if it receives an error.
func (ManagedInstanceEncryptionProtectorsClient) Revalidate ¶
func (client ManagedInstanceEncryptionProtectorsClient) Revalidate(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceEncryptionProtectorsRevalidateFuture, err error)
Revalidate revalidates an existing encryption protector. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance.
func (ManagedInstanceEncryptionProtectorsClient) RevalidatePreparer ¶
func (client ManagedInstanceEncryptionProtectorsClient) RevalidatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error)
RevalidatePreparer prepares the Revalidate request.
func (ManagedInstanceEncryptionProtectorsClient) RevalidateResponder ¶
func (client ManagedInstanceEncryptionProtectorsClient) RevalidateResponder(resp *http.Response) (result autorest.Response, err error)
RevalidateResponder handles the response to the Revalidate request. The method always closes the http.Response Body.
func (ManagedInstanceEncryptionProtectorsClient) RevalidateSender ¶
func (client ManagedInstanceEncryptionProtectorsClient) RevalidateSender(req *http.Request) (future ManagedInstanceEncryptionProtectorsRevalidateFuture, err error)
RevalidateSender sends the Revalidate request. The method will close the http.Response Body if it receives an error.
type ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture ¶
ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture) Result ¶
func (future *ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture) Result(client ManagedInstanceEncryptionProtectorsClient) (miep ManagedInstanceEncryptionProtector, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type ManagedInstanceEncryptionProtectorsRevalidateFuture ¶
ManagedInstanceEncryptionProtectorsRevalidateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ManagedInstanceEncryptionProtectorsRevalidateFuture) Result ¶
func (future *ManagedInstanceEncryptionProtectorsRevalidateFuture) Result(client ManagedInstanceEncryptionProtectorsClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type ManagedInstanceFamilyCapability ¶
type ManagedInstanceFamilyCapability struct { // Name - READ-ONLY; Family name. Name *string `json:"name,omitempty"` // Sku - READ-ONLY; SKU name. Sku *string `json:"sku,omitempty"` // SupportedLicenseTypes - READ-ONLY; List of supported license types. SupportedLicenseTypes *[]LicenseTypeCapability `json:"supportedLicenseTypes,omitempty"` // SupportedVcoresValues - READ-ONLY; List of supported virtual cores values. SupportedVcoresValues *[]ManagedInstanceVcoresCapability `json:"supportedVcoresValues,omitempty"` // IncludedMaxSize - READ-ONLY; Included size. IncludedMaxSize *MaxSizeCapability `json:"includedMaxSize,omitempty"` // SupportedStorageSizes - READ-ONLY; Storage size ranges. SupportedStorageSizes *[]MaxSizeRangeCapability `json:"supportedStorageSizes,omitempty"` // Status - READ-ONLY; The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` }
ManagedInstanceFamilyCapability the managed server family capability.
type ManagedInstanceKey ¶
type ManagedInstanceKey struct { autorest.Response `json:"-"` // Kind - READ-ONLY; Kind of encryption protector. This is metadata used for the Azure portal experience. Kind *string `json:"kind,omitempty"` // ManagedInstanceKeyProperties - Resource properties. *ManagedInstanceKeyProperties `json:"properties,omitempty"` // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` }
ManagedInstanceKey a managed instance key.
func (ManagedInstanceKey) MarshalJSON ¶
func (mik ManagedInstanceKey) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ManagedInstanceKey.
func (*ManagedInstanceKey) UnmarshalJSON ¶
func (mik *ManagedInstanceKey) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ManagedInstanceKey struct.
type ManagedInstanceKeyListResult ¶
type ManagedInstanceKeyListResult struct { autorest.Response `json:"-"` // Value - READ-ONLY; Array of results. Value *[]ManagedInstanceKey `json:"value,omitempty"` // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` }
ManagedInstanceKeyListResult a list of managed instance keys.
func (ManagedInstanceKeyListResult) IsEmpty ¶
func (miklr ManagedInstanceKeyListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type ManagedInstanceKeyListResultIterator ¶
type ManagedInstanceKeyListResultIterator struct {
// contains filtered or unexported fields
}
ManagedInstanceKeyListResultIterator provides access to a complete listing of ManagedInstanceKey values.
func NewManagedInstanceKeyListResultIterator ¶
func NewManagedInstanceKeyListResultIterator(page ManagedInstanceKeyListResultPage) ManagedInstanceKeyListResultIterator
Creates a new instance of the ManagedInstanceKeyListResultIterator type.
func (*ManagedInstanceKeyListResultIterator) Next ¶
func (iter *ManagedInstanceKeyListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*ManagedInstanceKeyListResultIterator) NextWithContext ¶
func (iter *ManagedInstanceKeyListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (ManagedInstanceKeyListResultIterator) NotDone ¶
func (iter ManagedInstanceKeyListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (ManagedInstanceKeyListResultIterator) Response ¶
func (iter ManagedInstanceKeyListResultIterator) Response() ManagedInstanceKeyListResult
Response returns the raw server response from the last page request.
func (ManagedInstanceKeyListResultIterator) Value ¶
func (iter ManagedInstanceKeyListResultIterator) Value() ManagedInstanceKey
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type ManagedInstanceKeyListResultPage ¶
type ManagedInstanceKeyListResultPage struct {
// contains filtered or unexported fields
}
ManagedInstanceKeyListResultPage contains a page of ManagedInstanceKey values.
func NewManagedInstanceKeyListResultPage ¶
func NewManagedInstanceKeyListResultPage(getNextPage func(context.Context, ManagedInstanceKeyListResult) (ManagedInstanceKeyListResult, error)) ManagedInstanceKeyListResultPage
Creates a new instance of the ManagedInstanceKeyListResultPage type.
func (*ManagedInstanceKeyListResultPage) Next ¶
func (page *ManagedInstanceKeyListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*ManagedInstanceKeyListResultPage) NextWithContext ¶
func (page *ManagedInstanceKeyListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (ManagedInstanceKeyListResultPage) NotDone ¶
func (page ManagedInstanceKeyListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (ManagedInstanceKeyListResultPage) Response ¶
func (page ManagedInstanceKeyListResultPage) Response() ManagedInstanceKeyListResult
Response returns the raw server response from the last page request.
func (ManagedInstanceKeyListResultPage) Values ¶
func (page ManagedInstanceKeyListResultPage) Values() []ManagedInstanceKey
Values returns the slice of values for the current page or nil if there are no values.
type ManagedInstanceKeyProperties ¶
type ManagedInstanceKeyProperties struct { // ServerKeyType - The key type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: 'ServiceManaged', 'AzureKeyVault' ServerKeyType ServerKeyType `json:"serverKeyType,omitempty"` // URI - The URI of the key. If the ServerKeyType is AzureKeyVault, then the URI is required. URI *string `json:"uri,omitempty"` // Thumbprint - READ-ONLY; Thumbprint of the key. Thumbprint *string `json:"thumbprint,omitempty"` // CreationDate - READ-ONLY; The key creation date. CreationDate *date.Time `json:"creationDate,omitempty"` }
ManagedInstanceKeyProperties properties for a key execution.
type ManagedInstanceKeysClient ¶
type ManagedInstanceKeysClient struct {
BaseClient
}
ManagedInstanceKeysClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.
func NewManagedInstanceKeysClient ¶
func NewManagedInstanceKeysClient(subscriptionID string) ManagedInstanceKeysClient
NewManagedInstanceKeysClient creates an instance of the ManagedInstanceKeysClient client.
func NewManagedInstanceKeysClientWithBaseURI ¶
func NewManagedInstanceKeysClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstanceKeysClient
NewManagedInstanceKeysClientWithBaseURI creates an instance of the ManagedInstanceKeysClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (ManagedInstanceKeysClient) CreateOrUpdate ¶
func (client ManagedInstanceKeysClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, keyName string, parameters ManagedInstanceKey) (result ManagedInstanceKeysCreateOrUpdateFuture, err error)
CreateOrUpdate creates or updates a managed instance key. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. keyName - the name of the managed instance key to be operated on (updated or created). parameters - the requested managed instance key resource state.
func (ManagedInstanceKeysClient) CreateOrUpdatePreparer ¶
func (client ManagedInstanceKeysClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, keyName string, parameters ManagedInstanceKey) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (ManagedInstanceKeysClient) CreateOrUpdateResponder ¶
func (client ManagedInstanceKeysClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedInstanceKey, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (ManagedInstanceKeysClient) CreateOrUpdateSender ¶
func (client ManagedInstanceKeysClient) CreateOrUpdateSender(req *http.Request) (future ManagedInstanceKeysCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (ManagedInstanceKeysClient) Delete ¶
func (client ManagedInstanceKeysClient) Delete(ctx context.Context, resourceGroupName string, managedInstanceName string, keyName string) (result ManagedInstanceKeysDeleteFuture, err error)
Delete deletes the managed instance key with the given name. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. keyName - the name of the managed instance key to be deleted.
func (ManagedInstanceKeysClient) DeletePreparer ¶
func (client ManagedInstanceKeysClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, keyName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (ManagedInstanceKeysClient) DeleteResponder ¶
func (client ManagedInstanceKeysClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (ManagedInstanceKeysClient) DeleteSender ¶
func (client ManagedInstanceKeysClient) DeleteSender(req *http.Request) (future ManagedInstanceKeysDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (ManagedInstanceKeysClient) Get ¶
func (client ManagedInstanceKeysClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, keyName string) (result ManagedInstanceKey, err error)
Get gets a managed instance key. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. keyName - the name of the managed instance key to be retrieved.
func (ManagedInstanceKeysClient) GetPreparer ¶
func (client ManagedInstanceKeysClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, keyName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ManagedInstanceKeysClient) GetResponder ¶
func (client ManagedInstanceKeysClient) GetResponder(resp *http.Response) (result ManagedInstanceKey, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ManagedInstanceKeysClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ManagedInstanceKeysClient) ListByInstance ¶
func (client ManagedInstanceKeysClient) ListByInstance(ctx context.Context, resourceGroupName string, managedInstanceName string, filter string) (result ManagedInstanceKeyListResultPage, err error)
ListByInstance gets a list of managed instance keys. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. filter - an OData filter expression that filters elements in the collection.
func (ManagedInstanceKeysClient) ListByInstanceComplete ¶
func (client ManagedInstanceKeysClient) ListByInstanceComplete(ctx context.Context, resourceGroupName string, managedInstanceName string, filter string) (result ManagedInstanceKeyListResultIterator, err error)
ListByInstanceComplete enumerates all values, automatically crossing page boundaries as required.
func (ManagedInstanceKeysClient) ListByInstancePreparer ¶
func (client ManagedInstanceKeysClient) ListByInstancePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, filter string) (*http.Request, error)
ListByInstancePreparer prepares the ListByInstance request.
func (ManagedInstanceKeysClient) ListByInstanceResponder ¶
func (client ManagedInstanceKeysClient) ListByInstanceResponder(resp *http.Response) (result ManagedInstanceKeyListResult, err error)
ListByInstanceResponder handles the response to the ListByInstance request. The method always closes the http.Response Body.
func (ManagedInstanceKeysClient) ListByInstanceSender ¶
func (client ManagedInstanceKeysClient) ListByInstanceSender(req *http.Request) (*http.Response, error)
ListByInstanceSender sends the ListByInstance request. The method will close the http.Response Body if it receives an error.
type ManagedInstanceKeysCreateOrUpdateFuture ¶
ManagedInstanceKeysCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ManagedInstanceKeysCreateOrUpdateFuture) Result ¶
func (future *ManagedInstanceKeysCreateOrUpdateFuture) Result(client ManagedInstanceKeysClient) (mik ManagedInstanceKey, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type ManagedInstanceKeysDeleteFuture ¶
ManagedInstanceKeysDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ManagedInstanceKeysDeleteFuture) Result ¶
func (future *ManagedInstanceKeysDeleteFuture) Result(client ManagedInstanceKeysClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type ManagedInstancePairInfo ¶
type ManagedInstancePairInfo struct { // PrimaryManagedInstanceID - Id of Primary Managed Instance in pair. PrimaryManagedInstanceID *string `json:"primaryManagedInstanceId,omitempty"` // PartnerManagedInstanceID - Id of Partner Managed Instance in pair. PartnerManagedInstanceID *string `json:"partnerManagedInstanceId,omitempty"` }
ManagedInstancePairInfo pairs of Managed Instances in the failover group.
type ManagedInstanceTdeCertificatesClient ¶
type ManagedInstanceTdeCertificatesClient struct {
BaseClient
}
ManagedInstanceTdeCertificatesClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.
func NewManagedInstanceTdeCertificatesClient ¶
func NewManagedInstanceTdeCertificatesClient(subscriptionID string) ManagedInstanceTdeCertificatesClient
NewManagedInstanceTdeCertificatesClient creates an instance of the ManagedInstanceTdeCertificatesClient client.
func NewManagedInstanceTdeCertificatesClientWithBaseURI ¶
func NewManagedInstanceTdeCertificatesClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstanceTdeCertificatesClient
NewManagedInstanceTdeCertificatesClientWithBaseURI creates an instance of the ManagedInstanceTdeCertificatesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (ManagedInstanceTdeCertificatesClient) Create ¶
func (client ManagedInstanceTdeCertificatesClient) Create(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters TdeCertificate) (result ManagedInstanceTdeCertificatesCreateFuture, err error)
Create creates a TDE certificate for a given server. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. parameters - the requested TDE certificate to be created or updated.
func (ManagedInstanceTdeCertificatesClient) CreatePreparer ¶
func (client ManagedInstanceTdeCertificatesClient) CreatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters TdeCertificate) (*http.Request, error)
CreatePreparer prepares the Create request.
func (ManagedInstanceTdeCertificatesClient) CreateResponder ¶
func (client ManagedInstanceTdeCertificatesClient) CreateResponder(resp *http.Response) (result autorest.Response, err error)
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (ManagedInstanceTdeCertificatesClient) CreateSender ¶
func (client ManagedInstanceTdeCertificatesClient) CreateSender(req *http.Request) (future ManagedInstanceTdeCertificatesCreateFuture, err error)
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
type ManagedInstanceTdeCertificatesCreateFuture ¶
ManagedInstanceTdeCertificatesCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ManagedInstanceTdeCertificatesCreateFuture) Result ¶
func (future *ManagedInstanceTdeCertificatesCreateFuture) Result(client ManagedInstanceTdeCertificatesClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type ManagedInstanceVcoresCapability ¶
type ManagedInstanceVcoresCapability struct { // Name - READ-ONLY; The virtual cores identifier. Name *string `json:"name,omitempty"` // Value - READ-ONLY; The virtual cores value. Value *int32 `json:"value,omitempty"` // Status - READ-ONLY; The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` }
ManagedInstanceVcoresCapability the managed instance virtual cores capability.
type ManagedInstanceVersionCapability ¶
type ManagedInstanceVersionCapability struct { // Name - READ-ONLY; The server version name. Name *string `json:"name,omitempty"` // SupportedEditions - READ-ONLY; The list of supported managed instance editions. SupportedEditions *[]ManagedInstanceEditionCapability `json:"supportedEditions,omitempty"` // Status - READ-ONLY; The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` }
ManagedInstanceVersionCapability the managed instance capability
type ManagementOperationState ¶
type ManagementOperationState string
ManagementOperationState enumerates the values for management operation state.
const ( // CancelInProgress ... CancelInProgress ManagementOperationState = "CancelInProgress" // Cancelled ... Cancelled ManagementOperationState = "Cancelled" // Failed ... Failed ManagementOperationState = "Failed" // InProgress ... InProgress ManagementOperationState = "InProgress" // Pending ... Pending ManagementOperationState = "Pending" // Succeeded ... Succeeded ManagementOperationState = "Succeeded" )
func PossibleManagementOperationStateValues ¶
func PossibleManagementOperationStateValues() []ManagementOperationState
PossibleManagementOperationStateValues returns an array of possible values for the ManagementOperationState const type.
type MaxSizeCapability ¶
type MaxSizeCapability struct { // Limit - READ-ONLY; The maximum size limit (see 'unit' for the units). Limit *int32 `json:"limit,omitempty"` // Unit - READ-ONLY; The units that the limit is expressed in. Possible values include: 'MaxSizeUnitMegabytes', 'MaxSizeUnitGigabytes', 'MaxSizeUnitTerabytes', 'MaxSizeUnitPetabytes' Unit MaxSizeUnit `json:"unit,omitempty"` }
MaxSizeCapability the maximum size capability.
type MaxSizeRangeCapability ¶
type MaxSizeRangeCapability struct { // MinValue - READ-ONLY; Minimum value. MinValue *MaxSizeCapability `json:"minValue,omitempty"` // MaxValue - READ-ONLY; Maximum value. MaxValue *MaxSizeCapability `json:"maxValue,omitempty"` // ScaleSize - READ-ONLY; Scale/step size for discrete values between the minimum value and the maximum value. ScaleSize *MaxSizeCapability `json:"scaleSize,omitempty"` // LogSize - READ-ONLY; Size of transaction log. LogSize *LogSizeCapability `json:"logSize,omitempty"` // Status - READ-ONLY; The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` }
MaxSizeRangeCapability the maximum size range capability.
type MaxSizeUnit ¶
type MaxSizeUnit string
MaxSizeUnit enumerates the values for max size unit.
const ( // MaxSizeUnitGigabytes ... MaxSizeUnitGigabytes MaxSizeUnit = "Gigabytes" // MaxSizeUnitMegabytes ... MaxSizeUnitMegabytes MaxSizeUnit = "Megabytes" // MaxSizeUnitPetabytes ... MaxSizeUnitPetabytes MaxSizeUnit = "Petabytes" // MaxSizeUnitTerabytes ... MaxSizeUnitTerabytes MaxSizeUnit = "Terabytes" )
func PossibleMaxSizeUnitValues ¶
func PossibleMaxSizeUnitValues() []MaxSizeUnit
PossibleMaxSizeUnitValues returns an array of possible values for the MaxSizeUnit const type.
type PartnerRegionInfo ¶
type PartnerRegionInfo struct { // Location - Geo location of the partner managed instances. Location *string `json:"location,omitempty"` // ReplicationRole - READ-ONLY; Replication role of the partner managed instances. Possible values include: 'Primary', 'Secondary' ReplicationRole InstanceFailoverGroupReplicationRole `json:"replicationRole,omitempty"` }
PartnerRegionInfo partner region information for the failover group.
type PerformanceLevelCapability ¶
type PerformanceLevelCapability struct { // Value - READ-ONLY; Performance level value. Value *float64 `json:"value,omitempty"` // Unit - READ-ONLY; Unit type used to measure performance level. Possible values include: 'DTU', 'VCores' Unit PerformanceLevelUnit `json:"unit,omitempty"` }
PerformanceLevelCapability the performance level capability.
type PerformanceLevelUnit ¶
type PerformanceLevelUnit string
PerformanceLevelUnit enumerates the values for performance level unit.
const ( // DTU ... DTU PerformanceLevelUnit = "DTU" // VCores ... VCores PerformanceLevelUnit = "VCores" )
func PossiblePerformanceLevelUnitValues ¶
func PossiblePerformanceLevelUnitValues() []PerformanceLevelUnit
PossiblePerformanceLevelUnitValues returns an array of possible values for the PerformanceLevelUnit const type.
type ProxyResource ¶
type ProxyResource struct { // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` }
ProxyResource ARM proxy resource.
type ReadOnlyEndpointFailoverPolicy ¶
type ReadOnlyEndpointFailoverPolicy string
ReadOnlyEndpointFailoverPolicy enumerates the values for read only endpoint failover policy.
const ( // ReadOnlyEndpointFailoverPolicyDisabled ... ReadOnlyEndpointFailoverPolicyDisabled ReadOnlyEndpointFailoverPolicy = "Disabled" // ReadOnlyEndpointFailoverPolicyEnabled ... ReadOnlyEndpointFailoverPolicyEnabled ReadOnlyEndpointFailoverPolicy = "Enabled" )
func PossibleReadOnlyEndpointFailoverPolicyValues ¶
func PossibleReadOnlyEndpointFailoverPolicyValues() []ReadOnlyEndpointFailoverPolicy
PossibleReadOnlyEndpointFailoverPolicyValues returns an array of possible values for the ReadOnlyEndpointFailoverPolicy const type.
type ReadWriteEndpointFailoverPolicy ¶
type ReadWriteEndpointFailoverPolicy string
ReadWriteEndpointFailoverPolicy enumerates the values for read write endpoint failover policy.
const ( // Automatic ... Automatic ReadWriteEndpointFailoverPolicy = "Automatic" // Manual ... Manual ReadWriteEndpointFailoverPolicy = "Manual" )
func PossibleReadWriteEndpointFailoverPolicyValues ¶
func PossibleReadWriteEndpointFailoverPolicyValues() []ReadWriteEndpointFailoverPolicy
PossibleReadWriteEndpointFailoverPolicyValues returns an array of possible values for the ReadWriteEndpointFailoverPolicy const type.
type RecoverableManagedDatabase ¶
type RecoverableManagedDatabase struct { autorest.Response `json:"-"` // RecoverableManagedDatabaseProperties - Resource properties. *RecoverableManagedDatabaseProperties `json:"properties,omitempty"` // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` }
RecoverableManagedDatabase a recoverable managed database resource.
func (RecoverableManagedDatabase) MarshalJSON ¶
func (rmd RecoverableManagedDatabase) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RecoverableManagedDatabase.
func (*RecoverableManagedDatabase) UnmarshalJSON ¶
func (rmd *RecoverableManagedDatabase) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for RecoverableManagedDatabase struct.
type RecoverableManagedDatabaseListResult ¶
type RecoverableManagedDatabaseListResult struct { autorest.Response `json:"-"` // Value - READ-ONLY; Array of results. Value *[]RecoverableManagedDatabase `json:"value,omitempty"` // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` }
RecoverableManagedDatabaseListResult a list of recoverable managed databases.
func (RecoverableManagedDatabaseListResult) IsEmpty ¶
func (rmdlr RecoverableManagedDatabaseListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type RecoverableManagedDatabaseListResultIterator ¶
type RecoverableManagedDatabaseListResultIterator struct {
// contains filtered or unexported fields
}
RecoverableManagedDatabaseListResultIterator provides access to a complete listing of RecoverableManagedDatabase values.
func NewRecoverableManagedDatabaseListResultIterator ¶
func NewRecoverableManagedDatabaseListResultIterator(page RecoverableManagedDatabaseListResultPage) RecoverableManagedDatabaseListResultIterator
Creates a new instance of the RecoverableManagedDatabaseListResultIterator type.
func (*RecoverableManagedDatabaseListResultIterator) Next ¶
func (iter *RecoverableManagedDatabaseListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*RecoverableManagedDatabaseListResultIterator) NextWithContext ¶
func (iter *RecoverableManagedDatabaseListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (RecoverableManagedDatabaseListResultIterator) NotDone ¶
func (iter RecoverableManagedDatabaseListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (RecoverableManagedDatabaseListResultIterator) Response ¶
func (iter RecoverableManagedDatabaseListResultIterator) Response() RecoverableManagedDatabaseListResult
Response returns the raw server response from the last page request.
func (RecoverableManagedDatabaseListResultIterator) Value ¶
func (iter RecoverableManagedDatabaseListResultIterator) Value() RecoverableManagedDatabase
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type RecoverableManagedDatabaseListResultPage ¶
type RecoverableManagedDatabaseListResultPage struct {
// contains filtered or unexported fields
}
RecoverableManagedDatabaseListResultPage contains a page of RecoverableManagedDatabase values.
func NewRecoverableManagedDatabaseListResultPage ¶
func NewRecoverableManagedDatabaseListResultPage(getNextPage func(context.Context, RecoverableManagedDatabaseListResult) (RecoverableManagedDatabaseListResult, error)) RecoverableManagedDatabaseListResultPage
Creates a new instance of the RecoverableManagedDatabaseListResultPage type.
func (*RecoverableManagedDatabaseListResultPage) Next ¶
func (page *RecoverableManagedDatabaseListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*RecoverableManagedDatabaseListResultPage) NextWithContext ¶
func (page *RecoverableManagedDatabaseListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (RecoverableManagedDatabaseListResultPage) NotDone ¶
func (page RecoverableManagedDatabaseListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (RecoverableManagedDatabaseListResultPage) Response ¶
func (page RecoverableManagedDatabaseListResultPage) Response() RecoverableManagedDatabaseListResult
Response returns the raw server response from the last page request.
func (RecoverableManagedDatabaseListResultPage) Values ¶
func (page RecoverableManagedDatabaseListResultPage) Values() []RecoverableManagedDatabase
Values returns the slice of values for the current page or nil if there are no values.
type RecoverableManagedDatabaseProperties ¶
type RecoverableManagedDatabaseProperties struct { // LastAvailableBackupDate - READ-ONLY; The last available backup date. LastAvailableBackupDate *string `json:"lastAvailableBackupDate,omitempty"` }
RecoverableManagedDatabaseProperties the recoverable managed database's properties.
type RecoverableManagedDatabasesClient ¶
type RecoverableManagedDatabasesClient struct {
BaseClient
}
RecoverableManagedDatabasesClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.
func NewRecoverableManagedDatabasesClient ¶
func NewRecoverableManagedDatabasesClient(subscriptionID string) RecoverableManagedDatabasesClient
NewRecoverableManagedDatabasesClient creates an instance of the RecoverableManagedDatabasesClient client.
func NewRecoverableManagedDatabasesClientWithBaseURI ¶
func NewRecoverableManagedDatabasesClientWithBaseURI(baseURI string, subscriptionID string) RecoverableManagedDatabasesClient
NewRecoverableManagedDatabasesClientWithBaseURI creates an instance of the RecoverableManagedDatabasesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (RecoverableManagedDatabasesClient) Get ¶
func (client RecoverableManagedDatabasesClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, recoverableDatabaseName string) (result RecoverableManagedDatabase, err error)
Get gets a recoverable managed database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance.
func (RecoverableManagedDatabasesClient) GetPreparer ¶
func (client RecoverableManagedDatabasesClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, recoverableDatabaseName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (RecoverableManagedDatabasesClient) GetResponder ¶
func (client RecoverableManagedDatabasesClient) GetResponder(resp *http.Response) (result RecoverableManagedDatabase, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (RecoverableManagedDatabasesClient) GetSender ¶
func (client RecoverableManagedDatabasesClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (RecoverableManagedDatabasesClient) ListByInstance ¶
func (client RecoverableManagedDatabasesClient) ListByInstance(ctx context.Context, resourceGroupName string, managedInstanceName string) (result RecoverableManagedDatabaseListResultPage, err error)
ListByInstance gets a list of recoverable managed databases. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance.
func (RecoverableManagedDatabasesClient) ListByInstanceComplete ¶
func (client RecoverableManagedDatabasesClient) ListByInstanceComplete(ctx context.Context, resourceGroupName string, managedInstanceName string) (result RecoverableManagedDatabaseListResultIterator, err error)
ListByInstanceComplete enumerates all values, automatically crossing page boundaries as required.
func (RecoverableManagedDatabasesClient) ListByInstancePreparer ¶
func (client RecoverableManagedDatabasesClient) ListByInstancePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error)
ListByInstancePreparer prepares the ListByInstance request.
func (RecoverableManagedDatabasesClient) ListByInstanceResponder ¶
func (client RecoverableManagedDatabasesClient) ListByInstanceResponder(resp *http.Response) (result RecoverableManagedDatabaseListResult, err error)
ListByInstanceResponder handles the response to the ListByInstance request. The method always closes the http.Response Body.
func (RecoverableManagedDatabasesClient) ListByInstanceSender ¶
func (client RecoverableManagedDatabasesClient) ListByInstanceSender(req *http.Request) (*http.Response, error)
ListByInstanceSender sends the ListByInstance request. The method will close the http.Response Body if it receives an error.
type Resource ¶
type Resource struct { // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` }
Resource ARM resource.
type ResourceMoveDefinition ¶
type ResourceMoveDefinition struct { // ID - The target ID for the resource ID *string `json:"id,omitempty"` }
ResourceMoveDefinition contains the information necessary to perform a resource move (rename).
type SampleName ¶
type SampleName string
SampleName enumerates the values for sample name.
const ( // AdventureWorksLT ... AdventureWorksLT SampleName = "AdventureWorksLT" // WideWorldImportersFull ... WideWorldImportersFull SampleName = "WideWorldImportersFull" // WideWorldImportersStd ... WideWorldImportersStd SampleName = "WideWorldImportersStd" )
func PossibleSampleNameValues ¶
func PossibleSampleNameValues() []SampleName
PossibleSampleNameValues returns an array of possible values for the SampleName const type.
type ServerKeyType ¶
type ServerKeyType string
ServerKeyType enumerates the values for server key type.
const ( // AzureKeyVault ... AzureKeyVault ServerKeyType = "AzureKeyVault" // ServiceManaged ... ServiceManaged ServerKeyType = "ServiceManaged" )
func PossibleServerKeyTypeValues ¶
func PossibleServerKeyTypeValues() []ServerKeyType
PossibleServerKeyTypeValues returns an array of possible values for the ServerKeyType const type.
type ServerVersionCapability ¶
type ServerVersionCapability struct { // Name - READ-ONLY; The server version name. Name *string `json:"name,omitempty"` // SupportedEditions - READ-ONLY; The list of supported database editions. SupportedEditions *[]EditionCapability `json:"supportedEditions,omitempty"` // SupportedElasticPoolEditions - READ-ONLY; The list of supported elastic pool editions. SupportedElasticPoolEditions *[]ElasticPoolEditionCapability `json:"supportedElasticPoolEditions,omitempty"` // Status - READ-ONLY; The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` }
ServerVersionCapability the server capability
type ServiceObjectiveCapability ¶
type ServiceObjectiveCapability struct { // ID - READ-ONLY; The unique ID of the service objective. ID *uuid.UUID `json:"id,omitempty"` // Name - READ-ONLY; The service objective name. Name *string `json:"name,omitempty"` // SupportedMaxSizes - READ-ONLY; The list of supported maximum database sizes. SupportedMaxSizes *[]MaxSizeRangeCapability `json:"supportedMaxSizes,omitempty"` // PerformanceLevel - READ-ONLY; The performance level. PerformanceLevel *PerformanceLevelCapability `json:"performanceLevel,omitempty"` // Sku - READ-ONLY; The sku. Sku *Sku `json:"sku,omitempty"` // SupportedLicenseTypes - READ-ONLY; List of supported license types. SupportedLicenseTypes *[]LicenseTypeCapability `json:"supportedLicenseTypes,omitempty"` // IncludedMaxSize - READ-ONLY; The included (free) max size. IncludedMaxSize *MaxSizeCapability `json:"includedMaxSize,omitempty"` // Status - READ-ONLY; The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled' Status CapabilityStatus `json:"status,omitempty"` // Reason - The reason for the capability not being available. Reason *string `json:"reason,omitempty"` }
ServiceObjectiveCapability the service objectives capability.
type Sku ¶
type Sku struct { // Name - The name of the SKU, typically, a letter + Number code, e.g. P3. Name *string `json:"name,omitempty"` // Tier - The tier or edition of the particular SKU, e.g. Basic, Premium. Tier *string `json:"tier,omitempty"` // Size - Size of the particular SKU Size *string `json:"size,omitempty"` // Family - If the service has different generations of hardware, for the same SKU, then that can be captured here. Family *string `json:"family,omitempty"` // Capacity - Capacity of the particular SKU. Capacity *int32 `json:"capacity,omitempty"` }
Sku an ARM Resource SKU.
type TdeCertificate ¶
type TdeCertificate struct { // TdeCertificateProperties - Resource properties. *TdeCertificateProperties `json:"properties,omitempty"` // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` }
TdeCertificate a TDE certificate that can be uploaded into a server.
func (TdeCertificate) MarshalJSON ¶
func (tc TdeCertificate) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TdeCertificate.
func (*TdeCertificate) UnmarshalJSON ¶
func (tc *TdeCertificate) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for TdeCertificate struct.
type TdeCertificateProperties ¶
type TdeCertificateProperties struct { // PrivateBlob - The base64 encoded certificate private blob. PrivateBlob *string `json:"privateBlob,omitempty"` // CertPassword - The certificate password. CertPassword *string `json:"certPassword,omitempty"` }
TdeCertificateProperties properties of a TDE certificate.
type TdeCertificatesClient ¶
type TdeCertificatesClient struct {
BaseClient
}
TdeCertificatesClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.
func NewTdeCertificatesClient ¶
func NewTdeCertificatesClient(subscriptionID string) TdeCertificatesClient
NewTdeCertificatesClient creates an instance of the TdeCertificatesClient client.
func NewTdeCertificatesClientWithBaseURI ¶
func NewTdeCertificatesClientWithBaseURI(baseURI string, subscriptionID string) TdeCertificatesClient
NewTdeCertificatesClientWithBaseURI creates an instance of the TdeCertificatesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (TdeCertificatesClient) Create ¶
func (client TdeCertificatesClient) Create(ctx context.Context, resourceGroupName string, serverName string, parameters TdeCertificate) (result TdeCertificatesCreateFuture, err error)
Create creates a TDE certificate for a given server. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. parameters - the requested TDE certificate to be created or updated.
func (TdeCertificatesClient) CreatePreparer ¶
func (client TdeCertificatesClient) CreatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters TdeCertificate) (*http.Request, error)
CreatePreparer prepares the Create request.
func (TdeCertificatesClient) CreateResponder ¶
func (client TdeCertificatesClient) CreateResponder(resp *http.Response) (result autorest.Response, err error)
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (TdeCertificatesClient) CreateSender ¶
func (client TdeCertificatesClient) CreateSender(req *http.Request) (future TdeCertificatesCreateFuture, err error)
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
type TdeCertificatesCreateFuture ¶
TdeCertificatesCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*TdeCertificatesCreateFuture) Result ¶
func (future *TdeCertificatesCreateFuture) Result(client TdeCertificatesClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type TrackedResource ¶
type TrackedResource struct { // Location - Resource location. Location *string `json:"location,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` }
TrackedResource ARM tracked top level resource.
func (TrackedResource) MarshalJSON ¶
func (tr TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TrackedResource.
type VulnerabilityAssessmentPolicyBaselineName ¶
type VulnerabilityAssessmentPolicyBaselineName string
VulnerabilityAssessmentPolicyBaselineName enumerates the values for vulnerability assessment policy baseline name.
const ( // VulnerabilityAssessmentPolicyBaselineNameDefault ... VulnerabilityAssessmentPolicyBaselineNameDefault VulnerabilityAssessmentPolicyBaselineName = "default" // VulnerabilityAssessmentPolicyBaselineNameMaster ... VulnerabilityAssessmentPolicyBaselineNameMaster VulnerabilityAssessmentPolicyBaselineName = "master" )
func PossibleVulnerabilityAssessmentPolicyBaselineNameValues ¶
func PossibleVulnerabilityAssessmentPolicyBaselineNameValues() []VulnerabilityAssessmentPolicyBaselineName
PossibleVulnerabilityAssessmentPolicyBaselineNameValues returns an array of possible values for the VulnerabilityAssessmentPolicyBaselineName const type.
type VulnerabilityAssessmentRecurringScansProperties ¶
type VulnerabilityAssessmentRecurringScansProperties struct { // IsEnabled - Recurring scans state. IsEnabled *bool `json:"isEnabled,omitempty"` // EmailSubscriptionAdmins - Specifies that the schedule scan notification will be is sent to the subscription administrators. EmailSubscriptionAdmins *bool `json:"emailSubscriptionAdmins,omitempty"` // Emails - Specifies an array of e-mail addresses to which the scan notification is sent. Emails *[]string `json:"emails,omitempty"` }
VulnerabilityAssessmentRecurringScansProperties properties of a Vulnerability Assessment recurring scans.
type VulnerabilityAssessmentScanError ¶
type VulnerabilityAssessmentScanError struct { // Code - READ-ONLY; The error code. Code *string `json:"code,omitempty"` // Message - READ-ONLY; The error message. Message *string `json:"message,omitempty"` }
VulnerabilityAssessmentScanError properties of a vulnerability assessment scan error.
type VulnerabilityAssessmentScanRecord ¶
type VulnerabilityAssessmentScanRecord struct { autorest.Response `json:"-"` // VulnerabilityAssessmentScanRecordProperties - Resource properties. *VulnerabilityAssessmentScanRecordProperties `json:"properties,omitempty"` // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` }
VulnerabilityAssessmentScanRecord a vulnerability assessment scan record.
func (VulnerabilityAssessmentScanRecord) MarshalJSON ¶
func (vasr VulnerabilityAssessmentScanRecord) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for VulnerabilityAssessmentScanRecord.
func (*VulnerabilityAssessmentScanRecord) UnmarshalJSON ¶
func (vasr *VulnerabilityAssessmentScanRecord) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for VulnerabilityAssessmentScanRecord struct.
type VulnerabilityAssessmentScanRecordListResult ¶
type VulnerabilityAssessmentScanRecordListResult struct { autorest.Response `json:"-"` // Value - READ-ONLY; Array of results. Value *[]VulnerabilityAssessmentScanRecord `json:"value,omitempty"` // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` }
VulnerabilityAssessmentScanRecordListResult a list of vulnerability assessment scan records.
func (VulnerabilityAssessmentScanRecordListResult) IsEmpty ¶
func (vasrlr VulnerabilityAssessmentScanRecordListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type VulnerabilityAssessmentScanRecordListResultIterator ¶
type VulnerabilityAssessmentScanRecordListResultIterator struct {
// contains filtered or unexported fields
}
VulnerabilityAssessmentScanRecordListResultIterator provides access to a complete listing of VulnerabilityAssessmentScanRecord values.
func NewVulnerabilityAssessmentScanRecordListResultIterator ¶
func NewVulnerabilityAssessmentScanRecordListResultIterator(page VulnerabilityAssessmentScanRecordListResultPage) VulnerabilityAssessmentScanRecordListResultIterator
Creates a new instance of the VulnerabilityAssessmentScanRecordListResultIterator type.
func (*VulnerabilityAssessmentScanRecordListResultIterator) Next ¶
func (iter *VulnerabilityAssessmentScanRecordListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*VulnerabilityAssessmentScanRecordListResultIterator) NextWithContext ¶
func (iter *VulnerabilityAssessmentScanRecordListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (VulnerabilityAssessmentScanRecordListResultIterator) NotDone ¶
func (iter VulnerabilityAssessmentScanRecordListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (VulnerabilityAssessmentScanRecordListResultIterator) Response ¶
func (iter VulnerabilityAssessmentScanRecordListResultIterator) Response() VulnerabilityAssessmentScanRecordListResult
Response returns the raw server response from the last page request.
func (VulnerabilityAssessmentScanRecordListResultIterator) Value ¶
func (iter VulnerabilityAssessmentScanRecordListResultIterator) Value() VulnerabilityAssessmentScanRecord
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type VulnerabilityAssessmentScanRecordListResultPage ¶
type VulnerabilityAssessmentScanRecordListResultPage struct {
// contains filtered or unexported fields
}
VulnerabilityAssessmentScanRecordListResultPage contains a page of VulnerabilityAssessmentScanRecord values.
func NewVulnerabilityAssessmentScanRecordListResultPage ¶
func NewVulnerabilityAssessmentScanRecordListResultPage(getNextPage func(context.Context, VulnerabilityAssessmentScanRecordListResult) (VulnerabilityAssessmentScanRecordListResult, error)) VulnerabilityAssessmentScanRecordListResultPage
Creates a new instance of the VulnerabilityAssessmentScanRecordListResultPage type.
func (*VulnerabilityAssessmentScanRecordListResultPage) Next ¶
func (page *VulnerabilityAssessmentScanRecordListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*VulnerabilityAssessmentScanRecordListResultPage) NextWithContext ¶
func (page *VulnerabilityAssessmentScanRecordListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (VulnerabilityAssessmentScanRecordListResultPage) NotDone ¶
func (page VulnerabilityAssessmentScanRecordListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (VulnerabilityAssessmentScanRecordListResultPage) Response ¶
func (page VulnerabilityAssessmentScanRecordListResultPage) Response() VulnerabilityAssessmentScanRecordListResult
Response returns the raw server response from the last page request.
func (VulnerabilityAssessmentScanRecordListResultPage) Values ¶
func (page VulnerabilityAssessmentScanRecordListResultPage) Values() []VulnerabilityAssessmentScanRecord
Values returns the slice of values for the current page or nil if there are no values.
type VulnerabilityAssessmentScanRecordProperties ¶
type VulnerabilityAssessmentScanRecordProperties struct { // ScanID - READ-ONLY; The scan ID. ScanID *string `json:"scanId,omitempty"` // TriggerType - READ-ONLY; The scan trigger type. Possible values include: 'OnDemand', 'Recurring' TriggerType VulnerabilityAssessmentScanTriggerType `json:"triggerType,omitempty"` // State - READ-ONLY; The scan status. Possible values include: 'VulnerabilityAssessmentScanStatePassed', 'VulnerabilityAssessmentScanStateFailed', 'VulnerabilityAssessmentScanStateFailedToRun', 'VulnerabilityAssessmentScanStateInProgress' State VulnerabilityAssessmentScanState `json:"state,omitempty"` // StartTime - READ-ONLY; The scan start time (UTC). StartTime *date.Time `json:"startTime,omitempty"` // EndTime - READ-ONLY; The scan end time (UTC). EndTime *date.Time `json:"endTime,omitempty"` // Errors - READ-ONLY; The scan errors. Errors *[]VulnerabilityAssessmentScanError `json:"errors,omitempty"` // StorageContainerPath - READ-ONLY; The scan results storage container path. StorageContainerPath *string `json:"storageContainerPath,omitempty"` // NumberOfFailedSecurityChecks - READ-ONLY; The number of failed security checks. NumberOfFailedSecurityChecks *int32 `json:"numberOfFailedSecurityChecks,omitempty"` }
VulnerabilityAssessmentScanRecordProperties properties of a vulnerability assessment scan record.
type VulnerabilityAssessmentScanState ¶
type VulnerabilityAssessmentScanState string
VulnerabilityAssessmentScanState enumerates the values for vulnerability assessment scan state.
const ( // VulnerabilityAssessmentScanStateFailed ... VulnerabilityAssessmentScanStateFailed VulnerabilityAssessmentScanState = "Failed" // VulnerabilityAssessmentScanStateFailedToRun ... VulnerabilityAssessmentScanStateFailedToRun VulnerabilityAssessmentScanState = "FailedToRun" // VulnerabilityAssessmentScanStateInProgress ... VulnerabilityAssessmentScanStateInProgress VulnerabilityAssessmentScanState = "InProgress" // VulnerabilityAssessmentScanStatePassed ... VulnerabilityAssessmentScanStatePassed VulnerabilityAssessmentScanState = "Passed" )
func PossibleVulnerabilityAssessmentScanStateValues ¶
func PossibleVulnerabilityAssessmentScanStateValues() []VulnerabilityAssessmentScanState
PossibleVulnerabilityAssessmentScanStateValues returns an array of possible values for the VulnerabilityAssessmentScanState const type.
type VulnerabilityAssessmentScanTriggerType ¶
type VulnerabilityAssessmentScanTriggerType string
VulnerabilityAssessmentScanTriggerType enumerates the values for vulnerability assessment scan trigger type.
const ( // OnDemand ... OnDemand VulnerabilityAssessmentScanTriggerType = "OnDemand" // Recurring ... Recurring VulnerabilityAssessmentScanTriggerType = "Recurring" )
func PossibleVulnerabilityAssessmentScanTriggerTypeValues ¶
func PossibleVulnerabilityAssessmentScanTriggerTypeValues() []VulnerabilityAssessmentScanTriggerType
PossibleVulnerabilityAssessmentScanTriggerTypeValues returns an array of possible values for the VulnerabilityAssessmentScanTriggerType const type.
Source Files ¶
- backupshorttermretentionpolicies.go
- capabilities.go
- client.go
- databaseoperations.go
- databases.go
- databasevulnerabilityassessmentscans.go
- elasticpooloperations.go
- elasticpools.go
- instancefailovergroups.go
- manageddatabasevulnerabilityassessmentrulebaselines.go
- manageddatabasevulnerabilityassessments.go
- manageddatabasevulnerabilityassessmentscans.go
- managedinstanceencryptionprotectors.go
- managedinstancekeys.go
- managedinstancetdecertificates.go
- models.go
- recoverablemanageddatabases.go
- tdecertificates.go
- version.go