azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-03-01-preview/sql Index | Files | Directories

package sql

import "github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-03-01-preview/sql"

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

Package Files

backuplongtermretentionpolicies.go backuplongtermretentionvaults.go capabilities.go client.go databaseautomatictuning.go databaseblobauditingpolicies.go databaseoperations.go databases.go databasethreatdetectionpolicies.go databaseusages.go databasevulnerabilityassessmentrulebaselines.go databasevulnerabilityassessments.go datamaskingpolicies.go datamaskingrules.go datawarehouseuseractivities.go elasticpoolactivities.go elasticpooldatabaseactivities.go elasticpools.go encryptionprotectors.go extendeddatabaseblobauditingpolicies.go extendedserverblobauditingpolicies.go failovergroups.go firewallrules.go geobackuppolicies.go jobagents.go jobcredentials.go jobexecutions.go jobs.go jobstepexecutions.go jobsteps.go jobtargetexecutions.go jobtargetgroups.go jobversions.go managedbackupshorttermretentionpolicies.go manageddatabases.go managedinstanceadministrators.go managedinstances.go models.go operations.go recoverabledatabases.go replicationlinks.go restorabledroppeddatabases.go restorabledroppedmanageddatabases.go restorepoints.go sensitivitylabels.go serverautomatictuning.go serverazureadadministrators.go serverblobauditingpolicies.go servercommunicationlinks.go serverconnectionpolicies.go serverdnsaliases.go serverkeys.go servers.go serversecurityalertpolicies.go serverusages.go serviceobjectives.go servicetieradvisors.go subscriptionusages.go syncagents.go syncgroups.go syncmembers.go transparentdataencryptionactivities.go transparentdataencryptions.go version.go virtualclusters.go virtualnetworkrules.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Sql
    DefaultBaseURI = "https://management.azure.com"
)

func UserAgent Uses

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version Uses

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

type AuthenticationType Uses

type AuthenticationType string

AuthenticationType enumerates the values for authentication type.

const (
    // ADPassword ...
    ADPassword AuthenticationType = "ADPassword"
    // SQL ...
    SQL AuthenticationType = "SQL"
)

func PossibleAuthenticationTypeValues Uses

func PossibleAuthenticationTypeValues() []AuthenticationType

PossibleAuthenticationTypeValues returns an array of possible values for the AuthenticationType const type.

type AutomaticTuningDisabledReason Uses

type AutomaticTuningDisabledReason string

AutomaticTuningDisabledReason enumerates the values for automatic tuning disabled reason.

const (
    // AutoConfigured ...
    AutoConfigured AutomaticTuningDisabledReason = "AutoConfigured"
    // Default ...
    Default AutomaticTuningDisabledReason = "Default"
    // Disabled ...
    Disabled AutomaticTuningDisabledReason = "Disabled"
    // InheritedFromServer ...
    InheritedFromServer AutomaticTuningDisabledReason = "InheritedFromServer"
    // NotSupported ...
    NotSupported AutomaticTuningDisabledReason = "NotSupported"
    // QueryStoreOff ...
    QueryStoreOff AutomaticTuningDisabledReason = "QueryStoreOff"
    // QueryStoreReadOnly ...
    QueryStoreReadOnly AutomaticTuningDisabledReason = "QueryStoreReadOnly"
)

func PossibleAutomaticTuningDisabledReasonValues Uses

func PossibleAutomaticTuningDisabledReasonValues() []AutomaticTuningDisabledReason

PossibleAutomaticTuningDisabledReasonValues returns an array of possible values for the AutomaticTuningDisabledReason const type.

type AutomaticTuningMode Uses

type AutomaticTuningMode string

AutomaticTuningMode enumerates the values for automatic tuning mode.

const (
    // Auto ...
    Auto AutomaticTuningMode = "Auto"
    // Custom ...
    Custom AutomaticTuningMode = "Custom"
    // Inherit ...
    Inherit AutomaticTuningMode = "Inherit"
    // Unspecified ...
    Unspecified AutomaticTuningMode = "Unspecified"
)

func PossibleAutomaticTuningModeValues Uses

func PossibleAutomaticTuningModeValues() []AutomaticTuningMode

PossibleAutomaticTuningModeValues returns an array of possible values for the AutomaticTuningMode const type.

type AutomaticTuningOptionModeActual Uses

type AutomaticTuningOptionModeActual string

AutomaticTuningOptionModeActual enumerates the values for automatic tuning option mode actual.

const (
    // Off ...
    Off AutomaticTuningOptionModeActual = "Off"
    // On ...
    On  AutomaticTuningOptionModeActual = "On"
)

func PossibleAutomaticTuningOptionModeActualValues Uses

func PossibleAutomaticTuningOptionModeActualValues() []AutomaticTuningOptionModeActual

PossibleAutomaticTuningOptionModeActualValues returns an array of possible values for the AutomaticTuningOptionModeActual const type.

type AutomaticTuningOptionModeDesired Uses

type AutomaticTuningOptionModeDesired string

AutomaticTuningOptionModeDesired enumerates the values for automatic tuning option mode desired.

const (
    // AutomaticTuningOptionModeDesiredDefault ...
    AutomaticTuningOptionModeDesiredDefault AutomaticTuningOptionModeDesired = "Default"
    // AutomaticTuningOptionModeDesiredOff ...
    AutomaticTuningOptionModeDesiredOff AutomaticTuningOptionModeDesired = "Off"
    // AutomaticTuningOptionModeDesiredOn ...
    AutomaticTuningOptionModeDesiredOn AutomaticTuningOptionModeDesired = "On"
)

func PossibleAutomaticTuningOptionModeDesiredValues Uses

func PossibleAutomaticTuningOptionModeDesiredValues() []AutomaticTuningOptionModeDesired

PossibleAutomaticTuningOptionModeDesiredValues returns an array of possible values for the AutomaticTuningOptionModeDesired const type.

type AutomaticTuningOptions Uses

type AutomaticTuningOptions struct {
    // DesiredState - Automatic tuning option desired state. Possible values include: 'AutomaticTuningOptionModeDesiredOff', 'AutomaticTuningOptionModeDesiredOn', 'AutomaticTuningOptionModeDesiredDefault'
    DesiredState AutomaticTuningOptionModeDesired `json:"desiredState,omitempty"`
    // ActualState - READ-ONLY; Automatic tuning option actual state. Possible values include: 'Off', 'On'
    ActualState AutomaticTuningOptionModeActual `json:"actualState,omitempty"`
    // ReasonCode - READ-ONLY; Reason code if desired and actual state are different.
    ReasonCode *int32 `json:"reasonCode,omitempty"`
    // ReasonDesc - READ-ONLY; Reason description if desired and actual state are different. Possible values include: 'Default', 'Disabled', 'AutoConfigured', 'InheritedFromServer', 'QueryStoreOff', 'QueryStoreReadOnly', 'NotSupported'
    ReasonDesc AutomaticTuningDisabledReason `json:"reasonDesc,omitempty"`
}

AutomaticTuningOptions automatic tuning properties for individual advisors.

type AutomaticTuningServerMode Uses

type AutomaticTuningServerMode string

AutomaticTuningServerMode enumerates the values for automatic tuning server mode.

const (
    // AutomaticTuningServerModeAuto ...
    AutomaticTuningServerModeAuto AutomaticTuningServerMode = "Auto"
    // AutomaticTuningServerModeCustom ...
    AutomaticTuningServerModeCustom AutomaticTuningServerMode = "Custom"
    // AutomaticTuningServerModeUnspecified ...
    AutomaticTuningServerModeUnspecified AutomaticTuningServerMode = "Unspecified"
)

func PossibleAutomaticTuningServerModeValues Uses

func PossibleAutomaticTuningServerModeValues() []AutomaticTuningServerMode

PossibleAutomaticTuningServerModeValues returns an array of possible values for the AutomaticTuningServerMode const type.

type AutomaticTuningServerOptions Uses

type AutomaticTuningServerOptions struct {
    // DesiredState - Automatic tuning option desired state. Possible values include: 'AutomaticTuningOptionModeDesiredOff', 'AutomaticTuningOptionModeDesiredOn', 'AutomaticTuningOptionModeDesiredDefault'
    DesiredState AutomaticTuningOptionModeDesired `json:"desiredState,omitempty"`
    // ActualState - READ-ONLY; Automatic tuning option actual state. Possible values include: 'Off', 'On'
    ActualState AutomaticTuningOptionModeActual `json:"actualState,omitempty"`
    // ReasonCode - READ-ONLY; Reason code if desired and actual state are different.
    ReasonCode *int32 `json:"reasonCode,omitempty"`
    // ReasonDesc - READ-ONLY; Reason description if desired and actual state are different. Possible values include: 'AutomaticTuningServerReasonDefault', 'AutomaticTuningServerReasonDisabled', 'AutomaticTuningServerReasonAutoConfigured'
    ReasonDesc AutomaticTuningServerReason `json:"reasonDesc,omitempty"`
}

AutomaticTuningServerOptions automatic tuning properties for individual advisors.

type AutomaticTuningServerProperties Uses

type AutomaticTuningServerProperties struct {
    // DesiredState - Automatic tuning desired state. Possible values include: 'AutomaticTuningServerModeCustom', 'AutomaticTuningServerModeAuto', 'AutomaticTuningServerModeUnspecified'
    DesiredState AutomaticTuningServerMode `json:"desiredState,omitempty"`
    // ActualState - READ-ONLY; Automatic tuning actual state. Possible values include: 'AutomaticTuningServerModeCustom', 'AutomaticTuningServerModeAuto', 'AutomaticTuningServerModeUnspecified'
    ActualState AutomaticTuningServerMode `json:"actualState,omitempty"`
    // Options - Automatic tuning options definition.
    Options map[string]*AutomaticTuningServerOptions `json:"options"`
}

AutomaticTuningServerProperties server-level Automatic Tuning properties.

func (AutomaticTuningServerProperties) MarshalJSON Uses

func (atsp AutomaticTuningServerProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AutomaticTuningServerProperties.

type AutomaticTuningServerReason Uses

type AutomaticTuningServerReason string

AutomaticTuningServerReason enumerates the values for automatic tuning server reason.

const (
    // AutomaticTuningServerReasonAutoConfigured ...
    AutomaticTuningServerReasonAutoConfigured AutomaticTuningServerReason = "AutoConfigured"
    // AutomaticTuningServerReasonDefault ...
    AutomaticTuningServerReasonDefault AutomaticTuningServerReason = "Default"
    // AutomaticTuningServerReasonDisabled ...
    AutomaticTuningServerReasonDisabled AutomaticTuningServerReason = "Disabled"
)

func PossibleAutomaticTuningServerReasonValues Uses

func PossibleAutomaticTuningServerReasonValues() []AutomaticTuningServerReason

PossibleAutomaticTuningServerReasonValues returns an array of possible values for the AutomaticTuningServerReason const type.

type BackupLongTermRetentionPoliciesClient Uses

type BackupLongTermRetentionPoliciesClient struct {
    BaseClient
}

BackupLongTermRetentionPoliciesClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewBackupLongTermRetentionPoliciesClient Uses

func NewBackupLongTermRetentionPoliciesClient(subscriptionID string) BackupLongTermRetentionPoliciesClient

NewBackupLongTermRetentionPoliciesClient creates an instance of the BackupLongTermRetentionPoliciesClient client.

func NewBackupLongTermRetentionPoliciesClientWithBaseURI Uses

func NewBackupLongTermRetentionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) BackupLongTermRetentionPoliciesClient

NewBackupLongTermRetentionPoliciesClientWithBaseURI creates an instance of the BackupLongTermRetentionPoliciesClient client.

func (BackupLongTermRetentionPoliciesClient) CreateOrUpdate Uses

func (client BackupLongTermRetentionPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters BackupLongTermRetentionPolicy) (result BackupLongTermRetentionPoliciesCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates a database backup long term retention policy Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database parameters - the required parameters to update a backup long term retention policy

func (BackupLongTermRetentionPoliciesClient) CreateOrUpdatePreparer Uses

func (client BackupLongTermRetentionPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters BackupLongTermRetentionPolicy) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (BackupLongTermRetentionPoliciesClient) CreateOrUpdateResponder Uses

func (client BackupLongTermRetentionPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result BackupLongTermRetentionPolicy, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (BackupLongTermRetentionPoliciesClient) CreateOrUpdateSender Uses

func (client BackupLongTermRetentionPoliciesClient) CreateOrUpdateSender(req *http.Request) (future BackupLongTermRetentionPoliciesCreateOrUpdateFuture, err error)

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

func (BackupLongTermRetentionPoliciesClient) Get Uses

func (client BackupLongTermRetentionPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result BackupLongTermRetentionPolicy, err error)

Get returns a database backup long term retention policy Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database.

func (BackupLongTermRetentionPoliciesClient) GetPreparer Uses

func (client BackupLongTermRetentionPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (BackupLongTermRetentionPoliciesClient) GetResponder Uses

func (client BackupLongTermRetentionPoliciesClient) GetResponder(resp *http.Response) (result BackupLongTermRetentionPolicy, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (BackupLongTermRetentionPoliciesClient) GetSender Uses

func (client BackupLongTermRetentionPoliciesClient) GetSender(req *http.Request) (*http.Response, error)

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

func (BackupLongTermRetentionPoliciesClient) ListByDatabase Uses

func (client BackupLongTermRetentionPoliciesClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result BackupLongTermRetentionPolicyListResult, err error)

ListByDatabase returns a database backup long term retention policy Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database.

func (BackupLongTermRetentionPoliciesClient) ListByDatabasePreparer Uses

func (client BackupLongTermRetentionPoliciesClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

ListByDatabasePreparer prepares the ListByDatabase request.

func (BackupLongTermRetentionPoliciesClient) ListByDatabaseResponder Uses

func (client BackupLongTermRetentionPoliciesClient) ListByDatabaseResponder(resp *http.Response) (result BackupLongTermRetentionPolicyListResult, err error)

ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.

func (BackupLongTermRetentionPoliciesClient) ListByDatabaseSender Uses

func (client BackupLongTermRetentionPoliciesClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)

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

type BackupLongTermRetentionPoliciesCreateOrUpdateFuture Uses

type BackupLongTermRetentionPoliciesCreateOrUpdateFuture struct {
    azure.Future
}

BackupLongTermRetentionPoliciesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*BackupLongTermRetentionPoliciesCreateOrUpdateFuture) Result Uses

func (future *BackupLongTermRetentionPoliciesCreateOrUpdateFuture) Result(client BackupLongTermRetentionPoliciesClient) (bltrp BackupLongTermRetentionPolicy, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type BackupLongTermRetentionPolicy Uses

type BackupLongTermRetentionPolicy struct {
    autorest.Response `json:"-"`
    // Location - READ-ONLY; The geo-location where the resource lives
    Location *string `json:"location,omitempty"`
    // BackupLongTermRetentionPolicyProperties - The properties of the backup long term retention policy
    *BackupLongTermRetentionPolicyProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

BackupLongTermRetentionPolicy a backup long term retention policy

func (BackupLongTermRetentionPolicy) MarshalJSON Uses

func (bltrp BackupLongTermRetentionPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for BackupLongTermRetentionPolicy.

func (*BackupLongTermRetentionPolicy) UnmarshalJSON Uses

func (bltrp *BackupLongTermRetentionPolicy) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for BackupLongTermRetentionPolicy struct.

type BackupLongTermRetentionPolicyListResult Uses

type BackupLongTermRetentionPolicyListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of long-term retention policies in the database.
    Value *[]BackupLongTermRetentionPolicy `json:"value,omitempty"`
}

BackupLongTermRetentionPolicyListResult represents the response to a list long-term retention policies request.

type BackupLongTermRetentionPolicyProperties Uses

type BackupLongTermRetentionPolicyProperties struct {
    // State - The status of the backup long term retention policy. Possible values include: 'BackupLongTermRetentionPolicyStateDisabled', 'BackupLongTermRetentionPolicyStateEnabled'
    State BackupLongTermRetentionPolicyState `json:"state,omitempty"`
    // RecoveryServicesBackupPolicyResourceID - The azure recovery services backup protection policy resource id
    RecoveryServicesBackupPolicyResourceID *string `json:"recoveryServicesBackupPolicyResourceId,omitempty"`
}

BackupLongTermRetentionPolicyProperties the properties of a backup long term retention policy

type BackupLongTermRetentionPolicyState Uses

type BackupLongTermRetentionPolicyState string

BackupLongTermRetentionPolicyState enumerates the values for backup long term retention policy state.

const (
    // BackupLongTermRetentionPolicyStateDisabled ...
    BackupLongTermRetentionPolicyStateDisabled BackupLongTermRetentionPolicyState = "Disabled"
    // BackupLongTermRetentionPolicyStateEnabled ...
    BackupLongTermRetentionPolicyStateEnabled BackupLongTermRetentionPolicyState = "Enabled"
)

func PossibleBackupLongTermRetentionPolicyStateValues Uses

func PossibleBackupLongTermRetentionPolicyStateValues() []BackupLongTermRetentionPolicyState

PossibleBackupLongTermRetentionPolicyStateValues returns an array of possible values for the BackupLongTermRetentionPolicyState const type.

type BackupLongTermRetentionVault Uses

type BackupLongTermRetentionVault struct {
    autorest.Response `json:"-"`
    // Location - READ-ONLY; The geo-location where the resource lives
    Location *string `json:"location,omitempty"`
    // BackupLongTermRetentionVaultProperties - The properties of the backup long term retention vault
    *BackupLongTermRetentionVaultProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

BackupLongTermRetentionVault a backup long term retention vault

func (BackupLongTermRetentionVault) MarshalJSON Uses

func (bltrv BackupLongTermRetentionVault) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for BackupLongTermRetentionVault.

func (*BackupLongTermRetentionVault) UnmarshalJSON Uses

func (bltrv *BackupLongTermRetentionVault) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for BackupLongTermRetentionVault struct.

type BackupLongTermRetentionVaultListResult Uses

type BackupLongTermRetentionVaultListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of vaults in the server.
    Value *[]BackupLongTermRetentionVault `json:"value,omitempty"`
}

BackupLongTermRetentionVaultListResult represents the response to a list vaults request.

type BackupLongTermRetentionVaultProperties Uses

type BackupLongTermRetentionVaultProperties struct {
    // RecoveryServicesVaultResourceID - The azure recovery services vault resource id
    RecoveryServicesVaultResourceID *string `json:"recoveryServicesVaultResourceId,omitempty"`
}

BackupLongTermRetentionVaultProperties the properties of a backup long term retention vault.

type BackupLongTermRetentionVaultsClient Uses

type BackupLongTermRetentionVaultsClient struct {
    BaseClient
}

BackupLongTermRetentionVaultsClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewBackupLongTermRetentionVaultsClient Uses

func NewBackupLongTermRetentionVaultsClient(subscriptionID string) BackupLongTermRetentionVaultsClient

NewBackupLongTermRetentionVaultsClient creates an instance of the BackupLongTermRetentionVaultsClient client.

func NewBackupLongTermRetentionVaultsClientWithBaseURI Uses

func NewBackupLongTermRetentionVaultsClientWithBaseURI(baseURI string, subscriptionID string) BackupLongTermRetentionVaultsClient

NewBackupLongTermRetentionVaultsClientWithBaseURI creates an instance of the BackupLongTermRetentionVaultsClient client.

func (BackupLongTermRetentionVaultsClient) CreateOrUpdate Uses

func (client BackupLongTermRetentionVaultsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, parameters BackupLongTermRetentionVault) (result BackupLongTermRetentionVaultsCreateOrUpdateFuture, err error)

CreateOrUpdate updates a server backup long term retention vault Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. parameters - the required parameters to update a backup long term retention vault

func (BackupLongTermRetentionVaultsClient) CreateOrUpdatePreparer Uses

func (client BackupLongTermRetentionVaultsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters BackupLongTermRetentionVault) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (BackupLongTermRetentionVaultsClient) CreateOrUpdateResponder Uses

func (client BackupLongTermRetentionVaultsClient) CreateOrUpdateResponder(resp *http.Response) (result BackupLongTermRetentionVault, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (BackupLongTermRetentionVaultsClient) CreateOrUpdateSender Uses

func (client BackupLongTermRetentionVaultsClient) CreateOrUpdateSender(req *http.Request) (future BackupLongTermRetentionVaultsCreateOrUpdateFuture, err error)

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

func (BackupLongTermRetentionVaultsClient) Get Uses

func (client BackupLongTermRetentionVaultsClient) Get(ctx context.Context, resourceGroupName string, serverName string) (result BackupLongTermRetentionVault, err error)

Get gets a server backup long term retention vault Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.

func (BackupLongTermRetentionVaultsClient) GetPreparer Uses

func (client BackupLongTermRetentionVaultsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (BackupLongTermRetentionVaultsClient) GetResponder Uses

func (client BackupLongTermRetentionVaultsClient) GetResponder(resp *http.Response) (result BackupLongTermRetentionVault, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (BackupLongTermRetentionVaultsClient) GetSender Uses

func (client BackupLongTermRetentionVaultsClient) GetSender(req *http.Request) (*http.Response, error)

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

func (BackupLongTermRetentionVaultsClient) ListByServer Uses

func (client BackupLongTermRetentionVaultsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result BackupLongTermRetentionVaultListResult, err error)

ListByServer gets server backup long term retention vaults in a server Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.

func (BackupLongTermRetentionVaultsClient) ListByServerPreparer Uses

func (client BackupLongTermRetentionVaultsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

ListByServerPreparer prepares the ListByServer request.

func (BackupLongTermRetentionVaultsClient) ListByServerResponder Uses

func (client BackupLongTermRetentionVaultsClient) ListByServerResponder(resp *http.Response) (result BackupLongTermRetentionVaultListResult, err error)

ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.

func (BackupLongTermRetentionVaultsClient) ListByServerSender Uses

func (client BackupLongTermRetentionVaultsClient) ListByServerSender(req *http.Request) (*http.Response, error)

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

type BackupLongTermRetentionVaultsCreateOrUpdateFuture Uses

type BackupLongTermRetentionVaultsCreateOrUpdateFuture struct {
    azure.Future
}

BackupLongTermRetentionVaultsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*BackupLongTermRetentionVaultsCreateOrUpdateFuture) Result Uses

func (future *BackupLongTermRetentionVaultsCreateOrUpdateFuture) Result(client BackupLongTermRetentionVaultsClient) (bltrv BackupLongTermRetentionVault, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type BaseClient Uses

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

BaseClient is the base client for Sql.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type BlobAuditingPolicyState Uses

type BlobAuditingPolicyState string

BlobAuditingPolicyState enumerates the values for blob auditing policy state.

const (
    // BlobAuditingPolicyStateDisabled ...
    BlobAuditingPolicyStateDisabled BlobAuditingPolicyState = "Disabled"
    // BlobAuditingPolicyStateEnabled ...
    BlobAuditingPolicyStateEnabled BlobAuditingPolicyState = "Enabled"
)

func PossibleBlobAuditingPolicyStateValues Uses

func PossibleBlobAuditingPolicyStateValues() []BlobAuditingPolicyState

PossibleBlobAuditingPolicyStateValues returns an array of possible values for the BlobAuditingPolicyState const type.

type CapabilitiesClient Uses

type CapabilitiesClient struct {
    BaseClient
}

CapabilitiesClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewCapabilitiesClient Uses

func NewCapabilitiesClient(subscriptionID string) CapabilitiesClient

NewCapabilitiesClient creates an instance of the CapabilitiesClient client.

func NewCapabilitiesClientWithBaseURI Uses

func NewCapabilitiesClientWithBaseURI(baseURI string, subscriptionID string) CapabilitiesClient

NewCapabilitiesClientWithBaseURI creates an instance of the CapabilitiesClient client.

func (CapabilitiesClient) ListByLocation Uses

func (client CapabilitiesClient) ListByLocation(ctx context.Context, locationID string) (result LocationCapabilities, err error)

ListByLocation gets the capabilities available for the specified location. Parameters: locationID - the location id whose capabilities are retrieved.

func (CapabilitiesClient) ListByLocationPreparer Uses

func (client CapabilitiesClient) ListByLocationPreparer(ctx context.Context, locationID string) (*http.Request, error)

ListByLocationPreparer prepares the ListByLocation request.

func (CapabilitiesClient) ListByLocationResponder Uses

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 Uses

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 Uses

type CapabilityStatus string

CapabilityStatus enumerates the values for capability status.

const (
    // CapabilityStatusAvailable ...
    CapabilityStatusAvailable CapabilityStatus = "Available"
    // CapabilityStatusDefault ...
    CapabilityStatusDefault CapabilityStatus = "Default"
    // CapabilityStatusDisabled ...
    CapabilityStatusDisabled CapabilityStatus = "Disabled"
    // CapabilityStatusVisible ...
    CapabilityStatusVisible CapabilityStatus = "Visible"
)

func PossibleCapabilityStatusValues Uses

func PossibleCapabilityStatusValues() []CapabilityStatus

PossibleCapabilityStatusValues returns an array of possible values for the CapabilityStatus const type.

type CatalogCollationType Uses

type CatalogCollationType string

CatalogCollationType enumerates the values for catalog collation type.

const (
    // DATABASEDEFAULT ...
    DATABASEDEFAULT CatalogCollationType = "DATABASE_DEFAULT"
    // SQLLatin1GeneralCP1CIAS ...
    SQLLatin1GeneralCP1CIAS CatalogCollationType = "SQL_Latin1_General_CP1_CI_AS"
)

func PossibleCatalogCollationTypeValues Uses

func PossibleCatalogCollationTypeValues() []CatalogCollationType

PossibleCatalogCollationTypeValues returns an array of possible values for the CatalogCollationType const type.

type CheckNameAvailabilityReason Uses

type CheckNameAvailabilityReason string

CheckNameAvailabilityReason enumerates the values for check name availability reason.

const (
    // AlreadyExists ...
    AlreadyExists CheckNameAvailabilityReason = "AlreadyExists"
    // Invalid ...
    Invalid CheckNameAvailabilityReason = "Invalid"
)

func PossibleCheckNameAvailabilityReasonValues Uses

func PossibleCheckNameAvailabilityReasonValues() []CheckNameAvailabilityReason

PossibleCheckNameAvailabilityReasonValues returns an array of possible values for the CheckNameAvailabilityReason const type.

type CheckNameAvailabilityRequest Uses

type CheckNameAvailabilityRequest struct {
    // Name - The name whose availability is to be checked.
    Name *string `json:"name,omitempty"`
    // Type - The type of resource that is used as the scope of the availability check.
    Type *string `json:"type,omitempty"`
}

CheckNameAvailabilityRequest a request to check whether the specified name for a resource is available.

type CheckNameAvailabilityResponse Uses

type CheckNameAvailabilityResponse struct {
    autorest.Response `json:"-"`
    // Available - READ-ONLY; True if the name is available, otherwise false.
    Available *bool `json:"available,omitempty"`
    // Message - READ-ONLY; A message explaining why the name is unavailable. Will be null if the name is available.
    Message *string `json:"message,omitempty"`
    // Name - READ-ONLY; The name whose availability was checked.
    Name *string `json:"name,omitempty"`
    // Reason - READ-ONLY; The reason code explaining why the name is unavailable. Will be null if the name is available. Possible values include: 'Invalid', 'AlreadyExists'
    Reason CheckNameAvailabilityReason `json:"reason,omitempty"`
}

CheckNameAvailabilityResponse a response indicating whether the specified name for a resource is available.

type CompleteDatabaseRestoreDefinition Uses

type CompleteDatabaseRestoreDefinition struct {
    // LastBackupName - The last backup name to apply
    LastBackupName *string `json:"lastBackupName,omitempty"`
}

CompleteDatabaseRestoreDefinition contains the information necessary to perform a complete database restore operation.

type CreateDatabaseRestorePointDefinition Uses

type CreateDatabaseRestorePointDefinition struct {
    // RestorePointLabel - The restore point label to apply
    RestorePointLabel *string `json:"restorePointLabel,omitempty"`
}

CreateDatabaseRestorePointDefinition contains the information necessary to perform a create database restore point operation.

type CreateMode Uses

type CreateMode string

CreateMode enumerates the values for create mode.

const (
    // CreateModeCopy ...
    CreateModeCopy CreateMode = "Copy"
    // CreateModeDefault ...
    CreateModeDefault CreateMode = "Default"
    // CreateModeNonReadableSecondary ...
    CreateModeNonReadableSecondary CreateMode = "NonReadableSecondary"
    // CreateModeOnlineSecondary ...
    CreateModeOnlineSecondary CreateMode = "OnlineSecondary"
    // CreateModePointInTimeRestore ...
    CreateModePointInTimeRestore CreateMode = "PointInTimeRestore"
    // CreateModeRecovery ...
    CreateModeRecovery CreateMode = "Recovery"
    // CreateModeRestore ...
    CreateModeRestore CreateMode = "Restore"
    // CreateModeRestoreLongTermRetentionBackup ...
    CreateModeRestoreLongTermRetentionBackup CreateMode = "RestoreLongTermRetentionBackup"
)

func PossibleCreateModeValues Uses

func PossibleCreateModeValues() []CreateMode

PossibleCreateModeValues returns an array of possible values for the CreateMode const type.

type DataMaskingFunction Uses

type DataMaskingFunction string

DataMaskingFunction enumerates the values for data masking function.

const (
    // DataMaskingFunctionCCN ...
    DataMaskingFunctionCCN DataMaskingFunction = "CCN"
    // DataMaskingFunctionDefault ...
    DataMaskingFunctionDefault DataMaskingFunction = "Default"
    // DataMaskingFunctionEmail ...
    DataMaskingFunctionEmail DataMaskingFunction = "Email"
    // DataMaskingFunctionNumber ...
    DataMaskingFunctionNumber DataMaskingFunction = "Number"
    // DataMaskingFunctionSSN ...
    DataMaskingFunctionSSN DataMaskingFunction = "SSN"
    // DataMaskingFunctionText ...
    DataMaskingFunctionText DataMaskingFunction = "Text"
)

func PossibleDataMaskingFunctionValues Uses

func PossibleDataMaskingFunctionValues() []DataMaskingFunction

PossibleDataMaskingFunctionValues returns an array of possible values for the DataMaskingFunction const type.

type DataMaskingPoliciesClient Uses

type DataMaskingPoliciesClient struct {
    BaseClient
}

DataMaskingPoliciesClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewDataMaskingPoliciesClient Uses

func NewDataMaskingPoliciesClient(subscriptionID string) DataMaskingPoliciesClient

NewDataMaskingPoliciesClient creates an instance of the DataMaskingPoliciesClient client.

func NewDataMaskingPoliciesClientWithBaseURI Uses

func NewDataMaskingPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DataMaskingPoliciesClient

NewDataMaskingPoliciesClientWithBaseURI creates an instance of the DataMaskingPoliciesClient client.

func (DataMaskingPoliciesClient) CreateOrUpdate Uses

func (client DataMaskingPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DataMaskingPolicy) (result DataMaskingPolicy, err error)

CreateOrUpdate creates or updates a database data masking policy Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database. parameters - parameters for creating or updating a data masking policy.

func (DataMaskingPoliciesClient) CreateOrUpdatePreparer Uses

func (client DataMaskingPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DataMaskingPolicy) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DataMaskingPoliciesClient) CreateOrUpdateResponder Uses

func (client DataMaskingPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result DataMaskingPolicy, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (DataMaskingPoliciesClient) CreateOrUpdateSender Uses

func (client DataMaskingPoliciesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

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

func (DataMaskingPoliciesClient) Get Uses

func (client DataMaskingPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DataMaskingPolicy, err error)

Get gets a database data masking policy. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database.

func (DataMaskingPoliciesClient) GetPreparer Uses

func (client DataMaskingPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DataMaskingPoliciesClient) GetResponder Uses

func (client DataMaskingPoliciesClient) GetResponder(resp *http.Response) (result DataMaskingPolicy, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (DataMaskingPoliciesClient) GetSender Uses

func (client DataMaskingPoliciesClient) GetSender(req *http.Request) (*http.Response, error)

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

type DataMaskingPolicy Uses

type DataMaskingPolicy struct {
    autorest.Response `json:"-"`
    // DataMaskingPolicyProperties - The properties of the data masking policy.
    *DataMaskingPolicyProperties `json:"properties,omitempty"`
    // Location - READ-ONLY; The location of the data masking policy.
    Location *string `json:"location,omitempty"`
    // Kind - READ-ONLY; The kind of data masking policy. Metadata, used for Azure portal.
    Kind *string `json:"kind,omitempty"`
    // ID - READ-ONLY; Resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

DataMaskingPolicy represents a database data masking policy.

func (DataMaskingPolicy) MarshalJSON Uses

func (dmp DataMaskingPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DataMaskingPolicy.

func (*DataMaskingPolicy) UnmarshalJSON Uses

func (dmp *DataMaskingPolicy) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DataMaskingPolicy struct.

type DataMaskingPolicyProperties Uses

type DataMaskingPolicyProperties struct {
    // DataMaskingState - The state of the data masking policy. Possible values include: 'DataMaskingStateDisabled', 'DataMaskingStateEnabled'
    DataMaskingState DataMaskingState `json:"dataMaskingState,omitempty"`
    // ExemptPrincipals - The list of the exempt principals. Specifies the semicolon-separated list of database users for which the data masking policy does not apply. The specified users receive data results without masking for all of the database queries.
    ExemptPrincipals *string `json:"exemptPrincipals,omitempty"`
    // ApplicationPrincipals - READ-ONLY; The list of the application principals. This is a legacy parameter and is no longer used.
    ApplicationPrincipals *string `json:"applicationPrincipals,omitempty"`
    // MaskingLevel - READ-ONLY; The masking level. This is a legacy parameter and is no longer used.
    MaskingLevel *string `json:"maskingLevel,omitempty"`
}

DataMaskingPolicyProperties the properties of a database data masking policy.

type DataMaskingRule Uses

type DataMaskingRule struct {
    autorest.Response `json:"-"`
    // DataMaskingRuleProperties - The properties of the resource.
    *DataMaskingRuleProperties `json:"properties,omitempty"`
    // Location - READ-ONLY; The location of the data masking rule.
    Location *string `json:"location,omitempty"`
    // Kind - READ-ONLY; The kind of Data Masking Rule. Metadata, used for Azure portal.
    Kind *string `json:"kind,omitempty"`
    // ID - READ-ONLY; Resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

DataMaskingRule represents a database data masking rule.

func (DataMaskingRule) MarshalJSON Uses

func (dmr DataMaskingRule) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DataMaskingRule.

func (*DataMaskingRule) UnmarshalJSON Uses

func (dmr *DataMaskingRule) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DataMaskingRule struct.

type DataMaskingRuleListResult Uses

type DataMaskingRuleListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of database data masking rules.
    Value *[]DataMaskingRule `json:"value,omitempty"`
}

DataMaskingRuleListResult the response to a list data masking rules request.

type DataMaskingRuleProperties Uses

type DataMaskingRuleProperties struct {
    // ID - READ-ONLY; The rule Id.
    ID  *string `json:"id,omitempty"`
    // AliasName - The alias name. This is a legacy parameter and is no longer used.
    AliasName *string `json:"aliasName,omitempty"`
    // RuleState - The rule state. Used to delete a rule. To delete an existing rule, specify the schemaName, tableName, columnName, maskingFunction, and specify ruleState as disabled. However, if the rule doesn't already exist, the rule will be created with ruleState set to enabled, regardless of the provided value of ruleState. Possible values include: 'DataMaskingRuleStateDisabled', 'DataMaskingRuleStateEnabled'
    RuleState DataMaskingRuleState `json:"ruleState,omitempty"`
    // SchemaName - The schema name on which the data masking rule is applied.
    SchemaName *string `json:"schemaName,omitempty"`
    // TableName - The table name on which the data masking rule is applied.
    TableName *string `json:"tableName,omitempty"`
    // ColumnName - The column name on which the data masking rule is applied.
    ColumnName *string `json:"columnName,omitempty"`
    // MaskingFunction - The masking function that is used for the data masking rule. Possible values include: 'DataMaskingFunctionDefault', 'DataMaskingFunctionCCN', 'DataMaskingFunctionEmail', 'DataMaskingFunctionNumber', 'DataMaskingFunctionSSN', 'DataMaskingFunctionText'
    MaskingFunction DataMaskingFunction `json:"maskingFunction,omitempty"`
    // NumberFrom - The numberFrom property of the masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored.
    NumberFrom *string `json:"numberFrom,omitempty"`
    // NumberTo - The numberTo property of the data masking rule. Required if maskingFunction is set to Number, otherwise this parameter will be ignored.
    NumberTo *string `json:"numberTo,omitempty"`
    // PrefixSize - If maskingFunction is set to Text, the number of characters to show unmasked in the beginning of the string. Otherwise, this parameter will be ignored.
    PrefixSize *string `json:"prefixSize,omitempty"`
    // SuffixSize - If maskingFunction is set to Text, the number of characters to show unmasked at the end of the string. Otherwise, this parameter will be ignored.
    SuffixSize *string `json:"suffixSize,omitempty"`
    // ReplacementString - If maskingFunction is set to Text, the character to use for masking the unexposed part of the string. Otherwise, this parameter will be ignored.
    ReplacementString *string `json:"replacementString,omitempty"`
}

DataMaskingRuleProperties the properties of a database data masking rule.

type DataMaskingRuleState Uses

type DataMaskingRuleState string

DataMaskingRuleState enumerates the values for data masking rule state.

const (
    // DataMaskingRuleStateDisabled ...
    DataMaskingRuleStateDisabled DataMaskingRuleState = "Disabled"
    // DataMaskingRuleStateEnabled ...
    DataMaskingRuleStateEnabled DataMaskingRuleState = "Enabled"
)

func PossibleDataMaskingRuleStateValues Uses

func PossibleDataMaskingRuleStateValues() []DataMaskingRuleState

PossibleDataMaskingRuleStateValues returns an array of possible values for the DataMaskingRuleState const type.

type DataMaskingRulesClient Uses

type DataMaskingRulesClient struct {
    BaseClient
}

DataMaskingRulesClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewDataMaskingRulesClient Uses

func NewDataMaskingRulesClient(subscriptionID string) DataMaskingRulesClient

NewDataMaskingRulesClient creates an instance of the DataMaskingRulesClient client.

func NewDataMaskingRulesClientWithBaseURI Uses

func NewDataMaskingRulesClientWithBaseURI(baseURI string, subscriptionID string) DataMaskingRulesClient

NewDataMaskingRulesClientWithBaseURI creates an instance of the DataMaskingRulesClient client.

func (DataMaskingRulesClient) CreateOrUpdate Uses

func (client DataMaskingRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, dataMaskingRuleName string, parameters DataMaskingRule) (result DataMaskingRule, err error)

CreateOrUpdate creates or updates a database data masking rule. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database. dataMaskingRuleName - the name of the data masking rule. parameters - the required parameters for creating or updating a data masking rule.

func (DataMaskingRulesClient) CreateOrUpdatePreparer Uses

func (client DataMaskingRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, dataMaskingRuleName string, parameters DataMaskingRule) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DataMaskingRulesClient) CreateOrUpdateResponder Uses

func (client DataMaskingRulesClient) CreateOrUpdateResponder(resp *http.Response) (result DataMaskingRule, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (DataMaskingRulesClient) CreateOrUpdateSender Uses

func (client DataMaskingRulesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

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

func (DataMaskingRulesClient) ListByDatabase Uses

func (client DataMaskingRulesClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DataMaskingRuleListResult, err error)

ListByDatabase gets a list of database data masking rules. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database.

func (DataMaskingRulesClient) ListByDatabasePreparer Uses

func (client DataMaskingRulesClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

ListByDatabasePreparer prepares the ListByDatabase request.

func (DataMaskingRulesClient) ListByDatabaseResponder Uses

func (client DataMaskingRulesClient) ListByDatabaseResponder(resp *http.Response) (result DataMaskingRuleListResult, err error)

ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.

func (DataMaskingRulesClient) ListByDatabaseSender Uses

func (client DataMaskingRulesClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)

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

type DataMaskingState Uses

type DataMaskingState string

DataMaskingState enumerates the values for data masking state.

const (
    // DataMaskingStateDisabled ...
    DataMaskingStateDisabled DataMaskingState = "Disabled"
    // DataMaskingStateEnabled ...
    DataMaskingStateEnabled DataMaskingState = "Enabled"
)

func PossibleDataMaskingStateValues Uses

func PossibleDataMaskingStateValues() []DataMaskingState

PossibleDataMaskingStateValues returns an array of possible values for the DataMaskingState const type.

type DataWarehouseUserActivities Uses

type DataWarehouseUserActivities struct {
    autorest.Response `json:"-"`
    // DataWarehouseUserActivitiesProperties - Resource properties.
    *DataWarehouseUserActivitiesProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

DataWarehouseUserActivities user activities of a data warehouse

func (DataWarehouseUserActivities) MarshalJSON Uses

func (dwua DataWarehouseUserActivities) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DataWarehouseUserActivities.

func (*DataWarehouseUserActivities) UnmarshalJSON Uses

func (dwua *DataWarehouseUserActivities) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DataWarehouseUserActivities struct.

type DataWarehouseUserActivitiesClient Uses

type DataWarehouseUserActivitiesClient struct {
    BaseClient
}

DataWarehouseUserActivitiesClient 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 NewDataWarehouseUserActivitiesClient Uses

func NewDataWarehouseUserActivitiesClient(subscriptionID string) DataWarehouseUserActivitiesClient

NewDataWarehouseUserActivitiesClient creates an instance of the DataWarehouseUserActivitiesClient client.

func NewDataWarehouseUserActivitiesClientWithBaseURI Uses

func NewDataWarehouseUserActivitiesClientWithBaseURI(baseURI string, subscriptionID string) DataWarehouseUserActivitiesClient

NewDataWarehouseUserActivitiesClientWithBaseURI creates an instance of the DataWarehouseUserActivitiesClient client.

func (DataWarehouseUserActivitiesClient) Get Uses

func (client DataWarehouseUserActivitiesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DataWarehouseUserActivities, err error)

Get gets the user activities of a data warehouse which includes running and suspended queries Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database.

func (DataWarehouseUserActivitiesClient) GetPreparer Uses

func (client DataWarehouseUserActivitiesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DataWarehouseUserActivitiesClient) GetResponder Uses

func (client DataWarehouseUserActivitiesClient) GetResponder(resp *http.Response) (result DataWarehouseUserActivities, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (DataWarehouseUserActivitiesClient) GetSender Uses

func (client DataWarehouseUserActivitiesClient) GetSender(req *http.Request) (*http.Response, error)

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

type DataWarehouseUserActivitiesProperties Uses

type DataWarehouseUserActivitiesProperties struct {
    // ActiveQueriesCount - READ-ONLY; Count of running and suspended queries.
    ActiveQueriesCount *int32 `json:"activeQueriesCount,omitempty"`
}

DataWarehouseUserActivitiesProperties user activities of a data warehouse. This currently includes the count of running or suspended queries. For more information, please view the sys.dm_pdw_exec_requests dynamic management view (DMV).

type Database Uses

type Database struct {
    autorest.Response `json:"-"`
    // Kind - READ-ONLY; Kind of database.  This is metadata used for the Azure portal experience.
    Kind *string `json:"kind,omitempty"`
    // DatabaseProperties - The properties representing the resource.
    *DatabaseProperties `json:"properties,omitempty"`
    // Location - Resource location.
    Location *string `json:"location,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // ID - READ-ONLY; Resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

Database represents a database.

func (Database) MarshalJSON Uses

func (d Database) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Database.

func (*Database) UnmarshalJSON Uses

func (d *Database) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Database struct.

type DatabaseAutomaticTuning Uses

type DatabaseAutomaticTuning struct {
    autorest.Response `json:"-"`
    // DatabaseAutomaticTuningProperties - Resource properties.
    *DatabaseAutomaticTuningProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

DatabaseAutomaticTuning database-level Automatic Tuning.

func (DatabaseAutomaticTuning) MarshalJSON Uses

func (dat DatabaseAutomaticTuning) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseAutomaticTuning.

func (*DatabaseAutomaticTuning) UnmarshalJSON Uses

func (dat *DatabaseAutomaticTuning) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DatabaseAutomaticTuning struct.

type DatabaseAutomaticTuningClient Uses

type DatabaseAutomaticTuningClient struct {
    BaseClient
}

DatabaseAutomaticTuningClient 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 NewDatabaseAutomaticTuningClient Uses

func NewDatabaseAutomaticTuningClient(subscriptionID string) DatabaseAutomaticTuningClient

NewDatabaseAutomaticTuningClient creates an instance of the DatabaseAutomaticTuningClient client.

func NewDatabaseAutomaticTuningClientWithBaseURI Uses

func NewDatabaseAutomaticTuningClientWithBaseURI(baseURI string, subscriptionID string) DatabaseAutomaticTuningClient

NewDatabaseAutomaticTuningClientWithBaseURI creates an instance of the DatabaseAutomaticTuningClient client.

func (DatabaseAutomaticTuningClient) Get Uses

func (client DatabaseAutomaticTuningClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseAutomaticTuning, err error)

Get gets a database's automatic tuning. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database.

func (DatabaseAutomaticTuningClient) GetPreparer Uses

func (client DatabaseAutomaticTuningClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DatabaseAutomaticTuningClient) GetResponder Uses

func (client DatabaseAutomaticTuningClient) GetResponder(resp *http.Response) (result DatabaseAutomaticTuning, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (DatabaseAutomaticTuningClient) GetSender Uses

func (client DatabaseAutomaticTuningClient) 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 (DatabaseAutomaticTuningClient) Update Uses

func (client DatabaseAutomaticTuningClient) Update(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseAutomaticTuning) (result DatabaseAutomaticTuning, err error)

Update update automatic tuning properties for target database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database. parameters - the requested automatic tuning resource state.

func (DatabaseAutomaticTuningClient) UpdatePreparer Uses

func (client DatabaseAutomaticTuningClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseAutomaticTuning) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (DatabaseAutomaticTuningClient) UpdateResponder Uses

func (client DatabaseAutomaticTuningClient) UpdateResponder(resp *http.Response) (result DatabaseAutomaticTuning, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (DatabaseAutomaticTuningClient) UpdateSender Uses

func (client DatabaseAutomaticTuningClient) UpdateSender(req *http.Request) (*http.Response, error)

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

type DatabaseAutomaticTuningProperties Uses

type DatabaseAutomaticTuningProperties struct {
    // DesiredState - Automatic tuning desired state. Possible values include: 'Inherit', 'Custom', 'Auto', 'Unspecified'
    DesiredState AutomaticTuningMode `json:"desiredState,omitempty"`
    // ActualState - READ-ONLY; Automatic tuning actual state. Possible values include: 'Inherit', 'Custom', 'Auto', 'Unspecified'
    ActualState AutomaticTuningMode `json:"actualState,omitempty"`
    // Options - Automatic tuning options definition.
    Options map[string]*AutomaticTuningOptions `json:"options"`
}

DatabaseAutomaticTuningProperties database-level Automatic Tuning properties.

func (DatabaseAutomaticTuningProperties) MarshalJSON Uses

func (datp DatabaseAutomaticTuningProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseAutomaticTuningProperties.

type DatabaseBlobAuditingPoliciesClient Uses

type DatabaseBlobAuditingPoliciesClient struct {
    BaseClient
}

DatabaseBlobAuditingPoliciesClient 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 NewDatabaseBlobAuditingPoliciesClient Uses

func NewDatabaseBlobAuditingPoliciesClient(subscriptionID string) DatabaseBlobAuditingPoliciesClient

NewDatabaseBlobAuditingPoliciesClient creates an instance of the DatabaseBlobAuditingPoliciesClient client.

func NewDatabaseBlobAuditingPoliciesClientWithBaseURI Uses

func NewDatabaseBlobAuditingPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseBlobAuditingPoliciesClient

NewDatabaseBlobAuditingPoliciesClientWithBaseURI creates an instance of the DatabaseBlobAuditingPoliciesClient client.

func (DatabaseBlobAuditingPoliciesClient) CreateOrUpdate Uses

func (client DatabaseBlobAuditingPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseBlobAuditingPolicy) (result DatabaseBlobAuditingPolicy, err error)

CreateOrUpdate creates or updates a database's blob auditing policy. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database. parameters - the database blob auditing policy.

func (DatabaseBlobAuditingPoliciesClient) CreateOrUpdatePreparer Uses

func (client DatabaseBlobAuditingPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseBlobAuditingPolicy) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DatabaseBlobAuditingPoliciesClient) CreateOrUpdateResponder Uses

func (client DatabaseBlobAuditingPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result DatabaseBlobAuditingPolicy, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (DatabaseBlobAuditingPoliciesClient) CreateOrUpdateSender Uses

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

func (client DatabaseBlobAuditingPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseBlobAuditingPolicy, err error)

Get gets a database's blob auditing policy. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database.

func (DatabaseBlobAuditingPoliciesClient) GetPreparer Uses

func (client DatabaseBlobAuditingPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DatabaseBlobAuditingPoliciesClient) GetResponder Uses

func (client DatabaseBlobAuditingPoliciesClient) GetResponder(resp *http.Response) (result DatabaseBlobAuditingPolicy, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (DatabaseBlobAuditingPoliciesClient) GetSender Uses

func (client DatabaseBlobAuditingPoliciesClient) GetSender(req *http.Request) (*http.Response, error)

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

type DatabaseBlobAuditingPolicy Uses

type DatabaseBlobAuditingPolicy struct {
    autorest.Response `json:"-"`
    // Kind - READ-ONLY; Resource kind.
    Kind *string `json:"kind,omitempty"`
    // DatabaseBlobAuditingPolicyProperties - Resource properties.
    *DatabaseBlobAuditingPolicyProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

DatabaseBlobAuditingPolicy a database blob auditing policy.

func (DatabaseBlobAuditingPolicy) MarshalJSON Uses

func (dbap DatabaseBlobAuditingPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseBlobAuditingPolicy.

func (*DatabaseBlobAuditingPolicy) UnmarshalJSON Uses

func (dbap *DatabaseBlobAuditingPolicy) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DatabaseBlobAuditingPolicy struct.

type DatabaseBlobAuditingPolicyProperties Uses

type DatabaseBlobAuditingPolicyProperties struct {
    // State - Specifies the state of the policy. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. Possible values include: 'BlobAuditingPolicyStateEnabled', 'BlobAuditingPolicyStateDisabled'
    State BlobAuditingPolicyState `json:"state,omitempty"`
    // StorageEndpoint - Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required.
    StorageEndpoint *string `json:"storageEndpoint,omitempty"`
    // StorageAccountAccessKey - Specifies the identifier key of the auditing storage account. If state is Enabled and storageEndpoint is specified, storageAccountAccessKey is required.
    StorageAccountAccessKey *string `json:"storageAccountAccessKey,omitempty"`
    // RetentionDays - Specifies the number of days to keep in the audit logs in the storage account.
    RetentionDays *int32 `json:"retentionDays,omitempty"`
    // AuditActionsAndGroups - Specifies the Actions-Groups and Actions to audit.
    //
    // The recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins:
    //
    // BATCH_COMPLETED_GROUP,
    // SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP,
    // FAILED_DATABASE_AUTHENTICATION_GROUP.
    //
    // This above combination is also the set that is configured by default when enabling auditing from the Azure portal.
    //
    // The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records):
    //
    // APPLICATION_ROLE_CHANGE_PASSWORD_GROUP
    // BACKUP_RESTORE_GROUP
    // DATABASE_LOGOUT_GROUP
    // DATABASE_OBJECT_CHANGE_GROUP
    // DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP
    // DATABASE_OBJECT_PERMISSION_CHANGE_GROUP
    // DATABASE_OPERATION_GROUP
    // DATABASE_PERMISSION_CHANGE_GROUP
    // DATABASE_PRINCIPAL_CHANGE_GROUP
    // DATABASE_PRINCIPAL_IMPERSONATION_GROUP
    // DATABASE_ROLE_MEMBER_CHANGE_GROUP
    // FAILED_DATABASE_AUTHENTICATION_GROUP
    // SCHEMA_OBJECT_ACCESS_GROUP
    // SCHEMA_OBJECT_CHANGE_GROUP
    // SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP
    // SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP
    // SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP
    // USER_CHANGE_PASSWORD_GROUP
    // BATCH_STARTED_GROUP
    // BATCH_COMPLETED_GROUP
    //
    // These are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs.
    //
    // For more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups).
    //
    // For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are:
    // SELECT
    // UPDATE
    // INSERT
    // DELETE
    // EXECUTE
    // RECEIVE
    // REFERENCES
    //
    // The general form for defining an action to be audited is:
    // {action} ON {object} BY {principal}
    //
    // Note that <object> in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively.
    //
    // For example:
    // SELECT on dbo.myTable by public
    // SELECT on DATABASE::myDatabase by public
    // SELECT on SCHEMA::mySchema by public
    //
    // For more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions)
    AuditActionsAndGroups *[]string `json:"auditActionsAndGroups,omitempty"`
    // StorageAccountSubscriptionID - Specifies the blob storage subscription Id.
    StorageAccountSubscriptionID *uuid.UUID `json:"storageAccountSubscriptionId,omitempty"`
    // IsStorageSecondaryKeyInUse - Specifies whether storageAccountAccessKey value is the storage's secondary key.
    IsStorageSecondaryKeyInUse *bool `json:"isStorageSecondaryKeyInUse,omitempty"`
    // IsAzureMonitorTargetEnabled - Specifies whether audit events are sent to Azure Monitor.
    // In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true.
    //
    // When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created.
    // Note that for server level audit you should use the 'master' database as {databaseName}.
    //
    // Diagnostic Settings URI format:
    // PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
    //
    // For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)
    // or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)
    IsAzureMonitorTargetEnabled *bool `json:"isAzureMonitorTargetEnabled,omitempty"`
}

DatabaseBlobAuditingPolicyProperties properties of a database blob auditing policy.

type DatabaseEdition Uses

type DatabaseEdition string

DatabaseEdition enumerates the values for database edition.

const (
    // Basic ...
    Basic DatabaseEdition = "Basic"
    // Business ...
    Business DatabaseEdition = "Business"
    // BusinessCritical ...
    BusinessCritical DatabaseEdition = "BusinessCritical"
    // DataWarehouse ...
    DataWarehouse DatabaseEdition = "DataWarehouse"
    // Free ...
    Free DatabaseEdition = "Free"
    // GeneralPurpose ...
    GeneralPurpose DatabaseEdition = "GeneralPurpose"
    // Hyperscale ...
    Hyperscale DatabaseEdition = "Hyperscale"
    // Premium ...
    Premium DatabaseEdition = "Premium"
    // PremiumRS ...
    PremiumRS DatabaseEdition = "PremiumRS"
    // Standard ...
    Standard DatabaseEdition = "Standard"
    // Stretch ...
    Stretch DatabaseEdition = "Stretch"
    // System ...
    System DatabaseEdition = "System"
    // System2 ...
    System2 DatabaseEdition = "System2"
    // Web ...
    Web DatabaseEdition = "Web"
)

func PossibleDatabaseEditionValues Uses

func PossibleDatabaseEditionValues() []DatabaseEdition

PossibleDatabaseEditionValues returns an array of possible values for the DatabaseEdition const type.

type DatabaseListResult Uses

type DatabaseListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of databases housed in the server.
    Value *[]Database `json:"value,omitempty"`
}

DatabaseListResult represents the response to a list database request.

type DatabaseOperation Uses

type DatabaseOperation struct {
    // DatabaseOperationProperties - Resource properties.
    *DatabaseOperationProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

DatabaseOperation a database operation.

func (DatabaseOperation) MarshalJSON Uses

func (do DatabaseOperation) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseOperation.

func (*DatabaseOperation) UnmarshalJSON Uses

func (do *DatabaseOperation) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DatabaseOperation struct.

type DatabaseOperationListResult Uses

type DatabaseOperationListResult struct {
    autorest.Response `json:"-"`
    // Value - READ-ONLY; Array of results.
    Value *[]DatabaseOperation `json:"value,omitempty"`
    // NextLink - READ-ONLY; Link to retrieve next page of results.
    NextLink *string `json:"nextLink,omitempty"`
}

DatabaseOperationListResult the response to a list database operations request

func (DatabaseOperationListResult) IsEmpty Uses

func (dolr DatabaseOperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DatabaseOperationListResultIterator Uses

type DatabaseOperationListResultIterator struct {
    // contains filtered or unexported fields
}

DatabaseOperationListResultIterator provides access to a complete listing of DatabaseOperation values.

func NewDatabaseOperationListResultIterator Uses

func NewDatabaseOperationListResultIterator(page DatabaseOperationListResultPage) DatabaseOperationListResultIterator

Creates a new instance of the DatabaseOperationListResultIterator type.

func (*DatabaseOperationListResultIterator) Next Uses

func (iter *DatabaseOperationListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*DatabaseOperationListResultIterator) NextWithContext Uses

func (iter *DatabaseOperationListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (DatabaseOperationListResultIterator) NotDone Uses

func (iter DatabaseOperationListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (DatabaseOperationListResultIterator) Response Uses

func (iter DatabaseOperationListResultIterator) Response() DatabaseOperationListResult

Response returns the raw server response from the last page request.

func (DatabaseOperationListResultIterator) Value Uses

func (iter DatabaseOperationListResultIterator) Value() DatabaseOperation

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type DatabaseOperationListResultPage Uses

type DatabaseOperationListResultPage struct {
    // contains filtered or unexported fields
}

DatabaseOperationListResultPage contains a page of DatabaseOperation values.

func NewDatabaseOperationListResultPage Uses

func NewDatabaseOperationListResultPage(getNextPage func(context.Context, DatabaseOperationListResult) (DatabaseOperationListResult, error)) DatabaseOperationListResultPage

Creates a new instance of the DatabaseOperationListResultPage type.

func (*DatabaseOperationListResultPage) Next Uses

func (page *DatabaseOperationListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*DatabaseOperationListResultPage) NextWithContext Uses

func (page *DatabaseOperationListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (DatabaseOperationListResultPage) NotDone Uses

func (page DatabaseOperationListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (DatabaseOperationListResultPage) Response Uses

func (page DatabaseOperationListResultPage) Response() DatabaseOperationListResult

Response returns the raw server response from the last page request.

func (DatabaseOperationListResultPage) Values Uses

func (page DatabaseOperationListResultPage) Values() []DatabaseOperation

Values returns the slice of values for the current page or nil if there are no values.

type DatabaseOperationProperties Uses

type DatabaseOperationProperties struct {
    // DatabaseName - READ-ONLY; The name of the database the operation is being performed on.
    DatabaseName *string `json:"databaseName,omitempty"`
    // Operation - READ-ONLY; The name of operation.
    Operation *string `json:"operation,omitempty"`
    // OperationFriendlyName - READ-ONLY; The friendly name of operation.
    OperationFriendlyName *string `json:"operationFriendlyName,omitempty"`
    // PercentComplete - READ-ONLY; The percentage of the operation completed.
    PercentComplete *int32 `json:"percentComplete,omitempty"`
    // ServerName - READ-ONLY; The name of the server.
    ServerName *string `json:"serverName,omitempty"`
    // StartTime - READ-ONLY; The operation start time.
    StartTime *date.Time `json:"startTime,omitempty"`
    // State - READ-ONLY; The operation state. Possible values include: 'ManagementOperationStatePending', 'ManagementOperationStateInProgress', 'ManagementOperationStateSucceeded', 'ManagementOperationStateFailed', 'ManagementOperationStateCancelInProgress', 'ManagementOperationStateCancelled'
    State ManagementOperationState `json:"state,omitempty"`
    // ErrorCode - READ-ONLY; The operation error code.
    ErrorCode *int32 `json:"errorCode,omitempty"`
    // ErrorDescription - READ-ONLY; The operation error description.
    ErrorDescription *string `json:"errorDescription,omitempty"`
    // ErrorSeverity - READ-ONLY; The operation error severity.
    ErrorSeverity *int32 `json:"errorSeverity,omitempty"`
    // IsUserError - READ-ONLY; Whether or not the error is a user error.
    IsUserError *bool `json:"isUserError,omitempty"`
    // EstimatedCompletionTime - READ-ONLY; The estimated completion time of the operation.
    EstimatedCompletionTime *date.Time `json:"estimatedCompletionTime,omitempty"`
    // Description - READ-ONLY; The operation description.
    Description *string `json:"description,omitempty"`
    // IsCancellable - READ-ONLY; Whether the operation can be cancelled.
    IsCancellable *bool `json:"isCancellable,omitempty"`
}

DatabaseOperationProperties the properties of a database operation.

type DatabaseOperationsClient Uses

type DatabaseOperationsClient struct {
    BaseClient
}

DatabaseOperationsClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewDatabaseOperationsClient Uses

func NewDatabaseOperationsClient(subscriptionID string) DatabaseOperationsClient

NewDatabaseOperationsClient creates an instance of the DatabaseOperationsClient client.

func NewDatabaseOperationsClientWithBaseURI Uses

func NewDatabaseOperationsClientWithBaseURI(baseURI string, subscriptionID string) DatabaseOperationsClient

NewDatabaseOperationsClientWithBaseURI creates an instance of the DatabaseOperationsClient client.

func (DatabaseOperationsClient) Cancel Uses

func (client DatabaseOperationsClient) Cancel(ctx context.Context, resourceGroupName string, serverName string, databaseName string, operationID uuid.UUID) (result autorest.Response, err error)

Cancel cancels the asynchronous operation on the database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database. operationID - the operation identifier.

func (DatabaseOperationsClient) CancelPreparer Uses

func (client DatabaseOperationsClient) CancelPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, operationID uuid.UUID) (*http.Request, error)

CancelPreparer prepares the Cancel request.

func (DatabaseOperationsClient) CancelResponder Uses

func (client DatabaseOperationsClient) CancelResponder(resp *http.Response) (result autorest.Response, err error)

CancelResponder handles the response to the Cancel request. The method always closes the http.Response Body.

func (DatabaseOperationsClient) CancelSender Uses

func (client DatabaseOperationsClient) CancelSender(req *http.Request) (*http.Response, error)

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

func (DatabaseOperationsClient) ListByDatabase Uses

func (client DatabaseOperationsClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseOperationListResultPage, err error)

ListByDatabase gets a list of operations performed on the database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database.

func (DatabaseOperationsClient) ListByDatabaseComplete Uses

func (client DatabaseOperationsClient) ListByDatabaseComplete(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseOperationListResultIterator, err error)

ListByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.

func (DatabaseOperationsClient) ListByDatabasePreparer Uses

func (client DatabaseOperationsClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

ListByDatabasePreparer prepares the ListByDatabase request.

func (DatabaseOperationsClient) ListByDatabaseResponder Uses

func (client DatabaseOperationsClient) ListByDatabaseResponder(resp *http.Response) (result DatabaseOperationListResult, err error)

ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.

func (DatabaseOperationsClient) ListByDatabaseSender Uses

func (client DatabaseOperationsClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)

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

type DatabaseProperties Uses

type DatabaseProperties struct {
    // Collation - The collation of the database. If createMode is not Default, this value is ignored.
    Collation *string `json:"collation,omitempty"`
    // CreationDate - READ-ONLY; The creation date of the database (ISO8601 format).
    CreationDate *date.Time `json:"creationDate,omitempty"`
    // ContainmentState - READ-ONLY; The containment state of the database.
    ContainmentState *int64 `json:"containmentState,omitempty"`
    // CurrentServiceObjectiveID - READ-ONLY; The current service level objective ID of the database. This is the ID of the service level objective that is currently active.
    CurrentServiceObjectiveID *uuid.UUID `json:"currentServiceObjectiveId,omitempty"`
    // DatabaseID - READ-ONLY; The ID of the database.
    DatabaseID *uuid.UUID `json:"databaseId,omitempty"`
    // EarliestRestoreDate - READ-ONLY; This records the earliest start date and time that restore is available for this database (ISO8601 format).
    EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"`
    // CreateMode - Specifies the mode of database creation.
    // Default: regular database creation.
    // Copy: creates a database as a copy of an existing database. sourceDatabaseId must be specified as the resource ID of the source database.
    // OnlineSecondary/NonReadableSecondary: creates a database as a (readable or nonreadable) secondary replica of an existing database. sourceDatabaseId must be specified as the resource ID of the existing primary database.
    // PointInTimeRestore: Creates a database by restoring a point in time backup of an existing database. sourceDatabaseId must be specified as the resource ID of the existing database, and restorePointInTime must be specified.
    // Recovery: Creates a database by restoring a geo-replicated backup. sourceDatabaseId must be specified as the recoverable database resource ID to restore.
    // Restore: Creates a database by restoring a backup of a deleted database. sourceDatabaseId must be specified. If sourceDatabaseId is the database's original resource ID, then sourceDatabaseDeletionDate must be specified. Otherwise sourceDatabaseId must be the restorable dropped database resource ID and sourceDatabaseDeletionDate is ignored. restorePointInTime may also be specified to restore from an earlier point in time.
    // RestoreLongTermRetentionBackup: Creates a database by restoring from a long term retention vault. recoveryServicesRecoveryPointResourceId must be specified as the recovery point resource ID.
    // Copy, NonReadableSecondary, OnlineSecondary and RestoreLongTermRetentionBackup are not supported for DataWarehouse edition. Possible values include: 'CreateModeCopy', 'CreateModeDefault', 'CreateModeNonReadableSecondary', 'CreateModeOnlineSecondary', 'CreateModePointInTimeRestore', 'CreateModeRecovery', 'CreateModeRestore', 'CreateModeRestoreLongTermRetentionBackup'
    CreateMode CreateMode `json:"createMode,omitempty"`
    // SourceDatabaseID - Conditional. If createMode is Copy, NonReadableSecondary, OnlineSecondary, PointInTimeRestore, Recovery, or Restore, then this value is required. Specifies the resource ID of the source database. If createMode is NonReadableSecondary or OnlineSecondary, the name of the source database must be the same as the new database being created.
    SourceDatabaseID *string `json:"sourceDatabaseId,omitempty"`
    // SourceDatabaseDeletionDate - Conditional. If createMode is Restore and sourceDatabaseId is the deleted database's original resource id when it existed (as opposed to its current restorable dropped database id), then this value is required. Specifies the time that the database was deleted.
    SourceDatabaseDeletionDate *date.Time `json:"sourceDatabaseDeletionDate,omitempty"`
    // RestorePointInTime - Conditional. If createMode is PointInTimeRestore, this value is required. If createMode is Restore, this value is optional. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. Must be greater than or equal to the source database's earliestRestoreDate value.
    RestorePointInTime *date.Time `json:"restorePointInTime,omitempty"`
    // RecoveryServicesRecoveryPointResourceID - Conditional. If createMode is RestoreLongTermRetentionBackup, then this value is required. Specifies the resource ID of the recovery point to restore from.
    RecoveryServicesRecoveryPointResourceID *string `json:"recoveryServicesRecoveryPointResourceId,omitempty"`
    // Edition - The edition of the database. The DatabaseEditions enumeration contains all the valid editions. If createMode is NonReadableSecondary or OnlineSecondary, this value is ignored.
    //
    // The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands:
    //
    // ```azurecli
    // az sql db list-editions -l <location> -o table
    // ````
    //
    // ```powershell
    // Get-AzSqlServerServiceObjective -Location <location>
    // ````
    // . Possible values include: 'Web', 'Business', 'Basic', 'Standard', 'Premium', 'PremiumRS', 'Free', 'Stretch', 'DataWarehouse', 'System', 'System2', 'GeneralPurpose', 'BusinessCritical', 'Hyperscale'
    Edition DatabaseEdition `json:"edition,omitempty"`
    // MaxSizeBytes - The max size of the database expressed in bytes. If createMode is not Default, this value is ignored. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: "Capabilities_ListByLocation."
    MaxSizeBytes *string `json:"maxSizeBytes,omitempty"`
    // RequestedServiceObjectiveID - The configured service level objective ID of the database. This is the service level objective that is in the process of being applied to the database. Once successfully updated, it will match the value of currentServiceObjectiveId property. If requestedServiceObjectiveId and requestedServiceObjectiveName are both updated, the value of requestedServiceObjectiveId overrides the value of requestedServiceObjectiveName.
    //
    // The list of SKUs may vary by region and support offer. To determine the service objective ids that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API.
    RequestedServiceObjectiveID *uuid.UUID `json:"requestedServiceObjectiveId,omitempty"`
    // RequestedServiceObjectiveName - The name of the configured service level objective of the database. This is the service level objective that is in the process of being applied to the database. Once successfully updated, it will match the value of serviceLevelObjective property.
    //
    // The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands:
    //
    // ```azurecli
    // az sql db list-editions -l <location> -o table
    // ````
    //
    // ```powershell
    // Get-AzSqlServerServiceObjective -Location <location>
    // ````
    // . Possible values include: 'ServiceObjectiveNameSystem', 'ServiceObjectiveNameSystem0', 'ServiceObjectiveNameSystem1', 'ServiceObjectiveNameSystem2', 'ServiceObjectiveNameSystem3', 'ServiceObjectiveNameSystem4', 'ServiceObjectiveNameSystem2L', 'ServiceObjectiveNameSystem3L', 'ServiceObjectiveNameSystem4L', 'ServiceObjectiveNameFree', 'ServiceObjectiveNameBasic', 'ServiceObjectiveNameS0', 'ServiceObjectiveNameS1', 'ServiceObjectiveNameS2', 'ServiceObjectiveNameS3', 'ServiceObjectiveNameS4', 'ServiceObjectiveNameS6', 'ServiceObjectiveNameS7', 'ServiceObjectiveNameS9', 'ServiceObjectiveNameS12', 'ServiceObjectiveNameP1', 'ServiceObjectiveNameP2', 'ServiceObjectiveNameP3', 'ServiceObjectiveNameP4', 'ServiceObjectiveNameP6', 'ServiceObjectiveNameP11', 'ServiceObjectiveNameP15', 'ServiceObjectiveNamePRS1', 'ServiceObjectiveNamePRS2', 'ServiceObjectiveNamePRS4', 'ServiceObjectiveNamePRS6', 'ServiceObjectiveNameDW100', 'ServiceObjectiveNameDW200', 'ServiceObjectiveNameDW300', 'ServiceObjectiveNameDW400', 'ServiceObjectiveNameDW500', 'ServiceObjectiveNameDW600', 'ServiceObjectiveNameDW1000', 'ServiceObjectiveNameDW1200', 'ServiceObjectiveNameDW1000c', 'ServiceObjectiveNameDW1500', 'ServiceObjectiveNameDW1500c', 'ServiceObjectiveNameDW2000', 'ServiceObjectiveNameDW2000c', 'ServiceObjectiveNameDW3000', 'ServiceObjectiveNameDW2500c', 'ServiceObjectiveNameDW3000c', 'ServiceObjectiveNameDW6000', 'ServiceObjectiveNameDW5000c', 'ServiceObjectiveNameDW6000c', 'ServiceObjectiveNameDW7500c', 'ServiceObjectiveNameDW10000c', 'ServiceObjectiveNameDW15000c', 'ServiceObjectiveNameDW30000c', 'ServiceObjectiveNameDS100', 'ServiceObjectiveNameDS200', 'ServiceObjectiveNameDS300', 'ServiceObjectiveNameDS400', 'ServiceObjectiveNameDS500', 'ServiceObjectiveNameDS600', 'ServiceObjectiveNameDS1000', 'ServiceObjectiveNameDS1200', 'ServiceObjectiveNameDS1500', 'ServiceObjectiveNameDS2000', 'ServiceObjectiveNameElasticPool'
    RequestedServiceObjectiveName ServiceObjectiveName `json:"requestedServiceObjectiveName,omitempty"`
    // ServiceLevelObjective - READ-ONLY; The current service level objective of the database. Possible values include: 'ServiceObjectiveNameSystem', 'ServiceObjectiveNameSystem0', 'ServiceObjectiveNameSystem1', 'ServiceObjectiveNameSystem2', 'ServiceObjectiveNameSystem3', 'ServiceObjectiveNameSystem4', 'ServiceObjectiveNameSystem2L', 'ServiceObjectiveNameSystem3L', 'ServiceObjectiveNameSystem4L', 'ServiceObjectiveNameFree', 'ServiceObjectiveNameBasic', 'ServiceObjectiveNameS0', 'ServiceObjectiveNameS1', 'ServiceObjectiveNameS2', 'ServiceObjectiveNameS3', 'ServiceObjectiveNameS4', 'ServiceObjectiveNameS6', 'ServiceObjectiveNameS7', 'ServiceObjectiveNameS9', 'ServiceObjectiveNameS12', 'ServiceObjectiveNameP1', 'ServiceObjectiveNameP2', 'ServiceObjectiveNameP3', 'ServiceObjectiveNameP4', 'ServiceObjectiveNameP6', 'ServiceObjectiveNameP11', 'ServiceObjectiveNameP15', 'ServiceObjectiveNamePRS1', 'ServiceObjectiveNamePRS2', 'ServiceObjectiveNamePRS4', 'ServiceObjectiveNamePRS6', 'ServiceObjectiveNameDW100', 'ServiceObjectiveNameDW200', 'ServiceObjectiveNameDW300', 'ServiceObjectiveNameDW400', 'ServiceObjectiveNameDW500', 'ServiceObjectiveNameDW600', 'ServiceObjectiveNameDW1000', 'ServiceObjectiveNameDW1200', 'ServiceObjectiveNameDW1000c', 'ServiceObjectiveNameDW1500', 'ServiceObjectiveNameDW1500c', 'ServiceObjectiveNameDW2000', 'ServiceObjectiveNameDW2000c', 'ServiceObjectiveNameDW3000', 'ServiceObjectiveNameDW2500c', 'ServiceObjectiveNameDW3000c', 'ServiceObjectiveNameDW6000', 'ServiceObjectiveNameDW5000c', 'ServiceObjectiveNameDW6000c', 'ServiceObjectiveNameDW7500c', 'ServiceObjectiveNameDW10000c', 'ServiceObjectiveNameDW15000c', 'ServiceObjectiveNameDW30000c', 'ServiceObjectiveNameDS100', 'ServiceObjectiveNameDS200', 'ServiceObjectiveNameDS300', 'ServiceObjectiveNameDS400', 'ServiceObjectiveNameDS500', 'ServiceObjectiveNameDS600', 'ServiceObjectiveNameDS1000', 'ServiceObjectiveNameDS1200', 'ServiceObjectiveNameDS1500', 'ServiceObjectiveNameDS2000', 'ServiceObjectiveNameElasticPool'
    ServiceLevelObjective ServiceObjectiveName `json:"serviceLevelObjective,omitempty"`
    // Status - READ-ONLY; The status of the database.
    Status *string `json:"status,omitempty"`
    // ElasticPoolName - The name of the elastic pool the database is in. If elasticPoolName and requestedServiceObjectiveName are both updated, the value of requestedServiceObjectiveName is ignored. Not supported for DataWarehouse edition.
    ElasticPoolName *string `json:"elasticPoolName,omitempty"`
    // DefaultSecondaryLocation - READ-ONLY; The default secondary region for this database.
    DefaultSecondaryLocation *string `json:"defaultSecondaryLocation,omitempty"`
    // ServiceTierAdvisors - READ-ONLY; The list of service tier advisors for this database. Expanded property
    ServiceTierAdvisors *[]ServiceTierAdvisor `json:"serviceTierAdvisors,omitempty"`
    // TransparentDataEncryption - READ-ONLY; The transparent data encryption info for this database.
    TransparentDataEncryption *[]TransparentDataEncryption `json:"transparentDataEncryption,omitempty"`
    // RecommendedIndex - READ-ONLY; The recommended indices for this database.
    RecommendedIndex *[]RecommendedIndex `json:"recommendedIndex,omitempty"`
    // FailoverGroupID - READ-ONLY; The resource identifier of the failover group containing this database.
    FailoverGroupID *string `json:"failoverGroupId,omitempty"`
    // ReadScale - Conditional. If the database is a geo-secondary, readScale indicates whether read-only connections are allowed to this database or not. Not supported for DataWarehouse edition. Possible values include: 'ReadScaleEnabled', 'ReadScaleDisabled'
    ReadScale ReadScale `json:"readScale,omitempty"`
    // SampleName - Indicates the name of the sample schema to apply when creating this database. If createMode is not Default, this value is ignored. Not supported for DataWarehouse edition. Possible values include: 'AdventureWorksLT'
    SampleName SampleName `json:"sampleName,omitempty"`
    // ZoneRedundant - Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones.
    ZoneRedundant *bool `json:"zoneRedundant,omitempty"`
}

DatabaseProperties represents the properties of a database.

type DatabaseSecurityAlertPolicy Uses

type DatabaseSecurityAlertPolicy struct {
    autorest.Response `json:"-"`
    // Location - The geo-location where the resource lives
    Location *string `json:"location,omitempty"`
    // Kind - READ-ONLY; Resource kind.
    Kind *string `json:"kind,omitempty"`
    // DatabaseSecurityAlertPolicyProperties - Properties of the security alert policy.
    *DatabaseSecurityAlertPolicyProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

DatabaseSecurityAlertPolicy contains information about a database Threat Detection policy.

func (DatabaseSecurityAlertPolicy) MarshalJSON Uses

func (dsap DatabaseSecurityAlertPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseSecurityAlertPolicy.

func (*DatabaseSecurityAlertPolicy) UnmarshalJSON Uses

func (dsap *DatabaseSecurityAlertPolicy) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DatabaseSecurityAlertPolicy struct.

type DatabaseSecurityAlertPolicyProperties Uses

type DatabaseSecurityAlertPolicyProperties struct {
    // State - Specifies the state of the policy. If state is Enabled, storageEndpoint and storageAccountAccessKey are required. Possible values include: 'SecurityAlertPolicyStateNew', 'SecurityAlertPolicyStateEnabled', 'SecurityAlertPolicyStateDisabled'
    State SecurityAlertPolicyState `json:"state,omitempty"`
    // DisabledAlerts - Specifies the semicolon-separated list of alerts that are disabled, or empty string to disable no alerts. Possible values: Sql_Injection; Sql_Injection_Vulnerability; Access_Anomaly; Data_Exfiltration; Unsafe_Action.
    DisabledAlerts *string `json:"disabledAlerts,omitempty"`
    // EmailAddresses - Specifies the semicolon-separated list of e-mail addresses to which the alert is sent.
    EmailAddresses *string `json:"emailAddresses,omitempty"`
    // EmailAccountAdmins - Specifies that the alert is sent to the account administrators. Possible values include: 'SecurityAlertPolicyEmailAccountAdminsEnabled', 'SecurityAlertPolicyEmailAccountAdminsDisabled'
    EmailAccountAdmins SecurityAlertPolicyEmailAccountAdmins `json:"emailAccountAdmins,omitempty"`
    // StorageEndpoint - Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. If state is Enabled, storageEndpoint is required.
    StorageEndpoint *string `json:"storageEndpoint,omitempty"`
    // StorageAccountAccessKey - Specifies the identifier key of the Threat Detection audit storage account. If state is Enabled, storageAccountAccessKey is required.
    StorageAccountAccessKey *string `json:"storageAccountAccessKey,omitempty"`
    // RetentionDays - Specifies the number of days to keep in the Threat Detection audit logs.
    RetentionDays *int32 `json:"retentionDays,omitempty"`
    // UseServerDefault - Specifies whether to use the default server policy. Possible values include: 'SecurityAlertPolicyUseServerDefaultEnabled', 'SecurityAlertPolicyUseServerDefaultDisabled'
    UseServerDefault SecurityAlertPolicyUseServerDefault `json:"useServerDefault,omitempty"`
}

DatabaseSecurityAlertPolicyProperties properties for a database Threat Detection policy.

type DatabaseThreatDetectionPoliciesClient Uses

type DatabaseThreatDetectionPoliciesClient struct {
    BaseClient
}

DatabaseThreatDetectionPoliciesClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewDatabaseThreatDetectionPoliciesClient Uses

func NewDatabaseThreatDetectionPoliciesClient(subscriptionID string) DatabaseThreatDetectionPoliciesClient

NewDatabaseThreatDetectionPoliciesClient creates an instance of the DatabaseThreatDetectionPoliciesClient client.

func NewDatabaseThreatDetectionPoliciesClientWithBaseURI Uses

func NewDatabaseThreatDetectionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseThreatDetectionPoliciesClient

NewDatabaseThreatDetectionPoliciesClientWithBaseURI creates an instance of the DatabaseThreatDetectionPoliciesClient client.

func (DatabaseThreatDetectionPoliciesClient) CreateOrUpdate Uses

func (client DatabaseThreatDetectionPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseSecurityAlertPolicy) (result DatabaseSecurityAlertPolicy, err error)

CreateOrUpdate creates or updates a database's threat detection policy. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database for which database Threat Detection policy is defined. parameters - the database Threat Detection policy.

func (DatabaseThreatDetectionPoliciesClient) CreateOrUpdatePreparer Uses

func (client DatabaseThreatDetectionPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseSecurityAlertPolicy) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DatabaseThreatDetectionPoliciesClient) CreateOrUpdateResponder Uses

func (client DatabaseThreatDetectionPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result DatabaseSecurityAlertPolicy, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (DatabaseThreatDetectionPoliciesClient) CreateOrUpdateSender Uses

func (client DatabaseThreatDetectionPoliciesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

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

func (DatabaseThreatDetectionPoliciesClient) Get Uses

func (client DatabaseThreatDetectionPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseSecurityAlertPolicy, err error)

Get gets a database's threat detection policy. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database for which database Threat Detection policy is defined.

func (DatabaseThreatDetectionPoliciesClient) GetPreparer Uses

func (client DatabaseThreatDetectionPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DatabaseThreatDetectionPoliciesClient) GetResponder Uses

func (client DatabaseThreatDetectionPoliciesClient) GetResponder(resp *http.Response) (result DatabaseSecurityAlertPolicy, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (DatabaseThreatDetectionPoliciesClient) GetSender Uses

func (client DatabaseThreatDetectionPoliciesClient) GetSender(req *http.Request) (*http.Response, error)

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

type DatabaseUpdate Uses

type DatabaseUpdate struct {
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // DatabaseProperties - The properties representing the resource.
    *DatabaseProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

DatabaseUpdate represents a database update.

func (DatabaseUpdate) MarshalJSON Uses

func (du DatabaseUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseUpdate.

func (*DatabaseUpdate) UnmarshalJSON Uses

func (du *DatabaseUpdate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DatabaseUpdate struct.

type DatabaseUsage Uses

type DatabaseUsage struct {
    // Name - READ-ONLY; The name of the usage metric.
    Name *string `json:"name,omitempty"`
    // ResourceName - READ-ONLY; The name of the resource.
    ResourceName *string `json:"resourceName,omitempty"`
    // DisplayName - READ-ONLY; The usage metric display name.
    DisplayName *string `json:"displayName,omitempty"`
    // CurrentValue - READ-ONLY; The current value of the usage metric.
    CurrentValue *float64 `json:"currentValue,omitempty"`
    // Limit - READ-ONLY; The current limit of the usage metric.
    Limit *float64 `json:"limit,omitempty"`
    // Unit - READ-ONLY; The units of the usage metric.
    Unit *string `json:"unit,omitempty"`
    // NextResetTime - READ-ONLY; The next reset time for the usage metric (ISO8601 format).
    NextResetTime *date.Time `json:"nextResetTime,omitempty"`
}

DatabaseUsage the database usages.

type DatabaseUsageListResult Uses

type DatabaseUsageListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of database usages for the database.
    Value *[]DatabaseUsage `json:"value,omitempty"`
}

DatabaseUsageListResult the response to a list database metrics request.

type DatabaseUsagesClient Uses

type DatabaseUsagesClient struct {
    BaseClient
}

DatabaseUsagesClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewDatabaseUsagesClient Uses

func NewDatabaseUsagesClient(subscriptionID string) DatabaseUsagesClient

NewDatabaseUsagesClient creates an instance of the DatabaseUsagesClient client.

func NewDatabaseUsagesClientWithBaseURI Uses

func NewDatabaseUsagesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseUsagesClient

NewDatabaseUsagesClientWithBaseURI creates an instance of the DatabaseUsagesClient client.

func (DatabaseUsagesClient) ListByDatabase Uses

func (client DatabaseUsagesClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseUsageListResult, err error)

ListByDatabase returns database usages. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database.

func (DatabaseUsagesClient) ListByDatabasePreparer Uses

func (client DatabaseUsagesClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

ListByDatabasePreparer prepares the ListByDatabase request.

func (DatabaseUsagesClient) ListByDatabaseResponder Uses

func (client DatabaseUsagesClient) ListByDatabaseResponder(resp *http.Response) (result DatabaseUsageListResult, err error)

ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.

func (DatabaseUsagesClient) ListByDatabaseSender Uses

func (client DatabaseUsagesClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)

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

type DatabaseVulnerabilityAssessment Uses

type DatabaseVulnerabilityAssessment struct {
    autorest.Response `json:"-"`
    // DatabaseVulnerabilityAssessmentProperties - Resource properties.
    *DatabaseVulnerabilityAssessmentProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

DatabaseVulnerabilityAssessment a database vulnerability assessment.

func (DatabaseVulnerabilityAssessment) MarshalJSON Uses

func (dva DatabaseVulnerabilityAssessment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseVulnerabilityAssessment.

func (*DatabaseVulnerabilityAssessment) UnmarshalJSON Uses

func (dva *DatabaseVulnerabilityAssessment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DatabaseVulnerabilityAssessment struct.

type DatabaseVulnerabilityAssessmentListResult Uses

type DatabaseVulnerabilityAssessmentListResult struct {
    autorest.Response `json:"-"`
    // Value - READ-ONLY; Array of results.
    Value *[]DatabaseVulnerabilityAssessment `json:"value,omitempty"`
    // NextLink - READ-ONLY; Link to retrieve next page of results.
    NextLink *string `json:"nextLink,omitempty"`
}

DatabaseVulnerabilityAssessmentListResult a list of the database's vulnerability assessments.

func (DatabaseVulnerabilityAssessmentListResult) IsEmpty Uses

func (dvalr DatabaseVulnerabilityAssessmentListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DatabaseVulnerabilityAssessmentListResultIterator Uses

type DatabaseVulnerabilityAssessmentListResultIterator struct {
    // contains filtered or unexported fields
}

DatabaseVulnerabilityAssessmentListResultIterator provides access to a complete listing of DatabaseVulnerabilityAssessment values.

func NewDatabaseVulnerabilityAssessmentListResultIterator Uses

func NewDatabaseVulnerabilityAssessmentListResultIterator(page DatabaseVulnerabilityAssessmentListResultPage) DatabaseVulnerabilityAssessmentListResultIterator

Creates a new instance of the DatabaseVulnerabilityAssessmentListResultIterator type.

func (*DatabaseVulnerabilityAssessmentListResultIterator) Next Uses

func (iter *DatabaseVulnerabilityAssessmentListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*DatabaseVulnerabilityAssessmentListResultIterator) NextWithContext Uses

func (iter *DatabaseVulnerabilityAssessmentListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (DatabaseVulnerabilityAssessmentListResultIterator) NotDone Uses

func (iter DatabaseVulnerabilityAssessmentListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (DatabaseVulnerabilityAssessmentListResultIterator) Response Uses

func (iter DatabaseVulnerabilityAssessmentListResultIterator) Response() DatabaseVulnerabilityAssessmentListResult

Response returns the raw server response from the last page request.

func (DatabaseVulnerabilityAssessmentListResultIterator) Value Uses

func (iter DatabaseVulnerabilityAssessmentListResultIterator) Value() DatabaseVulnerabilityAssessment

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type DatabaseVulnerabilityAssessmentListResultPage Uses

type DatabaseVulnerabilityAssessmentListResultPage struct {
    // contains filtered or unexported fields
}

DatabaseVulnerabilityAssessmentListResultPage contains a page of DatabaseVulnerabilityAssessment values.

func NewDatabaseVulnerabilityAssessmentListResultPage Uses

func NewDatabaseVulnerabilityAssessmentListResultPage(getNextPage func(context.Context, DatabaseVulnerabilityAssessmentListResult) (DatabaseVulnerabilityAssessmentListResult, error)) DatabaseVulnerabilityAssessmentListResultPage

Creates a new instance of the DatabaseVulnerabilityAssessmentListResultPage type.

func (*DatabaseVulnerabilityAssessmentListResultPage) Next Uses

func (page *DatabaseVulnerabilityAssessmentListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*DatabaseVulnerabilityAssessmentListResultPage) NextWithContext Uses

func (page *DatabaseVulnerabilityAssessmentListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (DatabaseVulnerabilityAssessmentListResultPage) NotDone Uses

func (page DatabaseVulnerabilityAssessmentListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (DatabaseVulnerabilityAssessmentListResultPage) Response Uses

func (page DatabaseVulnerabilityAssessmentListResultPage) Response() DatabaseVulnerabilityAssessmentListResult

Response returns the raw server response from the last page request.

func (DatabaseVulnerabilityAssessmentListResultPage) Values Uses

func (page DatabaseVulnerabilityAssessmentListResultPage) Values() []DatabaseVulnerabilityAssessment

Values returns the slice of values for the current page or nil if there are no values.

type DatabaseVulnerabilityAssessmentProperties Uses

type DatabaseVulnerabilityAssessmentProperties struct {
    // StorageContainerPath - A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).  It is required if server level vulnerability assessment policy doesn't set
    StorageContainerPath *string `json:"storageContainerPath,omitempty"`
    // StorageContainerSasKey - A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required.
    StorageContainerSasKey *string `json:"storageContainerSasKey,omitempty"`
    // StorageAccountAccessKey - Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required.
    StorageAccountAccessKey *string `json:"storageAccountAccessKey,omitempty"`
    // RecurringScans - The recurring scans settings
    RecurringScans *VulnerabilityAssessmentRecurringScansProperties `json:"recurringScans,omitempty"`
}

DatabaseVulnerabilityAssessmentProperties properties of a database Vulnerability Assessment.

type DatabaseVulnerabilityAssessmentRuleBaseline Uses

type DatabaseVulnerabilityAssessmentRuleBaseline struct {
    autorest.Response `json:"-"`
    // DatabaseVulnerabilityAssessmentRuleBaselineProperties - Resource properties.
    *DatabaseVulnerabilityAssessmentRuleBaselineProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

DatabaseVulnerabilityAssessmentRuleBaseline a database vulnerability assessment rule baseline.

func (DatabaseVulnerabilityAssessmentRuleBaseline) MarshalJSON Uses

func (dvarb DatabaseVulnerabilityAssessmentRuleBaseline) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseVulnerabilityAssessmentRuleBaseline.

func (*DatabaseVulnerabilityAssessmentRuleBaseline) UnmarshalJSON Uses

func (dvarb *DatabaseVulnerabilityAssessmentRuleBaseline) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DatabaseVulnerabilityAssessmentRuleBaseline struct.

type DatabaseVulnerabilityAssessmentRuleBaselineItem Uses

type DatabaseVulnerabilityAssessmentRuleBaselineItem struct {
    // Result - The rule baseline result
    Result *[]string `json:"result,omitempty"`
}

DatabaseVulnerabilityAssessmentRuleBaselineItem properties for an Azure SQL Database Vulnerability Assessment rule baseline's result.

type DatabaseVulnerabilityAssessmentRuleBaselineProperties Uses

type DatabaseVulnerabilityAssessmentRuleBaselineProperties struct {
    // BaselineResults - The rule baseline result
    BaselineResults *[]DatabaseVulnerabilityAssessmentRuleBaselineItem `json:"baselineResults,omitempty"`
}

DatabaseVulnerabilityAssessmentRuleBaselineProperties properties of a database Vulnerability Assessment rule baseline.

type DatabaseVulnerabilityAssessmentRuleBaselinesClient Uses

type DatabaseVulnerabilityAssessmentRuleBaselinesClient struct {
    BaseClient
}

DatabaseVulnerabilityAssessmentRuleBaselinesClient 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 NewDatabaseVulnerabilityAssessmentRuleBaselinesClient Uses

func NewDatabaseVulnerabilityAssessmentRuleBaselinesClient(subscriptionID string) DatabaseVulnerabilityAssessmentRuleBaselinesClient

NewDatabaseVulnerabilityAssessmentRuleBaselinesClient creates an instance of the DatabaseVulnerabilityAssessmentRuleBaselinesClient client.

func NewDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI Uses

func NewDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseVulnerabilityAssessmentRuleBaselinesClient

NewDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI creates an instance of the DatabaseVulnerabilityAssessmentRuleBaselinesClient client.

func (DatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdate Uses

func (client DatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName, parameters DatabaseVulnerabilityAssessmentRuleBaseline) (result DatabaseVulnerabilityAssessmentRuleBaseline, err error)

CreateOrUpdate creates or updates a database's vulnerability assessment rule baseline. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database for which the vulnerability assessment rule baseline is defined. ruleID - the vulnerability assessment rule ID. baselineName - the name of the vulnerability assessment rule baseline (default implies a baseline on a database level rule and master for server level rule). parameters - the requested rule baseline resource.

func (DatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdatePreparer Uses

func (client DatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName, parameters DatabaseVulnerabilityAssessmentRuleBaseline) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdateResponder Uses

func (client DatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdateResponder(resp *http.Response) (result DatabaseVulnerabilityAssessmentRuleBaseline, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (DatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdateSender Uses

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

func (client DatabaseVulnerabilityAssessmentRuleBaselinesClient) Delete(ctx context.Context, resourceGroupName string, serverName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName) (result autorest.Response, err error)

Delete removes the database's vulnerability assessment rule baseline. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database for which the vulnerability assessment rule baseline is defined. ruleID - the vulnerability assessment rule ID. baselineName - the name of the vulnerability assessment rule baseline (default implies a baseline on a database level rule and master for server level rule).

func (DatabaseVulnerabilityAssessmentRuleBaselinesClient) DeletePreparer Uses

func (client DatabaseVulnerabilityAssessmentRuleBaselinesClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (DatabaseVulnerabilityAssessmentRuleBaselinesClient) DeleteResponder Uses

func (client DatabaseVulnerabilityAssessmentRuleBaselinesClient) 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 (DatabaseVulnerabilityAssessmentRuleBaselinesClient) DeleteSender Uses

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

func (client DatabaseVulnerabilityAssessmentRuleBaselinesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName) (result DatabaseVulnerabilityAssessmentRuleBaseline, err error)

Get gets a database's vulnerability assessment rule baseline. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database for which the vulnerability assessment rule baseline is defined. ruleID - the vulnerability assessment rule ID. baselineName - the name of the vulnerability assessment rule baseline (default implies a baseline on a database level rule and master for server level rule).

func (DatabaseVulnerabilityAssessmentRuleBaselinesClient) GetPreparer Uses

func (client DatabaseVulnerabilityAssessmentRuleBaselinesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName) (*http.Request, error)

GetPreparer prepares the Get request.

func (DatabaseVulnerabilityAssessmentRuleBaselinesClient) GetResponder Uses

func (client DatabaseVulnerabilityAssessmentRuleBaselinesClient) GetResponder(resp *http.Response) (result DatabaseVulnerabilityAssessmentRuleBaseline, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (DatabaseVulnerabilityAssessmentRuleBaselinesClient) GetSender Uses

func (client DatabaseVulnerabilityAssessmentRuleBaselinesClient) GetSender(req *http.Request) (*http.Response, error)

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

type DatabaseVulnerabilityAssessmentsClient Uses

type DatabaseVulnerabilityAssessmentsClient struct {
    BaseClient
}

DatabaseVulnerabilityAssessmentsClient 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 NewDatabaseVulnerabilityAssessmentsClient Uses

func NewDatabaseVulnerabilityAssessmentsClient(subscriptionID string) DatabaseVulnerabilityAssessmentsClient

NewDatabaseVulnerabilityAssessmentsClient creates an instance of the DatabaseVulnerabilityAssessmentsClient client.

func NewDatabaseVulnerabilityAssessmentsClientWithBaseURI Uses

func NewDatabaseVulnerabilityAssessmentsClientWithBaseURI(baseURI string, subscriptionID string) DatabaseVulnerabilityAssessmentsClient

NewDatabaseVulnerabilityAssessmentsClientWithBaseURI creates an instance of the DatabaseVulnerabilityAssessmentsClient client.

func (DatabaseVulnerabilityAssessmentsClient) CreateOrUpdate Uses

func (client DatabaseVulnerabilityAssessmentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseVulnerabilityAssessment) (result DatabaseVulnerabilityAssessment, err error)

CreateOrUpdate creates or updates the database's vulnerability assessment. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database for which the vulnerability assessment is defined. parameters - the requested resource.

func (DatabaseVulnerabilityAssessmentsClient) CreateOrUpdatePreparer Uses

func (client DatabaseVulnerabilityAssessmentsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseVulnerabilityAssessment) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DatabaseVulnerabilityAssessmentsClient) CreateOrUpdateResponder Uses

func (client DatabaseVulnerabilityAssessmentsClient) CreateOrUpdateResponder(resp *http.Response) (result DatabaseVulnerabilityAssessment, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (DatabaseVulnerabilityAssessmentsClient) CreateOrUpdateSender Uses

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

func (client DatabaseVulnerabilityAssessmentsClient) Delete(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result autorest.Response, err error)

Delete removes the database's vulnerability assessment. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database for which the vulnerability assessment is defined.

func (DatabaseVulnerabilityAssessmentsClient) DeletePreparer Uses

func (client DatabaseVulnerabilityAssessmentsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (DatabaseVulnerabilityAssessmentsClient) DeleteResponder Uses

func (client DatabaseVulnerabilityAssessmentsClient) 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 (DatabaseVulnerabilityAssessmentsClient) DeleteSender Uses

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

func (client DatabaseVulnerabilityAssessmentsClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseVulnerabilityAssessment, err error)

Get gets the database's vulnerability assessment. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database for which the vulnerability assessment is defined.

func (DatabaseVulnerabilityAssessmentsClient) GetPreparer Uses

func (client DatabaseVulnerabilityAssessmentsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DatabaseVulnerabilityAssessmentsClient) GetResponder Uses

func (client DatabaseVulnerabilityAssessmentsClient) GetResponder(resp *http.Response) (result DatabaseVulnerabilityAssessment, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (DatabaseVulnerabilityAssessmentsClient) GetSender Uses

func (client DatabaseVulnerabilityAssessmentsClient) 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 (DatabaseVulnerabilityAssessmentsClient) ListByDatabase Uses

func (client DatabaseVulnerabilityAssessmentsClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseVulnerabilityAssessmentListResultPage, err error)

ListByDatabase lists the vulnerability assessment policies associated with a database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database for which the vulnerability assessment policies are defined.

func (DatabaseVulnerabilityAssessmentsClient) ListByDatabaseComplete Uses

func (client DatabaseVulnerabilityAssessmentsClient) ListByDatabaseComplete(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseVulnerabilityAssessmentListResultIterator, err error)

ListByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.

func (DatabaseVulnerabilityAssessmentsClient) ListByDatabasePreparer Uses

func (client DatabaseVulnerabilityAssessmentsClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

ListByDatabasePreparer prepares the ListByDatabase request.

func (DatabaseVulnerabilityAssessmentsClient) ListByDatabaseResponder Uses

func (client DatabaseVulnerabilityAssessmentsClient) ListByDatabaseResponder(resp *http.Response) (result DatabaseVulnerabilityAssessmentListResult, err error)

ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.

func (DatabaseVulnerabilityAssessmentsClient) ListByDatabaseSender Uses

func (client DatabaseVulnerabilityAssessmentsClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)

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

type DatabasesClient Uses

type DatabasesClient struct {
    BaseClient
}

DatabasesClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewDatabasesClient Uses

func NewDatabasesClient(subscriptionID string) DatabasesClient

NewDatabasesClient creates an instance of the DatabasesClient client.

func NewDatabasesClientWithBaseURI Uses

func NewDatabasesClientWithBaseURI(baseURI string, subscriptionID string) DatabasesClient

NewDatabasesClientWithBaseURI creates an instance of the DatabasesClient client.

func (DatabasesClient) CreateImportOperation Uses

func (client DatabasesClient) CreateImportOperation(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters ImportExtensionRequest) (result DatabasesCreateImportOperationFuture, err error)

CreateImportOperation creates an import operation that imports a bacpac into an existing database. The existing database must be empty. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database to import into parameters - the required parameters for importing a Bacpac into a database.

func (DatabasesClient) CreateImportOperationPreparer Uses

func (client DatabasesClient) CreateImportOperationPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters ImportExtensionRequest) (*http.Request, error)

CreateImportOperationPreparer prepares the CreateImportOperation request.

func (DatabasesClient) CreateImportOperationResponder Uses

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 Uses

func (client DatabasesClient) CreateImportOperationSender(req *http.Request) (future DatabasesCreateImportOperationFuture, err error)

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

func (DatabasesClient) CreateOrUpdate Uses

func (client DatabasesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters Database) (result DatabasesCreateOrUpdateFuture, err error)

CreateOrUpdate creates a new database or updates an existing database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database to be operated on (updated or created). parameters - the required parameters for creating or updating a database.

func (DatabasesClient) CreateOrUpdatePreparer Uses

func (client DatabasesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters Database) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DatabasesClient) CreateOrUpdateResponder Uses

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 Uses

func (client DatabasesClient) CreateOrUpdateSender(req *http.Request) (future DatabasesCreateOrUpdateFuture, err error)

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

func (DatabasesClient) Delete Uses

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

Delete deletes a database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database to be deleted.

func (DatabasesClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (DatabasesClient) DeleteResponder Uses

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 Uses

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 Uses

func (client DatabasesClient) Export(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters ExportRequest) (result DatabasesExportFuture, err error)

Export exports a database to a bacpac. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database to be exported. parameters - the required parameters for exporting a database.

func (DatabasesClient) ExportPreparer Uses

func (client DatabasesClient) ExportPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters ExportRequest) (*http.Request, error)

ExportPreparer prepares the Export request.

func (DatabasesClient) ExportResponder Uses

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 Uses

func (client DatabasesClient) ExportSender(req *http.Request) (future DatabasesExportFuture, err error)

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

func (DatabasesClient) Get Uses

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

Get gets a database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database to be retrieved. expand - a comma separated list of child objects to expand in the response. Possible properties: serviceTierAdvisors, transparentDataEncryption.

func (DatabasesClient) GetByElasticPool Uses

func (client DatabasesClient) GetByElasticPool(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string, databaseName string) (result Database, err error)

GetByElasticPool gets a database inside of an elastic pool. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. elasticPoolName - the name of the elastic pool to be retrieved. databaseName - the name of the database to be retrieved.

func (DatabasesClient) GetByElasticPoolPreparer Uses

func (client DatabasesClient) GetByElasticPoolPreparer(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string, databaseName string) (*http.Request, error)

GetByElasticPoolPreparer prepares the GetByElasticPool request.

func (DatabasesClient) GetByElasticPoolResponder Uses

func (client DatabasesClient) GetByElasticPoolResponder(resp *http.Response) (result Database, err error)

GetByElasticPoolResponder handles the response to the GetByElasticPool request. The method always closes the http.Response Body.

func (DatabasesClient) GetByElasticPoolSender Uses

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

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

func (DatabasesClient) GetByRecommendedElasticPool Uses

func (client DatabasesClient) GetByRecommendedElasticPool(ctx context.Context, resourceGroupName string, serverName string, recommendedElasticPoolName string, databaseName string) (result Database, err error)

GetByRecommendedElasticPool gets a database inside of a recommended elastic pool. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. recommendedElasticPoolName - the name of the elastic pool to be retrieved. databaseName - the name of the database to be retrieved.

func (DatabasesClient) GetByRecommendedElasticPoolPreparer Uses

func (client DatabasesClient) GetByRecommendedElasticPoolPreparer(ctx context.Context, resourceGroupName string, serverName string, recommendedElasticPoolName string, databaseName string) (*http.Request, error)

GetByRecommendedElasticPoolPreparer prepares the GetByRecommendedElasticPool request.

func (DatabasesClient) GetByRecommendedElasticPoolResponder Uses

func (client DatabasesClient) GetByRecommendedElasticPoolResponder(resp *http.Response) (result Database, err error)

GetByRecommendedElasticPoolResponder handles the response to the GetByRecommendedElasticPool request. The method always closes the http.Response Body.

func (DatabasesClient) GetByRecommendedElasticPoolSender Uses

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

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

func (DatabasesClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (DatabasesClient) GetResponder Uses

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 Uses

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) Import Uses

func (client DatabasesClient) Import(ctx context.Context, resourceGroupName string, serverName string, parameters ImportRequest) (result DatabasesImportFuture, err error)

Import imports a bacpac into a new database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. parameters - the required parameters for importing a Bacpac into a database.

func (DatabasesClient) ImportPreparer Uses

func (client DatabasesClient) ImportPreparer(ctx context.Context, resourceGroupName string, serverName string, parameters ImportRequest) (*http.Request, error)

ImportPreparer prepares the Import request.

func (DatabasesClient) ImportResponder Uses

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 Uses

func (client DatabasesClient) ImportSender(req *http.Request) (future DatabasesImportFuture, err error)

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

func (DatabasesClient) ListByElasticPool Uses

func (client DatabasesClient) ListByElasticPool(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (result DatabaseListResult, err error)

ListByElasticPool returns a list of databases in an elastic pool. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. elasticPoolName - the name of the elastic pool to be retrieved.

func (DatabasesClient) ListByElasticPoolPreparer Uses

func (client DatabasesClient) ListByElasticPoolPreparer(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (*http.Request, error)

ListByElasticPoolPreparer prepares the ListByElasticPool request.

func (DatabasesClient) ListByElasticPoolResponder Uses

func (client DatabasesClient) ListByElasticPoolResponder(resp *http.Response) (result DatabaseListResult, err error)

ListByElasticPoolResponder handles the response to the ListByElasticPool request. The method always closes the http.Response Body.

func (DatabasesClient) ListByElasticPoolSender Uses

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

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

func (DatabasesClient) ListByRecommendedElasticPool Uses

func (client DatabasesClient) ListByRecommendedElasticPool(ctx context.Context, resourceGroupName string, serverName string, recommendedElasticPoolName string) (result DatabaseListResult, err error)

ListByRecommendedElasticPool returns a list of databases inside a recommended elastic pool. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. recommendedElasticPoolName - the name of the recommended elastic pool to be retrieved.

func (DatabasesClient) ListByRecommendedElasticPoolPreparer Uses

func (client DatabasesClient) ListByRecommendedElasticPoolPreparer(ctx context.Context, resourceGroupName string, serverName string, recommendedElasticPoolName string) (*http.Request, error)

ListByRecommendedElasticPoolPreparer prepares the ListByRecommendedElasticPool request.

func (DatabasesClient) ListByRecommendedElasticPoolResponder Uses

func (client DatabasesClient) ListByRecommendedElasticPoolResponder(resp *http.Response) (result DatabaseListResult, err error)

ListByRecommendedElasticPoolResponder handles the response to the ListByRecommendedElasticPool request. The method always closes the http.Response Body.

func (DatabasesClient) ListByRecommendedElasticPoolSender Uses

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

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

func (DatabasesClient) ListByServer Uses

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

ListByServer returns a list of databases in a server. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. expand - a comma separated list of child objects to expand in the response. Possible properties: serviceTierAdvisors, transparentDataEncryption. filter - an OData filter expression that describes a subset of databases to return.

func (DatabasesClient) ListByServerPreparer Uses

func (client DatabasesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string, expand string, filter string) (*http.Request, error)

ListByServerPreparer prepares the ListByServer request.

func (DatabasesClient) ListByServerResponder Uses

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 Uses

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 (DatabasesClient) ListMetricDefinitions Uses

func (client DatabasesClient) ListMetricDefinitions(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result MetricDefinitionListResult, err error)

ListMetricDefinitions returns database metric definitions. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database.

func (DatabasesClient) ListMetricDefinitionsPreparer Uses

func (client DatabasesClient) ListMetricDefinitionsPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

ListMetricDefinitionsPreparer prepares the ListMetricDefinitions request.

func (DatabasesClient) ListMetricDefinitionsResponder Uses

func (client DatabasesClient) ListMetricDefinitionsResponder(resp *http.Response) (result MetricDefinitionListResult, err error)

ListMetricDefinitionsResponder handles the response to the ListMetricDefinitions request. The method always closes the http.Response Body.

func (DatabasesClient) ListMetricDefinitionsSender Uses

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

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

func (DatabasesClient) ListMetrics Uses

func (client DatabasesClient) ListMetrics(ctx context.Context, resourceGroupName string, serverName string, databaseName string, filter string) (result MetricListResult, err error)

ListMetrics returns database metrics. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database. filter - an OData filter expression that describes a subset of metrics to return.

func (DatabasesClient) ListMetricsPreparer Uses

func (client DatabasesClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, filter string) (*http.Request, error)

ListMetricsPreparer prepares the ListMetrics request.

func (DatabasesClient) ListMetricsResponder Uses

func (client DatabasesClient) ListMetricsResponder(resp *http.Response) (result MetricListResult, err error)

ListMetricsResponder handles the response to the ListMetrics request. The method always closes the http.Response Body.

func (DatabasesClient) ListMetricsSender Uses

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

func (DatabasesClient) Pause Uses

func (client DatabasesClient) Pause(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabasesPauseFuture, err error)

Pause pauses a data warehouse. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the data warehouse to pause.

func (DatabasesClient) PausePreparer Uses

func (client DatabasesClient) PausePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

PausePreparer prepares the Pause request.

func (DatabasesClient) PauseResponder Uses

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 Uses

func (client DatabasesClient) PauseSender(req *http.Request) (future DatabasesPauseFuture, err error)

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

func (DatabasesClient) Rename Uses

func (client DatabasesClient) Rename(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters ResourceMoveDefinition) (result autorest.Response, err error)

Rename renames a database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database to rename. parameters - the resource move definition for renaming this database.

func (DatabasesClient) RenamePreparer Uses

func (client DatabasesClient) RenamePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters ResourceMoveDefinition) (*http.Request, error)

RenamePreparer prepares the Rename request.

func (DatabasesClient) RenameResponder Uses

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

RenameResponder handles the response to the Rename request. The method always closes the http.Response Body.

func (DatabasesClient) RenameSender Uses

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

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

func (DatabasesClient) Resume Uses

func (client DatabasesClient) Resume(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabasesResumeFuture, err error)

Resume resumes a data warehouse. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the data warehouse to resume.

func (DatabasesClient) ResumePreparer Uses

func (client DatabasesClient) ResumePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

ResumePreparer prepares the Resume request.

func (DatabasesClient) ResumeResponder Uses

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 Uses

func (client DatabasesClient) ResumeSender(req *http.Request) (future DatabasesResumeFuture, err error)

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

func (DatabasesClient) Update Uses

func (client DatabasesClient) Update(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseUpdate) (result DatabasesUpdateFuture, err error)

Update updates an existing database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database to be updated. parameters - the required parameters for updating a database.

func (DatabasesClient) UpdatePreparer Uses

func (client DatabasesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (DatabasesClient) UpdateResponder Uses

func (client DatabasesClient) UpdateResponder(resp *http.Response) (result Database, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (DatabasesClient) UpdateSender Uses

func (client DatabasesClient) UpdateSender(req *http.Request) (future DatabasesUpdateFuture, err error)

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

type DatabasesCreateImportOperationFuture Uses

type DatabasesCreateImportOperationFuture struct {
    azure.Future
}

DatabasesCreateImportOperationFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*DatabasesCreateImportOperationFuture) Result Uses

func (future *DatabasesCreateImportOperationFuture) Result(client DatabasesClient) (ier ImportExportResponse, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type DatabasesCreateOrUpdateFuture Uses

type DatabasesCreateOrUpdateFuture struct {
    azure.Future
}

DatabasesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*DatabasesCreateOrUpdateFuture) Result Uses

func (future *DatabasesCreateOrUpdateFuture) Result(client DatabasesClient) (d Database, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type DatabasesExportFuture Uses

type DatabasesExportFuture struct {
    azure.Future
}

DatabasesExportFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*DatabasesExportFuture) Result Uses

func (future *DatabasesExportFuture) Result(client DatabasesClient) (ier ImportExportResponse, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type DatabasesImportFuture Uses

type DatabasesImportFuture struct {
    azure.Future
}

DatabasesImportFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*DatabasesImportFuture) Result Uses

func (future *DatabasesImportFuture) Result(client DatabasesClient) (ier ImportExportResponse, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type DatabasesPauseFuture Uses

type DatabasesPauseFuture struct {
    azure.Future
}

DatabasesPauseFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*DatabasesPauseFuture) Result Uses

func (future *DatabasesPauseFuture) Result(client DatabasesClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type DatabasesResumeFuture Uses

type DatabasesResumeFuture struct {
    azure.Future
}

DatabasesResumeFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*DatabasesResumeFuture) Result Uses

func (future *DatabasesResumeFuture) Result(client DatabasesClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type DatabasesUpdateFuture Uses

type DatabasesUpdateFuture struct {
    azure.Future
}

DatabasesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*DatabasesUpdateFuture) Result Uses

func (future *DatabasesUpdateFuture) Result(client DatabasesClient) (d Database, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type EditionCapability Uses

type EditionCapability struct {
    // Name - READ-ONLY; The edition name.
    Name *string `json:"name,omitempty"`
    // Status - READ-ONLY; The status of the edition. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled'
    Status CapabilityStatus `json:"status,omitempty"`
    // SupportedServiceLevelObjectives - READ-ONLY; The list of supported service objectives for the edition.
    SupportedServiceLevelObjectives *[]ServiceObjectiveCapability `json:"supportedServiceLevelObjectives,omitempty"`
    // ZoneRedundant - READ-ONLY; Whether or not zone redundancy is supported for the edition.
    ZoneRedundant *bool `json:"zoneRedundant,omitempty"`
}

EditionCapability the database edition capabilities.

type ElasticPool Uses

type ElasticPool struct {
    autorest.Response `json:"-"`
    // ElasticPoolProperties - The properties representing the resource.
    *ElasticPoolProperties `json:"properties,omitempty"`
    // Kind - READ-ONLY; Kind of elastic pool.  This is metadata used for the Azure portal experience.
    Kind *string `json:"kind,omitempty"`
    // Location - Resource location.
    Location *string `json:"location,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // ID - READ-ONLY; Resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

ElasticPool represents a database elastic pool.

func (ElasticPool) MarshalJSON Uses

func (ep ElasticPool) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ElasticPool.

func (*ElasticPool) UnmarshalJSON Uses

func (ep *ElasticPool) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ElasticPool struct.

type ElasticPoolActivitiesClient Uses

type ElasticPoolActivitiesClient struct {
    BaseClient
}

ElasticPoolActivitiesClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewElasticPoolActivitiesClient Uses

func NewElasticPoolActivitiesClient(subscriptionID string) ElasticPoolActivitiesClient

NewElasticPoolActivitiesClient creates an instance of the ElasticPoolActivitiesClient client.

func NewElasticPoolActivitiesClientWithBaseURI Uses

func NewElasticPoolActivitiesClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolActivitiesClient

NewElasticPoolActivitiesClientWithBaseURI creates an instance of the ElasticPoolActivitiesClient client.

func (ElasticPoolActivitiesClient) ListByElasticPool Uses

func (client ElasticPoolActivitiesClient) ListByElasticPool(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (result ElasticPoolActivityListResult, err error)

ListByElasticPool returns elastic pool activities. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. elasticPoolName - the name of the elastic pool for which to get the current activity.

func (ElasticPoolActivitiesClient) ListByElasticPoolPreparer Uses

func (client ElasticPoolActivitiesClient) ListByElasticPoolPreparer(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (*http.Request, error)

ListByElasticPoolPreparer prepares the ListByElasticPool request.

func (ElasticPoolActivitiesClient) ListByElasticPoolResponder Uses

func (client ElasticPoolActivitiesClient) ListByElasticPoolResponder(resp *http.Response) (result ElasticPoolActivityListResult, err error)

ListByElasticPoolResponder handles the response to the ListByElasticPool request. The method always closes the http.Response Body.

func (ElasticPoolActivitiesClient) ListByElasticPoolSender Uses

func (client ElasticPoolActivitiesClient) ListByElasticPoolSender(req *http.Request) (*http.Response, error)

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

type ElasticPoolActivity Uses

type ElasticPoolActivity struct {
    // Location - The geo-location where the resource lives
    Location *string `json:"location,omitempty"`
    // ElasticPoolActivityProperties - The properties representing the resource.
    *ElasticPoolActivityProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

ElasticPoolActivity represents the activity on an elastic pool.

func (ElasticPoolActivity) MarshalJSON Uses

func (epa ElasticPoolActivity) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ElasticPoolActivity.

func (*ElasticPoolActivity) UnmarshalJSON Uses

func (epa *ElasticPoolActivity) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ElasticPoolActivity struct.

type ElasticPoolActivityListResult Uses

type ElasticPoolActivityListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of elastic pool activities.
    Value *[]ElasticPoolActivity `json:"value,omitempty"`
}

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

type ElasticPoolActivityProperties Uses

type ElasticPoolActivityProperties struct {
    // EndTime - READ-ONLY; The time the operation finished (ISO8601 format).
    EndTime *date.Time `json:"endTime,omitempty"`
    // ErrorCode - READ-ONLY; The error code if available.
    ErrorCode *int32 `json:"errorCode,omitempty"`
    // ErrorMessage - READ-ONLY; The error message if available.
    ErrorMessage *string `json:"errorMessage,omitempty"`
    // ErrorSeverity - READ-ONLY; The error severity if available.
    ErrorSeverity *int32 `json:"errorSeverity,omitempty"`
    // Operation - READ-ONLY; The operation name.
    Operation *string `json:"operation,omitempty"`
    // OperationID - READ-ONLY; The unique operation ID.
    OperationID *uuid.UUID `json:"operationId,omitempty"`
    // PercentComplete - READ-ONLY; The percentage complete if available.
    PercentComplete *int32 `json:"percentComplete,omitempty"`
    // RequestedDatabaseDtuMax - READ-ONLY; The requested max DTU per database if available.
    RequestedDatabaseDtuMax *int32 `json:"requestedDatabaseDtuMax,omitempty"`
    // RequestedDatabaseDtuMin - READ-ONLY; The requested min DTU per database if available.
    RequestedDatabaseDtuMin *int32 `json:"requestedDatabaseDtuMin,omitempty"`
    // RequestedDtu - READ-ONLY; The requested DTU for the pool if available.
    RequestedDtu *int32 `json:"requestedDtu,omitempty"`
    // RequestedElasticPoolName - READ-ONLY; The requested name for the elastic pool if available.
    RequestedElasticPoolName *string `json:"requestedElasticPoolName,omitempty"`
    // RequestedStorageLimitInGB - READ-ONLY; The requested storage limit for the pool in GB if available.
    RequestedStorageLimitInGB *int64 `json:"requestedStorageLimitInGB,omitempty"`
    // ElasticPoolName - READ-ONLY; The name of the elastic pool.
    ElasticPoolName *string `json:"elasticPoolName,omitempty"`
    // ServerName - READ-ONLY; The name of the server the elastic pool is in.
    ServerName *string `json:"serverName,omitempty"`
    // StartTime - READ-ONLY; The time the operation started (ISO8601 format).
    StartTime *date.Time `json:"startTime,omitempty"`
    // State - READ-ONLY; The current state of the operation.
    State *string `json:"state,omitempty"`
    // RequestedStorageLimitInMB - READ-ONLY; The requested storage limit in MB.
    RequestedStorageLimitInMB *int32 `json:"requestedStorageLimitInMB,omitempty"`
    // RequestedDatabaseDtuGuarantee - READ-ONLY; The requested per database DTU guarantee.
    RequestedDatabaseDtuGuarantee *int32 `json:"requestedDatabaseDtuGuarantee,omitempty"`
    // RequestedDatabaseDtuCap - READ-ONLY; The requested per database DTU cap.
    RequestedDatabaseDtuCap *int32 `json:"requestedDatabaseDtuCap,omitempty"`
    // RequestedDtuGuarantee - READ-ONLY; The requested DTU guarantee.
    RequestedDtuGuarantee *int32 `json:"requestedDtuGuarantee,omitempty"`
}

ElasticPoolActivityProperties represents the properties of an elastic pool.

type ElasticPoolDatabaseActivitiesClient Uses

type ElasticPoolDatabaseActivitiesClient struct {
    BaseClient
}

ElasticPoolDatabaseActivitiesClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewElasticPoolDatabaseActivitiesClient Uses

func NewElasticPoolDatabaseActivitiesClient(subscriptionID string) ElasticPoolDatabaseActivitiesClient

NewElasticPoolDatabaseActivitiesClient creates an instance of the ElasticPoolDatabaseActivitiesClient client.

func NewElasticPoolDatabaseActivitiesClientWithBaseURI Uses

func NewElasticPoolDatabaseActivitiesClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolDatabaseActivitiesClient

NewElasticPoolDatabaseActivitiesClientWithBaseURI creates an instance of the ElasticPoolDatabaseActivitiesClient client.