Documentation ¶
Overview ¶
Package sql implements the Azure ARM Sql service API version 2014-04-01.
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 Advisor
- type AdvisorListResult
- type AdvisorProperties
- type AdvisorStatus
- type AuthenticationType
- type AutoExecuteStatus
- type BackupLongTermRetentionPoliciesClient
- func (client BackupLongTermRetentionPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (result BackupLongTermRetentionPoliciesCreateOrUpdateFuture, err error)
- func (client BackupLongTermRetentionPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client BackupLongTermRetentionPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result BackupLongTermRetentionPolicy, err error)
- func (client BackupLongTermRetentionPoliciesClient) CreateOrUpdateSender(req *http.Request) (future BackupLongTermRetentionPoliciesCreateOrUpdateFuture, err error)
- func (client BackupLongTermRetentionPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (result BackupLongTermRetentionPolicy, err error)
- func (client BackupLongTermRetentionPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client BackupLongTermRetentionPoliciesClient) GetResponder(resp *http.Response) (result BackupLongTermRetentionPolicy, err error)
- func (client BackupLongTermRetentionPoliciesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client BackupLongTermRetentionPoliciesClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, ...) (result BackupLongTermRetentionPolicyListResult, err error)
- func (client BackupLongTermRetentionPoliciesClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client BackupLongTermRetentionPoliciesClient) ListByDatabaseResponder(resp *http.Response) (result BackupLongTermRetentionPolicyListResult, err error)
- func (client BackupLongTermRetentionPoliciesClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)
- type BackupLongTermRetentionPoliciesCreateOrUpdateFuture
- type BackupLongTermRetentionPolicy
- type BackupLongTermRetentionPolicyListResult
- type BackupLongTermRetentionPolicyProperties
- type BackupLongTermRetentionPolicyState
- type BackupLongTermRetentionVault
- type BackupLongTermRetentionVaultListResult
- type BackupLongTermRetentionVaultProperties
- type BackupLongTermRetentionVaultsClient
- func (client BackupLongTermRetentionVaultsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (result BackupLongTermRetentionVaultsCreateOrUpdateFuture, err error)
- func (client BackupLongTermRetentionVaultsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client BackupLongTermRetentionVaultsClient) CreateOrUpdateResponder(resp *http.Response) (result BackupLongTermRetentionVault, err error)
- func (client BackupLongTermRetentionVaultsClient) CreateOrUpdateSender(req *http.Request) (future BackupLongTermRetentionVaultsCreateOrUpdateFuture, err error)
- func (client BackupLongTermRetentionVaultsClient) Get(ctx context.Context, resourceGroupName string, serverName string) (result BackupLongTermRetentionVault, err error)
- func (client BackupLongTermRetentionVaultsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client BackupLongTermRetentionVaultsClient) GetResponder(resp *http.Response) (result BackupLongTermRetentionVault, err error)
- func (client BackupLongTermRetentionVaultsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client BackupLongTermRetentionVaultsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result BackupLongTermRetentionVaultListResult, err error)
- func (client BackupLongTermRetentionVaultsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client BackupLongTermRetentionVaultsClient) ListByServerResponder(resp *http.Response) (result BackupLongTermRetentionVaultListResult, err error)
- func (client BackupLongTermRetentionVaultsClient) ListByServerSender(req *http.Request) (*http.Response, error)
- type BackupLongTermRetentionVaultsCreateOrUpdateFuture
- type BaseClient
- type CapabilitiesClient
- func (client CapabilitiesClient) ListByLocation(ctx context.Context, locationID string) (result LocationCapabilities, err error)
- func (client CapabilitiesClient) ListByLocationPreparer(ctx context.Context, locationID string) (*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 CapabilityStatus
- type CheckNameAvailabilityReason
- type CheckNameAvailabilityRequest
- type CheckNameAvailabilityResponse
- type CreateMode
- type DataMaskingFunction
- type DataMaskingPoliciesClient
- func (client DataMaskingPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (result DataMaskingPolicy, err error)
- func (client DataMaskingPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DataMaskingPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result DataMaskingPolicy, err error)
- func (client DataMaskingPoliciesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client DataMaskingPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (result DataMaskingPolicy, err error)
- func (client DataMaskingPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DataMaskingPoliciesClient) GetResponder(resp *http.Response) (result DataMaskingPolicy, err error)
- func (client DataMaskingPoliciesClient) GetSender(req *http.Request) (*http.Response, error)
- type DataMaskingPolicy
- type DataMaskingPolicyProperties
- type DataMaskingRule
- type DataMaskingRuleListResult
- type DataMaskingRuleProperties
- type DataMaskingRuleState
- type DataMaskingRulesClient
- func (client DataMaskingRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (result DataMaskingRule, err error)
- func (client DataMaskingRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DataMaskingRulesClient) CreateOrUpdateResponder(resp *http.Response) (result DataMaskingRule, err error)
- func (client DataMaskingRulesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client DataMaskingRulesClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, ...) (result DataMaskingRuleListResult, err error)
- func (client DataMaskingRulesClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DataMaskingRulesClient) ListByDatabaseResponder(resp *http.Response) (result DataMaskingRuleListResult, err error)
- func (client DataMaskingRulesClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)
- type DataMaskingState
- type Database
- type DatabaseAdvisorsClient
- func (client DatabaseAdvisorsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (result Advisor, err error)
- func (client DatabaseAdvisorsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabaseAdvisorsClient) CreateOrUpdateResponder(resp *http.Response) (result Advisor, err error)
- func (client DatabaseAdvisorsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAdvisorsClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (result Advisor, err error)
- func (client DatabaseAdvisorsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabaseAdvisorsClient) GetResponder(resp *http.Response) (result Advisor, err error)
- func (client DatabaseAdvisorsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client DatabaseAdvisorsClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, ...) (result AdvisorListResult, err error)
- func (client DatabaseAdvisorsClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabaseAdvisorsClient) ListByDatabaseResponder(resp *http.Response) (result AdvisorListResult, err error)
- func (client DatabaseAdvisorsClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)
- type DatabaseConnectionPoliciesClient
- func (client DatabaseConnectionPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (result DatabaseConnectionPolicy, err error)
- func (client DatabaseConnectionPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabaseConnectionPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result DatabaseConnectionPolicy, err error)
- func (client DatabaseConnectionPoliciesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client DatabaseConnectionPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (result DatabaseConnectionPolicy, err error)
- func (client DatabaseConnectionPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabaseConnectionPoliciesClient) GetResponder(resp *http.Response) (result DatabaseConnectionPolicy, err error)
- func (client DatabaseConnectionPoliciesClient) GetSender(req *http.Request) (*http.Response, error)
- type DatabaseConnectionPolicy
- type DatabaseConnectionPolicyProperties
- type DatabaseEdition
- type DatabaseListResult
- type DatabaseProperties
- type DatabaseSecurityAlertPolicy
- type DatabaseSecurityAlertPolicyProperties
- type DatabaseTableAuditingPoliciesClient
- func (client DatabaseTableAuditingPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (result DatabaseTableAuditingPolicy, err error)
- func (client DatabaseTableAuditingPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabaseTableAuditingPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result DatabaseTableAuditingPolicy, err error)
- func (client DatabaseTableAuditingPoliciesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client DatabaseTableAuditingPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (result DatabaseTableAuditingPolicy, err error)
- func (client DatabaseTableAuditingPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabaseTableAuditingPoliciesClient) GetResponder(resp *http.Response) (result DatabaseTableAuditingPolicy, err error)
- func (client DatabaseTableAuditingPoliciesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client DatabaseTableAuditingPoliciesClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, ...) (result DatabaseTableAuditingPolicyListResult, err error)
- func (client DatabaseTableAuditingPoliciesClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabaseTableAuditingPoliciesClient) ListByDatabaseResponder(resp *http.Response) (result DatabaseTableAuditingPolicyListResult, err error)
- func (client DatabaseTableAuditingPoliciesClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)
- type DatabaseTableAuditingPolicy
- type DatabaseTableAuditingPolicyListResult
- type DatabaseTableAuditingPolicyProperties
- type DatabaseThreatDetectionPoliciesClient
- func (client DatabaseThreatDetectionPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (result DatabaseSecurityAlertPolicy, err error)
- func (client DatabaseThreatDetectionPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabaseThreatDetectionPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result DatabaseSecurityAlertPolicy, err error)
- func (client DatabaseThreatDetectionPoliciesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client DatabaseThreatDetectionPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (result DatabaseSecurityAlertPolicy, err error)
- func (client DatabaseThreatDetectionPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabaseThreatDetectionPoliciesClient) GetResponder(resp *http.Response) (result DatabaseSecurityAlertPolicy, err error)
- func (client DatabaseThreatDetectionPoliciesClient) GetSender(req *http.Request) (*http.Response, error)
- type DatabaseUpdate
- type DatabaseUsage
- type DatabaseUsageListResult
- type DatabaseUsagesClient
- func (client DatabaseUsagesClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, ...) (result DatabaseUsageListResult, err error)
- func (client DatabaseUsagesClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabaseUsagesClient) ListByDatabaseResponder(resp *http.Response) (result DatabaseUsageListResult, err error)
- func (client DatabaseUsagesClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)
- type DatabasesClient
- func (client DatabasesClient) CreateImportOperation(ctx context.Context, resourceGroupName string, serverName string, ...) (result DatabasesCreateImportOperationFuture, err error)
- func (client DatabasesClient) CreateImportOperationPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabasesClient) CreateImportOperationResponder(resp *http.Response) (result ImportExportResponse, err error)
- func (client DatabasesClient) CreateImportOperationSender(req *http.Request) (future DatabasesCreateImportOperationFuture, err error)
- 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 autorest.Response, 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) (*http.Response, error)
- func (client DatabasesClient) Export(ctx context.Context, resourceGroupName string, serverName string, ...) (result DatabasesExportFuture, err error)
- func (client DatabasesClient) ExportPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabasesClient) ExportResponder(resp *http.Response) (result ImportExportResponse, err error)
- func (client DatabasesClient) ExportSender(req *http.Request) (future DatabasesExportFuture, err error)
- func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (result Database, err error)
- func (client DatabasesClient) GetByElasticPool(ctx context.Context, resourceGroupName string, serverName string, ...) (result Database, err error)
- func (client DatabasesClient) GetByElasticPoolPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabasesClient) GetByElasticPoolResponder(resp *http.Response) (result Database, err error)
- func (client DatabasesClient) GetByElasticPoolSender(req *http.Request) (*http.Response, error)
- func (client DatabasesClient) GetByRecommendedElasticPool(ctx context.Context, resourceGroupName string, serverName string, ...) (result Database, err error)
- func (client DatabasesClient) GetByRecommendedElasticPoolPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabasesClient) GetByRecommendedElasticPoolResponder(resp *http.Response) (result Database, err error)
- func (client DatabasesClient) GetByRecommendedElasticPoolSender(req *http.Request) (*http.Response, 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) Import(ctx context.Context, resourceGroupName string, serverName string, ...) (result DatabasesImportFuture, err error)
- func (client DatabasesClient) ImportPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabasesClient) ImportResponder(resp *http.Response) (result ImportExportResponse, err error)
- func (client DatabasesClient) ImportSender(req *http.Request) (future DatabasesImportFuture, err error)
- func (client DatabasesClient) ListByElasticPool(ctx context.Context, resourceGroupName string, serverName string, ...) (result DatabaseListResult, 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) ListByRecommendedElasticPool(ctx context.Context, resourceGroupName string, serverName string, ...) (result DatabaseListResult, err error)
- func (client DatabasesClient) ListByRecommendedElasticPoolPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabasesClient) ListByRecommendedElasticPoolResponder(resp *http.Response) (result DatabaseListResult, err error)
- func (client DatabasesClient) ListByRecommendedElasticPoolSender(req *http.Request) (*http.Response, error)
- func (client DatabasesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string, ...) (result DatabaseListResult, 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) ListMetricDefinitions(ctx context.Context, resourceGroupName string, serverName string, ...) (result MetricDefinitionListResult, err error)
- func (client DatabasesClient) ListMetricDefinitionsPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabasesClient) ListMetricDefinitionsResponder(resp *http.Response) (result MetricDefinitionListResult, err error)
- func (client DatabasesClient) ListMetricDefinitionsSender(req *http.Request) (*http.Response, error)
- func (client DatabasesClient) ListMetrics(ctx context.Context, resourceGroupName string, serverName string, ...) (result MetricListResult, err error)
- func (client DatabasesClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabasesClient) ListMetricsResponder(resp *http.Response) (result MetricListResult, err error)
- func (client DatabasesClient) ListMetricsSender(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 autorest.Response, err error)
- func (client DatabasesClient) PauseSender(req *http.Request) (future DatabasesPauseFuture, err 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 autorest.Response, 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)
- type DatabasesCreateImportOperationFuture
- type DatabasesCreateOrUpdateFuture
- type DatabasesExportFuture
- type DatabasesImportFuture
- type DatabasesPauseFuture
- type DatabasesResumeFuture
- type DatabasesUpdateFuture
- type DisasterRecoveryConfiguration
- type DisasterRecoveryConfigurationAutoFailover
- type DisasterRecoveryConfigurationFailoverPolicy
- type DisasterRecoveryConfigurationListResult
- type DisasterRecoveryConfigurationProperties
- type DisasterRecoveryConfigurationRole
- type DisasterRecoveryConfigurationStatus
- type DisasterRecoveryConfigurationsClient
- func (client DisasterRecoveryConfigurationsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (result DisasterRecoveryConfigurationsCreateOrUpdateFuture, err error)
- func (client DisasterRecoveryConfigurationsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DisasterRecoveryConfigurationsClient) CreateOrUpdateResponder(resp *http.Response) (result DisasterRecoveryConfiguration, err error)
- func (client DisasterRecoveryConfigurationsClient) CreateOrUpdateSender(req *http.Request) (future DisasterRecoveryConfigurationsCreateOrUpdateFuture, err error)
- func (client DisasterRecoveryConfigurationsClient) Delete(ctx context.Context, resourceGroupName string, serverName string, ...) (result DisasterRecoveryConfigurationsDeleteFuture, err error)
- func (client DisasterRecoveryConfigurationsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DisasterRecoveryConfigurationsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DisasterRecoveryConfigurationsClient) DeleteSender(req *http.Request) (future DisasterRecoveryConfigurationsDeleteFuture, err error)
- func (client DisasterRecoveryConfigurationsClient) Failover(ctx context.Context, resourceGroupName string, serverName string, ...) (result DisasterRecoveryConfigurationsFailoverFuture, err error)
- func (client DisasterRecoveryConfigurationsClient) FailoverAllowDataLoss(ctx context.Context, resourceGroupName string, serverName string, ...) (result DisasterRecoveryConfigurationsFailoverAllowDataLossFuture, err error)
- func (client DisasterRecoveryConfigurationsClient) FailoverAllowDataLossPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DisasterRecoveryConfigurationsClient) FailoverAllowDataLossResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DisasterRecoveryConfigurationsClient) FailoverAllowDataLossSender(req *http.Request) (future DisasterRecoveryConfigurationsFailoverAllowDataLossFuture, err error)
- func (client DisasterRecoveryConfigurationsClient) FailoverPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DisasterRecoveryConfigurationsClient) FailoverResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DisasterRecoveryConfigurationsClient) FailoverSender(req *http.Request) (future DisasterRecoveryConfigurationsFailoverFuture, err error)
- func (client DisasterRecoveryConfigurationsClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (result DisasterRecoveryConfiguration, err error)
- func (client DisasterRecoveryConfigurationsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DisasterRecoveryConfigurationsClient) GetResponder(resp *http.Response) (result DisasterRecoveryConfiguration, err error)
- func (client DisasterRecoveryConfigurationsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client DisasterRecoveryConfigurationsClient) List(ctx context.Context, resourceGroupName string, serverName string) (result DisasterRecoveryConfigurationListResult, err error)
- func (client DisasterRecoveryConfigurationsClient) ListPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client DisasterRecoveryConfigurationsClient) ListResponder(resp *http.Response) (result DisasterRecoveryConfigurationListResult, err error)
- func (client DisasterRecoveryConfigurationsClient) ListSender(req *http.Request) (*http.Response, error)
- type DisasterRecoveryConfigurationsCreateOrUpdateFuture
- type DisasterRecoveryConfigurationsDeleteFuture
- type DisasterRecoveryConfigurationsFailoverAllowDataLossFuture
- type DisasterRecoveryConfigurationsFailoverFuture
- type EditionCapability
- type ElasticPool
- type ElasticPoolActivitiesClient
- func (client ElasticPoolActivitiesClient) ListByElasticPool(ctx context.Context, resourceGroupName string, serverName string, ...) (result ElasticPoolActivityListResult, err error)
- func (client ElasticPoolActivitiesClient) ListByElasticPoolPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ElasticPoolActivitiesClient) ListByElasticPoolResponder(resp *http.Response) (result ElasticPoolActivityListResult, err error)
- func (client ElasticPoolActivitiesClient) ListByElasticPoolSender(req *http.Request) (*http.Response, error)
- type ElasticPoolActivity
- type ElasticPoolActivityListResult
- type ElasticPoolActivityProperties
- type ElasticPoolDatabaseActivitiesClient
- func (client ElasticPoolDatabaseActivitiesClient) ListByElasticPool(ctx context.Context, resourceGroupName string, serverName string, ...) (result ElasticPoolDatabaseActivityListResult, err error)
- func (client ElasticPoolDatabaseActivitiesClient) ListByElasticPoolPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ElasticPoolDatabaseActivitiesClient) ListByElasticPoolResponder(resp *http.Response) (result ElasticPoolDatabaseActivityListResult, err error)
- func (client ElasticPoolDatabaseActivitiesClient) ListByElasticPoolSender(req *http.Request) (*http.Response, error)
- type ElasticPoolDatabaseActivity
- type ElasticPoolDatabaseActivityListResult
- type ElasticPoolDatabaseActivityProperties
- type ElasticPoolDtuCapability
- type ElasticPoolEdition
- type ElasticPoolEditionCapability
- type ElasticPoolListResult
- type ElasticPoolPerDatabaseMaxDtuCapability
- type ElasticPoolPerDatabaseMinDtuCapability
- type ElasticPoolProperties
- type ElasticPoolState
- type ElasticPoolUpdate
- 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 autorest.Response, 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) (*http.Response, 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) (result ElasticPoolListResult, err error)
- func (client ElasticPoolsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*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) ListMetricDefinitions(ctx context.Context, resourceGroupName string, serverName string, ...) (result MetricDefinitionListResult, err error)
- func (client ElasticPoolsClient) ListMetricDefinitionsPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ElasticPoolsClient) ListMetricDefinitionsResponder(resp *http.Response) (result MetricDefinitionListResult, err error)
- func (client ElasticPoolsClient) ListMetricDefinitionsSender(req *http.Request) (*http.Response, error)
- func (client ElasticPoolsClient) ListMetrics(ctx context.Context, resourceGroupName string, serverName string, ...) (result MetricListResult, err error)
- func (client ElasticPoolsClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ElasticPoolsClient) ListMetricsResponder(resp *http.Response) (result MetricListResult, err error)
- func (client ElasticPoolsClient) ListMetricsSender(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 ElasticPoolsUpdateFuture
- type ExportRequest
- type ExtensionListResult
- type ExtensionsClient
- func (client ExtensionsClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (result autorest.Response, err error)
- func (client ExtensionsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ExtensionsClient) GetResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ExtensionsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ExtensionsClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, ...) (result ExtensionListResult, err error)
- func (client ExtensionsClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ExtensionsClient) ListByDatabaseResponder(resp *http.Response) (result ExtensionListResult, err error)
- func (client ExtensionsClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)
- type FirewallRule
- type FirewallRuleListResult
- type FirewallRuleProperties
- type FirewallRulesClient
- func (client FirewallRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (result FirewallRule, err error)
- func (client FirewallRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client FirewallRulesClient) CreateOrUpdateResponder(resp *http.Response) (result FirewallRule, err error)
- func (client FirewallRulesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client FirewallRulesClient) Delete(ctx context.Context, resourceGroupName string, serverName string, ...) (result autorest.Response, err error)
- func (client FirewallRulesClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client FirewallRulesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client FirewallRulesClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (result FirewallRule, err error)
- func (client FirewallRulesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client FirewallRulesClient) GetResponder(resp *http.Response) (result FirewallRule, err error)
- func (client FirewallRulesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client FirewallRulesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result FirewallRuleListResult, err error)
- func (client FirewallRulesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client FirewallRulesClient) ListByServerResponder(resp *http.Response) (result FirewallRuleListResult, err error)
- func (client FirewallRulesClient) ListByServerSender(req *http.Request) (*http.Response, error)
- type GeoBackupPoliciesClient
- func (client GeoBackupPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (result GeoBackupPolicy, err error)
- func (client GeoBackupPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client GeoBackupPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result GeoBackupPolicy, err error)
- func (client GeoBackupPoliciesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client GeoBackupPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (result GeoBackupPolicy, err error)
- func (client GeoBackupPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client GeoBackupPoliciesClient) GetResponder(resp *http.Response) (result GeoBackupPolicy, err error)
- func (client GeoBackupPoliciesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client GeoBackupPoliciesClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, ...) (result GeoBackupPolicyListResult, err error)
- func (client GeoBackupPoliciesClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client GeoBackupPoliciesClient) ListByDatabaseResponder(resp *http.Response) (result GeoBackupPolicyListResult, err error)
- func (client GeoBackupPoliciesClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)
- type GeoBackupPolicy
- type GeoBackupPolicyListResult
- type GeoBackupPolicyProperties
- type GeoBackupPolicyState
- type ImportExportResponse
- type ImportExportResponseProperties
- type ImportExtensionProperties
- type ImportExtensionRequest
- type ImportRequest
- type LocationCapabilities
- type MaxSizeCapability
- type MaxSizeUnits
- type Metric
- type MetricAvailability
- type MetricDefinition
- type MetricDefinitionListResult
- type MetricListResult
- type MetricName
- type MetricValue
- type Operation
- type OperationDisplay
- type OperationImpact
- type OperationListResult
- type OperationsClient
- func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error)
- func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
- func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
- type PerformanceLevel
- type PerformanceLevelUnit
- type PrimaryAggregationType
- type ProxyResource
- type QueriesClient
- func (client QueriesClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, ...) (result TopQueriesListResult, err error)
- func (client QueriesClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client QueriesClient) ListByDatabaseResponder(resp *http.Response) (result TopQueriesListResult, err error)
- func (client QueriesClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)
- type QueryAggregationFunction
- type QueryExecutionType
- type QueryInterval
- type QueryMetric
- type QueryMetricUnit
- type QueryObservedMetricType
- type QueryStatistic
- type QueryStatisticListResult
- type QueryStatisticsClient
- func (client QueryStatisticsClient) ListByQuery(ctx context.Context, resourceGroupName string, serverName string, ...) (result QueryStatisticListResult, err error)
- func (client QueryStatisticsClient) ListByQueryPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client QueryStatisticsClient) ListByQueryResponder(resp *http.Response) (result QueryStatisticListResult, err error)
- func (client QueryStatisticsClient) ListByQuerySender(req *http.Request) (*http.Response, error)
- type QueryText
- type QueryTextListResult
- type QueryTextsClient
- func (client QueryTextsClient) ListByQuery(ctx context.Context, resourceGroupName string, serverName string, ...) (result QueryTextListResult, err error)
- func (client QueryTextsClient) ListByQueryPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client QueryTextsClient) ListByQueryResponder(resp *http.Response) (result QueryTextListResult, err error)
- func (client QueryTextsClient) ListByQuerySender(req *http.Request) (*http.Response, error)
- type ReadScale
- type RecommendedElasticPool
- type RecommendedElasticPoolListMetricsResult
- type RecommendedElasticPoolListResult
- type RecommendedElasticPoolMetric
- type RecommendedElasticPoolProperties
- type RecommendedElasticPoolsClient
- func (client RecommendedElasticPoolsClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (result RecommendedElasticPool, err error)
- func (client RecommendedElasticPoolsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client RecommendedElasticPoolsClient) GetResponder(resp *http.Response) (result RecommendedElasticPool, err error)
- func (client RecommendedElasticPoolsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client RecommendedElasticPoolsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result RecommendedElasticPoolListResult, err error)
- func (client RecommendedElasticPoolsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client RecommendedElasticPoolsClient) ListByServerResponder(resp *http.Response) (result RecommendedElasticPoolListResult, err error)
- func (client RecommendedElasticPoolsClient) ListByServerSender(req *http.Request) (*http.Response, error)
- func (client RecommendedElasticPoolsClient) ListMetrics(ctx context.Context, resourceGroupName string, serverName string, ...) (result RecommendedElasticPoolListMetricsResult, err error)
- func (client RecommendedElasticPoolsClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client RecommendedElasticPoolsClient) ListMetricsResponder(resp *http.Response) (result RecommendedElasticPoolListMetricsResult, err error)
- func (client RecommendedElasticPoolsClient) ListMetricsSender(req *http.Request) (*http.Response, error)
- type RecommendedIndex
- type RecommendedIndexAction
- type RecommendedIndexProperties
- type RecommendedIndexState
- type RecommendedIndexType
- type RecoverableDatabase
- type RecoverableDatabaseListResult
- type RecoverableDatabaseProperties
- type RecoverableDatabasesClient
- func (client RecoverableDatabasesClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (result RecoverableDatabase, err error)
- func (client RecoverableDatabasesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client RecoverableDatabasesClient) GetResponder(resp *http.Response) (result RecoverableDatabase, err error)
- func (client RecoverableDatabasesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client RecoverableDatabasesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result RecoverableDatabaseListResult, err error)
- func (client RecoverableDatabasesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client RecoverableDatabasesClient) ListByServerResponder(resp *http.Response) (result RecoverableDatabaseListResult, err error)
- func (client RecoverableDatabasesClient) ListByServerSender(req *http.Request) (*http.Response, error)
- type ReplicationLink
- type ReplicationLinkListResult
- type ReplicationLinkProperties
- type ReplicationLinksClient
- func (client ReplicationLinksClient) Delete(ctx context.Context, resourceGroupName string, serverName string, ...) (result autorest.Response, err error)
- func (client ReplicationLinksClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ReplicationLinksClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ReplicationLinksClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client ReplicationLinksClient) Failover(ctx context.Context, resourceGroupName string, serverName string, ...) (result ReplicationLinksFailoverFuture, err error)
- func (client ReplicationLinksClient) FailoverAllowDataLoss(ctx context.Context, resourceGroupName string, serverName string, ...) (result ReplicationLinksFailoverAllowDataLossFuture, err error)
- func (client ReplicationLinksClient) FailoverAllowDataLossPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ReplicationLinksClient) FailoverAllowDataLossResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ReplicationLinksClient) FailoverAllowDataLossSender(req *http.Request) (future ReplicationLinksFailoverAllowDataLossFuture, err error)
- func (client ReplicationLinksClient) FailoverPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ReplicationLinksClient) FailoverResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ReplicationLinksClient) FailoverSender(req *http.Request) (future ReplicationLinksFailoverFuture, err error)
- func (client ReplicationLinksClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (result ReplicationLink, err error)
- func (client ReplicationLinksClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ReplicationLinksClient) GetResponder(resp *http.Response) (result ReplicationLink, err error)
- func (client ReplicationLinksClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ReplicationLinksClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, ...) (result ReplicationLinkListResult, err error)
- func (client ReplicationLinksClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ReplicationLinksClient) ListByDatabaseResponder(resp *http.Response) (result ReplicationLinkListResult, err error)
- func (client ReplicationLinksClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)
- type ReplicationLinksFailoverAllowDataLossFuture
- type ReplicationLinksFailoverFuture
- type ReplicationRole
- type ReplicationState
- type Resource
- type RestorableDroppedDatabase
- type RestorableDroppedDatabaseListResult
- type RestorableDroppedDatabaseProperties
- type RestorableDroppedDatabasesClient
- func (client RestorableDroppedDatabasesClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (result RestorableDroppedDatabase, err error)
- func (client RestorableDroppedDatabasesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client RestorableDroppedDatabasesClient) GetResponder(resp *http.Response) (result RestorableDroppedDatabase, err error)
- func (client RestorableDroppedDatabasesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client RestorableDroppedDatabasesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result RestorableDroppedDatabaseListResult, err error)
- func (client RestorableDroppedDatabasesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client RestorableDroppedDatabasesClient) ListByServerResponder(resp *http.Response) (result RestorableDroppedDatabaseListResult, err error)
- func (client RestorableDroppedDatabasesClient) ListByServerSender(req *http.Request) (*http.Response, error)
- type RestorePoint
- type RestorePointListResult
- type RestorePointProperties
- type RestorePointType
- type RestorePointsClient
- func (client RestorePointsClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, ...) (result RestorePointListResult, err error)
- func (client RestorePointsClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client RestorePointsClient) ListByDatabaseResponder(resp *http.Response) (result RestorePointListResult, err error)
- func (client RestorePointsClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)
- type SampleName
- type SecurityAlertPolicyEmailAccountAdmins
- type SecurityAlertPolicyState
- type SecurityAlertPolicyUseServerDefault
- type Server
- type ServerAdministratorListResult
- type ServerAdministratorProperties
- type ServerAdvisorsClient
- func (client ServerAdvisorsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (result Advisor, err error)
- func (client ServerAdvisorsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ServerAdvisorsClient) CreateOrUpdateResponder(resp *http.Response) (result Advisor, err error)
- func (client ServerAdvisorsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client ServerAdvisorsClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (result Advisor, err error)
- func (client ServerAdvisorsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ServerAdvisorsClient) GetResponder(resp *http.Response) (result Advisor, err error)
- func (client ServerAdvisorsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ServerAdvisorsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result AdvisorListResult, err error)
- func (client ServerAdvisorsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client ServerAdvisorsClient) ListByServerResponder(resp *http.Response) (result AdvisorListResult, err error)
- func (client ServerAdvisorsClient) ListByServerSender(req *http.Request) (*http.Response, error)
- func (client ServerAdvisorsClient) Update(ctx context.Context, resourceGroupName string, serverName string, ...) (result Advisor, err error)
- func (client ServerAdvisorsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ServerAdvisorsClient) UpdateResponder(resp *http.Response) (result Advisor, err error)
- func (client ServerAdvisorsClient) UpdateSender(req *http.Request) (*http.Response, error)
- type ServerAzureADAdministrator
- type ServerAzureADAdministratorsClient
- func (client ServerAzureADAdministratorsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (result ServerAzureADAdministratorsCreateOrUpdateFuture, err error)
- func (client ServerAzureADAdministratorsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ServerAzureADAdministratorsClient) CreateOrUpdateResponder(resp *http.Response) (result ServerAzureADAdministrator, err error)
- func (client ServerAzureADAdministratorsClient) CreateOrUpdateSender(req *http.Request) (future ServerAzureADAdministratorsCreateOrUpdateFuture, err error)
- func (client ServerAzureADAdministratorsClient) Delete(ctx context.Context, resourceGroupName string, serverName string) (result ServerAzureADAdministratorsDeleteFuture, err error)
- func (client ServerAzureADAdministratorsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client ServerAzureADAdministratorsClient) DeleteResponder(resp *http.Response) (result ServerAzureADAdministrator, err error)
- func (client ServerAzureADAdministratorsClient) DeleteSender(req *http.Request) (future ServerAzureADAdministratorsDeleteFuture, err error)
- func (client ServerAzureADAdministratorsClient) Get(ctx context.Context, resourceGroupName string, serverName string) (result ServerAzureADAdministrator, err error)
- func (client ServerAzureADAdministratorsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client ServerAzureADAdministratorsClient) GetResponder(resp *http.Response) (result ServerAzureADAdministrator, err error)
- func (client ServerAzureADAdministratorsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ServerAzureADAdministratorsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ServerAdministratorListResult, err error)
- func (client ServerAzureADAdministratorsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client ServerAzureADAdministratorsClient) ListByServerResponder(resp *http.Response) (result ServerAdministratorListResult, err error)
- func (client ServerAzureADAdministratorsClient) ListByServerSender(req *http.Request) (*http.Response, error)
- type ServerAzureADAdministratorsCreateOrUpdateFuture
- type ServerAzureADAdministratorsDeleteFuture
- type ServerCommunicationLink
- type ServerCommunicationLinkListResult
- type ServerCommunicationLinkProperties
- type ServerCommunicationLinksClient
- func (client ServerCommunicationLinksClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (result ServerCommunicationLinksCreateOrUpdateFuture, err error)
- func (client ServerCommunicationLinksClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ServerCommunicationLinksClient) CreateOrUpdateResponder(resp *http.Response) (result ServerCommunicationLink, err error)
- func (client ServerCommunicationLinksClient) CreateOrUpdateSender(req *http.Request) (future ServerCommunicationLinksCreateOrUpdateFuture, err error)
- func (client ServerCommunicationLinksClient) Delete(ctx context.Context, resourceGroupName string, serverName string, ...) (result autorest.Response, err error)
- func (client ServerCommunicationLinksClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ServerCommunicationLinksClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ServerCommunicationLinksClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client ServerCommunicationLinksClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (result ServerCommunicationLink, err error)
- func (client ServerCommunicationLinksClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ServerCommunicationLinksClient) GetResponder(resp *http.Response) (result ServerCommunicationLink, err error)
- func (client ServerCommunicationLinksClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ServerCommunicationLinksClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ServerCommunicationLinkListResult, err error)
- func (client ServerCommunicationLinksClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client ServerCommunicationLinksClient) ListByServerResponder(resp *http.Response) (result ServerCommunicationLinkListResult, err error)
- func (client ServerCommunicationLinksClient) ListByServerSender(req *http.Request) (*http.Response, error)
- type ServerCommunicationLinksCreateOrUpdateFuture
- type ServerConnectionPoliciesClient
- func (client ServerConnectionPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (result ServerConnectionPolicy, err error)
- func (client ServerConnectionPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ServerConnectionPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result ServerConnectionPolicy, err error)
- func (client ServerConnectionPoliciesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client ServerConnectionPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string) (result ServerConnectionPolicy, err error)
- func (client ServerConnectionPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client ServerConnectionPoliciesClient) GetResponder(resp *http.Response) (result ServerConnectionPolicy, err error)
- func (client ServerConnectionPoliciesClient) GetSender(req *http.Request) (*http.Response, error)
- type ServerConnectionPolicy
- type ServerConnectionPolicyProperties
- type ServerConnectionType
- type ServerListResult
- type ServerProperties
- type ServerState
- type ServerTableAuditingPoliciesClient
- func (client ServerTableAuditingPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (result ServerTableAuditingPolicy, err error)
- func (client ServerTableAuditingPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ServerTableAuditingPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result ServerTableAuditingPolicy, err error)
- func (client ServerTableAuditingPoliciesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client ServerTableAuditingPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string) (result ServerTableAuditingPolicy, err error)
- func (client ServerTableAuditingPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client ServerTableAuditingPoliciesClient) GetResponder(resp *http.Response) (result ServerTableAuditingPolicy, err error)
- func (client ServerTableAuditingPoliciesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ServerTableAuditingPoliciesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ServerTableAuditingPolicyListResult, err error)
- func (client ServerTableAuditingPoliciesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client ServerTableAuditingPoliciesClient) ListByServerResponder(resp *http.Response) (result ServerTableAuditingPolicyListResult, err error)
- func (client ServerTableAuditingPoliciesClient) ListByServerSender(req *http.Request) (*http.Response, error)
- type ServerTableAuditingPolicy
- type ServerTableAuditingPolicyListResult
- type ServerTableAuditingPolicyProperties
- type ServerUpdate
- type ServerUsage
- type ServerUsageListResult
- type ServerUsagesClient
- func (client ServerUsagesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ServerUsageListResult, err error)
- func (client ServerUsagesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client ServerUsagesClient) ListByServerResponder(resp *http.Response) (result ServerUsageListResult, err error)
- func (client ServerUsagesClient) ListByServerSender(req *http.Request) (*http.Response, error)
- type ServerVersion
- type ServerVersionCapability
- type ServersClient
- func (client ServersClient) CheckNameAvailability(ctx context.Context, parameters CheckNameAvailabilityRequest) (result CheckNameAvailabilityResponse, err error)
- func (client ServersClient) CheckNameAvailabilityPreparer(ctx context.Context, parameters CheckNameAvailabilityRequest) (*http.Request, error)
- func (client ServersClient) CheckNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityResponse, err error)
- func (client ServersClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error)
- func (client ServersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (result Server, err error)
- func (client ServersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ServersClient) CreateOrUpdateResponder(resp *http.Response) (result Server, err error)
- func (client ServersClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client ServersClient) Delete(ctx context.Context, resourceGroupName string, serverName string) (result autorest.Response, err error)
- func (client ServersClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client ServersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ServersClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client ServersClient) Get(ctx context.Context, resourceGroupName string, serverName string) (result Server, err error)
- func (client ServersClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client ServersClient) GetResponder(resp *http.Response) (result Server, err error)
- func (client ServersClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ServersClient) List(ctx context.Context) (result ServerListResult, err error)
- func (client ServersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ServerListResult, err error)
- func (client ServersClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
- func (client ServersClient) ListByResourceGroupResponder(resp *http.Response) (result ServerListResult, err error)
- func (client ServersClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client ServersClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client ServersClient) ListResponder(resp *http.Response) (result ServerListResult, err error)
- func (client ServersClient) ListSender(req *http.Request) (*http.Response, error)
- func (client ServersClient) Update(ctx context.Context, resourceGroupName string, serverName string, ...) (result Server, err error)
- func (client ServersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ServersClient) UpdateResponder(resp *http.Response) (result Server, err error)
- func (client ServersClient) UpdateSender(req *http.Request) (*http.Response, error)
- type ServiceObjective
- type ServiceObjectiveCapability
- type ServiceObjectiveListResult
- type ServiceObjectiveName
- type ServiceObjectiveProperties
- type ServiceObjectivesClient
- func (client ServiceObjectivesClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (result ServiceObjective, err error)
- func (client ServiceObjectivesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ServiceObjectivesClient) GetResponder(resp *http.Response) (result ServiceObjective, err error)
- func (client ServiceObjectivesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ServiceObjectivesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ServiceObjectiveListResult, err error)
- func (client ServiceObjectivesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client ServiceObjectivesClient) ListByServerResponder(resp *http.Response) (result ServiceObjectiveListResult, err error)
- func (client ServiceObjectivesClient) ListByServerSender(req *http.Request) (*http.Response, error)
- type ServiceTierAdvisor
- type ServiceTierAdvisorListResult
- type ServiceTierAdvisorProperties
- type ServiceTierAdvisorsClient
- func (client ServiceTierAdvisorsClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (result ServiceTierAdvisor, err error)
- func (client ServiceTierAdvisorsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ServiceTierAdvisorsClient) GetResponder(resp *http.Response) (result ServiceTierAdvisor, err error)
- func (client ServiceTierAdvisorsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ServiceTierAdvisorsClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, ...) (result ServiceTierAdvisorListResult, err error)
- func (client ServiceTierAdvisorsClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ServiceTierAdvisorsClient) ListByDatabaseResponder(resp *http.Response) (result ServiceTierAdvisorListResult, err error)
- func (client ServiceTierAdvisorsClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)
- type SloUsageMetric
- type StorageKeyType
- type TableAuditingPolicyProperties
- type TopQueries
- type TopQueriesListResult
- type TrackedResource
- type TransparentDataEncryption
- type TransparentDataEncryptionActivitiesClient
- func (client TransparentDataEncryptionActivitiesClient) ListByConfiguration(ctx context.Context, resourceGroupName string, serverName string, ...) (result TransparentDataEncryptionActivityListResult, err error)
- func (client TransparentDataEncryptionActivitiesClient) ListByConfigurationPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client TransparentDataEncryptionActivitiesClient) ListByConfigurationResponder(resp *http.Response) (result TransparentDataEncryptionActivityListResult, err error)
- func (client TransparentDataEncryptionActivitiesClient) ListByConfigurationSender(req *http.Request) (*http.Response, error)
- type TransparentDataEncryptionActivity
- type TransparentDataEncryptionActivityListResult
- type TransparentDataEncryptionActivityProperties
- type TransparentDataEncryptionActivityStatus
- type TransparentDataEncryptionConfigurationsClient
- func (client TransparentDataEncryptionConfigurationsClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, ...) (result TransparentDataEncryptionListResult, err error)
- func (client TransparentDataEncryptionConfigurationsClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client TransparentDataEncryptionConfigurationsClient) ListByDatabaseResponder(resp *http.Response) (result TransparentDataEncryptionListResult, err error)
- func (client TransparentDataEncryptionConfigurationsClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)
- type TransparentDataEncryptionListResult
- type TransparentDataEncryptionProperties
- type TransparentDataEncryptionStatus
- type TransparentDataEncryptionsClient
- func (client TransparentDataEncryptionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (result TransparentDataEncryption, err error)
- func (client TransparentDataEncryptionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client TransparentDataEncryptionsClient) CreateOrUpdateResponder(resp *http.Response) (result TransparentDataEncryption, err error)
- func (client TransparentDataEncryptionsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client TransparentDataEncryptionsClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (result TransparentDataEncryption, err error)
- func (client TransparentDataEncryptionsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client TransparentDataEncryptionsClient) GetResponder(resp *http.Response) (result TransparentDataEncryption, err error)
- func (client TransparentDataEncryptionsClient) GetSender(req *http.Request) (*http.Response, error)
- type UnitDefinitionType
- type UnitType
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 Advisor ¶
type Advisor struct { autorest.Response `json:"-"` // Kind - READ-ONLY; Resource kind. Kind *string `json:"kind,omitempty"` // Location - READ-ONLY; Resource location. Location *string `json:"location,omitempty"` // AdvisorProperties - Resource properties. *AdvisorProperties `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"` }
Advisor database Advisor.
func (Advisor) MarshalJSON ¶
MarshalJSON is the custom marshaler for Advisor.
func (*Advisor) UnmarshalJSON ¶
UnmarshalJSON is the custom unmarshaler for Advisor struct.
type AdvisorListResult ¶
type AdvisorListResult struct { autorest.Response `json:"-"` // Value - The list of advisors. Value *[]Advisor `json:"value,omitempty"` }
AdvisorListResult represents the response to a list advisors request.
type AdvisorProperties ¶
type AdvisorProperties struct { // AdvisorStatus - READ-ONLY; Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'. Possible values include: 'GA', 'PublicPreview', 'LimitedPublicPreview', 'PrivatePreview' AdvisorStatus AdvisorStatus `json:"advisorStatus,omitempty"` // AutoExecuteValue - Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'. Possible values include: 'Enabled', 'Disabled', 'Default' AutoExecuteValue AutoExecuteStatus `json:"autoExecuteValue,omitempty"` // RecommendationsStatus - READ-ONLY; Gets that status of recommendations for this advisor and reason for not having any recommendations. Possible values include, but are not limited to, 'Ok' (Recommendations available), LowActivity (not enough workload to analyze), 'DbSeemsTuned' (Database is doing well), etc. RecommendationsStatus *string `json:"recommendationsStatus,omitempty"` // LastChecked - READ-ONLY; Gets the time when the current resource was analyzed for recommendations by this advisor. LastChecked *date.Time `json:"lastChecked,omitempty"` }
AdvisorProperties properties for a Database, Server or Elastic Pool Advisor.
type AdvisorStatus ¶
type AdvisorStatus string
AdvisorStatus enumerates the values for advisor status.
const ( // GA ... GA AdvisorStatus = "GA" // LimitedPublicPreview ... LimitedPublicPreview AdvisorStatus = "LimitedPublicPreview" // PrivatePreview ... PrivatePreview AdvisorStatus = "PrivatePreview" // PublicPreview ... PublicPreview AdvisorStatus = "PublicPreview" )
func PossibleAdvisorStatusValues ¶
func PossibleAdvisorStatusValues() []AdvisorStatus
PossibleAdvisorStatusValues returns an array of possible values for the AdvisorStatus const type.
type AuthenticationType ¶
type AuthenticationType string
AuthenticationType enumerates the values for authentication type.
const ( // ADPassword ... ADPassword AuthenticationType = "ADPassword" // SQL ... SQL AuthenticationType = "SQL" )
func PossibleAuthenticationTypeValues ¶
func PossibleAuthenticationTypeValues() []AuthenticationType
PossibleAuthenticationTypeValues returns an array of possible values for the AuthenticationType const type.
type AutoExecuteStatus ¶
type AutoExecuteStatus string
AutoExecuteStatus enumerates the values for auto execute status.
const ( // Default ... Default AutoExecuteStatus = "Default" // Disabled ... Disabled AutoExecuteStatus = "Disabled" // Enabled ... Enabled AutoExecuteStatus = "Enabled" )
func PossibleAutoExecuteStatusValues ¶
func PossibleAutoExecuteStatusValues() []AutoExecuteStatus
PossibleAutoExecuteStatusValues returns an array of possible values for the AutoExecuteStatus const type.
type BackupLongTermRetentionPoliciesClient ¶
type BackupLongTermRetentionPoliciesClient struct {
BaseClient
}
BackupLongTermRetentionPoliciesClient 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 NewBackupLongTermRetentionPoliciesClient ¶
func NewBackupLongTermRetentionPoliciesClient(subscriptionID string) BackupLongTermRetentionPoliciesClient
NewBackupLongTermRetentionPoliciesClient creates an instance of the BackupLongTermRetentionPoliciesClient client.
func NewBackupLongTermRetentionPoliciesClientWithBaseURI ¶
func NewBackupLongTermRetentionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) BackupLongTermRetentionPoliciesClient
NewBackupLongTermRetentionPoliciesClientWithBaseURI creates an instance of the BackupLongTermRetentionPoliciesClient client.
func (BackupLongTermRetentionPoliciesClient) CreateOrUpdate ¶
func (client BackupLongTermRetentionPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters BackupLongTermRetentionPolicy) (result BackupLongTermRetentionPoliciesCreateOrUpdateFuture, err error)
CreateOrUpdate creates or updates a database backup long 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 required parameters to update a backup long term retention policy
func (BackupLongTermRetentionPoliciesClient) CreateOrUpdatePreparer ¶
func (client BackupLongTermRetentionPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters BackupLongTermRetentionPolicy) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (BackupLongTermRetentionPoliciesClient) CreateOrUpdateResponder ¶
func (client BackupLongTermRetentionPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result BackupLongTermRetentionPolicy, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (BackupLongTermRetentionPoliciesClient) CreateOrUpdateSender ¶
func (client BackupLongTermRetentionPoliciesClient) CreateOrUpdateSender(req *http.Request) (future BackupLongTermRetentionPoliciesCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (BackupLongTermRetentionPoliciesClient) Get ¶
func (client BackupLongTermRetentionPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result BackupLongTermRetentionPolicy, err error)
Get returns a database backup long 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 (BackupLongTermRetentionPoliciesClient) GetPreparer ¶
func (client BackupLongTermRetentionPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (BackupLongTermRetentionPoliciesClient) GetResponder ¶
func (client BackupLongTermRetentionPoliciesClient) GetResponder(resp *http.Response) (result BackupLongTermRetentionPolicy, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (BackupLongTermRetentionPoliciesClient) GetSender ¶
func (client BackupLongTermRetentionPoliciesClient) 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 (BackupLongTermRetentionPoliciesClient) ListByDatabase ¶
func (client BackupLongTermRetentionPoliciesClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result BackupLongTermRetentionPolicyListResult, err error)
ListByDatabase returns a database backup long 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 (BackupLongTermRetentionPoliciesClient) ListByDatabasePreparer ¶
func (client BackupLongTermRetentionPoliciesClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
ListByDatabasePreparer prepares the ListByDatabase request.
func (BackupLongTermRetentionPoliciesClient) ListByDatabaseResponder ¶
func (client BackupLongTermRetentionPoliciesClient) ListByDatabaseResponder(resp *http.Response) (result BackupLongTermRetentionPolicyListResult, err error)
ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.
func (BackupLongTermRetentionPoliciesClient) ListByDatabaseSender ¶
func (client BackupLongTermRetentionPoliciesClient) 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 BackupLongTermRetentionPoliciesCreateOrUpdateFuture ¶
BackupLongTermRetentionPoliciesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*BackupLongTermRetentionPoliciesCreateOrUpdateFuture) Result ¶
func (future *BackupLongTermRetentionPoliciesCreateOrUpdateFuture) Result(client BackupLongTermRetentionPoliciesClient) (bltrp BackupLongTermRetentionPolicy, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type BackupLongTermRetentionPolicy ¶
type BackupLongTermRetentionPolicy struct { autorest.Response `json:"-"` // Location - READ-ONLY; The geo-location where the resource lives Location *string `json:"location,omitempty"` // BackupLongTermRetentionPolicyProperties - The properties of the backup long term retention policy *BackupLongTermRetentionPolicyProperties `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"` }
BackupLongTermRetentionPolicy a backup long term retention policy
func (BackupLongTermRetentionPolicy) MarshalJSON ¶
func (bltrp BackupLongTermRetentionPolicy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for BackupLongTermRetentionPolicy.
func (*BackupLongTermRetentionPolicy) UnmarshalJSON ¶
func (bltrp *BackupLongTermRetentionPolicy) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for BackupLongTermRetentionPolicy struct.
type BackupLongTermRetentionPolicyListResult ¶
type BackupLongTermRetentionPolicyListResult struct { autorest.Response `json:"-"` // Value - The list of long-term retention policies in the database. Value *[]BackupLongTermRetentionPolicy `json:"value,omitempty"` }
BackupLongTermRetentionPolicyListResult represents the response to a list long-term retention policies request.
type BackupLongTermRetentionPolicyProperties ¶
type BackupLongTermRetentionPolicyProperties struct { // State - The status of the backup long term retention policy. Possible values include: 'BackupLongTermRetentionPolicyStateDisabled', 'BackupLongTermRetentionPolicyStateEnabled' State BackupLongTermRetentionPolicyState `json:"state,omitempty"` // RecoveryServicesBackupPolicyResourceID - The azure recovery services backup protection policy resource id RecoveryServicesBackupPolicyResourceID *string `json:"recoveryServicesBackupPolicyResourceId,omitempty"` }
BackupLongTermRetentionPolicyProperties the properties of a backup long term retention policy
type BackupLongTermRetentionPolicyState ¶
type BackupLongTermRetentionPolicyState string
BackupLongTermRetentionPolicyState enumerates the values for backup long term retention policy state.
const ( // BackupLongTermRetentionPolicyStateDisabled ... BackupLongTermRetentionPolicyStateDisabled BackupLongTermRetentionPolicyState = "Disabled" // BackupLongTermRetentionPolicyStateEnabled ... BackupLongTermRetentionPolicyStateEnabled BackupLongTermRetentionPolicyState = "Enabled" )
func PossibleBackupLongTermRetentionPolicyStateValues ¶
func PossibleBackupLongTermRetentionPolicyStateValues() []BackupLongTermRetentionPolicyState
PossibleBackupLongTermRetentionPolicyStateValues returns an array of possible values for the BackupLongTermRetentionPolicyState const type.
type BackupLongTermRetentionVault ¶
type BackupLongTermRetentionVault struct { autorest.Response `json:"-"` // Location - READ-ONLY; The geo-location where the resource lives Location *string `json:"location,omitempty"` // BackupLongTermRetentionVaultProperties - The properties of the backup long term retention vault *BackupLongTermRetentionVaultProperties `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"` }
BackupLongTermRetentionVault a backup long term retention vault
func (BackupLongTermRetentionVault) MarshalJSON ¶
func (bltrv BackupLongTermRetentionVault) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for BackupLongTermRetentionVault.
func (*BackupLongTermRetentionVault) UnmarshalJSON ¶
func (bltrv *BackupLongTermRetentionVault) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for BackupLongTermRetentionVault struct.
type BackupLongTermRetentionVaultListResult ¶
type BackupLongTermRetentionVaultListResult struct { autorest.Response `json:"-"` // Value - The list of vaults in the server. Value *[]BackupLongTermRetentionVault `json:"value,omitempty"` }
BackupLongTermRetentionVaultListResult represents the response to a list vaults request.
type BackupLongTermRetentionVaultProperties ¶
type BackupLongTermRetentionVaultProperties struct { // RecoveryServicesVaultResourceID - The azure recovery services vault resource id RecoveryServicesVaultResourceID *string `json:"recoveryServicesVaultResourceId,omitempty"` }
BackupLongTermRetentionVaultProperties the properties of a backup long term retention vault.
type BackupLongTermRetentionVaultsClient ¶
type BackupLongTermRetentionVaultsClient struct {
BaseClient
}
BackupLongTermRetentionVaultsClient 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 NewBackupLongTermRetentionVaultsClient ¶
func NewBackupLongTermRetentionVaultsClient(subscriptionID string) BackupLongTermRetentionVaultsClient
NewBackupLongTermRetentionVaultsClient creates an instance of the BackupLongTermRetentionVaultsClient client.
func NewBackupLongTermRetentionVaultsClientWithBaseURI ¶
func NewBackupLongTermRetentionVaultsClientWithBaseURI(baseURI string, subscriptionID string) BackupLongTermRetentionVaultsClient
NewBackupLongTermRetentionVaultsClientWithBaseURI creates an instance of the BackupLongTermRetentionVaultsClient client.
func (BackupLongTermRetentionVaultsClient) CreateOrUpdate ¶
func (client BackupLongTermRetentionVaultsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, parameters BackupLongTermRetentionVault) (result BackupLongTermRetentionVaultsCreateOrUpdateFuture, err error)
CreateOrUpdate updates a server backup long term retention vault 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 required parameters to update a backup long term retention vault
func (BackupLongTermRetentionVaultsClient) CreateOrUpdatePreparer ¶
func (client BackupLongTermRetentionVaultsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters BackupLongTermRetentionVault) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (BackupLongTermRetentionVaultsClient) CreateOrUpdateResponder ¶
func (client BackupLongTermRetentionVaultsClient) CreateOrUpdateResponder(resp *http.Response) (result BackupLongTermRetentionVault, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (BackupLongTermRetentionVaultsClient) CreateOrUpdateSender ¶
func (client BackupLongTermRetentionVaultsClient) CreateOrUpdateSender(req *http.Request) (future BackupLongTermRetentionVaultsCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (BackupLongTermRetentionVaultsClient) Get ¶
func (client BackupLongTermRetentionVaultsClient) Get(ctx context.Context, resourceGroupName string, serverName string) (result BackupLongTermRetentionVault, err error)
Get gets a server backup long term retention vault 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 (BackupLongTermRetentionVaultsClient) GetPreparer ¶
func (client BackupLongTermRetentionVaultsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (BackupLongTermRetentionVaultsClient) GetResponder ¶
func (client BackupLongTermRetentionVaultsClient) GetResponder(resp *http.Response) (result BackupLongTermRetentionVault, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (BackupLongTermRetentionVaultsClient) GetSender ¶
func (client BackupLongTermRetentionVaultsClient) 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 (BackupLongTermRetentionVaultsClient) ListByServer ¶
func (client BackupLongTermRetentionVaultsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result BackupLongTermRetentionVaultListResult, err error)
ListByServer gets server backup long term retention vaults 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.
func (BackupLongTermRetentionVaultsClient) ListByServerPreparer ¶
func (client BackupLongTermRetentionVaultsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
ListByServerPreparer prepares the ListByServer request.
func (BackupLongTermRetentionVaultsClient) ListByServerResponder ¶
func (client BackupLongTermRetentionVaultsClient) ListByServerResponder(resp *http.Response) (result BackupLongTermRetentionVaultListResult, err error)
ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.
func (BackupLongTermRetentionVaultsClient) ListByServerSender ¶
func (client BackupLongTermRetentionVaultsClient) ListByServerSender(req *http.Request) (*http.Response, error)
ListByServerSender sends the ListByServer request. The method will close the http.Response Body if it receives an error.
type BackupLongTermRetentionVaultsCreateOrUpdateFuture ¶
BackupLongTermRetentionVaultsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*BackupLongTermRetentionVaultsCreateOrUpdateFuture) Result ¶
func (future *BackupLongTermRetentionVaultsCreateOrUpdateFuture) Result(client BackupLongTermRetentionVaultsClient) (bltrv BackupLongTermRetentionVault, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
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.
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.
func (CapabilitiesClient) ListByLocation ¶
func (client CapabilitiesClient) ListByLocation(ctx context.Context, locationID string) (result LocationCapabilities, err error)
ListByLocation gets the capabilities available for the specified location. Parameters: locationID - the location id whose capabilities are retrieved.
func (CapabilitiesClient) ListByLocationPreparer ¶
func (client CapabilitiesClient) ListByLocationPreparer(ctx context.Context, locationID string) (*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 CapabilityStatus ¶
type CapabilityStatus string
CapabilityStatus enumerates the values for capability status.
const ( // CapabilityStatusAvailable ... CapabilityStatusAvailable CapabilityStatus = "Available" // CapabilityStatusDefault ... CapabilityStatusDefault CapabilityStatus = "Default" // CapabilityStatusDisabled ... CapabilityStatusDisabled CapabilityStatus = "Disabled" // CapabilityStatusVisible ... CapabilityStatusVisible CapabilityStatus = "Visible" )
func PossibleCapabilityStatusValues ¶
func PossibleCapabilityStatusValues() []CapabilityStatus
PossibleCapabilityStatusValues returns an array of possible values for the CapabilityStatus const type.
type CheckNameAvailabilityReason ¶
type CheckNameAvailabilityReason string
CheckNameAvailabilityReason enumerates the values for check name availability reason.
const ( // AlreadyExists ... AlreadyExists CheckNameAvailabilityReason = "AlreadyExists" // Invalid ... Invalid CheckNameAvailabilityReason = "Invalid" )
func PossibleCheckNameAvailabilityReasonValues ¶
func PossibleCheckNameAvailabilityReasonValues() []CheckNameAvailabilityReason
PossibleCheckNameAvailabilityReasonValues returns an array of possible values for the CheckNameAvailabilityReason const type.
type CheckNameAvailabilityRequest ¶
type CheckNameAvailabilityRequest struct { // Name - The name whose availability is to be checked. Name *string `json:"name,omitempty"` // Type - The type of resource that is used as the scope of the availability check. Type *string `json:"type,omitempty"` }
CheckNameAvailabilityRequest a request to check whether the specified name for a resource is available.
type CheckNameAvailabilityResponse ¶
type CheckNameAvailabilityResponse struct { autorest.Response `json:"-"` // Available - READ-ONLY; True if the name is available, otherwise false. Available *bool `json:"available,omitempty"` // Message - READ-ONLY; A message explaining why the name is unavailable. Will be null if the name is available. Message *string `json:"message,omitempty"` // Name - READ-ONLY; The name whose availability was checked. Name *string `json:"name,omitempty"` // Reason - READ-ONLY; The reason code explaining why the name is unavailable. Will be null if the name is available. Possible values include: 'Invalid', 'AlreadyExists' Reason CheckNameAvailabilityReason `json:"reason,omitempty"` }
CheckNameAvailabilityResponse a response indicating whether the specified name for a resource is available.
type CreateMode ¶
type CreateMode string
CreateMode enumerates the values for create mode.
const ( // CreateModeCopy ... CreateModeCopy CreateMode = "Copy" // CreateModeDefault ... CreateModeDefault CreateMode = "Default" // CreateModeNonReadableSecondary ... CreateModeNonReadableSecondary CreateMode = "NonReadableSecondary" // CreateModeOnlineSecondary ... CreateModeOnlineSecondary CreateMode = "OnlineSecondary" // CreateModePointInTimeRestore ... CreateModePointInTimeRestore CreateMode = "PointInTimeRestore" // CreateModeRecovery ... CreateModeRecovery CreateMode = "Recovery" // CreateModeRestore ... CreateModeRestore CreateMode = "Restore" // CreateModeRestoreLongTermRetentionBackup ... CreateModeRestoreLongTermRetentionBackup CreateMode = "RestoreLongTermRetentionBackup" )
func PossibleCreateModeValues ¶
func PossibleCreateModeValues() []CreateMode
PossibleCreateModeValues returns an array of possible values for the CreateMode const type.
type DataMaskingFunction ¶
type DataMaskingFunction string
DataMaskingFunction enumerates the values for data masking function.
const ( // DataMaskingFunctionCCN ... DataMaskingFunctionCCN DataMaskingFunction = "CCN" // DataMaskingFunctionDefault ... DataMaskingFunctionDefault DataMaskingFunction = "Default" // DataMaskingFunctionEmail ... DataMaskingFunctionEmail DataMaskingFunction = "Email" // DataMaskingFunctionNumber ... DataMaskingFunctionNumber DataMaskingFunction = "Number" // DataMaskingFunctionSSN ... DataMaskingFunctionSSN DataMaskingFunction = "SSN" // DataMaskingFunctionText ... DataMaskingFunctionText DataMaskingFunction = "Text" )
func PossibleDataMaskingFunctionValues ¶
func PossibleDataMaskingFunctionValues() []DataMaskingFunction
PossibleDataMaskingFunctionValues returns an array of possible values for the DataMaskingFunction const type.
type DataMaskingPoliciesClient ¶
type DataMaskingPoliciesClient struct {
BaseClient
}
DataMaskingPoliciesClient 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 NewDataMaskingPoliciesClient ¶
func NewDataMaskingPoliciesClient(subscriptionID string) DataMaskingPoliciesClient
NewDataMaskingPoliciesClient creates an instance of the DataMaskingPoliciesClient client.
func NewDataMaskingPoliciesClientWithBaseURI ¶
func NewDataMaskingPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DataMaskingPoliciesClient
NewDataMaskingPoliciesClientWithBaseURI creates an instance of the DataMaskingPoliciesClient client.
func (DataMaskingPoliciesClient) CreateOrUpdate ¶
func (client DataMaskingPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DataMaskingPolicy) (result DataMaskingPolicy, err error)
CreateOrUpdate creates or updates a database data masking 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 - parameters for creating or updating a data masking policy.
func (DataMaskingPoliciesClient) CreateOrUpdatePreparer ¶
func (client DataMaskingPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DataMaskingPolicy) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (DataMaskingPoliciesClient) CreateOrUpdateResponder ¶
func (client DataMaskingPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result DataMaskingPolicy, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (DataMaskingPoliciesClient) CreateOrUpdateSender ¶
func (client DataMaskingPoliciesClient) 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 (DataMaskingPoliciesClient) Get ¶
func (client DataMaskingPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DataMaskingPolicy, err error)
Get gets a database data masking 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 (DataMaskingPoliciesClient) GetPreparer ¶
func (client DataMaskingPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (DataMaskingPoliciesClient) GetResponder ¶
func (client DataMaskingPoliciesClient) GetResponder(resp *http.Response) (result DataMaskingPolicy, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
type DataMaskingPolicy ¶
type DataMaskingPolicy struct { autorest.Response `json:"-"` // DataMaskingPolicyProperties - The properties of the data masking policy. *DataMaskingPolicyProperties `json:"properties,omitempty"` // Location - READ-ONLY; The location of the data masking policy. Location *string `json:"location,omitempty"` // Kind - READ-ONLY; The kind of data masking policy. Metadata, used for Azure portal. Kind *string `json:"kind,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"` }
DataMaskingPolicy represents a database data masking policy.
func (DataMaskingPolicy) MarshalJSON ¶
func (dmp DataMaskingPolicy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DataMaskingPolicy.
func (*DataMaskingPolicy) UnmarshalJSON ¶
func (dmp *DataMaskingPolicy) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DataMaskingPolicy struct.
type DataMaskingPolicyProperties ¶
type DataMaskingPolicyProperties struct { // DataMaskingState - The state of the data masking policy. Possible values include: 'DataMaskingStateDisabled', 'DataMaskingStateEnabled' DataMaskingState DataMaskingState `json:"dataMaskingState,omitempty"` // ExemptPrincipals - The list of the exempt principals. Specifies the semicolon-separated list of database users for which the data masking policy does not apply. The specified users receive data results without masking for all of the database queries. ExemptPrincipals *string `json:"exemptPrincipals,omitempty"` // ApplicationPrincipals - READ-ONLY; The list of the application principals. This is a legacy parameter and is no longer used. ApplicationPrincipals *string `json:"applicationPrincipals,omitempty"` // MaskingLevel - READ-ONLY; The masking level. This is a legacy parameter and is no longer used. MaskingLevel *string `json:"maskingLevel,omitempty"` }
DataMaskingPolicyProperties the properties of a database data masking policy.
type DataMaskingRule ¶
type DataMaskingRule struct { autorest.Response `json:"-"` // DataMaskingRuleProperties - The properties of the resource. *DataMaskingRuleProperties `json:"properties,omitempty"` // Location - READ-ONLY; The location of the data masking rule. Location *string `json:"location,omitempty"` // Kind - READ-ONLY; The kind of Data Masking Rule. Metadata, used for Azure portal. Kind *string `json:"kind,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"` }
DataMaskingRule represents a database data masking rule.
func (DataMaskingRule) MarshalJSON ¶
func (dmr DataMaskingRule) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DataMaskingRule.
func (*DataMaskingRule) UnmarshalJSON ¶
func (dmr *DataMaskingRule) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DataMaskingRule struct.
type DataMaskingRuleListResult ¶
type DataMaskingRuleListResult struct { autorest.Response `json:"-"` // Value - The list of database data masking rules. Value *[]DataMaskingRule `json:"value,omitempty"` }
DataMaskingRuleListResult the response to a list data masking rules request.
type DataMaskingRuleProperties ¶
type DataMaskingRuleProperties struct { // ID - READ-ONLY; The rule Id. ID *string `json:"id,omitempty"` // AliasName - The alias name. This is a legacy parameter and is no longer used. AliasName *string `json:"aliasName,omitempty"` // RuleState - The rule state. Used to delete a rule. To delete an existing rule, specify the schemaName, tableName, columnName, maskingFunction, and specify ruleState as disabled. However, if the rule doesn't already exist, the rule will be created with ruleState set to enabled, regardless of the provided value of ruleState. Possible values include: 'DataMaskingRuleStateDisabled', 'DataMaskingRuleStateEnabled' RuleState DataMaskingRuleState `json:"ruleState,omitempty"` // SchemaName - The schema name on which the data masking rule is applied. SchemaName *string `json:"schemaName,omitempty"` // TableName - The table name on which the data masking rule is applied. TableName *string `json:"tableName,omitempty"` // ColumnName - The column name on which the data masking rule is applied. ColumnName *string `json:"columnName,omitempty"` // MaskingFunction - The masking function that is used for the data masking rule. Possible values include: 'DataMaskingFunctionDefault', 'DataMaskingFunctionCCN', 'DataMaskingFunctionEmail', 'DataMaskingFunctionNumber', 'DataMaskingFunctionSSN', 'DataMaskingFunctionText' MaskingFunction DataMaskingFunction `json:"maskingFunction,omitempty"` // NumberFrom - The numberFrom property of the masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored. NumberFrom *string `json:"numberFrom,omitempty"` // NumberTo - The numberTo property of the data masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored. NumberTo *string `json:"numberTo,omitempty"` // PrefixSize - If maskingFunction is set to Text, the number of characters to show unmasked in the beginning of the string. Otherwise, this parameter will be ignored. PrefixSize *string `json:"prefixSize,omitempty"` // SuffixSize - If maskingFunction is set to Text, the number of characters to show unmasked at the end of the string. Otherwise, this parameter will be ignored. SuffixSize *string `json:"suffixSize,omitempty"` // ReplacementString - If maskingFunction is set to Text, the character to use for masking the unexposed part of the string. Otherwise, this parameter will be ignored. ReplacementString *string `json:"replacementString,omitempty"` }
DataMaskingRuleProperties the properties of a database data masking rule.
type DataMaskingRuleState ¶
type DataMaskingRuleState string
DataMaskingRuleState enumerates the values for data masking rule state.
const ( // DataMaskingRuleStateDisabled ... DataMaskingRuleStateDisabled DataMaskingRuleState = "Disabled" // DataMaskingRuleStateEnabled ... DataMaskingRuleStateEnabled DataMaskingRuleState = "Enabled" )
func PossibleDataMaskingRuleStateValues ¶
func PossibleDataMaskingRuleStateValues() []DataMaskingRuleState
PossibleDataMaskingRuleStateValues returns an array of possible values for the DataMaskingRuleState const type.
type DataMaskingRulesClient ¶
type DataMaskingRulesClient struct {
BaseClient
}
DataMaskingRulesClient 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 NewDataMaskingRulesClient ¶
func NewDataMaskingRulesClient(subscriptionID string) DataMaskingRulesClient
NewDataMaskingRulesClient creates an instance of the DataMaskingRulesClient client.
func NewDataMaskingRulesClientWithBaseURI ¶
func NewDataMaskingRulesClientWithBaseURI(baseURI string, subscriptionID string) DataMaskingRulesClient
NewDataMaskingRulesClientWithBaseURI creates an instance of the DataMaskingRulesClient client.
func (DataMaskingRulesClient) CreateOrUpdate ¶
func (client DataMaskingRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, dataMaskingRuleName string, parameters DataMaskingRule) (result DataMaskingRule, err error)
CreateOrUpdate creates or updates a database data masking rule. 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. dataMaskingRuleName - the name of the data masking rule. parameters - the required parameters for creating or updating a data masking rule.
func (DataMaskingRulesClient) CreateOrUpdatePreparer ¶
func (client DataMaskingRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, dataMaskingRuleName string, parameters DataMaskingRule) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (DataMaskingRulesClient) CreateOrUpdateResponder ¶
func (client DataMaskingRulesClient) CreateOrUpdateResponder(resp *http.Response) (result DataMaskingRule, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (DataMaskingRulesClient) CreateOrUpdateSender ¶
func (client DataMaskingRulesClient) 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 (DataMaskingRulesClient) ListByDatabase ¶
func (client DataMaskingRulesClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DataMaskingRuleListResult, err error)
ListByDatabase gets a list of database data masking rules. 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 (DataMaskingRulesClient) ListByDatabasePreparer ¶
func (client DataMaskingRulesClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
ListByDatabasePreparer prepares the ListByDatabase request.
func (DataMaskingRulesClient) ListByDatabaseResponder ¶
func (client DataMaskingRulesClient) ListByDatabaseResponder(resp *http.Response) (result DataMaskingRuleListResult, err error)
ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.
func (DataMaskingRulesClient) ListByDatabaseSender ¶
func (client DataMaskingRulesClient) 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 DataMaskingState ¶
type DataMaskingState string
DataMaskingState enumerates the values for data masking state.
const ( // DataMaskingStateDisabled ... DataMaskingStateDisabled DataMaskingState = "Disabled" // DataMaskingStateEnabled ... DataMaskingStateEnabled DataMaskingState = "Enabled" )
func PossibleDataMaskingStateValues ¶
func PossibleDataMaskingStateValues() []DataMaskingState
PossibleDataMaskingStateValues returns an array of possible values for the DataMaskingState const type.
type Database ¶
type Database struct { autorest.Response `json:"-"` // Kind - READ-ONLY; Kind of database. This is metadata used for the Azure portal experience. Kind *string `json:"kind,omitempty"` // DatabaseProperties - The properties representing the resource. *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 represents a database.
func (Database) MarshalJSON ¶
MarshalJSON is the custom marshaler for Database.
func (*Database) UnmarshalJSON ¶
UnmarshalJSON is the custom unmarshaler for Database struct.
type DatabaseAdvisorsClient ¶
type DatabaseAdvisorsClient struct {
BaseClient
}
DatabaseAdvisorsClient 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 NewDatabaseAdvisorsClient ¶
func NewDatabaseAdvisorsClient(subscriptionID string) DatabaseAdvisorsClient
NewDatabaseAdvisorsClient creates an instance of the DatabaseAdvisorsClient client.
func NewDatabaseAdvisorsClientWithBaseURI ¶
func NewDatabaseAdvisorsClientWithBaseURI(baseURI string, subscriptionID string) DatabaseAdvisorsClient
NewDatabaseAdvisorsClientWithBaseURI creates an instance of the DatabaseAdvisorsClient client.
func (DatabaseAdvisorsClient) CreateOrUpdate ¶
func (client DatabaseAdvisorsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, advisorName string, parameters Advisor) (result Advisor, err error)
CreateOrUpdate creates or updates a database advisor. 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. advisorName - the name of the Database Advisor. parameters - the requested advisor resource state.
func (DatabaseAdvisorsClient) CreateOrUpdatePreparer ¶
func (client DatabaseAdvisorsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, advisorName string, parameters Advisor) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (DatabaseAdvisorsClient) CreateOrUpdateResponder ¶
func (client DatabaseAdvisorsClient) CreateOrUpdateResponder(resp *http.Response) (result Advisor, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (DatabaseAdvisorsClient) CreateOrUpdateSender ¶
func (client DatabaseAdvisorsClient) 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 (DatabaseAdvisorsClient) Get ¶
func (client DatabaseAdvisorsClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string, advisorName string) (result Advisor, err error)
Get returns details of a Database Advisor. 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. advisorName - the name of the Database Advisor.
func (DatabaseAdvisorsClient) GetPreparer ¶
func (client DatabaseAdvisorsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, advisorName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (DatabaseAdvisorsClient) GetResponder ¶
func (client DatabaseAdvisorsClient) GetResponder(resp *http.Response) (result Advisor, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (DatabaseAdvisorsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (DatabaseAdvisorsClient) ListByDatabase ¶
func (client DatabaseAdvisorsClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result AdvisorListResult, err error)
ListByDatabase returns a list of database advisors. 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 (DatabaseAdvisorsClient) ListByDatabasePreparer ¶
func (client DatabaseAdvisorsClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
ListByDatabasePreparer prepares the ListByDatabase request.
func (DatabaseAdvisorsClient) ListByDatabaseResponder ¶
func (client DatabaseAdvisorsClient) ListByDatabaseResponder(resp *http.Response) (result AdvisorListResult, err error)
ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.
func (DatabaseAdvisorsClient) ListByDatabaseSender ¶
func (client DatabaseAdvisorsClient) 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 DatabaseConnectionPoliciesClient ¶
type DatabaseConnectionPoliciesClient struct {
BaseClient
}
DatabaseConnectionPoliciesClient 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 NewDatabaseConnectionPoliciesClient ¶
func NewDatabaseConnectionPoliciesClient(subscriptionID string) DatabaseConnectionPoliciesClient
NewDatabaseConnectionPoliciesClient creates an instance of the DatabaseConnectionPoliciesClient client.
func NewDatabaseConnectionPoliciesClientWithBaseURI ¶
func NewDatabaseConnectionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseConnectionPoliciesClient
NewDatabaseConnectionPoliciesClientWithBaseURI creates an instance of the DatabaseConnectionPoliciesClient client.
func (DatabaseConnectionPoliciesClient) CreateOrUpdate ¶
func (client DatabaseConnectionPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseConnectionPolicy) (result DatabaseConnectionPolicy, err error)
CreateOrUpdate creates or updates a database's connection policy, which is used with table auditing. Table auditing is deprecated, use blob auditing instead. 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 for which the connection policy will be defined. parameters - the database connection policy.
func (DatabaseConnectionPoliciesClient) CreateOrUpdatePreparer ¶
func (client DatabaseConnectionPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseConnectionPolicy) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (DatabaseConnectionPoliciesClient) CreateOrUpdateResponder ¶
func (client DatabaseConnectionPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result DatabaseConnectionPolicy, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (DatabaseConnectionPoliciesClient) CreateOrUpdateSender ¶
func (client DatabaseConnectionPoliciesClient) 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 (DatabaseConnectionPoliciesClient) Get ¶
func (client DatabaseConnectionPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseConnectionPolicy, err error)
Get gets a database's connection policy, which is used with table auditing. Table auditing is deprecated, use blob auditing instead. 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 for which the connection policy is defined.
func (DatabaseConnectionPoliciesClient) GetPreparer ¶
func (client DatabaseConnectionPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (DatabaseConnectionPoliciesClient) GetResponder ¶
func (client DatabaseConnectionPoliciesClient) GetResponder(resp *http.Response) (result DatabaseConnectionPolicy, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
type DatabaseConnectionPolicy ¶
type DatabaseConnectionPolicy struct { autorest.Response `json:"-"` // Kind - READ-ONLY; Resource kind. Kind *string `json:"kind,omitempty"` // Location - READ-ONLY; Resource location. Location *string `json:"location,omitempty"` // DatabaseConnectionPolicyProperties - Resource properties. *DatabaseConnectionPolicyProperties `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"` }
DatabaseConnectionPolicy a database connection policy.
func (DatabaseConnectionPolicy) MarshalJSON ¶
func (dcp DatabaseConnectionPolicy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DatabaseConnectionPolicy.
func (*DatabaseConnectionPolicy) UnmarshalJSON ¶
func (dcp *DatabaseConnectionPolicy) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DatabaseConnectionPolicy struct.
type DatabaseConnectionPolicyProperties ¶
type DatabaseConnectionPolicyProperties struct { // SecurityEnabledAccess - The state of security access. SecurityEnabledAccess *string `json:"securityEnabledAccess,omitempty"` // ProxyDNSName - The fully qualified host name of the auditing proxy. ProxyDNSName *string `json:"proxyDnsName,omitempty"` // ProxyPort - The port number of the auditing proxy. ProxyPort *string `json:"proxyPort,omitempty"` // Visibility - The visibility of the auditing proxy. Visibility *string `json:"visibility,omitempty"` // UseServerDefault - Whether server default is enabled or disabled. UseServerDefault *string `json:"useServerDefault,omitempty"` // RedirectionState - The state of proxy redirection. RedirectionState *string `json:"redirectionState,omitempty"` // State - The connection policy state. State *string `json:"state,omitempty"` }
DatabaseConnectionPolicyProperties properties of a database connection policy.
type DatabaseEdition ¶
type DatabaseEdition string
DatabaseEdition enumerates the values for database edition.
const ( // Basic ... Basic DatabaseEdition = "Basic" // Business ... Business DatabaseEdition = "Business" // BusinessCritical ... BusinessCritical DatabaseEdition = "BusinessCritical" // DataWarehouse ... DataWarehouse DatabaseEdition = "DataWarehouse" // Free ... Free DatabaseEdition = "Free" // GeneralPurpose ... GeneralPurpose DatabaseEdition = "GeneralPurpose" // Hyperscale ... Hyperscale DatabaseEdition = "Hyperscale" // Premium ... Premium DatabaseEdition = "Premium" // PremiumRS ... PremiumRS DatabaseEdition = "PremiumRS" // Standard ... Standard DatabaseEdition = "Standard" // Stretch ... Stretch DatabaseEdition = "Stretch" // System ... System DatabaseEdition = "System" // System2 ... System2 DatabaseEdition = "System2" // Web ... Web DatabaseEdition = "Web" )
func PossibleDatabaseEditionValues ¶
func PossibleDatabaseEditionValues() []DatabaseEdition
PossibleDatabaseEditionValues returns an array of possible values for the DatabaseEdition const type.
type DatabaseListResult ¶
type DatabaseListResult struct { autorest.Response `json:"-"` // Value - The list of databases housed in the server. Value *[]Database `json:"value,omitempty"` }
DatabaseListResult represents the response to a list database request.
type DatabaseProperties ¶
type DatabaseProperties struct { // Collation - The collation of the database. If createMode is not Default, this value is ignored. Collation *string `json:"collation,omitempty"` // CreationDate - READ-ONLY; The creation date of the database (ISO8601 format). CreationDate *date.Time `json:"creationDate,omitempty"` // ContainmentState - READ-ONLY; The containment state of the database. ContainmentState *int64 `json:"containmentState,omitempty"` // CurrentServiceObjectiveID - READ-ONLY; The current service level objective ID of the database. This is the ID of the service level objective that is currently active. CurrentServiceObjectiveID *uuid.UUID `json:"currentServiceObjectiveId,omitempty"` // DatabaseID - READ-ONLY; The ID of the database. DatabaseID *uuid.UUID `json:"databaseId,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"` // 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. // OnlineSecondary/NonReadableSecondary: creates a database as a (readable or nonreadable) 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, NonReadableSecondary, OnlineSecondary and RestoreLongTermRetentionBackup are not supported for DataWarehouse edition. Possible values include: 'CreateModeCopy', 'CreateModeDefault', 'CreateModeNonReadableSecondary', 'CreateModeOnlineSecondary', 'CreateModePointInTimeRestore', 'CreateModeRecovery', 'CreateModeRestore', 'CreateModeRestoreLongTermRetentionBackup' CreateMode CreateMode `json:"createMode,omitempty"` // SourceDatabaseID - Conditional. If createMode is Copy, NonReadableSecondary, OnlineSecondary, PointInTimeRestore, Recovery, or Restore, then this value is required. Specifies the resource ID of the source database. If createMode is NonReadableSecondary or OnlineSecondary, the name of the source database must be the same as the new database being created. SourceDatabaseID *string `json:"sourceDatabaseId,omitempty"` // SourceDatabaseDeletionDate - Conditional. If createMode is Restore and sourceDatabaseId is the deleted database's original resource id when it existed (as opposed to its current restorable dropped database id), then this value is required. Specifies the time that the database was deleted. SourceDatabaseDeletionDate *date.Time `json:"sourceDatabaseDeletionDate,omitempty"` // RestorePointInTime - Conditional. If createMode is PointInTimeRestore, this value is required. If createMode is Restore, this value is optional. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. Must be greater than or equal to the source database's earliestRestoreDate value. RestorePointInTime *date.Time `json:"restorePointInTime,omitempty"` // RecoveryServicesRecoveryPointResourceID - Conditional. If createMode is RestoreLongTermRetentionBackup, then this value is required. Specifies the resource ID of the recovery point to restore from. RecoveryServicesRecoveryPointResourceID *string `json:"recoveryServicesRecoveryPointResourceId,omitempty"` // Edition - The edition of the database. The DatabaseEditions enumeration contains all the valid editions. If createMode is NonReadableSecondary or OnlineSecondary, this value is ignored. // // 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> // ““ // . Possible values include: 'Web', 'Business', 'Basic', 'Standard', 'Premium', 'PremiumRS', 'Free', 'Stretch', 'DataWarehouse', 'System', 'System2', 'GeneralPurpose', 'BusinessCritical', 'Hyperscale' Edition DatabaseEdition `json:"edition,omitempty"` // MaxSizeBytes - The max size of the database expressed in bytes. If createMode is not Default, this value is ignored. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: "Capabilities_ListByLocation." MaxSizeBytes *string `json:"maxSizeBytes,omitempty"` // RequestedServiceObjectiveID - The configured service level objective ID of the database. This is the service level objective that is in the process of being applied to the database. Once successfully updated, it will match the value of currentServiceObjectiveId property. If requestedServiceObjectiveId and requestedServiceObjectiveName are both updated, the value of requestedServiceObjectiveId overrides the value of requestedServiceObjectiveName. // // The list of SKUs may vary by region and support offer. To determine the service objective ids that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API. RequestedServiceObjectiveID *uuid.UUID `json:"requestedServiceObjectiveId,omitempty"` // RequestedServiceObjectiveName - The name of the configured service level objective of the database. This is the service level objective that is in the process of being applied to the database. Once successfully updated, it will match the value of serviceLevelObjective property. // // 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> // ““ // . Possible values include: 'ServiceObjectiveNameSystem', 'ServiceObjectiveNameSystem0', 'ServiceObjectiveNameSystem1', 'ServiceObjectiveNameSystem2', 'ServiceObjectiveNameSystem3', 'ServiceObjectiveNameSystem4', 'ServiceObjectiveNameSystem2L', 'ServiceObjectiveNameSystem3L', 'ServiceObjectiveNameSystem4L', 'ServiceObjectiveNameFree', 'ServiceObjectiveNameBasic', 'ServiceObjectiveNameS0', 'ServiceObjectiveNameS1', 'ServiceObjectiveNameS2', 'ServiceObjectiveNameS3', 'ServiceObjectiveNameS4', 'ServiceObjectiveNameS6', 'ServiceObjectiveNameS7', 'ServiceObjectiveNameS9', 'ServiceObjectiveNameS12', 'ServiceObjectiveNameP1', 'ServiceObjectiveNameP2', 'ServiceObjectiveNameP3', 'ServiceObjectiveNameP4', 'ServiceObjectiveNameP6', 'ServiceObjectiveNameP11', 'ServiceObjectiveNameP15', 'ServiceObjectiveNamePRS1', 'ServiceObjectiveNamePRS2', 'ServiceObjectiveNamePRS4', 'ServiceObjectiveNamePRS6', 'ServiceObjectiveNameDW100', 'ServiceObjectiveNameDW200', 'ServiceObjectiveNameDW300', 'ServiceObjectiveNameDW400', 'ServiceObjectiveNameDW500', 'ServiceObjectiveNameDW600', 'ServiceObjectiveNameDW1000', 'ServiceObjectiveNameDW1200', 'ServiceObjectiveNameDW1000c', 'ServiceObjectiveNameDW1500', 'ServiceObjectiveNameDW1500c', 'ServiceObjectiveNameDW2000', 'ServiceObjectiveNameDW2000c', 'ServiceObjectiveNameDW3000', 'ServiceObjectiveNameDW2500c', 'ServiceObjectiveNameDW3000c', 'ServiceObjectiveNameDW6000', 'ServiceObjectiveNameDW5000c', 'ServiceObjectiveNameDW6000c', 'ServiceObjectiveNameDW7500c', 'ServiceObjectiveNameDW10000c', 'ServiceObjectiveNameDW15000c', 'ServiceObjectiveNameDW30000c', 'ServiceObjectiveNameDS100', 'ServiceObjectiveNameDS200', 'ServiceObjectiveNameDS300', 'ServiceObjectiveNameDS400', 'ServiceObjectiveNameDS500', 'ServiceObjectiveNameDS600', 'ServiceObjectiveNameDS1000', 'ServiceObjectiveNameDS1200', 'ServiceObjectiveNameDS1500', 'ServiceObjectiveNameDS2000', 'ServiceObjectiveNameElasticPool' RequestedServiceObjectiveName ServiceObjectiveName `json:"requestedServiceObjectiveName,omitempty"` // ServiceLevelObjective - READ-ONLY; The current service level objective of the database. Possible values include: 'ServiceObjectiveNameSystem', 'ServiceObjectiveNameSystem0', 'ServiceObjectiveNameSystem1', 'ServiceObjectiveNameSystem2', 'ServiceObjectiveNameSystem3', 'ServiceObjectiveNameSystem4', 'ServiceObjectiveNameSystem2L', 'ServiceObjectiveNameSystem3L', 'ServiceObjectiveNameSystem4L', 'ServiceObjectiveNameFree', 'ServiceObjectiveNameBasic', 'ServiceObjectiveNameS0', 'ServiceObjectiveNameS1', 'ServiceObjectiveNameS2', 'ServiceObjectiveNameS3', 'ServiceObjectiveNameS4', 'ServiceObjectiveNameS6', 'ServiceObjectiveNameS7', 'ServiceObjectiveNameS9', 'ServiceObjectiveNameS12', 'ServiceObjectiveNameP1', 'ServiceObjectiveNameP2', 'ServiceObjectiveNameP3', 'ServiceObjectiveNameP4', 'ServiceObjectiveNameP6', 'ServiceObjectiveNameP11', 'ServiceObjectiveNameP15', 'ServiceObjectiveNamePRS1', 'ServiceObjectiveNamePRS2', 'ServiceObjectiveNamePRS4', 'ServiceObjectiveNamePRS6', 'ServiceObjectiveNameDW100', 'ServiceObjectiveNameDW200', 'ServiceObjectiveNameDW300', 'ServiceObjectiveNameDW400', 'ServiceObjectiveNameDW500', 'ServiceObjectiveNameDW600', 'ServiceObjectiveNameDW1000', 'ServiceObjectiveNameDW1200', 'ServiceObjectiveNameDW1000c', 'ServiceObjectiveNameDW1500', 'ServiceObjectiveNameDW1500c', 'ServiceObjectiveNameDW2000', 'ServiceObjectiveNameDW2000c', 'ServiceObjectiveNameDW3000', 'ServiceObjectiveNameDW2500c', 'ServiceObjectiveNameDW3000c', 'ServiceObjectiveNameDW6000', 'ServiceObjectiveNameDW5000c', 'ServiceObjectiveNameDW6000c', 'ServiceObjectiveNameDW7500c', 'ServiceObjectiveNameDW10000c', 'ServiceObjectiveNameDW15000c', 'ServiceObjectiveNameDW30000c', 'ServiceObjectiveNameDS100', 'ServiceObjectiveNameDS200', 'ServiceObjectiveNameDS300', 'ServiceObjectiveNameDS400', 'ServiceObjectiveNameDS500', 'ServiceObjectiveNameDS600', 'ServiceObjectiveNameDS1000', 'ServiceObjectiveNameDS1200', 'ServiceObjectiveNameDS1500', 'ServiceObjectiveNameDS2000', 'ServiceObjectiveNameElasticPool' ServiceLevelObjective ServiceObjectiveName `json:"serviceLevelObjective,omitempty"` // Status - READ-ONLY; The status of the database. Status *string `json:"status,omitempty"` // ElasticPoolName - The name of the elastic pool the database is in. If elasticPoolName and requestedServiceObjectiveName are both updated, the value of requestedServiceObjectiveName is ignored. Not supported for DataWarehouse edition. ElasticPoolName *string `json:"elasticPoolName,omitempty"` // DefaultSecondaryLocation - READ-ONLY; The default secondary region for this database. DefaultSecondaryLocation *string `json:"defaultSecondaryLocation,omitempty"` // ServiceTierAdvisors - READ-ONLY; The list of service tier advisors for this database. Expanded property ServiceTierAdvisors *[]ServiceTierAdvisor `json:"serviceTierAdvisors,omitempty"` // TransparentDataEncryption - READ-ONLY; The transparent data encryption info for this database. TransparentDataEncryption *[]TransparentDataEncryption `json:"transparentDataEncryption,omitempty"` // RecommendedIndex - READ-ONLY; The recommended indices for this database. RecommendedIndex *[]RecommendedIndex `json:"recommendedIndex,omitempty"` // FailoverGroupID - READ-ONLY; The resource identifier of the failover group containing this database. FailoverGroupID *string `json:"failoverGroupId,omitempty"` // ReadScale - Conditional. If the database is a geo-secondary, readScale indicates whether read-only connections are allowed to this database or not. Not supported for DataWarehouse edition. Possible values include: 'ReadScaleEnabled', 'ReadScaleDisabled' ReadScale ReadScale `json:"readScale,omitempty"` // SampleName - Indicates the name of the sample schema to apply when creating this database. If createMode is not Default, this value is ignored. Not supported for DataWarehouse edition. Possible values include: 'AdventureWorksLT' SampleName SampleName `json:"sampleName,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"` }
DatabaseProperties represents the properties of a database.
type DatabaseSecurityAlertPolicy ¶
type DatabaseSecurityAlertPolicy struct { autorest.Response `json:"-"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` // Kind - READ-ONLY; Resource kind. Kind *string `json:"kind,omitempty"` // DatabaseSecurityAlertPolicyProperties - Properties of the security alert policy. *DatabaseSecurityAlertPolicyProperties `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"` }
DatabaseSecurityAlertPolicy contains information about a database Threat Detection policy.
func (DatabaseSecurityAlertPolicy) MarshalJSON ¶
func (dsap DatabaseSecurityAlertPolicy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DatabaseSecurityAlertPolicy.
func (*DatabaseSecurityAlertPolicy) UnmarshalJSON ¶
func (dsap *DatabaseSecurityAlertPolicy) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DatabaseSecurityAlertPolicy struct.
type DatabaseSecurityAlertPolicyProperties ¶
type DatabaseSecurityAlertPolicyProperties struct { // State - Specifies the state of the policy. If state is Enabled, storageEndpoint and storageAccountAccessKey are required. Possible values include: 'SecurityAlertPolicyStateNew', 'SecurityAlertPolicyStateEnabled', 'SecurityAlertPolicyStateDisabled' State SecurityAlertPolicyState `json:"state,omitempty"` // DisabledAlerts - Specifies the semicolon-separated list of alerts that are disabled, or empty string to disable no alerts. Possible values: Sql_Injection; Sql_Injection_Vulnerability; Access_Anomaly; Data_Exfiltration; Unsafe_Action. DisabledAlerts *string `json:"disabledAlerts,omitempty"` // EmailAddresses - Specifies the semicolon-separated list of e-mail addresses to which the alert is sent. EmailAddresses *string `json:"emailAddresses,omitempty"` // EmailAccountAdmins - Specifies that the alert is sent to the account administrators. Possible values include: 'SecurityAlertPolicyEmailAccountAdminsEnabled', 'SecurityAlertPolicyEmailAccountAdminsDisabled' EmailAccountAdmins SecurityAlertPolicyEmailAccountAdmins `json:"emailAccountAdmins,omitempty"` // StorageEndpoint - Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. If state is Enabled, storageEndpoint is required. StorageEndpoint *string `json:"storageEndpoint,omitempty"` // StorageAccountAccessKey - Specifies the identifier key of the Threat Detection audit storage account. If state is Enabled, storageAccountAccessKey is required. StorageAccountAccessKey *string `json:"storageAccountAccessKey,omitempty"` // RetentionDays - Specifies the number of days to keep in the Threat Detection audit logs. RetentionDays *int32 `json:"retentionDays,omitempty"` // UseServerDefault - Specifies whether to use the default server policy. Possible values include: 'SecurityAlertPolicyUseServerDefaultEnabled', 'SecurityAlertPolicyUseServerDefaultDisabled' UseServerDefault SecurityAlertPolicyUseServerDefault `json:"useServerDefault,omitempty"` }
DatabaseSecurityAlertPolicyProperties properties for a database Threat Detection policy.
type DatabaseTableAuditingPoliciesClient ¶
type DatabaseTableAuditingPoliciesClient struct {
BaseClient
}
DatabaseTableAuditingPoliciesClient 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 NewDatabaseTableAuditingPoliciesClient ¶
func NewDatabaseTableAuditingPoliciesClient(subscriptionID string) DatabaseTableAuditingPoliciesClient
NewDatabaseTableAuditingPoliciesClient creates an instance of the DatabaseTableAuditingPoliciesClient client.
func NewDatabaseTableAuditingPoliciesClientWithBaseURI ¶
func NewDatabaseTableAuditingPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseTableAuditingPoliciesClient
NewDatabaseTableAuditingPoliciesClientWithBaseURI creates an instance of the DatabaseTableAuditingPoliciesClient client.
func (DatabaseTableAuditingPoliciesClient) CreateOrUpdate ¶
func (client DatabaseTableAuditingPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseTableAuditingPolicy) (result DatabaseTableAuditingPolicy, err error)
CreateOrUpdate creates or updates a database's table auditing policy. Table auditing is deprecated, use blob auditing instead. 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 for which the table auditing policy will be defined. parameters - the database table auditing policy.
func (DatabaseTableAuditingPoliciesClient) CreateOrUpdatePreparer ¶
func (client DatabaseTableAuditingPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseTableAuditingPolicy) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (DatabaseTableAuditingPoliciesClient) CreateOrUpdateResponder ¶
func (client DatabaseTableAuditingPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result DatabaseTableAuditingPolicy, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (DatabaseTableAuditingPoliciesClient) CreateOrUpdateSender ¶
func (client DatabaseTableAuditingPoliciesClient) 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 (DatabaseTableAuditingPoliciesClient) Get ¶
func (client DatabaseTableAuditingPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseTableAuditingPolicy, err error)
Get gets a database's table auditing policy. Table auditing is deprecated, use blob auditing instead. 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 for which the table audit policy is defined.
func (DatabaseTableAuditingPoliciesClient) GetPreparer ¶
func (client DatabaseTableAuditingPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (DatabaseTableAuditingPoliciesClient) GetResponder ¶
func (client DatabaseTableAuditingPoliciesClient) GetResponder(resp *http.Response) (result DatabaseTableAuditingPolicy, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (DatabaseTableAuditingPoliciesClient) GetSender ¶
func (client DatabaseTableAuditingPoliciesClient) 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 (DatabaseTableAuditingPoliciesClient) ListByDatabase ¶
func (client DatabaseTableAuditingPoliciesClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseTableAuditingPolicyListResult, err error)
ListByDatabase lists a database's table auditing policies. Table auditing is deprecated, use blob auditing instead. 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 for which the table audit policy is defined.
func (DatabaseTableAuditingPoliciesClient) ListByDatabasePreparer ¶
func (client DatabaseTableAuditingPoliciesClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
ListByDatabasePreparer prepares the ListByDatabase request.
func (DatabaseTableAuditingPoliciesClient) ListByDatabaseResponder ¶
func (client DatabaseTableAuditingPoliciesClient) ListByDatabaseResponder(resp *http.Response) (result DatabaseTableAuditingPolicyListResult, err error)
ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.
func (DatabaseTableAuditingPoliciesClient) ListByDatabaseSender ¶
func (client DatabaseTableAuditingPoliciesClient) 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 DatabaseTableAuditingPolicy ¶
type DatabaseTableAuditingPolicy struct { autorest.Response `json:"-"` // Kind - READ-ONLY; Resource kind. Kind *string `json:"kind,omitempty"` // Location - READ-ONLY; Resource location. Location *string `json:"location,omitempty"` // DatabaseTableAuditingPolicyProperties - Resource properties. *DatabaseTableAuditingPolicyProperties `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"` }
DatabaseTableAuditingPolicy a database table auditing policy.
func (DatabaseTableAuditingPolicy) MarshalJSON ¶
func (dtap DatabaseTableAuditingPolicy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DatabaseTableAuditingPolicy.
func (*DatabaseTableAuditingPolicy) UnmarshalJSON ¶
func (dtap *DatabaseTableAuditingPolicy) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DatabaseTableAuditingPolicy struct.
type DatabaseTableAuditingPolicyListResult ¶
type DatabaseTableAuditingPolicyListResult struct { autorest.Response `json:"-"` // Value - The list of database table auditing policies. Value *[]DatabaseTableAuditingPolicy `json:"value,omitempty"` }
DatabaseTableAuditingPolicyListResult represents the response to a list database table auditing policies request.
type DatabaseTableAuditingPolicyProperties ¶
type DatabaseTableAuditingPolicyProperties struct { // UseServerDefault - Whether server default is enabled or disabled. UseServerDefault *string `json:"useServerDefault,omitempty"` // AuditingState - The state of the policy. AuditingState *string `json:"auditingState,omitempty"` // AuditLogsTableName - The audit logs table name. AuditLogsTableName *string `json:"auditLogsTableName,omitempty"` // EventTypesToAudit - Comma-separated list of event types to audit. EventTypesToAudit *string `json:"eventTypesToAudit,omitempty"` // FullAuditLogsTableName - The full audit logs table name. FullAuditLogsTableName *string `json:"fullAuditLogsTableName,omitempty"` // RetentionDays - The number of days to keep in the audit logs. RetentionDays *string `json:"retentionDays,omitempty"` // StorageAccountKey - The key of the auditing storage account. StorageAccountKey *string `json:"storageAccountKey,omitempty"` // StorageAccountName - The table storage account name StorageAccountName *string `json:"storageAccountName,omitempty"` // StorageAccountResourceGroupName - The table storage account resource group name StorageAccountResourceGroupName *string `json:"storageAccountResourceGroupName,omitempty"` // StorageAccountSecondaryKey - The secondary key of the auditing storage account. StorageAccountSecondaryKey *string `json:"storageAccountSecondaryKey,omitempty"` // StorageAccountSubscriptionID - The table storage subscription Id. StorageAccountSubscriptionID *uuid.UUID `json:"storageAccountSubscriptionId,omitempty"` // StorageTableEndpoint - The storage table endpoint. StorageTableEndpoint *string `json:"storageTableEndpoint,omitempty"` }
DatabaseTableAuditingPolicyProperties properties of a database table auditing policy.
type DatabaseThreatDetectionPoliciesClient ¶
type DatabaseThreatDetectionPoliciesClient struct {
BaseClient
}
DatabaseThreatDetectionPoliciesClient 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 NewDatabaseThreatDetectionPoliciesClient ¶
func NewDatabaseThreatDetectionPoliciesClient(subscriptionID string) DatabaseThreatDetectionPoliciesClient
NewDatabaseThreatDetectionPoliciesClient creates an instance of the DatabaseThreatDetectionPoliciesClient client.
func NewDatabaseThreatDetectionPoliciesClientWithBaseURI ¶
func NewDatabaseThreatDetectionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseThreatDetectionPoliciesClient
NewDatabaseThreatDetectionPoliciesClientWithBaseURI creates an instance of the DatabaseThreatDetectionPoliciesClient client.
func (DatabaseThreatDetectionPoliciesClient) CreateOrUpdate ¶
func (client DatabaseThreatDetectionPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseSecurityAlertPolicy) (result DatabaseSecurityAlertPolicy, err error)
CreateOrUpdate creates or updates a database's threat detection 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 for which database Threat Detection policy is defined. parameters - the database Threat Detection policy.
func (DatabaseThreatDetectionPoliciesClient) CreateOrUpdatePreparer ¶
func (client DatabaseThreatDetectionPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseSecurityAlertPolicy) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (DatabaseThreatDetectionPoliciesClient) CreateOrUpdateResponder ¶
func (client DatabaseThreatDetectionPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result DatabaseSecurityAlertPolicy, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (DatabaseThreatDetectionPoliciesClient) CreateOrUpdateSender ¶
func (client DatabaseThreatDetectionPoliciesClient) 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 (DatabaseThreatDetectionPoliciesClient) Get ¶
func (client DatabaseThreatDetectionPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseSecurityAlertPolicy, err error)
Get gets a database's threat detection 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 for which database Threat Detection policy is defined.
func (DatabaseThreatDetectionPoliciesClient) GetPreparer ¶
func (client DatabaseThreatDetectionPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (DatabaseThreatDetectionPoliciesClient) GetResponder ¶
func (client DatabaseThreatDetectionPoliciesClient) GetResponder(resp *http.Response) (result DatabaseSecurityAlertPolicy, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
type DatabaseUpdate ¶
type DatabaseUpdate struct { // Tags - Resource tags. Tags map[string]*string `json:"tags"` // DatabaseProperties - The properties representing the resource. *DatabaseProperties `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"` }
DatabaseUpdate represents a database update.
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 DatabaseUsage ¶
type DatabaseUsage struct { // Name - READ-ONLY; The name of the usage metric. Name *string `json:"name,omitempty"` // ResourceName - READ-ONLY; The name of the resource. ResourceName *string `json:"resourceName,omitempty"` // DisplayName - READ-ONLY; The usage metric display name. DisplayName *string `json:"displayName,omitempty"` // CurrentValue - READ-ONLY; The current value of the usage metric. CurrentValue *float64 `json:"currentValue,omitempty"` // Limit - READ-ONLY; The current limit of the usage metric. Limit *float64 `json:"limit,omitempty"` // Unit - READ-ONLY; The units of the usage metric. Unit *string `json:"unit,omitempty"` // NextResetTime - READ-ONLY; The next reset time for the usage metric (ISO8601 format). NextResetTime *date.Time `json:"nextResetTime,omitempty"` }
DatabaseUsage the database usages.
type DatabaseUsageListResult ¶
type DatabaseUsageListResult struct { autorest.Response `json:"-"` // Value - The list of database usages for the database. Value *[]DatabaseUsage `json:"value,omitempty"` }
DatabaseUsageListResult the response to a list database metrics request.
type DatabaseUsagesClient ¶
type DatabaseUsagesClient struct {
BaseClient
}
DatabaseUsagesClient 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 NewDatabaseUsagesClient ¶
func NewDatabaseUsagesClient(subscriptionID string) DatabaseUsagesClient
NewDatabaseUsagesClient creates an instance of the DatabaseUsagesClient client.
func NewDatabaseUsagesClientWithBaseURI ¶
func NewDatabaseUsagesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseUsagesClient
NewDatabaseUsagesClientWithBaseURI creates an instance of the DatabaseUsagesClient client.
func (DatabaseUsagesClient) ListByDatabase ¶
func (client DatabaseUsagesClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseUsageListResult, err error)
ListByDatabase returns database usages. 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 (DatabaseUsagesClient) ListByDatabasePreparer ¶
func (client DatabaseUsagesClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
ListByDatabasePreparer prepares the ListByDatabase request.
func (DatabaseUsagesClient) ListByDatabaseResponder ¶
func (client DatabaseUsagesClient) ListByDatabaseResponder(resp *http.Response) (result DatabaseUsageListResult, err error)
ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.
func (DatabaseUsagesClient) ListByDatabaseSender ¶
ListByDatabaseSender sends the ListByDatabase request. The method will close the http.Response Body if it receives 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.
func (DatabasesClient) CreateImportOperation ¶
func (client DatabasesClient) CreateImportOperation(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters ImportExtensionRequest) (result DatabasesCreateImportOperationFuture, err error)
CreateImportOperation creates an import operation that imports a bacpac into an existing database. The existing database must be empty. 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 import into parameters - the required parameters for importing a Bacpac into a database.
func (DatabasesClient) CreateImportOperationPreparer ¶
func (client DatabasesClient) CreateImportOperationPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters ImportExtensionRequest) (*http.Request, error)
CreateImportOperationPreparer prepares the CreateImportOperation request.
func (DatabasesClient) CreateImportOperationResponder ¶
func (client DatabasesClient) CreateImportOperationResponder(resp *http.Response) (result ImportExportResponse, err error)
CreateImportOperationResponder handles the response to the CreateImportOperation request. The method always closes the http.Response Body.
func (DatabasesClient) CreateImportOperationSender ¶
func (client DatabasesClient) CreateImportOperationSender(req *http.Request) (future DatabasesCreateImportOperationFuture, err error)
CreateImportOperationSender sends the CreateImportOperation request. The method will close the http.Response Body if it receives an error.
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 to be operated on (updated or created). parameters - the required parameters for creating or updating a database.
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 autorest.Response, err error)
Delete deletes 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 deleted.
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 ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (DatabasesClient) Export ¶
func (client DatabasesClient) Export(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters ExportRequest) (result DatabasesExportFuture, err error)
Export exports a database to a bacpac. 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 exported. parameters - the required parameters for exporting a database.
func (DatabasesClient) ExportPreparer ¶
func (client DatabasesClient) ExportPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters ExportRequest) (*http.Request, error)
ExportPreparer prepares the Export request.
func (DatabasesClient) ExportResponder ¶
func (client DatabasesClient) ExportResponder(resp *http.Response) (result ImportExportResponse, err error)
ExportResponder handles the response to the Export request. The method always closes the http.Response Body.
func (DatabasesClient) ExportSender ¶
func (client DatabasesClient) ExportSender(req *http.Request) (future DatabasesExportFuture, err error)
ExportSender sends the Export 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, expand 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 to be retrieved. expand - a comma separated list of child objects to expand in the response. Possible properties: serviceTierAdvisors, transparentDataEncryption.
func (DatabasesClient) GetByElasticPool ¶
func (client DatabasesClient) GetByElasticPool(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string, databaseName string) (result Database, err error)
GetByElasticPool gets a database inside of 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 to be retrieved. databaseName - the name of the database to be retrieved.
func (DatabasesClient) GetByElasticPoolPreparer ¶
func (client DatabasesClient) GetByElasticPoolPreparer(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string, databaseName string) (*http.Request, error)
GetByElasticPoolPreparer prepares the GetByElasticPool request.
func (DatabasesClient) GetByElasticPoolResponder ¶
func (client DatabasesClient) GetByElasticPoolResponder(resp *http.Response) (result Database, err error)
GetByElasticPoolResponder handles the response to the GetByElasticPool request. The method always closes the http.Response Body.
func (DatabasesClient) GetByElasticPoolSender ¶
GetByElasticPoolSender sends the GetByElasticPool request. The method will close the http.Response Body if it receives an error.
func (DatabasesClient) GetByRecommendedElasticPool ¶
func (client DatabasesClient) GetByRecommendedElasticPool(ctx context.Context, resourceGroupName string, serverName string, recommendedElasticPoolName string, databaseName string) (result Database, err error)
GetByRecommendedElasticPool gets a database inside of a recommended 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. recommendedElasticPoolName - the name of the elastic pool to be retrieved. databaseName - the name of the database to be retrieved.
func (DatabasesClient) GetByRecommendedElasticPoolPreparer ¶
func (client DatabasesClient) GetByRecommendedElasticPoolPreparer(ctx context.Context, resourceGroupName string, serverName string, recommendedElasticPoolName string, databaseName string) (*http.Request, error)
GetByRecommendedElasticPoolPreparer prepares the GetByRecommendedElasticPool request.
func (DatabasesClient) GetByRecommendedElasticPoolResponder ¶
func (client DatabasesClient) GetByRecommendedElasticPoolResponder(resp *http.Response) (result Database, err error)
GetByRecommendedElasticPoolResponder handles the response to the GetByRecommendedElasticPool request. The method always closes the http.Response Body.
func (DatabasesClient) GetByRecommendedElasticPoolSender ¶
func (client DatabasesClient) GetByRecommendedElasticPoolSender(req *http.Request) (*http.Response, error)
GetByRecommendedElasticPoolSender sends the GetByRecommendedElasticPool request. The method will close the http.Response Body if it receives an error.
func (DatabasesClient) GetPreparer ¶
func (client DatabasesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, expand 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) Import ¶
func (client DatabasesClient) Import(ctx context.Context, resourceGroupName string, serverName string, parameters ImportRequest) (result DatabasesImportFuture, err error)
Import imports a bacpac into a new 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. parameters - the required parameters for importing a Bacpac into a database.
func (DatabasesClient) ImportPreparer ¶
func (client DatabasesClient) ImportPreparer(ctx context.Context, resourceGroupName string, serverName string, parameters ImportRequest) (*http.Request, error)
ImportPreparer prepares the Import request.
func (DatabasesClient) ImportResponder ¶
func (client DatabasesClient) ImportResponder(resp *http.Response) (result ImportExportResponse, err error)
ImportResponder handles the response to the Import request. The method always closes the http.Response Body.
func (DatabasesClient) ImportSender ¶
func (client DatabasesClient) ImportSender(req *http.Request) (future DatabasesImportFuture, err error)
ImportSender sends the Import 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 DatabaseListResult, err error)
ListByElasticPool returns 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 to be retrieved.
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) ListByRecommendedElasticPool ¶
func (client DatabasesClient) ListByRecommendedElasticPool(ctx context.Context, resourceGroupName string, serverName string, recommendedElasticPoolName string) (result DatabaseListResult, err error)
ListByRecommendedElasticPool returns a list of databases inside a recommended 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. recommendedElasticPoolName - the name of the recommended elastic pool to be retrieved.
func (DatabasesClient) ListByRecommendedElasticPoolPreparer ¶
func (client DatabasesClient) ListByRecommendedElasticPoolPreparer(ctx context.Context, resourceGroupName string, serverName string, recommendedElasticPoolName string) (*http.Request, error)
ListByRecommendedElasticPoolPreparer prepares the ListByRecommendedElasticPool request.
func (DatabasesClient) ListByRecommendedElasticPoolResponder ¶
func (client DatabasesClient) ListByRecommendedElasticPoolResponder(resp *http.Response) (result DatabaseListResult, err error)
ListByRecommendedElasticPoolResponder handles the response to the ListByRecommendedElasticPool request. The method always closes the http.Response Body.
func (DatabasesClient) ListByRecommendedElasticPoolSender ¶
func (client DatabasesClient) ListByRecommendedElasticPoolSender(req *http.Request) (*http.Response, error)
ListByRecommendedElasticPoolSender sends the ListByRecommendedElasticPool 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, expand string, filter string) (result DatabaseListResult, err error)
ListByServer returns a list of databases 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. expand - a comma separated list of child objects to expand in the response. Possible properties: serviceTierAdvisors, transparentDataEncryption. filter - an OData filter expression that describes a subset of databases to return.
func (DatabasesClient) ListByServerPreparer ¶
func (client DatabasesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string, expand string, filter 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) ListMetricDefinitions ¶
func (client DatabasesClient) ListMetricDefinitions(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result MetricDefinitionListResult, err error)
ListMetricDefinitions returns database metric definitions. 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) ListMetricDefinitionsPreparer ¶
func (client DatabasesClient) ListMetricDefinitionsPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
ListMetricDefinitionsPreparer prepares the ListMetricDefinitions request.
func (DatabasesClient) ListMetricDefinitionsResponder ¶
func (client DatabasesClient) ListMetricDefinitionsResponder(resp *http.Response) (result MetricDefinitionListResult, err error)
ListMetricDefinitionsResponder handles the response to the ListMetricDefinitions request. The method always closes the http.Response Body.
func (DatabasesClient) ListMetricDefinitionsSender ¶
func (client DatabasesClient) ListMetricDefinitionsSender(req *http.Request) (*http.Response, error)
ListMetricDefinitionsSender sends the ListMetricDefinitions request. The method will close the http.Response Body if it receives an error.
func (DatabasesClient) ListMetrics ¶
func (client DatabasesClient) ListMetrics(ctx context.Context, resourceGroupName string, serverName string, databaseName string, filter string) (result MetricListResult, err error)
ListMetrics returns database metrics. 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. filter - an OData filter expression that describes a subset of metrics to return.
func (DatabasesClient) ListMetricsPreparer ¶
func (client DatabasesClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, filter string) (*http.Request, error)
ListMetricsPreparer prepares the ListMetrics request.
func (DatabasesClient) ListMetricsResponder ¶
func (client DatabasesClient) ListMetricsResponder(resp *http.Response) (result MetricListResult, err error)
ListMetricsResponder handles the response to the ListMetrics request. The method always closes the http.Response Body.
func (DatabasesClient) ListMetricsSender ¶
ListMetricsSender sends the ListMetrics 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 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 data warehouse to pause.
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 autorest.Response, 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) Resume ¶
func (client DatabasesClient) Resume(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabasesResumeFuture, err error)
Resume resumes 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 data warehouse to resume.
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 autorest.Response, 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 to be updated. parameters - the required parameters for updating a database.
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.
type DatabasesCreateImportOperationFuture ¶
DatabasesCreateImportOperationFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabasesCreateImportOperationFuture) Result ¶
func (future *DatabasesCreateImportOperationFuture) Result(client DatabasesClient) (ier ImportExportResponse, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return 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 DatabasesExportFuture ¶
DatabasesExportFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabasesExportFuture) Result ¶
func (future *DatabasesExportFuture) Result(client DatabasesClient) (ier ImportExportResponse, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabasesImportFuture ¶
DatabasesImportFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabasesImportFuture) Result ¶
func (future *DatabasesImportFuture) Result(client DatabasesClient) (ier ImportExportResponse, 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) (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 DatabasesResumeFuture ¶
DatabasesResumeFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabasesResumeFuture) Result ¶
func (future *DatabasesResumeFuture) 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 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 DisasterRecoveryConfiguration ¶
type DisasterRecoveryConfiguration struct { autorest.Response `json:"-"` // DisasterRecoveryConfigurationProperties - The properties representing the resource. *DisasterRecoveryConfigurationProperties `json:"properties,omitempty"` // Location - READ-ONLY; Location of the server that contains this disaster recovery configuration. Location *string `json:"location,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"` }
DisasterRecoveryConfiguration represents a disaster recovery configuration.
func (DisasterRecoveryConfiguration) MarshalJSON ¶
func (drc DisasterRecoveryConfiguration) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DisasterRecoveryConfiguration.
func (*DisasterRecoveryConfiguration) UnmarshalJSON ¶
func (drc *DisasterRecoveryConfiguration) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DisasterRecoveryConfiguration struct.
type DisasterRecoveryConfigurationAutoFailover ¶
type DisasterRecoveryConfigurationAutoFailover string
DisasterRecoveryConfigurationAutoFailover enumerates the values for disaster recovery configuration auto failover.
const ( // Off ... Off DisasterRecoveryConfigurationAutoFailover = "Off" // On ... On DisasterRecoveryConfigurationAutoFailover = "On" )
func PossibleDisasterRecoveryConfigurationAutoFailoverValues ¶
func PossibleDisasterRecoveryConfigurationAutoFailoverValues() []DisasterRecoveryConfigurationAutoFailover
PossibleDisasterRecoveryConfigurationAutoFailoverValues returns an array of possible values for the DisasterRecoveryConfigurationAutoFailover const type.
type DisasterRecoveryConfigurationFailoverPolicy ¶
type DisasterRecoveryConfigurationFailoverPolicy string
DisasterRecoveryConfigurationFailoverPolicy enumerates the values for disaster recovery configuration failover policy.
const ( // Automatic ... Automatic DisasterRecoveryConfigurationFailoverPolicy = "Automatic" // Manual ... Manual DisasterRecoveryConfigurationFailoverPolicy = "Manual" )
func PossibleDisasterRecoveryConfigurationFailoverPolicyValues ¶
func PossibleDisasterRecoveryConfigurationFailoverPolicyValues() []DisasterRecoveryConfigurationFailoverPolicy
PossibleDisasterRecoveryConfigurationFailoverPolicyValues returns an array of possible values for the DisasterRecoveryConfigurationFailoverPolicy const type.
type DisasterRecoveryConfigurationListResult ¶
type DisasterRecoveryConfigurationListResult struct { autorest.Response `json:"-"` // Value - The list of disaster recovery configurations housed under the server. Value *[]DisasterRecoveryConfiguration `json:"value,omitempty"` }
DisasterRecoveryConfigurationListResult represents the response to a List disaster recovery configuration request.
type DisasterRecoveryConfigurationProperties ¶
type DisasterRecoveryConfigurationProperties struct { // Status - READ-ONLY; The status of the disaster recovery configuration. Possible values include: 'Creating', 'Ready', 'FailingOver', 'Dropping' Status DisasterRecoveryConfigurationStatus `json:"status,omitempty"` // AutoFailover - Whether or not failover can be done automatically. Possible values include: 'Off', 'On' AutoFailover DisasterRecoveryConfigurationAutoFailover `json:"autoFailover,omitempty"` // FailoverPolicy - How aggressive the automatic failover should be. Possible values include: 'Manual', 'Automatic' FailoverPolicy DisasterRecoveryConfigurationFailoverPolicy `json:"failoverPolicy,omitempty"` // PartnerServerID - Id of the partner server. PartnerServerID *string `json:"partnerServerId,omitempty"` // LogicalServerName - READ-ONLY; Logical name of the server. LogicalServerName *string `json:"logicalServerName,omitempty"` // PartnerLogicalServerName - READ-ONLY; Logical name of the partner server. PartnerLogicalServerName *string `json:"partnerLogicalServerName,omitempty"` // Role - READ-ONLY; The role of the current server in the disaster recovery configuration. Possible values include: 'None', 'Primary', 'Secondary' Role DisasterRecoveryConfigurationRole `json:"role,omitempty"` }
DisasterRecoveryConfigurationProperties represents the properties of a disaster recovery configuration.
type DisasterRecoveryConfigurationRole ¶
type DisasterRecoveryConfigurationRole string
DisasterRecoveryConfigurationRole enumerates the values for disaster recovery configuration role.
const ( // None ... None DisasterRecoveryConfigurationRole = "None" // Primary ... Primary DisasterRecoveryConfigurationRole = "Primary" // Secondary ... Secondary DisasterRecoveryConfigurationRole = "Secondary" )
func PossibleDisasterRecoveryConfigurationRoleValues ¶
func PossibleDisasterRecoveryConfigurationRoleValues() []DisasterRecoveryConfigurationRole
PossibleDisasterRecoveryConfigurationRoleValues returns an array of possible values for the DisasterRecoveryConfigurationRole const type.
type DisasterRecoveryConfigurationStatus ¶
type DisasterRecoveryConfigurationStatus string
DisasterRecoveryConfigurationStatus enumerates the values for disaster recovery configuration status.
const ( // Creating ... Creating DisasterRecoveryConfigurationStatus = "Creating" // Dropping ... Dropping DisasterRecoveryConfigurationStatus = "Dropping" // FailingOver ... FailingOver DisasterRecoveryConfigurationStatus = "FailingOver" // Ready ... Ready DisasterRecoveryConfigurationStatus = "Ready" )
func PossibleDisasterRecoveryConfigurationStatusValues ¶
func PossibleDisasterRecoveryConfigurationStatusValues() []DisasterRecoveryConfigurationStatus
PossibleDisasterRecoveryConfigurationStatusValues returns an array of possible values for the DisasterRecoveryConfigurationStatus const type.
type DisasterRecoveryConfigurationsClient ¶
type DisasterRecoveryConfigurationsClient struct {
BaseClient
}
DisasterRecoveryConfigurationsClient 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 NewDisasterRecoveryConfigurationsClient ¶
func NewDisasterRecoveryConfigurationsClient(subscriptionID string) DisasterRecoveryConfigurationsClient
NewDisasterRecoveryConfigurationsClient creates an instance of the DisasterRecoveryConfigurationsClient client.
func NewDisasterRecoveryConfigurationsClientWithBaseURI ¶
func NewDisasterRecoveryConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) DisasterRecoveryConfigurationsClient
NewDisasterRecoveryConfigurationsClientWithBaseURI creates an instance of the DisasterRecoveryConfigurationsClient client.
func (DisasterRecoveryConfigurationsClient) CreateOrUpdate ¶
func (client DisasterRecoveryConfigurationsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, disasterRecoveryConfigurationName string) (result DisasterRecoveryConfigurationsCreateOrUpdateFuture, err error)
CreateOrUpdate creates or updates a disaster recovery configuration. 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. disasterRecoveryConfigurationName - the name of the disaster recovery configuration to be created/updated.
func (DisasterRecoveryConfigurationsClient) CreateOrUpdatePreparer ¶
func (client DisasterRecoveryConfigurationsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, disasterRecoveryConfigurationName string) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (DisasterRecoveryConfigurationsClient) CreateOrUpdateResponder ¶
func (client DisasterRecoveryConfigurationsClient) CreateOrUpdateResponder(resp *http.Response) (result DisasterRecoveryConfiguration, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (DisasterRecoveryConfigurationsClient) CreateOrUpdateSender ¶
func (client DisasterRecoveryConfigurationsClient) CreateOrUpdateSender(req *http.Request) (future DisasterRecoveryConfigurationsCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (DisasterRecoveryConfigurationsClient) Delete ¶
func (client DisasterRecoveryConfigurationsClient) Delete(ctx context.Context, resourceGroupName string, serverName string, disasterRecoveryConfigurationName string) (result DisasterRecoveryConfigurationsDeleteFuture, err error)
Delete deletes a disaster recovery configuration. 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. disasterRecoveryConfigurationName - the name of the disaster recovery configuration to be deleted.
func (DisasterRecoveryConfigurationsClient) DeletePreparer ¶
func (client DisasterRecoveryConfigurationsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, disasterRecoveryConfigurationName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (DisasterRecoveryConfigurationsClient) DeleteResponder ¶
func (client DisasterRecoveryConfigurationsClient) 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 (DisasterRecoveryConfigurationsClient) DeleteSender ¶
func (client DisasterRecoveryConfigurationsClient) DeleteSender(req *http.Request) (future DisasterRecoveryConfigurationsDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (DisasterRecoveryConfigurationsClient) Failover ¶
func (client DisasterRecoveryConfigurationsClient) Failover(ctx context.Context, resourceGroupName string, serverName string, disasterRecoveryConfigurationName string) (result DisasterRecoveryConfigurationsFailoverFuture, err error)
Failover fails over from the current primary server to this 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. disasterRecoveryConfigurationName - the name of the disaster recovery configuration to failover.
func (DisasterRecoveryConfigurationsClient) FailoverAllowDataLoss ¶
func (client DisasterRecoveryConfigurationsClient) FailoverAllowDataLoss(ctx context.Context, resourceGroupName string, serverName string, disasterRecoveryConfigurationName string) (result DisasterRecoveryConfigurationsFailoverAllowDataLossFuture, err error)
FailoverAllowDataLoss fails over from the current primary server to this server. 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. serverName - the name of the server. disasterRecoveryConfigurationName - the name of the disaster recovery configuration to failover forcefully.
func (DisasterRecoveryConfigurationsClient) FailoverAllowDataLossPreparer ¶
func (client DisasterRecoveryConfigurationsClient) FailoverAllowDataLossPreparer(ctx context.Context, resourceGroupName string, serverName string, disasterRecoveryConfigurationName string) (*http.Request, error)
FailoverAllowDataLossPreparer prepares the FailoverAllowDataLoss request.
func (DisasterRecoveryConfigurationsClient) FailoverAllowDataLossResponder ¶
func (client DisasterRecoveryConfigurationsClient) FailoverAllowDataLossResponder(resp *http.Response) (result autorest.Response, err error)
FailoverAllowDataLossResponder handles the response to the FailoverAllowDataLoss request. The method always closes the http.Response Body.
func (DisasterRecoveryConfigurationsClient) FailoverAllowDataLossSender ¶
func (client DisasterRecoveryConfigurationsClient) FailoverAllowDataLossSender(req *http.Request) (future DisasterRecoveryConfigurationsFailoverAllowDataLossFuture, err error)
FailoverAllowDataLossSender sends the FailoverAllowDataLoss request. The method will close the http.Response Body if it receives an error.
func (DisasterRecoveryConfigurationsClient) FailoverPreparer ¶
func (client DisasterRecoveryConfigurationsClient) FailoverPreparer(ctx context.Context, resourceGroupName string, serverName string, disasterRecoveryConfigurationName string) (*http.Request, error)
FailoverPreparer prepares the Failover request.
func (DisasterRecoveryConfigurationsClient) FailoverResponder ¶
func (client DisasterRecoveryConfigurationsClient) FailoverResponder(resp *http.Response) (result autorest.Response, err error)
FailoverResponder handles the response to the Failover request. The method always closes the http.Response Body.
func (DisasterRecoveryConfigurationsClient) FailoverSender ¶
func (client DisasterRecoveryConfigurationsClient) FailoverSender(req *http.Request) (future DisasterRecoveryConfigurationsFailoverFuture, err error)
FailoverSender sends the Failover request. The method will close the http.Response Body if it receives an error.
func (DisasterRecoveryConfigurationsClient) Get ¶
func (client DisasterRecoveryConfigurationsClient) Get(ctx context.Context, resourceGroupName string, serverName string, disasterRecoveryConfigurationName string) (result DisasterRecoveryConfiguration, err error)
Get gets a disaster recovery configuration. 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. disasterRecoveryConfigurationName - the name of the disaster recovery configuration.
func (DisasterRecoveryConfigurationsClient) GetPreparer ¶
func (client DisasterRecoveryConfigurationsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, disasterRecoveryConfigurationName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (DisasterRecoveryConfigurationsClient) GetResponder ¶
func (client DisasterRecoveryConfigurationsClient) GetResponder(resp *http.Response) (result DisasterRecoveryConfiguration, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (DisasterRecoveryConfigurationsClient) GetSender ¶
func (client DisasterRecoveryConfigurationsClient) 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 (DisasterRecoveryConfigurationsClient) List ¶
func (client DisasterRecoveryConfigurationsClient) List(ctx context.Context, resourceGroupName string, serverName string) (result DisasterRecoveryConfigurationListResult, err error)
List lists a server's disaster recovery configuration. 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 (DisasterRecoveryConfigurationsClient) ListPreparer ¶
func (client DisasterRecoveryConfigurationsClient) ListPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
ListPreparer prepares the List request.
func (DisasterRecoveryConfigurationsClient) ListResponder ¶
func (client DisasterRecoveryConfigurationsClient) ListResponder(resp *http.Response) (result DisasterRecoveryConfigurationListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (DisasterRecoveryConfigurationsClient) ListSender ¶
func (client DisasterRecoveryConfigurationsClient) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type DisasterRecoveryConfigurationsCreateOrUpdateFuture ¶
DisasterRecoveryConfigurationsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DisasterRecoveryConfigurationsCreateOrUpdateFuture) Result ¶
func (future *DisasterRecoveryConfigurationsCreateOrUpdateFuture) Result(client DisasterRecoveryConfigurationsClient) (drc DisasterRecoveryConfiguration, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DisasterRecoveryConfigurationsDeleteFuture ¶
DisasterRecoveryConfigurationsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DisasterRecoveryConfigurationsDeleteFuture) Result ¶
func (future *DisasterRecoveryConfigurationsDeleteFuture) Result(client DisasterRecoveryConfigurationsClient) (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 DisasterRecoveryConfigurationsFailoverAllowDataLossFuture ¶
DisasterRecoveryConfigurationsFailoverAllowDataLossFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DisasterRecoveryConfigurationsFailoverAllowDataLossFuture) Result ¶
func (future *DisasterRecoveryConfigurationsFailoverAllowDataLossFuture) Result(client DisasterRecoveryConfigurationsClient) (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 DisasterRecoveryConfigurationsFailoverFuture ¶
DisasterRecoveryConfigurationsFailoverFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DisasterRecoveryConfigurationsFailoverFuture) Result ¶
func (future *DisasterRecoveryConfigurationsFailoverFuture) Result(client DisasterRecoveryConfigurationsClient) (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 edition name. Name *string `json:"name,omitempty"` // Status - READ-ONLY; The status of the edition. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled' Status CapabilityStatus `json:"status,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"` }
EditionCapability the database edition capabilities.
type ElasticPool ¶
type ElasticPool struct { autorest.Response `json:"-"` // ElasticPoolProperties - The properties representing the resource. *ElasticPoolProperties `json:"properties,omitempty"` // Kind - READ-ONLY; Kind of elastic pool. This is metadata used for the Azure portal experience. Kind *string `json:"kind,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 represents a database 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 ElasticPoolActivitiesClient ¶
type ElasticPoolActivitiesClient struct {
BaseClient
}
ElasticPoolActivitiesClient 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 NewElasticPoolActivitiesClient ¶
func NewElasticPoolActivitiesClient(subscriptionID string) ElasticPoolActivitiesClient
NewElasticPoolActivitiesClient creates an instance of the ElasticPoolActivitiesClient client.
func NewElasticPoolActivitiesClientWithBaseURI ¶
func NewElasticPoolActivitiesClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolActivitiesClient
NewElasticPoolActivitiesClientWithBaseURI creates an instance of the ElasticPoolActivitiesClient client.
func (ElasticPoolActivitiesClient) ListByElasticPool ¶
func (client ElasticPoolActivitiesClient) ListByElasticPool(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (result ElasticPoolActivityListResult, err error)
ListByElasticPool returns elastic pool activities. 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 for which to get the current activity.
func (ElasticPoolActivitiesClient) ListByElasticPoolPreparer ¶
func (client ElasticPoolActivitiesClient) ListByElasticPoolPreparer(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (*http.Request, error)
ListByElasticPoolPreparer prepares the ListByElasticPool request.
func (ElasticPoolActivitiesClient) ListByElasticPoolResponder ¶
func (client ElasticPoolActivitiesClient) ListByElasticPoolResponder(resp *http.Response) (result ElasticPoolActivityListResult, err error)
ListByElasticPoolResponder handles the response to the ListByElasticPool request. The method always closes the http.Response Body.
func (ElasticPoolActivitiesClient) ListByElasticPoolSender ¶
func (client ElasticPoolActivitiesClient) 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 ElasticPoolActivity ¶
type ElasticPoolActivity struct { // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` // ElasticPoolActivityProperties - The properties representing the resource. *ElasticPoolActivityProperties `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"` }
ElasticPoolActivity represents the activity on an elastic pool.
func (ElasticPoolActivity) MarshalJSON ¶
func (epa ElasticPoolActivity) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ElasticPoolActivity.
func (*ElasticPoolActivity) UnmarshalJSON ¶
func (epa *ElasticPoolActivity) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ElasticPoolActivity struct.
type ElasticPoolActivityListResult ¶
type ElasticPoolActivityListResult struct { autorest.Response `json:"-"` // Value - The list of elastic pool activities. Value *[]ElasticPoolActivity `json:"value,omitempty"` }
ElasticPoolActivityListResult represents the response to a list elastic pool activity request.
type ElasticPoolActivityProperties ¶
type ElasticPoolActivityProperties struct { // EndTime - READ-ONLY; The time the operation finished (ISO8601 format). EndTime *date.Time `json:"endTime,omitempty"` // ErrorCode - READ-ONLY; The error code if available. ErrorCode *int32 `json:"errorCode,omitempty"` // ErrorMessage - READ-ONLY; The error message if available. ErrorMessage *string `json:"errorMessage,omitempty"` // ErrorSeverity - READ-ONLY; The error severity if available. ErrorSeverity *int32 `json:"errorSeverity,omitempty"` // Operation - READ-ONLY; The operation name. Operation *string `json:"operation,omitempty"` // OperationID - READ-ONLY; The unique operation ID. OperationID *uuid.UUID `json:"operationId,omitempty"` // PercentComplete - READ-ONLY; The percentage complete if available. PercentComplete *int32 `json:"percentComplete,omitempty"` // RequestedDatabaseDtuMax - READ-ONLY; The requested max DTU per database if available. RequestedDatabaseDtuMax *int32 `json:"requestedDatabaseDtuMax,omitempty"` // RequestedDatabaseDtuMin - READ-ONLY; The requested min DTU per database if available. RequestedDatabaseDtuMin *int32 `json:"requestedDatabaseDtuMin,omitempty"` // RequestedDtu - READ-ONLY; The requested DTU for the pool if available. RequestedDtu *int32 `json:"requestedDtu,omitempty"` // RequestedElasticPoolName - READ-ONLY; The requested name for the elastic pool if available. RequestedElasticPoolName *string `json:"requestedElasticPoolName,omitempty"` // RequestedStorageLimitInGB - READ-ONLY; The requested storage limit for the pool in GB if available. RequestedStorageLimitInGB *int64 `json:"requestedStorageLimitInGB,omitempty"` // ElasticPoolName - READ-ONLY; The name of the elastic pool. ElasticPoolName *string `json:"elasticPoolName,omitempty"` // ServerName - READ-ONLY; The name of the server the elastic pool is in. ServerName *string `json:"serverName,omitempty"` // StartTime - READ-ONLY; The time the operation started (ISO8601 format). StartTime *date.Time `json:"startTime,omitempty"` // State - READ-ONLY; The current state of the operation. State *string `json:"state,omitempty"` // RequestedStorageLimitInMB - READ-ONLY; The requested storage limit in MB. RequestedStorageLimitInMB *int32 `json:"requestedStorageLimitInMB,omitempty"` // RequestedDatabaseDtuGuarantee - READ-ONLY; The requested per database DTU guarantee. RequestedDatabaseDtuGuarantee *int32 `json:"requestedDatabaseDtuGuarantee,omitempty"` // RequestedDatabaseDtuCap - READ-ONLY; The requested per database DTU cap. RequestedDatabaseDtuCap *int32 `json:"requestedDatabaseDtuCap,omitempty"` // RequestedDtuGuarantee - READ-ONLY; The requested DTU guarantee. RequestedDtuGuarantee *int32 `json:"requestedDtuGuarantee,omitempty"` }
ElasticPoolActivityProperties represents the properties of an elastic pool.
type ElasticPoolDatabaseActivitiesClient ¶
type ElasticPoolDatabaseActivitiesClient struct {
BaseClient
}
ElasticPoolDatabaseActivitiesClient 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 NewElasticPoolDatabaseActivitiesClient ¶
func NewElasticPoolDatabaseActivitiesClient(subscriptionID string) ElasticPoolDatabaseActivitiesClient
NewElasticPoolDatabaseActivitiesClient creates an instance of the ElasticPoolDatabaseActivitiesClient client.
func NewElasticPoolDatabaseActivitiesClientWithBaseURI ¶
func NewElasticPoolDatabaseActivitiesClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolDatabaseActivitiesClient
NewElasticPoolDatabaseActivitiesClientWithBaseURI creates an instance of the ElasticPoolDatabaseActivitiesClient client.
func (ElasticPoolDatabaseActivitiesClient) ListByElasticPool ¶
func (client ElasticPoolDatabaseActivitiesClient) ListByElasticPool(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (result ElasticPoolDatabaseActivityListResult, err error)
ListByElasticPool returns activity on databases inside of 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 (ElasticPoolDatabaseActivitiesClient) ListByElasticPoolPreparer ¶
func (client ElasticPoolDatabaseActivitiesClient) ListByElasticPoolPreparer(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (*http.Request, error)
ListByElasticPoolPreparer prepares the ListByElasticPool request.
func (ElasticPoolDatabaseActivitiesClient) ListByElasticPoolResponder ¶
func (client ElasticPoolDatabaseActivitiesClient) ListByElasticPoolResponder(resp *http.Response) (result ElasticPoolDatabaseActivityListResult, err error)
ListByElasticPoolResponder handles the response to the ListByElasticPool request. The method always closes the http.Response Body.
func (ElasticPoolDatabaseActivitiesClient) ListByElasticPoolSender ¶
func (client ElasticPoolDatabaseActivitiesClient) 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 ElasticPoolDatabaseActivity ¶
type ElasticPoolDatabaseActivity struct { // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` // ElasticPoolDatabaseActivityProperties - The properties representing the resource. *ElasticPoolDatabaseActivityProperties `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"` }
ElasticPoolDatabaseActivity represents the activity on an elastic pool.
func (ElasticPoolDatabaseActivity) MarshalJSON ¶
func (epda ElasticPoolDatabaseActivity) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ElasticPoolDatabaseActivity.
func (*ElasticPoolDatabaseActivity) UnmarshalJSON ¶
func (epda *ElasticPoolDatabaseActivity) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ElasticPoolDatabaseActivity struct.
type ElasticPoolDatabaseActivityListResult ¶
type ElasticPoolDatabaseActivityListResult struct { autorest.Response `json:"-"` // Value - The list of elastic pool database activities. Value *[]ElasticPoolDatabaseActivity `json:"value,omitempty"` }
ElasticPoolDatabaseActivityListResult represents the response to a list elastic pool database activity request.
type ElasticPoolDatabaseActivityProperties ¶
type ElasticPoolDatabaseActivityProperties struct { // DatabaseName - READ-ONLY; The database name. DatabaseName *string `json:"databaseName,omitempty"` // EndTime - READ-ONLY; The time the operation finished (ISO8601 format). EndTime *date.Time `json:"endTime,omitempty"` // ErrorCode - READ-ONLY; The error code if available. ErrorCode *int32 `json:"errorCode,omitempty"` // ErrorMessage - READ-ONLY; The error message if available. ErrorMessage *string `json:"errorMessage,omitempty"` // ErrorSeverity - READ-ONLY; The error severity if available. ErrorSeverity *int32 `json:"errorSeverity,omitempty"` // Operation - READ-ONLY; The operation name. Operation *string `json:"operation,omitempty"` // OperationID - READ-ONLY; The unique operation ID. OperationID *uuid.UUID `json:"operationId,omitempty"` // PercentComplete - READ-ONLY; The percentage complete if available. PercentComplete *int32 `json:"percentComplete,omitempty"` // RequestedElasticPoolName - READ-ONLY; The name for the elastic pool the database is moving into if available. RequestedElasticPoolName *string `json:"requestedElasticPoolName,omitempty"` // CurrentElasticPoolName - READ-ONLY; The name of the current elastic pool the database is in if available. CurrentElasticPoolName *string `json:"currentElasticPoolName,omitempty"` // CurrentServiceObjective - READ-ONLY; The name of the current service objective if available. CurrentServiceObjective *string `json:"currentServiceObjective,omitempty"` // RequestedServiceObjective - READ-ONLY; The name of the requested service objective if available. RequestedServiceObjective *string `json:"requestedServiceObjective,omitempty"` // ServerName - READ-ONLY; The name of the server the elastic pool is in. ServerName *string `json:"serverName,omitempty"` // StartTime - READ-ONLY; The time the operation started (ISO8601 format). StartTime *date.Time `json:"startTime,omitempty"` // State - READ-ONLY; The current state of the operation. State *string `json:"state,omitempty"` }
ElasticPoolDatabaseActivityProperties represents the properties of an elastic pool database activity.
type ElasticPoolDtuCapability ¶
type ElasticPoolDtuCapability struct { // Limit - READ-ONLY; The maximum size of the database (see 'unit' for the units). Limit *int64 `json:"limit,omitempty"` // MaxDatabaseCount - READ-ONLY; The maximum number of databases supported. MaxDatabaseCount *int64 `json:"maxDatabaseCount,omitempty"` // Status - READ-ONLY; The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled' Status CapabilityStatus `json:"status,omitempty"` // SupportedMaxSizes - READ-ONLY; The list of supported max sizes. SupportedMaxSizes *[]MaxSizeCapability `json:"supportedMaxSizes,omitempty"` // IncludedMaxSize - READ-ONLY; The included (free) max size for this service level objective. IncludedMaxSize *MaxSizeCapability `json:"includedMaxSize,omitempty"` // SupportedPerDatabaseMaxSizes - READ-ONLY; The list of supported max database sizes. SupportedPerDatabaseMaxSizes *[]MaxSizeCapability `json:"supportedPerDatabaseMaxSizes,omitempty"` // SupportedPerDatabaseMaxDtus - READ-ONLY; The list of supported max database DTUs. SupportedPerDatabaseMaxDtus *[]ElasticPoolPerDatabaseMaxDtuCapability `json:"supportedPerDatabaseMaxDtus,omitempty"` }
ElasticPoolDtuCapability the Elastic Pool DTU capability.
type ElasticPoolEdition ¶
type ElasticPoolEdition string
ElasticPoolEdition enumerates the values for elastic pool edition.
const ( // ElasticPoolEditionBasic ... ElasticPoolEditionBasic ElasticPoolEdition = "Basic" // ElasticPoolEditionBusinessCritical ... ElasticPoolEditionBusinessCritical ElasticPoolEdition = "BusinessCritical" // ElasticPoolEditionGeneralPurpose ... ElasticPoolEditionGeneralPurpose ElasticPoolEdition = "GeneralPurpose" // ElasticPoolEditionPremium ... ElasticPoolEditionPremium ElasticPoolEdition = "Premium" // ElasticPoolEditionStandard ... ElasticPoolEditionStandard ElasticPoolEdition = "Standard" )
func PossibleElasticPoolEditionValues ¶
func PossibleElasticPoolEditionValues() []ElasticPoolEdition
PossibleElasticPoolEditionValues returns an array of possible values for the ElasticPoolEdition const type.
type ElasticPoolEditionCapability ¶
type ElasticPoolEditionCapability struct { // Name - READ-ONLY; The elastic pool edition name. Name *string `json:"name,omitempty"` // Status - READ-ONLY; The status of the elastic pool edition. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled' Status CapabilityStatus `json:"status,omitempty"` // SupportedElasticPoolDtus - READ-ONLY; The list of supported elastic pool DTU levels for the edition. SupportedElasticPoolDtus *[]ElasticPoolDtuCapability `json:"supportedElasticPoolDtus,omitempty"` // ZoneRedundant - READ-ONLY; Whether or not zone redundancy is supported for the edition. ZoneRedundant *bool `json:"zoneRedundant,omitempty"` }
ElasticPoolEditionCapability the elastic pool edition capabilities.
type ElasticPoolListResult ¶
type ElasticPoolListResult struct { autorest.Response `json:"-"` // Value - The list of elastic pools hosted in the server. Value *[]ElasticPool `json:"value,omitempty"` }
ElasticPoolListResult represents the response to a list elastic pool request.
type ElasticPoolPerDatabaseMaxDtuCapability ¶
type ElasticPoolPerDatabaseMaxDtuCapability struct { // Limit - READ-ONLY; The maximum DTUs per database. Limit *int64 `json:"limit,omitempty"` // Status - READ-ONLY; The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled' Status CapabilityStatus `json:"status,omitempty"` // SupportedPerDatabaseMinDtus - READ-ONLY; The list of supported min database DTUs. SupportedPerDatabaseMinDtus *[]ElasticPoolPerDatabaseMinDtuCapability `json:"supportedPerDatabaseMinDtus,omitempty"` }
ElasticPoolPerDatabaseMaxDtuCapability the max per-database DTU capability.
type ElasticPoolPerDatabaseMinDtuCapability ¶
type ElasticPoolPerDatabaseMinDtuCapability struct { // Limit - READ-ONLY; The maximum DTUs per database. Limit *int64 `json:"limit,omitempty"` // Status - READ-ONLY; The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled' Status CapabilityStatus `json:"status,omitempty"` }
ElasticPoolPerDatabaseMinDtuCapability the minimum per-database DTU capability.
type ElasticPoolProperties ¶
type ElasticPoolProperties struct { // CreationDate - READ-ONLY; The creation date of the elastic pool (ISO8601 format). CreationDate *date.Time `json:"creationDate,omitempty"` // State - READ-ONLY; The state of the elastic pool. Possible values include: 'ElasticPoolStateCreating', 'ElasticPoolStateReady', 'ElasticPoolStateDisabled' State ElasticPoolState `json:"state,omitempty"` // Edition - The edition of the elastic pool. Possible values include: 'ElasticPoolEditionBasic', 'ElasticPoolEditionStandard', 'ElasticPoolEditionPremium', 'ElasticPoolEditionGeneralPurpose', 'ElasticPoolEditionBusinessCritical' Edition ElasticPoolEdition `json:"edition,omitempty"` // Dtu - The total shared DTU for the database elastic pool. Dtu *int32 `json:"dtu,omitempty"` // DatabaseDtuMax - The maximum DTU any one database can consume. DatabaseDtuMax *int32 `json:"databaseDtuMax,omitempty"` // DatabaseDtuMin - The minimum DTU all databases are guaranteed. DatabaseDtuMin *int32 `json:"databaseDtuMin,omitempty"` // StorageMB - Gets storage limit for the database elastic pool in MB. StorageMB *int32 `json:"storageMB,omitempty"` // ZoneRedundant - Whether or not this database elastic pool is zone redundant, which means the replicas of this database will be spread across multiple availability zones. ZoneRedundant *bool `json:"zoneRedundant,omitempty"` }
ElasticPoolProperties represents the 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 { // Tags - Resource tags. Tags map[string]*string `json:"tags"` // ElasticPoolProperties - The properties representing the resource. *ElasticPoolProperties `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"` }
ElasticPoolUpdate represents 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 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.
func (ElasticPoolsClient) CreateOrUpdate ¶
func (client ElasticPoolsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string, parameters ElasticPool) (result ElasticPoolsCreateOrUpdateFuture, err error)
CreateOrUpdate creates a new elastic pool or updates an existing 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 to be operated on (updated or created). parameters - the required parameters for creating or updating an elastic pool.
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 autorest.Response, err error)
Delete deletes 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. elasticPoolName - the name of the elastic pool to be deleted.
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 ¶
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 to be retrieved.
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) (result ElasticPoolListResult, err error)
ListByServer returns a list of 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.
func (ElasticPoolsClient) ListByServerPreparer ¶
func (client ElasticPoolsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*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) ListMetricDefinitions ¶
func (client ElasticPoolsClient) ListMetricDefinitions(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (result MetricDefinitionListResult, err error)
ListMetricDefinitions returns elastic pool metric definitions. 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) ListMetricDefinitionsPreparer ¶
func (client ElasticPoolsClient) ListMetricDefinitionsPreparer(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (*http.Request, error)
ListMetricDefinitionsPreparer prepares the ListMetricDefinitions request.
func (ElasticPoolsClient) ListMetricDefinitionsResponder ¶
func (client ElasticPoolsClient) ListMetricDefinitionsResponder(resp *http.Response) (result MetricDefinitionListResult, err error)
ListMetricDefinitionsResponder handles the response to the ListMetricDefinitions request. The method always closes the http.Response Body.
func (ElasticPoolsClient) ListMetricDefinitionsSender ¶
func (client ElasticPoolsClient) ListMetricDefinitionsSender(req *http.Request) (*http.Response, error)
ListMetricDefinitionsSender sends the ListMetricDefinitions request. The method will close the http.Response Body if it receives an error.
func (ElasticPoolsClient) ListMetrics ¶
func (client ElasticPoolsClient) ListMetrics(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string, filter string) (result MetricListResult, err error)
ListMetrics returns elastic pool metrics. 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. filter - an OData filter expression that describes a subset of metrics to return.
func (ElasticPoolsClient) ListMetricsPreparer ¶
func (client ElasticPoolsClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string, filter string) (*http.Request, error)
ListMetricsPreparer prepares the ListMetrics request.
func (ElasticPoolsClient) ListMetricsResponder ¶
func (client ElasticPoolsClient) ListMetricsResponder(resp *http.Response) (result MetricListResult, err error)
ListMetricsResponder handles the response to the ListMetrics request. The method always closes the http.Response Body.
func (ElasticPoolsClient) ListMetricsSender ¶
ListMetricsSender sends the ListMetrics 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 existing 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 to be updated. parameters - the required parameters for updating an elastic pool.
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 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 ExportRequest ¶
type ExportRequest struct { // StorageKeyType - The type of the storage key to use. Possible values include: 'StorageAccessKey', 'SharedAccessKey' StorageKeyType StorageKeyType `json:"storageKeyType,omitempty"` // StorageKey - The storage key to use. If storage key type is SharedAccessKey, it must be preceded with a "?." StorageKey *string `json:"storageKey,omitempty"` // StorageURI - The storage uri to use. StorageURI *string `json:"storageUri,omitempty"` // AdministratorLogin - The name of the SQL administrator. AdministratorLogin *string `json:"administratorLogin,omitempty"` // AdministratorLoginPassword - The password of the SQL administrator. AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"` // AuthenticationType - The authentication type. Possible values include: 'SQL', 'ADPassword' AuthenticationType AuthenticationType `json:"authenticationType,omitempty"` }
ExportRequest export database parameters.
type ExtensionListResult ¶
type ExtensionListResult struct { autorest.Response `json:"-"` // Value - The list of extensions. Value *[]interface{} `json:"value,omitempty"` }
ExtensionListResult represents the response to a list extensions request.
type ExtensionsClient ¶
type ExtensionsClient struct {
BaseClient
}
ExtensionsClient 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 NewExtensionsClient ¶
func NewExtensionsClient(subscriptionID string) ExtensionsClient
NewExtensionsClient creates an instance of the ExtensionsClient client.
func NewExtensionsClientWithBaseURI ¶
func NewExtensionsClientWithBaseURI(baseURI string, subscriptionID string) ExtensionsClient
NewExtensionsClientWithBaseURI creates an instance of the ExtensionsClient client.
func (ExtensionsClient) Get ¶
func (client ExtensionsClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result autorest.Response, err error)
Get gets a database extension. This API is deprecated and should not be used. 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 import into
func (ExtensionsClient) GetPreparer ¶
func (client ExtensionsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ExtensionsClient) GetResponder ¶
func (client ExtensionsClient) GetResponder(resp *http.Response) (result autorest.Response, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ExtensionsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ExtensionsClient) ListByDatabase ¶
func (client ExtensionsClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result ExtensionListResult, err error)
ListByDatabase gets database extensions. This API is deprecated and should not be used. 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 import into
func (ExtensionsClient) ListByDatabasePreparer ¶
func (client ExtensionsClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
ListByDatabasePreparer prepares the ListByDatabase request.
func (ExtensionsClient) ListByDatabaseResponder ¶
func (client ExtensionsClient) ListByDatabaseResponder(resp *http.Response) (result ExtensionListResult, err error)
ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.
func (ExtensionsClient) ListByDatabaseSender ¶
ListByDatabaseSender sends the ListByDatabase request. The method will close the http.Response Body if it receives an error.
type FirewallRule ¶
type FirewallRule struct { autorest.Response `json:"-"` // Kind - READ-ONLY; Kind of server that contains this firewall rule. Kind *string `json:"kind,omitempty"` // Location - READ-ONLY; Location of the server that contains this firewall rule. Location *string `json:"location,omitempty"` // FirewallRuleProperties - The properties representing the resource. *FirewallRuleProperties `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"` }
FirewallRule represents a server firewall rule.
func (FirewallRule) MarshalJSON ¶
func (fr FirewallRule) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for FirewallRule.
func (*FirewallRule) UnmarshalJSON ¶
func (fr *FirewallRule) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for FirewallRule struct.
type FirewallRuleListResult ¶
type FirewallRuleListResult struct { autorest.Response `json:"-"` // Value - The list of server firewall rules. Value *[]FirewallRule `json:"value,omitempty"` }
FirewallRuleListResult represents the response to a List Firewall Rules request.
type FirewallRuleProperties ¶
type FirewallRuleProperties struct { // StartIPAddress - The start IP address of the firewall rule. Must be IPv4 format. Use value '0.0.0.0' to represent all Azure-internal IP addresses. StartIPAddress *string `json:"startIpAddress,omitempty"` // EndIPAddress - The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to startIpAddress. Use value '0.0.0.0' to represent all Azure-internal IP addresses. EndIPAddress *string `json:"endIpAddress,omitempty"` }
FirewallRuleProperties represents the properties of a server firewall rule.
type FirewallRulesClient ¶
type FirewallRulesClient struct {
BaseClient
}
FirewallRulesClient 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 NewFirewallRulesClient ¶
func NewFirewallRulesClient(subscriptionID string) FirewallRulesClient
NewFirewallRulesClient creates an instance of the FirewallRulesClient client.
func NewFirewallRulesClientWithBaseURI ¶
func NewFirewallRulesClientWithBaseURI(baseURI string, subscriptionID string) FirewallRulesClient
NewFirewallRulesClientWithBaseURI creates an instance of the FirewallRulesClient client.
func (FirewallRulesClient) CreateOrUpdate ¶
func (client FirewallRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string, parameters FirewallRule) (result FirewallRule, err error)
CreateOrUpdate creates or updates a firewall rule. 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. firewallRuleName - the name of the firewall rule. parameters - the required parameters for creating or updating a firewall rule.
func (FirewallRulesClient) CreateOrUpdatePreparer ¶
func (client FirewallRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string, parameters FirewallRule) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (FirewallRulesClient) CreateOrUpdateResponder ¶
func (client FirewallRulesClient) CreateOrUpdateResponder(resp *http.Response) (result FirewallRule, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (FirewallRulesClient) CreateOrUpdateSender ¶
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (FirewallRulesClient) Delete ¶
func (client FirewallRulesClient) Delete(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (result autorest.Response, err error)
Delete deletes a firewall rule. 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. firewallRuleName - the name of the firewall rule.
func (FirewallRulesClient) DeletePreparer ¶
func (client FirewallRulesClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (FirewallRulesClient) DeleteResponder ¶
func (client FirewallRulesClient) 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 (FirewallRulesClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (FirewallRulesClient) Get ¶
func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (result FirewallRule, err error)
Get gets a firewall rule. 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. firewallRuleName - the name of the firewall rule.
func (FirewallRulesClient) GetPreparer ¶
func (client FirewallRulesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (FirewallRulesClient) GetResponder ¶
func (client FirewallRulesClient) GetResponder(resp *http.Response) (result FirewallRule, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (FirewallRulesClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (FirewallRulesClient) ListByServer ¶
func (client FirewallRulesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result FirewallRuleListResult, err error)
ListByServer returns a list of firewall rules. 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 (FirewallRulesClient) ListByServerPreparer ¶
func (client FirewallRulesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
ListByServerPreparer prepares the ListByServer request.
func (FirewallRulesClient) ListByServerResponder ¶
func (client FirewallRulesClient) ListByServerResponder(resp *http.Response) (result FirewallRuleListResult, err error)
ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.
func (FirewallRulesClient) ListByServerSender ¶
ListByServerSender sends the ListByServer request. The method will close the http.Response Body if it receives an error.
type GeoBackupPoliciesClient ¶
type GeoBackupPoliciesClient struct {
BaseClient
}
GeoBackupPoliciesClient 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 NewGeoBackupPoliciesClient ¶
func NewGeoBackupPoliciesClient(subscriptionID string) GeoBackupPoliciesClient
NewGeoBackupPoliciesClient creates an instance of the GeoBackupPoliciesClient client.
func NewGeoBackupPoliciesClientWithBaseURI ¶
func NewGeoBackupPoliciesClientWithBaseURI(baseURI string, subscriptionID string) GeoBackupPoliciesClient
NewGeoBackupPoliciesClientWithBaseURI creates an instance of the GeoBackupPoliciesClient client.
func (GeoBackupPoliciesClient) CreateOrUpdate ¶
func (client GeoBackupPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters GeoBackupPolicy) (result GeoBackupPolicy, err error)
CreateOrUpdate updates a database geo backup 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 required parameters for creating or updating the geo backup policy.
func (GeoBackupPoliciesClient) CreateOrUpdatePreparer ¶
func (client GeoBackupPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters GeoBackupPolicy) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (GeoBackupPoliciesClient) CreateOrUpdateResponder ¶
func (client GeoBackupPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result GeoBackupPolicy, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (GeoBackupPoliciesClient) CreateOrUpdateSender ¶
func (client GeoBackupPoliciesClient) 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 (GeoBackupPoliciesClient) Get ¶
func (client GeoBackupPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result GeoBackupPolicy, err error)
Get gets a geo backup 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 (GeoBackupPoliciesClient) GetPreparer ¶
func (client GeoBackupPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (GeoBackupPoliciesClient) GetResponder ¶
func (client GeoBackupPoliciesClient) GetResponder(resp *http.Response) (result GeoBackupPolicy, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (GeoBackupPoliciesClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (GeoBackupPoliciesClient) ListByDatabase ¶
func (client GeoBackupPoliciesClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result GeoBackupPolicyListResult, err error)
ListByDatabase returns a list of geo backup policies. 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 (GeoBackupPoliciesClient) ListByDatabasePreparer ¶
func (client GeoBackupPoliciesClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
ListByDatabasePreparer prepares the ListByDatabase request.
func (GeoBackupPoliciesClient) ListByDatabaseResponder ¶
func (client GeoBackupPoliciesClient) ListByDatabaseResponder(resp *http.Response) (result GeoBackupPolicyListResult, err error)
ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.
func (GeoBackupPoliciesClient) ListByDatabaseSender ¶
func (client GeoBackupPoliciesClient) 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 GeoBackupPolicy ¶
type GeoBackupPolicy struct { autorest.Response `json:"-"` // GeoBackupPolicyProperties - The properties of the geo backup policy. *GeoBackupPolicyProperties `json:"properties,omitempty"` // Kind - READ-ONLY; Kind of geo backup policy. This is metadata used for the Azure portal experience. Kind *string `json:"kind,omitempty"` // Location - READ-ONLY; Backup policy location. Location *string `json:"location,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"` }
GeoBackupPolicy a database geo backup policy.
func (GeoBackupPolicy) MarshalJSON ¶
func (gbp GeoBackupPolicy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for GeoBackupPolicy.
func (*GeoBackupPolicy) UnmarshalJSON ¶
func (gbp *GeoBackupPolicy) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for GeoBackupPolicy struct.
type GeoBackupPolicyListResult ¶
type GeoBackupPolicyListResult struct { autorest.Response `json:"-"` // Value - The list of geo backup policies. Value *[]GeoBackupPolicy `json:"value,omitempty"` }
GeoBackupPolicyListResult the response to a list geo backup policies request.
type GeoBackupPolicyProperties ¶
type GeoBackupPolicyProperties struct { // State - The state of the geo backup policy. Possible values include: 'GeoBackupPolicyStateDisabled', 'GeoBackupPolicyStateEnabled' State GeoBackupPolicyState `json:"state,omitempty"` // StorageType - READ-ONLY; The storage type of the geo backup policy. StorageType *string `json:"storageType,omitempty"` }
GeoBackupPolicyProperties the properties of the geo backup policy.
type GeoBackupPolicyState ¶
type GeoBackupPolicyState string
GeoBackupPolicyState enumerates the values for geo backup policy state.
const ( // GeoBackupPolicyStateDisabled ... GeoBackupPolicyStateDisabled GeoBackupPolicyState = "Disabled" // GeoBackupPolicyStateEnabled ... GeoBackupPolicyStateEnabled GeoBackupPolicyState = "Enabled" )
func PossibleGeoBackupPolicyStateValues ¶
func PossibleGeoBackupPolicyStateValues() []GeoBackupPolicyState
PossibleGeoBackupPolicyStateValues returns an array of possible values for the GeoBackupPolicyState const type.
type ImportExportResponse ¶
type ImportExportResponse struct { autorest.Response `json:"-"` // ImportExportResponseProperties - The import/export operation properties. *ImportExportResponseProperties `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"` }
ImportExportResponse response for Import/Export Get operation.
func (ImportExportResponse) MarshalJSON ¶
func (ier ImportExportResponse) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImportExportResponse.
func (*ImportExportResponse) UnmarshalJSON ¶
func (ier *ImportExportResponse) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ImportExportResponse struct.
type ImportExportResponseProperties ¶
type ImportExportResponseProperties struct { // RequestType - READ-ONLY; The request type of the operation. RequestType *string `json:"requestType,omitempty"` // RequestID - READ-ONLY; The request type of the operation. RequestID *uuid.UUID `json:"requestId,omitempty"` // ServerName - READ-ONLY; The name of the server. ServerName *string `json:"serverName,omitempty"` // DatabaseName - READ-ONLY; The name of the database. DatabaseName *string `json:"databaseName,omitempty"` // Status - READ-ONLY; The status message returned from the server. Status *string `json:"status,omitempty"` // LastModifiedTime - READ-ONLY; The operation status last modified time. LastModifiedTime *string `json:"lastModifiedTime,omitempty"` // QueuedTime - READ-ONLY; The operation queued time. QueuedTime *string `json:"queuedTime,omitempty"` // BlobURI - READ-ONLY; The blob uri. BlobURI *string `json:"blobUri,omitempty"` // ErrorMessage - READ-ONLY; The error message returned from the server. ErrorMessage *string `json:"errorMessage,omitempty"` }
ImportExportResponseProperties response for Import/Export Status operation.
type ImportExtensionProperties ¶
type ImportExtensionProperties struct { // OperationMode - The type of import operation being performed. This is always Import. OperationMode *string `json:"operationMode,omitempty"` // StorageKeyType - The type of the storage key to use. Possible values include: 'StorageAccessKey', 'SharedAccessKey' StorageKeyType StorageKeyType `json:"storageKeyType,omitempty"` // StorageKey - The storage key to use. If storage key type is SharedAccessKey, it must be preceded with a "?." StorageKey *string `json:"storageKey,omitempty"` // StorageURI - The storage uri to use. StorageURI *string `json:"storageUri,omitempty"` // AdministratorLogin - The name of the SQL administrator. AdministratorLogin *string `json:"administratorLogin,omitempty"` // AdministratorLoginPassword - The password of the SQL administrator. AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"` // AuthenticationType - The authentication type. Possible values include: 'SQL', 'ADPassword' AuthenticationType AuthenticationType `json:"authenticationType,omitempty"` }
ImportExtensionProperties represents the properties for an import operation
type ImportExtensionRequest ¶
type ImportExtensionRequest struct { // Name - The name of the extension. Name *string `json:"name,omitempty"` // Type - The type of the extension. Type *string `json:"type,omitempty"` // ImportExtensionProperties - Represents the properties of the resource. *ImportExtensionProperties `json:"properties,omitempty"` }
ImportExtensionRequest import database parameters.
func (ImportExtensionRequest) MarshalJSON ¶
func (ier ImportExtensionRequest) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImportExtensionRequest.
func (*ImportExtensionRequest) UnmarshalJSON ¶
func (ier *ImportExtensionRequest) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ImportExtensionRequest struct.
type ImportRequest ¶
type ImportRequest struct { // DatabaseName - The name of the database to import. DatabaseName *string `json:"databaseName,omitempty"` // Edition - The edition for the database being created. // // 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> // ““ // . Possible values include: 'Web', 'Business', 'Basic', 'Standard', 'Premium', 'PremiumRS', 'Free', 'Stretch', 'DataWarehouse', 'System', 'System2', 'GeneralPurpose', 'BusinessCritical', 'Hyperscale' Edition DatabaseEdition `json:"edition,omitempty"` // ServiceObjectiveName - The name of the service objective to assign to the database. Possible values include: 'ServiceObjectiveNameSystem', 'ServiceObjectiveNameSystem0', 'ServiceObjectiveNameSystem1', 'ServiceObjectiveNameSystem2', 'ServiceObjectiveNameSystem3', 'ServiceObjectiveNameSystem4', 'ServiceObjectiveNameSystem2L', 'ServiceObjectiveNameSystem3L', 'ServiceObjectiveNameSystem4L', 'ServiceObjectiveNameFree', 'ServiceObjectiveNameBasic', 'ServiceObjectiveNameS0', 'ServiceObjectiveNameS1', 'ServiceObjectiveNameS2', 'ServiceObjectiveNameS3', 'ServiceObjectiveNameS4', 'ServiceObjectiveNameS6', 'ServiceObjectiveNameS7', 'ServiceObjectiveNameS9', 'ServiceObjectiveNameS12', 'ServiceObjectiveNameP1', 'ServiceObjectiveNameP2', 'ServiceObjectiveNameP3', 'ServiceObjectiveNameP4', 'ServiceObjectiveNameP6', 'ServiceObjectiveNameP11', 'ServiceObjectiveNameP15', 'ServiceObjectiveNamePRS1', 'ServiceObjectiveNamePRS2', 'ServiceObjectiveNamePRS4', 'ServiceObjectiveNamePRS6', 'ServiceObjectiveNameDW100', 'ServiceObjectiveNameDW200', 'ServiceObjectiveNameDW300', 'ServiceObjectiveNameDW400', 'ServiceObjectiveNameDW500', 'ServiceObjectiveNameDW600', 'ServiceObjectiveNameDW1000', 'ServiceObjectiveNameDW1200', 'ServiceObjectiveNameDW1000c', 'ServiceObjectiveNameDW1500', 'ServiceObjectiveNameDW1500c', 'ServiceObjectiveNameDW2000', 'ServiceObjectiveNameDW2000c', 'ServiceObjectiveNameDW3000', 'ServiceObjectiveNameDW2500c', 'ServiceObjectiveNameDW3000c', 'ServiceObjectiveNameDW6000', 'ServiceObjectiveNameDW5000c', 'ServiceObjectiveNameDW6000c', 'ServiceObjectiveNameDW7500c', 'ServiceObjectiveNameDW10000c', 'ServiceObjectiveNameDW15000c', 'ServiceObjectiveNameDW30000c', 'ServiceObjectiveNameDS100', 'ServiceObjectiveNameDS200', 'ServiceObjectiveNameDS300', 'ServiceObjectiveNameDS400', 'ServiceObjectiveNameDS500', 'ServiceObjectiveNameDS600', 'ServiceObjectiveNameDS1000', 'ServiceObjectiveNameDS1200', 'ServiceObjectiveNameDS1500', 'ServiceObjectiveNameDS2000', 'ServiceObjectiveNameElasticPool' ServiceObjectiveName ServiceObjectiveName `json:"serviceObjectiveName,omitempty"` // MaxSizeBytes - The maximum size for the newly imported database. MaxSizeBytes *string `json:"maxSizeBytes,omitempty"` // StorageKeyType - The type of the storage key to use. Possible values include: 'StorageAccessKey', 'SharedAccessKey' StorageKeyType StorageKeyType `json:"storageKeyType,omitempty"` // StorageKey - The storage key to use. If storage key type is SharedAccessKey, it must be preceded with a "?." StorageKey *string `json:"storageKey,omitempty"` // StorageURI - The storage uri to use. StorageURI *string `json:"storageUri,omitempty"` // AdministratorLogin - The name of the SQL administrator. AdministratorLogin *string `json:"administratorLogin,omitempty"` // AdministratorLoginPassword - The password of the SQL administrator. AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"` // AuthenticationType - The authentication type. Possible values include: 'SQL', 'ADPassword' AuthenticationType AuthenticationType `json:"authenticationType,omitempty"` }
ImportRequest import database parameters.
type LocationCapabilities ¶
type LocationCapabilities struct { autorest.Response `json:"-"` // Name - READ-ONLY; The location name. Name *string `json:"name,omitempty"` // Status - READ-ONLY; Azure SQL Database's status for the location. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled' Status CapabilityStatus `json:"status,omitempty"` // SupportedServerVersions - READ-ONLY; The list of supported server versions. SupportedServerVersions *[]ServerVersionCapability `json:"supportedServerVersions,omitempty"` }
LocationCapabilities the capabilities for a location.
type MaxSizeCapability ¶
type MaxSizeCapability struct { // Limit - READ-ONLY; The maximum size of the database (see 'unit' for the units). Limit *int64 `json:"limit,omitempty"` // Unit - READ-ONLY; The units that the limit is expressed in. Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes' Unit MaxSizeUnits `json:"unit,omitempty"` // Status - READ-ONLY; The status of the maximum size capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled' Status CapabilityStatus `json:"status,omitempty"` }
MaxSizeCapability the maximum size limits for a database.
type MaxSizeUnits ¶
type MaxSizeUnits string
MaxSizeUnits enumerates the values for max size units.
const ( // Gigabytes ... Gigabytes MaxSizeUnits = "Gigabytes" // Megabytes ... Megabytes MaxSizeUnits = "Megabytes" // Petabytes ... Petabytes MaxSizeUnits = "Petabytes" // Terabytes ... Terabytes MaxSizeUnits = "Terabytes" )
func PossibleMaxSizeUnitsValues ¶
func PossibleMaxSizeUnitsValues() []MaxSizeUnits
PossibleMaxSizeUnitsValues returns an array of possible values for the MaxSizeUnits const type.
type Metric ¶
type Metric struct { // StartTime - READ-ONLY; The start time for the metric (ISO-8601 format). StartTime *date.Time `json:"startTime,omitempty"` // EndTime - READ-ONLY; The end time for the metric (ISO-8601 format). EndTime *date.Time `json:"endTime,omitempty"` // TimeGrain - READ-ONLY; The time step to be used to summarize the metric values. TimeGrain *string `json:"timeGrain,omitempty"` // Unit - READ-ONLY; The unit of the metric. Possible values include: 'UnitTypeCount', 'UnitTypeBytes', 'UnitTypeSeconds', 'UnitTypePercent', 'UnitTypeCountPerSecond', 'UnitTypeBytesPerSecond' Unit UnitType `json:"unit,omitempty"` // Name - READ-ONLY; The name information for the metric. Name *MetricName `json:"name,omitempty"` // MetricValues - READ-ONLY; The metric values for the specified time window and timestep. MetricValues *[]MetricValue `json:"metricValues,omitempty"` }
Metric database metrics.
type MetricAvailability ¶
type MetricAvailability struct { // Retention - READ-ONLY; The length of retention for the database metric. Retention *string `json:"retention,omitempty"` // TimeGrain - READ-ONLY; The granularity of the database metric. TimeGrain *string `json:"timeGrain,omitempty"` }
MetricAvailability a metric availability value.
type MetricDefinition ¶
type MetricDefinition struct { // Name - READ-ONLY; The name information for the metric. Name *MetricName `json:"name,omitempty"` // PrimaryAggregationType - READ-ONLY; The primary aggregation type defining how metric values are displayed. Possible values include: 'PrimaryAggregationTypeNone', 'PrimaryAggregationTypeAverage', 'PrimaryAggregationTypeCount', 'PrimaryAggregationTypeMinimum', 'PrimaryAggregationTypeMaximum', 'PrimaryAggregationTypeTotal' PrimaryAggregationType PrimaryAggregationType `json:"primaryAggregationType,omitempty"` // ResourceURI - READ-ONLY; The resource uri of the database. ResourceURI *string `json:"resourceUri,omitempty"` // Unit - READ-ONLY; The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond' Unit UnitDefinitionType `json:"unit,omitempty"` // MetricAvailabilities - READ-ONLY; The list of database metric availabilities for the metric. MetricAvailabilities *[]MetricAvailability `json:"metricAvailabilities,omitempty"` }
MetricDefinition a database metric definition.
type MetricDefinitionListResult ¶
type MetricDefinitionListResult struct { autorest.Response `json:"-"` // Value - The list of metric definitions for the database. Value *[]MetricDefinition `json:"value,omitempty"` }
MetricDefinitionListResult the response to a list database metric definitions request.
type MetricListResult ¶
type MetricListResult struct { autorest.Response `json:"-"` // Value - The list of metrics for the database. Value *[]Metric `json:"value,omitempty"` }
MetricListResult the response to a list database metrics request.
type MetricName ¶
type MetricName struct { // Value - READ-ONLY; The name of the database metric. Value *string `json:"value,omitempty"` // LocalizedValue - READ-ONLY; The friendly name of the database metric. LocalizedValue *string `json:"localizedValue,omitempty"` }
MetricName a database metric name.
type MetricValue ¶
type MetricValue struct { // Count - READ-ONLY; The number of values for the metric. Count *float64 `json:"count,omitempty"` // Average - READ-ONLY; The average value of the metric. Average *float64 `json:"average,omitempty"` // Maximum - READ-ONLY; The max value of the metric. Maximum *float64 `json:"maximum,omitempty"` // Minimum - READ-ONLY; The min value of the metric. Minimum *float64 `json:"minimum,omitempty"` // Timestamp - READ-ONLY; The metric timestamp (ISO-8601 format). Timestamp *date.Time `json:"timestamp,omitempty"` // Total - READ-ONLY; The total value of the metric. Total *float64 `json:"total,omitempty"` }
MetricValue represents database metrics.
type Operation ¶
type Operation struct { // Name - Operation name: {provider}/{resource}/{operation} Name *string `json:"name,omitempty"` // Display - Display metadata associated with the operation. Display *OperationDisplay `json:"display,omitempty"` }
Operation SQL REST API operation definition.
type OperationDisplay ¶
type OperationDisplay struct { // Provider - Service provider: Microsoft SQL Database. Provider *string `json:"provider,omitempty"` // Resource - Resource on which the operation is performed: Server, Database, etc. Resource *string `json:"resource,omitempty"` // Operation - Type of operation: get, read, delete, etc. Operation *string `json:"operation,omitempty"` }
OperationDisplay display metadata associated with the operation.
type OperationImpact ¶
type OperationImpact struct { // Name - READ-ONLY; The name of the impact dimension. Name *string `json:"name,omitempty"` // Unit - READ-ONLY; The unit in which estimated impact to dimension is measured. Unit *string `json:"unit,omitempty"` // ChangeValueAbsolute - READ-ONLY; The absolute impact to dimension. ChangeValueAbsolute *float64 `json:"changeValueAbsolute,omitempty"` // ChangeValueRelative - READ-ONLY; The relative impact to dimension (null if not applicable) ChangeValueRelative *float64 `json:"changeValueRelative,omitempty"` }
OperationImpact the impact of an operation, both in absolute and relative terms.
type OperationListResult ¶
type OperationListResult struct { autorest.Response `json:"-"` // Value - List of SQL operations supported by the SQL resource provider. Value *[]Operation `json:"value,omitempty"` // NextLink - URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` }
OperationListResult result of the request to list SQL operations. It contains a list of operations and a URL link to get the next set of results.
type OperationsClient ¶
type OperationsClient struct {
BaseClient
}
OperationsClient 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 NewOperationsClient ¶
func NewOperationsClient(subscriptionID string) OperationsClient
NewOperationsClient creates an instance of the OperationsClient client.
func NewOperationsClientWithBaseURI ¶
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient
NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
func (OperationsClient) List ¶
func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error)
List lists all of the available SQL Rest API operations.
func (OperationsClient) ListPreparer ¶
ListPreparer prepares the List request.
func (OperationsClient) ListResponder ¶
func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (OperationsClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type PerformanceLevel ¶
type PerformanceLevel struct { // Unit - READ-ONLY; Unit type used to measure service objective performance level. Possible values include: 'DTU' Unit PerformanceLevelUnit `json:"unit,omitempty"` // Value - READ-ONLY; Performance level value. Value *int32 `json:"value,omitempty"` }
PerformanceLevel a possible performance level of a service objective capability.
type PerformanceLevelUnit ¶
type PerformanceLevelUnit string
PerformanceLevelUnit enumerates the values for performance level unit.
const ( // DTU ... DTU PerformanceLevelUnit = "DTU" )
func PossiblePerformanceLevelUnitValues ¶
func PossiblePerformanceLevelUnitValues() []PerformanceLevelUnit
PossiblePerformanceLevelUnitValues returns an array of possible values for the PerformanceLevelUnit const type.
type PrimaryAggregationType ¶
type PrimaryAggregationType string
PrimaryAggregationType enumerates the values for primary aggregation type.
const ( // PrimaryAggregationTypeAverage ... PrimaryAggregationTypeAverage PrimaryAggregationType = "Average" // PrimaryAggregationTypeCount ... PrimaryAggregationTypeCount PrimaryAggregationType = "Count" // PrimaryAggregationTypeMaximum ... PrimaryAggregationTypeMaximum PrimaryAggregationType = "Maximum" // PrimaryAggregationTypeMinimum ... PrimaryAggregationTypeMinimum PrimaryAggregationType = "Minimum" // PrimaryAggregationTypeNone ... PrimaryAggregationTypeNone PrimaryAggregationType = "None" // PrimaryAggregationTypeTotal ... PrimaryAggregationTypeTotal PrimaryAggregationType = "Total" )
func PossiblePrimaryAggregationTypeValues ¶
func PossiblePrimaryAggregationTypeValues() []PrimaryAggregationType
PossiblePrimaryAggregationTypeValues returns an array of possible values for the PrimaryAggregationType 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 QueriesClient ¶
type QueriesClient struct {
BaseClient
}
QueriesClient 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 NewQueriesClient ¶
func NewQueriesClient(subscriptionID string) QueriesClient
NewQueriesClient creates an instance of the QueriesClient client.
func NewQueriesClientWithBaseURI ¶
func NewQueriesClientWithBaseURI(baseURI string, subscriptionID string) QueriesClient
NewQueriesClientWithBaseURI creates an instance of the QueriesClient client.
func (QueriesClient) ListByDatabase ¶
func (client QueriesClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result TopQueriesListResult, err error)
ListByDatabase gets a list of top queries by 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 (QueriesClient) ListByDatabasePreparer ¶
func (client QueriesClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
ListByDatabasePreparer prepares the ListByDatabase request.
func (QueriesClient) ListByDatabaseResponder ¶
func (client QueriesClient) ListByDatabaseResponder(resp *http.Response) (result TopQueriesListResult, err error)
ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.
func (QueriesClient) ListByDatabaseSender ¶
ListByDatabaseSender sends the ListByDatabase request. The method will close the http.Response Body if it receives an error.
type QueryAggregationFunction ¶
type QueryAggregationFunction string
QueryAggregationFunction enumerates the values for query aggregation function.
const ( // Avg ... Avg QueryAggregationFunction = "avg" // Max ... Max QueryAggregationFunction = "max" // Min ... Min QueryAggregationFunction = "min" // Sum ... Sum QueryAggregationFunction = "sum" )
func PossibleQueryAggregationFunctionValues ¶
func PossibleQueryAggregationFunctionValues() []QueryAggregationFunction
PossibleQueryAggregationFunctionValues returns an array of possible values for the QueryAggregationFunction const type.
type QueryExecutionType ¶
type QueryExecutionType string
QueryExecutionType enumerates the values for query execution type.
const ( // Aborted ... Aborted QueryExecutionType = "aborted" // Any ... Any QueryExecutionType = "any" // Exception ... Exception QueryExecutionType = "exception" // Irregular ... Irregular QueryExecutionType = "irregular" // Regular ... Regular QueryExecutionType = "regular" )
func PossibleQueryExecutionTypeValues ¶
func PossibleQueryExecutionTypeValues() []QueryExecutionType
PossibleQueryExecutionTypeValues returns an array of possible values for the QueryExecutionType const type.
type QueryInterval ¶
type QueryInterval struct { // IntervalStartTime - READ-ONLY; The start time of the measurement interval (ISO8601 format). IntervalStartTime *date.Time `json:"intervalStartTime,omitempty"` // ExecutionCount - READ-ONLY; The number of times the query was executed during this interval. ExecutionCount *float64 `json:"executionCount,omitempty"` // Metrics - READ-ONLY; The list of query metrics during this interval. Metrics *[]QueryMetric `json:"metrics,omitempty"` }
QueryInterval a database query.
type QueryMetric ¶
type QueryMetric struct { // Name - READ-ONLY; The name of the metric Name *string `json:"name,omitempty"` // DisplayName - READ-ONLY; The name of the metric for display in user interface DisplayName *string `json:"displayName,omitempty"` // Unit - READ-ONLY; The unit of measurement. Possible values include: 'Percentage', 'KB', 'Microseconds' Unit QueryMetricUnit `json:"unit,omitempty"` // Value - READ-ONLY; The measured value Value *float64 `json:"value,omitempty"` }
QueryMetric a database query.
type QueryMetricUnit ¶
type QueryMetricUnit string
QueryMetricUnit enumerates the values for query metric unit.
const ( // KB ... KB QueryMetricUnit = "KB" // Microseconds ... Microseconds QueryMetricUnit = "microseconds" // Percentage ... Percentage QueryMetricUnit = "percentage" )
func PossibleQueryMetricUnitValues ¶
func PossibleQueryMetricUnitValues() []QueryMetricUnit
PossibleQueryMetricUnitValues returns an array of possible values for the QueryMetricUnit const type.
type QueryObservedMetricType ¶
type QueryObservedMetricType string
QueryObservedMetricType enumerates the values for query observed metric type.
const ( // CPU ... CPU QueryObservedMetricType = "cpu" // Duration ... Duration QueryObservedMetricType = "duration" // ExecutionCount ... ExecutionCount QueryObservedMetricType = "executionCount" // Io ... Io QueryObservedMetricType = "io" // Logio ... Logio QueryObservedMetricType = "logio" )
func PossibleQueryObservedMetricTypeValues ¶
func PossibleQueryObservedMetricTypeValues() []QueryObservedMetricType
PossibleQueryObservedMetricTypeValues returns an array of possible values for the QueryObservedMetricType const type.
type QueryStatistic ¶
type QueryStatistic struct { // QueryID - READ-ONLY; The id of the query QueryID *string `json:"queryId,omitempty"` // Intervals - READ-ONLY; The list of query intervals. Intervals *[]QueryInterval `json:"intervals,omitempty"` }
QueryStatistic a database query.
type QueryStatisticListResult ¶
type QueryStatisticListResult struct { autorest.Response `json:"-"` // Value - The query. Value *[]QueryStatistic `json:"value,omitempty"` }
QueryStatisticListResult represents the response to a get query request.
type QueryStatisticsClient ¶
type QueryStatisticsClient struct {
BaseClient
}
QueryStatisticsClient 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 NewQueryStatisticsClient ¶
func NewQueryStatisticsClient(subscriptionID string) QueryStatisticsClient
NewQueryStatisticsClient creates an instance of the QueryStatisticsClient client.
func NewQueryStatisticsClientWithBaseURI ¶
func NewQueryStatisticsClientWithBaseURI(baseURI string, subscriptionID string) QueryStatisticsClient
NewQueryStatisticsClientWithBaseURI creates an instance of the QueryStatisticsClient client.
func (QueryStatisticsClient) ListByQuery ¶
func (client QueryStatisticsClient) ListByQuery(ctx context.Context, resourceGroupName string, serverName string, databaseName string, queryID string) (result QueryStatisticListResult, err error)
ListByQuery lists a query's statistics. 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. queryID - the id of the query
func (QueryStatisticsClient) ListByQueryPreparer ¶
func (client QueryStatisticsClient) ListByQueryPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, queryID string) (*http.Request, error)
ListByQueryPreparer prepares the ListByQuery request.
func (QueryStatisticsClient) ListByQueryResponder ¶
func (client QueryStatisticsClient) ListByQueryResponder(resp *http.Response) (result QueryStatisticListResult, err error)
ListByQueryResponder handles the response to the ListByQuery request. The method always closes the http.Response Body.
func (QueryStatisticsClient) ListByQuerySender ¶
ListByQuerySender sends the ListByQuery request. The method will close the http.Response Body if it receives an error.
type QueryText ¶
type QueryText struct { // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` // QueryText - READ-ONLY; Query text. QueryText *string `json:"queryText,omitempty"` }
QueryText ...
type QueryTextListResult ¶
type QueryTextListResult struct { autorest.Response `json:"-"` // Value - The query text. Value *[]QueryText `json:"value,omitempty"` }
QueryTextListResult represents the response to a get query text request.
type QueryTextsClient ¶
type QueryTextsClient struct {
BaseClient
}
QueryTextsClient 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 NewQueryTextsClient ¶
func NewQueryTextsClient(subscriptionID string) QueryTextsClient
NewQueryTextsClient creates an instance of the QueryTextsClient client.
func NewQueryTextsClientWithBaseURI ¶
func NewQueryTextsClientWithBaseURI(baseURI string, subscriptionID string) QueryTextsClient
NewQueryTextsClientWithBaseURI creates an instance of the QueryTextsClient client.
func (QueryTextsClient) ListByQuery ¶
func (client QueryTextsClient) ListByQuery(ctx context.Context, resourceGroupName string, serverName string, databaseName string, queryID string) (result QueryTextListResult, err error)
ListByQuery gets a query's text. 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. queryID - the id of the query
func (QueryTextsClient) ListByQueryPreparer ¶
func (client QueryTextsClient) ListByQueryPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, queryID string) (*http.Request, error)
ListByQueryPreparer prepares the ListByQuery request.
func (QueryTextsClient) ListByQueryResponder ¶
func (client QueryTextsClient) ListByQueryResponder(resp *http.Response) (result QueryTextListResult, err error)
ListByQueryResponder handles the response to the ListByQuery request. The method always closes the http.Response Body.
func (QueryTextsClient) ListByQuerySender ¶
ListByQuerySender sends the ListByQuery request. The method will close the http.Response Body if it receives an error.
type ReadScale ¶
type ReadScale string
ReadScale enumerates the values for read scale.
func PossibleReadScaleValues ¶
func PossibleReadScaleValues() []ReadScale
PossibleReadScaleValues returns an array of possible values for the ReadScale const type.
type RecommendedElasticPool ¶
type RecommendedElasticPool struct { autorest.Response `json:"-"` // RecommendedElasticPoolProperties - The properties representing the resource. *RecommendedElasticPoolProperties `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"` }
RecommendedElasticPool represents a recommended elastic pool.
func (RecommendedElasticPool) MarshalJSON ¶
func (rep RecommendedElasticPool) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RecommendedElasticPool.
func (*RecommendedElasticPool) UnmarshalJSON ¶
func (rep *RecommendedElasticPool) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for RecommendedElasticPool struct.
type RecommendedElasticPoolListMetricsResult ¶
type RecommendedElasticPoolListMetricsResult struct { autorest.Response `json:"-"` // Value - The list of recommended elastic pools metrics. Value *[]RecommendedElasticPoolMetric `json:"value,omitempty"` }
RecommendedElasticPoolListMetricsResult represents the response to a list recommended elastic pool metrics request.
type RecommendedElasticPoolListResult ¶
type RecommendedElasticPoolListResult struct { autorest.Response `json:"-"` // Value - The list of recommended elastic pools hosted in the server. Value *[]RecommendedElasticPool `json:"value,omitempty"` }
RecommendedElasticPoolListResult represents the response to a list recommended elastic pool request.
type RecommendedElasticPoolMetric ¶
type RecommendedElasticPoolMetric struct { // DateTime - The time of metric (ISO8601 format). DateTime *date.Time `json:"dateTime,omitempty"` // Dtu - Gets or sets the DTUs (Database Transaction Units). See https://azure.microsoft.com/documentation/articles/sql-database-what-is-a-dtu/ Dtu *float64 `json:"dtu,omitempty"` // SizeGB - Gets or sets size in gigabytes. SizeGB *float64 `json:"sizeGB,omitempty"` }
RecommendedElasticPoolMetric represents recommended elastic pool metric.
type RecommendedElasticPoolProperties ¶
type RecommendedElasticPoolProperties struct { // DatabaseEdition - READ-ONLY; The edition of the recommended elastic pool. The ElasticPoolEdition enumeration contains all the valid editions. Possible values include: 'ElasticPoolEditionBasic', 'ElasticPoolEditionStandard', 'ElasticPoolEditionPremium', 'ElasticPoolEditionGeneralPurpose', 'ElasticPoolEditionBusinessCritical' DatabaseEdition ElasticPoolEdition `json:"databaseEdition,omitempty"` // Dtu - The DTU for the recommended elastic pool. Dtu *float64 `json:"dtu,omitempty"` // DatabaseDtuMin - The minimum DTU for the database. DatabaseDtuMin *float64 `json:"databaseDtuMin,omitempty"` // DatabaseDtuMax - The maximum DTU for the database. DatabaseDtuMax *float64 `json:"databaseDtuMax,omitempty"` // StorageMB - Gets storage size in megabytes. StorageMB *float64 `json:"storageMB,omitempty"` // ObservationPeriodStart - READ-ONLY; The observation period start (ISO8601 format). ObservationPeriodStart *date.Time `json:"observationPeriodStart,omitempty"` // ObservationPeriodEnd - READ-ONLY; The observation period start (ISO8601 format). ObservationPeriodEnd *date.Time `json:"observationPeriodEnd,omitempty"` // MaxObservedDtu - READ-ONLY; Gets maximum observed DTU. MaxObservedDtu *float64 `json:"maxObservedDtu,omitempty"` // MaxObservedStorageMB - READ-ONLY; Gets maximum observed storage in megabytes. MaxObservedStorageMB *float64 `json:"maxObservedStorageMB,omitempty"` // Databases - READ-ONLY; The list of databases in this pool. Expanded property Databases *[]Database `json:"databases,omitempty"` // Metrics - READ-ONLY; The list of databases housed in the server. Expanded property Metrics *[]RecommendedElasticPoolMetric `json:"metrics,omitempty"` }
RecommendedElasticPoolProperties represents the properties of a recommended elastic pool.
type RecommendedElasticPoolsClient ¶
type RecommendedElasticPoolsClient struct {
BaseClient
}
RecommendedElasticPoolsClient 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 NewRecommendedElasticPoolsClient ¶
func NewRecommendedElasticPoolsClient(subscriptionID string) RecommendedElasticPoolsClient
NewRecommendedElasticPoolsClient creates an instance of the RecommendedElasticPoolsClient client.
func NewRecommendedElasticPoolsClientWithBaseURI ¶
func NewRecommendedElasticPoolsClientWithBaseURI(baseURI string, subscriptionID string) RecommendedElasticPoolsClient
NewRecommendedElasticPoolsClientWithBaseURI creates an instance of the RecommendedElasticPoolsClient client.
func (RecommendedElasticPoolsClient) Get ¶
func (client RecommendedElasticPoolsClient) Get(ctx context.Context, resourceGroupName string, serverName string, recommendedElasticPoolName string) (result RecommendedElasticPool, err error)
Get gets a recommended 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. recommendedElasticPoolName - the name of the recommended elastic pool to be retrieved.
func (RecommendedElasticPoolsClient) GetPreparer ¶
func (client RecommendedElasticPoolsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, recommendedElasticPoolName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (RecommendedElasticPoolsClient) GetResponder ¶
func (client RecommendedElasticPoolsClient) GetResponder(resp *http.Response) (result RecommendedElasticPool, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (RecommendedElasticPoolsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (RecommendedElasticPoolsClient) ListByServer ¶
func (client RecommendedElasticPoolsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result RecommendedElasticPoolListResult, err error)
ListByServer returns recommended elastic pools. 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 (RecommendedElasticPoolsClient) ListByServerPreparer ¶
func (client RecommendedElasticPoolsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
ListByServerPreparer prepares the ListByServer request.
func (RecommendedElasticPoolsClient) ListByServerResponder ¶
func (client RecommendedElasticPoolsClient) ListByServerResponder(resp *http.Response) (result RecommendedElasticPoolListResult, err error)
ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.
func (RecommendedElasticPoolsClient) ListByServerSender ¶
func (client RecommendedElasticPoolsClient) ListByServerSender(req *http.Request) (*http.Response, error)
ListByServerSender sends the ListByServer request. The method will close the http.Response Body if it receives an error.
func (RecommendedElasticPoolsClient) ListMetrics ¶
func (client RecommendedElasticPoolsClient) ListMetrics(ctx context.Context, resourceGroupName string, serverName string, recommendedElasticPoolName string) (result RecommendedElasticPoolListMetricsResult, err error)
ListMetrics returns recommended elastic pool metrics. 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. recommendedElasticPoolName - the name of the recommended elastic pool to be retrieved.
func (RecommendedElasticPoolsClient) ListMetricsPreparer ¶
func (client RecommendedElasticPoolsClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, serverName string, recommendedElasticPoolName string) (*http.Request, error)
ListMetricsPreparer prepares the ListMetrics request.
func (RecommendedElasticPoolsClient) ListMetricsResponder ¶
func (client RecommendedElasticPoolsClient) ListMetricsResponder(resp *http.Response) (result RecommendedElasticPoolListMetricsResult, err error)
ListMetricsResponder handles the response to the ListMetrics request. The method always closes the http.Response Body.
func (RecommendedElasticPoolsClient) ListMetricsSender ¶
func (client RecommendedElasticPoolsClient) ListMetricsSender(req *http.Request) (*http.Response, error)
ListMetricsSender sends the ListMetrics request. The method will close the http.Response Body if it receives an error.
type RecommendedIndex ¶
type RecommendedIndex struct { // RecommendedIndexProperties - READ-ONLY; The properties representing the resource. *RecommendedIndexProperties `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"` }
RecommendedIndex represents a database recommended index.
func (RecommendedIndex) MarshalJSON ¶
func (ri RecommendedIndex) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RecommendedIndex.
func (*RecommendedIndex) UnmarshalJSON ¶
func (ri *RecommendedIndex) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for RecommendedIndex struct.
type RecommendedIndexAction ¶
type RecommendedIndexAction string
RecommendedIndexAction enumerates the values for recommended index action.
const ( // Create ... Create RecommendedIndexAction = "Create" // Drop ... Drop RecommendedIndexAction = "Drop" // Rebuild ... Rebuild RecommendedIndexAction = "Rebuild" )
func PossibleRecommendedIndexActionValues ¶
func PossibleRecommendedIndexActionValues() []RecommendedIndexAction
PossibleRecommendedIndexActionValues returns an array of possible values for the RecommendedIndexAction const type.
type RecommendedIndexProperties ¶
type RecommendedIndexProperties struct { // Action - READ-ONLY; The proposed index action. You can create a missing index, drop an unused index, or rebuild an existing index to improve its performance. Possible values include: 'Create', 'Drop', 'Rebuild' Action RecommendedIndexAction `json:"action,omitempty"` // State - READ-ONLY; The current recommendation state. Possible values include: 'Active', 'Pending', 'Executing', 'Verifying', 'PendingRevert', 'Reverting', 'Reverted', 'Ignored', 'Expired', 'Blocked', 'Success' State RecommendedIndexState `json:"state,omitempty"` // Created - READ-ONLY; The UTC datetime showing when this resource was created (ISO8601 format). Created *date.Time `json:"created,omitempty"` // LastModified - READ-ONLY; The UTC datetime of when was this resource last changed (ISO8601 format). LastModified *date.Time `json:"lastModified,omitempty"` // IndexType - READ-ONLY; The type of index (CLUSTERED, NONCLUSTERED, COLUMNSTORE, CLUSTERED COLUMNSTORE). Possible values include: 'CLUSTERED', 'NONCLUSTERED', 'COLUMNSTORE', 'CLUSTEREDCOLUMNSTORE' IndexType RecommendedIndexType `json:"indexType,omitempty"` // Schema - READ-ONLY; The schema where table to build index over resides Schema *string `json:"schema,omitempty"` // Table - READ-ONLY; The table on which to build index. Table *string `json:"table,omitempty"` // Columns - READ-ONLY; Columns over which to build index Columns *[]string `json:"columns,omitempty"` // IncludedColumns - READ-ONLY; The list of column names to be included in the index IncludedColumns *[]string `json:"includedColumns,omitempty"` // IndexScript - READ-ONLY; The full build index script IndexScript *string `json:"indexScript,omitempty"` // EstimatedImpact - READ-ONLY; The estimated impact of doing recommended index action. EstimatedImpact *[]OperationImpact `json:"estimatedImpact,omitempty"` // ReportedImpact - READ-ONLY; The values reported after index action is complete. ReportedImpact *[]OperationImpact `json:"reportedImpact,omitempty"` }
RecommendedIndexProperties represents the properties of a database recommended index.
type RecommendedIndexState ¶
type RecommendedIndexState string
RecommendedIndexState enumerates the values for recommended index state.
const ( // Active ... Active RecommendedIndexState = "Active" // Blocked ... Blocked RecommendedIndexState = "Blocked" // Executing ... Executing RecommendedIndexState = "Executing" // Expired ... Expired RecommendedIndexState = "Expired" // Ignored ... Ignored RecommendedIndexState = "Ignored" // Pending ... Pending RecommendedIndexState = "Pending" // PendingRevert ... PendingRevert RecommendedIndexState = "Pending Revert" // Reverted ... Reverted RecommendedIndexState = "Reverted" // Reverting ... Reverting RecommendedIndexState = "Reverting" // Success ... Success RecommendedIndexState = "Success" // Verifying ... Verifying RecommendedIndexState = "Verifying" )
func PossibleRecommendedIndexStateValues ¶
func PossibleRecommendedIndexStateValues() []RecommendedIndexState
PossibleRecommendedIndexStateValues returns an array of possible values for the RecommendedIndexState const type.
type RecommendedIndexType ¶
type RecommendedIndexType string
RecommendedIndexType enumerates the values for recommended index type.
const ( // CLUSTERED ... CLUSTERED RecommendedIndexType = "CLUSTERED" // CLUSTEREDCOLUMNSTORE ... CLUSTEREDCOLUMNSTORE RecommendedIndexType = "CLUSTERED COLUMNSTORE" // COLUMNSTORE ... COLUMNSTORE RecommendedIndexType = "COLUMNSTORE" // NONCLUSTERED ... NONCLUSTERED RecommendedIndexType = "NONCLUSTERED" )
func PossibleRecommendedIndexTypeValues ¶
func PossibleRecommendedIndexTypeValues() []RecommendedIndexType
PossibleRecommendedIndexTypeValues returns an array of possible values for the RecommendedIndexType const type.
type RecoverableDatabase ¶
type RecoverableDatabase struct { autorest.Response `json:"-"` // RecoverableDatabaseProperties - The properties of a recoverable database *RecoverableDatabaseProperties `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"` }
RecoverableDatabase a recoverable database
func (RecoverableDatabase) MarshalJSON ¶
func (rd RecoverableDatabase) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RecoverableDatabase.
func (*RecoverableDatabase) UnmarshalJSON ¶
func (rd *RecoverableDatabase) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for RecoverableDatabase struct.
type RecoverableDatabaseListResult ¶
type RecoverableDatabaseListResult struct { autorest.Response `json:"-"` // Value - A list of recoverable databases Value *[]RecoverableDatabase `json:"value,omitempty"` }
RecoverableDatabaseListResult the response to a list recoverable databases request
type RecoverableDatabaseProperties ¶
type RecoverableDatabaseProperties struct { // Edition - READ-ONLY; The edition of the database Edition *string `json:"edition,omitempty"` // ServiceLevelObjective - READ-ONLY; The service level objective name of the database ServiceLevelObjective *string `json:"serviceLevelObjective,omitempty"` // ElasticPoolName - READ-ONLY; The elastic pool name of the database ElasticPoolName *string `json:"elasticPoolName,omitempty"` // LastAvailableBackupDate - READ-ONLY; The last available backup date of the database (ISO8601 format) LastAvailableBackupDate *date.Time `json:"lastAvailableBackupDate,omitempty"` }
RecoverableDatabaseProperties the properties of a recoverable database
type RecoverableDatabasesClient ¶
type RecoverableDatabasesClient struct {
BaseClient
}
RecoverableDatabasesClient 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 NewRecoverableDatabasesClient ¶
func NewRecoverableDatabasesClient(subscriptionID string) RecoverableDatabasesClient
NewRecoverableDatabasesClient creates an instance of the RecoverableDatabasesClient client.
func NewRecoverableDatabasesClientWithBaseURI ¶
func NewRecoverableDatabasesClientWithBaseURI(baseURI string, subscriptionID string) RecoverableDatabasesClient
NewRecoverableDatabasesClientWithBaseURI creates an instance of the RecoverableDatabasesClient client.
func (RecoverableDatabasesClient) Get ¶
func (client RecoverableDatabasesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result RecoverableDatabase, err error)
Get gets a recoverable database, which is a resource representing a database's geo backup 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 (RecoverableDatabasesClient) GetPreparer ¶
func (client RecoverableDatabasesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (RecoverableDatabasesClient) GetResponder ¶
func (client RecoverableDatabasesClient) GetResponder(resp *http.Response) (result RecoverableDatabase, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (RecoverableDatabasesClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (RecoverableDatabasesClient) ListByServer ¶
func (client RecoverableDatabasesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result RecoverableDatabaseListResult, err error)
ListByServer gets a list of recoverable 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 (RecoverableDatabasesClient) ListByServerPreparer ¶
func (client RecoverableDatabasesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
ListByServerPreparer prepares the ListByServer request.
func (RecoverableDatabasesClient) ListByServerResponder ¶
func (client RecoverableDatabasesClient) ListByServerResponder(resp *http.Response) (result RecoverableDatabaseListResult, err error)
ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.
func (RecoverableDatabasesClient) ListByServerSender ¶
func (client RecoverableDatabasesClient) ListByServerSender(req *http.Request) (*http.Response, error)
ListByServerSender sends the ListByServer request. The method will close the http.Response Body if it receives an error.
type ReplicationLink ¶
type ReplicationLink struct { autorest.Response `json:"-"` // Location - READ-ONLY; Location of the server that contains this firewall rule. Location *string `json:"location,omitempty"` // ReplicationLinkProperties - The properties representing the resource. *ReplicationLinkProperties `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"` }
ReplicationLink represents a database replication link.
func (ReplicationLink) MarshalJSON ¶
func (rl ReplicationLink) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ReplicationLink.
func (*ReplicationLink) UnmarshalJSON ¶
func (rl *ReplicationLink) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ReplicationLink struct.
type ReplicationLinkListResult ¶
type ReplicationLinkListResult struct { autorest.Response `json:"-"` // Value - The list of database replication links housed in the database. Value *[]ReplicationLink `json:"value,omitempty"` }
ReplicationLinkListResult represents the response to a List database replication link request.
type ReplicationLinkProperties ¶
type ReplicationLinkProperties struct { // IsTerminationAllowed - READ-ONLY; Legacy value indicating whether termination is allowed. Currently always returns true. IsTerminationAllowed *bool `json:"isTerminationAllowed,omitempty"` // ReplicationMode - READ-ONLY; Replication mode of this replication link. ReplicationMode *string `json:"replicationMode,omitempty"` // PartnerServer - READ-ONLY; The name of the server hosting the partner database. PartnerServer *string `json:"partnerServer,omitempty"` // PartnerDatabase - READ-ONLY; The name of the partner database. PartnerDatabase *string `json:"partnerDatabase,omitempty"` // PartnerLocation - READ-ONLY; The Azure Region of the partner database. PartnerLocation *string `json:"partnerLocation,omitempty"` // Role - READ-ONLY; The role of the database in the replication link. Possible values include: 'ReplicationRolePrimary', 'ReplicationRoleSecondary', 'ReplicationRoleNonReadableSecondary', 'ReplicationRoleSource', 'ReplicationRoleCopy' Role ReplicationRole `json:"role,omitempty"` // PartnerRole - READ-ONLY; The role of the partner database in the replication link. Possible values include: 'ReplicationRolePrimary', 'ReplicationRoleSecondary', 'ReplicationRoleNonReadableSecondary', 'ReplicationRoleSource', 'ReplicationRoleCopy' PartnerRole ReplicationRole `json:"partnerRole,omitempty"` // StartTime - READ-ONLY; The start time for the replication link. StartTime *date.Time `json:"startTime,omitempty"` // PercentComplete - READ-ONLY; The percentage of seeding complete for the replication link. PercentComplete *int32 `json:"percentComplete,omitempty"` // ReplicationState - READ-ONLY; The replication state for the replication link. Possible values include: 'PENDING', 'SEEDING', 'CATCHUP', 'SUSPENDED' ReplicationState ReplicationState `json:"replicationState,omitempty"` }
ReplicationLinkProperties represents the properties of a database replication link.
type ReplicationLinksClient ¶
type ReplicationLinksClient struct {
BaseClient
}
ReplicationLinksClient 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 NewReplicationLinksClient ¶
func NewReplicationLinksClient(subscriptionID string) ReplicationLinksClient
NewReplicationLinksClient creates an instance of the ReplicationLinksClient client.
func NewReplicationLinksClientWithBaseURI ¶
func NewReplicationLinksClientWithBaseURI(baseURI string, subscriptionID string) ReplicationLinksClient
NewReplicationLinksClientWithBaseURI creates an instance of the ReplicationLinksClient client.
func (ReplicationLinksClient) Delete ¶
func (client ReplicationLinksClient) Delete(ctx context.Context, resourceGroupName string, serverName string, databaseName string, linkID string) (result autorest.Response, err error)
Delete deletes a database replication link. Cannot be done during failover. 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 that has the replication link to be dropped. linkID - the ID of the replication link to be deleted.
func (ReplicationLinksClient) DeletePreparer ¶
func (client ReplicationLinksClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, linkID string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (ReplicationLinksClient) DeleteResponder ¶
func (client ReplicationLinksClient) 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 (ReplicationLinksClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (ReplicationLinksClient) Failover ¶
func (client ReplicationLinksClient) Failover(ctx context.Context, resourceGroupName string, serverName string, databaseName string, linkID string) (result ReplicationLinksFailoverFuture, err error)
Failover sets which replica database is primary by failing over from the current primary replica 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 that has the replication link to be failed over. linkID - the ID of the replication link to be failed over.
func (ReplicationLinksClient) FailoverAllowDataLoss ¶
func (client ReplicationLinksClient) FailoverAllowDataLoss(ctx context.Context, resourceGroupName string, serverName string, databaseName string, linkID string) (result ReplicationLinksFailoverAllowDataLossFuture, err error)
FailoverAllowDataLoss sets which replica database is primary by failing over from the current primary replica database. 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. serverName - the name of the server. databaseName - the name of the database that has the replication link to be failed over. linkID - the ID of the replication link to be failed over.
func (ReplicationLinksClient) FailoverAllowDataLossPreparer ¶
func (client ReplicationLinksClient) FailoverAllowDataLossPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, linkID string) (*http.Request, error)
FailoverAllowDataLossPreparer prepares the FailoverAllowDataLoss request.
func (ReplicationLinksClient) FailoverAllowDataLossResponder ¶
func (client ReplicationLinksClient) FailoverAllowDataLossResponder(resp *http.Response) (result autorest.Response, err error)
FailoverAllowDataLossResponder handles the response to the FailoverAllowDataLoss request. The method always closes the http.Response Body.
func (ReplicationLinksClient) FailoverAllowDataLossSender ¶
func (client ReplicationLinksClient) FailoverAllowDataLossSender(req *http.Request) (future ReplicationLinksFailoverAllowDataLossFuture, err error)
FailoverAllowDataLossSender sends the FailoverAllowDataLoss request. The method will close the http.Response Body if it receives an error.
func (ReplicationLinksClient) FailoverPreparer ¶
func (client ReplicationLinksClient) FailoverPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, linkID string) (*http.Request, error)
FailoverPreparer prepares the Failover request.
func (ReplicationLinksClient) FailoverResponder ¶
func (client ReplicationLinksClient) FailoverResponder(resp *http.Response) (result autorest.Response, err error)
FailoverResponder handles the response to the Failover request. The method always closes the http.Response Body.
func (ReplicationLinksClient) FailoverSender ¶
func (client ReplicationLinksClient) FailoverSender(req *http.Request) (future ReplicationLinksFailoverFuture, err error)
FailoverSender sends the Failover request. The method will close the http.Response Body if it receives an error.
func (ReplicationLinksClient) Get ¶
func (client ReplicationLinksClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string, linkID string) (result ReplicationLink, err error)
Get gets a database replication link. 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 get the link for. linkID - the replication link ID to be retrieved.
func (ReplicationLinksClient) GetPreparer ¶
func (client ReplicationLinksClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, linkID string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ReplicationLinksClient) GetResponder ¶
func (client ReplicationLinksClient) GetResponder(resp *http.Response) (result ReplicationLink, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ReplicationLinksClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ReplicationLinksClient) ListByDatabase ¶
func (client ReplicationLinksClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result ReplicationLinkListResult, err error)
ListByDatabase lists a database's replication links. 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 retrieve links for.
func (ReplicationLinksClient) ListByDatabasePreparer ¶
func (client ReplicationLinksClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
ListByDatabasePreparer prepares the ListByDatabase request.
func (ReplicationLinksClient) ListByDatabaseResponder ¶
func (client ReplicationLinksClient) ListByDatabaseResponder(resp *http.Response) (result ReplicationLinkListResult, err error)
ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.
func (ReplicationLinksClient) ListByDatabaseSender ¶
func (client ReplicationLinksClient) 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 ReplicationLinksFailoverAllowDataLossFuture ¶
ReplicationLinksFailoverAllowDataLossFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ReplicationLinksFailoverAllowDataLossFuture) Result ¶
func (future *ReplicationLinksFailoverAllowDataLossFuture) Result(client ReplicationLinksClient) (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 ReplicationLinksFailoverFuture ¶
ReplicationLinksFailoverFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ReplicationLinksFailoverFuture) Result ¶
func (future *ReplicationLinksFailoverFuture) Result(client ReplicationLinksClient) (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 ReplicationRole ¶
type ReplicationRole string
ReplicationRole enumerates the values for replication role.
const ( // ReplicationRoleCopy ... ReplicationRoleCopy ReplicationRole = "Copy" // ReplicationRoleNonReadableSecondary ... ReplicationRoleNonReadableSecondary ReplicationRole = "NonReadableSecondary" // ReplicationRolePrimary ... ReplicationRolePrimary ReplicationRole = "Primary" // ReplicationRoleSecondary ... ReplicationRoleSecondary ReplicationRole = "Secondary" // ReplicationRoleSource ... ReplicationRoleSource ReplicationRole = "Source" )
func PossibleReplicationRoleValues ¶
func PossibleReplicationRoleValues() []ReplicationRole
PossibleReplicationRoleValues returns an array of possible values for the ReplicationRole const type.
type ReplicationState ¶
type ReplicationState string
ReplicationState enumerates the values for replication state.
const ( // CATCHUP ... CATCHUP ReplicationState = "CATCH_UP" // PENDING ... PENDING ReplicationState = "PENDING" // SEEDING ... SEEDING ReplicationState = "SEEDING" // SUSPENDED ... SUSPENDED ReplicationState = "SUSPENDED" )
func PossibleReplicationStateValues ¶
func PossibleReplicationStateValues() []ReplicationState
PossibleReplicationStateValues returns an array of possible values for the ReplicationState const type.
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 RestorableDroppedDatabase ¶
type RestorableDroppedDatabase struct { autorest.Response `json:"-"` // Location - READ-ONLY; The geo-location where the resource lives Location *string `json:"location,omitempty"` // RestorableDroppedDatabaseProperties - The properties of a restorable dropped database *RestorableDroppedDatabaseProperties `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"` }
RestorableDroppedDatabase a restorable dropped database
func (RestorableDroppedDatabase) MarshalJSON ¶
func (rdd RestorableDroppedDatabase) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RestorableDroppedDatabase.
func (*RestorableDroppedDatabase) UnmarshalJSON ¶
func (rdd *RestorableDroppedDatabase) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for RestorableDroppedDatabase struct.
type RestorableDroppedDatabaseListResult ¶
type RestorableDroppedDatabaseListResult struct { autorest.Response `json:"-"` // Value - A list of restorable dropped databases Value *[]RestorableDroppedDatabase `json:"value,omitempty"` }
RestorableDroppedDatabaseListResult the response to a list restorable dropped databases request
type RestorableDroppedDatabaseProperties ¶
type RestorableDroppedDatabaseProperties struct { // DatabaseName - READ-ONLY; The name of the database DatabaseName *string `json:"databaseName,omitempty"` // Edition - READ-ONLY; The edition of the database Edition *string `json:"edition,omitempty"` // MaxSizeBytes - READ-ONLY; The max size in bytes of the database MaxSizeBytes *string `json:"maxSizeBytes,omitempty"` // ServiceLevelObjective - READ-ONLY; The service level objective name of the database ServiceLevelObjective *string `json:"serviceLevelObjective,omitempty"` // ElasticPoolName - READ-ONLY; The elastic pool name of the database ElasticPoolName *string `json:"elasticPoolName,omitempty"` // CreationDate - READ-ONLY; The creation date of the database (ISO8601 format) CreationDate *date.Time `json:"creationDate,omitempty"` // DeletionDate - READ-ONLY; The deletion date of the database (ISO8601 format) DeletionDate *date.Time `json:"deletionDate,omitempty"` // EarliestRestoreDate - READ-ONLY; The earliest restore date of the database (ISO8601 format) EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"` }
RestorableDroppedDatabaseProperties the properties of a restorable dropped database
type RestorableDroppedDatabasesClient ¶
type RestorableDroppedDatabasesClient struct {
BaseClient
}
RestorableDroppedDatabasesClient 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 NewRestorableDroppedDatabasesClient ¶
func NewRestorableDroppedDatabasesClient(subscriptionID string) RestorableDroppedDatabasesClient
NewRestorableDroppedDatabasesClient creates an instance of the RestorableDroppedDatabasesClient client.
func NewRestorableDroppedDatabasesClientWithBaseURI ¶
func NewRestorableDroppedDatabasesClientWithBaseURI(baseURI string, subscriptionID string) RestorableDroppedDatabasesClient
NewRestorableDroppedDatabasesClientWithBaseURI creates an instance of the RestorableDroppedDatabasesClient client.
func (RestorableDroppedDatabasesClient) Get ¶
func (client RestorableDroppedDatabasesClient) Get(ctx context.Context, resourceGroupName string, serverName string, restorableDroppededDatabaseID string) (result RestorableDroppedDatabase, err error)
Get gets a deleted database that can be restored 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. restorableDroppededDatabaseID - the id of the deleted database in the form of databaseName,deletionTimeInFileTimeFormat
func (RestorableDroppedDatabasesClient) GetPreparer ¶
func (client RestorableDroppedDatabasesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, restorableDroppededDatabaseID string) (*http.Request, error)
GetPreparer prepares the Get request.
func (RestorableDroppedDatabasesClient) GetResponder ¶
func (client RestorableDroppedDatabasesClient) GetResponder(resp *http.Response) (result RestorableDroppedDatabase, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (RestorableDroppedDatabasesClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (RestorableDroppedDatabasesClient) ListByServer ¶
func (client RestorableDroppedDatabasesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result RestorableDroppedDatabaseListResult, err error)
ListByServer gets a list of deleted databases that can be restored 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 (RestorableDroppedDatabasesClient) ListByServerPreparer ¶
func (client RestorableDroppedDatabasesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
ListByServerPreparer prepares the ListByServer request.
func (RestorableDroppedDatabasesClient) ListByServerResponder ¶
func (client RestorableDroppedDatabasesClient) ListByServerResponder(resp *http.Response) (result RestorableDroppedDatabaseListResult, err error)
ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.
func (RestorableDroppedDatabasesClient) ListByServerSender ¶
func (client RestorableDroppedDatabasesClient) ListByServerSender(req *http.Request) (*http.Response, error)
ListByServerSender sends the ListByServer request. The method will close the http.Response Body if it receives an error.
type RestorePoint ¶
type RestorePoint struct { // RestorePointProperties - The properties of the restore point. *RestorePointProperties `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"` }
RestorePoint a database restore point.
func (RestorePoint) MarshalJSON ¶
func (rp RestorePoint) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RestorePoint.
func (*RestorePoint) UnmarshalJSON ¶
func (rp *RestorePoint) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for RestorePoint struct.
type RestorePointListResult ¶
type RestorePointListResult struct { autorest.Response `json:"-"` // Value - The list of database restore points. Value *[]RestorePoint `json:"value,omitempty"` }
RestorePointListResult the response to a list database restore points request.
type RestorePointProperties ¶
type RestorePointProperties struct { // RestorePointType - READ-ONLY; The restore point type of the database restore point. Possible values include: 'DISCRETE', 'CONTINUOUS' RestorePointType RestorePointType `json:"restorePointType,omitempty"` // RestorePointCreationDate - READ-ONLY; Restore point creation time (ISO8601 format). Populated when restorePointType = CONTINUOUS. Null otherwise. RestorePointCreationDate *date.Time `json:"restorePointCreationDate,omitempty"` // EarliestRestoreDate - READ-ONLY; Earliest restore time (ISO8601 format). Populated when restorePointType = DISCRETE. Null otherwise. EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"` }
RestorePointProperties represents the properties of a database restore point.
type RestorePointType ¶
type RestorePointType string
RestorePointType enumerates the values for restore point type.
const ( // CONTINUOUS ... CONTINUOUS RestorePointType = "CONTINUOUS" // DISCRETE ... DISCRETE RestorePointType = "DISCRETE" )
func PossibleRestorePointTypeValues ¶
func PossibleRestorePointTypeValues() []RestorePointType
PossibleRestorePointTypeValues returns an array of possible values for the RestorePointType const type.
type RestorePointsClient ¶
type RestorePointsClient struct {
BaseClient
}
RestorePointsClient 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 NewRestorePointsClient ¶
func NewRestorePointsClient(subscriptionID string) RestorePointsClient
NewRestorePointsClient creates an instance of the RestorePointsClient client.
func NewRestorePointsClientWithBaseURI ¶
func NewRestorePointsClientWithBaseURI(baseURI string, subscriptionID string) RestorePointsClient
NewRestorePointsClientWithBaseURI creates an instance of the RestorePointsClient client.
func (RestorePointsClient) ListByDatabase ¶
func (client RestorePointsClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result RestorePointListResult, err error)
ListByDatabase gets a list of database restore points. 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 get available restore points.
func (RestorePointsClient) ListByDatabasePreparer ¶
func (client RestorePointsClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
ListByDatabasePreparer prepares the ListByDatabase request.
func (RestorePointsClient) ListByDatabaseResponder ¶
func (client RestorePointsClient) ListByDatabaseResponder(resp *http.Response) (result RestorePointListResult, err error)
ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.
func (RestorePointsClient) ListByDatabaseSender ¶
ListByDatabaseSender sends the ListByDatabase request. The method will close the http.Response Body if it receives an error.
type SampleName ¶
type SampleName string
SampleName enumerates the values for sample name.
const ( // AdventureWorksLT ... AdventureWorksLT SampleName = "AdventureWorksLT" )
func PossibleSampleNameValues ¶
func PossibleSampleNameValues() []SampleName
PossibleSampleNameValues returns an array of possible values for the SampleName const type.
type SecurityAlertPolicyEmailAccountAdmins ¶
type SecurityAlertPolicyEmailAccountAdmins string
SecurityAlertPolicyEmailAccountAdmins enumerates the values for security alert policy email account admins.
const ( // SecurityAlertPolicyEmailAccountAdminsDisabled ... SecurityAlertPolicyEmailAccountAdminsDisabled SecurityAlertPolicyEmailAccountAdmins = "Disabled" // SecurityAlertPolicyEmailAccountAdminsEnabled ... SecurityAlertPolicyEmailAccountAdminsEnabled SecurityAlertPolicyEmailAccountAdmins = "Enabled" )
func PossibleSecurityAlertPolicyEmailAccountAdminsValues ¶
func PossibleSecurityAlertPolicyEmailAccountAdminsValues() []SecurityAlertPolicyEmailAccountAdmins
PossibleSecurityAlertPolicyEmailAccountAdminsValues returns an array of possible values for the SecurityAlertPolicyEmailAccountAdmins const type.
type SecurityAlertPolicyState ¶
type SecurityAlertPolicyState string
SecurityAlertPolicyState enumerates the values for security alert policy state.
const ( // SecurityAlertPolicyStateDisabled ... SecurityAlertPolicyStateDisabled SecurityAlertPolicyState = "Disabled" // SecurityAlertPolicyStateEnabled ... SecurityAlertPolicyStateEnabled SecurityAlertPolicyState = "Enabled" // SecurityAlertPolicyStateNew ... SecurityAlertPolicyStateNew SecurityAlertPolicyState = "New" )
func PossibleSecurityAlertPolicyStateValues ¶
func PossibleSecurityAlertPolicyStateValues() []SecurityAlertPolicyState
PossibleSecurityAlertPolicyStateValues returns an array of possible values for the SecurityAlertPolicyState const type.
type SecurityAlertPolicyUseServerDefault ¶
type SecurityAlertPolicyUseServerDefault string
SecurityAlertPolicyUseServerDefault enumerates the values for security alert policy use server default.
const ( // SecurityAlertPolicyUseServerDefaultDisabled ... SecurityAlertPolicyUseServerDefaultDisabled SecurityAlertPolicyUseServerDefault = "Disabled" // SecurityAlertPolicyUseServerDefaultEnabled ... SecurityAlertPolicyUseServerDefaultEnabled SecurityAlertPolicyUseServerDefault = "Enabled" )
func PossibleSecurityAlertPolicyUseServerDefaultValues ¶
func PossibleSecurityAlertPolicyUseServerDefaultValues() []SecurityAlertPolicyUseServerDefault
PossibleSecurityAlertPolicyUseServerDefaultValues returns an array of possible values for the SecurityAlertPolicyUseServerDefault const type.
type Server ¶
type Server struct { autorest.Response `json:"-"` // Kind - READ-ONLY; Kind of sql server. This is metadata used for the Azure portal experience. Kind *string `json:"kind,omitempty"` // ServerProperties - Represents the properties of the resource. *ServerProperties `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"` }
Server represents a server.
func (Server) MarshalJSON ¶
MarshalJSON is the custom marshaler for Server.
func (*Server) UnmarshalJSON ¶
UnmarshalJSON is the custom unmarshaler for Server struct.
type ServerAdministratorListResult ¶
type ServerAdministratorListResult struct { autorest.Response `json:"-"` // Value - The list of server Active Directory Administrators for the server. Value *[]ServerAzureADAdministrator `json:"value,omitempty"` }
ServerAdministratorListResult the response to a list Active Directory Administrators request.
type ServerAdministratorProperties ¶
type ServerAdministratorProperties struct { // AdministratorType - The type of administrator. AdministratorType *string `json:"administratorType,omitempty"` // Login - The server administrator login value. Login *string `json:"login,omitempty"` // Sid - The server administrator Sid (Secure ID). Sid *uuid.UUID `json:"sid,omitempty"` // TenantID - The server Active Directory Administrator tenant id. TenantID *uuid.UUID `json:"tenantId,omitempty"` }
ServerAdministratorProperties the properties of an server Administrator.
type ServerAdvisorsClient ¶
type ServerAdvisorsClient struct {
BaseClient
}
ServerAdvisorsClient 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 NewServerAdvisorsClient ¶
func NewServerAdvisorsClient(subscriptionID string) ServerAdvisorsClient
NewServerAdvisorsClient creates an instance of the ServerAdvisorsClient client.
func NewServerAdvisorsClientWithBaseURI ¶
func NewServerAdvisorsClientWithBaseURI(baseURI string, subscriptionID string) ServerAdvisorsClient
NewServerAdvisorsClientWithBaseURI creates an instance of the ServerAdvisorsClient client.
func (ServerAdvisorsClient) CreateOrUpdate ¶
func (client ServerAdvisorsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, advisorName string, parameters Advisor) (result Advisor, err error)
CreateOrUpdate creates or updates a server advisor. 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. advisorName - the name of the Server Advisor. parameters - the requested advisor resource state.
func (ServerAdvisorsClient) CreateOrUpdatePreparer ¶
func (client ServerAdvisorsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, advisorName string, parameters Advisor) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (ServerAdvisorsClient) CreateOrUpdateResponder ¶
func (client ServerAdvisorsClient) CreateOrUpdateResponder(resp *http.Response) (result Advisor, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (ServerAdvisorsClient) CreateOrUpdateSender ¶
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (ServerAdvisorsClient) Get ¶
func (client ServerAdvisorsClient) Get(ctx context.Context, resourceGroupName string, serverName string, advisorName string) (result Advisor, err error)
Get gets a server advisor. 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. advisorName - the name of the Server Advisor.
func (ServerAdvisorsClient) GetPreparer ¶
func (client ServerAdvisorsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, advisorName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ServerAdvisorsClient) GetResponder ¶
func (client ServerAdvisorsClient) GetResponder(resp *http.Response) (result Advisor, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ServerAdvisorsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ServerAdvisorsClient) ListByServer ¶
func (client ServerAdvisorsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result AdvisorListResult, err error)
ListByServer gets a list of server advisors. 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 (ServerAdvisorsClient) ListByServerPreparer ¶
func (client ServerAdvisorsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
ListByServerPreparer prepares the ListByServer request.
func (ServerAdvisorsClient) ListByServerResponder ¶
func (client ServerAdvisorsClient) ListByServerResponder(resp *http.Response) (result AdvisorListResult, err error)
ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.
func (ServerAdvisorsClient) ListByServerSender ¶
ListByServerSender sends the ListByServer request. The method will close the http.Response Body if it receives an error.
func (ServerAdvisorsClient) Update ¶
func (client ServerAdvisorsClient) Update(ctx context.Context, resourceGroupName string, serverName string, advisorName string, parameters Advisor) (result Advisor, err error)
Update updates a server advisor. 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. advisorName - the name of the Server Advisor. parameters - the requested advisor resource state.
func (ServerAdvisorsClient) UpdatePreparer ¶
func (client ServerAdvisorsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, advisorName string, parameters Advisor) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (ServerAdvisorsClient) UpdateResponder ¶
func (client ServerAdvisorsClient) UpdateResponder(resp *http.Response) (result Advisor, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (ServerAdvisorsClient) UpdateSender ¶
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type ServerAzureADAdministrator ¶
type ServerAzureADAdministrator struct { autorest.Response `json:"-"` // ServerAdministratorProperties - The properties of the resource. *ServerAdministratorProperties `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"` }
ServerAzureADAdministrator an server Active Directory Administrator.
func (ServerAzureADAdministrator) MarshalJSON ¶
func (saaa ServerAzureADAdministrator) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ServerAzureADAdministrator.
func (*ServerAzureADAdministrator) UnmarshalJSON ¶
func (saaa *ServerAzureADAdministrator) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ServerAzureADAdministrator struct.
type ServerAzureADAdministratorsClient ¶
type ServerAzureADAdministratorsClient struct {
BaseClient
}
ServerAzureADAdministratorsClient 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 NewServerAzureADAdministratorsClient ¶
func NewServerAzureADAdministratorsClient(subscriptionID string) ServerAzureADAdministratorsClient
NewServerAzureADAdministratorsClient creates an instance of the ServerAzureADAdministratorsClient client.
func NewServerAzureADAdministratorsClientWithBaseURI ¶
func NewServerAzureADAdministratorsClientWithBaseURI(baseURI string, subscriptionID string) ServerAzureADAdministratorsClient
NewServerAzureADAdministratorsClientWithBaseURI creates an instance of the ServerAzureADAdministratorsClient client.
func (ServerAzureADAdministratorsClient) CreateOrUpdate ¶
func (client ServerAzureADAdministratorsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, properties ServerAzureADAdministrator) (result ServerAzureADAdministratorsCreateOrUpdateFuture, err error)
CreateOrUpdate creates a new Server Active Directory Administrator or updates an existing server Active Directory Administrator. 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. properties - the required parameters for creating or updating an Active Directory Administrator.
func (ServerAzureADAdministratorsClient) CreateOrUpdatePreparer ¶
func (client ServerAzureADAdministratorsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, properties ServerAzureADAdministrator) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (ServerAzureADAdministratorsClient) CreateOrUpdateResponder ¶
func (client ServerAzureADAdministratorsClient) CreateOrUpdateResponder(resp *http.Response) (result ServerAzureADAdministrator, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (ServerAzureADAdministratorsClient) CreateOrUpdateSender ¶
func (client ServerAzureADAdministratorsClient) CreateOrUpdateSender(req *http.Request) (future ServerAzureADAdministratorsCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (ServerAzureADAdministratorsClient) Delete ¶
func (client ServerAzureADAdministratorsClient) Delete(ctx context.Context, resourceGroupName string, serverName string) (result ServerAzureADAdministratorsDeleteFuture, err error)
Delete deletes an existing server Active Directory Administrator. 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 (ServerAzureADAdministratorsClient) DeletePreparer ¶
func (client ServerAzureADAdministratorsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (ServerAzureADAdministratorsClient) DeleteResponder ¶
func (client ServerAzureADAdministratorsClient) DeleteResponder(resp *http.Response) (result ServerAzureADAdministrator, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (ServerAzureADAdministratorsClient) DeleteSender ¶
func (client ServerAzureADAdministratorsClient) DeleteSender(req *http.Request) (future ServerAzureADAdministratorsDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (ServerAzureADAdministratorsClient) Get ¶
func (client ServerAzureADAdministratorsClient) Get(ctx context.Context, resourceGroupName string, serverName string) (result ServerAzureADAdministrator, err error)
Get returns an server Administrator. 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 (ServerAzureADAdministratorsClient) GetPreparer ¶
func (client ServerAzureADAdministratorsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ServerAzureADAdministratorsClient) GetResponder ¶
func (client ServerAzureADAdministratorsClient) GetResponder(resp *http.Response) (result ServerAzureADAdministrator, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ServerAzureADAdministratorsClient) GetSender ¶
func (client ServerAzureADAdministratorsClient) 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 (ServerAzureADAdministratorsClient) ListByServer ¶
func (client ServerAzureADAdministratorsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ServerAdministratorListResult, err error)
ListByServer returns a list of server Administrators. 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 (ServerAzureADAdministratorsClient) ListByServerPreparer ¶
func (client ServerAzureADAdministratorsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
ListByServerPreparer prepares the ListByServer request.
func (ServerAzureADAdministratorsClient) ListByServerResponder ¶
func (client ServerAzureADAdministratorsClient) ListByServerResponder(resp *http.Response) (result ServerAdministratorListResult, err error)
ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.
func (ServerAzureADAdministratorsClient) ListByServerSender ¶
func (client ServerAzureADAdministratorsClient) ListByServerSender(req *http.Request) (*http.Response, error)
ListByServerSender sends the ListByServer request. The method will close the http.Response Body if it receives an error.
type ServerAzureADAdministratorsCreateOrUpdateFuture ¶
ServerAzureADAdministratorsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ServerAzureADAdministratorsCreateOrUpdateFuture) Result ¶
func (future *ServerAzureADAdministratorsCreateOrUpdateFuture) Result(client ServerAzureADAdministratorsClient) (saaa ServerAzureADAdministrator, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type ServerAzureADAdministratorsDeleteFuture ¶
ServerAzureADAdministratorsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ServerAzureADAdministratorsDeleteFuture) Result ¶
func (future *ServerAzureADAdministratorsDeleteFuture) Result(client ServerAzureADAdministratorsClient) (saaa ServerAzureADAdministrator, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type ServerCommunicationLink ¶
type ServerCommunicationLink struct { autorest.Response `json:"-"` // ServerCommunicationLinkProperties - The properties of resource. *ServerCommunicationLinkProperties `json:"properties,omitempty"` // Location - READ-ONLY; Communication link location. Location *string `json:"location,omitempty"` // Kind - READ-ONLY; Communication link kind. This property is used for Azure Portal metadata. Kind *string `json:"kind,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"` }
ServerCommunicationLink server communication link.
func (ServerCommunicationLink) MarshalJSON ¶
func (scl ServerCommunicationLink) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ServerCommunicationLink.
func (*ServerCommunicationLink) UnmarshalJSON ¶
func (scl *ServerCommunicationLink) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ServerCommunicationLink struct.
type ServerCommunicationLinkListResult ¶
type ServerCommunicationLinkListResult struct { autorest.Response `json:"-"` // Value - The list of server communication links. Value *[]ServerCommunicationLink `json:"value,omitempty"` }
ServerCommunicationLinkListResult a list of server communication links.
type ServerCommunicationLinkProperties ¶
type ServerCommunicationLinkProperties struct { // State - READ-ONLY; The state. State *string `json:"state,omitempty"` // PartnerServer - The name of the partner server. PartnerServer *string `json:"partnerServer,omitempty"` }
ServerCommunicationLinkProperties the properties of a server communication link.
type ServerCommunicationLinksClient ¶
type ServerCommunicationLinksClient struct {
BaseClient
}
ServerCommunicationLinksClient 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 NewServerCommunicationLinksClient ¶
func NewServerCommunicationLinksClient(subscriptionID string) ServerCommunicationLinksClient
NewServerCommunicationLinksClient creates an instance of the ServerCommunicationLinksClient client.
func NewServerCommunicationLinksClientWithBaseURI ¶
func NewServerCommunicationLinksClientWithBaseURI(baseURI string, subscriptionID string) ServerCommunicationLinksClient
NewServerCommunicationLinksClientWithBaseURI creates an instance of the ServerCommunicationLinksClient client.
func (ServerCommunicationLinksClient) CreateOrUpdate ¶
func (client ServerCommunicationLinksClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, communicationLinkName string, parameters ServerCommunicationLink) (result ServerCommunicationLinksCreateOrUpdateFuture, err error)
CreateOrUpdate creates a server communication link. 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. communicationLinkName - the name of the server communication link. parameters - the required parameters for creating a server communication link.
func (ServerCommunicationLinksClient) CreateOrUpdatePreparer ¶
func (client ServerCommunicationLinksClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, communicationLinkName string, parameters ServerCommunicationLink) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (ServerCommunicationLinksClient) CreateOrUpdateResponder ¶
func (client ServerCommunicationLinksClient) CreateOrUpdateResponder(resp *http.Response) (result ServerCommunicationLink, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (ServerCommunicationLinksClient) CreateOrUpdateSender ¶
func (client ServerCommunicationLinksClient) CreateOrUpdateSender(req *http.Request) (future ServerCommunicationLinksCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (ServerCommunicationLinksClient) Delete ¶
func (client ServerCommunicationLinksClient) Delete(ctx context.Context, resourceGroupName string, serverName string, communicationLinkName string) (result autorest.Response, err error)
Delete deletes a server communication link. 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. communicationLinkName - the name of the server communication link.
func (ServerCommunicationLinksClient) DeletePreparer ¶
func (client ServerCommunicationLinksClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, communicationLinkName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (ServerCommunicationLinksClient) DeleteResponder ¶
func (client ServerCommunicationLinksClient) 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 (ServerCommunicationLinksClient) DeleteSender ¶
func (client ServerCommunicationLinksClient) 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 (ServerCommunicationLinksClient) Get ¶
func (client ServerCommunicationLinksClient) Get(ctx context.Context, resourceGroupName string, serverName string, communicationLinkName string) (result ServerCommunicationLink, err error)
Get returns a server communication link. 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. communicationLinkName - the name of the server communication link.
func (ServerCommunicationLinksClient) GetPreparer ¶
func (client ServerCommunicationLinksClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, communicationLinkName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ServerCommunicationLinksClient) GetResponder ¶
func (client ServerCommunicationLinksClient) GetResponder(resp *http.Response) (result ServerCommunicationLink, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ServerCommunicationLinksClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ServerCommunicationLinksClient) ListByServer ¶
func (client ServerCommunicationLinksClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ServerCommunicationLinkListResult, err error)
ListByServer gets a list of server communication links. 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 (ServerCommunicationLinksClient) ListByServerPreparer ¶
func (client ServerCommunicationLinksClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
ListByServerPreparer prepares the ListByServer request.
func (ServerCommunicationLinksClient) ListByServerResponder ¶
func (client ServerCommunicationLinksClient) ListByServerResponder(resp *http.Response) (result ServerCommunicationLinkListResult, err error)
ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.
func (ServerCommunicationLinksClient) ListByServerSender ¶
func (client ServerCommunicationLinksClient) ListByServerSender(req *http.Request) (*http.Response, error)
ListByServerSender sends the ListByServer request. The method will close the http.Response Body if it receives an error.
type ServerCommunicationLinksCreateOrUpdateFuture ¶
ServerCommunicationLinksCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ServerCommunicationLinksCreateOrUpdateFuture) Result ¶
func (future *ServerCommunicationLinksCreateOrUpdateFuture) Result(client ServerCommunicationLinksClient) (scl ServerCommunicationLink, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type ServerConnectionPoliciesClient ¶
type ServerConnectionPoliciesClient struct {
BaseClient
}
ServerConnectionPoliciesClient 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 NewServerConnectionPoliciesClient ¶
func NewServerConnectionPoliciesClient(subscriptionID string) ServerConnectionPoliciesClient
NewServerConnectionPoliciesClient creates an instance of the ServerConnectionPoliciesClient client.
func NewServerConnectionPoliciesClientWithBaseURI ¶
func NewServerConnectionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ServerConnectionPoliciesClient
NewServerConnectionPoliciesClientWithBaseURI creates an instance of the ServerConnectionPoliciesClient client.
func (ServerConnectionPoliciesClient) CreateOrUpdate ¶
func (client ServerConnectionPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, parameters ServerConnectionPolicy) (result ServerConnectionPolicy, err error)
CreateOrUpdate creates or updates the server's connection 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. parameters - the required parameters for updating a secure connection policy.
func (ServerConnectionPoliciesClient) CreateOrUpdatePreparer ¶
func (client ServerConnectionPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters ServerConnectionPolicy) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (ServerConnectionPoliciesClient) CreateOrUpdateResponder ¶
func (client ServerConnectionPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result ServerConnectionPolicy, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (ServerConnectionPoliciesClient) CreateOrUpdateSender ¶
func (client ServerConnectionPoliciesClient) 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 (ServerConnectionPoliciesClient) Get ¶
func (client ServerConnectionPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string) (result ServerConnectionPolicy, err error)
Get gets the server's secure connection 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.
func (ServerConnectionPoliciesClient) GetPreparer ¶
func (client ServerConnectionPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ServerConnectionPoliciesClient) GetResponder ¶
func (client ServerConnectionPoliciesClient) GetResponder(resp *http.Response) (result ServerConnectionPolicy, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
type ServerConnectionPolicy ¶
type ServerConnectionPolicy struct { autorest.Response `json:"-"` // Kind - READ-ONLY; Metadata used for the Azure portal experience. Kind *string `json:"kind,omitempty"` // Location - READ-ONLY; Resource location. Location *string `json:"location,omitempty"` // ServerConnectionPolicyProperties - The properties of the server secure connection policy. *ServerConnectionPolicyProperties `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"` }
ServerConnectionPolicy a server secure connection policy.
func (ServerConnectionPolicy) MarshalJSON ¶
func (scp ServerConnectionPolicy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ServerConnectionPolicy.
func (*ServerConnectionPolicy) UnmarshalJSON ¶
func (scp *ServerConnectionPolicy) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ServerConnectionPolicy struct.
type ServerConnectionPolicyProperties ¶
type ServerConnectionPolicyProperties struct { // ConnectionType - The server connection type. Possible values include: 'ServerConnectionTypeDefault', 'ServerConnectionTypeProxy', 'ServerConnectionTypeRedirect' ConnectionType ServerConnectionType `json:"connectionType,omitempty"` }
ServerConnectionPolicyProperties the properties of a server secure connection policy.
type ServerConnectionType ¶
type ServerConnectionType string
ServerConnectionType enumerates the values for server connection type.
const ( // ServerConnectionTypeDefault ... ServerConnectionTypeDefault ServerConnectionType = "Default" // ServerConnectionTypeProxy ... ServerConnectionTypeProxy ServerConnectionType = "Proxy" // ServerConnectionTypeRedirect ... ServerConnectionTypeRedirect ServerConnectionType = "Redirect" )
func PossibleServerConnectionTypeValues ¶
func PossibleServerConnectionTypeValues() []ServerConnectionType
PossibleServerConnectionTypeValues returns an array of possible values for the ServerConnectionType const type.
type ServerListResult ¶
type ServerListResult struct { autorest.Response `json:"-"` // Value - The list of servers. Value *[]Server `json:"value,omitempty"` }
ServerListResult represents the response to a get server request.
type ServerProperties ¶
type ServerProperties struct { // FullyQualifiedDomainName - READ-ONLY; The fully qualified domain name of the server. FullyQualifiedDomainName *string `json:"fullyQualifiedDomainName,omitempty"` // Version - The version of the server. Possible values include: 'TwoFullStopZero', 'OneTwoFullStopZero' Version ServerVersion `json:"version,omitempty"` // AdministratorLogin - Administrator username for the server. Can only be specified when the server is being created (and is required for creation). AdministratorLogin *string `json:"administratorLogin,omitempty"` // AdministratorLoginPassword - The administrator login password (required for server creation). AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"` // ExternalAdministratorSid - READ-ONLY; The ID of the Active Azure Directory object with admin permissions on this server. Legacy parameter, always null. To check for Active Directory admin, query .../servers/{serverName}/administrators. ExternalAdministratorSid *uuid.UUID `json:"externalAdministratorSid,omitempty"` // ExternalAdministratorLogin - READ-ONLY; The display name of the Azure Active Directory object with admin permissions on this server. Legacy parameter, always null. To check for Active Directory admin, query .../servers/{serverName}/administrators ExternalAdministratorLogin *string `json:"externalAdministratorLogin,omitempty"` // State - READ-ONLY; The state of the server. Possible values include: 'ServerStateReady', 'ServerStateDisabled' State ServerState `json:"state,omitempty"` }
ServerProperties represents the properties of a server.
type ServerState ¶
type ServerState string
ServerState enumerates the values for server state.
const ( // ServerStateDisabled ... ServerStateDisabled ServerState = "Disabled" // ServerStateReady ... ServerStateReady ServerState = "Ready" )
func PossibleServerStateValues ¶
func PossibleServerStateValues() []ServerState
PossibleServerStateValues returns an array of possible values for the ServerState const type.
type ServerTableAuditingPoliciesClient ¶
type ServerTableAuditingPoliciesClient struct {
BaseClient
}
ServerTableAuditingPoliciesClient 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 NewServerTableAuditingPoliciesClient ¶
func NewServerTableAuditingPoliciesClient(subscriptionID string) ServerTableAuditingPoliciesClient
NewServerTableAuditingPoliciesClient creates an instance of the ServerTableAuditingPoliciesClient client.
func NewServerTableAuditingPoliciesClientWithBaseURI ¶
func NewServerTableAuditingPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ServerTableAuditingPoliciesClient
NewServerTableAuditingPoliciesClientWithBaseURI creates an instance of the ServerTableAuditingPoliciesClient client.
func (ServerTableAuditingPoliciesClient) CreateOrUpdate ¶
func (client ServerTableAuditingPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, parameters ServerTableAuditingPolicy) (result ServerTableAuditingPolicy, err error)
CreateOrUpdate creates or updates a server's table auditing policy. Table auditing is deprecated, use blob auditing instead. 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 server table auditing policy.
func (ServerTableAuditingPoliciesClient) CreateOrUpdatePreparer ¶
func (client ServerTableAuditingPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters ServerTableAuditingPolicy) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (ServerTableAuditingPoliciesClient) CreateOrUpdateResponder ¶
func (client ServerTableAuditingPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result ServerTableAuditingPolicy, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (ServerTableAuditingPoliciesClient) CreateOrUpdateSender ¶
func (client ServerTableAuditingPoliciesClient) 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 (ServerTableAuditingPoliciesClient) Get ¶
func (client ServerTableAuditingPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string) (result ServerTableAuditingPolicy, err error)
Get gets a server's table auditing policy. Table auditing is deprecated, use blob auditing instead. 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 (ServerTableAuditingPoliciesClient) GetPreparer ¶
func (client ServerTableAuditingPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ServerTableAuditingPoliciesClient) GetResponder ¶
func (client ServerTableAuditingPoliciesClient) GetResponder(resp *http.Response) (result ServerTableAuditingPolicy, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ServerTableAuditingPoliciesClient) GetSender ¶
func (client ServerTableAuditingPoliciesClient) 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 (ServerTableAuditingPoliciesClient) ListByServer ¶
func (client ServerTableAuditingPoliciesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ServerTableAuditingPolicyListResult, err error)
ListByServer lists a server's table auditing policies. Table auditing is deprecated, use blob auditing instead. 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 (ServerTableAuditingPoliciesClient) ListByServerPreparer ¶
func (client ServerTableAuditingPoliciesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
ListByServerPreparer prepares the ListByServer request.
func (ServerTableAuditingPoliciesClient) ListByServerResponder ¶
func (client ServerTableAuditingPoliciesClient) ListByServerResponder(resp *http.Response) (result ServerTableAuditingPolicyListResult, err error)
ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.
func (ServerTableAuditingPoliciesClient) ListByServerSender ¶
func (client ServerTableAuditingPoliciesClient) ListByServerSender(req *http.Request) (*http.Response, error)
ListByServerSender sends the ListByServer request. The method will close the http.Response Body if it receives an error.
type ServerTableAuditingPolicy ¶
type ServerTableAuditingPolicy struct { autorest.Response `json:"-"` // Kind - READ-ONLY; Resource kind. Kind *string `json:"kind,omitempty"` // Location - READ-ONLY; Resource location. Location *string `json:"location,omitempty"` // ServerTableAuditingPolicyProperties - Resource properties. *ServerTableAuditingPolicyProperties `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"` }
ServerTableAuditingPolicy a server table auditing policy.
func (ServerTableAuditingPolicy) MarshalJSON ¶
func (stap ServerTableAuditingPolicy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ServerTableAuditingPolicy.
func (*ServerTableAuditingPolicy) UnmarshalJSON ¶
func (stap *ServerTableAuditingPolicy) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ServerTableAuditingPolicy struct.
type ServerTableAuditingPolicyListResult ¶
type ServerTableAuditingPolicyListResult struct { autorest.Response `json:"-"` // Value - The list of server table auditing policies. Value *[]ServerTableAuditingPolicy `json:"value,omitempty"` }
ServerTableAuditingPolicyListResult represents the response to a list server table auditing policies request.
type ServerTableAuditingPolicyProperties ¶
type ServerTableAuditingPolicyProperties struct { // AuditingState - The state of the policy. AuditingState *string `json:"auditingState,omitempty"` // AuditLogsTableName - The audit logs table name. AuditLogsTableName *string `json:"auditLogsTableName,omitempty"` // EventTypesToAudit - Comma-separated list of event types to audit. EventTypesToAudit *string `json:"eventTypesToAudit,omitempty"` // FullAuditLogsTableName - The full audit logs table name. FullAuditLogsTableName *string `json:"fullAuditLogsTableName,omitempty"` // RetentionDays - The number of days to keep in the audit logs. RetentionDays *string `json:"retentionDays,omitempty"` // StorageAccountKey - The key of the auditing storage account. StorageAccountKey *string `json:"storageAccountKey,omitempty"` // StorageAccountName - The table storage account name StorageAccountName *string `json:"storageAccountName,omitempty"` // StorageAccountResourceGroupName - The table storage account resource group name StorageAccountResourceGroupName *string `json:"storageAccountResourceGroupName,omitempty"` // StorageAccountSecondaryKey - The secondary key of the auditing storage account. StorageAccountSecondaryKey *string `json:"storageAccountSecondaryKey,omitempty"` // StorageAccountSubscriptionID - The table storage subscription Id. StorageAccountSubscriptionID *uuid.UUID `json:"storageAccountSubscriptionId,omitempty"` // StorageTableEndpoint - The storage table endpoint. StorageTableEndpoint *string `json:"storageTableEndpoint,omitempty"` }
ServerTableAuditingPolicyProperties properties of a server table auditing policy.
type ServerUpdate ¶
type ServerUpdate struct { // Tags - Resource tags. Tags map[string]*string `json:"tags"` // ServerProperties - Represents the properties of the resource. *ServerProperties `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"` }
ServerUpdate represents an update to a server.
func (ServerUpdate) MarshalJSON ¶
func (su ServerUpdate) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ServerUpdate.
func (*ServerUpdate) UnmarshalJSON ¶
func (su *ServerUpdate) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ServerUpdate struct.
type ServerUsage ¶
type ServerUsage struct { // Name - READ-ONLY; Name of the server usage metric. Name *string `json:"name,omitempty"` // ResourceName - READ-ONLY; The name of the resource. ResourceName *string `json:"resourceName,omitempty"` // DisplayName - READ-ONLY; The metric display name. DisplayName *string `json:"displayName,omitempty"` // CurrentValue - READ-ONLY; The current value of the metric. CurrentValue *float64 `json:"currentValue,omitempty"` // Limit - READ-ONLY; The current limit of the metric. Limit *float64 `json:"limit,omitempty"` // Unit - READ-ONLY; The units of the metric. Unit *string `json:"unit,omitempty"` // NextResetTime - READ-ONLY; The next reset time for the metric (ISO8601 format). NextResetTime *date.Time `json:"nextResetTime,omitempty"` }
ServerUsage represents server metrics.
type ServerUsageListResult ¶
type ServerUsageListResult struct { autorest.Response `json:"-"` // Value - The list of server metrics for the server. Value *[]ServerUsage `json:"value,omitempty"` }
ServerUsageListResult represents the response to a list server metrics request.
type ServerUsagesClient ¶
type ServerUsagesClient struct {
BaseClient
}
ServerUsagesClient 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 NewServerUsagesClient ¶
func NewServerUsagesClient(subscriptionID string) ServerUsagesClient
NewServerUsagesClient creates an instance of the ServerUsagesClient client.
func NewServerUsagesClientWithBaseURI ¶
func NewServerUsagesClientWithBaseURI(baseURI string, subscriptionID string) ServerUsagesClient
NewServerUsagesClientWithBaseURI creates an instance of the ServerUsagesClient client.
func (ServerUsagesClient) ListByServer ¶
func (client ServerUsagesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ServerUsageListResult, err error)
ListByServer returns server usages. 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 (ServerUsagesClient) ListByServerPreparer ¶
func (client ServerUsagesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
ListByServerPreparer prepares the ListByServer request.
func (ServerUsagesClient) ListByServerResponder ¶
func (client ServerUsagesClient) ListByServerResponder(resp *http.Response) (result ServerUsageListResult, err error)
ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.
func (ServerUsagesClient) ListByServerSender ¶
ListByServerSender sends the ListByServer request. The method will close the http.Response Body if it receives an error.
type ServerVersion ¶
type ServerVersion string
ServerVersion enumerates the values for server version.
const ( // OneTwoFullStopZero ... OneTwoFullStopZero ServerVersion = "12.0" // TwoFullStopZero ... TwoFullStopZero ServerVersion = "2.0" )
func PossibleServerVersionValues ¶
func PossibleServerVersionValues() []ServerVersion
PossibleServerVersionValues returns an array of possible values for the ServerVersion const type.
type ServerVersionCapability ¶
type ServerVersionCapability struct { // Name - READ-ONLY; The server version name. Name *string `json:"name,omitempty"` // Status - READ-ONLY; The status of the server version. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled' Status CapabilityStatus `json:"status,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"` }
ServerVersionCapability the server capabilities.
type ServersClient ¶
type ServersClient struct {
BaseClient
}
ServersClient 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 NewServersClient ¶
func NewServersClient(subscriptionID string) ServersClient
NewServersClient creates an instance of the ServersClient client.
func NewServersClientWithBaseURI ¶
func NewServersClientWithBaseURI(baseURI string, subscriptionID string) ServersClient
NewServersClientWithBaseURI creates an instance of the ServersClient client.
func (ServersClient) CheckNameAvailability ¶
func (client ServersClient) CheckNameAvailability(ctx context.Context, parameters CheckNameAvailabilityRequest) (result CheckNameAvailabilityResponse, err error)
CheckNameAvailability determines whether a resource can be created with the specified name. Parameters: parameters - the parameters to request for name availability.
func (ServersClient) CheckNameAvailabilityPreparer ¶
func (client ServersClient) CheckNameAvailabilityPreparer(ctx context.Context, parameters CheckNameAvailabilityRequest) (*http.Request, error)
CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.
func (ServersClient) CheckNameAvailabilityResponder ¶
func (client ServersClient) CheckNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityResponse, err error)
CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always closes the http.Response Body.
func (ServersClient) CheckNameAvailabilitySender ¶
CheckNameAvailabilitySender sends the CheckNameAvailability request. The method will close the http.Response Body if it receives an error.
func (ServersClient) CreateOrUpdate ¶
func (client ServersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, parameters Server) (result Server, err error)
CreateOrUpdate creates or updates a new 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 required parameters for creating or updating a server.
func (ServersClient) CreateOrUpdatePreparer ¶
func (client ServersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters Server) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (ServersClient) CreateOrUpdateResponder ¶
func (client ServersClient) CreateOrUpdateResponder(resp *http.Response) (result Server, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (ServersClient) CreateOrUpdateSender ¶
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (ServersClient) Delete ¶
func (client ServersClient) Delete(ctx context.Context, resourceGroupName string, serverName string) (result autorest.Response, err error)
Delete deletes a SQL 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.
func (ServersClient) DeletePreparer ¶
func (client ServersClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (ServersClient) DeleteResponder ¶
func (client ServersClient) 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 (ServersClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (ServersClient) Get ¶
func (client ServersClient) Get(ctx context.Context, resourceGroupName string, serverName string) (result Server, err error)
Get gets 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.
func (ServersClient) GetPreparer ¶
func (client ServersClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ServersClient) GetResponder ¶
func (client ServersClient) GetResponder(resp *http.Response) (result Server, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ServersClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ServersClient) List ¶
func (client ServersClient) List(ctx context.Context) (result ServerListResult, err error)
List returns a list of servers.
func (ServersClient) ListByResourceGroup ¶
func (client ServersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ServerListResult, err error)
ListByResourceGroup returns a list of servers in a resource 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.
func (ServersClient) ListByResourceGroupPreparer ¶
func (client ServersClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (ServersClient) ListByResourceGroupResponder ¶
func (client ServersClient) ListByResourceGroupResponder(resp *http.Response) (result ServerListResult, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (ServersClient) ListByResourceGroupSender ¶
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (ServersClient) ListPreparer ¶
ListPreparer prepares the List request.
func (ServersClient) ListResponder ¶
func (client ServersClient) ListResponder(resp *http.Response) (result ServerListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (ServersClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (ServersClient) Update ¶
func (client ServersClient) Update(ctx context.Context, resourceGroupName string, serverName string, parameters ServerUpdate) (result Server, err error)
Update updates an existing 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 required parameters for updating a server.
func (ServersClient) UpdatePreparer ¶
func (client ServersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters ServerUpdate) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (ServersClient) UpdateResponder ¶
func (client ServersClient) UpdateResponder(resp *http.Response) (result Server, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (ServersClient) UpdateSender ¶
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type ServiceObjective ¶
type ServiceObjective struct { autorest.Response `json:"-"` // ServiceObjectiveProperties - Represents the properties of the resource. *ServiceObjectiveProperties `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"` }
ServiceObjective represents a database service objective.
func (ServiceObjective) MarshalJSON ¶
func (so ServiceObjective) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ServiceObjective.
func (*ServiceObjective) UnmarshalJSON ¶
func (so *ServiceObjective) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ServiceObjective struct.
type ServiceObjectiveCapability ¶
type ServiceObjectiveCapability struct { // Name - READ-ONLY; The service objective name. Name *string `json:"name,omitempty"` // Status - READ-ONLY; The status of the service objective. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled' Status CapabilityStatus `json:"status,omitempty"` // PerformanceLevel - READ-ONLY; The performance level of the service objective capability. *PerformanceLevel `json:"performanceLevel,omitempty"` // ID - READ-ONLY; The unique ID of the service objective. ID *uuid.UUID `json:"id,omitempty"` // SupportedMaxSizes - READ-ONLY; The list of supported maximum database sizes for this service objective. SupportedMaxSizes *[]MaxSizeCapability `json:"supportedMaxSizes,omitempty"` // IncludedMaxSize - READ-ONLY; The included (free) max size for this service level objective. IncludedMaxSize *MaxSizeCapability `json:"includedMaxSize,omitempty"` }
ServiceObjectiveCapability the service objectives capability.
func (ServiceObjectiveCapability) MarshalJSON ¶
func (soc ServiceObjectiveCapability) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ServiceObjectiveCapability.
func (*ServiceObjectiveCapability) UnmarshalJSON ¶
func (soc *ServiceObjectiveCapability) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ServiceObjectiveCapability struct.
type ServiceObjectiveListResult ¶
type ServiceObjectiveListResult struct { autorest.Response `json:"-"` // Value - The list of database service objectives. Value *[]ServiceObjective `json:"value,omitempty"` }
ServiceObjectiveListResult represents the response to a get database service objectives request.
type ServiceObjectiveName ¶
type ServiceObjectiveName string
ServiceObjectiveName enumerates the values for service objective name.
const ( // ServiceObjectiveNameBasic ... ServiceObjectiveNameBasic ServiceObjectiveName = "Basic" // ServiceObjectiveNameDS100 ... ServiceObjectiveNameDS100 ServiceObjectiveName = "DS100" // ServiceObjectiveNameDS1000 ... ServiceObjectiveNameDS1000 ServiceObjectiveName = "DS1000" // ServiceObjectiveNameDS1200 ... ServiceObjectiveNameDS1200 ServiceObjectiveName = "DS1200" // ServiceObjectiveNameDS1500 ... ServiceObjectiveNameDS1500 ServiceObjectiveName = "DS1500" // ServiceObjectiveNameDS200 ... ServiceObjectiveNameDS200 ServiceObjectiveName = "DS200" // ServiceObjectiveNameDS2000 ... ServiceObjectiveNameDS2000 ServiceObjectiveName = "DS2000" // ServiceObjectiveNameDS300 ... ServiceObjectiveNameDS300 ServiceObjectiveName = "DS300" // ServiceObjectiveNameDS400 ... ServiceObjectiveNameDS400 ServiceObjectiveName = "DS400" // ServiceObjectiveNameDS500 ... ServiceObjectiveNameDS500 ServiceObjectiveName = "DS500" // ServiceObjectiveNameDS600 ... ServiceObjectiveNameDS600 ServiceObjectiveName = "DS600" // ServiceObjectiveNameDW100 ... ServiceObjectiveNameDW100 ServiceObjectiveName = "DW100" // ServiceObjectiveNameDW1000 ... ServiceObjectiveNameDW1000 ServiceObjectiveName = "DW1000" // ServiceObjectiveNameDW10000c ... ServiceObjectiveNameDW10000c ServiceObjectiveName = "DW10000c" // ServiceObjectiveNameDW1000c ... ServiceObjectiveNameDW1000c ServiceObjectiveName = "DW1000c" // ServiceObjectiveNameDW1200 ... ServiceObjectiveNameDW1200 ServiceObjectiveName = "DW1200" // ServiceObjectiveNameDW1500 ... ServiceObjectiveNameDW1500 ServiceObjectiveName = "DW1500" // ServiceObjectiveNameDW15000c ... ServiceObjectiveNameDW15000c ServiceObjectiveName = "DW15000c" // ServiceObjectiveNameDW1500c ... ServiceObjectiveNameDW1500c ServiceObjectiveName = "DW1500c" // ServiceObjectiveNameDW200 ... ServiceObjectiveNameDW200 ServiceObjectiveName = "DW200" // ServiceObjectiveNameDW2000 ... ServiceObjectiveNameDW2000 ServiceObjectiveName = "DW2000" // ServiceObjectiveNameDW2000c ... ServiceObjectiveNameDW2000c ServiceObjectiveName = "DW2000c" // ServiceObjectiveNameDW2500c ... ServiceObjectiveNameDW2500c ServiceObjectiveName = "DW2500c" // ServiceObjectiveNameDW300 ... ServiceObjectiveNameDW300 ServiceObjectiveName = "DW300" // ServiceObjectiveNameDW3000 ... ServiceObjectiveNameDW3000 ServiceObjectiveName = "DW3000" // ServiceObjectiveNameDW30000c ... ServiceObjectiveNameDW30000c ServiceObjectiveName = "DW30000c" // ServiceObjectiveNameDW3000c ... ServiceObjectiveNameDW3000c ServiceObjectiveName = "DW3000c" // ServiceObjectiveNameDW400 ... ServiceObjectiveNameDW400 ServiceObjectiveName = "DW400" // ServiceObjectiveNameDW500 ... ServiceObjectiveNameDW500 ServiceObjectiveName = "DW500" // ServiceObjectiveNameDW5000c ... ServiceObjectiveNameDW5000c ServiceObjectiveName = "DW5000c" // ServiceObjectiveNameDW600 ... ServiceObjectiveNameDW600 ServiceObjectiveName = "DW600" // ServiceObjectiveNameDW6000 ... ServiceObjectiveNameDW6000 ServiceObjectiveName = "DW6000" // ServiceObjectiveNameDW6000c ... ServiceObjectiveNameDW6000c ServiceObjectiveName = "DW6000c" // ServiceObjectiveNameDW7500c ... ServiceObjectiveNameDW7500c ServiceObjectiveName = "DW7500c" // ServiceObjectiveNameElasticPool ... ServiceObjectiveNameElasticPool ServiceObjectiveName = "ElasticPool" // ServiceObjectiveNameFree ... ServiceObjectiveNameFree ServiceObjectiveName = "Free" // ServiceObjectiveNameP1 ... ServiceObjectiveNameP1 ServiceObjectiveName = "P1" // ServiceObjectiveNameP11 ... ServiceObjectiveNameP11 ServiceObjectiveName = "P11" // ServiceObjectiveNameP15 ... ServiceObjectiveNameP15 ServiceObjectiveName = "P15" // ServiceObjectiveNameP2 ... ServiceObjectiveNameP2 ServiceObjectiveName = "P2" // ServiceObjectiveNameP3 ... ServiceObjectiveNameP3 ServiceObjectiveName = "P3" // ServiceObjectiveNameP4 ... ServiceObjectiveNameP4 ServiceObjectiveName = "P4" // ServiceObjectiveNameP6 ... ServiceObjectiveNameP6 ServiceObjectiveName = "P6" // ServiceObjectiveNamePRS1 ... ServiceObjectiveNamePRS1 ServiceObjectiveName = "PRS1" // ServiceObjectiveNamePRS2 ... ServiceObjectiveNamePRS2 ServiceObjectiveName = "PRS2" // ServiceObjectiveNamePRS4 ... ServiceObjectiveNamePRS4 ServiceObjectiveName = "PRS4" // ServiceObjectiveNamePRS6 ... ServiceObjectiveNamePRS6 ServiceObjectiveName = "PRS6" // ServiceObjectiveNameS0 ... ServiceObjectiveNameS0 ServiceObjectiveName = "S0" // ServiceObjectiveNameS1 ... ServiceObjectiveNameS1 ServiceObjectiveName = "S1" // ServiceObjectiveNameS12 ... ServiceObjectiveNameS12 ServiceObjectiveName = "S12" // ServiceObjectiveNameS2 ... ServiceObjectiveNameS2 ServiceObjectiveName = "S2" // ServiceObjectiveNameS3 ... ServiceObjectiveNameS3 ServiceObjectiveName = "S3" // ServiceObjectiveNameS4 ... ServiceObjectiveNameS4 ServiceObjectiveName = "S4" // ServiceObjectiveNameS6 ... ServiceObjectiveNameS6 ServiceObjectiveName = "S6" // ServiceObjectiveNameS7 ... ServiceObjectiveNameS7 ServiceObjectiveName = "S7" // ServiceObjectiveNameS9 ... ServiceObjectiveNameS9 ServiceObjectiveName = "S9" // ServiceObjectiveNameSystem ... ServiceObjectiveNameSystem ServiceObjectiveName = "System" // ServiceObjectiveNameSystem0 ... ServiceObjectiveNameSystem0 ServiceObjectiveName = "System0" // ServiceObjectiveNameSystem1 ... ServiceObjectiveNameSystem1 ServiceObjectiveName = "System1" // ServiceObjectiveNameSystem2 ... ServiceObjectiveNameSystem2 ServiceObjectiveName = "System2" // ServiceObjectiveNameSystem2L ... ServiceObjectiveNameSystem2L ServiceObjectiveName = "System2L" // ServiceObjectiveNameSystem3 ... ServiceObjectiveNameSystem3 ServiceObjectiveName = "System3" // ServiceObjectiveNameSystem3L ... ServiceObjectiveNameSystem3L ServiceObjectiveName = "System3L" // ServiceObjectiveNameSystem4 ... ServiceObjectiveNameSystem4 ServiceObjectiveName = "System4" // ServiceObjectiveNameSystem4L ... ServiceObjectiveNameSystem4L ServiceObjectiveName = "System4L" )
func PossibleServiceObjectiveNameValues ¶
func PossibleServiceObjectiveNameValues() []ServiceObjectiveName
PossibleServiceObjectiveNameValues returns an array of possible values for the ServiceObjectiveName const type.
type ServiceObjectiveProperties ¶
type ServiceObjectiveProperties struct { // ServiceObjectiveName - READ-ONLY; The name for the service objective. ServiceObjectiveName *string `json:"serviceObjectiveName,omitempty"` // IsDefault - READ-ONLY; Gets whether the service level objective is the default service objective. IsDefault *bool `json:"isDefault,omitempty"` // IsSystem - READ-ONLY; Gets whether the service level objective is a system service objective. IsSystem *bool `json:"isSystem,omitempty"` // Description - READ-ONLY; The description for the service level objective. Description *string `json:"description,omitempty"` // Enabled - READ-ONLY; Gets whether the service level objective is enabled. Enabled *bool `json:"enabled,omitempty"` }
ServiceObjectiveProperties represents the properties of a database service objective.
type ServiceObjectivesClient ¶
type ServiceObjectivesClient struct {
BaseClient
}
ServiceObjectivesClient 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 NewServiceObjectivesClient ¶
func NewServiceObjectivesClient(subscriptionID string) ServiceObjectivesClient
NewServiceObjectivesClient creates an instance of the ServiceObjectivesClient client.
func NewServiceObjectivesClientWithBaseURI ¶
func NewServiceObjectivesClientWithBaseURI(baseURI string, subscriptionID string) ServiceObjectivesClient
NewServiceObjectivesClientWithBaseURI creates an instance of the ServiceObjectivesClient client.
func (ServiceObjectivesClient) Get ¶
func (client ServiceObjectivesClient) Get(ctx context.Context, resourceGroupName string, serverName string, serviceObjectiveName string) (result ServiceObjective, err error)
Get gets a database service objective. 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. serviceObjectiveName - the name of the service objective to retrieve.
func (ServiceObjectivesClient) GetPreparer ¶
func (client ServiceObjectivesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, serviceObjectiveName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ServiceObjectivesClient) GetResponder ¶
func (client ServiceObjectivesClient) GetResponder(resp *http.Response) (result ServiceObjective, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ServiceObjectivesClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ServiceObjectivesClient) ListByServer ¶
func (client ServiceObjectivesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ServiceObjectiveListResult, err error)
ListByServer returns database service objectives. 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 (ServiceObjectivesClient) ListByServerPreparer ¶
func (client ServiceObjectivesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
ListByServerPreparer prepares the ListByServer request.
func (ServiceObjectivesClient) ListByServerResponder ¶
func (client ServiceObjectivesClient) ListByServerResponder(resp *http.Response) (result ServiceObjectiveListResult, err error)
ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.
func (ServiceObjectivesClient) ListByServerSender ¶
ListByServerSender sends the ListByServer request. The method will close the http.Response Body if it receives an error.
type ServiceTierAdvisor ¶
type ServiceTierAdvisor struct { autorest.Response `json:"-"` // ServiceTierAdvisorProperties - READ-ONLY; The properties representing the resource. *ServiceTierAdvisorProperties `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"` }
ServiceTierAdvisor represents a Service Tier Advisor.
func (ServiceTierAdvisor) MarshalJSON ¶
func (sta ServiceTierAdvisor) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ServiceTierAdvisor.
func (*ServiceTierAdvisor) UnmarshalJSON ¶
func (sta *ServiceTierAdvisor) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ServiceTierAdvisor struct.
type ServiceTierAdvisorListResult ¶
type ServiceTierAdvisorListResult struct { autorest.Response `json:"-"` // Value - The list of service tier advisors for specified database. Value *[]ServiceTierAdvisor `json:"value,omitempty"` }
ServiceTierAdvisorListResult represents the response to a list service tier advisor request.
type ServiceTierAdvisorProperties ¶
type ServiceTierAdvisorProperties struct { // ObservationPeriodStart - READ-ONLY; The observation period start (ISO8601 format). ObservationPeriodStart *date.Time `json:"observationPeriodStart,omitempty"` // ObservationPeriodEnd - READ-ONLY; The observation period start (ISO8601 format). ObservationPeriodEnd *date.Time `json:"observationPeriodEnd,omitempty"` // ActiveTimeRatio - READ-ONLY; The activeTimeRatio for service tier advisor. ActiveTimeRatio *float64 `json:"activeTimeRatio,omitempty"` // MinDtu - READ-ONLY; Gets or sets minDtu for service tier advisor. MinDtu *float64 `json:"minDtu,omitempty"` // AvgDtu - READ-ONLY; Gets or sets avgDtu for service tier advisor. AvgDtu *float64 `json:"avgDtu,omitempty"` // MaxDtu - READ-ONLY; Gets or sets maxDtu for service tier advisor. MaxDtu *float64 `json:"maxDtu,omitempty"` // MaxSizeInGB - READ-ONLY; Gets or sets maxSizeInGB for service tier advisor. MaxSizeInGB *float64 `json:"maxSizeInGB,omitempty"` // ServiceLevelObjectiveUsageMetrics - READ-ONLY; Gets or sets serviceLevelObjectiveUsageMetrics for the service tier advisor. ServiceLevelObjectiveUsageMetrics *[]SloUsageMetric `json:"serviceLevelObjectiveUsageMetrics,omitempty"` // CurrentServiceLevelObjective - READ-ONLY; Gets or sets currentServiceLevelObjective for service tier advisor. CurrentServiceLevelObjective *string `json:"currentServiceLevelObjective,omitempty"` // CurrentServiceLevelObjectiveID - READ-ONLY; Gets or sets currentServiceLevelObjectiveId for service tier advisor. CurrentServiceLevelObjectiveID *uuid.UUID `json:"currentServiceLevelObjectiveId,omitempty"` // UsageBasedRecommendationServiceLevelObjective - READ-ONLY; Gets or sets usageBasedRecommendationServiceLevelObjective for service tier advisor. UsageBasedRecommendationServiceLevelObjective *string `json:"usageBasedRecommendationServiceLevelObjective,omitempty"` // UsageBasedRecommendationServiceLevelObjectiveID - READ-ONLY; Gets or sets usageBasedRecommendationServiceLevelObjectiveId for service tier advisor. UsageBasedRecommendationServiceLevelObjectiveID *uuid.UUID `json:"usageBasedRecommendationServiceLevelObjectiveId,omitempty"` // DatabaseSizeBasedRecommendationServiceLevelObjective - READ-ONLY; Gets or sets databaseSizeBasedRecommendationServiceLevelObjective for service tier advisor. DatabaseSizeBasedRecommendationServiceLevelObjective *string `json:"databaseSizeBasedRecommendationServiceLevelObjective,omitempty"` // DatabaseSizeBasedRecommendationServiceLevelObjectiveID - READ-ONLY; Gets or sets databaseSizeBasedRecommendationServiceLevelObjectiveId for service tier advisor. DatabaseSizeBasedRecommendationServiceLevelObjectiveID *uuid.UUID `json:"databaseSizeBasedRecommendationServiceLevelObjectiveId,omitempty"` // DisasterPlanBasedRecommendationServiceLevelObjective - READ-ONLY; Gets or sets disasterPlanBasedRecommendationServiceLevelObjective for service tier advisor. DisasterPlanBasedRecommendationServiceLevelObjective *string `json:"disasterPlanBasedRecommendationServiceLevelObjective,omitempty"` // DisasterPlanBasedRecommendationServiceLevelObjectiveID - READ-ONLY; Gets or sets disasterPlanBasedRecommendationServiceLevelObjectiveId for service tier advisor. DisasterPlanBasedRecommendationServiceLevelObjectiveID *uuid.UUID `json:"disasterPlanBasedRecommendationServiceLevelObjectiveId,omitempty"` // OverallRecommendationServiceLevelObjective - READ-ONLY; Gets or sets overallRecommendationServiceLevelObjective for service tier advisor. OverallRecommendationServiceLevelObjective *string `json:"overallRecommendationServiceLevelObjective,omitempty"` // OverallRecommendationServiceLevelObjectiveID - READ-ONLY; Gets or sets overallRecommendationServiceLevelObjectiveId for service tier advisor. OverallRecommendationServiceLevelObjectiveID *uuid.UUID `json:"overallRecommendationServiceLevelObjectiveId,omitempty"` // Confidence - READ-ONLY; Gets or sets confidence for service tier advisor. Confidence *float64 `json:"confidence,omitempty"` }
ServiceTierAdvisorProperties represents the properties of a Service Tier Advisor.
type ServiceTierAdvisorsClient ¶
type ServiceTierAdvisorsClient struct {
BaseClient
}
ServiceTierAdvisorsClient 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 NewServiceTierAdvisorsClient ¶
func NewServiceTierAdvisorsClient(subscriptionID string) ServiceTierAdvisorsClient
NewServiceTierAdvisorsClient creates an instance of the ServiceTierAdvisorsClient client.
func NewServiceTierAdvisorsClientWithBaseURI ¶
func NewServiceTierAdvisorsClientWithBaseURI(baseURI string, subscriptionID string) ServiceTierAdvisorsClient
NewServiceTierAdvisorsClientWithBaseURI creates an instance of the ServiceTierAdvisorsClient client.
func (ServiceTierAdvisorsClient) Get ¶
func (client ServiceTierAdvisorsClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string, serviceTierAdvisorName string) (result ServiceTierAdvisor, err error)
Get gets a service tier advisor. 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 database. serviceTierAdvisorName - the name of service tier advisor.
func (ServiceTierAdvisorsClient) GetPreparer ¶
func (client ServiceTierAdvisorsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, serviceTierAdvisorName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ServiceTierAdvisorsClient) GetResponder ¶
func (client ServiceTierAdvisorsClient) GetResponder(resp *http.Response) (result ServiceTierAdvisor, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ServiceTierAdvisorsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ServiceTierAdvisorsClient) ListByDatabase ¶
func (client ServiceTierAdvisorsClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result ServiceTierAdvisorListResult, err error)
ListByDatabase returns service tier advisors for specified 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 database.
func (ServiceTierAdvisorsClient) ListByDatabasePreparer ¶
func (client ServiceTierAdvisorsClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
ListByDatabasePreparer prepares the ListByDatabase request.
func (ServiceTierAdvisorsClient) ListByDatabaseResponder ¶
func (client ServiceTierAdvisorsClient) ListByDatabaseResponder(resp *http.Response) (result ServiceTierAdvisorListResult, err error)
ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.
func (ServiceTierAdvisorsClient) ListByDatabaseSender ¶
func (client ServiceTierAdvisorsClient) 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 SloUsageMetric ¶
type SloUsageMetric struct { // ServiceLevelObjective - READ-ONLY; The serviceLevelObjective for SLO usage metric. Possible values include: 'ServiceObjectiveNameSystem', 'ServiceObjectiveNameSystem0', 'ServiceObjectiveNameSystem1', 'ServiceObjectiveNameSystem2', 'ServiceObjectiveNameSystem3', 'ServiceObjectiveNameSystem4', 'ServiceObjectiveNameSystem2L', 'ServiceObjectiveNameSystem3L', 'ServiceObjectiveNameSystem4L', 'ServiceObjectiveNameFree', 'ServiceObjectiveNameBasic', 'ServiceObjectiveNameS0', 'ServiceObjectiveNameS1', 'ServiceObjectiveNameS2', 'ServiceObjectiveNameS3', 'ServiceObjectiveNameS4', 'ServiceObjectiveNameS6', 'ServiceObjectiveNameS7', 'ServiceObjectiveNameS9', 'ServiceObjectiveNameS12', 'ServiceObjectiveNameP1', 'ServiceObjectiveNameP2', 'ServiceObjectiveNameP3', 'ServiceObjectiveNameP4', 'ServiceObjectiveNameP6', 'ServiceObjectiveNameP11', 'ServiceObjectiveNameP15', 'ServiceObjectiveNamePRS1', 'ServiceObjectiveNamePRS2', 'ServiceObjectiveNamePRS4', 'ServiceObjectiveNamePRS6', 'ServiceObjectiveNameDW100', 'ServiceObjectiveNameDW200', 'ServiceObjectiveNameDW300', 'ServiceObjectiveNameDW400', 'ServiceObjectiveNameDW500', 'ServiceObjectiveNameDW600', 'ServiceObjectiveNameDW1000', 'ServiceObjectiveNameDW1200', 'ServiceObjectiveNameDW1000c', 'ServiceObjectiveNameDW1500', 'ServiceObjectiveNameDW1500c', 'ServiceObjectiveNameDW2000', 'ServiceObjectiveNameDW2000c', 'ServiceObjectiveNameDW3000', 'ServiceObjectiveNameDW2500c', 'ServiceObjectiveNameDW3000c', 'ServiceObjectiveNameDW6000', 'ServiceObjectiveNameDW5000c', 'ServiceObjectiveNameDW6000c', 'ServiceObjectiveNameDW7500c', 'ServiceObjectiveNameDW10000c', 'ServiceObjectiveNameDW15000c', 'ServiceObjectiveNameDW30000c', 'ServiceObjectiveNameDS100', 'ServiceObjectiveNameDS200', 'ServiceObjectiveNameDS300', 'ServiceObjectiveNameDS400', 'ServiceObjectiveNameDS500', 'ServiceObjectiveNameDS600', 'ServiceObjectiveNameDS1000', 'ServiceObjectiveNameDS1200', 'ServiceObjectiveNameDS1500', 'ServiceObjectiveNameDS2000', 'ServiceObjectiveNameElasticPool' ServiceLevelObjective ServiceObjectiveName `json:"serviceLevelObjective,omitempty"` // ServiceLevelObjectiveID - READ-ONLY; The serviceLevelObjectiveId for SLO usage metric. ServiceLevelObjectiveID *uuid.UUID `json:"serviceLevelObjectiveId,omitempty"` // InRangeTimeRatio - READ-ONLY; Gets or sets inRangeTimeRatio for SLO usage metric. InRangeTimeRatio *float64 `json:"inRangeTimeRatio,omitempty"` }
SloUsageMetric a Slo Usage Metric.
type StorageKeyType ¶
type StorageKeyType string
StorageKeyType enumerates the values for storage key type.
const ( StorageKeyType = "SharedAccessKey" // StorageAccessKey ... StorageAccessKey StorageKeyType = "StorageAccessKey" )SharedAccessKey
func PossibleStorageKeyTypeValues ¶
func PossibleStorageKeyTypeValues() []StorageKeyType
PossibleStorageKeyTypeValues returns an array of possible values for the StorageKeyType const type.
type TableAuditingPolicyProperties ¶
type TableAuditingPolicyProperties struct { // AuditingState - The state of the policy. AuditingState *string `json:"auditingState,omitempty"` // AuditLogsTableName - The audit logs table name. AuditLogsTableName *string `json:"auditLogsTableName,omitempty"` // EventTypesToAudit - Comma-separated list of event types to audit. EventTypesToAudit *string `json:"eventTypesToAudit,omitempty"` // FullAuditLogsTableName - The full audit logs table name. FullAuditLogsTableName *string `json:"fullAuditLogsTableName,omitempty"` // RetentionDays - The number of days to keep in the audit logs. RetentionDays *string `json:"retentionDays,omitempty"` // StorageAccountKey - The key of the auditing storage account. StorageAccountKey *string `json:"storageAccountKey,omitempty"` // StorageAccountName - The table storage account name StorageAccountName *string `json:"storageAccountName,omitempty"` // StorageAccountResourceGroupName - The table storage account resource group name StorageAccountResourceGroupName *string `json:"storageAccountResourceGroupName,omitempty"` // StorageAccountSecondaryKey - The secondary key of the auditing storage account. StorageAccountSecondaryKey *string `json:"storageAccountSecondaryKey,omitempty"` // StorageAccountSubscriptionID - The table storage subscription Id. StorageAccountSubscriptionID *uuid.UUID `json:"storageAccountSubscriptionId,omitempty"` // StorageTableEndpoint - The storage table endpoint. StorageTableEndpoint *string `json:"storageTableEndpoint,omitempty"` }
TableAuditingPolicyProperties properties of a table auditing policy.
type TopQueries ¶
type TopQueries struct { // AggregationFunction - READ-ONLY; The function that is used to aggregate each query's metrics. Possible values include: 'Min', 'Max', 'Avg', 'Sum' AggregationFunction QueryAggregationFunction `json:"aggregationFunction,omitempty"` // ExecutionType - READ-ONLY; The execution type that is used to filter the query instances that are returned. Possible values include: 'Any', 'Regular', 'Irregular', 'Aborted', 'Exception' ExecutionType QueryExecutionType `json:"executionType,omitempty"` // IntervalType - READ-ONLY; The duration of the interval (ISO8601 duration format). IntervalType *string `json:"intervalType,omitempty"` // NumberOfTopQueries - READ-ONLY; The number of requested queries. NumberOfTopQueries *float64 `json:"numberOfTopQueries,omitempty"` // ObservationStartTime - READ-ONLY; The start time for queries that are returned (ISO8601 format) ObservationStartTime *date.Time `json:"observationStartTime,omitempty"` // ObservationEndTime - READ-ONLY; The end time for queries that are returned (ISO8601 format) ObservationEndTime *date.Time `json:"observationEndTime,omitempty"` // ObservedMetric - READ-ONLY; The type of metric to use for ordering the top metrics. Possible values include: 'CPU', 'Io', 'Logio', 'Duration', 'ExecutionCount' ObservedMetric QueryObservedMetricType `json:"observedMetric,omitempty"` // Queries - READ-ONLY; The list of queries. Queries *[]QueryStatistic `json:"queries,omitempty"` }
TopQueries a database query.
type TopQueriesListResult ¶
type TopQueriesListResult struct { autorest.Response `json:"-"` // Value - The list of top queries. Value *[]TopQueries `json:"value,omitempty"` }
TopQueriesListResult represents the response to a get top queries request.
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 TransparentDataEncryption ¶
type TransparentDataEncryption struct { autorest.Response `json:"-"` // Location - READ-ONLY; Resource location. Location *string `json:"location,omitempty"` // TransparentDataEncryptionProperties - Represents the properties of the resource. *TransparentDataEncryptionProperties `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"` }
TransparentDataEncryption represents a database transparent data encryption configuration.
func (TransparentDataEncryption) MarshalJSON ¶
func (tde TransparentDataEncryption) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TransparentDataEncryption.
func (*TransparentDataEncryption) UnmarshalJSON ¶
func (tde *TransparentDataEncryption) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for TransparentDataEncryption struct.
type TransparentDataEncryptionActivitiesClient ¶
type TransparentDataEncryptionActivitiesClient struct {
BaseClient
}
TransparentDataEncryptionActivitiesClient 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 NewTransparentDataEncryptionActivitiesClient ¶
func NewTransparentDataEncryptionActivitiesClient(subscriptionID string) TransparentDataEncryptionActivitiesClient
NewTransparentDataEncryptionActivitiesClient creates an instance of the TransparentDataEncryptionActivitiesClient client.
func NewTransparentDataEncryptionActivitiesClientWithBaseURI ¶
func NewTransparentDataEncryptionActivitiesClientWithBaseURI(baseURI string, subscriptionID string) TransparentDataEncryptionActivitiesClient
NewTransparentDataEncryptionActivitiesClientWithBaseURI creates an instance of the TransparentDataEncryptionActivitiesClient client.
func (TransparentDataEncryptionActivitiesClient) ListByConfiguration ¶
func (client TransparentDataEncryptionActivitiesClient) ListByConfiguration(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result TransparentDataEncryptionActivityListResult, err error)
ListByConfiguration returns a database's transparent data encryption operation result. 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 for which the transparent data encryption applies.
func (TransparentDataEncryptionActivitiesClient) ListByConfigurationPreparer ¶
func (client TransparentDataEncryptionActivitiesClient) ListByConfigurationPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
ListByConfigurationPreparer prepares the ListByConfiguration request.
func (TransparentDataEncryptionActivitiesClient) ListByConfigurationResponder ¶
func (client TransparentDataEncryptionActivitiesClient) ListByConfigurationResponder(resp *http.Response) (result TransparentDataEncryptionActivityListResult, err error)
ListByConfigurationResponder handles the response to the ListByConfiguration request. The method always closes the http.Response Body.
func (TransparentDataEncryptionActivitiesClient) ListByConfigurationSender ¶
func (client TransparentDataEncryptionActivitiesClient) ListByConfigurationSender(req *http.Request) (*http.Response, error)
ListByConfigurationSender sends the ListByConfiguration request. The method will close the http.Response Body if it receives an error.
type TransparentDataEncryptionActivity ¶
type TransparentDataEncryptionActivity struct { // Location - READ-ONLY; Resource location. Location *string `json:"location,omitempty"` // TransparentDataEncryptionActivityProperties - Represents the properties of the resource. *TransparentDataEncryptionActivityProperties `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"` }
TransparentDataEncryptionActivity represents a database transparent data encryption Scan.
func (TransparentDataEncryptionActivity) MarshalJSON ¶
func (tdea TransparentDataEncryptionActivity) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TransparentDataEncryptionActivity.
func (*TransparentDataEncryptionActivity) UnmarshalJSON ¶
func (tdea *TransparentDataEncryptionActivity) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for TransparentDataEncryptionActivity struct.
type TransparentDataEncryptionActivityListResult ¶
type TransparentDataEncryptionActivityListResult struct { autorest.Response `json:"-"` // Value - The list of database transparent data encryption activities. Value *[]TransparentDataEncryptionActivity `json:"value,omitempty"` }
TransparentDataEncryptionActivityListResult represents the response to a list database transparent data encryption activity request.
type TransparentDataEncryptionActivityProperties ¶
type TransparentDataEncryptionActivityProperties struct { // Status - READ-ONLY; The status of the database. Possible values include: 'Encrypting', 'Decrypting' Status TransparentDataEncryptionActivityStatus `json:"status,omitempty"` // PercentComplete - READ-ONLY; The percent complete of the transparent data encryption scan for a database. PercentComplete *float64 `json:"percentComplete,omitempty"` }
TransparentDataEncryptionActivityProperties represents the properties of a database transparent data encryption Scan.
type TransparentDataEncryptionActivityStatus ¶
type TransparentDataEncryptionActivityStatus string
TransparentDataEncryptionActivityStatus enumerates the values for transparent data encryption activity status.
const ( // Decrypting ... Decrypting TransparentDataEncryptionActivityStatus = "Decrypting" // Encrypting ... Encrypting TransparentDataEncryptionActivityStatus = "Encrypting" )
func PossibleTransparentDataEncryptionActivityStatusValues ¶
func PossibleTransparentDataEncryptionActivityStatusValues() []TransparentDataEncryptionActivityStatus
PossibleTransparentDataEncryptionActivityStatusValues returns an array of possible values for the TransparentDataEncryptionActivityStatus const type.
type TransparentDataEncryptionConfigurationsClient ¶
type TransparentDataEncryptionConfigurationsClient struct {
BaseClient
}
TransparentDataEncryptionConfigurationsClient 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 NewTransparentDataEncryptionConfigurationsClient ¶
func NewTransparentDataEncryptionConfigurationsClient(subscriptionID string) TransparentDataEncryptionConfigurationsClient
NewTransparentDataEncryptionConfigurationsClient creates an instance of the TransparentDataEncryptionConfigurationsClient client.
func NewTransparentDataEncryptionConfigurationsClientWithBaseURI ¶
func NewTransparentDataEncryptionConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) TransparentDataEncryptionConfigurationsClient
NewTransparentDataEncryptionConfigurationsClientWithBaseURI creates an instance of the TransparentDataEncryptionConfigurationsClient client.
func (TransparentDataEncryptionConfigurationsClient) ListByDatabase ¶
func (client TransparentDataEncryptionConfigurationsClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result TransparentDataEncryptionListResult, err error)
ListByDatabase gets a list of a database's transparent data encryption configurations. There is only ever one element, named 'current', so GetTransparentDataEncryptionConfiguration should be used instead. 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 for which the transparent data encryption applies.
func (TransparentDataEncryptionConfigurationsClient) ListByDatabasePreparer ¶
func (client TransparentDataEncryptionConfigurationsClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
ListByDatabasePreparer prepares the ListByDatabase request.
func (TransparentDataEncryptionConfigurationsClient) ListByDatabaseResponder ¶
func (client TransparentDataEncryptionConfigurationsClient) ListByDatabaseResponder(resp *http.Response) (result TransparentDataEncryptionListResult, err error)
ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.
func (TransparentDataEncryptionConfigurationsClient) ListByDatabaseSender ¶
func (client TransparentDataEncryptionConfigurationsClient) 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 TransparentDataEncryptionListResult ¶
type TransparentDataEncryptionListResult struct { autorest.Response `json:"-"` // Value - The list of transparent data encryption configurations. Value *[]TransparentDataEncryption `json:"value,omitempty"` }
TransparentDataEncryptionListResult represents the response to a list transparent data encryption configurations request.
type TransparentDataEncryptionProperties ¶
type TransparentDataEncryptionProperties struct { // Status - The status of the database transparent data encryption. Possible values include: 'TransparentDataEncryptionStatusEnabled', 'TransparentDataEncryptionStatusDisabled' Status TransparentDataEncryptionStatus `json:"status,omitempty"` }
TransparentDataEncryptionProperties represents the properties of a database transparent data encryption.
type TransparentDataEncryptionStatus ¶
type TransparentDataEncryptionStatus string
TransparentDataEncryptionStatus enumerates the values for transparent data encryption status.
const ( // TransparentDataEncryptionStatusDisabled ... TransparentDataEncryptionStatusDisabled TransparentDataEncryptionStatus = "Disabled" // TransparentDataEncryptionStatusEnabled ... TransparentDataEncryptionStatusEnabled TransparentDataEncryptionStatus = "Enabled" )
func PossibleTransparentDataEncryptionStatusValues ¶
func PossibleTransparentDataEncryptionStatusValues() []TransparentDataEncryptionStatus
PossibleTransparentDataEncryptionStatusValues returns an array of possible values for the TransparentDataEncryptionStatus const type.
type TransparentDataEncryptionsClient ¶
type TransparentDataEncryptionsClient struct {
BaseClient
}
TransparentDataEncryptionsClient 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 NewTransparentDataEncryptionsClient ¶
func NewTransparentDataEncryptionsClient(subscriptionID string) TransparentDataEncryptionsClient
NewTransparentDataEncryptionsClient creates an instance of the TransparentDataEncryptionsClient client.
func NewTransparentDataEncryptionsClientWithBaseURI ¶
func NewTransparentDataEncryptionsClientWithBaseURI(baseURI string, subscriptionID string) TransparentDataEncryptionsClient
NewTransparentDataEncryptionsClientWithBaseURI creates an instance of the TransparentDataEncryptionsClient client.
func (TransparentDataEncryptionsClient) CreateOrUpdate ¶
func (client TransparentDataEncryptionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters TransparentDataEncryption) (result TransparentDataEncryption, err error)
CreateOrUpdate creates or updates a database's transparent data encryption configuration. 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 for which setting the transparent data encryption applies. parameters - the required parameters for creating or updating transparent data encryption.
func (TransparentDataEncryptionsClient) CreateOrUpdatePreparer ¶
func (client TransparentDataEncryptionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters TransparentDataEncryption) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (TransparentDataEncryptionsClient) CreateOrUpdateResponder ¶
func (client TransparentDataEncryptionsClient) CreateOrUpdateResponder(resp *http.Response) (result TransparentDataEncryption, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (TransparentDataEncryptionsClient) CreateOrUpdateSender ¶
func (client TransparentDataEncryptionsClient) 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 (TransparentDataEncryptionsClient) Get ¶
func (client TransparentDataEncryptionsClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result TransparentDataEncryption, err error)
Get gets a database's transparent data encryption configuration. 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 for which the transparent data encryption applies.
func (TransparentDataEncryptionsClient) GetPreparer ¶
func (client TransparentDataEncryptionsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (TransparentDataEncryptionsClient) GetResponder ¶
func (client TransparentDataEncryptionsClient) GetResponder(resp *http.Response) (result TransparentDataEncryption, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
type UnitDefinitionType ¶
type UnitDefinitionType string
UnitDefinitionType enumerates the values for unit definition type.
const ( // Bytes ... Bytes UnitDefinitionType = "Bytes" // BytesPerSecond ... BytesPerSecond UnitDefinitionType = "BytesPerSecond" // Count ... Count UnitDefinitionType = "Count" // CountPerSecond ... CountPerSecond UnitDefinitionType = "CountPerSecond" // Percent ... Percent UnitDefinitionType = "Percent" // Seconds ... Seconds UnitDefinitionType = "Seconds" )
func PossibleUnitDefinitionTypeValues ¶
func PossibleUnitDefinitionTypeValues() []UnitDefinitionType
PossibleUnitDefinitionTypeValues returns an array of possible values for the UnitDefinitionType const type.
type UnitType ¶
type UnitType string
UnitType enumerates the values for unit type.
const ( // UnitTypeBytes ... UnitTypeBytes UnitType = "bytes" // UnitTypeBytesPerSecond ... UnitTypeBytesPerSecond UnitType = "bytesPerSecond" // UnitTypeCount ... UnitTypeCount UnitType = "count" // UnitTypeCountPerSecond ... UnitTypeCountPerSecond UnitType = "countPerSecond" // UnitTypePercent ... UnitTypePercent UnitType = "percent" // UnitTypeSeconds ... UnitTypeSeconds UnitType = "seconds" )
func PossibleUnitTypeValues ¶
func PossibleUnitTypeValues() []UnitType
PossibleUnitTypeValues returns an array of possible values for the UnitType const type.
Source Files ¶
- backuplongtermretentionpolicies.go
- backuplongtermretentionvaults.go
- capabilities.go
- client.go
- databaseadvisors.go
- databaseconnectionpolicies.go
- databases.go
- databasetableauditingpolicies.go
- databasethreatdetectionpolicies.go
- databaseusages.go
- datamaskingpolicies.go
- datamaskingrules.go
- disasterrecoveryconfigurations.go
- elasticpoolactivities.go
- elasticpooldatabaseactivities.go
- elasticpools.go
- extensions.go
- firewallrules.go
- geobackuppolicies.go
- models.go
- operations.go
- queries.go
- querystatistics.go
- querytexts.go
- recommendedelasticpools.go
- recoverabledatabases.go
- replicationlinks.go
- restorabledroppeddatabases.go
- restorepoints.go
- serveradvisors.go
- serverazureadadministrators.go
- servercommunicationlinks.go
- serverconnectionpolicies.go
- servers.go
- servertableauditingpolicies.go
- serverusages.go
- serviceobjectives.go
- servicetieradvisors.go
- transparentdataencryptionactivities.go
- transparentdataencryptionconfigurations.go
- transparentdataencryptions.go
- version.go