sql

package
v10.1.0-beta+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package sql implements the Azure ARM Sql service API version .

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

View Source
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 AuthenticationType

type AuthenticationType string

AuthenticationType enumerates the values for authentication type.

const (
	// ADPassword specifies the ad password state for authentication type.
	ADPassword AuthenticationType = "ADPassword"
	// SQL specifies the sql state for authentication type.
	SQL AuthenticationType = "SQL"
)

type BlobAuditingPolicyState

type BlobAuditingPolicyState string

BlobAuditingPolicyState enumerates the values for blob auditing policy state.

const (
	// Disabled specifies the disabled state for blob auditing policy state.
	Disabled BlobAuditingPolicyState = "Disabled"
	// Enabled specifies the enabled state for blob auditing policy state.
	Enabled BlobAuditingPolicyState = "Enabled"
)

type CapabilitiesClient

type CapabilitiesClient struct {
	ManagementClient
}

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(locationID string) (result LocationCapabilities, err error)

ListByLocation gets the capabilities available for the specified location.

locationID is the location id whose capabilities are retrieved.

func (CapabilitiesClient) ListByLocationPreparer

func (client CapabilitiesClient) ListByLocationPreparer(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

func (client CapabilitiesClient) ListByLocationSender(req *http.Request) (*http.Response, error)

ListByLocationSender sends the ListByLocation request. The method will close the http.Response Body if it receives an error.

type CapabilityStatus

type CapabilityStatus string

CapabilityStatus enumerates the values for capability status.

const (
	// CapabilityStatusAvailable specifies the capability status available
	// state for capability status.
	CapabilityStatusAvailable CapabilityStatus = "Available"
	// CapabilityStatusDefault specifies the capability status default state
	// for capability status.
	CapabilityStatusDefault CapabilityStatus = "Default"
	// CapabilityStatusDisabled specifies the capability status disabled state
	// for capability status.
	CapabilityStatusDisabled CapabilityStatus = "Disabled"
	// CapabilityStatusVisible specifies the capability status visible state
	// for capability status.
	CapabilityStatusVisible CapabilityStatus = "Visible"
)

type CreateMode

type CreateMode string

CreateMode enumerates the values for create mode.

const (
	// Copy specifies the copy state for create mode.
	Copy CreateMode = "Copy"
	// Default specifies the default state for create mode.
	Default CreateMode = "Default"
	// NonReadableSecondary specifies the non readable secondary state for
	// create mode.
	NonReadableSecondary CreateMode = "NonReadableSecondary"
	// OnlineSecondary specifies the online secondary state for create mode.
	OnlineSecondary CreateMode = "OnlineSecondary"
	// PointInTimeRestore specifies the point in time restore state for create
	// mode.
	PointInTimeRestore CreateMode = "PointInTimeRestore"
	// Recovery specifies the recovery state for create mode.
	Recovery CreateMode = "Recovery"
	// Restore specifies the restore state for create mode.
	Restore CreateMode = "Restore"
	// RestoreLongTermRetentionBackup specifies the restore long term retention
	// backup state for create mode.
	RestoreLongTermRetentionBackup CreateMode = "RestoreLongTermRetentionBackup"
)

type Database

type Database struct {
	autorest.Response   `json:"-"`
	ID                  *string             `json:"id,omitempty"`
	Name                *string             `json:"name,omitempty"`
	Type                *string             `json:"type,omitempty"`
	Tags                *map[string]*string `json:"tags,omitempty"`
	Location            *string             `json:"location,omitempty"`
	Kind                *string             `json:"kind,omitempty"`
	*DatabaseProperties `json:"properties,omitempty"`
}

Database is represents a database.

type DatabaseBlobAuditingPolicy

type DatabaseBlobAuditingPolicy struct {
	autorest.Response                     `json:"-"`
	ID                                    *string `json:"id,omitempty"`
	Name                                  *string `json:"name,omitempty"`
	Type                                  *string `json:"type,omitempty"`
	Location                              *string `json:"location,omitempty"`
	Kind                                  *string `json:"kind,omitempty"`
	*DatabaseBlobAuditingPolicyProperties `json:"properties,omitempty"`
}

DatabaseBlobAuditingPolicy is contains information about a database Blob Auditing policy.

type DatabaseBlobAuditingPolicyProperties

type DatabaseBlobAuditingPolicyProperties struct {
	State                        BlobAuditingPolicyState `json:"state,omitempty"`
	StorageEndpoint              *string                 `json:"storageEndpoint,omitempty"`
	StorageAccountAccessKey      *string                 `json:"storageAccountAccessKey,omitempty"`
	RetentionDays                *int32                  `json:"retentionDays,omitempty"`
	AuditActionsAndGroups        *[]string               `json:"auditActionsAndGroups,omitempty"`
	StorageAccountSubscriptionID *string                 `json:"storageAccountSubscriptionId,omitempty"`
	IsStorageSecondaryKeyInUse   *bool                   `json:"isStorageSecondaryKeyInUse,omitempty"`
}

DatabaseBlobAuditingPolicyProperties is properties for a database Blob Auditing policy.

type DatabaseEdition

type DatabaseEdition string

DatabaseEdition enumerates the values for database edition.

const (
	// Basic specifies the basic state for database edition.
	Basic DatabaseEdition = "Basic"
	// Business specifies the business state for database edition.
	Business DatabaseEdition = "Business"
	// DataWarehouse specifies the data warehouse state for database edition.
	DataWarehouse DatabaseEdition = "DataWarehouse"
	// Free specifies the free state for database edition.
	Free DatabaseEdition = "Free"
	// Premium specifies the premium state for database edition.
	Premium DatabaseEdition = "Premium"
	// Standard specifies the standard state for database edition.
	Standard DatabaseEdition = "Standard"
	// Stretch specifies the stretch state for database edition.
	Stretch DatabaseEdition = "Stretch"
	// System specifies the system state for database edition.
	System DatabaseEdition = "System"
	// System2 specifies the system 2 state for database edition.
	System2 DatabaseEdition = "System2"
	// Web specifies the web state for database edition.
	Web DatabaseEdition = "Web"
)

type DatabaseListResult

type DatabaseListResult struct {
	autorest.Response `json:"-"`
	Value             *[]Database `json:"value,omitempty"`
}

DatabaseListResult is represents the response to a list database request.

type DatabaseMetric

type DatabaseMetric struct {
	Name          *string    `json:"name,omitempty"`
	ID            *string    `json:"id,omitempty"`
	ResourceName  *string    `json:"resourceName,omitempty"`
	DisplayName   *string    `json:"displayName,omitempty"`
	CurrentValue  *float64   `json:"currentValue,omitempty"`
	Limit         *float64   `json:"limit,omitempty"`
	Unit          *string    `json:"unit,omitempty"`
	NextResetTime *date.Time `json:"nextResetTime,omitempty"`
}

DatabaseMetric is represents database metrics.

type DatabaseMetricListResult

type DatabaseMetricListResult struct {
	autorest.Response `json:"-"`
	Value             *[]DatabaseMetric `json:"value,omitempty"`
}

DatabaseMetricListResult is represents the response to a list database metrics request.

type DatabaseProperties

type DatabaseProperties struct {
	Collation                               *string                      `json:"collation,omitempty"`
	CreationDate                            *date.Time                   `json:"creationDate,omitempty"`
	ContainmentState                        *int64                       `json:"containmentState,omitempty"`
	CurrentServiceObjectiveID               *uuid.UUID                   `json:"currentServiceObjectiveId,omitempty"`
	DatabaseID                              *uuid.UUID                   `json:"databaseId,omitempty"`
	EarliestRestoreDate                     *date.Time                   `json:"earliestRestoreDate,omitempty"`
	CreateMode                              CreateMode                   `json:"createMode,omitempty"`
	SourceDatabaseID                        *string                      `json:"sourceDatabaseId,omitempty"`
	SourceDatabaseDeletionDate              *date.Time                   `json:"sourceDatabaseDeletionDate,omitempty"`
	RestorePointInTime                      *date.Time                   `json:"restorePointInTime,omitempty"`
	RecoveryServicesRecoveryPointResourceID *string                      `json:"recoveryServicesRecoveryPointResourceId,omitempty"`
	Edition                                 DatabaseEdition              `json:"edition,omitempty"`
	MaxSizeBytes                            *string                      `json:"maxSizeBytes,omitempty"`
	RequestedServiceObjectiveID             *uuid.UUID                   `json:"requestedServiceObjectiveId,omitempty"`
	RequestedServiceObjectiveName           ServiceObjectiveName         `json:"requestedServiceObjectiveName,omitempty"`
	ServiceLevelObjective                   ServiceObjectiveName         `json:"serviceLevelObjective,omitempty"`
	Status                                  *string                      `json:"status,omitempty"`
	ElasticPoolName                         *string                      `json:"elasticPoolName,omitempty"`
	DefaultSecondaryLocation                *string                      `json:"defaultSecondaryLocation,omitempty"`
	ServiceTierAdvisors                     *[]ServiceTierAdvisor        `json:"serviceTierAdvisors,omitempty"`
	TransparentDataEncryption               *[]TransparentDataEncryption `json:"transparentDataEncryption,omitempty"`
	RecommendedIndex                        *[]RecommendedIndex          `json:"recommendedIndex,omitempty"`
	FailoverGroupID                         *uuid.UUID                   `json:"failoverGroupId,omitempty"`
	ReadScale                               ReadScale                    `json:"readScale,omitempty"`
	SampleName                              SampleName                   `json:"sampleName,omitempty"`
}

DatabaseProperties is represents the properties of a database.

type DatabaseSecurityAlertPolicy

type DatabaseSecurityAlertPolicy struct {
	autorest.Response                      `json:"-"`
	ID                                     *string `json:"id,omitempty"`
	Name                                   *string `json:"name,omitempty"`
	Type                                   *string `json:"type,omitempty"`
	Location                               *string `json:"location,omitempty"`
	Kind                                   *string `json:"kind,omitempty"`
	*DatabaseSecurityAlertPolicyProperties `json:"properties,omitempty"`
}

DatabaseSecurityAlertPolicy is contains information about a database Threat Detection policy.

type DatabaseSecurityAlertPolicyProperties

type DatabaseSecurityAlertPolicyProperties struct {
	State                   SecurityAlertPolicyState              `json:"state,omitempty"`
	DisabledAlerts          *string                               `json:"disabledAlerts,omitempty"`
	EmailAddresses          *string                               `json:"emailAddresses,omitempty"`
	EmailAccountAdmins      SecurityAlertPolicyEmailAccountAdmins `json:"emailAccountAdmins,omitempty"`
	StorageEndpoint         *string                               `json:"storageEndpoint,omitempty"`
	StorageAccountAccessKey *string                               `json:"storageAccountAccessKey,omitempty"`
	RetentionDays           *int32                                `json:"retentionDays,omitempty"`
	UseServerDefault        SecurityAlertPolicyUseServerDefault   `json:"useServerDefault,omitempty"`
}

DatabaseSecurityAlertPolicyProperties is properties for a database Threat Detection policy.

type DatabasesClient

type DatabasesClient struct {
	ManagementClient
}

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(resourceGroupName string, serverName string, databaseName string, parameters ImportExtensionRequest, cancel <-chan struct{}) (<-chan ImportExportResponse, <-chan error)

CreateImportOperation creates an import operation that imports a bacpac into an existing database. The existing database must be empty. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is 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 is the name of the server. databaseName is the name of the database to import into parameters is the required parameters for importing a Bacpac into a database.

func (DatabasesClient) CreateImportOperationPreparer

func (client DatabasesClient) CreateImportOperationPreparer(resourceGroupName string, serverName string, databaseName string, parameters ImportExtensionRequest, cancel <-chan struct{}) (*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) (*http.Response, 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(resourceGroupName string, serverName string, databaseName string, parameters Database, cancel <-chan struct{}) (<-chan Database, <-chan error)

CreateOrUpdate creates a new database or updates an existing database. Location is a required property in the request body, and it must be the same as the location of the SQL server. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is 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 is the name of the server. databaseName is the name of the database to be operated on (updated or created). parameters is the required parameters for creating or updating a database.

func (DatabasesClient) CreateOrUpdateBlobAuditingPolicy

func (client DatabasesClient) CreateOrUpdateBlobAuditingPolicy(resourceGroupName string, serverName string, databaseName string, parameters DatabaseBlobAuditingPolicy) (result DatabaseBlobAuditingPolicy, err error)

CreateOrUpdateBlobAuditingPolicy creates or updates a database's blob auditing policy.

resourceGroupName is 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 is the name of the server. databaseName is the name of the database for which database blob audit policy will be defined. parameters is the database blob auditing policy.

func (DatabasesClient) CreateOrUpdateBlobAuditingPolicyPreparer

func (client DatabasesClient) CreateOrUpdateBlobAuditingPolicyPreparer(resourceGroupName string, serverName string, databaseName string, parameters DatabaseBlobAuditingPolicy) (*http.Request, error)

CreateOrUpdateBlobAuditingPolicyPreparer prepares the CreateOrUpdateBlobAuditingPolicy request.

func (DatabasesClient) CreateOrUpdateBlobAuditingPolicyResponder

func (client DatabasesClient) CreateOrUpdateBlobAuditingPolicyResponder(resp *http.Response) (result DatabaseBlobAuditingPolicy, err error)

CreateOrUpdateBlobAuditingPolicyResponder handles the response to the CreateOrUpdateBlobAuditingPolicy request. The method always closes the http.Response Body.

func (DatabasesClient) CreateOrUpdateBlobAuditingPolicySender

func (client DatabasesClient) CreateOrUpdateBlobAuditingPolicySender(req *http.Request) (*http.Response, error)

CreateOrUpdateBlobAuditingPolicySender sends the CreateOrUpdateBlobAuditingPolicy request. The method will close the http.Response Body if it receives an error.

func (DatabasesClient) CreateOrUpdatePreparer

func (client DatabasesClient) CreateOrUpdatePreparer(resourceGroupName string, serverName string, databaseName string, parameters Database, cancel <-chan struct{}) (*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) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (DatabasesClient) CreateOrUpdateThreatDetectionPolicy

func (client DatabasesClient) CreateOrUpdateThreatDetectionPolicy(resourceGroupName string, serverName string, databaseName string, parameters DatabaseSecurityAlertPolicy) (result DatabaseSecurityAlertPolicy, err error)

CreateOrUpdateThreatDetectionPolicy creates or updates a database's threat detection policy.

resourceGroupName is 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 is the name of the server. databaseName is the name of the database for which database Threat Detection policy is defined. parameters is the database Threat Detection policy.

func (DatabasesClient) CreateOrUpdateThreatDetectionPolicyPreparer

func (client DatabasesClient) CreateOrUpdateThreatDetectionPolicyPreparer(resourceGroupName string, serverName string, databaseName string, parameters DatabaseSecurityAlertPolicy) (*http.Request, error)

CreateOrUpdateThreatDetectionPolicyPreparer prepares the CreateOrUpdateThreatDetectionPolicy request.

func (DatabasesClient) CreateOrUpdateThreatDetectionPolicyResponder

func (client DatabasesClient) CreateOrUpdateThreatDetectionPolicyResponder(resp *http.Response) (result DatabaseSecurityAlertPolicy, err error)

CreateOrUpdateThreatDetectionPolicyResponder handles the response to the CreateOrUpdateThreatDetectionPolicy request. The method always closes the http.Response Body.

func (DatabasesClient) CreateOrUpdateThreatDetectionPolicySender

func (client DatabasesClient) CreateOrUpdateThreatDetectionPolicySender(req *http.Request) (*http.Response, error)

CreateOrUpdateThreatDetectionPolicySender sends the CreateOrUpdateThreatDetectionPolicy request. The method will close the http.Response Body if it receives an error.

func (DatabasesClient) CreateOrUpdateTransparentDataEncryptionConfiguration

func (client DatabasesClient) CreateOrUpdateTransparentDataEncryptionConfiguration(resourceGroupName string, serverName string, databaseName string, parameters TransparentDataEncryption) (result TransparentDataEncryption, err error)

CreateOrUpdateTransparentDataEncryptionConfiguration creates or updates a database's transparent data encryption configuration.

resourceGroupName is 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 is the name of the server. databaseName is the name of the database for which setting the transparent data encryption applies. parameters is the required parameters for creating or updating transparent data encryption.

func (DatabasesClient) CreateOrUpdateTransparentDataEncryptionConfigurationPreparer

func (client DatabasesClient) CreateOrUpdateTransparentDataEncryptionConfigurationPreparer(resourceGroupName string, serverName string, databaseName string, parameters TransparentDataEncryption) (*http.Request, error)

CreateOrUpdateTransparentDataEncryptionConfigurationPreparer prepares the CreateOrUpdateTransparentDataEncryptionConfiguration request.

func (DatabasesClient) CreateOrUpdateTransparentDataEncryptionConfigurationResponder

func (client DatabasesClient) CreateOrUpdateTransparentDataEncryptionConfigurationResponder(resp *http.Response) (result TransparentDataEncryption, err error)

CreateOrUpdateTransparentDataEncryptionConfigurationResponder handles the response to the CreateOrUpdateTransparentDataEncryptionConfiguration request. The method always closes the http.Response Body.

func (DatabasesClient) CreateOrUpdateTransparentDataEncryptionConfigurationSender

func (client DatabasesClient) CreateOrUpdateTransparentDataEncryptionConfigurationSender(req *http.Request) (*http.Response, error)

CreateOrUpdateTransparentDataEncryptionConfigurationSender sends the CreateOrUpdateTransparentDataEncryptionConfiguration request. The method will close the http.Response Body if it receives an error.

func (DatabasesClient) Delete

func (client DatabasesClient) Delete(resourceGroupName string, serverName string, databaseName string) (result autorest.Response, err error)

Delete deletes a database.

resourceGroupName is 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 is the name of the server. databaseName is the name of the database to be deleted.

func (DatabasesClient) DeletePreparer

func (client DatabasesClient) DeletePreparer(resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (client DatabasesClient) DeleteReplicationLink(resourceGroupName string, serverName string, databaseName string, linkID string) (result autorest.Response, err error)

DeleteReplicationLink deletes a database replication link. Cannot be done during failover.

resourceGroupName is 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 is the name of the server. databaseName is the name of the database that has the replication link to be dropped. linkID is the ID of the replication link to be deleted.

func (DatabasesClient) DeleteReplicationLinkPreparer

func (client DatabasesClient) DeleteReplicationLinkPreparer(resourceGroupName string, serverName string, databaseName string, linkID string) (*http.Request, error)

DeleteReplicationLinkPreparer prepares the DeleteReplicationLink request.

func (DatabasesClient) DeleteReplicationLinkResponder

func (client DatabasesClient) DeleteReplicationLinkResponder(resp *http.Response) (result autorest.Response, err error)

DeleteReplicationLinkResponder handles the response to the DeleteReplicationLink request. The method always closes the http.Response Body.

func (DatabasesClient) DeleteReplicationLinkSender

func (client DatabasesClient) DeleteReplicationLinkSender(req *http.Request) (*http.Response, error)

DeleteReplicationLinkSender sends the DeleteReplicationLink request. The method will close the http.Response Body if it receives an error.

func (DatabasesClient) DeleteResponder

func (client DatabasesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (DatabasesClient) DeleteSender

func (client DatabasesClient) DeleteSender(req *http.Request) (*http.Response, error)

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(resourceGroupName string, serverName string, databaseName string, parameters ExportRequest, cancel <-chan struct{}) (<-chan ImportExportResponse, <-chan error)

Export exports a database to a bacpac. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is 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 is the name of the server. databaseName is the name of the database to be exported. parameters is the required parameters for exporting a database.

func (DatabasesClient) ExportPreparer

func (client DatabasesClient) ExportPreparer(resourceGroupName string, serverName string, databaseName string, parameters ExportRequest, cancel <-chan struct{}) (*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) (*http.Response, error)

ExportSender sends the Export request. The method will close the http.Response Body if it receives an error.

func (client DatabasesClient) FailoverReplicationLink(resourceGroupName string, serverName string, databaseName string, linkID string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

FailoverReplicationLink sets which replica database is primary by failing over from the current primary replica database. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is 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 is the name of the server. databaseName is the name of the database that has the replication link to be failed over. linkID is the ID of the replication link to be failed over.

func (DatabasesClient) FailoverReplicationLinkAllowDataLoss

func (client DatabasesClient) FailoverReplicationLinkAllowDataLoss(resourceGroupName string, serverName string, databaseName string, linkID string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

FailoverReplicationLinkAllowDataLoss sets which replica database is primary by failing over from the current primary replica database. This operation might result in data loss. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is 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 is the name of the server. databaseName is the name of the database that has the replication link to be failed over. linkID is the ID of the replication link to be failed over.

func (DatabasesClient) FailoverReplicationLinkAllowDataLossPreparer

func (client DatabasesClient) FailoverReplicationLinkAllowDataLossPreparer(resourceGroupName string, serverName string, databaseName string, linkID string, cancel <-chan struct{}) (*http.Request, error)

FailoverReplicationLinkAllowDataLossPreparer prepares the FailoverReplicationLinkAllowDataLoss request.

func (DatabasesClient) FailoverReplicationLinkAllowDataLossResponder

func (client DatabasesClient) FailoverReplicationLinkAllowDataLossResponder(resp *http.Response) (result autorest.Response, err error)

FailoverReplicationLinkAllowDataLossResponder handles the response to the FailoverReplicationLinkAllowDataLoss request. The method always closes the http.Response Body.

func (DatabasesClient) FailoverReplicationLinkAllowDataLossSender

func (client DatabasesClient) FailoverReplicationLinkAllowDataLossSender(req *http.Request) (*http.Response, error)

FailoverReplicationLinkAllowDataLossSender sends the FailoverReplicationLinkAllowDataLoss request. The method will close the http.Response Body if it receives an error.

func (DatabasesClient) FailoverReplicationLinkPreparer

func (client DatabasesClient) FailoverReplicationLinkPreparer(resourceGroupName string, serverName string, databaseName string, linkID string, cancel <-chan struct{}) (*http.Request, error)

FailoverReplicationLinkPreparer prepares the FailoverReplicationLink request.

func (DatabasesClient) FailoverReplicationLinkResponder

func (client DatabasesClient) FailoverReplicationLinkResponder(resp *http.Response) (result autorest.Response, err error)

FailoverReplicationLinkResponder handles the response to the FailoverReplicationLink request. The method always closes the http.Response Body.

func (DatabasesClient) FailoverReplicationLinkSender

func (client DatabasesClient) FailoverReplicationLinkSender(req *http.Request) (*http.Response, error)

FailoverReplicationLinkSender sends the FailoverReplicationLink request. The method will close the http.Response Body if it receives an error.

func (DatabasesClient) Get

func (client DatabasesClient) Get(resourceGroupName string, serverName string, databaseName string, expand string) (result Database, err error)

Get gets a database.

resourceGroupName is 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 is the name of the server. databaseName is the name of the database to be retrieved. expand is a comma separated list of child objects to expand in the response. Possible properties: serviceTierAdvisors, transparentDataEncryption.

func (DatabasesClient) GetBlobAuditingPolicy

func (client DatabasesClient) GetBlobAuditingPolicy(resourceGroupName string, serverName string, databaseName string) (result DatabaseBlobAuditingPolicy, err error)

GetBlobAuditingPolicy gets a database's blob auditing policy.

resourceGroupName is 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 is the name of the server. databaseName is the name of the database for which database blob audit policy is defined.

func (DatabasesClient) GetBlobAuditingPolicyPreparer

func (client DatabasesClient) GetBlobAuditingPolicyPreparer(resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

GetBlobAuditingPolicyPreparer prepares the GetBlobAuditingPolicy request.

func (DatabasesClient) GetBlobAuditingPolicyResponder

func (client DatabasesClient) GetBlobAuditingPolicyResponder(resp *http.Response) (result DatabaseBlobAuditingPolicy, err error)

GetBlobAuditingPolicyResponder handles the response to the GetBlobAuditingPolicy request. The method always closes the http.Response Body.

func (DatabasesClient) GetBlobAuditingPolicySender

func (client DatabasesClient) GetBlobAuditingPolicySender(req *http.Request) (*http.Response, error)

GetBlobAuditingPolicySender sends the GetBlobAuditingPolicy request. The method will close the http.Response Body if it receives an error.

func (DatabasesClient) GetPreparer

func (client DatabasesClient) GetPreparer(resourceGroupName string, serverName string, databaseName string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (client DatabasesClient) GetReplicationLink(resourceGroupName string, serverName string, databaseName string, linkID string) (result ReplicationLink, err error)

GetReplicationLink gets a database replication link.

resourceGroupName is 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 is the name of the server. databaseName is the name of the database to get the link for. linkID is the replication link ID to be retrieved.

func (DatabasesClient) GetReplicationLinkPreparer

func (client DatabasesClient) GetReplicationLinkPreparer(resourceGroupName string, serverName string, databaseName string, linkID string) (*http.Request, error)

GetReplicationLinkPreparer prepares the GetReplicationLink request.

func (DatabasesClient) GetReplicationLinkResponder

func (client DatabasesClient) GetReplicationLinkResponder(resp *http.Response) (result ReplicationLink, err error)

GetReplicationLinkResponder handles the response to the GetReplicationLink request. The method always closes the http.Response Body.

func (DatabasesClient) GetReplicationLinkSender

func (client DatabasesClient) GetReplicationLinkSender(req *http.Request) (*http.Response, error)

GetReplicationLinkSender sends the GetReplicationLink request. The method will close the http.Response Body if it receives an error.

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

func (client DatabasesClient) 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 (DatabasesClient) GetServiceTierAdvisor

func (client DatabasesClient) GetServiceTierAdvisor(resourceGroupName string, serverName string, databaseName string, serviceTierAdvisorName string) (result ServiceTierAdvisor, err error)

GetServiceTierAdvisor gets a service tier advisor.

resourceGroupName is 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 is the name of the server. databaseName is the name of database. serviceTierAdvisorName is the name of service tier advisor.

func (DatabasesClient) GetServiceTierAdvisorPreparer

func (client DatabasesClient) GetServiceTierAdvisorPreparer(resourceGroupName string, serverName string, databaseName string, serviceTierAdvisorName string) (*http.Request, error)

GetServiceTierAdvisorPreparer prepares the GetServiceTierAdvisor request.

func (DatabasesClient) GetServiceTierAdvisorResponder

func (client DatabasesClient) GetServiceTierAdvisorResponder(resp *http.Response) (result ServiceTierAdvisor, err error)

GetServiceTierAdvisorResponder handles the response to the GetServiceTierAdvisor request. The method always closes the http.Response Body.

func (DatabasesClient) GetServiceTierAdvisorSender

func (client DatabasesClient) GetServiceTierAdvisorSender(req *http.Request) (*http.Response, error)

GetServiceTierAdvisorSender sends the GetServiceTierAdvisor request. The method will close the http.Response Body if it receives an error.

func (DatabasesClient) GetThreatDetectionPolicy

func (client DatabasesClient) GetThreatDetectionPolicy(resourceGroupName string, serverName string, databaseName string) (result DatabaseSecurityAlertPolicy, err error)

GetThreatDetectionPolicy gets a database's threat detection policy.

resourceGroupName is 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 is the name of the server. databaseName is the name of the database for which database Threat Detection policy is defined.

func (DatabasesClient) GetThreatDetectionPolicyPreparer

func (client DatabasesClient) GetThreatDetectionPolicyPreparer(resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

GetThreatDetectionPolicyPreparer prepares the GetThreatDetectionPolicy request.

func (DatabasesClient) GetThreatDetectionPolicyResponder

func (client DatabasesClient) GetThreatDetectionPolicyResponder(resp *http.Response) (result DatabaseSecurityAlertPolicy, err error)

GetThreatDetectionPolicyResponder handles the response to the GetThreatDetectionPolicy request. The method always closes the http.Response Body.

func (DatabasesClient) GetThreatDetectionPolicySender

func (client DatabasesClient) GetThreatDetectionPolicySender(req *http.Request) (*http.Response, error)

GetThreatDetectionPolicySender sends the GetThreatDetectionPolicy request. The method will close the http.Response Body if it receives an error.

func (DatabasesClient) GetTransparentDataEncryptionConfiguration

func (client DatabasesClient) GetTransparentDataEncryptionConfiguration(resourceGroupName string, serverName string, databaseName string) (result TransparentDataEncryption, err error)

GetTransparentDataEncryptionConfiguration gets a database's transparent data encryption configuration.

resourceGroupName is 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 is the name of the server. databaseName is the name of the database for which the transparent data encryption applies.

func (DatabasesClient) GetTransparentDataEncryptionConfigurationPreparer

func (client DatabasesClient) GetTransparentDataEncryptionConfigurationPreparer(resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

GetTransparentDataEncryptionConfigurationPreparer prepares the GetTransparentDataEncryptionConfiguration request.

func (DatabasesClient) GetTransparentDataEncryptionConfigurationResponder

func (client DatabasesClient) GetTransparentDataEncryptionConfigurationResponder(resp *http.Response) (result TransparentDataEncryption, err error)

GetTransparentDataEncryptionConfigurationResponder handles the response to the GetTransparentDataEncryptionConfiguration request. The method always closes the http.Response Body.

func (DatabasesClient) GetTransparentDataEncryptionConfigurationSender

func (client DatabasesClient) GetTransparentDataEncryptionConfigurationSender(req *http.Request) (*http.Response, error)

GetTransparentDataEncryptionConfigurationSender sends the GetTransparentDataEncryptionConfiguration request. The method will close the http.Response Body if it receives an error.

func (DatabasesClient) Import

func (client DatabasesClient) Import(resourceGroupName string, serverName string, parameters ImportRequest, cancel <-chan struct{}) (<-chan ImportExportResponse, <-chan error)

Import imports a bacpac into a new database. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is 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 is the name of the server. parameters is the required parameters for importing a Bacpac into a database.

func (DatabasesClient) ImportPreparer

func (client DatabasesClient) ImportPreparer(resourceGroupName string, serverName string, parameters ImportRequest, cancel <-chan struct{}) (*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) (*http.Response, error)

ImportSender sends the Import request. The method will close the http.Response Body if it receives an error.

func (DatabasesClient) ListByServer

func (client DatabasesClient) ListByServer(resourceGroupName string, serverName string, expand string, filter string) (result DatabaseListResult, err error)

ListByServer returns a list of databases in a server.

resourceGroupName is 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 is the name of the server. expand is a comma separated list of child objects to expand in the response. Possible properties: serviceTierAdvisors, transparentDataEncryption. filter is an OData filter expression that describes a subset of databases to return.

func (DatabasesClient) ListByServerPreparer

func (client DatabasesClient) ListByServerPreparer(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

func (client DatabasesClient) 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 (client DatabasesClient) ListReplicationLinks(resourceGroupName string, serverName string, databaseName string) (result ReplicationLinkListResult, err error)

ListReplicationLinks lists a database's replication links.

resourceGroupName is 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 is the name of the server. databaseName is the name of the database to retrieve links for.

func (DatabasesClient) ListReplicationLinksPreparer

func (client DatabasesClient) ListReplicationLinksPreparer(resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

ListReplicationLinksPreparer prepares the ListReplicationLinks request.

func (DatabasesClient) ListReplicationLinksResponder

func (client DatabasesClient) ListReplicationLinksResponder(resp *http.Response) (result ReplicationLinkListResult, err error)

ListReplicationLinksResponder handles the response to the ListReplicationLinks request. The method always closes the http.Response Body.

func (DatabasesClient) ListReplicationLinksSender

func (client DatabasesClient) ListReplicationLinksSender(req *http.Request) (*http.Response, error)

ListReplicationLinksSender sends the ListReplicationLinks request. The method will close the http.Response Body if it receives an error.

func (DatabasesClient) ListRestorePoints

func (client DatabasesClient) ListRestorePoints(resourceGroupName string, serverName string, databaseName string) (result RestorePointListResult, err error)

ListRestorePoints returns a list of database restore points.

resourceGroupName is 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 is the name of the server. databaseName is the name of the database from which to retrieve available restore points.

func (DatabasesClient) ListRestorePointsPreparer

func (client DatabasesClient) ListRestorePointsPreparer(resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

ListRestorePointsPreparer prepares the ListRestorePoints request.

func (DatabasesClient) ListRestorePointsResponder

func (client DatabasesClient) ListRestorePointsResponder(resp *http.Response) (result RestorePointListResult, err error)

ListRestorePointsResponder handles the response to the ListRestorePoints request. The method always closes the http.Response Body.

func (DatabasesClient) ListRestorePointsSender

func (client DatabasesClient) ListRestorePointsSender(req *http.Request) (*http.Response, error)

ListRestorePointsSender sends the ListRestorePoints request. The method will close the http.Response Body if it receives an error.

func (DatabasesClient) ListServiceTierAdvisors

func (client DatabasesClient) ListServiceTierAdvisors(resourceGroupName string, serverName string, databaseName string) (result ServiceTierAdvisorListResult, err error)

ListServiceTierAdvisors returns service tier advisors for specified database.

resourceGroupName is 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 is the name of the server. databaseName is the name of database.

func (DatabasesClient) ListServiceTierAdvisorsPreparer

func (client DatabasesClient) ListServiceTierAdvisorsPreparer(resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

ListServiceTierAdvisorsPreparer prepares the ListServiceTierAdvisors request.

func (DatabasesClient) ListServiceTierAdvisorsResponder

func (client DatabasesClient) ListServiceTierAdvisorsResponder(resp *http.Response) (result ServiceTierAdvisorListResult, err error)

ListServiceTierAdvisorsResponder handles the response to the ListServiceTierAdvisors request. The method always closes the http.Response Body.

func (DatabasesClient) ListServiceTierAdvisorsSender

func (client DatabasesClient) ListServiceTierAdvisorsSender(req *http.Request) (*http.Response, error)

ListServiceTierAdvisorsSender sends the ListServiceTierAdvisors request. The method will close the http.Response Body if it receives an error.

func (DatabasesClient) ListTransparentDataEncryptionActivity

func (client DatabasesClient) ListTransparentDataEncryptionActivity(resourceGroupName string, serverName string, databaseName string) (result TransparentDataEncryptionActivityListResult, err error)

ListTransparentDataEncryptionActivity returns a database's transparent data encryption operation result.

resourceGroupName is 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 is the name of the server. databaseName is the name of the database for which the transparent data encryption applies.

func (DatabasesClient) ListTransparentDataEncryptionActivityPreparer

func (client DatabasesClient) ListTransparentDataEncryptionActivityPreparer(resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

ListTransparentDataEncryptionActivityPreparer prepares the ListTransparentDataEncryptionActivity request.

func (DatabasesClient) ListTransparentDataEncryptionActivityResponder

func (client DatabasesClient) ListTransparentDataEncryptionActivityResponder(resp *http.Response) (result TransparentDataEncryptionActivityListResult, err error)

ListTransparentDataEncryptionActivityResponder handles the response to the ListTransparentDataEncryptionActivity request. The method always closes the http.Response Body.

func (DatabasesClient) ListTransparentDataEncryptionActivitySender

func (client DatabasesClient) ListTransparentDataEncryptionActivitySender(req *http.Request) (*http.Response, error)

ListTransparentDataEncryptionActivitySender sends the ListTransparentDataEncryptionActivity request. The method will close the http.Response Body if it receives an error.

func (DatabasesClient) ListUsages

func (client DatabasesClient) ListUsages(resourceGroupName string, serverName string, databaseName string) (result DatabaseMetricListResult, err error)

ListUsages returns database usages.

resourceGroupName is 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 is the name of the server. databaseName is the name of the database.

func (DatabasesClient) ListUsagesPreparer

func (client DatabasesClient) ListUsagesPreparer(resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

ListUsagesPreparer prepares the ListUsages request.

func (DatabasesClient) ListUsagesResponder

func (client DatabasesClient) ListUsagesResponder(resp *http.Response) (result DatabaseMetricListResult, err error)

ListUsagesResponder handles the response to the ListUsages request. The method always closes the http.Response Body.

func (DatabasesClient) ListUsagesSender

func (client DatabasesClient) ListUsagesSender(req *http.Request) (*http.Response, error)

ListUsagesSender sends the ListUsages request. The method will close the http.Response Body if it receives an error.

func (DatabasesClient) Pause

func (client DatabasesClient) Pause(resourceGroupName string, serverName string, databaseName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Pause pauses a data warehouse. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is 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 is the name of the server. databaseName is the name of the data warehouse to pause.

func (DatabasesClient) PausePreparer

func (client DatabasesClient) PausePreparer(resourceGroupName string, serverName string, databaseName string, cancel <-chan struct{}) (*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) (*http.Response, 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(resourceGroupName string, serverName string, databaseName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Resume resumes a data warehouse. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is 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 is the name of the server. databaseName is the name of the data warehouse to resume.

func (DatabasesClient) ResumePreparer

func (client DatabasesClient) ResumePreparer(resourceGroupName string, serverName string, databaseName string, cancel <-chan struct{}) (*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) (*http.Response, error)

ResumeSender sends the Resume request. The method will close the http.Response Body if it receives an error.

type EditionCapability

type EditionCapability struct {
	Name                            *string                       `json:"name,omitempty"`
	Status                          CapabilityStatus              `json:"status,omitempty"`
	SupportedServiceLevelObjectives *[]ServiceObjectiveCapability `json:"supportedServiceLevelObjectives,omitempty"`
}

EditionCapability is the database edition capabilities.

type ElasticPool

type ElasticPool struct {
	autorest.Response      `json:"-"`
	ID                     *string             `json:"id,omitempty"`
	Name                   *string             `json:"name,omitempty"`
	Type                   *string             `json:"type,omitempty"`
	Tags                   *map[string]*string `json:"tags,omitempty"`
	Location               *string             `json:"location,omitempty"`
	*ElasticPoolProperties `json:"properties,omitempty"`
	Kind                   *string `json:"kind,omitempty"`
}

ElasticPool is represents a database elastic pool.

type ElasticPoolActivity

type ElasticPoolActivity struct {
	ID                             *string `json:"id,omitempty"`
	Name                           *string `json:"name,omitempty"`
	Type                           *string `json:"type,omitempty"`
	Location                       *string `json:"location,omitempty"`
	*ElasticPoolActivityProperties `json:"properties,omitempty"`
}

ElasticPoolActivity is represents the activity on an elastic pool.

type ElasticPoolActivityListResult

type ElasticPoolActivityListResult struct {
	autorest.Response `json:"-"`
	Value             *[]ElasticPoolActivity `json:"value,omitempty"`
}

ElasticPoolActivityListResult is represents the response to a list elastic pool activity request.

type ElasticPoolActivityProperties

type ElasticPoolActivityProperties struct {
	EndTime                       *date.Time `json:"endTime,omitempty"`
	ErrorCode                     *int32     `json:"errorCode,omitempty"`
	ErrorMessage                  *string    `json:"errorMessage,omitempty"`
	ErrorSeverity                 *int32     `json:"errorSeverity,omitempty"`
	Operation                     *string    `json:"operation,omitempty"`
	OperationID                   *uuid.UUID `json:"operationId,omitempty"`
	PercentComplete               *int32     `json:"percentComplete,omitempty"`
	RequestedDatabaseDtuMax       *int32     `json:"requestedDatabaseDtuMax,omitempty"`
	RequestedDatabaseDtuMin       *int32     `json:"requestedDatabaseDtuMin,omitempty"`
	RequestedDtu                  *int32     `json:"requestedDtu,omitempty"`
	RequestedElasticPoolName      *string    `json:"requestedElasticPoolName,omitempty"`
	RequestedStorageLimitInGB     *int64     `json:"requestedStorageLimitInGB,omitempty"`
	ElasticPoolName               *string    `json:"elasticPoolName,omitempty"`
	ServerName                    *string    `json:"serverName,omitempty"`
	StartTime                     *date.Time `json:"startTime,omitempty"`
	State                         *string    `json:"state,omitempty"`
	RequestedStorageLimitInMB     *int32     `json:"requestedStorageLimitInMB,omitempty"`
	RequestedDatabaseDtuGuarantee *int32     `json:"requestedDatabaseDtuGuarantee,omitempty"`
	RequestedDatabaseDtuCap       *int32     `json:"requestedDatabaseDtuCap,omitempty"`
	RequestedDtuGuarantee         *int32     `json:"requestedDtuGuarantee,omitempty"`
}

ElasticPoolActivityProperties is represents the properties of an elastic pool.

type ElasticPoolDatabaseActivity

type ElasticPoolDatabaseActivity struct {
	ID                                     *string `json:"id,omitempty"`
	Name                                   *string `json:"name,omitempty"`
	Type                                   *string `json:"type,omitempty"`
	Location                               *string `json:"location,omitempty"`
	*ElasticPoolDatabaseActivityProperties `json:"properties,omitempty"`
}

ElasticPoolDatabaseActivity is represents the activity on an elastic pool.

type ElasticPoolDatabaseActivityListResult

type ElasticPoolDatabaseActivityListResult struct {
	autorest.Response `json:"-"`
	Value             *[]ElasticPoolDatabaseActivity `json:"value,omitempty"`
}

ElasticPoolDatabaseActivityListResult is represents the response to a list elastic pool database activity request.

type ElasticPoolDatabaseActivityProperties

type ElasticPoolDatabaseActivityProperties struct {
	DatabaseName              *string    `json:"databaseName,omitempty"`
	EndTime                   *date.Time `json:"endTime,omitempty"`
	ErrorCode                 *int32     `json:"errorCode,omitempty"`
	ErrorMessage              *string    `json:"errorMessage,omitempty"`
	ErrorSeverity             *int32     `json:"errorSeverity,omitempty"`
	Operation                 *string    `json:"operation,omitempty"`
	OperationID               *uuid.UUID `json:"operationId,omitempty"`
	PercentComplete           *int32     `json:"percentComplete,omitempty"`
	RequestedElasticPoolName  *string    `json:"requestedElasticPoolName,omitempty"`
	CurrentElasticPoolName    *string    `json:"currentElasticPoolName,omitempty"`
	CurrentServiceObjective   *string    `json:"currentServiceObjective,omitempty"`
	RequestedServiceObjective *string    `json:"requestedServiceObjective,omitempty"`
	ServerName                *string    `json:"serverName,omitempty"`
	StartTime                 *date.Time `json:"startTime,omitempty"`
	State                     *string    `json:"state,omitempty"`
}

ElasticPoolDatabaseActivityProperties is represents the properties of an elastic pool database activity.

type ElasticPoolDtuCapability

type ElasticPoolDtuCapability struct {
	Limit                        *int64                                    `json:"limit,omitempty"`
	MaxDatabaseCount             *int64                                    `json:"maxDatabaseCount,omitempty"`
	Status                       CapabilityStatus                          `json:"status,omitempty"`
	SupportedMaxSizes            *[]MaxSizeCapability                      `json:"supportedMaxSizes,omitempty"`
	IncludedMaxSize              *MaxSizeCapability                        `json:"includedMaxSize,omitempty"`
	SupportedPerDatabaseMaxSizes *[]MaxSizeCapability                      `json:"supportedPerDatabaseMaxSizes,omitempty"`
	SupportedPerDatabaseMaxDtus  *[]ElasticPoolPerDatabaseMaxDtuCapability `json:"supportedPerDatabaseMaxDtus,omitempty"`
}

ElasticPoolDtuCapability is the Elastic Pool DTU capability.

type ElasticPoolEdition

type ElasticPoolEdition string

ElasticPoolEdition enumerates the values for elastic pool edition.

const (
	// ElasticPoolEditionBasic specifies the elastic pool edition basic state
	// for elastic pool edition.
	ElasticPoolEditionBasic ElasticPoolEdition = "Basic"
	// ElasticPoolEditionPremium specifies the elastic pool edition premium
	// state for elastic pool edition.
	ElasticPoolEditionPremium ElasticPoolEdition = "Premium"
	// ElasticPoolEditionStandard specifies the elastic pool edition standard
	// state for elastic pool edition.
	ElasticPoolEditionStandard ElasticPoolEdition = "Standard"
)

type ElasticPoolEditionCapability

type ElasticPoolEditionCapability struct {
	Name                     *string                     `json:"name,omitempty"`
	Status                   CapabilityStatus            `json:"status,omitempty"`
	SupportedElasticPoolDtus *[]ElasticPoolDtuCapability `json:"supportedElasticPoolDtus,omitempty"`
}

ElasticPoolEditionCapability is the elastic pool edition capabilities.

type ElasticPoolListResult

type ElasticPoolListResult struct {
	autorest.Response `json:"-"`
	Value             *[]ElasticPool `json:"value,omitempty"`
}

ElasticPoolListResult is represents the response to a list elastic pool request.

type ElasticPoolPerDatabaseMaxDtuCapability

type ElasticPoolPerDatabaseMaxDtuCapability struct {
	Limit                       *int64                                    `json:"limit,omitempty"`
	Status                      CapabilityStatus                          `json:"status,omitempty"`
	SupportedPerDatabaseMinDtus *[]ElasticPoolPerDatabaseMinDtuCapability `json:"supportedPerDatabaseMinDtus,omitempty"`
}

ElasticPoolPerDatabaseMaxDtuCapability is the max per-database DTU capability.

type ElasticPoolPerDatabaseMinDtuCapability

type ElasticPoolPerDatabaseMinDtuCapability struct {
	Limit  *int64           `json:"limit,omitempty"`
	Status CapabilityStatus `json:"status,omitempty"`
}

ElasticPoolPerDatabaseMinDtuCapability is the minimum per-database DTU capability.

type ElasticPoolProperties

type ElasticPoolProperties struct {
	CreationDate   *date.Time         `json:"creationDate,omitempty"`
	State          ElasticPoolState   `json:"state,omitempty"`
	Edition        ElasticPoolEdition `json:"edition,omitempty"`
	Dtu            *int32             `json:"dtu,omitempty"`
	DatabaseDtuMax *int32             `json:"databaseDtuMax,omitempty"`
	DatabaseDtuMin *int32             `json:"databaseDtuMin,omitempty"`
	StorageMB      *int32             `json:"storageMB,omitempty"`
}

ElasticPoolProperties is represents the properties of an elastic pool.

type ElasticPoolState

type ElasticPoolState string

ElasticPoolState enumerates the values for elastic pool state.

const (
	// ElasticPoolStateCreating specifies the elastic pool state creating state
	// for elastic pool state.
	ElasticPoolStateCreating ElasticPoolState = "Creating"
	// ElasticPoolStateDisabled specifies the elastic pool state disabled state
	// for elastic pool state.
	ElasticPoolStateDisabled ElasticPoolState = "Disabled"
	// ElasticPoolStateReady specifies the elastic pool state ready state for
	// elastic pool state.
	ElasticPoolStateReady ElasticPoolState = "Ready"
)

type ElasticPoolsClient

type ElasticPoolsClient struct {
	ManagementClient
}

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(resourceGroupName string, serverName string, elasticPoolName string, parameters ElasticPool, cancel <-chan struct{}) (<-chan ElasticPool, <-chan error)

CreateOrUpdate creates a new elastic pool or updates an existing elastic pool. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is 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 is the name of the server. elasticPoolName is the name of the elastic pool to be operated on (updated or created). parameters is the required parameters for creating or updating an elastic pool.

func (ElasticPoolsClient) CreateOrUpdatePreparer

func (client ElasticPoolsClient) CreateOrUpdatePreparer(resourceGroupName string, serverName string, elasticPoolName string, parameters ElasticPool, cancel <-chan struct{}) (*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) (*http.Response, 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(resourceGroupName string, serverName string, elasticPoolName string) (result autorest.Response, err error)

Delete deletes the elastic pool.

resourceGroupName is 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 is the name of the server. elasticPoolName is the name of the elastic pool to be deleted.

func (ElasticPoolsClient) DeletePreparer

func (client ElasticPoolsClient) DeletePreparer(resourceGroupName string, serverName string, elasticPoolName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ElasticPoolsClient) DeleteResponder

func (client ElasticPoolsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ElasticPoolsClient) DeleteSender

func (client ElasticPoolsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ElasticPoolsClient) Get

func (client ElasticPoolsClient) Get(resourceGroupName string, serverName string, elasticPoolName string) (result ElasticPool, err error)

Get gets an elastic pool.

resourceGroupName is 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 is the name of the server. elasticPoolName is the name of the elastic pool to be retrieved.

func (ElasticPoolsClient) GetDatabase

func (client ElasticPoolsClient) GetDatabase(resourceGroupName string, serverName string, elasticPoolName string, databaseName string) (result Database, err error)

GetDatabase gets a database inside of an elastic pool.

resourceGroupName is 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 is the name of the server. elasticPoolName is the name of the elastic pool to be retrieved. databaseName is the name of the database to be retrieved.

func (ElasticPoolsClient) GetDatabasePreparer

func (client ElasticPoolsClient) GetDatabasePreparer(resourceGroupName string, serverName string, elasticPoolName string, databaseName string) (*http.Request, error)

GetDatabasePreparer prepares the GetDatabase request.

func (ElasticPoolsClient) GetDatabaseResponder

func (client ElasticPoolsClient) GetDatabaseResponder(resp *http.Response) (result Database, err error)

GetDatabaseResponder handles the response to the GetDatabase request. The method always closes the http.Response Body.

func (ElasticPoolsClient) GetDatabaseSender

func (client ElasticPoolsClient) GetDatabaseSender(req *http.Request) (*http.Response, error)

GetDatabaseSender sends the GetDatabase request. The method will close the http.Response Body if it receives an error.

func (ElasticPoolsClient) GetPreparer

func (client ElasticPoolsClient) GetPreparer(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

func (client ElasticPoolsClient) 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 (ElasticPoolsClient) ListActivity

func (client ElasticPoolsClient) ListActivity(resourceGroupName string, serverName string, elasticPoolName string) (result ElasticPoolActivityListResult, err error)

ListActivity returns elastic pool activities.

resourceGroupName is 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 is the name of the server. elasticPoolName is the name of the elastic pool for which to get the current activity.

func (ElasticPoolsClient) ListActivityPreparer

func (client ElasticPoolsClient) ListActivityPreparer(resourceGroupName string, serverName string, elasticPoolName string) (*http.Request, error)

ListActivityPreparer prepares the ListActivity request.

func (ElasticPoolsClient) ListActivityResponder

func (client ElasticPoolsClient) ListActivityResponder(resp *http.Response) (result ElasticPoolActivityListResult, err error)

ListActivityResponder handles the response to the ListActivity request. The method always closes the http.Response Body.

func (ElasticPoolsClient) ListActivitySender

func (client ElasticPoolsClient) ListActivitySender(req *http.Request) (*http.Response, error)

ListActivitySender sends the ListActivity request. The method will close the http.Response Body if it receives an error.

func (ElasticPoolsClient) ListByServer

func (client ElasticPoolsClient) ListByServer(resourceGroupName string, serverName string) (result ElasticPoolListResult, err error)

ListByServer returns a list of elastic pools in a server.

resourceGroupName is 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 is the name of the server.

func (ElasticPoolsClient) ListByServerPreparer

func (client ElasticPoolsClient) ListByServerPreparer(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

func (client ElasticPoolsClient) 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 (ElasticPoolsClient) ListDatabaseActivity

func (client ElasticPoolsClient) ListDatabaseActivity(resourceGroupName string, serverName string, elasticPoolName string) (result ElasticPoolDatabaseActivityListResult, err error)

ListDatabaseActivity returns activity on databases inside of an elastic pool.

resourceGroupName is 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 is the name of the server. elasticPoolName is the name of the elastic pool.

func (ElasticPoolsClient) ListDatabaseActivityPreparer

func (client ElasticPoolsClient) ListDatabaseActivityPreparer(resourceGroupName string, serverName string, elasticPoolName string) (*http.Request, error)

ListDatabaseActivityPreparer prepares the ListDatabaseActivity request.

func (ElasticPoolsClient) ListDatabaseActivityResponder

func (client ElasticPoolsClient) ListDatabaseActivityResponder(resp *http.Response) (result ElasticPoolDatabaseActivityListResult, err error)

ListDatabaseActivityResponder handles the response to the ListDatabaseActivity request. The method always closes the http.Response Body.

func (ElasticPoolsClient) ListDatabaseActivitySender

func (client ElasticPoolsClient) ListDatabaseActivitySender(req *http.Request) (*http.Response, error)

ListDatabaseActivitySender sends the ListDatabaseActivity request. The method will close the http.Response Body if it receives an error.

func (ElasticPoolsClient) ListDatabases

func (client ElasticPoolsClient) ListDatabases(resourceGroupName string, serverName string, elasticPoolName string) (result DatabaseListResult, err error)

ListDatabases returns a list of databases in an elastic pool.

resourceGroupName is 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 is the name of the server. elasticPoolName is the name of the elastic pool to be retrieved.

func (ElasticPoolsClient) ListDatabasesPreparer

func (client ElasticPoolsClient) ListDatabasesPreparer(resourceGroupName string, serverName string, elasticPoolName string) (*http.Request, error)

ListDatabasesPreparer prepares the ListDatabases request.

func (ElasticPoolsClient) ListDatabasesResponder

func (client ElasticPoolsClient) ListDatabasesResponder(resp *http.Response) (result DatabaseListResult, err error)

ListDatabasesResponder handles the response to the ListDatabases request. The method always closes the http.Response Body.

func (ElasticPoolsClient) ListDatabasesSender

func (client ElasticPoolsClient) ListDatabasesSender(req *http.Request) (*http.Response, error)

ListDatabasesSender sends the ListDatabases request. The method will close the http.Response Body if it receives an error.

type ExportRequest

type ExportRequest struct {
	StorageKeyType             StorageKeyType     `json:"storageKeyType,omitempty"`
	StorageKey                 *string            `json:"storageKey,omitempty"`
	StorageURI                 *string            `json:"storageUri,omitempty"`
	AdministratorLogin         *string            `json:"administratorLogin,omitempty"`
	AdministratorLoginPassword *string            `json:"administratorLoginPassword,omitempty"`
	AuthenticationType         AuthenticationType `json:"authenticationType,omitempty"`
}

ExportRequest is export database parameters.

type FirewallRule

type FirewallRule struct {
	autorest.Response       `json:"-"`
	Name                    *string `json:"name,omitempty"`
	ID                      *string `json:"id,omitempty"`
	Kind                    *string `json:"kind,omitempty"`
	Location                *string `json:"location,omitempty"`
	Type                    *string `json:"type,omitempty"`
	*FirewallRuleProperties `json:"properties,omitempty"`
}

FirewallRule is represents a server firewall rule.

type FirewallRuleListResult

type FirewallRuleListResult struct {
	autorest.Response `json:"-"`
	Value             *[]FirewallRule `json:"value,omitempty"`
}

FirewallRuleListResult is represents the response to a List Firewall Rules request.

type FirewallRuleProperties

type FirewallRuleProperties struct {
	StartIPAddress *string `json:"startIpAddress,omitempty"`
	EndIPAddress   *string `json:"endIpAddress,omitempty"`
}

FirewallRuleProperties is represents the properties of a server firewall rule.

type FirewallRulesClient

type FirewallRulesClient struct {
	ManagementClient
}

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(resourceGroupName string, serverName string, firewallRuleName string, parameters FirewallRule) (result FirewallRule, err error)

CreateOrUpdate creates or updates a firewall rule.

resourceGroupName is 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 is the name of the server. firewallRuleName is the name of the firewall rule. parameters is the required parameters for creating or updating a firewall rule.

func (FirewallRulesClient) CreateOrUpdatePreparer

func (client FirewallRulesClient) CreateOrUpdatePreparer(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

func (client FirewallRulesClient) 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 (FirewallRulesClient) Delete

func (client FirewallRulesClient) Delete(resourceGroupName string, serverName string, firewallRuleName string) (result autorest.Response, err error)

Delete deletes a firewall rule.

resourceGroupName is 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 is the name of the server. firewallRuleName is the name of the firewall rule.

func (FirewallRulesClient) DeletePreparer

func (client FirewallRulesClient) DeletePreparer(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

func (client FirewallRulesClient) 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 (FirewallRulesClient) Get

func (client FirewallRulesClient) Get(resourceGroupName string, serverName string, firewallRuleName string) (result FirewallRule, err error)

Get gets a firewall rule.

resourceGroupName is 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 is the name of the server. firewallRuleName is the name of the firewall rule.

func (FirewallRulesClient) GetPreparer

func (client FirewallRulesClient) GetPreparer(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

func (client FirewallRulesClient) 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 (FirewallRulesClient) ListByServer

func (client FirewallRulesClient) ListByServer(resourceGroupName string, serverName string) (result FirewallRuleListResult, err error)

ListByServer returns a list of firewall rules.

resourceGroupName is 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 is the name of the server.

func (FirewallRulesClient) ListByServerPreparer

func (client FirewallRulesClient) ListByServerPreparer(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

func (client FirewallRulesClient) 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 ImportExportResponse

type ImportExportResponse struct {
	autorest.Response               `json:"-"`
	ID                              *string `json:"id,omitempty"`
	Name                            *string `json:"name,omitempty"`
	Type                            *string `json:"type,omitempty"`
	*ImportExportResponseProperties `json:"properties,omitempty"`
}

ImportExportResponse is response for Import/Export Get operation.

type ImportExportResponseProperties

type ImportExportResponseProperties struct {
	RequestType      *string    `json:"requestType,omitempty"`
	RequestID        *uuid.UUID `json:"requestId,omitempty"`
	ServerName       *string    `json:"serverName,omitempty"`
	DatabaseName     *string    `json:"databaseName,omitempty"`
	Status           *string    `json:"status,omitempty"`
	LastModifiedTime *string    `json:"lastModifiedTime,omitempty"`
	QueuedTime       *string    `json:"queuedTime,omitempty"`
	BlobURI          *string    `json:"blobUri,omitempty"`
	ErrorMessage     *string    `json:"errorMessage,omitempty"`
}

ImportExportResponseProperties is response for Import/Export Status operation.

type ImportExtensionProperties

type ImportExtensionProperties struct {
	StorageKeyType             StorageKeyType     `json:"storageKeyType,omitempty"`
	StorageKey                 *string            `json:"storageKey,omitempty"`
	StorageURI                 *string            `json:"storageUri,omitempty"`
	AdministratorLogin         *string            `json:"administratorLogin,omitempty"`
	AdministratorLoginPassword *string            `json:"administratorLoginPassword,omitempty"`
	AuthenticationType         AuthenticationType `json:"authenticationType,omitempty"`
	OperationMode              *string            `json:"operationMode,omitempty"`
}

ImportExtensionProperties is represents the properties for an import operation

type ImportExtensionRequest

type ImportExtensionRequest struct {
	Name                       *string `json:"name,omitempty"`
	Type                       *string `json:"type,omitempty"`
	*ImportExtensionProperties `json:"properties,omitempty"`
}

ImportExtensionRequest is import database parameters.

type ImportRequest

type ImportRequest struct {
	StorageKeyType             StorageKeyType       `json:"storageKeyType,omitempty"`
	StorageKey                 *string              `json:"storageKey,omitempty"`
	StorageURI                 *string              `json:"storageUri,omitempty"`
	AdministratorLogin         *string              `json:"administratorLogin,omitempty"`
	AdministratorLoginPassword *string              `json:"administratorLoginPassword,omitempty"`
	AuthenticationType         AuthenticationType   `json:"authenticationType,omitempty"`
	DatabaseName               *string              `json:"databaseName,omitempty"`
	Edition                    DatabaseEdition      `json:"edition,omitempty"`
	ServiceObjectiveName       ServiceObjectiveName `json:"serviceObjectiveName,omitempty"`
	MaxSizeBytes               *string              `json:"maxSizeBytes,omitempty"`
}

ImportRequest is import database parameters.

type LocationCapabilities

type LocationCapabilities struct {
	autorest.Response       `json:"-"`
	Name                    *string                    `json:"name,omitempty"`
	Status                  CapabilityStatus           `json:"status,omitempty"`
	SupportedServerVersions *[]ServerVersionCapability `json:"supportedServerVersions,omitempty"`
}

LocationCapabilities is the capabilities for a location.

type ManagementClient

type ManagementClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

ManagementClient is the base client for Sql.

func New

func New(subscriptionID string) ManagementClient

New creates an instance of the ManagementClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) ManagementClient

NewWithBaseURI creates an instance of the ManagementClient client.

type MaxSizeCapability

type MaxSizeCapability struct {
	Limit  *int64           `json:"limit,omitempty"`
	Unit   MaxSizeUnits     `json:"unit,omitempty"`
	Status CapabilityStatus `json:"status,omitempty"`
}

MaxSizeCapability is the maximum size limits for a database.

type MaxSizeUnits

type MaxSizeUnits string

MaxSizeUnits enumerates the values for max size units.

const (
	// Gigabytes specifies the gigabytes state for max size units.
	Gigabytes MaxSizeUnits = "Gigabytes"
	// Megabytes specifies the megabytes state for max size units.
	Megabytes MaxSizeUnits = "Megabytes"
	// Petabytes specifies the petabytes state for max size units.
	Petabytes MaxSizeUnits = "Petabytes"
	// Terabytes specifies the terabytes state for max size units.
	Terabytes MaxSizeUnits = "Terabytes"
)

type Operation

type Operation struct {
	Name    *string           `json:"name,omitempty"`
	Display *OperationDisplay `json:"display,omitempty"`
}

Operation is sQL REST API operation definition.

type OperationDisplay

type OperationDisplay struct {
	Provider  *string `json:"provider,omitempty"`
	Resource  *string `json:"resource,omitempty"`
	Operation *string `json:"operation,omitempty"`
}

OperationDisplay is display metadata associated with the operation.

type OperationImpact

type OperationImpact struct {
	Name                *string  `json:"name,omitempty"`
	Unit                *string  `json:"unit,omitempty"`
	ChangeValueAbsolute *float64 `json:"changeValueAbsolute,omitempty"`
	ChangeValueRelative *float64 `json:"changeValueRelative,omitempty"`
}

OperationImpact is represents impact of an operation, both in absolute and relative terms.

type OperationListResult

type OperationListResult struct {
	autorest.Response `json:"-"`
	Value             *[]Operation `json:"value,omitempty"`
	NextLink          *string      `json:"nextLink,omitempty"`
}

OperationListResult is 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 {
	ManagementClient
}

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() (result OperationListResult, err error)

List lists all of the available SQL Rest API operations.

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer() (*http.Request, error)

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

func (client OperationsClient) 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 PerformanceLevel

type PerformanceLevel struct {
	Unit  PerformanceLevelUnit `json:"unit,omitempty"`
	Value *int32               `json:"value,omitempty"`
}

PerformanceLevel is a possible performance level of a service objective capability.

type PerformanceLevelUnit

type PerformanceLevelUnit string

PerformanceLevelUnit enumerates the values for performance level unit.

const (
	// DTU specifies the dtu state for performance level unit.
	DTU PerformanceLevelUnit = "DTU"
)

type ProxyResource

type ProxyResource struct {
	ID   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
	Type *string `json:"type,omitempty"`
}

ProxyResource is aRM proxy resource.

type ReadScale

type ReadScale string

ReadScale enumerates the values for read scale.

const (
	// ReadScaleDisabled specifies the read scale disabled state for read
	// scale.
	ReadScaleDisabled ReadScale = "Disabled"
	// ReadScaleEnabled specifies the read scale enabled state for read scale.
	ReadScaleEnabled ReadScale = "Enabled"
)

type RecommendedElasticPool

type RecommendedElasticPool struct {
	autorest.Response                 `json:"-"`
	ID                                *string `json:"id,omitempty"`
	Name                              *string `json:"name,omitempty"`
	Type                              *string `json:"type,omitempty"`
	*RecommendedElasticPoolProperties `json:"properties,omitempty"`
}

RecommendedElasticPool is represents a recommented elastic pool.

type RecommendedElasticPoolListMetricsResult

type RecommendedElasticPoolListMetricsResult struct {
	autorest.Response `json:"-"`
	Value             *[]RecommendedElasticPoolMetric `json:"value,omitempty"`
}

RecommendedElasticPoolListMetricsResult is represents the response to a list recommended elastic pool metrics request.

type RecommendedElasticPoolListResult

type RecommendedElasticPoolListResult struct {
	autorest.Response `json:"-"`
	Value             *[]RecommendedElasticPool `json:"value,omitempty"`
}

RecommendedElasticPoolListResult is represents the response to a list recommended elastic pool request.

type RecommendedElasticPoolMetric

type RecommendedElasticPoolMetric struct {
	DateTime *date.Time `json:"dateTime,omitempty"`
	Dtu      *float64   `json:"dtu,omitempty"`
	SizeGB   *float64   `json:"sizeGB,omitempty"`
}

RecommendedElasticPoolMetric is represents recommended elastic pool metric.

type RecommendedElasticPoolProperties

type RecommendedElasticPoolProperties struct {
	DatabaseEdition        ElasticPoolEdition              `json:"databaseEdition,omitempty"`
	Dtu                    *float64                        `json:"dtu,omitempty"`
	DatabaseDtuMin         *float64                        `json:"databaseDtuMin,omitempty"`
	DatabaseDtuMax         *float64                        `json:"databaseDtuMax,omitempty"`
	StorageMB              *float64                        `json:"storageMB,omitempty"`
	ObservationPeriodStart *date.Time                      `json:"observationPeriodStart,omitempty"`
	ObservationPeriodEnd   *date.Time                      `json:"observationPeriodEnd,omitempty"`
	MaxObservedDtu         *float64                        `json:"maxObservedDtu,omitempty"`
	MaxObservedStorageMB   *float64                        `json:"maxObservedStorageMB,omitempty"`
	Databases              *[]Database                     `json:"databases,omitempty"`
	Metrics                *[]RecommendedElasticPoolMetric `json:"metrics,omitempty"`
}

RecommendedElasticPoolProperties is represents the properties of a recommented elastic pool.

type RecommendedElasticPoolsClient

type RecommendedElasticPoolsClient struct {
	ManagementClient
}

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(resourceGroupName string, serverName string, recommendedElasticPoolName string) (result RecommendedElasticPool, err error)

Get gets a recommented elastic pool.

resourceGroupName is 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 is the name of the server. recommendedElasticPoolName is the name of the recommended elastic pool to be retrieved.

func (RecommendedElasticPoolsClient) GetDatabases

func (client RecommendedElasticPoolsClient) GetDatabases(resourceGroupName string, serverName string, recommendedElasticPoolName string, databaseName string) (result Database, err error)

GetDatabases gets a database inside of a recommented elastic pool.

resourceGroupName is 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 is the name of the server. recommendedElasticPoolName is the name of the elastic pool to be retrieved. databaseName is the name of the database to be retrieved.

func (RecommendedElasticPoolsClient) GetDatabasesPreparer

func (client RecommendedElasticPoolsClient) GetDatabasesPreparer(resourceGroupName string, serverName string, recommendedElasticPoolName string, databaseName string) (*http.Request, error)

GetDatabasesPreparer prepares the GetDatabases request.

func (RecommendedElasticPoolsClient) GetDatabasesResponder

func (client RecommendedElasticPoolsClient) GetDatabasesResponder(resp *http.Response) (result Database, err error)

GetDatabasesResponder handles the response to the GetDatabases request. The method always closes the http.Response Body.

func (RecommendedElasticPoolsClient) GetDatabasesSender

func (client RecommendedElasticPoolsClient) GetDatabasesSender(req *http.Request) (*http.Response, error)

GetDatabasesSender sends the GetDatabases request. The method will close the http.Response Body if it receives an error.

func (RecommendedElasticPoolsClient) GetPreparer

func (client RecommendedElasticPoolsClient) GetPreparer(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

func (client RecommendedElasticPoolsClient) 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 (RecommendedElasticPoolsClient) ListByServer

func (client RecommendedElasticPoolsClient) ListByServer(resourceGroupName string, serverName string) (result RecommendedElasticPoolListResult, err error)

ListByServer returns recommended elastic pools.

resourceGroupName is 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 is the name of the server.

func (RecommendedElasticPoolsClient) ListByServerPreparer

func (client RecommendedElasticPoolsClient) ListByServerPreparer(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) ListDatabases

func (client RecommendedElasticPoolsClient) ListDatabases(resourceGroupName string, serverName string, recommendedElasticPoolName string) (result DatabaseListResult, err error)

ListDatabases returns a list of databases inside a recommented elastic pool.

resourceGroupName is 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 is the name of the server. recommendedElasticPoolName is the name of the recommended elastic pool to be retrieved.

func (RecommendedElasticPoolsClient) ListDatabasesPreparer

func (client RecommendedElasticPoolsClient) ListDatabasesPreparer(resourceGroupName string, serverName string, recommendedElasticPoolName string) (*http.Request, error)

ListDatabasesPreparer prepares the ListDatabases request.

func (RecommendedElasticPoolsClient) ListDatabasesResponder

func (client RecommendedElasticPoolsClient) ListDatabasesResponder(resp *http.Response) (result DatabaseListResult, err error)

ListDatabasesResponder handles the response to the ListDatabases request. The method always closes the http.Response Body.

func (RecommendedElasticPoolsClient) ListDatabasesSender

func (client RecommendedElasticPoolsClient) ListDatabasesSender(req *http.Request) (*http.Response, error)

ListDatabasesSender sends the ListDatabases request. The method will close the http.Response Body if it receives an error.

func (RecommendedElasticPoolsClient) ListMetrics

func (client RecommendedElasticPoolsClient) ListMetrics(resourceGroupName string, serverName string, recommendedElasticPoolName string) (result RecommendedElasticPoolListMetricsResult, err error)

ListMetrics returns a recommented elastic pool metrics.

resourceGroupName is 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 is the name of the server. recommendedElasticPoolName is the name of the recommended elastic pool to be retrieved.

func (RecommendedElasticPoolsClient) ListMetricsPreparer

func (client RecommendedElasticPoolsClient) ListMetricsPreparer(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 {
	ID                          *string `json:"id,omitempty"`
	Name                        *string `json:"name,omitempty"`
	Type                        *string `json:"type,omitempty"`
	*RecommendedIndexProperties `json:"properties,omitempty"`
}

RecommendedIndex is represents a database recommended index.

type RecommendedIndexAction

type RecommendedIndexAction string

RecommendedIndexAction enumerates the values for recommended index action.

const (
	// Create specifies the create state for recommended index action.
	Create RecommendedIndexAction = "Create"
	// Drop specifies the drop state for recommended index action.
	Drop RecommendedIndexAction = "Drop"
	// Rebuild specifies the rebuild state for recommended index action.
	Rebuild RecommendedIndexAction = "Rebuild"
)

type RecommendedIndexProperties

type RecommendedIndexProperties struct {
	Action          RecommendedIndexAction `json:"action,omitempty"`
	State           RecommendedIndexState  `json:"state,omitempty"`
	Created         *date.Time             `json:"created,omitempty"`
	LastModified    *date.Time             `json:"lastModified,omitempty"`
	IndexType       RecommendedIndexType   `json:"indexType,omitempty"`
	Schema          *string                `json:"schema,omitempty"`
	Table           *string                `json:"table,omitempty"`
	Columns         *[]string              `json:"columns,omitempty"`
	IncludedColumns *[]string              `json:"includedColumns,omitempty"`
	IndexScript     *string                `json:"indexScript,omitempty"`
	EstimatedImpact *[]OperationImpact     `json:"estimatedImpact,omitempty"`
	ReportedImpact  *[]OperationImpact     `json:"reportedImpact,omitempty"`
}

RecommendedIndexProperties is represents the properties of a database recommended index.

type RecommendedIndexState

type RecommendedIndexState string

RecommendedIndexState enumerates the values for recommended index state.

const (
	// Active specifies the active state for recommended index state.
	Active RecommendedIndexState = "Active"
	// Blocked specifies the blocked state for recommended index state.
	Blocked RecommendedIndexState = "Blocked"
	// Executing specifies the executing state for recommended index state.
	Executing RecommendedIndexState = "Executing"
	// Expired specifies the expired state for recommended index state.
	Expired RecommendedIndexState = "Expired"
	// Ignored specifies the ignored state for recommended index state.
	Ignored RecommendedIndexState = "Ignored"
	// Pending specifies the pending state for recommended index state.
	Pending RecommendedIndexState = "Pending"
	// PendingRevert specifies the pending revert state for recommended index
	// state.
	PendingRevert RecommendedIndexState = "Pending Revert"
	// Reverted specifies the reverted state for recommended index state.
	Reverted RecommendedIndexState = "Reverted"
	// Reverting specifies the reverting state for recommended index state.
	Reverting RecommendedIndexState = "Reverting"
	// Success specifies the success state for recommended index state.
	Success RecommendedIndexState = "Success"
	// Verifying specifies the verifying state for recommended index state.
	Verifying RecommendedIndexState = "Verifying"
)

type RecommendedIndexType

type RecommendedIndexType string

RecommendedIndexType enumerates the values for recommended index type.

const (
	// CLUSTERED specifies the clustered state for recommended index type.
	CLUSTERED RecommendedIndexType = "CLUSTERED"
	// CLUSTEREDCOLUMNSTORE specifies the clusteredcolumnstore state for
	// recommended index type.
	CLUSTEREDCOLUMNSTORE RecommendedIndexType = "CLUSTERED COLUMNSTORE"
	// COLUMNSTORE specifies the columnstore state for recommended index type.
	COLUMNSTORE RecommendedIndexType = "COLUMNSTORE"
	// NONCLUSTERED specifies the nonclustered state for recommended index
	// type.
	NONCLUSTERED RecommendedIndexType = "NONCLUSTERED"
)
type ReplicationLink struct {
	autorest.Response          `json:"-"`
	Name                       *string `json:"name,omitempty"`
	ID                         *string `json:"id,omitempty"`
	Location                   *string `json:"location,omitempty"`
	Type                       *string `json:"type,omitempty"`
	*ReplicationLinkProperties `json:"properties,omitempty"`
}

ReplicationLink is represents a database replication link.

type ReplicationLinkListResult

type ReplicationLinkListResult struct {
	autorest.Response `json:"-"`
	Value             *[]ReplicationLink `json:"value,omitempty"`
}

ReplicationLinkListResult is represents the response to a List database replication link request.

type ReplicationLinkProperties

type ReplicationLinkProperties struct {
	IsTerminationAllowed *bool            `json:"isTerminationAllowed,omitempty"`
	ReplicationMode      *string          `json:"replicationMode,omitempty"`
	PartnerServer        *string          `json:"partnerServer,omitempty"`
	PartnerDatabase      *string          `json:"partnerDatabase,omitempty"`
	PartnerLocation      *string          `json:"partnerLocation,omitempty"`
	Role                 ReplicationRole  `json:"role,omitempty"`
	PartnerRole          ReplicationRole  `json:"partnerRole,omitempty"`
	StartTime            *date.Time       `json:"startTime,omitempty"`
	PercentComplete      *int32           `json:"percentComplete,omitempty"`
	ReplicationState     ReplicationState `json:"replicationState,omitempty"`
}

ReplicationLinkProperties is represents the properties of a database replication link.

type ReplicationRole

type ReplicationRole string

ReplicationRole enumerates the values for replication role.

const (
	// ReplicationRoleCopy specifies the replication role copy state for
	// replication role.
	ReplicationRoleCopy ReplicationRole = "Copy"
	// ReplicationRoleNonReadableSecondary specifies the replication role non
	// readable secondary state for replication role.
	ReplicationRoleNonReadableSecondary ReplicationRole = "NonReadableSecondary"
	// ReplicationRolePrimary specifies the replication role primary state for
	// replication role.
	ReplicationRolePrimary ReplicationRole = "Primary"
	// ReplicationRoleSecondary specifies the replication role secondary state
	// for replication role.
	ReplicationRoleSecondary ReplicationRole = "Secondary"
	// ReplicationRoleSource specifies the replication role source state for
	// replication role.
	ReplicationRoleSource ReplicationRole = "Source"
)

type ReplicationState

type ReplicationState string

ReplicationState enumerates the values for replication state.

const (
	// CATCHUP specifies the catchup state for replication state.
	CATCHUP ReplicationState = "CATCH_UP"
	// PENDING specifies the pending state for replication state.
	PENDING ReplicationState = "PENDING"
	// SEEDING specifies the seeding state for replication state.
	SEEDING ReplicationState = "SEEDING"
	// SUSPENDED specifies the suspended state for replication state.
	SUSPENDED ReplicationState = "SUSPENDED"
)

type Resource

type Resource struct {
	ID   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
	Type *string `json:"type,omitempty"`
}

Resource is aRM resource.

type RestorePoint

type RestorePoint struct {
	ID                      *string `json:"id,omitempty"`
	Name                    *string `json:"name,omitempty"`
	Type                    *string `json:"type,omitempty"`
	*RestorePointProperties `json:"properties,omitempty"`
}

RestorePoint is represents a database restore point.

type RestorePointListResult

type RestorePointListResult struct {
	autorest.Response `json:"-"`
	Value             *[]RestorePoint `json:"value,omitempty"`
}

RestorePointListResult is represents the response to a list database restore points request.

type RestorePointProperties

type RestorePointProperties struct {
	RestorePointType         RestorePointTypes `json:"restorePointType,omitempty"`
	RestorePointCreationDate *date.Time        `json:"restorePointCreationDate,omitempty"`
	EarliestRestoreDate      *date.Time        `json:"earliestRestoreDate,omitempty"`
}

RestorePointProperties is represents the properties of a database restore point.

type RestorePointTypes

type RestorePointTypes string

RestorePointTypes enumerates the values for restore point types.

const (
	// CONTINUOUS specifies the continuous state for restore point types.
	CONTINUOUS RestorePointTypes = "CONTINUOUS"
	// DISCRETE specifies the discrete state for restore point types.
	DISCRETE RestorePointTypes = "DISCRETE"
)

type SampleName

type SampleName string

SampleName enumerates the values for sample name.

const (
	// AdventureWorksLT specifies the adventure works lt state for sample name.
	AdventureWorksLT SampleName = "AdventureWorksLT"
)

type SecurityAlertPolicyEmailAccountAdmins

type SecurityAlertPolicyEmailAccountAdmins string

SecurityAlertPolicyEmailAccountAdmins enumerates the values for security alert policy email account admins.

const (
	// SecurityAlertPolicyEmailAccountAdminsDisabled specifies the security
	// alert policy email account admins disabled state for security alert
	// policy email account admins.
	SecurityAlertPolicyEmailAccountAdminsDisabled SecurityAlertPolicyEmailAccountAdmins = "Disabled"
	// SecurityAlertPolicyEmailAccountAdminsEnabled specifies the security
	// alert policy email account admins enabled state for security alert
	// policy email account admins.
	SecurityAlertPolicyEmailAccountAdminsEnabled SecurityAlertPolicyEmailAccountAdmins = "Enabled"
)

type SecurityAlertPolicyState

type SecurityAlertPolicyState string

SecurityAlertPolicyState enumerates the values for security alert policy state.

const (
	// SecurityAlertPolicyStateDisabled specifies the security alert policy
	// state disabled state for security alert policy state.
	SecurityAlertPolicyStateDisabled SecurityAlertPolicyState = "Disabled"
	// SecurityAlertPolicyStateEnabled specifies the security alert policy
	// state enabled state for security alert policy state.
	SecurityAlertPolicyStateEnabled SecurityAlertPolicyState = "Enabled"
	// SecurityAlertPolicyStateNew specifies the security alert policy state
	// new state for security alert policy state.
	SecurityAlertPolicyStateNew SecurityAlertPolicyState = "New"
)

type SecurityAlertPolicyUseServerDefault

type SecurityAlertPolicyUseServerDefault string

SecurityAlertPolicyUseServerDefault enumerates the values for security alert policy use server default.

const (
	// SecurityAlertPolicyUseServerDefaultDisabled specifies the security alert
	// policy use server default disabled state for security alert policy use
	// server default.
	SecurityAlertPolicyUseServerDefaultDisabled SecurityAlertPolicyUseServerDefault = "Disabled"
	// SecurityAlertPolicyUseServerDefaultEnabled specifies the security alert
	// policy use server default enabled state for security alert policy use
	// server default.
	SecurityAlertPolicyUseServerDefaultEnabled SecurityAlertPolicyUseServerDefault = "Enabled"
)

type Server

type Server struct {
	autorest.Response `json:"-"`
	ID                *string             `json:"id,omitempty"`
	Name              *string             `json:"name,omitempty"`
	Type              *string             `json:"type,omitempty"`
	Tags              *map[string]*string `json:"tags,omitempty"`
	Location          *string             `json:"location,omitempty"`
	Kind              *string             `json:"kind,omitempty"`
	*ServerProperties `json:"properties,omitempty"`
}

Server is represents a server.

type ServerListResult

type ServerListResult struct {
	autorest.Response `json:"-"`
	Value             *[]Server `json:"value,omitempty"`
}

ServerListResult is represents the response to a get server request.

type ServerMetric

type ServerMetric struct {
	Name          *string    `json:"name,omitempty"`
	ResourceName  *string    `json:"resourceName,omitempty"`
	DisplayName   *string    `json:"displayName,omitempty"`
	CurrentValue  *float64   `json:"currentValue,omitempty"`
	Limit         *float64   `json:"limit,omitempty"`
	Unit          *string    `json:"unit,omitempty"`
	NextResetTime *date.Time `json:"nextResetTime,omitempty"`
}

ServerMetric is represents server metrics.

type ServerMetricListResult

type ServerMetricListResult struct {
	autorest.Response `json:"-"`
	Value             *[]ServerMetric `json:"value,omitempty"`
}

ServerMetricListResult is represents the response to a list server metrics request.

type ServerProperties

type ServerProperties struct {
	FullyQualifiedDomainName   *string       `json:"fullyQualifiedDomainName,omitempty"`
	Version                    ServerVersion `json:"version,omitempty"`
	AdministratorLogin         *string       `json:"administratorLogin,omitempty"`
	AdministratorLoginPassword *string       `json:"administratorLoginPassword,omitempty"`
	ExternalAdministratorSid   *uuid.UUID    `json:"externalAdministratorSid,omitempty"`
	ExternalAdministratorLogin *string       `json:"externalAdministratorLogin,omitempty"`
	State                      ServerState   `json:"state,omitempty"`
}

ServerProperties is represents the properties of a server.

type ServerState

type ServerState string

ServerState enumerates the values for server state.

const (
	// ServerStateDisabled specifies the server state disabled state for server
	// state.
	ServerStateDisabled ServerState = "Disabled"
	// ServerStateReady specifies the server state ready state for server
	// state.
	ServerStateReady ServerState = "Ready"
)

type ServerVersion

type ServerVersion string

ServerVersion enumerates the values for server version.

const (
	// OneTwoFullStopZero specifies the one two full stop zero state for server
	// version.
	OneTwoFullStopZero ServerVersion = "12.0"
	// TwoFullStopZero specifies the two full stop zero state for server
	// version.
	TwoFullStopZero ServerVersion = "2.0"
)

type ServerVersionCapability

type ServerVersionCapability struct {
	Name                         *string                         `json:"name,omitempty"`
	Status                       CapabilityStatus                `json:"status,omitempty"`
	SupportedEditions            *[]EditionCapability            `json:"supportedEditions,omitempty"`
	SupportedElasticPoolEditions *[]ElasticPoolEditionCapability `json:"supportedElasticPoolEditions,omitempty"`
}

ServerVersionCapability is the server capabilities.

type ServersClient

type ServersClient struct {
	ManagementClient
}

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) CreateOrUpdate

func (client ServersClient) CreateOrUpdate(resourceGroupName string, serverName string, parameters Server) (result Server, err error)

CreateOrUpdate creates or updates a new server.

resourceGroupName is 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 is the name of the server. parameters is the required parameters for creating or updating a server.

func (ServersClient) CreateOrUpdatePreparer

func (client ServersClient) CreateOrUpdatePreparer(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

func (client ServersClient) 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 (ServersClient) Delete

func (client ServersClient) Delete(resourceGroupName string, serverName string) (result autorest.Response, err error)

Delete deletes a SQL server.

resourceGroupName is 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 is the name of the server.

func (ServersClient) DeletePreparer

func (client ServersClient) DeletePreparer(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

func (client ServersClient) 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 (ServersClient) Get

func (client ServersClient) Get(resourceGroupName string, serverName string) (result Server, err error)

Get gets a server.

resourceGroupName is 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 is the name of the server.

func (ServersClient) GetPreparer

func (client ServersClient) GetPreparer(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

func (client ServersClient) 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 (ServersClient) GetServiceObjective

func (client ServersClient) GetServiceObjective(resourceGroupName string, serverName string, serviceObjectiveName string) (result ServiceObjective, err error)

GetServiceObjective gets a database service objective.

resourceGroupName is 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 is the name of the server. serviceObjectiveName is the name of the service objective to retrieve.

func (ServersClient) GetServiceObjectivePreparer

func (client ServersClient) GetServiceObjectivePreparer(resourceGroupName string, serverName string, serviceObjectiveName string) (*http.Request, error)

GetServiceObjectivePreparer prepares the GetServiceObjective request.

func (ServersClient) GetServiceObjectiveResponder

func (client ServersClient) GetServiceObjectiveResponder(resp *http.Response) (result ServiceObjective, err error)

GetServiceObjectiveResponder handles the response to the GetServiceObjective request. The method always closes the http.Response Body.

func (ServersClient) GetServiceObjectiveSender

func (client ServersClient) GetServiceObjectiveSender(req *http.Request) (*http.Response, error)

GetServiceObjectiveSender sends the GetServiceObjective request. The method will close the http.Response Body if it receives an error.

func (ServersClient) List

func (client ServersClient) List() (result ServerListResult, err error)

List returns a list of servers.

func (ServersClient) ListByResourceGroup

func (client ServersClient) ListByResourceGroup(resourceGroupName string) (result ServerListResult, err error)

ListByResourceGroup returns a list of servers in a resource group.

resourceGroupName is 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(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

func (client ServersClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (ServersClient) ListPreparer

func (client ServersClient) ListPreparer() (*http.Request, error)

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

func (client ServersClient) 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.

func (ServersClient) ListServiceObjectives

func (client ServersClient) ListServiceObjectives(resourceGroupName string, serverName string) (result ServiceObjectiveListResult, err error)

ListServiceObjectives returns database service objectives.

resourceGroupName is 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 is the name of the server.

func (ServersClient) ListServiceObjectivesPreparer

func (client ServersClient) ListServiceObjectivesPreparer(resourceGroupName string, serverName string) (*http.Request, error)

ListServiceObjectivesPreparer prepares the ListServiceObjectives request.

func (ServersClient) ListServiceObjectivesResponder

func (client ServersClient) ListServiceObjectivesResponder(resp *http.Response) (result ServiceObjectiveListResult, err error)

ListServiceObjectivesResponder handles the response to the ListServiceObjectives request. The method always closes the http.Response Body.

func (ServersClient) ListServiceObjectivesSender

func (client ServersClient) ListServiceObjectivesSender(req *http.Request) (*http.Response, error)

ListServiceObjectivesSender sends the ListServiceObjectives request. The method will close the http.Response Body if it receives an error.

func (ServersClient) ListUsages

func (client ServersClient) ListUsages(resourceGroupName string, serverName string) (result ServerMetricListResult, err error)

ListUsages returns server usages.

resourceGroupName is 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 is the name of the server.

func (ServersClient) ListUsagesPreparer

func (client ServersClient) ListUsagesPreparer(resourceGroupName string, serverName string) (*http.Request, error)

ListUsagesPreparer prepares the ListUsages request.

func (ServersClient) ListUsagesResponder

func (client ServersClient) ListUsagesResponder(resp *http.Response) (result ServerMetricListResult, err error)

ListUsagesResponder handles the response to the ListUsages request. The method always closes the http.Response Body.

func (ServersClient) ListUsagesSender

func (client ServersClient) ListUsagesSender(req *http.Request) (*http.Response, error)

ListUsagesSender sends the ListUsages request. The method will close the http.Response Body if it receives an error.

type ServiceObjective

type ServiceObjective struct {
	autorest.Response           `json:"-"`
	Name                        *string `json:"name,omitempty"`
	ID                          *string `json:"id,omitempty"`
	*ServiceObjectiveProperties `json:"properties,omitempty"`
}

ServiceObjective is represents a database service objective.

type ServiceObjectiveCapability

type ServiceObjectiveCapability struct {
	Name              *string          `json:"name,omitempty"`
	Status            CapabilityStatus `json:"status,omitempty"`
	*PerformanceLevel `json:"performanceLevel,omitempty"`
	ID                *uuid.UUID           `json:"id,omitempty"`
	SupportedMaxSizes *[]MaxSizeCapability `json:"supportedMaxSizes,omitempty"`
	IncludedMaxSize   *MaxSizeCapability   `json:"includedMaxSize,omitempty"`
}

ServiceObjectiveCapability is the service objectives capability.

type ServiceObjectiveListResult

type ServiceObjectiveListResult struct {
	autorest.Response `json:"-"`
	Value             *[]ServiceObjective `json:"value,omitempty"`
}

ServiceObjectiveListResult is 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 specifies the service objective name basic
	// state for service objective name.
	ServiceObjectiveNameBasic ServiceObjectiveName = "Basic"
	// ServiceObjectiveNameElasticPool specifies the service objective name
	// elastic pool state for service objective name.
	ServiceObjectiveNameElasticPool ServiceObjectiveName = "ElasticPool"
	// ServiceObjectiveNameP1 specifies the service objective name p1 state for
	// service objective name.
	ServiceObjectiveNameP1 ServiceObjectiveName = "P1"
	// ServiceObjectiveNameP11 specifies the service objective name p11 state
	// for service objective name.
	ServiceObjectiveNameP11 ServiceObjectiveName = "P11"
	// ServiceObjectiveNameP15 specifies the service objective name p15 state
	// for service objective name.
	ServiceObjectiveNameP15 ServiceObjectiveName = "P15"
	// ServiceObjectiveNameP2 specifies the service objective name p2 state for
	// service objective name.
	ServiceObjectiveNameP2 ServiceObjectiveName = "P2"
	// ServiceObjectiveNameP3 specifies the service objective name p3 state for
	// service objective name.
	ServiceObjectiveNameP3 ServiceObjectiveName = "P3"
	// ServiceObjectiveNameP4 specifies the service objective name p4 state for
	// service objective name.
	ServiceObjectiveNameP4 ServiceObjectiveName = "P4"
	// ServiceObjectiveNameP6 specifies the service objective name p6 state for
	// service objective name.
	ServiceObjectiveNameP6 ServiceObjectiveName = "P6"
	// ServiceObjectiveNameS0 specifies the service objective name s0 state for
	// service objective name.
	ServiceObjectiveNameS0 ServiceObjectiveName = "S0"
	// ServiceObjectiveNameS1 specifies the service objective name s1 state for
	// service objective name.
	ServiceObjectiveNameS1 ServiceObjectiveName = "S1"
	// ServiceObjectiveNameS2 specifies the service objective name s2 state for
	// service objective name.
	ServiceObjectiveNameS2 ServiceObjectiveName = "S2"
	// ServiceObjectiveNameS3 specifies the service objective name s3 state for
	// service objective name.
	ServiceObjectiveNameS3 ServiceObjectiveName = "S3"
	// ServiceObjectiveNameSystem specifies the service objective name system
	// state for service objective name.
	ServiceObjectiveNameSystem ServiceObjectiveName = "System"
	// ServiceObjectiveNameSystem2 specifies the service objective name system
	// 2 state for service objective name.
	ServiceObjectiveNameSystem2 ServiceObjectiveName = "System2"
)

type ServiceObjectiveProperties

type ServiceObjectiveProperties struct {
	ServiceObjectiveName *string `json:"serviceObjectiveName,omitempty"`
	IsDefault            *bool   `json:"isDefault,omitempty"`
	IsSystem             *bool   `json:"isSystem,omitempty"`
	Description          *string `json:"description,omitempty"`
	Enabled              *bool   `json:"enabled,omitempty"`
}

ServiceObjectiveProperties is represents the properties of a database service objective.

type ServiceTierAdvisor

type ServiceTierAdvisor struct {
	autorest.Response             `json:"-"`
	Name                          *string `json:"name,omitempty"`
	ID                            *string `json:"id,omitempty"`
	*ServiceTierAdvisorProperties `json:"properties,omitempty"`
}

ServiceTierAdvisor is represents a Service Tier Advisor.

type ServiceTierAdvisorListResult

type ServiceTierAdvisorListResult struct {
	autorest.Response `json:"-"`
	Value             *[]ServiceTierAdvisor `json:"value,omitempty"`
}

ServiceTierAdvisorListResult is represents the response to a list service tier advisor request.

type ServiceTierAdvisorProperties

type ServiceTierAdvisorProperties struct {
	ObservationPeriodStart                                 *date.Time        `json:"observationPeriodStart,omitempty"`
	ObservationPeriodEnd                                   *date.Time        `json:"observationPeriodEnd,omitempty"`
	ActiveTimeRatio                                        *float64          `json:"activeTimeRatio,omitempty"`
	MinDtu                                                 *float64          `json:"minDtu,omitempty"`
	AvgDtu                                                 *float64          `json:"avgDtu,omitempty"`
	MaxDtu                                                 *float64          `json:"maxDtu,omitempty"`
	MaxSizeInGB                                            *float64          `json:"maxSizeInGB,omitempty"`
	ServiceLevelObjectiveUsageMetrics                      *[]SloUsageMetric `json:"serviceLevelObjectiveUsageMetrics,omitempty"`
	CurrentServiceLevelObjective                           *string           `json:"currentServiceLevelObjective,omitempty"`
	CurrentServiceLevelObjectiveID                         *uuid.UUID        `json:"currentServiceLevelObjectiveId,omitempty"`
	UsageBasedRecommendationServiceLevelObjective          *string           `json:"usageBasedRecommendationServiceLevelObjective,omitempty"`
	UsageBasedRecommendationServiceLevelObjectiveID        *uuid.UUID        `json:"usageBasedRecommendationServiceLevelObjectiveId,omitempty"`
	DatabaseSizeBasedRecommendationServiceLevelObjective   *string           `json:"databaseSizeBasedRecommendationServiceLevelObjective,omitempty"`
	DatabaseSizeBasedRecommendationServiceLevelObjectiveID *uuid.UUID        `json:"databaseSizeBasedRecommendationServiceLevelObjectiveId,omitempty"`
	DisasterPlanBasedRecommendationServiceLevelObjective   *string           `json:"disasterPlanBasedRecommendationServiceLevelObjective,omitempty"`
	DisasterPlanBasedRecommendationServiceLevelObjectiveID *uuid.UUID        `json:"disasterPlanBasedRecommendationServiceLevelObjectiveId,omitempty"`
	OverallRecommendationServiceLevelObjective             *string           `json:"overallRecommendationServiceLevelObjective,omitempty"`
	OverallRecommendationServiceLevelObjectiveID           *uuid.UUID        `json:"overallRecommendationServiceLevelObjectiveId,omitempty"`
	Confidence                                             *float64          `json:"confidence,omitempty"`
}

ServiceTierAdvisorProperties is represents the properties of a Service Tier Advisor.

type SloUsageMetric

type SloUsageMetric struct {
	ServiceLevelObjective   ServiceObjectiveName `json:"serviceLevelObjective,omitempty"`
	ServiceLevelObjectiveID *uuid.UUID           `json:"serviceLevelObjectiveId,omitempty"`
	InRangeTimeRatio        *float64             `json:"inRangeTimeRatio,omitempty"`
}

SloUsageMetric is represents a Slo Usage Metric.

type StorageKeyType

type StorageKeyType string

StorageKeyType enumerates the values for storage key type.

const (
	// SharedAccessKey specifies the shared access key state for storage key
	// type.
	SharedAccessKey StorageKeyType = "SharedAccessKey"
	// StorageAccessKey specifies the storage access key state for storage key
	// type.
	StorageAccessKey StorageKeyType = "StorageAccessKey"
)

type SubResource

type SubResource struct {
	Name *string `json:"name,omitempty"`
	ID   *string `json:"id,omitempty"`
}

SubResource is subresource properties

type TrackedResource

type TrackedResource struct {
	ID       *string             `json:"id,omitempty"`
	Name     *string             `json:"name,omitempty"`
	Type     *string             `json:"type,omitempty"`
	Tags     *map[string]*string `json:"tags,omitempty"`
	Location *string             `json:"location,omitempty"`
}

TrackedResource is aRM tracked top level resource.

type TransparentDataEncryption

type TransparentDataEncryption struct {
	autorest.Response                    `json:"-"`
	Name                                 *string `json:"name,omitempty"`
	ID                                   *string `json:"id,omitempty"`
	*TransparentDataEncryptionProperties `json:"properties,omitempty"`
}

TransparentDataEncryption is represents a database transparent data encryption .

type TransparentDataEncryptionActivity

type TransparentDataEncryptionActivity struct {
	Name                                         *string `json:"name,omitempty"`
	ID                                           *string `json:"id,omitempty"`
	*TransparentDataEncryptionActivityProperties `json:"properties,omitempty"`
}

TransparentDataEncryptionActivity is represents a database transparent data encryption Scan.

type TransparentDataEncryptionActivityListResult

type TransparentDataEncryptionActivityListResult struct {
	autorest.Response `json:"-"`
	Value             *[]TransparentDataEncryptionActivity `json:"value,omitempty"`
}

TransparentDataEncryptionActivityListResult is represents the response to a list database transparent data encryption activity request.

type TransparentDataEncryptionActivityProperties

type TransparentDataEncryptionActivityProperties struct {
	Status          TransparentDataEncryptionActivityStatus `json:"status,omitempty"`
	PercentComplete *float64                                `json:"percentComplete,omitempty"`
}

TransparentDataEncryptionActivityProperties is 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 specifies the decrypting state for transparent data
	// encryption activity status.
	Decrypting TransparentDataEncryptionActivityStatus = "Decrypting"
	// Encrypting specifies the encrypting state for transparent data
	// encryption activity status.
	Encrypting TransparentDataEncryptionActivityStatus = "Encrypting"
)

type TransparentDataEncryptionProperties

type TransparentDataEncryptionProperties struct {
	Status TransparentDataEncryptionStatus `json:"status,omitempty"`
}

TransparentDataEncryptionProperties is 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 specifies the transparent data
	// encryption status disabled state for transparent data encryption status.
	TransparentDataEncryptionStatusDisabled TransparentDataEncryptionStatus = "Disabled"
	// TransparentDataEncryptionStatusEnabled specifies the transparent data
	// encryption status enabled state for transparent data encryption status.
	TransparentDataEncryptionStatusEnabled TransparentDataEncryptionStatus = "Enabled"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL