azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/v3.0/sql Index | Files | Directories

package sql

import "github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/v3.0/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 backupshorttermretentionpolicies.go capabilities.go client.go databaseautomatictuning.go databaseblobauditingpolicies.go databaseoperations.go databases.go databasethreatdetectionpolicies.go databaseusages.go databasevulnerabilityassessmentrulebaselines.go databasevulnerabilityassessments.go databasevulnerabilityassessmentscans.go datamaskingpolicies.go datamaskingrules.go elasticpoolactivities.go elasticpooldatabaseactivities.go elasticpooloperations.go elasticpools.go encryptionprotectors.go enums.go extendeddatabaseblobauditingpolicies.go extendedserverblobauditingpolicies.go failovergroups.go firewallrules.go geobackuppolicies.go importexport.go instancefailovergroups.go instancepools.go jobagents.go jobcredentials.go jobexecutions.go jobs.go jobstepexecutions.go jobsteps.go jobtargetexecutions.go jobtargetgroups.go jobversions.go longtermretentionbackups.go longtermretentionmanagedinstancebackups.go managedbackupshorttermretentionpolicies.go manageddatabaserestoredetails.go manageddatabases.go manageddatabasesecurityalertpolicies.go manageddatabasesensitivitylabels.go manageddatabasevulnerabilityassessmentrulebaselines.go manageddatabasevulnerabilityassessments.go manageddatabasevulnerabilityassessmentscans.go managedinstanceadministrators.go managedinstanceazureadonlyauthentications.go managedinstanceencryptionprotectors.go managedinstancekeys.go managedinstancelongtermretentionpolicies.go managedinstanceoperations.go managedinstances.go managedinstancetdecertificates.go managedinstancevulnerabilityassessments.go managedrestorabledroppeddatabasebackupshorttermretentionpolicies.go managedserversecurityalertpolicies.go models.go operations.go privateendpointconnections.go privatelinkresources.go recommendedelasticpools.go recoverabledatabases.go recoverablemanageddatabases.go replicationlinks.go restorabledroppeddatabases.go restorabledroppedmanageddatabases.go restorepoints.go sensitivitylabels.go serverautomatictuning.go serverazureadadministrators.go serverazureadonlyauthentications.go serverblobauditingpolicies.go servercommunicationlinks.go serverconnectionpolicies.go serverdnsaliases.go serverkeys.go servers.go serversecurityalertpolicies.go servertrustgroups.go serverusages.go servervulnerabilityassessments.go serviceobjectives.go servicetieradvisors.go subscriptionusages.go syncagents.go syncgroups.go syncmembers.go tdecertificates.go transparentdataencryptionactivities.go transparentdataencryptions.go usages.go version.go virtualclusters.go virtualnetworkrules.go workloadclassifiers.go workloadgroups.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 AdministratorListResult Uses

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

AdministratorListResult a list of active directory administrators.

func (AdministratorListResult) IsEmpty Uses

func (alr AdministratorListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AdministratorListResultIterator Uses

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

AdministratorListResultIterator provides access to a complete listing of ServerAzureADAdministrator values.

func NewAdministratorListResultIterator Uses

func NewAdministratorListResultIterator(page AdministratorListResultPage) AdministratorListResultIterator

Creates a new instance of the AdministratorListResultIterator type.

func (*AdministratorListResultIterator) Next Uses

func (iter *AdministratorListResultIterator) 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 (*AdministratorListResultIterator) NextWithContext Uses

func (iter *AdministratorListResultIterator) 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 (AdministratorListResultIterator) NotDone Uses

func (iter AdministratorListResultIterator) NotDone() bool

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

func (AdministratorListResultIterator) Response Uses

func (iter AdministratorListResultIterator) Response() AdministratorListResult

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

func (AdministratorListResultIterator) Value Uses

func (iter AdministratorListResultIterator) Value() ServerAzureADAdministrator

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

type AdministratorListResultPage Uses

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

AdministratorListResultPage contains a page of ServerAzureADAdministrator values.

func NewAdministratorListResultPage Uses

func NewAdministratorListResultPage(cur AdministratorListResult, getNextPage func(context.Context, AdministratorListResult) (AdministratorListResult, error)) AdministratorListResultPage

Creates a new instance of the AdministratorListResultPage type.

func (*AdministratorListResultPage) Next Uses

func (page *AdministratorListResultPage) 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 (*AdministratorListResultPage) NextWithContext Uses

func (page *AdministratorListResultPage) 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 (AdministratorListResultPage) NotDone Uses

func (page AdministratorListResultPage) NotDone() bool

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

func (AdministratorListResultPage) Response Uses

func (page AdministratorListResultPage) Response() AdministratorListResult

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

func (AdministratorListResultPage) Values Uses

func (page AdministratorListResultPage) Values() []ServerAzureADAdministrator

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

type AdministratorProperties Uses

type AdministratorProperties struct {
    // AdministratorType - Type of the sever administrator.
    AdministratorType *string `json:"administratorType,omitempty"`
    // Login - Login name of the server administrator.
    Login *string `json:"login,omitempty"`
    // Sid - SID (object ID) of the server administrator.
    Sid *uuid.UUID `json:"sid,omitempty"`
    // TenantID - Tenant ID of the administrator.
    TenantID *uuid.UUID `json:"tenantId,omitempty"`
    // AzureADOnlyAuthentication - READ-ONLY; Azure Active Directory only Authentication enabled.
    AzureADOnlyAuthentication *bool `json:"azureADOnlyAuthentication,omitempty"`
}

AdministratorProperties properties of a active directory administrator.

func (AdministratorProperties) MarshalJSON Uses

func (ap AdministratorProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AdministratorProperties.

type AutoPauseDelayTimeRange Uses

type AutoPauseDelayTimeRange struct {
    // MinValue - READ-ONLY; Minimum value
    MinValue *int32 `json:"minValue,omitempty"`
    // MaxValue - READ-ONLY; Maximum value
    MaxValue *int32 `json:"maxValue,omitempty"`
    // StepSize - READ-ONLY; Step value for discrete values between the minimum value and the maximum value.
    StepSize *int32 `json:"stepSize,omitempty"`
    // Default - READ-ONLY; Default value is no value is provided
    Default *int32 `json:"default,omitempty"`
    // Unit - READ-ONLY; Unit of time that delay is expressed in. Possible values include: 'Minutes'
    Unit PauseDelayTimeUnit `json:"unit,omitempty"`
    // DoNotPauseValue - READ-ONLY; Value that is used to not pause (infinite delay before pause)
    DoNotPauseValue *int32 `json:"doNotPauseValue,omitempty"`
}

AutoPauseDelayTimeRange supported auto pause delay time range

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.

func (AutomaticTuningOptions) MarshalJSON Uses

func (ato AutomaticTuningOptions) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AutomaticTuningOptions.

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.

func (AutomaticTuningServerOptions) MarshalJSON Uses

func (atso AutomaticTuningServerOptions) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AutomaticTuningServerOptions.

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 AzureADOnlyAuthListResult Uses

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

AzureADOnlyAuthListResult a list of active directory only authentications.

func (AzureADOnlyAuthListResult) IsEmpty Uses

func (aaoalr AzureADOnlyAuthListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AzureADOnlyAuthListResultIterator Uses

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

AzureADOnlyAuthListResultIterator provides access to a complete listing of ServerAzureADOnlyAuthentication values.

func NewAzureADOnlyAuthListResultIterator Uses

func NewAzureADOnlyAuthListResultIterator(page AzureADOnlyAuthListResultPage) AzureADOnlyAuthListResultIterator

Creates a new instance of the AzureADOnlyAuthListResultIterator type.

func (*AzureADOnlyAuthListResultIterator) Next Uses

func (iter *AzureADOnlyAuthListResultIterator) 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 (*AzureADOnlyAuthListResultIterator) NextWithContext Uses

func (iter *AzureADOnlyAuthListResultIterator) 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 (AzureADOnlyAuthListResultIterator) NotDone Uses

func (iter AzureADOnlyAuthListResultIterator) NotDone() bool

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

func (AzureADOnlyAuthListResultIterator) Response Uses

func (iter AzureADOnlyAuthListResultIterator) Response() AzureADOnlyAuthListResult

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

func (AzureADOnlyAuthListResultIterator) Value Uses

func (iter AzureADOnlyAuthListResultIterator) Value() ServerAzureADOnlyAuthentication

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

type AzureADOnlyAuthListResultPage Uses

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

AzureADOnlyAuthListResultPage contains a page of ServerAzureADOnlyAuthentication values.

func NewAzureADOnlyAuthListResultPage Uses

func NewAzureADOnlyAuthListResultPage(cur AzureADOnlyAuthListResult, getNextPage func(context.Context, AzureADOnlyAuthListResult) (AzureADOnlyAuthListResult, error)) AzureADOnlyAuthListResultPage

Creates a new instance of the AzureADOnlyAuthListResultPage type.

func (*AzureADOnlyAuthListResultPage) Next Uses

func (page *AzureADOnlyAuthListResultPage) 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 (*AzureADOnlyAuthListResultPage) NextWithContext Uses

func (page *AzureADOnlyAuthListResultPage) 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 (AzureADOnlyAuthListResultPage) NotDone Uses

func (page AzureADOnlyAuthListResultPage) NotDone() bool

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

func (AzureADOnlyAuthListResultPage) Response Uses

func (page AzureADOnlyAuthListResultPage) Response() AzureADOnlyAuthListResult

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

func (AzureADOnlyAuthListResultPage) Values Uses

func (page AzureADOnlyAuthListResultPage) Values() []ServerAzureADOnlyAuthentication

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

type AzureADOnlyAuthProperties Uses

type AzureADOnlyAuthProperties struct {
    // AzureADOnlyAuthentication - Azure Active Directory only Authentication enabled.
    AzureADOnlyAuthentication *bool `json:"azureADOnlyAuthentication,omitempty"`
}

AzureADOnlyAuthProperties properties of a active directory only authentication.

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (BackupLongTermRetentionPoliciesClient) CreateOrUpdate Uses

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

CreateOrUpdate sets a database's 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 long term retention policy info.

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 gets a database's 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 BackupLongTermRetentionPolicy, err error)

ListByDatabase gets a database's 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 BackupLongTermRetentionPolicy, 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.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(BackupLongTermRetentionPoliciesClient) (BackupLongTermRetentionPolicy, error)
}

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

type BackupLongTermRetentionPolicy Uses

type BackupLongTermRetentionPolicy struct {
    autorest.Response `json:"-"`
    // LongTermRetentionPolicyProperties - Resource properties.
    *LongTermRetentionPolicyProperties `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 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 BackupShortTermRetentionPoliciesClient Uses

type BackupShortTermRetentionPoliciesClient struct {
    BaseClient
}

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

func NewBackupShortTermRetentionPoliciesClient Uses

func NewBackupShortTermRetentionPoliciesClient(subscriptionID string) BackupShortTermRetentionPoliciesClient

NewBackupShortTermRetentionPoliciesClient creates an instance of the BackupShortTermRetentionPoliciesClient client.

func NewBackupShortTermRetentionPoliciesClientWithBaseURI Uses

func NewBackupShortTermRetentionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) BackupShortTermRetentionPoliciesClient

NewBackupShortTermRetentionPoliciesClientWithBaseURI creates an instance of the BackupShortTermRetentionPoliciesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (BackupShortTermRetentionPoliciesClient) CreateOrUpdate Uses

func (client BackupShortTermRetentionPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters BackupShortTermRetentionPolicy) (result BackupShortTermRetentionPoliciesCreateOrUpdateFuture, err error)

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

func (BackupShortTermRetentionPoliciesClient) CreateOrUpdatePreparer Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (BackupShortTermRetentionPoliciesClient) CreateOrUpdateResponder Uses

func (client BackupShortTermRetentionPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result BackupShortTermRetentionPolicy, err error)

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

func (BackupShortTermRetentionPoliciesClient) CreateOrUpdateSender Uses

func (client BackupShortTermRetentionPoliciesClient) CreateOrUpdateSender(req *http.Request) (future BackupShortTermRetentionPoliciesCreateOrUpdateFuture, err error)

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

func (BackupShortTermRetentionPoliciesClient) Get Uses

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

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

func (BackupShortTermRetentionPoliciesClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (BackupShortTermRetentionPoliciesClient) GetResponder Uses

func (client BackupShortTermRetentionPoliciesClient) GetResponder(resp *http.Response) (result BackupShortTermRetentionPolicy, err error)

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

func (BackupShortTermRetentionPoliciesClient) GetSender Uses

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

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

func (BackupShortTermRetentionPoliciesClient) ListByDatabase Uses

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

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

func (BackupShortTermRetentionPoliciesClient) ListByDatabaseComplete Uses

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

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

func (BackupShortTermRetentionPoliciesClient) ListByDatabasePreparer Uses

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (BackupShortTermRetentionPoliciesClient) ListByDatabaseResponder Uses

func (client BackupShortTermRetentionPoliciesClient) ListByDatabaseResponder(resp *http.Response) (result BackupShortTermRetentionPolicyListResult, err error)

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

func (BackupShortTermRetentionPoliciesClient) ListByDatabaseSender Uses

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

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

func (BackupShortTermRetentionPoliciesClient) Update Uses

func (client BackupShortTermRetentionPoliciesClient) Update(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters BackupShortTermRetentionPolicy) (result BackupShortTermRetentionPoliciesUpdateFuture, err error)

Update updates a database's short term retention policy. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database. parameters - the short term retention policy info.

func (BackupShortTermRetentionPoliciesClient) UpdatePreparer Uses

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

UpdatePreparer prepares the Update request.

func (BackupShortTermRetentionPoliciesClient) UpdateResponder Uses

func (client BackupShortTermRetentionPoliciesClient) UpdateResponder(resp *http.Response) (result BackupShortTermRetentionPolicy, err error)

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

func (BackupShortTermRetentionPoliciesClient) UpdateSender Uses

func (client BackupShortTermRetentionPoliciesClient) UpdateSender(req *http.Request) (future BackupShortTermRetentionPoliciesUpdateFuture, err error)

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

type BackupShortTermRetentionPoliciesCreateOrUpdateFuture Uses

type BackupShortTermRetentionPoliciesCreateOrUpdateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(BackupShortTermRetentionPoliciesClient) (BackupShortTermRetentionPolicy, error)
}

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

type BackupShortTermRetentionPoliciesUpdateFuture Uses

type BackupShortTermRetentionPoliciesUpdateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(BackupShortTermRetentionPoliciesClient) (BackupShortTermRetentionPolicy, error)
}

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

type BackupShortTermRetentionPolicy Uses

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

BackupShortTermRetentionPolicy a short term retention policy.

func (BackupShortTermRetentionPolicy) MarshalJSON Uses

func (bstrp BackupShortTermRetentionPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for BackupShortTermRetentionPolicy.

func (*BackupShortTermRetentionPolicy) UnmarshalJSON Uses

func (bstrp *BackupShortTermRetentionPolicy) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for BackupShortTermRetentionPolicy struct.

type BackupShortTermRetentionPolicyListResult Uses

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

BackupShortTermRetentionPolicyListResult a list of short term retention policies.

func (BackupShortTermRetentionPolicyListResult) IsEmpty Uses

func (bstrplr BackupShortTermRetentionPolicyListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type BackupShortTermRetentionPolicyListResultIterator Uses

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

BackupShortTermRetentionPolicyListResultIterator provides access to a complete listing of BackupShortTermRetentionPolicy values.

func NewBackupShortTermRetentionPolicyListResultIterator Uses

func NewBackupShortTermRetentionPolicyListResultIterator(page BackupShortTermRetentionPolicyListResultPage) BackupShortTermRetentionPolicyListResultIterator

Creates a new instance of the BackupShortTermRetentionPolicyListResultIterator type.

func (*BackupShortTermRetentionPolicyListResultIterator) Next Uses

func (iter *BackupShortTermRetentionPolicyListResultIterator) Next() error

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

func (*BackupShortTermRetentionPolicyListResultIterator) NextWithContext Uses

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

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

func (BackupShortTermRetentionPolicyListResultIterator) NotDone Uses

func (iter BackupShortTermRetentionPolicyListResultIterator) NotDone() bool

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

func (BackupShortTermRetentionPolicyListResultIterator) Response Uses

func (iter BackupShortTermRetentionPolicyListResultIterator) Response() BackupShortTermRetentionPolicyListResult

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

func (BackupShortTermRetentionPolicyListResultIterator) Value Uses

func (iter BackupShortTermRetentionPolicyListResultIterator) Value() BackupShortTermRetentionPolicy

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

type BackupShortTermRetentionPolicyListResultPage Uses

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

BackupShortTermRetentionPolicyListResultPage contains a page of BackupShortTermRetentionPolicy values.

func NewBackupShortTermRetentionPolicyListResultPage Uses

func NewBackupShortTermRetentionPolicyListResultPage(cur BackupShortTermRetentionPolicyListResult, getNextPage func(context.Context, BackupShortTermRetentionPolicyListResult) (BackupShortTermRetentionPolicyListResult, error)) BackupShortTermRetentionPolicyListResultPage

Creates a new instance of the BackupShortTermRetentionPolicyListResultPage type.

func (*BackupShortTermRetentionPolicyListResultPage) Next Uses

func (page *BackupShortTermRetentionPolicyListResultPage) Next() error

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

func (*BackupShortTermRetentionPolicyListResultPage) NextWithContext Uses

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

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

func (BackupShortTermRetentionPolicyListResultPage) NotDone Uses

func (page BackupShortTermRetentionPolicyListResultPage) NotDone() bool

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

func (BackupShortTermRetentionPolicyListResultPage) Response Uses

func (page BackupShortTermRetentionPolicyListResultPage) Response() BackupShortTermRetentionPolicyListResult

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

func (BackupShortTermRetentionPolicyListResultPage) Values Uses

func (page BackupShortTermRetentionPolicyListResultPage) Values() []BackupShortTermRetentionPolicy

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

type BackupShortTermRetentionPolicyProperties Uses

type BackupShortTermRetentionPolicyProperties struct {
    // RetentionDays - The backup retention period in days. This is how many days Point-in-Time Restore will be supported.
    RetentionDays *int32 `json:"retentionDays,omitempty"`
}

BackupShortTermRetentionPolicyProperties properties of a short term retention policy

type BaseClient 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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type BaseLongTermRetentionPolicyProperties Uses

type BaseLongTermRetentionPolicyProperties struct {
    // WeeklyRetention - The weekly retention policy for an LTR backup in an ISO 8601 format.
    WeeklyRetention *string `json:"weeklyRetention,omitempty"`
    // MonthlyRetention - The monthly retention policy for an LTR backup in an ISO 8601 format.
    MonthlyRetention *string `json:"monthlyRetention,omitempty"`
    // YearlyRetention - The yearly retention policy for an LTR backup in an ISO 8601 format.
    YearlyRetention *string `json:"yearlyRetention,omitempty"`
    // WeekOfYear - The week of year to take the yearly backup in an ISO 8601 format.
    WeekOfYear *int32 `json:"weekOfYear,omitempty"`
}

BaseLongTermRetentionPolicyProperties properties of a long term retention policy

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (CapabilitiesClient) ListByLocation Uses

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

ListByLocation gets the subscription capabilities available for the specified location. Parameters: locationName - the location name whose capabilities are retrieved. include - if specified, restricts the response to only include the selected item.

func (CapabilitiesClient) ListByLocationPreparer Uses

func (client CapabilitiesClient) ListByLocationPreparer(ctx context.Context, locationName string, include CapabilityGroup) (*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 CapabilityGroup Uses

type CapabilityGroup string

CapabilityGroup enumerates the values for capability group.

const (
    // SupportedEditions ...
    SupportedEditions CapabilityGroup = "supportedEditions"
    // SupportedElasticPoolEditions ...
    SupportedElasticPoolEditions CapabilityGroup = "supportedElasticPoolEditions"
    // SupportedInstancePoolEditions ...
    SupportedInstancePoolEditions CapabilityGroup = "supportedInstancePoolEditions"
    // SupportedManagedInstanceEditions ...
    SupportedManagedInstanceEditions CapabilityGroup = "supportedManagedInstanceEditions"
    // SupportedManagedInstanceVersions ...
    SupportedManagedInstanceVersions CapabilityGroup = "supportedManagedInstanceVersions"
)

func PossibleCapabilityGroupValues Uses

func PossibleCapabilityGroupValues() []CapabilityGroup

PossibleCapabilityGroupValues returns an array of possible values for the CapabilityGroup const type.

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 *string `json:"name,omitempty"`
    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:"-"`
    // Name - READ-ONLY; The name whose availability was checked.
    Name *string `json:"name,omitempty"`
    // Available - READ-ONLY; True if the name is available, otherwise false.
    Available *bool `json:"available,omitempty"`
    // Reason - READ-ONLY; The reason code explaining why the name is unavailable. Will be undefined if the name is available. Possible values include: 'Invalid', 'AlreadyExists'
    Reason CheckNameAvailabilityReason `json:"reason,omitempty"`
    // Message - READ-ONLY; A message explaining why the name is unavailable. Will be undefined if the name is available.
    Message *string `json:"message,omitempty"`
}

CheckNameAvailabilityResponse the result of a name availability check.

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"
    // CreateModeOnlineSecondary ...
    CreateModeOnlineSecondary CreateMode = "OnlineSecondary"
    // CreateModePointInTimeRestore ...
    CreateModePointInTimeRestore CreateMode = "PointInTimeRestore"
    // CreateModeRecovery ...
    CreateModeRecovery CreateMode = "Recovery"
    // CreateModeRestore ...
    CreateModeRestore CreateMode = "Restore"
    // CreateModeRestoreExternalBackup ...
    CreateModeRestoreExternalBackup CreateMode = "RestoreExternalBackup"
    // CreateModeRestoreExternalBackupSecondary ...
    CreateModeRestoreExternalBackupSecondary CreateMode = "RestoreExternalBackupSecondary"
    // CreateModeRestoreLongTermRetentionBackup ...
    CreateModeRestoreLongTermRetentionBackup CreateMode = "RestoreLongTermRetentionBackup"
    // CreateModeSecondary ...
    CreateModeSecondary CreateMode = "Secondary"
)

func PossibleCreateModeValues 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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

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.

func (DataMaskingPolicyProperties) MarshalJSON Uses

func (dmpp DataMaskingPolicyProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DataMaskingPolicyProperties.

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.

func (DataMaskingRuleProperties) MarshalJSON Uses

func (dmrp DataMaskingRuleProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DataMaskingRuleProperties.

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

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 Database Uses

type Database struct {
    autorest.Response `json:"-"`
    // Sku - The database SKU.
    //
    // The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands:
    //
    // ```azurecli
    // az sql db list-editions -l <location> -o table
    // ````
    //
    // ```powershell
    // Get-AzSqlServerServiceObjective -Location <location>
    // ````
    Sku *Sku `json:"sku,omitempty"`
    // Kind - READ-ONLY; Kind of database. This is metadata used for the Azure portal experience.
    Kind *string `json:"kind,omitempty"`
    // ManagedBy - READ-ONLY; Resource that manages the database.
    ManagedBy *string `json:"managedBy,omitempty"`
    // DatabaseProperties - Resource properties.
    *DatabaseProperties `json:"properties,omitempty"`
    // Location - Resource location.
    Location *string `json:"location,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // ID - READ-ONLY; Resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

Database a database resource.

func (Database) MarshalJSON 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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

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.

func (DatabaseBlobAuditingPoliciesClient) ListByDatabase Uses

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

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

func (DatabaseBlobAuditingPoliciesClient) ListByDatabaseComplete Uses

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

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

func (DatabaseBlobAuditingPoliciesClient) ListByDatabasePreparer Uses

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (DatabaseBlobAuditingPoliciesClient) ListByDatabaseResponder Uses

func (client DatabaseBlobAuditingPoliciesClient) ListByDatabaseResponder(resp *http.Response) (result DatabaseBlobAuditingPolicyListResult, err error)

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

func (DatabaseBlobAuditingPoliciesClient) ListByDatabaseSender Uses

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

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

DatabaseBlobAuditingPolicyListResult a list of database auditing settings.

func (DatabaseBlobAuditingPolicyListResult) IsEmpty Uses

func (dbaplr DatabaseBlobAuditingPolicyListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DatabaseBlobAuditingPolicyListResultIterator Uses

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

DatabaseBlobAuditingPolicyListResultIterator provides access to a complete listing of DatabaseBlobAuditingPolicy values.

func NewDatabaseBlobAuditingPolicyListResultIterator Uses

func NewDatabaseBlobAuditingPolicyListResultIterator(page DatabaseBlobAuditingPolicyListResultPage) DatabaseBlobAuditingPolicyListResultIterator

Creates a new instance of the DatabaseBlobAuditingPolicyListResultIterator type.

func (*DatabaseBlobAuditingPolicyListResultIterator) Next Uses

func (iter *DatabaseBlobAuditingPolicyListResultIterator) 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 (*DatabaseBlobAuditingPolicyListResultIterator) NextWithContext Uses

func (iter *DatabaseBlobAuditingPolicyListResultIterator) 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 (DatabaseBlobAuditingPolicyListResultIterator) NotDone Uses

func (iter DatabaseBlobAuditingPolicyListResultIterator) NotDone() bool

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

func (DatabaseBlobAuditingPolicyListResultIterator) Response Uses

func (iter DatabaseBlobAuditingPolicyListResultIterator) Response() DatabaseBlobAuditingPolicyListResult

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

func (DatabaseBlobAuditingPolicyListResultIterator) Value Uses

func (iter DatabaseBlobAuditingPolicyListResultIterator) Value() DatabaseBlobAuditingPolicy

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

type DatabaseBlobAuditingPolicyListResultPage Uses

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

DatabaseBlobAuditingPolicyListResultPage contains a page of DatabaseBlobAuditingPolicy values.

func NewDatabaseBlobAuditingPolicyListResultPage Uses

func NewDatabaseBlobAuditingPolicyListResultPage(cur DatabaseBlobAuditingPolicyListResult, getNextPage func(context.Context, DatabaseBlobAuditingPolicyListResult) (