sql

package
v34.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package sql implements the Azure ARM Sql service API version .

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

Index

Constants

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

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

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

func Version

func Version() string

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

Types

type AuthenticationType

type AuthenticationType string

AuthenticationType enumerates the values for authentication type.

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

func PossibleAuthenticationTypeValues

func PossibleAuthenticationTypeValues() []AuthenticationType

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

type AutomaticTuningDisabledReason

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

func PossibleAutomaticTuningDisabledReasonValues() []AutomaticTuningDisabledReason

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

type AutomaticTuningMode

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

func PossibleAutomaticTuningModeValues() []AutomaticTuningMode

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

type AutomaticTuningOptionModeActual

type AutomaticTuningOptionModeActual string

AutomaticTuningOptionModeActual enumerates the values for automatic tuning option mode actual.

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

func PossibleAutomaticTuningOptionModeActualValues

func PossibleAutomaticTuningOptionModeActualValues() []AutomaticTuningOptionModeActual

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

type AutomaticTuningOptionModeDesired

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

func PossibleAutomaticTuningOptionModeDesiredValues() []AutomaticTuningOptionModeDesired

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

type AutomaticTuningOptions

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

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

func PossibleAutomaticTuningServerModeValues() []AutomaticTuningServerMode

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

type AutomaticTuningServerOptions

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

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

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

MarshalJSON is the custom marshaler for AutomaticTuningServerProperties.

type AutomaticTuningServerReason

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

func PossibleAutomaticTuningServerReasonValues() []AutomaticTuningServerReason

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

type BackupLongTermRetentionPoliciesClient

type BackupLongTermRetentionPoliciesClient struct {
	BaseClient
}

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

func NewBackupLongTermRetentionPoliciesClient

func NewBackupLongTermRetentionPoliciesClient(subscriptionID string) BackupLongTermRetentionPoliciesClient

NewBackupLongTermRetentionPoliciesClient creates an instance of the BackupLongTermRetentionPoliciesClient client.

func NewBackupLongTermRetentionPoliciesClientWithBaseURI

func NewBackupLongTermRetentionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) BackupLongTermRetentionPoliciesClient

NewBackupLongTermRetentionPoliciesClientWithBaseURI creates an instance of the BackupLongTermRetentionPoliciesClient client.

func (BackupLongTermRetentionPoliciesClient) CreateOrUpdate

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

CreateOrUpdate 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

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (BackupLongTermRetentionPoliciesClient) CreateOrUpdateResponder

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

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

func (BackupLongTermRetentionPoliciesClient) CreateOrUpdateSender

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

func (BackupLongTermRetentionPoliciesClient) Get

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

Get 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

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

GetPreparer prepares the Get request.

func (BackupLongTermRetentionPoliciesClient) GetResponder

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

func (BackupLongTermRetentionPoliciesClient) GetSender

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

func (BackupLongTermRetentionPoliciesClient) ListByDatabase

func (client BackupLongTermRetentionPoliciesClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result 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

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (BackupLongTermRetentionPoliciesClient) ListByDatabaseResponder

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

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

func (BackupLongTermRetentionPoliciesClient) ListByDatabaseSender

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

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

type BackupLongTermRetentionPoliciesCreateOrUpdateFuture

type BackupLongTermRetentionPoliciesCreateOrUpdateFuture struct {
	azure.Future
}

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

func (*BackupLongTermRetentionPoliciesCreateOrUpdateFuture) Result

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

type BackupLongTermRetentionPolicy

type BackupLongTermRetentionPolicy struct {
	autorest.Response `json:"-"`
	// 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

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

MarshalJSON is the custom marshaler for BackupLongTermRetentionPolicy.

func (*BackupLongTermRetentionPolicy) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for BackupLongTermRetentionPolicy struct.

type BackupShortTermRetentionPoliciesClient

type BackupShortTermRetentionPoliciesClient struct {
	BaseClient
}

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

func NewBackupShortTermRetentionPoliciesClient

func NewBackupShortTermRetentionPoliciesClient(subscriptionID string) BackupShortTermRetentionPoliciesClient

NewBackupShortTermRetentionPoliciesClient creates an instance of the BackupShortTermRetentionPoliciesClient client.

func NewBackupShortTermRetentionPoliciesClientWithBaseURI

func NewBackupShortTermRetentionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) BackupShortTermRetentionPoliciesClient

NewBackupShortTermRetentionPoliciesClientWithBaseURI creates an instance of the BackupShortTermRetentionPoliciesClient client.

func (BackupShortTermRetentionPoliciesClient) CreateOrUpdate

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

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

func (BackupShortTermRetentionPoliciesClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (BackupShortTermRetentionPoliciesClient) CreateOrUpdateResponder

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

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

func (BackupShortTermRetentionPoliciesClient) CreateOrUpdateSender

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

func (BackupShortTermRetentionPoliciesClient) Get

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

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

func (BackupShortTermRetentionPoliciesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (BackupShortTermRetentionPoliciesClient) GetResponder

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

func (BackupShortTermRetentionPoliciesClient) GetSender

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

func (BackupShortTermRetentionPoliciesClient) ListByDatabase

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

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

func (BackupShortTermRetentionPoliciesClient) ListByDatabaseComplete

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

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

func (BackupShortTermRetentionPoliciesClient) ListByDatabasePreparer

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (BackupShortTermRetentionPoliciesClient) ListByDatabaseResponder

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

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

func (BackupShortTermRetentionPoliciesClient) ListByDatabaseSender

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

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

func (BackupShortTermRetentionPoliciesClient) Update

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

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

func (BackupShortTermRetentionPoliciesClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (BackupShortTermRetentionPoliciesClient) UpdateResponder

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

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

func (BackupShortTermRetentionPoliciesClient) UpdateSender

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

type BackupShortTermRetentionPoliciesCreateOrUpdateFuture

type BackupShortTermRetentionPoliciesCreateOrUpdateFuture struct {
	azure.Future
}

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

func (*BackupShortTermRetentionPoliciesCreateOrUpdateFuture) Result

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

type BackupShortTermRetentionPoliciesUpdateFuture

type BackupShortTermRetentionPoliciesUpdateFuture struct {
	azure.Future
}

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

func (*BackupShortTermRetentionPoliciesUpdateFuture) Result

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

type BackupShortTermRetentionPolicy

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

BackupShortTermRetentionPolicy a short term retention policy.

func (BackupShortTermRetentionPolicy) MarshalJSON

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

MarshalJSON is the custom marshaler for BackupShortTermRetentionPolicy.

func (*BackupShortTermRetentionPolicy) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for BackupShortTermRetentionPolicy struct.

type BackupShortTermRetentionPolicyListResult

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

BackupShortTermRetentionPolicyListResult a list of short term retention policies.

func (BackupShortTermRetentionPolicyListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type BackupShortTermRetentionPolicyListResultIterator

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

BackupShortTermRetentionPolicyListResultIterator provides access to a complete listing of BackupShortTermRetentionPolicy values.

func NewBackupShortTermRetentionPolicyListResultIterator

func NewBackupShortTermRetentionPolicyListResultIterator(page BackupShortTermRetentionPolicyListResultPage) BackupShortTermRetentionPolicyListResultIterator

Creates a new instance of the BackupShortTermRetentionPolicyListResultIterator type.

func (*BackupShortTermRetentionPolicyListResultIterator) Next

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

func (*BackupShortTermRetentionPolicyListResultIterator) NextWithContext

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

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

func (BackupShortTermRetentionPolicyListResultIterator) NotDone

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

func (BackupShortTermRetentionPolicyListResultIterator) Response

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

func (BackupShortTermRetentionPolicyListResultIterator) Value

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

type BackupShortTermRetentionPolicyListResultPage

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

BackupShortTermRetentionPolicyListResultPage contains a page of BackupShortTermRetentionPolicy values.

func NewBackupShortTermRetentionPolicyListResultPage

Creates a new instance of the BackupShortTermRetentionPolicyListResultPage type.

func (*BackupShortTermRetentionPolicyListResultPage) Next

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

func (*BackupShortTermRetentionPolicyListResultPage) NextWithContext

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

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

func (BackupShortTermRetentionPolicyListResultPage) NotDone

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

func (BackupShortTermRetentionPolicyListResultPage) Response

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

func (BackupShortTermRetentionPolicyListResultPage) Values

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

type BackupShortTermRetentionPolicyProperties

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

BackupShortTermRetentionPolicyProperties properties of a short term retention policy

type BaseClient

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

BaseClient is the base client for Sql.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type BlobAuditingPolicyState

type BlobAuditingPolicyState string

BlobAuditingPolicyState enumerates the values for blob auditing policy state.

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

func PossibleBlobAuditingPolicyStateValues

func PossibleBlobAuditingPolicyStateValues() []BlobAuditingPolicyState

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

type CapabilitiesClient

type CapabilitiesClient struct {
	BaseClient
}

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

func NewCapabilitiesClient

func NewCapabilitiesClient(subscriptionID string) CapabilitiesClient

NewCapabilitiesClient creates an instance of the CapabilitiesClient client.

func NewCapabilitiesClientWithBaseURI

func NewCapabilitiesClientWithBaseURI(baseURI string, subscriptionID string) CapabilitiesClient

NewCapabilitiesClientWithBaseURI creates an instance of the CapabilitiesClient client.

func (CapabilitiesClient) ListByLocation

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

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

func (CapabilitiesClient) ListByLocationPreparer

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

ListByLocationPreparer prepares the ListByLocation request.

func (CapabilitiesClient) ListByLocationResponder

func (client CapabilitiesClient) ListByLocationResponder(resp *http.Response) (result LocationCapabilities, err error)

ListByLocationResponder handles the response to the ListByLocation request. The method always closes the http.Response Body.

func (CapabilitiesClient) ListByLocationSender

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

type CapabilityGroup string

CapabilityGroup enumerates the values for capability group.

const (
	// SupportedEditions ...
	SupportedEditions CapabilityGroup = "supportedEditions"
	// SupportedElasticPoolEditions ...
	SupportedElasticPoolEditions CapabilityGroup = "supportedElasticPoolEditions"
	// SupportedManagedInstanceVersions ...
	SupportedManagedInstanceVersions CapabilityGroup = "supportedManagedInstanceVersions"
)

func PossibleCapabilityGroupValues

func PossibleCapabilityGroupValues() []CapabilityGroup

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

type CapabilityStatus

type CapabilityStatus string

CapabilityStatus enumerates the values for capability status.

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

func PossibleCapabilityStatusValues

func PossibleCapabilityStatusValues() []CapabilityStatus

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

type CatalogCollationType

type CatalogCollationType string

CatalogCollationType enumerates the values for catalog collation type.

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

func PossibleCatalogCollationTypeValues

func PossibleCatalogCollationTypeValues() []CatalogCollationType

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

type CheckNameAvailabilityReason

type CheckNameAvailabilityReason string

CheckNameAvailabilityReason enumerates the values for check name availability reason.

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

func PossibleCheckNameAvailabilityReasonValues

func PossibleCheckNameAvailabilityReasonValues() []CheckNameAvailabilityReason

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

type CheckNameAvailabilityRequest

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

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

type CheckNameAvailabilityResponse

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

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

type CompleteDatabaseRestoreDefinition

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

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

type CreateMode string

CreateMode enumerates the values for create mode.

const (
	// CreateModeCopy ...
	CreateModeCopy CreateMode = "Copy"
	// CreateModeDefault ...
	CreateModeDefault CreateMode = "Default"
	// CreateModeOnlineSecondary ...
	CreateModeOnlineSecondary CreateMode = "OnlineSecondary"
	// CreateModePointInTimeRestore ...
	CreateModePointInTimeRestore CreateMode = "PointInTimeRestore"
	// CreateModeRecovery ...
	CreateModeRecovery CreateMode = "Recovery"
	// CreateModeRestore ...
	CreateModeRestore CreateMode = "Restore"
	// CreateModeRestoreExternalBackup ...
	CreateModeRestoreExternalBackup CreateMode = "RestoreExternalBackup"
	// CreateModeRestoreExternalBackupSecondary ...
	CreateModeRestoreExternalBackupSecondary CreateMode = "RestoreExternalBackupSecondary"
	// CreateModeRestoreLongTermRetentionBackup ...
	CreateModeRestoreLongTermRetentionBackup CreateMode = "RestoreLongTermRetentionBackup"
	// CreateModeSecondary ...
	CreateModeSecondary CreateMode = "Secondary"
)

func PossibleCreateModeValues

func PossibleCreateModeValues() []CreateMode

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

type DataMaskingFunction

type DataMaskingFunction string

DataMaskingFunction enumerates the values for data masking function.

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

func PossibleDataMaskingFunctionValues

func PossibleDataMaskingFunctionValues() []DataMaskingFunction

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

type DataMaskingPoliciesClient

type DataMaskingPoliciesClient struct {
	BaseClient
}

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

func NewDataMaskingPoliciesClient

func NewDataMaskingPoliciesClient(subscriptionID string) DataMaskingPoliciesClient

NewDataMaskingPoliciesClient creates an instance of the DataMaskingPoliciesClient client.

func NewDataMaskingPoliciesClientWithBaseURI

func NewDataMaskingPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DataMaskingPoliciesClient

NewDataMaskingPoliciesClientWithBaseURI creates an instance of the DataMaskingPoliciesClient client.

func (DataMaskingPoliciesClient) CreateOrUpdate

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

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

func (DataMaskingPoliciesClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DataMaskingPoliciesClient) CreateOrUpdateResponder

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

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

func (DataMaskingPoliciesClient) CreateOrUpdateSender

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

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

func (DataMaskingPoliciesClient) Get

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

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

func (DataMaskingPoliciesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (DataMaskingPoliciesClient) GetResponder

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

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

func (DataMaskingPoliciesClient) GetSender

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

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

DataMaskingPolicy represents a database data masking policy.

func (DataMaskingPolicy) MarshalJSON

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

MarshalJSON is the custom marshaler for DataMaskingPolicy.

func (*DataMaskingPolicy) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for DataMaskingPolicy struct.

type DataMaskingPolicyProperties

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

DataMaskingPolicyProperties the properties of a database data masking policy.

type DataMaskingRule

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

DataMaskingRule represents a database data masking rule.

func (DataMaskingRule) MarshalJSON

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

MarshalJSON is the custom marshaler for DataMaskingRule.

func (*DataMaskingRule) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for DataMaskingRule struct.

type DataMaskingRuleListResult

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

DataMaskingRuleListResult the response to a list data masking rules request.

type DataMaskingRuleProperties

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

DataMaskingRuleProperties the properties of a database data masking rule.

type DataMaskingRuleState

type DataMaskingRuleState string

DataMaskingRuleState enumerates the values for data masking rule state.

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

func PossibleDataMaskingRuleStateValues

func PossibleDataMaskingRuleStateValues() []DataMaskingRuleState

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

type DataMaskingRulesClient

type DataMaskingRulesClient struct {
	BaseClient
}

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

func NewDataMaskingRulesClient

func NewDataMaskingRulesClient(subscriptionID string) DataMaskingRulesClient

NewDataMaskingRulesClient creates an instance of the DataMaskingRulesClient client.

func NewDataMaskingRulesClientWithBaseURI

func NewDataMaskingRulesClientWithBaseURI(baseURI string, subscriptionID string) DataMaskingRulesClient

NewDataMaskingRulesClientWithBaseURI creates an instance of the DataMaskingRulesClient client.

func (DataMaskingRulesClient) CreateOrUpdate

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

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

func (DataMaskingRulesClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DataMaskingRulesClient) CreateOrUpdateResponder

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

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

func (DataMaskingRulesClient) CreateOrUpdateSender

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

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

func (DataMaskingRulesClient) ListByDatabase

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

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

func (DataMaskingRulesClient) ListByDatabasePreparer

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (DataMaskingRulesClient) ListByDatabaseResponder

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

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

func (DataMaskingRulesClient) ListByDatabaseSender

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

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

type DataMaskingState

type DataMaskingState string

DataMaskingState enumerates the values for data masking state.

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

func PossibleDataMaskingStateValues

func PossibleDataMaskingStateValues() []DataMaskingState

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

type Database

type Database struct {
	autorest.Response `json:"-"`
	// 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

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

MarshalJSON is the custom marshaler for Database.

func (*Database) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Database struct.

type DatabaseAutomaticTuning

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

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

MarshalJSON is the custom marshaler for DatabaseAutomaticTuning.

func (*DatabaseAutomaticTuning) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for DatabaseAutomaticTuning struct.

type DatabaseAutomaticTuningClient

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

func NewDatabaseAutomaticTuningClient(subscriptionID string) DatabaseAutomaticTuningClient

NewDatabaseAutomaticTuningClient creates an instance of the DatabaseAutomaticTuningClient client.

func NewDatabaseAutomaticTuningClientWithBaseURI

func NewDatabaseAutomaticTuningClientWithBaseURI(baseURI string, subscriptionID string) DatabaseAutomaticTuningClient

NewDatabaseAutomaticTuningClientWithBaseURI creates an instance of the DatabaseAutomaticTuningClient client.

func (DatabaseAutomaticTuningClient) Get

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

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

GetPreparer prepares the Get request.

func (DatabaseAutomaticTuningClient) GetResponder

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

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

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

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

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

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

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

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

MarshalJSON is the custom marshaler for DatabaseAutomaticTuningProperties.

type DatabaseBlobAuditingPoliciesClient

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

func NewDatabaseBlobAuditingPoliciesClient(subscriptionID string) DatabaseBlobAuditingPoliciesClient

NewDatabaseBlobAuditingPoliciesClient creates an instance of the DatabaseBlobAuditingPoliciesClient client.

func NewDatabaseBlobAuditingPoliciesClientWithBaseURI

func NewDatabaseBlobAuditingPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseBlobAuditingPoliciesClient

NewDatabaseBlobAuditingPoliciesClientWithBaseURI creates an instance of the DatabaseBlobAuditingPoliciesClient client.

func (DatabaseBlobAuditingPoliciesClient) CreateOrUpdate

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

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

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

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

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

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

GetPreparer prepares the Get request.

func (DatabaseBlobAuditingPoliciesClient) GetResponder

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

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

func (DatabaseBlobAuditingPoliciesClient) ListByDatabase

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

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

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (DatabaseBlobAuditingPoliciesClient) ListByDatabaseResponder

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

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

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

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

MarshalJSON is the custom marshaler for DatabaseBlobAuditingPolicy.

func (*DatabaseBlobAuditingPolicy) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for DatabaseBlobAuditingPolicy struct.

type DatabaseBlobAuditingPolicyListResult

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

func (dbaplr DatabaseBlobAuditingPolicyListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DatabaseBlobAuditingPolicyListResultIterator

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

DatabaseBlobAuditingPolicyListResultIterator provides access to a complete listing of DatabaseBlobAuditingPolicy values.

func NewDatabaseBlobAuditingPolicyListResultIterator

func NewDatabaseBlobAuditingPolicyListResultIterator(page DatabaseBlobAuditingPolicyListResultPage) DatabaseBlobAuditingPolicyListResultIterator

Creates a new instance of the DatabaseBlobAuditingPolicyListResultIterator type.

func (*DatabaseBlobAuditingPolicyListResultIterator) Next

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

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

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

func (DatabaseBlobAuditingPolicyListResultIterator) Response

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

func (DatabaseBlobAuditingPolicyListResultIterator) Value

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

type DatabaseBlobAuditingPolicyListResultPage

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

DatabaseBlobAuditingPolicyListResultPage contains a page of DatabaseBlobAuditingPolicy values.

func NewDatabaseBlobAuditingPolicyListResultPage

Creates a new instance of the DatabaseBlobAuditingPolicyListResultPage type.

func (*DatabaseBlobAuditingPolicyListResultPage) Next

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 (*DatabaseBlobAuditingPolicyListResultPage) NextWithContext

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

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

func (DatabaseBlobAuditingPolicyListResultPage) Response

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

func (DatabaseBlobAuditingPolicyListResultPage) Values

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

type DatabaseBlobAuditingPolicyProperties

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

type DatabaseEdition string

DatabaseEdition enumerates the values for database edition.

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

func PossibleDatabaseEditionValues

func PossibleDatabaseEditionValues() []DatabaseEdition

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

type DatabaseLicenseType

type DatabaseLicenseType string

DatabaseLicenseType enumerates the values for database license type.

const (
	// BasePrice ...
	BasePrice DatabaseLicenseType = "BasePrice"
	// LicenseIncluded ...
	LicenseIncluded DatabaseLicenseType = "LicenseIncluded"
)

func PossibleDatabaseLicenseTypeValues

func PossibleDatabaseLicenseTypeValues() []DatabaseLicenseType

PossibleDatabaseLicenseTypeValues returns an array of possible values for the DatabaseLicenseType const type.

type DatabaseListResult

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

DatabaseListResult a list of databases.

func (DatabaseListResult) IsEmpty

func (dlr DatabaseListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DatabaseListResultIterator

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

DatabaseListResultIterator provides access to a complete listing of Database values.

func NewDatabaseListResultIterator

func NewDatabaseListResultIterator(page DatabaseListResultPage) DatabaseListResultIterator

Creates a new instance of the DatabaseListResultIterator type.

func (*DatabaseListResultIterator) Next

func (iter *DatabaseListResultIterator) Next() error

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

func (*DatabaseListResultIterator) NextWithContext

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

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

func (DatabaseListResultIterator) NotDone

func (iter DatabaseListResultIterator) NotDone() bool

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

func (DatabaseListResultIterator) Response

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

func (DatabaseListResultIterator) Value

func (iter DatabaseListResultIterator) Value() Database

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

type DatabaseListResultPage

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

DatabaseListResultPage contains a page of Database values.

func NewDatabaseListResultPage

func NewDatabaseListResultPage(getNextPage func(context.Context, DatabaseListResult) (DatabaseListResult, error)) DatabaseListResultPage

Creates a new instance of the DatabaseListResultPage type.

func (*DatabaseListResultPage) Next

func (page *DatabaseListResultPage) Next() error

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

func (*DatabaseListResultPage) NextWithContext

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

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

func (DatabaseListResultPage) NotDone

func (page DatabaseListResultPage) NotDone() bool

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

func (DatabaseListResultPage) Response

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

func (DatabaseListResultPage) Values

func (page DatabaseListResultPage) Values() []Database

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

type DatabaseOperation

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

DatabaseOperation a database operation.

func (DatabaseOperation) MarshalJSON

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

MarshalJSON is the custom marshaler for DatabaseOperation.

func (*DatabaseOperation) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for DatabaseOperation struct.

type DatabaseOperationListResult

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

DatabaseOperationListResult the response to a list database operations request

func (DatabaseOperationListResult) IsEmpty

func (dolr DatabaseOperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DatabaseOperationListResultIterator

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

DatabaseOperationListResultIterator provides access to a complete listing of DatabaseOperation values.

func NewDatabaseOperationListResultIterator

func NewDatabaseOperationListResultIterator(page DatabaseOperationListResultPage) DatabaseOperationListResultIterator

Creates a new instance of the DatabaseOperationListResultIterator type.

func (*DatabaseOperationListResultIterator) Next

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

func (*DatabaseOperationListResultIterator) NextWithContext

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

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

func (DatabaseOperationListResultIterator) NotDone

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

func (DatabaseOperationListResultIterator) Response

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

func (DatabaseOperationListResultIterator) Value

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

type DatabaseOperationListResultPage

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

DatabaseOperationListResultPage contains a page of DatabaseOperation values.

func NewDatabaseOperationListResultPage

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

Creates a new instance of the DatabaseOperationListResultPage type.

func (*DatabaseOperationListResultPage) Next

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

func (*DatabaseOperationListResultPage) NextWithContext

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

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

func (DatabaseOperationListResultPage) NotDone

func (page DatabaseOperationListResultPage) NotDone() bool

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

func (DatabaseOperationListResultPage) Response

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

func (DatabaseOperationListResultPage) Values

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

type DatabaseOperationProperties

type DatabaseOperationProperties struct {
	// DatabaseName - READ-ONLY; The name of the database the operation is being performed on.
	DatabaseName *string `json:"databaseName,omitempty"`
	// Operation - READ-ONLY; The name of operation.
	Operation *string `json:"operation,omitempty"`
	// OperationFriendlyName - READ-ONLY; The friendly name of operation.
	OperationFriendlyName *string `json:"operationFriendlyName,omitempty"`
	// PercentComplete - READ-ONLY; The percentage of the operation completed.
	PercentComplete *int32 `json:"percentComplete,omitempty"`
	// ServerName - READ-ONLY; The name of the server.
	ServerName *string `json:"serverName,omitempty"`
	// StartTime - READ-ONLY; The operation start time.
	StartTime *date.Time `json:"startTime,omitempty"`
	// State - READ-ONLY; The operation state. Possible values include: '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

type DatabaseOperationsClient struct {
	BaseClient
}

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

func NewDatabaseOperationsClient

func NewDatabaseOperationsClient(subscriptionID string) DatabaseOperationsClient

NewDatabaseOperationsClient creates an instance of the DatabaseOperationsClient client.

func NewDatabaseOperationsClientWithBaseURI

func NewDatabaseOperationsClientWithBaseURI(baseURI string, subscriptionID string) DatabaseOperationsClient

NewDatabaseOperationsClientWithBaseURI creates an instance of the DatabaseOperationsClient client.

func (DatabaseOperationsClient) Cancel

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

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

func (DatabaseOperationsClient) CancelPreparer

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

CancelPreparer prepares the Cancel request.

func (DatabaseOperationsClient) CancelResponder

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

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

func (DatabaseOperationsClient) CancelSender

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

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

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

func (DatabaseOperationsClient) ListByDatabaseComplete

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

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

func (DatabaseOperationsClient) ListByDatabasePreparer

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (DatabaseOperationsClient) ListByDatabaseResponder

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

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

func (DatabaseOperationsClient) ListByDatabaseSender

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

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

type DatabaseProperties

type DatabaseProperties struct {
	// CreateMode - Specifies the mode of database creation.
	//
	// Default: regular database creation.
	//
	// Copy: creates a database as a copy of an existing database. sourceDatabaseId must be specified as the resource ID of the source database.
	//
	// Secondary: creates a database as a secondary replica of an existing database. sourceDatabaseId must be specified as the resource ID of the existing primary database.
	//
	// PointInTimeRestore: Creates a database by restoring a point in time backup of an existing database. sourceDatabaseId must be specified as the resource ID of the existing database, and restorePointInTime must be specified.
	//
	// Recovery: Creates a database by restoring a geo-replicated backup. sourceDatabaseId must be specified as the recoverable database resource ID to restore.
	//
	// Restore: Creates a database by restoring a backup of a deleted database. sourceDatabaseId must be specified. If sourceDatabaseId is the database's original resource ID, then sourceDatabaseDeletionDate must be specified. Otherwise sourceDatabaseId must be the restorable dropped database resource ID and sourceDatabaseDeletionDate is ignored. restorePointInTime may also be specified to restore from an earlier point in time.
	//
	// RestoreLongTermRetentionBackup: Creates a database by restoring from a long term retention vault. recoveryServicesRecoveryPointResourceId must be specified as the recovery point resource ID.
	//
	// Copy, Secondary, and RestoreLongTermRetentionBackup are not supported for DataWarehouse edition. Possible values include: 'CreateModeDefault', 'CreateModeCopy', 'CreateModeSecondary', 'CreateModePointInTimeRestore', 'CreateModeRestore', 'CreateModeRecovery', 'CreateModeRestoreExternalBackup', 'CreateModeRestoreExternalBackupSecondary', 'CreateModeRestoreLongTermRetentionBackup', 'CreateModeOnlineSecondary'
	CreateMode CreateMode `json:"createMode,omitempty"`
	// Collation - The collation of the database.
	Collation *string `json:"collation,omitempty"`
	// MaxSizeBytes - The max size of the database expressed in bytes.
	MaxSizeBytes *int64 `json:"maxSizeBytes,omitempty"`
	// SampleName - The name of the sample schema to apply when creating this database. Possible values include: 'AdventureWorksLT', 'WideWorldImportersStd', 'WideWorldImportersFull'
	SampleName SampleName `json:"sampleName,omitempty"`
	// ElasticPoolID - The resource identifier of the elastic pool containing this database.
	ElasticPoolID *string `json:"elasticPoolId,omitempty"`
	// SourceDatabaseID - The resource identifier of the source database associated with create operation of this database.
	SourceDatabaseID *string `json:"sourceDatabaseId,omitempty"`
	// Status - READ-ONLY; The status of the database. Possible values include: 'DatabaseStatusOnline', 'DatabaseStatusRestoring', 'DatabaseStatusRecoveryPending', 'DatabaseStatusRecovering', 'DatabaseStatusSuspect', 'DatabaseStatusOffline', 'DatabaseStatusStandby', 'DatabaseStatusShutdown', 'DatabaseStatusEmergencyMode', 'DatabaseStatusAutoClosed', 'DatabaseStatusCopying', 'DatabaseStatusCreating', 'DatabaseStatusInaccessible', 'DatabaseStatusOfflineSecondary', 'DatabaseStatusPausing', 'DatabaseStatusPaused', 'DatabaseStatusResuming', 'DatabaseStatusScaling', 'DatabaseStatusOfflineChangingDwPerformanceTiers', 'DatabaseStatusOnlineChangingDwPerformanceTiers', 'DatabaseStatusDisabled'
	Status DatabaseStatus `json:"status,omitempty"`
	// DatabaseID - READ-ONLY; The ID of the database.
	DatabaseID *uuid.UUID `json:"databaseId,omitempty"`
	// CreationDate - READ-ONLY; The creation date of the database (ISO8601 format).
	CreationDate *date.Time `json:"creationDate,omitempty"`
	// CurrentServiceObjectiveName - READ-ONLY; The current service level objective name of the database.
	CurrentServiceObjectiveName *string `json:"currentServiceObjectiveName,omitempty"`
	// RequestedServiceObjectiveName - READ-ONLY; The requested service level objective name of the database.
	RequestedServiceObjectiveName *string `json:"requestedServiceObjectiveName,omitempty"`
	// DefaultSecondaryLocation - READ-ONLY; The default secondary region for this database.
	DefaultSecondaryLocation *string `json:"defaultSecondaryLocation,omitempty"`
	// FailoverGroupID - READ-ONLY; Failover Group resource identifier that this database belongs to.
	FailoverGroupID *string `json:"failoverGroupId,omitempty"`
	// RestorePointInTime - Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database.
	RestorePointInTime *date.Time `json:"restorePointInTime,omitempty"`
	// SourceDatabaseDeletionDate - Specifies the time that the database was deleted.
	SourceDatabaseDeletionDate *date.Time `json:"sourceDatabaseDeletionDate,omitempty"`
	// RecoveryServicesRecoveryPointID - The resource identifier of the recovery point associated with create operation of this database.
	RecoveryServicesRecoveryPointID *string `json:"recoveryServicesRecoveryPointId,omitempty"`
	// LongTermRetentionBackupResourceID - The resource identifier of the long term retention backup associated with create operation of this database.
	LongTermRetentionBackupResourceID *string `json:"longTermRetentionBackupResourceId,omitempty"`
	// RecoverableDatabaseID - The resource identifier of the recoverable database associated with create operation of this database.
	RecoverableDatabaseID *string `json:"recoverableDatabaseId,omitempty"`
	// RestorableDroppedDatabaseID - The resource identifier of the restorable dropped database associated with create operation of this database.
	RestorableDroppedDatabaseID *string `json:"restorableDroppedDatabaseId,omitempty"`
	// CatalogCollation - Collation of the metadata catalog. Possible values include: 'DATABASEDEFAULT', 'SQLLatin1GeneralCP1CIAS'
	CatalogCollation CatalogCollationType `json:"catalogCollation,omitempty"`
	// ZoneRedundant - Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones.
	ZoneRedundant *bool `json:"zoneRedundant,omitempty"`
	// LicenseType - The license type to apply for this database. Possible values include: 'LicenseIncluded', 'BasePrice'
	LicenseType DatabaseLicenseType `json:"licenseType,omitempty"`
	// MaxLogSizeBytes - READ-ONLY; The max log size for this database.
	MaxLogSizeBytes *int64 `json:"maxLogSizeBytes,omitempty"`
	// EarliestRestoreDate - READ-ONLY; This records the earliest start date and time that restore is available for this database (ISO8601 format).
	EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"`
	// ReadScale - If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica. This property is only settable for Premium and Business Critical databases. Possible values include: 'DatabaseReadScaleEnabled', 'DatabaseReadScaleDisabled'
	ReadScale DatabaseReadScale `json:"readScale,omitempty"`
	// ReadReplicaCount - The number of readonly secondary replicas associated with the database to which readonly application intent connections may be routed. This property is only settable for Hyperscale edition databases.
	ReadReplicaCount *int32 `json:"readReplicaCount,omitempty"`
	// CurrentSku - READ-ONLY; The name and tier of the SKU.
	CurrentSku *Sku `json:"currentSku,omitempty"`
	// AutoPauseDelay - Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled
	AutoPauseDelay *int32 `json:"autoPauseDelay,omitempty"`
	// MinCapacity - Minimal capacity that database will always have allocated, if not paused
	MinCapacity *float64 `json:"minCapacity,omitempty"`
	// PausedDate - READ-ONLY; The date when database was paused by user configuration or action (ISO8601 format). Null if the database is ready.
	PausedDate *date.Time `json:"pausedDate,omitempty"`
	// ResumedDate - READ-ONLY; The date when database was resumed by user action or database login (ISO8601 format). Null if the database is paused.
	ResumedDate *date.Time `json:"resumedDate,omitempty"`
}

DatabaseProperties the database's properties.

type DatabaseReadScale

type DatabaseReadScale string

DatabaseReadScale enumerates the values for database read scale.

const (
	// DatabaseReadScaleDisabled ...
	DatabaseReadScaleDisabled DatabaseReadScale = "Disabled"
	// DatabaseReadScaleEnabled ...
	DatabaseReadScaleEnabled DatabaseReadScale = "Enabled"
)

func PossibleDatabaseReadScaleValues

func PossibleDatabaseReadScaleValues() []DatabaseReadScale

PossibleDatabaseReadScaleValues returns an array of possible values for the DatabaseReadScale const type.

type DatabaseSecurityAlertPolicy

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

DatabaseSecurityAlertPolicy contains information about a database Threat Detection policy.

func (DatabaseSecurityAlertPolicy) MarshalJSON

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

MarshalJSON is the custom marshaler for DatabaseSecurityAlertPolicy.

func (*DatabaseSecurityAlertPolicy) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for DatabaseSecurityAlertPolicy struct.

type DatabaseSecurityAlertPolicyProperties

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

DatabaseSecurityAlertPolicyProperties properties for a database Threat Detection policy.

type DatabaseStatus

type DatabaseStatus string

DatabaseStatus enumerates the values for database status.

const (
	// DatabaseStatusAutoClosed ...
	DatabaseStatusAutoClosed DatabaseStatus = "AutoClosed"
	// DatabaseStatusCopying ...
	DatabaseStatusCopying DatabaseStatus = "Copying"
	// DatabaseStatusCreating ...
	DatabaseStatusCreating DatabaseStatus = "Creating"
	// DatabaseStatusDisabled ...
	DatabaseStatusDisabled DatabaseStatus = "Disabled"
	// DatabaseStatusEmergencyMode ...
	DatabaseStatusEmergencyMode DatabaseStatus = "EmergencyMode"
	// DatabaseStatusInaccessible ...
	DatabaseStatusInaccessible DatabaseStatus = "Inaccessible"
	// DatabaseStatusOffline ...
	DatabaseStatusOffline DatabaseStatus = "Offline"
	// DatabaseStatusOfflineChangingDwPerformanceTiers ...
	DatabaseStatusOfflineChangingDwPerformanceTiers DatabaseStatus = "OfflineChangingDwPerformanceTiers"
	// DatabaseStatusOfflineSecondary ...
	DatabaseStatusOfflineSecondary DatabaseStatus = "OfflineSecondary"
	// DatabaseStatusOnline ...
	DatabaseStatusOnline DatabaseStatus = "Online"
	// DatabaseStatusOnlineChangingDwPerformanceTiers ...
	DatabaseStatusOnlineChangingDwPerformanceTiers DatabaseStatus = "OnlineChangingDwPerformanceTiers"
	// DatabaseStatusPaused ...
	DatabaseStatusPaused DatabaseStatus = "Paused"
	// DatabaseStatusPausing ...
	DatabaseStatusPausing DatabaseStatus = "Pausing"
	// DatabaseStatusRecovering ...
	DatabaseStatusRecovering DatabaseStatus = "Recovering"
	// DatabaseStatusRecoveryPending ...
	DatabaseStatusRecoveryPending DatabaseStatus = "RecoveryPending"
	// DatabaseStatusRestoring ...
	DatabaseStatusRestoring DatabaseStatus = "Restoring"
	// DatabaseStatusResuming ...
	DatabaseStatusResuming DatabaseStatus = "Resuming"
	// DatabaseStatusScaling ...
	DatabaseStatusScaling DatabaseStatus = "Scaling"
	// DatabaseStatusShutdown ...
	DatabaseStatusShutdown DatabaseStatus = "Shutdown"
	// DatabaseStatusStandby ...
	DatabaseStatusStandby DatabaseStatus = "Standby"
	// DatabaseStatusSuspect ...
	DatabaseStatusSuspect DatabaseStatus = "Suspect"
)

func PossibleDatabaseStatusValues

func PossibleDatabaseStatusValues() []DatabaseStatus

PossibleDatabaseStatusValues returns an array of possible values for the DatabaseStatus const type.

type DatabaseThreatDetectionPoliciesClient

type DatabaseThreatDetectionPoliciesClient struct {
	BaseClient
}

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

func NewDatabaseThreatDetectionPoliciesClient

func NewDatabaseThreatDetectionPoliciesClient(subscriptionID string) DatabaseThreatDetectionPoliciesClient

NewDatabaseThreatDetectionPoliciesClient creates an instance of the DatabaseThreatDetectionPoliciesClient client.

func NewDatabaseThreatDetectionPoliciesClientWithBaseURI

func NewDatabaseThreatDetectionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseThreatDetectionPoliciesClient

NewDatabaseThreatDetectionPoliciesClientWithBaseURI creates an instance of the DatabaseThreatDetectionPoliciesClient client.

func (DatabaseThreatDetectionPoliciesClient) CreateOrUpdate

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

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

func (DatabaseThreatDetectionPoliciesClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DatabaseThreatDetectionPoliciesClient) CreateOrUpdateResponder

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

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

func (DatabaseThreatDetectionPoliciesClient) CreateOrUpdateSender

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

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

func (DatabaseThreatDetectionPoliciesClient) Get

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

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

func (DatabaseThreatDetectionPoliciesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (DatabaseThreatDetectionPoliciesClient) GetResponder

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

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

func (DatabaseThreatDetectionPoliciesClient) GetSender

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

type DatabaseUpdate

type DatabaseUpdate struct {
	// Sku - The name and tier of the SKU.
	Sku *Sku `json:"sku,omitempty"`
	// DatabaseProperties - Resource properties.
	*DatabaseProperties `json:"properties,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
}

DatabaseUpdate a database resource.

func (DatabaseUpdate) MarshalJSON

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

MarshalJSON is the custom marshaler for DatabaseUpdate.

func (*DatabaseUpdate) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for DatabaseUpdate struct.

type DatabaseUsage

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

DatabaseUsage the database usages.

type DatabaseUsageListResult

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

DatabaseUsageListResult the response to a list database metrics request.

type DatabaseUsagesClient

type DatabaseUsagesClient struct {
	BaseClient
}

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

func NewDatabaseUsagesClient

func NewDatabaseUsagesClient(subscriptionID string) DatabaseUsagesClient

NewDatabaseUsagesClient creates an instance of the DatabaseUsagesClient client.

func NewDatabaseUsagesClientWithBaseURI

func NewDatabaseUsagesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseUsagesClient

NewDatabaseUsagesClientWithBaseURI creates an instance of the DatabaseUsagesClient client.

func (DatabaseUsagesClient) ListByDatabase

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

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

func (DatabaseUsagesClient) ListByDatabasePreparer

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (DatabaseUsagesClient) ListByDatabaseResponder

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

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

func (DatabaseUsagesClient) ListByDatabaseSender

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

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

DatabaseVulnerabilityAssessment a database vulnerability assessment.

func (DatabaseVulnerabilityAssessment) MarshalJSON

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

MarshalJSON is the custom marshaler for DatabaseVulnerabilityAssessment.

func (*DatabaseVulnerabilityAssessment) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for DatabaseVulnerabilityAssessment struct.

type DatabaseVulnerabilityAssessmentListResult

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

DatabaseVulnerabilityAssessmentListResult a list of the database's vulnerability assessments.

func (DatabaseVulnerabilityAssessmentListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type DatabaseVulnerabilityAssessmentListResultIterator

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

DatabaseVulnerabilityAssessmentListResultIterator provides access to a complete listing of DatabaseVulnerabilityAssessment values.

func NewDatabaseVulnerabilityAssessmentListResultIterator

func NewDatabaseVulnerabilityAssessmentListResultIterator(page DatabaseVulnerabilityAssessmentListResultPage) DatabaseVulnerabilityAssessmentListResultIterator

Creates a new instance of the DatabaseVulnerabilityAssessmentListResultIterator type.

func (*DatabaseVulnerabilityAssessmentListResultIterator) Next

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

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

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

func (DatabaseVulnerabilityAssessmentListResultIterator) Response

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

func (DatabaseVulnerabilityAssessmentListResultIterator) Value

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

type DatabaseVulnerabilityAssessmentListResultPage

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

DatabaseVulnerabilityAssessmentListResultPage contains a page of DatabaseVulnerabilityAssessment values.

func NewDatabaseVulnerabilityAssessmentListResultPage

Creates a new instance of the DatabaseVulnerabilityAssessmentListResultPage type.

func (*DatabaseVulnerabilityAssessmentListResultPage) Next

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

func (*DatabaseVulnerabilityAssessmentListResultPage) NextWithContext

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

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

func (DatabaseVulnerabilityAssessmentListResultPage) NotDone

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

func (DatabaseVulnerabilityAssessmentListResultPage) Response

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

func (DatabaseVulnerabilityAssessmentListResultPage) Values

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

type DatabaseVulnerabilityAssessmentProperties

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

DatabaseVulnerabilityAssessmentProperties properties of a database Vulnerability Assessment.

type DatabaseVulnerabilityAssessmentRuleBaseline

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

DatabaseVulnerabilityAssessmentRuleBaseline a database vulnerability assessment rule baseline.

func (DatabaseVulnerabilityAssessmentRuleBaseline) MarshalJSON

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

MarshalJSON is the custom marshaler for DatabaseVulnerabilityAssessmentRuleBaseline.

func (*DatabaseVulnerabilityAssessmentRuleBaseline) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for DatabaseVulnerabilityAssessmentRuleBaseline struct.

type DatabaseVulnerabilityAssessmentRuleBaselineItem

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

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

type DatabaseVulnerabilityAssessmentRuleBaselineProperties

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

DatabaseVulnerabilityAssessmentRuleBaselineProperties properties of a database Vulnerability Assessment rule baseline.

type DatabaseVulnerabilityAssessmentRuleBaselinesClient

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

func NewDatabaseVulnerabilityAssessmentRuleBaselinesClient(subscriptionID string) DatabaseVulnerabilityAssessmentRuleBaselinesClient

NewDatabaseVulnerabilityAssessmentRuleBaselinesClient creates an instance of the DatabaseVulnerabilityAssessmentRuleBaselinesClient client.

func NewDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI

func NewDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseVulnerabilityAssessmentRuleBaselinesClient

NewDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI creates an instance of the DatabaseVulnerabilityAssessmentRuleBaselinesClient client.

func (DatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdate

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

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

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

func (DatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdateSender

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

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

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

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

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

func (DatabaseVulnerabilityAssessmentRuleBaselinesClient) Get

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

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

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

func (DatabaseVulnerabilityAssessmentRuleBaselinesClient) GetSender

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

type DatabaseVulnerabilityAssessmentScanExportProperties

type DatabaseVulnerabilityAssessmentScanExportProperties struct {
	// ExportedReportLocation - READ-ONLY; Location of the exported report (e.g. https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx).
	ExportedReportLocation *string `json:"exportedReportLocation,omitempty"`
}

DatabaseVulnerabilityAssessmentScanExportProperties properties of the export operation's result.

type DatabaseVulnerabilityAssessmentScansClient

type DatabaseVulnerabilityAssessmentScansClient struct {
	BaseClient
}

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

func NewDatabaseVulnerabilityAssessmentScansClient

func NewDatabaseVulnerabilityAssessmentScansClient(subscriptionID string) DatabaseVulnerabilityAssessmentScansClient

NewDatabaseVulnerabilityAssessmentScansClient creates an instance of the DatabaseVulnerabilityAssessmentScansClient client.

func NewDatabaseVulnerabilityAssessmentScansClientWithBaseURI

func NewDatabaseVulnerabilityAssessmentScansClientWithBaseURI(baseURI string, subscriptionID string) DatabaseVulnerabilityAssessmentScansClient

NewDatabaseVulnerabilityAssessmentScansClientWithBaseURI creates an instance of the DatabaseVulnerabilityAssessmentScansClient client.

func (DatabaseVulnerabilityAssessmentScansClient) Export

func (client DatabaseVulnerabilityAssessmentScansClient) Export(ctx context.Context, resourceGroupName string, serverName string, databaseName string, scanID string) (result DatabaseVulnerabilityAssessmentScansExport, err error)

Export convert an existing scan result to a human readable format. If already exists nothing happens Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the scanned database. scanID - the vulnerability assessment scan Id.

func (DatabaseVulnerabilityAssessmentScansClient) ExportPreparer

func (client DatabaseVulnerabilityAssessmentScansClient) ExportPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, scanID string) (*http.Request, error)

ExportPreparer prepares the Export request.

func (DatabaseVulnerabilityAssessmentScansClient) ExportResponder

ExportResponder handles the response to the Export request. The method always closes the http.Response Body.

func (DatabaseVulnerabilityAssessmentScansClient) ExportSender

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

func (DatabaseVulnerabilityAssessmentScansClient) Get

func (client DatabaseVulnerabilityAssessmentScansClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string, scanID string) (result VulnerabilityAssessmentScanRecord, err error)

Get gets a vulnerability assessment scan record of a database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database. scanID - the vulnerability assessment scan Id of the scan to retrieve.

func (DatabaseVulnerabilityAssessmentScansClient) GetPreparer

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

GetPreparer prepares the Get request.

func (DatabaseVulnerabilityAssessmentScansClient) GetResponder

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

func (DatabaseVulnerabilityAssessmentScansClient) GetSender

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

func (DatabaseVulnerabilityAssessmentScansClient) InitiateScan

func (client DatabaseVulnerabilityAssessmentScansClient) InitiateScan(ctx context.Context, resourceGroupName string, serverName string, databaseName string, scanID string) (result DatabaseVulnerabilityAssessmentScansInitiateScanFuture, err error)

InitiateScan executes a Vulnerability Assessment database scan. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database. scanID - the vulnerability assessment scan Id of the scan to retrieve.

func (DatabaseVulnerabilityAssessmentScansClient) InitiateScanPreparer

func (client DatabaseVulnerabilityAssessmentScansClient) InitiateScanPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, scanID string) (*http.Request, error)

InitiateScanPreparer prepares the InitiateScan request.

func (DatabaseVulnerabilityAssessmentScansClient) InitiateScanResponder

func (client DatabaseVulnerabilityAssessmentScansClient) InitiateScanResponder(resp *http.Response) (result autorest.Response, err error)

InitiateScanResponder handles the response to the InitiateScan request. The method always closes the http.Response Body.

func (DatabaseVulnerabilityAssessmentScansClient) InitiateScanSender

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

func (DatabaseVulnerabilityAssessmentScansClient) ListByDatabase

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

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

func (DatabaseVulnerabilityAssessmentScansClient) ListByDatabaseComplete

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

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

func (DatabaseVulnerabilityAssessmentScansClient) ListByDatabasePreparer

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (DatabaseVulnerabilityAssessmentScansClient) ListByDatabaseResponder

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

func (DatabaseVulnerabilityAssessmentScansClient) ListByDatabaseSender

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

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

type DatabaseVulnerabilityAssessmentScansExport

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

DatabaseVulnerabilityAssessmentScansExport a database Vulnerability Assessment scan export resource.

func (DatabaseVulnerabilityAssessmentScansExport) MarshalJSON

func (dvase DatabaseVulnerabilityAssessmentScansExport) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseVulnerabilityAssessmentScansExport.

func (*DatabaseVulnerabilityAssessmentScansExport) UnmarshalJSON

func (dvase *DatabaseVulnerabilityAssessmentScansExport) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DatabaseVulnerabilityAssessmentScansExport struct.

type DatabaseVulnerabilityAssessmentScansInitiateScanFuture

type DatabaseVulnerabilityAssessmentScansInitiateScanFuture struct {
	azure.Future
}

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

func (*DatabaseVulnerabilityAssessmentScansInitiateScanFuture) Result

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

type DatabaseVulnerabilityAssessmentsClient

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

func NewDatabaseVulnerabilityAssessmentsClient(subscriptionID string) DatabaseVulnerabilityAssessmentsClient

NewDatabaseVulnerabilityAssessmentsClient creates an instance of the DatabaseVulnerabilityAssessmentsClient client.

func NewDatabaseVulnerabilityAssessmentsClientWithBaseURI

func NewDatabaseVulnerabilityAssessmentsClientWithBaseURI(baseURI string, subscriptionID string) DatabaseVulnerabilityAssessmentsClient

NewDatabaseVulnerabilityAssessmentsClientWithBaseURI creates an instance of the DatabaseVulnerabilityAssessmentsClient client.

func (DatabaseVulnerabilityAssessmentsClient) CreateOrUpdate

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

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

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

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

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

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

DeletePreparer prepares the Delete request.

func (DatabaseVulnerabilityAssessmentsClient) DeleteResponder

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

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

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

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

GetPreparer prepares the Get request.

func (DatabaseVulnerabilityAssessmentsClient) GetResponder

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

func (DatabaseVulnerabilityAssessmentsClient) GetSender

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

func (DatabaseVulnerabilityAssessmentsClient) ListByDatabase

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

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

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (DatabaseVulnerabilityAssessmentsClient) ListByDatabaseResponder

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

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

type DatabasesClient struct {
	BaseClient
}

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

func NewDatabasesClient

func NewDatabasesClient(subscriptionID string) DatabasesClient

NewDatabasesClient creates an instance of the DatabasesClient client.

func NewDatabasesClientWithBaseURI

func NewDatabasesClientWithBaseURI(baseURI string, subscriptionID string) DatabasesClient

NewDatabasesClientWithBaseURI creates an instance of the DatabasesClient client.

func (DatabasesClient) CreateImportOperation

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

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

func (DatabasesClient) CreateImportOperationPreparer

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

CreateImportOperationPreparer prepares the CreateImportOperation request.

func (DatabasesClient) CreateImportOperationResponder

func (client DatabasesClient) CreateImportOperationResponder(resp *http.Response) (result ImportExportResponse, err error)

CreateImportOperationResponder handles the response to the CreateImportOperation request. The method always closes the http.Response Body.

func (DatabasesClient) CreateImportOperationSender

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

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

func (DatabasesClient) CreateOrUpdate

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

CreateOrUpdate creates a new database or updates an existing database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database. parameters - the requested database resource state.

func (DatabasesClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DatabasesClient) CreateOrUpdateResponder

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

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

func (DatabasesClient) CreateOrUpdateSender

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

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

func (DatabasesClient) Delete

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

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

func (DatabasesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (DatabasesClient) DeleteResponder

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

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

func (DatabasesClient) DeleteSender

func (client DatabasesClient) DeleteSender(req *http.Request) (future DatabasesDeleteFuture, err error)

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

func (DatabasesClient) Export

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

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

func (DatabasesClient) ExportPreparer

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

ExportPreparer prepares the Export request.

func (DatabasesClient) ExportResponder

func (client DatabasesClient) ExportResponder(resp *http.Response) (result ImportExportResponse, err error)

ExportResponder handles the response to the Export request. The method always closes the http.Response Body.

func (DatabasesClient) ExportSender

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

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

func (DatabasesClient) Failover

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

Failover failovers 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 failover.

func (DatabasesClient) FailoverPreparer

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

FailoverPreparer prepares the Failover request.

func (DatabasesClient) FailoverResponder

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

FailoverResponder handles the response to the Failover request. The method always closes the http.Response Body.

func (DatabasesClient) FailoverSender

func (client DatabasesClient) FailoverSender(req *http.Request) (future DatabasesFailoverFuture, err error)

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

func (DatabasesClient) Get

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

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

func (DatabasesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (DatabasesClient) GetResponder

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

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

func (DatabasesClient) GetSender

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

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

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

func (DatabasesClient) ImportPreparer

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

ImportPreparer prepares the Import request.

func (DatabasesClient) ImportResponder

func (client DatabasesClient) ImportResponder(resp *http.Response) (result ImportExportResponse, err error)

ImportResponder handles the response to the Import request. The method always closes the http.Response Body.

func (DatabasesClient) ImportSender

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

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

func (DatabasesClient) ListByElasticPool

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

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

func (DatabasesClient) ListByElasticPoolComplete

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

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

func (DatabasesClient) ListByElasticPoolPreparer

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

ListByElasticPoolPreparer prepares the ListByElasticPool request.

func (DatabasesClient) ListByElasticPoolResponder

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

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

func (DatabasesClient) ListByElasticPoolSender

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

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

ListByServer gets a list of databases. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.

func (DatabasesClient) ListByServerComplete

func (client DatabasesClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result DatabaseListResultIterator, err error)

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

func (DatabasesClient) ListByServerPreparer

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

ListByServerPreparer prepares the ListByServer request.

func (DatabasesClient) ListByServerResponder

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

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

func (DatabasesClient) ListByServerSender

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

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

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

func (DatabasesClient) ListMetricDefinitionsPreparer

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

ListMetricDefinitionsPreparer prepares the ListMetricDefinitions request.

func (DatabasesClient) ListMetricDefinitionsResponder

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

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

func (DatabasesClient) ListMetricDefinitionsSender

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

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

func (DatabasesClient) ListMetrics

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

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

func (DatabasesClient) ListMetricsPreparer

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

ListMetricsPreparer prepares the ListMetrics request.

func (DatabasesClient) ListMetricsResponder

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

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

func (DatabasesClient) ListMetricsSender

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

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

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

func (DatabasesClient) PausePreparer

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

PausePreparer prepares the Pause request.

func (DatabasesClient) PauseResponder

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

PauseResponder handles the response to the Pause request. The method always closes the http.Response Body.

func (DatabasesClient) PauseSender

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

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

func (DatabasesClient) Rename

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

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

func (DatabasesClient) RenamePreparer

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

RenamePreparer prepares the Rename request.

func (DatabasesClient) RenameResponder

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

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

func (DatabasesClient) RenameSender

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

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

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

func (DatabasesClient) ResumePreparer

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

ResumePreparer prepares the Resume request.

func (DatabasesClient) ResumeResponder

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

ResumeResponder handles the response to the Resume request. The method always closes the http.Response Body.

func (DatabasesClient) ResumeSender

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

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

func (DatabasesClient) Update

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

Update updates an existing database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database. parameters - the requested database resource state.

func (DatabasesClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (DatabasesClient) UpdateResponder

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

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

func (DatabasesClient) UpdateSender

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

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

func (DatabasesClient) UpgradeDataWarehouse

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

UpgradeDataWarehouse upgrades a data warehouse. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database to be upgraded.

func (DatabasesClient) UpgradeDataWarehousePreparer

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

UpgradeDataWarehousePreparer prepares the UpgradeDataWarehouse request.

func (DatabasesClient) UpgradeDataWarehouseResponder

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

UpgradeDataWarehouseResponder handles the response to the UpgradeDataWarehouse request. The method always closes the http.Response Body.

func (DatabasesClient) UpgradeDataWarehouseSender

func (client DatabasesClient) UpgradeDataWarehouseSender(req *http.Request) (future DatabasesUpgradeDataWarehouseFuture, err error)

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

type DatabasesCreateImportOperationFuture

type DatabasesCreateImportOperationFuture struct {
	azure.Future
}

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

func (*DatabasesCreateImportOperationFuture) Result

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

type DatabasesCreateOrUpdateFuture

type DatabasesCreateOrUpdateFuture struct {
	azure.Future
}

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

func (*DatabasesCreateOrUpdateFuture) Result

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

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

type DatabasesDeleteFuture

type DatabasesDeleteFuture struct {
	azure.Future
}

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

func (*DatabasesDeleteFuture) Result

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

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

type DatabasesExportFuture

type DatabasesExportFuture struct {
	azure.Future
}

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

func (*DatabasesExportFuture) Result

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

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

type DatabasesFailoverFuture

type DatabasesFailoverFuture struct {
	azure.Future
}

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

func (*DatabasesFailoverFuture) Result

func (future *DatabasesFailoverFuture) 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 DatabasesImportFuture

type DatabasesImportFuture struct {
	azure.Future
}

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

func (*DatabasesImportFuture) Result

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

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

type DatabasesPauseFuture

type DatabasesPauseFuture struct {
	azure.Future
}

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

func (*DatabasesPauseFuture) Result

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

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

type DatabasesResumeFuture

type DatabasesResumeFuture struct {
	azure.Future
}

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

func (*DatabasesResumeFuture) Result

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

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

type DatabasesUpdateFuture

type DatabasesUpdateFuture struct {
	azure.Future
}

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

func (*DatabasesUpdateFuture) Result

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

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

type DatabasesUpgradeDataWarehouseFuture

type DatabasesUpgradeDataWarehouseFuture struct {
	azure.Future
}

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

func (*DatabasesUpgradeDataWarehouseFuture) Result

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

type EditionCapability

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

EditionCapability the edition capability.

type ElasticPool

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

ElasticPool an elastic pool.

func (ElasticPool) MarshalJSON

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

MarshalJSON is the custom marshaler for ElasticPool.

func (*ElasticPool) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for ElasticPool struct.

type ElasticPoolActivitiesClient

type ElasticPoolActivitiesClient struct {
	BaseClient
}

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

func NewElasticPoolActivitiesClient

func NewElasticPoolActivitiesClient(subscriptionID string) ElasticPoolActivitiesClient

NewElasticPoolActivitiesClient creates an instance of the ElasticPoolActivitiesClient client.

func NewElasticPoolActivitiesClientWithBaseURI

func NewElasticPoolActivitiesClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolActivitiesClient

NewElasticPoolActivitiesClientWithBaseURI creates an instance of the ElasticPoolActivitiesClient client.

func (ElasticPoolActivitiesClient) ListByElasticPool

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

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

func (ElasticPoolActivitiesClient) ListByElasticPoolPreparer

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

ListByElasticPoolPreparer prepares the ListByElasticPool request.

func (ElasticPoolActivitiesClient) ListByElasticPoolResponder

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

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

func (ElasticPoolActivitiesClient) ListByElasticPoolSender

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

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

type ElasticPoolActivity

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

ElasticPoolActivity represents the activity on an elastic pool.

func (ElasticPoolActivity) MarshalJSON

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

MarshalJSON is the custom marshaler for ElasticPoolActivity.

func (*ElasticPoolActivity) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for ElasticPoolActivity struct.

type ElasticPoolActivityListResult

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

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

type ElasticPoolActivityProperties

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

ElasticPoolActivityProperties represents the properties of an elastic pool.

type ElasticPoolDatabaseActivitiesClient

type ElasticPoolDatabaseActivitiesClient struct {
	BaseClient
}

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

func NewElasticPoolDatabaseActivitiesClient

func NewElasticPoolDatabaseActivitiesClient(subscriptionID string) ElasticPoolDatabaseActivitiesClient

NewElasticPoolDatabaseActivitiesClient creates an instance of the ElasticPoolDatabaseActivitiesClient client.

func NewElasticPoolDatabaseActivitiesClientWithBaseURI

func NewElasticPoolDatabaseActivitiesClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolDatabaseActivitiesClient

NewElasticPoolDatabaseActivitiesClientWithBaseURI creates an instance of the ElasticPoolDatabaseActivitiesClient client.

func (ElasticPoolDatabaseActivitiesClient) ListByElasticPool

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

ListByElasticPool returns activity on databases inside of an elastic pool. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. elasticPoolName - the name of the elastic pool.

func (ElasticPoolDatabaseActivitiesClient) ListByElasticPoolPreparer

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

ListByElasticPoolPreparer prepares the ListByElasticPool request.

func (ElasticPoolDatabaseActivitiesClient) ListByElasticPoolResponder

func (client ElasticPoolDatabaseActivitiesClient) ListByElasticPoolResponder(resp *http.Response) (result ElasticPoolDatabaseActivityListResult, err error)

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

func (ElasticPoolDatabaseActivitiesClient) ListByElasticPoolSender

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

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

type ElasticPoolDatabaseActivity

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

ElasticPoolDatabaseActivity represents the activity on an elastic pool.

func (ElasticPoolDatabaseActivity) MarshalJSON

func (epda ElasticPoolDatabaseActivity) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ElasticPoolDatabaseActivity.

func (*ElasticPoolDatabaseActivity) UnmarshalJSON

func (epda *ElasticPoolDatabaseActivity) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ElasticPoolDatabaseActivity struct.

type ElasticPoolDatabaseActivityListResult

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

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

type ElasticPoolDatabaseActivityProperties

type ElasticPoolDatabaseActivityProperties struct {
	// DatabaseName - READ-ONLY; The database name.
	DatabaseName *string `json:"databaseName,omitempty"`
	// EndTime - READ-ONLY; The time the operation finished (ISO8601 format).
	EndTime *date.Time `json:"endTime,omitempty"`
	// ErrorCode - READ-ONLY; The error code if available.
	ErrorCode *int32 `json:"errorCode,omitempty"`
	// ErrorMessage - READ-ONLY; The error message if available.
	ErrorMessage *string `json:"errorMessage,omitempty"`
	// ErrorSeverity - READ-ONLY; The error severity if available.
	ErrorSeverity *int32 `json:"errorSeverity,omitempty"`
	// Operation - READ-ONLY; The operation name.
	Operation *string `json:"operation,omitempty"`
	// OperationID - READ-ONLY; The unique operation ID.
	OperationID *uuid.UUID `json:"operationId,omitempty"`
	// PercentComplete - READ-ONLY; The percentage complete if available.
	PercentComplete *int32 `json:"percentComplete,omitempty"`
	// RequestedElasticPoolName - READ-ONLY; The name for the elastic pool the database is moving into if available.
	RequestedElasticPoolName *string `json:"requestedElasticPoolName,omitempty"`
	// CurrentElasticPoolName - READ-ONLY; The name of the current elastic pool the database is in if available.
	CurrentElasticPoolName *string `json:"currentElasticPoolName,omitempty"`
	// CurrentServiceObjective - READ-ONLY; The name of the current service objective if available.
	CurrentServiceObjective *string `json:"currentServiceObjective,omitempty"`
	// RequestedServiceObjective - READ-ONLY; The name of the requested service objective if available.
	RequestedServiceObjective *string `json:"requestedServiceObjective,omitempty"`
	// ServerName - READ-ONLY; The name of the server the elastic pool is in.
	ServerName *string `json:"serverName,omitempty"`
	// StartTime - READ-ONLY; The time the operation started (ISO8601 format).
	StartTime *date.Time `json:"startTime,omitempty"`
	// State - READ-ONLY; The current state of the operation.
	State *string `json:"state,omitempty"`
}

ElasticPoolDatabaseActivityProperties represents the properties of an elastic pool database activity.

type ElasticPoolEdition

type ElasticPoolEdition string

ElasticPoolEdition enumerates the values for elastic pool edition.

const (
	// ElasticPoolEditionBasic ...
	ElasticPoolEditionBasic ElasticPoolEdition = "Basic"
	// ElasticPoolEditionBusinessCritical ...
	ElasticPoolEditionBusinessCritical ElasticPoolEdition = "BusinessCritical"
	// ElasticPoolEditionGeneralPurpose ...
	ElasticPoolEditionGeneralPurpose ElasticPoolEdition = "GeneralPurpose"
	// ElasticPoolEditionPremium ...
	ElasticPoolEditionPremium ElasticPoolEdition = "Premium"
	// ElasticPoolEditionStandard ...
	ElasticPoolEditionStandard ElasticPoolEdition = "Standard"
)

func PossibleElasticPoolEditionValues

func PossibleElasticPoolEditionValues() []ElasticPoolEdition

PossibleElasticPoolEditionValues returns an array of possible values for the ElasticPoolEdition const type.

type ElasticPoolEditionCapability

type ElasticPoolEditionCapability struct {
	// Name - READ-ONLY; The elastic pool edition name.
	Name *string `json:"name,omitempty"`
	// SupportedElasticPoolPerformanceLevels - READ-ONLY; The list of supported elastic pool DTU levels for the edition.
	SupportedElasticPoolPerformanceLevels *[]ElasticPoolPerformanceLevelCapability `json:"supportedElasticPoolPerformanceLevels,omitempty"`
	// ZoneRedundant - READ-ONLY; Whether or not zone redundancy is supported for the edition.
	ZoneRedundant *bool `json:"zoneRedundant,omitempty"`
	// Status - READ-ONLY; The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled'
	Status CapabilityStatus `json:"status,omitempty"`
	// Reason - The reason for the capability not being available.
	Reason *string `json:"reason,omitempty"`
}

ElasticPoolEditionCapability the elastic pool edition capability.

type ElasticPoolLicenseType

type ElasticPoolLicenseType string

ElasticPoolLicenseType enumerates the values for elastic pool license type.

const (
	// ElasticPoolLicenseTypeBasePrice ...
	ElasticPoolLicenseTypeBasePrice ElasticPoolLicenseType = "BasePrice"
	// ElasticPoolLicenseTypeLicenseIncluded ...
	ElasticPoolLicenseTypeLicenseIncluded ElasticPoolLicenseType = "LicenseIncluded"
)

func PossibleElasticPoolLicenseTypeValues

func PossibleElasticPoolLicenseTypeValues() []ElasticPoolLicenseType

PossibleElasticPoolLicenseTypeValues returns an array of possible values for the ElasticPoolLicenseType const type.

type ElasticPoolListResult

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

ElasticPoolListResult the result of an elastic pool list request.

func (ElasticPoolListResult) IsEmpty

func (eplr ElasticPoolListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ElasticPoolListResultIterator

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

ElasticPoolListResultIterator provides access to a complete listing of ElasticPool values.

func NewElasticPoolListResultIterator

func NewElasticPoolListResultIterator(page ElasticPoolListResultPage) ElasticPoolListResultIterator

Creates a new instance of the ElasticPoolListResultIterator type.

func (*ElasticPoolListResultIterator) Next

func (iter *ElasticPoolListResultIterator) Next() error

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

func (*ElasticPoolListResultIterator) NextWithContext

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

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

func (ElasticPoolListResultIterator) NotDone

func (iter ElasticPoolListResultIterator) NotDone() bool

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

func (ElasticPoolListResultIterator) Response

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

func (ElasticPoolListResultIterator) Value

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

type ElasticPoolListResultPage

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

ElasticPoolListResultPage contains a page of ElasticPool values.

func NewElasticPoolListResultPage

func NewElasticPoolListResultPage(getNextPage func(context.Context, ElasticPoolListResult) (ElasticPoolListResult, error)) ElasticPoolListResultPage

Creates a new instance of the ElasticPoolListResultPage type.

func (*ElasticPoolListResultPage) Next

func (page *ElasticPoolListResultPage) Next() error

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

func (*ElasticPoolListResultPage) NextWithContext

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

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

func (ElasticPoolListResultPage) NotDone

func (page ElasticPoolListResultPage) NotDone() bool

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

func (ElasticPoolListResultPage) Response

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

func (ElasticPoolListResultPage) Values

func (page ElasticPoolListResultPage) Values() []ElasticPool

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

type ElasticPoolOperation

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

ElasticPoolOperation a elastic pool operation.

func (ElasticPoolOperation) MarshalJSON

func (epo ElasticPoolOperation) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ElasticPoolOperation.

func (*ElasticPoolOperation) UnmarshalJSON

func (epo *ElasticPoolOperation) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ElasticPoolOperation struct.

type ElasticPoolOperationListResult

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

ElasticPoolOperationListResult the response to a list elastic pool operations request

func (ElasticPoolOperationListResult) IsEmpty

func (epolr ElasticPoolOperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ElasticPoolOperationListResultIterator

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

ElasticPoolOperationListResultIterator provides access to a complete listing of ElasticPoolOperation values.

func NewElasticPoolOperationListResultIterator

func NewElasticPoolOperationListResultIterator(page ElasticPoolOperationListResultPage) ElasticPoolOperationListResultIterator

Creates a new instance of the ElasticPoolOperationListResultIterator type.

func (*ElasticPoolOperationListResultIterator) Next

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

func (*ElasticPoolOperationListResultIterator) NextWithContext

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

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

func (ElasticPoolOperationListResultIterator) NotDone

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

func (ElasticPoolOperationListResultIterator) Response

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

func (ElasticPoolOperationListResultIterator) Value

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

type ElasticPoolOperationListResultPage

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

ElasticPoolOperationListResultPage contains a page of ElasticPoolOperation values.

func NewElasticPoolOperationListResultPage

Creates a new instance of the ElasticPoolOperationListResultPage type.

func (*ElasticPoolOperationListResultPage) Next

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

func (*ElasticPoolOperationListResultPage) NextWithContext

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

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

func (ElasticPoolOperationListResultPage) NotDone

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

func (ElasticPoolOperationListResultPage) Response

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

func (ElasticPoolOperationListResultPage) Values

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

type ElasticPoolOperationProperties

type ElasticPoolOperationProperties struct {
	// ElasticPoolName - READ-ONLY; The name of the elastic pool the operation is being performed on.
	ElasticPoolName *string `json:"elasticPoolName,omitempty"`
	// Operation - READ-ONLY; The name of operation.
	Operation *string `json:"operation,omitempty"`
	// OperationFriendlyName - READ-ONLY; The friendly name of operation.
	OperationFriendlyName *string `json:"operationFriendlyName,omitempty"`
	// PercentComplete - READ-ONLY; The percentage of the operation completed.
	PercentComplete *int32 `json:"percentComplete,omitempty"`
	// ServerName - READ-ONLY; The name of the server.
	ServerName *string `json:"serverName,omitempty"`
	// StartTime - READ-ONLY; The operation start time.
	StartTime *date.Time `json:"startTime,omitempty"`
	// State - READ-ONLY; The operation state.
	State *string `json:"state,omitempty"`
	// ErrorCode - READ-ONLY; The operation error code.
	ErrorCode *int32 `json:"errorCode,omitempty"`
	// ErrorDescription - READ-ONLY; The operation error description.
	ErrorDescription *string `json:"errorDescription,omitempty"`
	// ErrorSeverity - READ-ONLY; The operation error severity.
	ErrorSeverity *int32 `json:"errorSeverity,omitempty"`
	// IsUserError - READ-ONLY; Whether or not the error is a user error.
	IsUserError *bool `json:"isUserError,omitempty"`
	// EstimatedCompletionTime - READ-ONLY; The estimated completion time of the operation.
	EstimatedCompletionTime *date.Time `json:"estimatedCompletionTime,omitempty"`
	// Description - READ-ONLY; The operation description.
	Description *string `json:"description,omitempty"`
	// IsCancellable - READ-ONLY; Whether the operation can be cancelled.
	IsCancellable *bool `json:"isCancellable,omitempty"`
}

ElasticPoolOperationProperties the properties of a elastic pool operation.

type ElasticPoolOperationsClient

type ElasticPoolOperationsClient struct {
	BaseClient
}

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

func NewElasticPoolOperationsClient

func NewElasticPoolOperationsClient(subscriptionID string) ElasticPoolOperationsClient

NewElasticPoolOperationsClient creates an instance of the ElasticPoolOperationsClient client.

func NewElasticPoolOperationsClientWithBaseURI

func NewElasticPoolOperationsClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolOperationsClient

NewElasticPoolOperationsClientWithBaseURI creates an instance of the ElasticPoolOperationsClient client.

func (ElasticPoolOperationsClient) Cancel

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

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

func (ElasticPoolOperationsClient) CancelPreparer

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

CancelPreparer prepares the Cancel request.

func (ElasticPoolOperationsClient) CancelResponder

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

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

func (ElasticPoolOperationsClient) CancelSender

func (client ElasticPoolOperationsClient) 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 (ElasticPoolOperationsClient) ListByElasticPool

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

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

func (ElasticPoolOperationsClient) ListByElasticPoolComplete

func (client ElasticPoolOperationsClient) ListByElasticPoolComplete(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (result ElasticPoolOperationListResultIterator, err error)

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

func (ElasticPoolOperationsClient) ListByElasticPoolPreparer

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

ListByElasticPoolPreparer prepares the ListByElasticPool request.

func (ElasticPoolOperationsClient) ListByElasticPoolResponder

func (client ElasticPoolOperationsClient) ListByElasticPoolResponder(resp *http.Response) (result ElasticPoolOperationListResult, err error)

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

func (ElasticPoolOperationsClient) ListByElasticPoolSender

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

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

type ElasticPoolPerDatabaseMaxPerformanceLevelCapability

type ElasticPoolPerDatabaseMaxPerformanceLevelCapability struct {
	// Limit - READ-ONLY; The maximum performance level per database.
	Limit *float64 `json:"limit,omitempty"`
	// Unit - READ-ONLY; Unit type used to measure performance level. Possible values include: 'DTU', 'VCores'
	Unit PerformanceLevelUnit `json:"unit,omitempty"`
	// SupportedPerDatabaseMinPerformanceLevels - READ-ONLY; The list of supported min database performance levels.
	SupportedPerDatabaseMinPerformanceLevels *[]ElasticPoolPerDatabaseMinPerformanceLevelCapability `json:"supportedPerDatabaseMinPerformanceLevels,omitempty"`
	// Status - READ-ONLY; The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled'
	Status CapabilityStatus `json:"status,omitempty"`
	// Reason - The reason for the capability not being available.
	Reason *string `json:"reason,omitempty"`
}

ElasticPoolPerDatabaseMaxPerformanceLevelCapability the max per-database performance level capability.

type ElasticPoolPerDatabaseMinPerformanceLevelCapability

type ElasticPoolPerDatabaseMinPerformanceLevelCapability struct {
	// Limit - READ-ONLY; The minimum performance level per database.
	Limit *float64 `json:"limit,omitempty"`
	// Unit - READ-ONLY; Unit type used to measure performance level. Possible values include: 'DTU', 'VCores'
	Unit PerformanceLevelUnit `json:"unit,omitempty"`
	// Status - READ-ONLY; The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled'
	Status CapabilityStatus `json:"status,omitempty"`
	// Reason - The reason for the capability not being available.
	Reason *string `json:"reason,omitempty"`
}

ElasticPoolPerDatabaseMinPerformanceLevelCapability the minimum per-database performance level capability.

type ElasticPoolPerDatabaseSettings

type ElasticPoolPerDatabaseSettings struct {
	// MinCapacity - The minimum capacity all databases are guaranteed.
	MinCapacity *float64 `json:"minCapacity,omitempty"`
	// MaxCapacity - The maximum capacity any one database can consume.
	MaxCapacity *float64 `json:"maxCapacity,omitempty"`
}

ElasticPoolPerDatabaseSettings per database settings of an elastic pool.

type ElasticPoolPerformanceLevelCapability

type ElasticPoolPerformanceLevelCapability struct {
	// PerformanceLevel - READ-ONLY; The performance level for the pool.
	PerformanceLevel *PerformanceLevelCapability `json:"performanceLevel,omitempty"`
	// Sku - READ-ONLY; The sku.
	Sku *Sku `json:"sku,omitempty"`
	// SupportedLicenseTypes - READ-ONLY; List of supported license types.
	SupportedLicenseTypes *[]LicenseTypeCapability `json:"supportedLicenseTypes,omitempty"`
	// MaxDatabaseCount - READ-ONLY; The maximum number of databases supported.
	MaxDatabaseCount *int32 `json:"maxDatabaseCount,omitempty"`
	// IncludedMaxSize - READ-ONLY; The included (free) max size for this performance level.
	IncludedMaxSize *MaxSizeCapability `json:"includedMaxSize,omitempty"`
	// SupportedMaxSizes - READ-ONLY; The list of supported max sizes.
	SupportedMaxSizes *[]MaxSizeRangeCapability `json:"supportedMaxSizes,omitempty"`
	// SupportedPerDatabaseMaxSizes - READ-ONLY; The list of supported per database max sizes.
	SupportedPerDatabaseMaxSizes *[]MaxSizeRangeCapability `json:"supportedPerDatabaseMaxSizes,omitempty"`
	// SupportedPerDatabaseMaxPerformanceLevels - READ-ONLY; The list of supported per database max performance levels.
	SupportedPerDatabaseMaxPerformanceLevels *[]ElasticPoolPerDatabaseMaxPerformanceLevelCapability `json:"supportedPerDatabaseMaxPerformanceLevels,omitempty"`
	// Status - READ-ONLY; The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled'
	Status CapabilityStatus `json:"status,omitempty"`
	// Reason - The reason for the capability not being available.
	Reason *string `json:"reason,omitempty"`
}

ElasticPoolPerformanceLevelCapability the Elastic Pool performance level capability.

type ElasticPoolProperties

type ElasticPoolProperties struct {
	// State - READ-ONLY; The state of the elastic pool. Possible values include: 'ElasticPoolStateCreating', 'ElasticPoolStateReady', 'ElasticPoolStateDisabled'
	State ElasticPoolState `json:"state,omitempty"`
	// CreationDate - READ-ONLY; The creation date of the elastic pool (ISO8601 format).
	CreationDate *date.Time `json:"creationDate,omitempty"`
	// MaxSizeBytes - The storage limit for the database elastic pool in bytes.
	MaxSizeBytes *int64 `json:"maxSizeBytes,omitempty"`
	// PerDatabaseSettings - The per database settings for the elastic pool.
	PerDatabaseSettings *ElasticPoolPerDatabaseSettings `json:"perDatabaseSettings,omitempty"`
	// ZoneRedundant - Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones.
	ZoneRedundant *bool `json:"zoneRedundant,omitempty"`
	// LicenseType - The license type to apply for this elastic pool. Possible values include: 'ElasticPoolLicenseTypeLicenseIncluded', 'ElasticPoolLicenseTypeBasePrice'
	LicenseType ElasticPoolLicenseType `json:"licenseType,omitempty"`
}

ElasticPoolProperties properties of an elastic pool

type ElasticPoolState

type ElasticPoolState string

ElasticPoolState enumerates the values for elastic pool state.

const (
	// ElasticPoolStateCreating ...
	ElasticPoolStateCreating ElasticPoolState = "Creating"
	// ElasticPoolStateDisabled ...
	ElasticPoolStateDisabled ElasticPoolState = "Disabled"
	// ElasticPoolStateReady ...
	ElasticPoolStateReady ElasticPoolState = "Ready"
)

func PossibleElasticPoolStateValues

func PossibleElasticPoolStateValues() []ElasticPoolState

PossibleElasticPoolStateValues returns an array of possible values for the ElasticPoolState const type.

type ElasticPoolUpdate

type ElasticPoolUpdate struct {
	Sku *Sku `json:"sku,omitempty"`
	// ElasticPoolUpdateProperties - Resource properties.
	*ElasticPoolUpdateProperties `json:"properties,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
}

ElasticPoolUpdate an elastic pool update.

func (ElasticPoolUpdate) MarshalJSON

func (epu ElasticPoolUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ElasticPoolUpdate.

func (*ElasticPoolUpdate) UnmarshalJSON

func (epu *ElasticPoolUpdate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ElasticPoolUpdate struct.

type ElasticPoolUpdateProperties

type ElasticPoolUpdateProperties struct {
	// MaxSizeBytes - The storage limit for the database elastic pool in bytes.
	MaxSizeBytes *int64 `json:"maxSizeBytes,omitempty"`
	// PerDatabaseSettings - The per database settings for the elastic pool.
	PerDatabaseSettings *ElasticPoolPerDatabaseSettings `json:"perDatabaseSettings,omitempty"`
	// ZoneRedundant - Whether or not this elastic pool is zone redundant, which means the replicas of this elastic pool will be spread across multiple availability zones.
	ZoneRedundant *bool `json:"zoneRedundant,omitempty"`
	// LicenseType - The license type to apply for this elastic pool. Possible values include: 'ElasticPoolLicenseTypeLicenseIncluded', 'ElasticPoolLicenseTypeBasePrice'
	LicenseType ElasticPoolLicenseType `json:"licenseType,omitempty"`
}

ElasticPoolUpdateProperties properties of an elastic pool

type ElasticPoolsClient

type ElasticPoolsClient struct {
	BaseClient
}

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

func NewElasticPoolsClient

func NewElasticPoolsClient(subscriptionID string) ElasticPoolsClient

NewElasticPoolsClient creates an instance of the ElasticPoolsClient client.

func NewElasticPoolsClientWithBaseURI

func NewElasticPoolsClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolsClient

NewElasticPoolsClientWithBaseURI creates an instance of the ElasticPoolsClient client.

func (ElasticPoolsClient) CreateOrUpdate

func (client ElasticPoolsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string, parameters ElasticPool) (result ElasticPoolsCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates an elastic pool. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. elasticPoolName - the name of the elastic pool. parameters - the elastic pool parameters.

func (ElasticPoolsClient) CreateOrUpdatePreparer

func (client ElasticPoolsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string, parameters ElasticPool) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ElasticPoolsClient) CreateOrUpdateResponder

func (client ElasticPoolsClient) CreateOrUpdateResponder(resp *http.Response) (result ElasticPool, err error)

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

func (ElasticPoolsClient) CreateOrUpdateSender

func (client ElasticPoolsClient) CreateOrUpdateSender(req *http.Request) (future ElasticPoolsCreateOrUpdateFuture, err error)

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

func (ElasticPoolsClient) Delete

func (client ElasticPoolsClient) Delete(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (result ElasticPoolsDeleteFuture, err error)

Delete deletes an elastic pool. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. elasticPoolName - the name of the elastic pool.

func (ElasticPoolsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ElasticPoolsClient) DeleteResponder

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

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

func (ElasticPoolsClient) DeleteSender

func (client ElasticPoolsClient) DeleteSender(req *http.Request) (future ElasticPoolsDeleteFuture, err error)

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

func (ElasticPoolsClient) Failover

func (client ElasticPoolsClient) Failover(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (result ElasticPoolsFailoverFuture, err error)

Failover failovers 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 failover.

func (ElasticPoolsClient) FailoverPreparer

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

FailoverPreparer prepares the Failover request.

func (ElasticPoolsClient) FailoverResponder

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

FailoverResponder handles the response to the Failover request. The method always closes the http.Response Body.

func (ElasticPoolsClient) FailoverSender

func (client ElasticPoolsClient) FailoverSender(req *http.Request) (future ElasticPoolsFailoverFuture, err error)

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

func (ElasticPoolsClient) Get

func (client ElasticPoolsClient) Get(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string) (result ElasticPool, err error)

Get gets an elastic pool. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. elasticPoolName - the name of the elastic pool.

func (ElasticPoolsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ElasticPoolsClient) GetResponder

func (client ElasticPoolsClient) GetResponder(resp *http.Response) (result ElasticPool, err error)

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

func (ElasticPoolsClient) GetSender

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

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

func (ElasticPoolsClient) ListByServer

func (client ElasticPoolsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string, skip *int32) (result ElasticPoolListResultPage, err error)

ListByServer gets all elastic pools in a server. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. skip - the number of elements in the collection to skip.

func (ElasticPoolsClient) ListByServerComplete

func (client ElasticPoolsClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string, skip *int32) (result ElasticPoolListResultIterator, err error)

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

func (ElasticPoolsClient) ListByServerPreparer

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

ListByServerPreparer prepares the ListByServer request.

func (ElasticPoolsClient) ListByServerResponder

func (client ElasticPoolsClient) ListByServerResponder(resp *http.Response) (result ElasticPoolListResult, err error)

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

func (ElasticPoolsClient) ListByServerSender

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

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

func (ElasticPoolsClient) ListMetricDefinitions

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

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

func (ElasticPoolsClient) ListMetricDefinitionsPreparer

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

ListMetricDefinitionsPreparer prepares the ListMetricDefinitions request.

func (ElasticPoolsClient) ListMetricDefinitionsResponder

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

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

func (ElasticPoolsClient) ListMetricDefinitionsSender

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

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

func (ElasticPoolsClient) ListMetrics

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

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

func (ElasticPoolsClient) ListMetricsPreparer

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

ListMetricsPreparer prepares the ListMetrics request.

func (ElasticPoolsClient) ListMetricsResponder

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

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

func (ElasticPoolsClient) ListMetricsSender

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

func (client ElasticPoolsClient) Update(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string, parameters ElasticPoolUpdate) (result ElasticPoolsUpdateFuture, err error)

Update updates an elastic pool. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. elasticPoolName - the name of the elastic pool. parameters - the elastic pool update parameters.

func (ElasticPoolsClient) UpdatePreparer

func (client ElasticPoolsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string, parameters ElasticPoolUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ElasticPoolsClient) UpdateResponder

func (client ElasticPoolsClient) UpdateResponder(resp *http.Response) (result ElasticPool, err error)

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

func (ElasticPoolsClient) UpdateSender

func (client ElasticPoolsClient) UpdateSender(req *http.Request) (future ElasticPoolsUpdateFuture, err error)

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

type ElasticPoolsCreateOrUpdateFuture

type ElasticPoolsCreateOrUpdateFuture struct {
	azure.Future
}

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

func (*ElasticPoolsCreateOrUpdateFuture) Result

func (future *ElasticPoolsCreateOrUpdateFuture) Result(client ElasticPoolsClient) (ep ElasticPool, err error)

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

type ElasticPoolsDeleteFuture

type ElasticPoolsDeleteFuture struct {
	azure.Future
}

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

func (*ElasticPoolsDeleteFuture) Result

func (future *ElasticPoolsDeleteFuture) Result(client ElasticPoolsClient) (ar autorest.Response, err error)

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

type ElasticPoolsFailoverFuture

type ElasticPoolsFailoverFuture struct {
	azure.Future
}

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

func (*ElasticPoolsFailoverFuture) Result

func (future *ElasticPoolsFailoverFuture) Result(client ElasticPoolsClient) (ar autorest.Response, err error)

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

type ElasticPoolsUpdateFuture

type ElasticPoolsUpdateFuture struct {
	azure.Future
}

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

func (*ElasticPoolsUpdateFuture) Result

func (future *ElasticPoolsUpdateFuture) Result(client ElasticPoolsClient) (ep ElasticPool, err error)

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

type EncryptionProtector

type EncryptionProtector struct {
	autorest.Response `json:"-"`
	// Kind - READ-ONLY; Kind of encryption protector. This is metadata used for the Azure portal experience.
	Kind *string `json:"kind,omitempty"`
	// Location - READ-ONLY; Resource location.
	Location *string `json:"location,omitempty"`
	// EncryptionProtectorProperties - Resource properties.
	*EncryptionProtectorProperties `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"`
}

EncryptionProtector the server encryption protector.

func (EncryptionProtector) MarshalJSON

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

MarshalJSON is the custom marshaler for EncryptionProtector.

func (*EncryptionProtector) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for EncryptionProtector struct.

type EncryptionProtectorListResult

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

EncryptionProtectorListResult a list of server encryption protectors.

func (EncryptionProtectorListResult) IsEmpty

func (eplr EncryptionProtectorListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type EncryptionProtectorListResultIterator

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

EncryptionProtectorListResultIterator provides access to a complete listing of EncryptionProtector values.

func NewEncryptionProtectorListResultIterator

func NewEncryptionProtectorListResultIterator(page EncryptionProtectorListResultPage) EncryptionProtectorListResultIterator

Creates a new instance of the EncryptionProtectorListResultIterator type.

func (*EncryptionProtectorListResultIterator) Next

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 (*EncryptionProtectorListResultIterator) NextWithContext

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

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

func (EncryptionProtectorListResultIterator) Response

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

func (EncryptionProtectorListResultIterator) Value

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

type EncryptionProtectorListResultPage

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

EncryptionProtectorListResultPage contains a page of EncryptionProtector values.

func NewEncryptionProtectorListResultPage

Creates a new instance of the EncryptionProtectorListResultPage type.

func (*EncryptionProtectorListResultPage) Next

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 (*EncryptionProtectorListResultPage) NextWithContext

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

func (page EncryptionProtectorListResultPage) NotDone() bool

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

func (EncryptionProtectorListResultPage) Response

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

func (EncryptionProtectorListResultPage) Values

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

type EncryptionProtectorProperties

type EncryptionProtectorProperties struct {
	// Subregion - READ-ONLY; Subregion of the encryption protector.
	Subregion *string `json:"subregion,omitempty"`
	// ServerKeyName - The name of the server key.
	ServerKeyName *string `json:"serverKeyName,omitempty"`
	// ServerKeyType - The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: 'ServiceManaged', 'AzureKeyVault'
	ServerKeyType ServerKeyType `json:"serverKeyType,omitempty"`
	// URI - READ-ONLY; The URI of the server key.
	URI *string `json:"uri,omitempty"`
	// Thumbprint - READ-ONLY; Thumbprint of the server key.
	Thumbprint *string `json:"thumbprint,omitempty"`
}

EncryptionProtectorProperties properties for an encryption protector execution.

type EncryptionProtectorsClient

type EncryptionProtectorsClient struct {
	BaseClient
}

EncryptionProtectorsClient 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 NewEncryptionProtectorsClient

func NewEncryptionProtectorsClient(subscriptionID string) EncryptionProtectorsClient

NewEncryptionProtectorsClient creates an instance of the EncryptionProtectorsClient client.

func NewEncryptionProtectorsClientWithBaseURI

func NewEncryptionProtectorsClientWithBaseURI(baseURI string, subscriptionID string) EncryptionProtectorsClient

NewEncryptionProtectorsClientWithBaseURI creates an instance of the EncryptionProtectorsClient client.

func (EncryptionProtectorsClient) CreateOrUpdate

func (client EncryptionProtectorsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, parameters EncryptionProtector) (result EncryptionProtectorsCreateOrUpdateFuture, err error)

CreateOrUpdate updates an existing encryption protector. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. parameters - the requested encryption protector resource state.

func (EncryptionProtectorsClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (EncryptionProtectorsClient) CreateOrUpdateResponder

func (client EncryptionProtectorsClient) CreateOrUpdateResponder(resp *http.Response) (result EncryptionProtector, err error)

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

func (EncryptionProtectorsClient) CreateOrUpdateSender

func (client EncryptionProtectorsClient) CreateOrUpdateSender(req *http.Request) (future EncryptionProtectorsCreateOrUpdateFuture, err error)

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

func (EncryptionProtectorsClient) Get

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

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

func (EncryptionProtectorsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (EncryptionProtectorsClient) GetResponder

func (client EncryptionProtectorsClient) GetResponder(resp *http.Response) (result EncryptionProtector, err error)

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

func (EncryptionProtectorsClient) GetSender

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

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

ListByServer gets a list of server encryption protectors Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.

func (EncryptionProtectorsClient) ListByServerComplete

func (client EncryptionProtectorsClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result EncryptionProtectorListResultIterator, err error)

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

func (EncryptionProtectorsClient) ListByServerPreparer

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

ListByServerPreparer prepares the ListByServer request.

func (EncryptionProtectorsClient) ListByServerResponder

func (client EncryptionProtectorsClient) ListByServerResponder(resp *http.Response) (result EncryptionProtectorListResult, err error)

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

func (EncryptionProtectorsClient) ListByServerSender

func (client EncryptionProtectorsClient) 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 (EncryptionProtectorsClient) Revalidate

func (client EncryptionProtectorsClient) Revalidate(ctx context.Context, resourceGroupName string, serverName string) (result EncryptionProtectorsRevalidateFuture, err error)

Revalidate revalidates an existing encryption protector. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.

func (EncryptionProtectorsClient) RevalidatePreparer

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

RevalidatePreparer prepares the Revalidate request.

func (EncryptionProtectorsClient) RevalidateResponder

func (client EncryptionProtectorsClient) RevalidateResponder(resp *http.Response) (result autorest.Response, err error)

RevalidateResponder handles the response to the Revalidate request. The method always closes the http.Response Body.

func (EncryptionProtectorsClient) RevalidateSender

func (client EncryptionProtectorsClient) RevalidateSender(req *http.Request) (future EncryptionProtectorsRevalidateFuture, err error)

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

type EncryptionProtectorsCreateOrUpdateFuture

type EncryptionProtectorsCreateOrUpdateFuture struct {
	azure.Future
}

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

func (*EncryptionProtectorsCreateOrUpdateFuture) Result

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

type EncryptionProtectorsRevalidateFuture

type EncryptionProtectorsRevalidateFuture struct {
	azure.Future
}

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

func (*EncryptionProtectorsRevalidateFuture) Result

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

type ExportRequest

type ExportRequest struct {
	// StorageKeyType - The type of the storage key to use. Possible values include: 'StorageAccessKey', 'SharedAccessKey'
	StorageKeyType StorageKeyType `json:"storageKeyType,omitempty"`
	// StorageKey - The storage key to use.  If storage key type is SharedAccessKey, it must be preceded with a "?."
	StorageKey *string `json:"storageKey,omitempty"`
	// StorageURI - The storage uri to use.
	StorageURI *string `json:"storageUri,omitempty"`
	// AdministratorLogin - The name of the SQL administrator.
	AdministratorLogin *string `json:"administratorLogin,omitempty"`
	// AdministratorLoginPassword - The password of the SQL administrator.
	AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"`
	// AuthenticationType - The authentication type. Possible values include: 'SQL', 'ADPassword'
	AuthenticationType AuthenticationType `json:"authenticationType,omitempty"`
}

ExportRequest export database parameters.

type ExtendedDatabaseBlobAuditingPoliciesClient

type ExtendedDatabaseBlobAuditingPoliciesClient struct {
	BaseClient
}

ExtendedDatabaseBlobAuditingPoliciesClient 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 NewExtendedDatabaseBlobAuditingPoliciesClient

func NewExtendedDatabaseBlobAuditingPoliciesClient(subscriptionID string) ExtendedDatabaseBlobAuditingPoliciesClient

NewExtendedDatabaseBlobAuditingPoliciesClient creates an instance of the ExtendedDatabaseBlobAuditingPoliciesClient client.

func NewExtendedDatabaseBlobAuditingPoliciesClientWithBaseURI

func NewExtendedDatabaseBlobAuditingPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ExtendedDatabaseBlobAuditingPoliciesClient

NewExtendedDatabaseBlobAuditingPoliciesClientWithBaseURI creates an instance of the ExtendedDatabaseBlobAuditingPoliciesClient client.

func (ExtendedDatabaseBlobAuditingPoliciesClient) CreateOrUpdate

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

CreateOrUpdate creates or updates an extended 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 extended database blob auditing policy.

func (ExtendedDatabaseBlobAuditingPoliciesClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ExtendedDatabaseBlobAuditingPoliciesClient) CreateOrUpdateResponder

func (client ExtendedDatabaseBlobAuditingPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result ExtendedDatabaseBlobAuditingPolicy, err error)

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

func (ExtendedDatabaseBlobAuditingPoliciesClient) CreateOrUpdateSender

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

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

Get gets an extended 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 (ExtendedDatabaseBlobAuditingPoliciesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ExtendedDatabaseBlobAuditingPoliciesClient) GetResponder

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

func (ExtendedDatabaseBlobAuditingPoliciesClient) GetSender

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

type ExtendedDatabaseBlobAuditingPolicy

type ExtendedDatabaseBlobAuditingPolicy struct {
	autorest.Response `json:"-"`
	// ExtendedDatabaseBlobAuditingPolicyProperties - Resource properties.
	*ExtendedDatabaseBlobAuditingPolicyProperties `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"`
}

ExtendedDatabaseBlobAuditingPolicy an extended database blob auditing policy.

func (ExtendedDatabaseBlobAuditingPolicy) MarshalJSON

func (edbap ExtendedDatabaseBlobAuditingPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ExtendedDatabaseBlobAuditingPolicy.

func (*ExtendedDatabaseBlobAuditingPolicy) UnmarshalJSON

func (edbap *ExtendedDatabaseBlobAuditingPolicy) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ExtendedDatabaseBlobAuditingPolicy struct.

type ExtendedDatabaseBlobAuditingPolicyProperties

type ExtendedDatabaseBlobAuditingPolicyProperties struct {
	// PredicateExpression - Specifies condition of where clause when creating an audit.
	PredicateExpression *string `json:"predicateExpression,omitempty"`
	// 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"`
}

ExtendedDatabaseBlobAuditingPolicyProperties properties of an extended database blob auditing policy.

type ExtendedServerBlobAuditingPoliciesClient

type ExtendedServerBlobAuditingPoliciesClient struct {
	BaseClient
}

ExtendedServerBlobAuditingPoliciesClient 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 NewExtendedServerBlobAuditingPoliciesClient

func NewExtendedServerBlobAuditingPoliciesClient(subscriptionID string) ExtendedServerBlobAuditingPoliciesClient

NewExtendedServerBlobAuditingPoliciesClient creates an instance of the ExtendedServerBlobAuditingPoliciesClient client.

func NewExtendedServerBlobAuditingPoliciesClientWithBaseURI

func NewExtendedServerBlobAuditingPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ExtendedServerBlobAuditingPoliciesClient

NewExtendedServerBlobAuditingPoliciesClientWithBaseURI creates an instance of the ExtendedServerBlobAuditingPoliciesClient client.

func (ExtendedServerBlobAuditingPoliciesClient) CreateOrUpdate

CreateOrUpdate creates or updates an extended server'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. parameters - properties of extended blob auditing policy

func (ExtendedServerBlobAuditingPoliciesClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ExtendedServerBlobAuditingPoliciesClient) CreateOrUpdateResponder

func (client ExtendedServerBlobAuditingPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result ExtendedServerBlobAuditingPolicy, err error)

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

func (ExtendedServerBlobAuditingPoliciesClient) CreateOrUpdateSender

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

func (ExtendedServerBlobAuditingPoliciesClient) Get

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

Get gets an extended server'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.

func (ExtendedServerBlobAuditingPoliciesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ExtendedServerBlobAuditingPoliciesClient) GetResponder

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

func (ExtendedServerBlobAuditingPoliciesClient) GetSender

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

type ExtendedServerBlobAuditingPoliciesCreateOrUpdateFuture

type ExtendedServerBlobAuditingPoliciesCreateOrUpdateFuture struct {
	azure.Future
}

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

func (*ExtendedServerBlobAuditingPoliciesCreateOrUpdateFuture) Result

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

type ExtendedServerBlobAuditingPolicy

type ExtendedServerBlobAuditingPolicy struct {
	autorest.Response `json:"-"`
	// ExtendedServerBlobAuditingPolicyProperties - Resource properties.
	*ExtendedServerBlobAuditingPolicyProperties `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"`
}

ExtendedServerBlobAuditingPolicy an extended server blob auditing policy.

func (ExtendedServerBlobAuditingPolicy) MarshalJSON

func (esbap ExtendedServerBlobAuditingPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ExtendedServerBlobAuditingPolicy.

func (*ExtendedServerBlobAuditingPolicy) UnmarshalJSON

func (esbap *ExtendedServerBlobAuditingPolicy) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ExtendedServerBlobAuditingPolicy struct.

type ExtendedServerBlobAuditingPolicyProperties

type ExtendedServerBlobAuditingPolicyProperties struct {
	// PredicateExpression - Specifies condition of where clause when creating an audit.
	PredicateExpression *string `json:"predicateExpression,omitempty"`
	// 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"`
}

ExtendedServerBlobAuditingPolicyProperties properties of an extended server blob auditing policy.

type FailoverGroup

type FailoverGroup struct {
	autorest.Response `json:"-"`
	// Location - READ-ONLY; Resource location.
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// FailoverGroupProperties - Resource properties.
	*FailoverGroupProperties `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"`
}

FailoverGroup a failover group.

func (FailoverGroup) MarshalJSON

func (fg FailoverGroup) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for FailoverGroup.

func (*FailoverGroup) UnmarshalJSON

func (fg *FailoverGroup) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for FailoverGroup struct.

type FailoverGroupListResult

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

FailoverGroupListResult a list of failover groups.

func (FailoverGroupListResult) IsEmpty

func (fglr FailoverGroupListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type FailoverGroupListResultIterator

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

FailoverGroupListResultIterator provides access to a complete listing of FailoverGroup values.

func NewFailoverGroupListResultIterator

func NewFailoverGroupListResultIterator(page FailoverGroupListResultPage) FailoverGroupListResultIterator

Creates a new instance of the FailoverGroupListResultIterator type.

func (*FailoverGroupListResultIterator) Next

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 (*FailoverGroupListResultIterator) NextWithContext

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

func (iter FailoverGroupListResultIterator) NotDone() bool

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

func (FailoverGroupListResultIterator) Response

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

func (FailoverGroupListResultIterator) Value

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

type FailoverGroupListResultPage

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

FailoverGroupListResultPage contains a page of FailoverGroup values.

func NewFailoverGroupListResultPage

func NewFailoverGroupListResultPage(getNextPage func(context.Context, FailoverGroupListResult) (FailoverGroupListResult, error)) FailoverGroupListResultPage

Creates a new instance of the FailoverGroupListResultPage type.

func (*FailoverGroupListResultPage) Next

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

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

func (page FailoverGroupListResultPage) NotDone() bool

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

func (FailoverGroupListResultPage) Response

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

func (FailoverGroupListResultPage) Values

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

type FailoverGroupProperties

type FailoverGroupProperties struct {
	// ReadWriteEndpoint - Read-write endpoint of the failover group instance.
	ReadWriteEndpoint *FailoverGroupReadWriteEndpoint `json:"readWriteEndpoint,omitempty"`
	// ReadOnlyEndpoint - Read-only endpoint of the failover group instance.
	ReadOnlyEndpoint *FailoverGroupReadOnlyEndpoint `json:"readOnlyEndpoint,omitempty"`
	// ReplicationRole - READ-ONLY; Local replication role of the failover group instance. Possible values include: 'Primary', 'Secondary'
	ReplicationRole FailoverGroupReplicationRole `json:"replicationRole,omitempty"`
	// ReplicationState - READ-ONLY; Replication state of the failover group instance.
	ReplicationState *string `json:"replicationState,omitempty"`
	// PartnerServers - List of partner server information for the failover group.
	PartnerServers *[]PartnerInfo `json:"partnerServers,omitempty"`
	// Databases - List of databases in the failover group.
	Databases *[]string `json:"databases,omitempty"`
}

FailoverGroupProperties properties of a failover group.

type FailoverGroupReadOnlyEndpoint

type FailoverGroupReadOnlyEndpoint struct {
	// FailoverPolicy - Failover policy of the read-only endpoint for the failover group. Possible values include: 'ReadOnlyEndpointFailoverPolicyDisabled', 'ReadOnlyEndpointFailoverPolicyEnabled'
	FailoverPolicy ReadOnlyEndpointFailoverPolicy `json:"failoverPolicy,omitempty"`
}

FailoverGroupReadOnlyEndpoint read-only endpoint of the failover group instance.

type FailoverGroupReadWriteEndpoint

type FailoverGroupReadWriteEndpoint struct {
	// FailoverPolicy - Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. Possible values include: 'Manual', 'Automatic'
	FailoverPolicy ReadWriteEndpointFailoverPolicy `json:"failoverPolicy,omitempty"`
	// FailoverWithDataLossGracePeriodMinutes - Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
	FailoverWithDataLossGracePeriodMinutes *int32 `json:"failoverWithDataLossGracePeriodMinutes,omitempty"`
}

FailoverGroupReadWriteEndpoint read-write endpoint of the failover group instance.

type FailoverGroupReplicationRole

type FailoverGroupReplicationRole string

FailoverGroupReplicationRole enumerates the values for failover group replication role.

const (
	// Primary ...
	Primary FailoverGroupReplicationRole = "Primary"
	// Secondary ...
	Secondary FailoverGroupReplicationRole = "Secondary"
)

func PossibleFailoverGroupReplicationRoleValues

func PossibleFailoverGroupReplicationRoleValues() []FailoverGroupReplicationRole

PossibleFailoverGroupReplicationRoleValues returns an array of possible values for the FailoverGroupReplicationRole const type.

type FailoverGroupUpdate

type FailoverGroupUpdate struct {
	// FailoverGroupUpdateProperties - Resource properties.
	*FailoverGroupUpdateProperties `json:"properties,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
}

FailoverGroupUpdate a failover group update request.

func (FailoverGroupUpdate) MarshalJSON

func (fgu FailoverGroupUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for FailoverGroupUpdate.

func (*FailoverGroupUpdate) UnmarshalJSON

func (fgu *FailoverGroupUpdate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for FailoverGroupUpdate struct.

type FailoverGroupUpdateProperties

type FailoverGroupUpdateProperties struct {
	// ReadWriteEndpoint - Read-write endpoint of the failover group instance.
	ReadWriteEndpoint *FailoverGroupReadWriteEndpoint `json:"readWriteEndpoint,omitempty"`
	// ReadOnlyEndpoint - Read-only endpoint of the failover group instance.
	ReadOnlyEndpoint *FailoverGroupReadOnlyEndpoint `json:"readOnlyEndpoint,omitempty"`
	// Databases - List of databases in the failover group.
	Databases *[]string `json:"databases,omitempty"`
}

FailoverGroupUpdateProperties properties of a failover group update.

type FailoverGroupsClient

type FailoverGroupsClient struct {
	BaseClient
}

FailoverGroupsClient 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 NewFailoverGroupsClient

func NewFailoverGroupsClient(subscriptionID string) FailoverGroupsClient

NewFailoverGroupsClient creates an instance of the FailoverGroupsClient client.

func NewFailoverGroupsClientWithBaseURI

func NewFailoverGroupsClientWithBaseURI(baseURI string, subscriptionID string) FailoverGroupsClient

NewFailoverGroupsClientWithBaseURI creates an instance of the FailoverGroupsClient client.

func (FailoverGroupsClient) CreateOrUpdate

func (client FailoverGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, failoverGroupName string, parameters FailoverGroup) (result FailoverGroupsCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates a failover group. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server containing the failover group. failoverGroupName - the name of the failover group. parameters - the failover group parameters.

func (FailoverGroupsClient) CreateOrUpdatePreparer

func (client FailoverGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, failoverGroupName string, parameters FailoverGroup) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (FailoverGroupsClient) CreateOrUpdateResponder

func (client FailoverGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result FailoverGroup, err error)

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

func (FailoverGroupsClient) CreateOrUpdateSender

func (client FailoverGroupsClient) CreateOrUpdateSender(req *http.Request) (future FailoverGroupsCreateOrUpdateFuture, err error)

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

func (FailoverGroupsClient) Delete

func (client FailoverGroupsClient) Delete(ctx context.Context, resourceGroupName string, serverName string, failoverGroupName string) (result FailoverGroupsDeleteFuture, err error)

Delete deletes a failover group. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server containing the failover group. failoverGroupName - the name of the failover group.

func (FailoverGroupsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (FailoverGroupsClient) DeleteResponder

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

func (client FailoverGroupsClient) DeleteSender(req *http.Request) (future FailoverGroupsDeleteFuture, err error)

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

func (FailoverGroupsClient) Failover

func (client FailoverGroupsClient) Failover(ctx context.Context, resourceGroupName string, serverName string, failoverGroupName string) (result FailoverGroupsFailoverFuture, err error)

Failover fails over from the current primary server to this server. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server containing the failover group. failoverGroupName - the name of the failover group.

func (FailoverGroupsClient) FailoverPreparer

func (client FailoverGroupsClient) FailoverPreparer(ctx context.Context, resourceGroupName string, serverName string, failoverGroupName string) (*http.Request, error)

FailoverPreparer prepares the Failover request.

func (FailoverGroupsClient) FailoverResponder

func (client FailoverGroupsClient) FailoverResponder(resp *http.Response) (result FailoverGroup, err error)

FailoverResponder handles the response to the Failover request. The method always closes the http.Response Body.

func (FailoverGroupsClient) FailoverSender

func (client FailoverGroupsClient) FailoverSender(req *http.Request) (future FailoverGroupsFailoverFuture, err error)

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

func (FailoverGroupsClient) ForceFailoverAllowDataLoss

func (client FailoverGroupsClient) ForceFailoverAllowDataLoss(ctx context.Context, resourceGroupName string, serverName string, failoverGroupName string) (result FailoverGroupsForceFailoverAllowDataLossFuture, err error)

ForceFailoverAllowDataLoss fails over from the current primary server to this server. This operation might result in data loss. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server containing the failover group. failoverGroupName - the name of the failover group.

func (FailoverGroupsClient) ForceFailoverAllowDataLossPreparer

func (client FailoverGroupsClient) ForceFailoverAllowDataLossPreparer(ctx context.Context, resourceGroupName string, serverName string, failoverGroupName string) (*http.Request, error)

ForceFailoverAllowDataLossPreparer prepares the ForceFailoverAllowDataLoss request.

func (FailoverGroupsClient) ForceFailoverAllowDataLossResponder

func (client FailoverGroupsClient) ForceFailoverAllowDataLossResponder(resp *http.Response) (result FailoverGroup, err error)

ForceFailoverAllowDataLossResponder handles the response to the ForceFailoverAllowDataLoss request. The method always closes the http.Response Body.

func (FailoverGroupsClient) ForceFailoverAllowDataLossSender

func (client FailoverGroupsClient) ForceFailoverAllowDataLossSender(req *http.Request) (future FailoverGroupsForceFailoverAllowDataLossFuture, err error)

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

func (FailoverGroupsClient) Get

func (client FailoverGroupsClient) Get(ctx context.Context, resourceGroupName string, serverName string, failoverGroupName string) (result FailoverGroup, err error)

Get gets a failover group. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server containing the failover group. failoverGroupName - the name of the failover group.

func (FailoverGroupsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (FailoverGroupsClient) GetResponder

func (client FailoverGroupsClient) GetResponder(resp *http.Response) (result FailoverGroup, err error)

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

func (FailoverGroupsClient) GetSender

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

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

ListByServer lists the failover groups 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 containing the failover group.

func (FailoverGroupsClient) ListByServerComplete

func (client FailoverGroupsClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result FailoverGroupListResultIterator, err error)

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

func (FailoverGroupsClient) ListByServerPreparer

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

ListByServerPreparer prepares the ListByServer request.

func (FailoverGroupsClient) ListByServerResponder

func (client FailoverGroupsClient) ListByServerResponder(resp *http.Response) (result FailoverGroupListResult, err error)

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

func (FailoverGroupsClient) ListByServerSender

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

func (client FailoverGroupsClient) Update(ctx context.Context, resourceGroupName string, serverName string, failoverGroupName string, parameters FailoverGroupUpdate) (result FailoverGroupsUpdateFuture, err error)

Update updates a failover group. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server containing the failover group. failoverGroupName - the name of the failover group. parameters - the failover group parameters.

func (FailoverGroupsClient) UpdatePreparer

func (client FailoverGroupsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, failoverGroupName string, parameters FailoverGroupUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (FailoverGroupsClient) UpdateResponder

func (client FailoverGroupsClient) UpdateResponder(resp *http.Response) (result FailoverGroup, err error)

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

func (FailoverGroupsClient) UpdateSender

func (client FailoverGroupsClient) UpdateSender(req *http.Request) (future FailoverGroupsUpdateFuture, err error)

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

type FailoverGroupsCreateOrUpdateFuture

type FailoverGroupsCreateOrUpdateFuture struct {
	azure.Future
}

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

func (*FailoverGroupsCreateOrUpdateFuture) Result

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

type FailoverGroupsDeleteFuture

type FailoverGroupsDeleteFuture struct {
	azure.Future
}

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

func (*FailoverGroupsDeleteFuture) Result

func (future *FailoverGroupsDeleteFuture) Result(client FailoverGroupsClient) (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 FailoverGroupsFailoverFuture

type FailoverGroupsFailoverFuture struct {
	azure.Future
}

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

func (*FailoverGroupsFailoverFuture) Result

func (future *FailoverGroupsFailoverFuture) Result(client FailoverGroupsClient) (fg FailoverGroup, err error)

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

type FailoverGroupsForceFailoverAllowDataLossFuture

type FailoverGroupsForceFailoverAllowDataLossFuture struct {
	azure.Future
}

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

func (*FailoverGroupsForceFailoverAllowDataLossFuture) Result

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

type FailoverGroupsUpdateFuture

type FailoverGroupsUpdateFuture struct {
	azure.Future
}

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

func (*FailoverGroupsUpdateFuture) Result

func (future *FailoverGroupsUpdateFuture) Result(client FailoverGroupsClient) (fg FailoverGroup, err error)

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

type FirewallRule

type FirewallRule struct {
	autorest.Response `json:"-"`
	// Kind - READ-ONLY; Kind of server that contains this firewall rule.
	Kind *string `json:"kind,omitempty"`
	// Location - READ-ONLY; Location of the server that contains this firewall rule.
	Location *string `json:"location,omitempty"`
	// FirewallRuleProperties - The properties representing the resource.
	*FirewallRuleProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

FirewallRule represents a server firewall rule.

func (FirewallRule) MarshalJSON

func (fr FirewallRule) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for FirewallRule.

func (*FirewallRule) UnmarshalJSON

func (fr *FirewallRule) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for FirewallRule struct.

type FirewallRuleListResult

type FirewallRuleListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of server firewall rules.
	Value *[]FirewallRule `json:"value,omitempty"`
}

FirewallRuleListResult represents the response to a List Firewall Rules request.

type FirewallRuleProperties

type FirewallRuleProperties struct {
	// StartIPAddress - The start IP address of the firewall rule. Must be IPv4 format. Use value '0.0.0.0' to represent all Azure-internal IP addresses.
	StartIPAddress *string `json:"startIpAddress,omitempty"`
	// EndIPAddress - The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to startIpAddress. Use value '0.0.0.0' to represent all Azure-internal IP addresses.
	EndIPAddress *string `json:"endIpAddress,omitempty"`
}

FirewallRuleProperties represents the properties of a server firewall rule.

type FirewallRulesClient

type FirewallRulesClient struct {
	BaseClient
}

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

func NewFirewallRulesClient

func NewFirewallRulesClient(subscriptionID string) FirewallRulesClient

NewFirewallRulesClient creates an instance of the FirewallRulesClient client.

func NewFirewallRulesClientWithBaseURI

func NewFirewallRulesClientWithBaseURI(baseURI string, subscriptionID string) FirewallRulesClient

NewFirewallRulesClientWithBaseURI creates an instance of the FirewallRulesClient client.

func (FirewallRulesClient) CreateOrUpdate

func (client FirewallRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string, parameters FirewallRule) (result FirewallRule, err error)

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

func (FirewallRulesClient) CreateOrUpdatePreparer

func (client FirewallRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string, parameters FirewallRule) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (FirewallRulesClient) CreateOrUpdateResponder

func (client FirewallRulesClient) CreateOrUpdateResponder(resp *http.Response) (result FirewallRule, err error)

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

func (FirewallRulesClient) CreateOrUpdateSender

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

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

func (FirewallRulesClient) Delete

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

Delete deletes a firewall rule. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. firewallRuleName - the name of the firewall rule.

func (FirewallRulesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (FirewallRulesClient) DeleteResponder

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

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

func (FirewallRulesClient) DeleteSender

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

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

func (FirewallRulesClient) Get

func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (result FirewallRule, err error)

Get gets a firewall rule. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. firewallRuleName - the name of the firewall rule.

func (FirewallRulesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (FirewallRulesClient) GetResponder

func (client FirewallRulesClient) GetResponder(resp *http.Response) (result FirewallRule, err error)

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

func (FirewallRulesClient) GetSender

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

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

func (FirewallRulesClient) ListByServer

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

ListByServer returns a list of firewall rules. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.

func (FirewallRulesClient) ListByServerPreparer

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

ListByServerPreparer prepares the ListByServer request.

func (FirewallRulesClient) ListByServerResponder

func (client FirewallRulesClient) ListByServerResponder(resp *http.Response) (result FirewallRuleListResult, err error)

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

func (FirewallRulesClient) ListByServerSender

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

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

type GeoBackupPoliciesClient

type GeoBackupPoliciesClient struct {
	BaseClient
}

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

func NewGeoBackupPoliciesClient

func NewGeoBackupPoliciesClient(subscriptionID string) GeoBackupPoliciesClient

NewGeoBackupPoliciesClient creates an instance of the GeoBackupPoliciesClient client.

func NewGeoBackupPoliciesClientWithBaseURI

func NewGeoBackupPoliciesClientWithBaseURI(baseURI string, subscriptionID string) GeoBackupPoliciesClient

NewGeoBackupPoliciesClientWithBaseURI creates an instance of the GeoBackupPoliciesClient client.

func (GeoBackupPoliciesClient) CreateOrUpdate

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

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

func (GeoBackupPoliciesClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (GeoBackupPoliciesClient) CreateOrUpdateResponder

func (client GeoBackupPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result GeoBackupPolicy, err error)

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

func (GeoBackupPoliciesClient) CreateOrUpdateSender

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

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

func (GeoBackupPoliciesClient) Get

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

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

func (GeoBackupPoliciesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (GeoBackupPoliciesClient) GetResponder

func (client GeoBackupPoliciesClient) GetResponder(resp *http.Response) (result GeoBackupPolicy, err error)

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

func (GeoBackupPoliciesClient) GetSender

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

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

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

func (GeoBackupPoliciesClient) ListByDatabasePreparer

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (GeoBackupPoliciesClient) ListByDatabaseResponder

func (client GeoBackupPoliciesClient) ListByDatabaseResponder(resp *http.Response) (result GeoBackupPolicyListResult, err error)

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

func (GeoBackupPoliciesClient) ListByDatabaseSender

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

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

type GeoBackupPolicy

type GeoBackupPolicy struct {
	autorest.Response `json:"-"`
	// GeoBackupPolicyProperties - The properties of the geo backup policy.
	*GeoBackupPolicyProperties `json:"properties,omitempty"`
	// Kind - READ-ONLY; Kind of geo backup policy.  This is metadata used for the Azure portal experience.
	Kind *string `json:"kind,omitempty"`
	// Location - READ-ONLY; Backup policy location.
	Location *string `json:"location,omitempty"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

GeoBackupPolicy a database geo backup policy.

func (GeoBackupPolicy) MarshalJSON

func (gbp GeoBackupPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for GeoBackupPolicy.

func (*GeoBackupPolicy) UnmarshalJSON

func (gbp *GeoBackupPolicy) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for GeoBackupPolicy struct.

type GeoBackupPolicyListResult

type GeoBackupPolicyListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of geo backup policies.
	Value *[]GeoBackupPolicy `json:"value,omitempty"`
}

GeoBackupPolicyListResult the response to a list geo backup policies request.

type GeoBackupPolicyProperties

type GeoBackupPolicyProperties struct {
	// State - The state of the geo backup policy. Possible values include: 'GeoBackupPolicyStateDisabled', 'GeoBackupPolicyStateEnabled'
	State GeoBackupPolicyState `json:"state,omitempty"`
	// StorageType - READ-ONLY; The storage type of the geo backup policy.
	StorageType *string `json:"storageType,omitempty"`
}

GeoBackupPolicyProperties the properties of the geo backup policy.

type GeoBackupPolicyState

type GeoBackupPolicyState string

GeoBackupPolicyState enumerates the values for geo backup policy state.

const (
	// GeoBackupPolicyStateDisabled ...
	GeoBackupPolicyStateDisabled GeoBackupPolicyState = "Disabled"
	// GeoBackupPolicyStateEnabled ...
	GeoBackupPolicyStateEnabled GeoBackupPolicyState = "Enabled"
)

func PossibleGeoBackupPolicyStateValues

func PossibleGeoBackupPolicyStateValues() []GeoBackupPolicyState

PossibleGeoBackupPolicyStateValues returns an array of possible values for the GeoBackupPolicyState const type.

type IdentityType

type IdentityType string

IdentityType enumerates the values for identity type.

const (
	// SystemAssigned ...
	SystemAssigned IdentityType = "SystemAssigned"
)

func PossibleIdentityTypeValues

func PossibleIdentityTypeValues() []IdentityType

PossibleIdentityTypeValues returns an array of possible values for the IdentityType const type.

type ImportExportResponse

type ImportExportResponse struct {
	autorest.Response `json:"-"`
	// ImportExportResponseProperties - The import/export operation properties.
	*ImportExportResponseProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

ImportExportResponse response for Import/Export Get operation.

func (ImportExportResponse) MarshalJSON

func (ier ImportExportResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImportExportResponse.

func (*ImportExportResponse) UnmarshalJSON

func (ier *ImportExportResponse) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ImportExportResponse struct.

type ImportExportResponseProperties

type ImportExportResponseProperties struct {
	// RequestType - READ-ONLY; The request type of the operation.
	RequestType *string `json:"requestType,omitempty"`
	// RequestID - READ-ONLY; The request type of the operation.
	RequestID *uuid.UUID `json:"requestId,omitempty"`
	// ServerName - READ-ONLY; The name of the server.
	ServerName *string `json:"serverName,omitempty"`
	// DatabaseName - READ-ONLY; The name of the database.
	DatabaseName *string `json:"databaseName,omitempty"`
	// Status - READ-ONLY; The status message returned from the server.
	Status *string `json:"status,omitempty"`
	// LastModifiedTime - READ-ONLY; The operation status last modified time.
	LastModifiedTime *string `json:"lastModifiedTime,omitempty"`
	// QueuedTime - READ-ONLY; The operation queued time.
	QueuedTime *string `json:"queuedTime,omitempty"`
	// BlobURI - READ-ONLY; The blob uri.
	BlobURI *string `json:"blobUri,omitempty"`
	// ErrorMessage - READ-ONLY; The error message returned from the server.
	ErrorMessage *string `json:"errorMessage,omitempty"`
}

ImportExportResponseProperties response for Import/Export Status operation.

type ImportExtensionProperties

type ImportExtensionProperties struct {
	// OperationMode - The type of import operation being performed. This is always Import.
	OperationMode *string `json:"operationMode,omitempty"`
	// StorageKeyType - The type of the storage key to use. Possible values include: 'StorageAccessKey', 'SharedAccessKey'
	StorageKeyType StorageKeyType `json:"storageKeyType,omitempty"`
	// StorageKey - The storage key to use.  If storage key type is SharedAccessKey, it must be preceded with a "?."
	StorageKey *string `json:"storageKey,omitempty"`
	// StorageURI - The storage uri to use.
	StorageURI *string `json:"storageUri,omitempty"`
	// AdministratorLogin - The name of the SQL administrator.
	AdministratorLogin *string `json:"administratorLogin,omitempty"`
	// AdministratorLoginPassword - The password of the SQL administrator.
	AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"`
	// AuthenticationType - The authentication type. Possible values include: 'SQL', 'ADPassword'
	AuthenticationType AuthenticationType `json:"authenticationType,omitempty"`
}

ImportExtensionProperties represents the properties for an import operation

type ImportExtensionRequest

type ImportExtensionRequest struct {
	// Name - The name of the extension.
	Name *string `json:"name,omitempty"`
	// Type - The type of the extension.
	Type *string `json:"type,omitempty"`
	// ImportExtensionProperties - Represents the properties of the resource.
	*ImportExtensionProperties `json:"properties,omitempty"`
}

ImportExtensionRequest import database parameters.

func (ImportExtensionRequest) MarshalJSON

func (ier ImportExtensionRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImportExtensionRequest.

func (*ImportExtensionRequest) UnmarshalJSON

func (ier *ImportExtensionRequest) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ImportExtensionRequest struct.

type ImportRequest

type ImportRequest struct {
	// DatabaseName - The name of the database to import.
	DatabaseName *string `json:"databaseName,omitempty"`
	// Edition - The edition for the database being created.
	//
	// The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands:
	//
	// “`azurecli
	// az sql db list-editions -l <location> -o table
	// ““
	//
	// “`powershell
	// Get-AzSqlServerServiceObjective -Location <location>
	// ““
	// . Possible values include: 'Web', 'Business', 'Basic', 'Standard', 'Premium', 'PremiumRS', 'Free', 'Stretch', 'DataWarehouse', 'System', 'System2', 'GeneralPurpose', 'BusinessCritical', 'Hyperscale'
	Edition DatabaseEdition `json:"edition,omitempty"`
	// ServiceObjectiveName - The name of the service objective to assign to the database. Possible values include: 'ServiceObjectiveNameSystem', 'ServiceObjectiveNameSystem0', 'ServiceObjectiveNameSystem1', 'ServiceObjectiveNameSystem2', 'ServiceObjectiveNameSystem3', 'ServiceObjectiveNameSystem4', 'ServiceObjectiveNameSystem2L', 'ServiceObjectiveNameSystem3L', 'ServiceObjectiveNameSystem4L', 'ServiceObjectiveNameFree', 'ServiceObjectiveNameBasic', 'ServiceObjectiveNameS0', 'ServiceObjectiveNameS1', 'ServiceObjectiveNameS2', 'ServiceObjectiveNameS3', 'ServiceObjectiveNameS4', 'ServiceObjectiveNameS6', 'ServiceObjectiveNameS7', 'ServiceObjectiveNameS9', 'ServiceObjectiveNameS12', 'ServiceObjectiveNameP1', 'ServiceObjectiveNameP2', 'ServiceObjectiveNameP3', 'ServiceObjectiveNameP4', 'ServiceObjectiveNameP6', 'ServiceObjectiveNameP11', 'ServiceObjectiveNameP15', 'ServiceObjectiveNamePRS1', 'ServiceObjectiveNamePRS2', 'ServiceObjectiveNamePRS4', 'ServiceObjectiveNamePRS6', 'ServiceObjectiveNameDW100', 'ServiceObjectiveNameDW200', 'ServiceObjectiveNameDW300', 'ServiceObjectiveNameDW400', 'ServiceObjectiveNameDW500', 'ServiceObjectiveNameDW600', 'ServiceObjectiveNameDW1000', 'ServiceObjectiveNameDW1200', 'ServiceObjectiveNameDW1000c', 'ServiceObjectiveNameDW1500', 'ServiceObjectiveNameDW1500c', 'ServiceObjectiveNameDW2000', 'ServiceObjectiveNameDW2000c', 'ServiceObjectiveNameDW3000', 'ServiceObjectiveNameDW2500c', 'ServiceObjectiveNameDW3000c', 'ServiceObjectiveNameDW6000', 'ServiceObjectiveNameDW5000c', 'ServiceObjectiveNameDW6000c', 'ServiceObjectiveNameDW7500c', 'ServiceObjectiveNameDW10000c', 'ServiceObjectiveNameDW15000c', 'ServiceObjectiveNameDW30000c', 'ServiceObjectiveNameDS100', 'ServiceObjectiveNameDS200', 'ServiceObjectiveNameDS300', 'ServiceObjectiveNameDS400', 'ServiceObjectiveNameDS500', 'ServiceObjectiveNameDS600', 'ServiceObjectiveNameDS1000', 'ServiceObjectiveNameDS1200', 'ServiceObjectiveNameDS1500', 'ServiceObjectiveNameDS2000', 'ServiceObjectiveNameElasticPool'
	ServiceObjectiveName ServiceObjectiveName `json:"serviceObjectiveName,omitempty"`
	// MaxSizeBytes - The maximum size for the newly imported database.
	MaxSizeBytes *string `json:"maxSizeBytes,omitempty"`
	// StorageKeyType - The type of the storage key to use. Possible values include: 'StorageAccessKey', 'SharedAccessKey'
	StorageKeyType StorageKeyType `json:"storageKeyType,omitempty"`
	// StorageKey - The storage key to use.  If storage key type is SharedAccessKey, it must be preceded with a "?."
	StorageKey *string `json:"storageKey,omitempty"`
	// StorageURI - The storage uri to use.
	StorageURI *string `json:"storageUri,omitempty"`
	// AdministratorLogin - The name of the SQL administrator.
	AdministratorLogin *string `json:"administratorLogin,omitempty"`
	// AdministratorLoginPassword - The password of the SQL administrator.
	AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"`
	// AuthenticationType - The authentication type. Possible values include: 'SQL', 'ADPassword'
	AuthenticationType AuthenticationType `json:"authenticationType,omitempty"`
}

ImportRequest import database parameters.

type InstanceFailoverGroup

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

InstanceFailoverGroup an instance failover group.

func (InstanceFailoverGroup) MarshalJSON

func (ifg InstanceFailoverGroup) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for InstanceFailoverGroup.

func (*InstanceFailoverGroup) UnmarshalJSON

func (ifg *InstanceFailoverGroup) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for InstanceFailoverGroup struct.

type InstanceFailoverGroupListResult

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

InstanceFailoverGroupListResult a list of instance failover groups.

func (InstanceFailoverGroupListResult) IsEmpty

func (ifglr InstanceFailoverGroupListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type InstanceFailoverGroupListResultIterator

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

InstanceFailoverGroupListResultIterator provides access to a complete listing of InstanceFailoverGroup values.

func NewInstanceFailoverGroupListResultIterator

func NewInstanceFailoverGroupListResultIterator(page InstanceFailoverGroupListResultPage) InstanceFailoverGroupListResultIterator

Creates a new instance of the InstanceFailoverGroupListResultIterator type.

func (*InstanceFailoverGroupListResultIterator) Next

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

func (*InstanceFailoverGroupListResultIterator) NextWithContext

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

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

func (InstanceFailoverGroupListResultIterator) NotDone

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

func (InstanceFailoverGroupListResultIterator) Response

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

func (InstanceFailoverGroupListResultIterator) Value

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

type InstanceFailoverGroupListResultPage

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

InstanceFailoverGroupListResultPage contains a page of InstanceFailoverGroup values.

func NewInstanceFailoverGroupListResultPage

Creates a new instance of the InstanceFailoverGroupListResultPage type.

func (*InstanceFailoverGroupListResultPage) Next

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

func (*InstanceFailoverGroupListResultPage) NextWithContext

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

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

func (InstanceFailoverGroupListResultPage) NotDone

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

func (InstanceFailoverGroupListResultPage) Response

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

func (InstanceFailoverGroupListResultPage) Values

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

type InstanceFailoverGroupProperties

type InstanceFailoverGroupProperties struct {
	// ReadWriteEndpoint - Read-write endpoint of the failover group instance.
	ReadWriteEndpoint *InstanceFailoverGroupReadWriteEndpoint `json:"readWriteEndpoint,omitempty"`
	// ReadOnlyEndpoint - Read-only endpoint of the failover group instance.
	ReadOnlyEndpoint *InstanceFailoverGroupReadOnlyEndpoint `json:"readOnlyEndpoint,omitempty"`
	// ReplicationRole - READ-ONLY; Local replication role of the failover group instance. Possible values include: 'InstanceFailoverGroupReplicationRolePrimary', 'InstanceFailoverGroupReplicationRoleSecondary'
	ReplicationRole InstanceFailoverGroupReplicationRole `json:"replicationRole,omitempty"`
	// ReplicationState - READ-ONLY; Replication state of the failover group instance.
	ReplicationState *string `json:"replicationState,omitempty"`
	// PartnerRegions - Partner region information for the failover group.
	PartnerRegions *[]PartnerRegionInfo `json:"partnerRegions,omitempty"`
	// ManagedInstancePairs - List of managed instance pairs in the failover group.
	ManagedInstancePairs *[]ManagedInstancePairInfo `json:"managedInstancePairs,omitempty"`
}

InstanceFailoverGroupProperties properties of a instance failover group.

type InstanceFailoverGroupReadOnlyEndpoint

type InstanceFailoverGroupReadOnlyEndpoint struct {
	// FailoverPolicy - Failover policy of the read-only endpoint for the failover group. Possible values include: 'ReadOnlyEndpointFailoverPolicyDisabled', 'ReadOnlyEndpointFailoverPolicyEnabled'
	FailoverPolicy ReadOnlyEndpointFailoverPolicy `json:"failoverPolicy,omitempty"`
}

InstanceFailoverGroupReadOnlyEndpoint read-only endpoint of the failover group instance.

type InstanceFailoverGroupReadWriteEndpoint

type InstanceFailoverGroupReadWriteEndpoint struct {
	// FailoverPolicy - Failover policy of the read-write endpoint for the failover group. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. Possible values include: 'Manual', 'Automatic'
	FailoverPolicy ReadWriteEndpointFailoverPolicy `json:"failoverPolicy,omitempty"`
	// FailoverWithDataLossGracePeriodMinutes - Grace period before failover with data loss is attempted for the read-write endpoint. If failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required.
	FailoverWithDataLossGracePeriodMinutes *int32 `json:"failoverWithDataLossGracePeriodMinutes,omitempty"`
}

InstanceFailoverGroupReadWriteEndpoint read-write endpoint of the failover group instance.

type InstanceFailoverGroupReplicationRole

type InstanceFailoverGroupReplicationRole string

InstanceFailoverGroupReplicationRole enumerates the values for instance failover group replication role.

const (
	// InstanceFailoverGroupReplicationRolePrimary ...
	InstanceFailoverGroupReplicationRolePrimary InstanceFailoverGroupReplicationRole = "Primary"
	// InstanceFailoverGroupReplicationRoleSecondary ...
	InstanceFailoverGroupReplicationRoleSecondary InstanceFailoverGroupReplicationRole = "Secondary"
)

func PossibleInstanceFailoverGroupReplicationRoleValues

func PossibleInstanceFailoverGroupReplicationRoleValues() []InstanceFailoverGroupReplicationRole

PossibleInstanceFailoverGroupReplicationRoleValues returns an array of possible values for the InstanceFailoverGroupReplicationRole const type.

type InstanceFailoverGroupsClient

type InstanceFailoverGroupsClient struct {
	BaseClient
}

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

func NewInstanceFailoverGroupsClient

func NewInstanceFailoverGroupsClient(subscriptionID string) InstanceFailoverGroupsClient

NewInstanceFailoverGroupsClient creates an instance of the InstanceFailoverGroupsClient client.

func NewInstanceFailoverGroupsClientWithBaseURI

func NewInstanceFailoverGroupsClientWithBaseURI(baseURI string, subscriptionID string) InstanceFailoverGroupsClient

NewInstanceFailoverGroupsClientWithBaseURI creates an instance of the InstanceFailoverGroupsClient client.

func (InstanceFailoverGroupsClient) CreateOrUpdate

func (client InstanceFailoverGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string, parameters InstanceFailoverGroup) (result InstanceFailoverGroupsCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates a failover group. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. locationName - the name of the region where the resource is located. failoverGroupName - the name of the failover group. parameters - the failover group parameters.

func (InstanceFailoverGroupsClient) CreateOrUpdatePreparer

func (client InstanceFailoverGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string, parameters InstanceFailoverGroup) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (InstanceFailoverGroupsClient) CreateOrUpdateResponder

func (client InstanceFailoverGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result InstanceFailoverGroup, err error)

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

func (InstanceFailoverGroupsClient) CreateOrUpdateSender

func (client InstanceFailoverGroupsClient) CreateOrUpdateSender(req *http.Request) (future InstanceFailoverGroupsCreateOrUpdateFuture, err error)

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

func (InstanceFailoverGroupsClient) Delete

func (client InstanceFailoverGroupsClient) Delete(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string) (result InstanceFailoverGroupsDeleteFuture, err error)

Delete deletes a failover group. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. locationName - the name of the region where the resource is located. failoverGroupName - the name of the failover group.

func (InstanceFailoverGroupsClient) DeletePreparer

func (client InstanceFailoverGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (InstanceFailoverGroupsClient) DeleteResponder

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

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

func (InstanceFailoverGroupsClient) DeleteSender

func (client InstanceFailoverGroupsClient) DeleteSender(req *http.Request) (future InstanceFailoverGroupsDeleteFuture, err error)

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

func (InstanceFailoverGroupsClient) Failover

func (client InstanceFailoverGroupsClient) Failover(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string) (result InstanceFailoverGroupsFailoverFuture, err error)

Failover fails over from the current primary managed instance to this managed instance. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. locationName - the name of the region where the resource is located. failoverGroupName - the name of the failover group.

func (InstanceFailoverGroupsClient) FailoverPreparer

func (client InstanceFailoverGroupsClient) FailoverPreparer(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string) (*http.Request, error)

FailoverPreparer prepares the Failover request.

func (InstanceFailoverGroupsClient) FailoverResponder

func (client InstanceFailoverGroupsClient) FailoverResponder(resp *http.Response) (result InstanceFailoverGroup, err error)

FailoverResponder handles the response to the Failover request. The method always closes the http.Response Body.

func (InstanceFailoverGroupsClient) FailoverSender

func (client InstanceFailoverGroupsClient) FailoverSender(req *http.Request) (future InstanceFailoverGroupsFailoverFuture, err error)

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

func (InstanceFailoverGroupsClient) ForceFailoverAllowDataLoss

func (client InstanceFailoverGroupsClient) ForceFailoverAllowDataLoss(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string) (result InstanceFailoverGroupsForceFailoverAllowDataLossFuture, err error)

ForceFailoverAllowDataLoss fails over from the current primary managed instance to this managed instance. This operation might result in data loss. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. locationName - the name of the region where the resource is located. failoverGroupName - the name of the failover group.

func (InstanceFailoverGroupsClient) ForceFailoverAllowDataLossPreparer

func (client InstanceFailoverGroupsClient) ForceFailoverAllowDataLossPreparer(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string) (*http.Request, error)

ForceFailoverAllowDataLossPreparer prepares the ForceFailoverAllowDataLoss request.

func (InstanceFailoverGroupsClient) ForceFailoverAllowDataLossResponder

func (client InstanceFailoverGroupsClient) ForceFailoverAllowDataLossResponder(resp *http.Response) (result InstanceFailoverGroup, err error)

ForceFailoverAllowDataLossResponder handles the response to the ForceFailoverAllowDataLoss request. The method always closes the http.Response Body.

func (InstanceFailoverGroupsClient) ForceFailoverAllowDataLossSender

func (client InstanceFailoverGroupsClient) ForceFailoverAllowDataLossSender(req *http.Request) (future InstanceFailoverGroupsForceFailoverAllowDataLossFuture, err error)

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

func (InstanceFailoverGroupsClient) Get

func (client InstanceFailoverGroupsClient) Get(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string) (result InstanceFailoverGroup, err error)

Get gets a failover group. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. locationName - the name of the region where the resource is located. failoverGroupName - the name of the failover group.

func (InstanceFailoverGroupsClient) GetPreparer

func (client InstanceFailoverGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (InstanceFailoverGroupsClient) GetResponder

func (client InstanceFailoverGroupsClient) GetResponder(resp *http.Response) (result InstanceFailoverGroup, err error)

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

func (InstanceFailoverGroupsClient) GetSender

func (client InstanceFailoverGroupsClient) 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 (InstanceFailoverGroupsClient) ListByLocation

func (client InstanceFailoverGroupsClient) ListByLocation(ctx context.Context, resourceGroupName string, locationName string) (result InstanceFailoverGroupListResultPage, err error)

ListByLocation lists the failover groups in a location. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. locationName - the name of the region where the resource is located.

func (InstanceFailoverGroupsClient) ListByLocationComplete

func (client InstanceFailoverGroupsClient) ListByLocationComplete(ctx context.Context, resourceGroupName string, locationName string) (result InstanceFailoverGroupListResultIterator, err error)

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

func (InstanceFailoverGroupsClient) ListByLocationPreparer

func (client InstanceFailoverGroupsClient) ListByLocationPreparer(ctx context.Context, resourceGroupName string, locationName string) (*http.Request, error)

ListByLocationPreparer prepares the ListByLocation request.

func (InstanceFailoverGroupsClient) ListByLocationResponder

func (client InstanceFailoverGroupsClient) ListByLocationResponder(resp *http.Response) (result InstanceFailoverGroupListResult, err error)

ListByLocationResponder handles the response to the ListByLocation request. The method always closes the http.Response Body.

func (InstanceFailoverGroupsClient) ListByLocationSender

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

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

type InstanceFailoverGroupsCreateOrUpdateFuture

type InstanceFailoverGroupsCreateOrUpdateFuture struct {
	azure.Future
}

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

func (*InstanceFailoverGroupsCreateOrUpdateFuture) Result

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

type InstanceFailoverGroupsDeleteFuture

type InstanceFailoverGroupsDeleteFuture struct {
	azure.Future
}

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

func (*InstanceFailoverGroupsDeleteFuture) Result

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

type InstanceFailoverGroupsFailoverFuture

type InstanceFailoverGroupsFailoverFuture struct {
	azure.Future
}

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

func (*InstanceFailoverGroupsFailoverFuture) Result

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

type InstanceFailoverGroupsForceFailoverAllowDataLossFuture

type InstanceFailoverGroupsForceFailoverAllowDataLossFuture struct {
	azure.Future
}

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

func (*InstanceFailoverGroupsForceFailoverAllowDataLossFuture) Result

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

type InstancePool

type InstancePool struct {
	autorest.Response `json:"-"`
	// Sku - The name and tier of the SKU.
	Sku *Sku `json:"sku,omitempty"`
	// InstancePoolProperties - Resource properties.
	*InstancePoolProperties `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"`
}

InstancePool an Azure SQL instance pool.

func (InstancePool) MarshalJSON

func (IP InstancePool) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for InstancePool.

func (*InstancePool) UnmarshalJSON

func (IP *InstancePool) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for InstancePool struct.

type InstancePoolLicenseType

type InstancePoolLicenseType string

InstancePoolLicenseType enumerates the values for instance pool license type.

const (
	// InstancePoolLicenseTypeBasePrice ...
	InstancePoolLicenseTypeBasePrice InstancePoolLicenseType = "BasePrice"
	// InstancePoolLicenseTypeLicenseIncluded ...
	InstancePoolLicenseTypeLicenseIncluded InstancePoolLicenseType = "LicenseIncluded"
)

func PossibleInstancePoolLicenseTypeValues

func PossibleInstancePoolLicenseTypeValues() []InstancePoolLicenseType

PossibleInstancePoolLicenseTypeValues returns an array of possible values for the InstancePoolLicenseType const type.

type InstancePoolListResult

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

InstancePoolListResult a list of Azure SQL instance pools.

func (InstancePoolListResult) IsEmpty

func (iplr InstancePoolListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type InstancePoolListResultIterator

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

InstancePoolListResultIterator provides access to a complete listing of InstancePool values.

func NewInstancePoolListResultIterator

func NewInstancePoolListResultIterator(page InstancePoolListResultPage) InstancePoolListResultIterator

Creates a new instance of the InstancePoolListResultIterator type.

func (*InstancePoolListResultIterator) Next

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 (*InstancePoolListResultIterator) NextWithContext

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

func (iter InstancePoolListResultIterator) NotDone() bool

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

func (InstancePoolListResultIterator) Response

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

func (InstancePoolListResultIterator) Value

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

type InstancePoolListResultPage

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

InstancePoolListResultPage contains a page of InstancePool values.

func NewInstancePoolListResultPage

func NewInstancePoolListResultPage(getNextPage func(context.Context, InstancePoolListResult) (InstancePoolListResult, error)) InstancePoolListResultPage

Creates a new instance of the InstancePoolListResultPage type.

func (*InstancePoolListResultPage) Next

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

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

func (page InstancePoolListResultPage) NotDone() bool

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

func (InstancePoolListResultPage) Response

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

func (InstancePoolListResultPage) Values

func (page InstancePoolListResultPage) Values() []InstancePool

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

type InstancePoolProperties

type InstancePoolProperties struct {
	// SubnetID - Resource ID of the subnet to place this instance pool in.
	SubnetID *string `json:"subnetId,omitempty"`
	// VCores - Count of vCores belonging to this instance pool.
	VCores *int32 `json:"vCores,omitempty"`
	// LicenseType - The license type. Possible values are 'LicenseIncluded' (price for SQL license is included) and 'BasePrice' (without SQL license price). Possible values include: 'InstancePoolLicenseTypeLicenseIncluded', 'InstancePoolLicenseTypeBasePrice'
	LicenseType InstancePoolLicenseType `json:"licenseType,omitempty"`
}

InstancePoolProperties properties of an instance pool.

type InstancePoolUpdate

type InstancePoolUpdate struct {
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
}

InstancePoolUpdate an update to an Instance pool.

func (InstancePoolUpdate) MarshalJSON

func (ipu InstancePoolUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for InstancePoolUpdate.

type InstancePoolsClient

type InstancePoolsClient struct {
	BaseClient
}

InstancePoolsClient 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 NewInstancePoolsClient

func NewInstancePoolsClient(subscriptionID string) InstancePoolsClient

NewInstancePoolsClient creates an instance of the InstancePoolsClient client.

func NewInstancePoolsClientWithBaseURI

func NewInstancePoolsClientWithBaseURI(baseURI string, subscriptionID string) InstancePoolsClient

NewInstancePoolsClientWithBaseURI creates an instance of the InstancePoolsClient client.

func (InstancePoolsClient) CreateOrUpdate

func (client InstancePoolsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, instancePoolName string, parameters InstancePool) (result InstancePoolsCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates an instance 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. instancePoolName - the name of the instance pool to be created or updated. parameters - the requested instance pool resource state.

func (InstancePoolsClient) CreateOrUpdatePreparer

func (client InstancePoolsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, instancePoolName string, parameters InstancePool) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (InstancePoolsClient) CreateOrUpdateResponder

func (client InstancePoolsClient) CreateOrUpdateResponder(resp *http.Response) (result InstancePool, err error)

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

func (InstancePoolsClient) CreateOrUpdateSender

func (client InstancePoolsClient) CreateOrUpdateSender(req *http.Request) (future InstancePoolsCreateOrUpdateFuture, err error)

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

func (InstancePoolsClient) Delete

func (client InstancePoolsClient) Delete(ctx context.Context, resourceGroupName string, instancePoolName string) (result InstancePoolsDeleteFuture, err error)

Delete deletes an instance 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. instancePoolName - the name of the instance pool to be deleted

func (InstancePoolsClient) DeletePreparer

func (client InstancePoolsClient) DeletePreparer(ctx context.Context, resourceGroupName string, instancePoolName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (InstancePoolsClient) DeleteResponder

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

func (client InstancePoolsClient) DeleteSender(req *http.Request) (future InstancePoolsDeleteFuture, err error)

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

func (InstancePoolsClient) Get

func (client InstancePoolsClient) Get(ctx context.Context, resourceGroupName string, instancePoolName string) (result InstancePool, err error)

Get gets an instance 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. instancePoolName - the name of the instance pool to be retrieved.

func (InstancePoolsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (InstancePoolsClient) GetResponder

func (client InstancePoolsClient) GetResponder(resp *http.Response) (result InstancePool, err error)

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

func (InstancePoolsClient) GetSender

func (client InstancePoolsClient) 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 (InstancePoolsClient) List

func (client InstancePoolsClient) List(ctx context.Context) (result InstancePoolListResultPage, err error)

List gets a list of all instance pools in the subscription.

func (InstancePoolsClient) ListByResourceGroup

func (client InstancePoolsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result InstancePoolListResultPage, err error)

ListByResourceGroup gets a list of instance pools in the resource group Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

func (InstancePoolsClient) ListByResourceGroupComplete

func (client InstancePoolsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result InstancePoolListResultIterator, err error)

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

func (InstancePoolsClient) ListByResourceGroupPreparer

func (client InstancePoolsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (InstancePoolsClient) ListByResourceGroupResponder

func (client InstancePoolsClient) ListByResourceGroupResponder(resp *http.Response) (result InstancePoolListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (InstancePoolsClient) ListByResourceGroupSender

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

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

func (InstancePoolsClient) ListComplete

func (client InstancePoolsClient) ListComplete(ctx context.Context) (result InstancePoolListResultIterator, err error)

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

func (InstancePoolsClient) ListPreparer

func (client InstancePoolsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (InstancePoolsClient) ListResponder

func (client InstancePoolsClient) ListResponder(resp *http.Response) (result InstancePoolListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (InstancePoolsClient) ListSender

func (client InstancePoolsClient) ListSender(req *http.Request) (*http.Response, error)

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

func (InstancePoolsClient) Update

func (client InstancePoolsClient) Update(ctx context.Context, resourceGroupName string, instancePoolName string, parameters InstancePoolUpdate) (result InstancePoolsUpdateFuture, err error)

Update updates an instance 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. instancePoolName - the name of the instance pool to be updated. parameters - the requested instance pool resource state.

func (InstancePoolsClient) UpdatePreparer

func (client InstancePoolsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, instancePoolName string, parameters InstancePoolUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (InstancePoolsClient) UpdateResponder

func (client InstancePoolsClient) UpdateResponder(resp *http.Response) (result InstancePool, err error)

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

func (InstancePoolsClient) UpdateSender

func (client InstancePoolsClient) UpdateSender(req *http.Request) (future InstancePoolsUpdateFuture, err error)

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

type InstancePoolsCreateOrUpdateFuture

type InstancePoolsCreateOrUpdateFuture struct {
	azure.Future
}

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

func (*InstancePoolsCreateOrUpdateFuture) Result

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

type InstancePoolsDeleteFuture

type InstancePoolsDeleteFuture struct {
	azure.Future
}

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

func (*InstancePoolsDeleteFuture) Result

func (future *InstancePoolsDeleteFuture) Result(client InstancePoolsClient) (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 InstancePoolsUpdateFuture

type InstancePoolsUpdateFuture struct {
	azure.Future
}

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

func (*InstancePoolsUpdateFuture) Result

func (future *InstancePoolsUpdateFuture) Result(client InstancePoolsClient) (IP InstancePool, err error)

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

type Job

type Job struct {
	autorest.Response `json:"-"`
	// JobProperties - Resource properties.
	*JobProperties `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"`
}

Job a job.

func (Job) MarshalJSON

func (j Job) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Job.

func (*Job) UnmarshalJSON

func (j *Job) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Job struct.

type JobAgent

type JobAgent struct {
	autorest.Response `json:"-"`
	// Sku - The name and tier of the SKU.
	Sku *Sku `json:"sku,omitempty"`
	// JobAgentProperties - Resource properties.
	*JobAgentProperties `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"`
}

JobAgent an Azure SQL job agent.

func (JobAgent) MarshalJSON

func (ja JobAgent) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for JobAgent.

func (*JobAgent) UnmarshalJSON

func (ja *JobAgent) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for JobAgent struct.

type JobAgentListResult

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

JobAgentListResult a list of Azure SQL job agents.

func (JobAgentListResult) IsEmpty

func (jalr JobAgentListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type JobAgentListResultIterator

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

JobAgentListResultIterator provides access to a complete listing of JobAgent values.

func NewJobAgentListResultIterator

func NewJobAgentListResultIterator(page JobAgentListResultPage) JobAgentListResultIterator

Creates a new instance of the JobAgentListResultIterator type.

func (*JobAgentListResultIterator) Next

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

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

func (iter JobAgentListResultIterator) NotDone() bool

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

func (JobAgentListResultIterator) Response

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

func (JobAgentListResultIterator) Value

func (iter JobAgentListResultIterator) Value() JobAgent

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

type JobAgentListResultPage

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

JobAgentListResultPage contains a page of JobAgent values.

func NewJobAgentListResultPage

func NewJobAgentListResultPage(getNextPage func(context.Context, JobAgentListResult) (JobAgentListResult, error)) JobAgentListResultPage

Creates a new instance of the JobAgentListResultPage type.

func (*JobAgentListResultPage) Next

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

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

func (page JobAgentListResultPage) NotDone() bool

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

func (JobAgentListResultPage) Response

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

func (JobAgentListResultPage) Values

func (page JobAgentListResultPage) Values() []JobAgent

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

type JobAgentProperties

type JobAgentProperties struct {
	// DatabaseID - Resource ID of the database to store job metadata in.
	DatabaseID *string `json:"databaseId,omitempty"`
	// State - READ-ONLY; The state of the job agent. Possible values include: 'JobAgentStateCreating', 'JobAgentStateReady', 'JobAgentStateUpdating', 'JobAgentStateDeleting', 'JobAgentStateDisabled'
	State JobAgentState `json:"state,omitempty"`
}

JobAgentProperties properties of a job agent.

type JobAgentState

type JobAgentState string

JobAgentState enumerates the values for job agent state.

const (
	// JobAgentStateCreating ...
	JobAgentStateCreating JobAgentState = "Creating"
	// JobAgentStateDeleting ...
	JobAgentStateDeleting JobAgentState = "Deleting"
	// JobAgentStateDisabled ...
	JobAgentStateDisabled JobAgentState = "Disabled"
	// JobAgentStateReady ...
	JobAgentStateReady JobAgentState = "Ready"
	// JobAgentStateUpdating ...
	JobAgentStateUpdating JobAgentState = "Updating"
)

func PossibleJobAgentStateValues

func PossibleJobAgentStateValues() []JobAgentState

PossibleJobAgentStateValues returns an array of possible values for the JobAgentState const type.

type JobAgentUpdate

type JobAgentUpdate struct {
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
}

JobAgentUpdate an update to an Azure SQL job agent.

func (JobAgentUpdate) MarshalJSON

func (jau JobAgentUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for JobAgentUpdate.

type JobAgentsClient

type JobAgentsClient struct {
	BaseClient
}

JobAgentsClient 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 NewJobAgentsClient

func NewJobAgentsClient(subscriptionID string) JobAgentsClient

NewJobAgentsClient creates an instance of the JobAgentsClient client.

func NewJobAgentsClientWithBaseURI

func NewJobAgentsClientWithBaseURI(baseURI string, subscriptionID string) JobAgentsClient

NewJobAgentsClientWithBaseURI creates an instance of the JobAgentsClient client.

func (JobAgentsClient) CreateOrUpdate

func (client JobAgentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, parameters JobAgent) (result JobAgentsCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates a job agent. 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. jobAgentName - the name of the job agent to be created or updated. parameters - the requested job agent resource state.

func (JobAgentsClient) CreateOrUpdatePreparer

func (client JobAgentsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, parameters JobAgent) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (JobAgentsClient) CreateOrUpdateResponder

func (client JobAgentsClient) CreateOrUpdateResponder(resp *http.Response) (result JobAgent, err error)

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

func (JobAgentsClient) CreateOrUpdateSender

func (client JobAgentsClient) CreateOrUpdateSender(req *http.Request) (future JobAgentsCreateOrUpdateFuture, err error)

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

func (JobAgentsClient) Delete

func (client JobAgentsClient) Delete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string) (result JobAgentsDeleteFuture, err error)

Delete deletes a job agent. 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. jobAgentName - the name of the job agent to be deleted.

func (JobAgentsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (JobAgentsClient) DeleteResponder

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

func (client JobAgentsClient) DeleteSender(req *http.Request) (future JobAgentsDeleteFuture, err error)

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

func (JobAgentsClient) Get

func (client JobAgentsClient) Get(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string) (result JobAgent, err error)

Get gets a job agent. 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. jobAgentName - the name of the job agent to be retrieved.

func (JobAgentsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (JobAgentsClient) GetResponder

func (client JobAgentsClient) GetResponder(resp *http.Response) (result JobAgent, err error)

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

func (JobAgentsClient) GetSender

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

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

ListByServer gets a list of job agents 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 (JobAgentsClient) ListByServerComplete

func (client JobAgentsClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result JobAgentListResultIterator, err error)

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

func (JobAgentsClient) ListByServerPreparer

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

ListByServerPreparer prepares the ListByServer request.

func (JobAgentsClient) ListByServerResponder

func (client JobAgentsClient) ListByServerResponder(resp *http.Response) (result JobAgentListResult, err error)

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

func (JobAgentsClient) ListByServerSender

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

func (client JobAgentsClient) Update(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, parameters JobAgentUpdate) (result JobAgentsUpdateFuture, err error)

Update updates a job agent. 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. jobAgentName - the name of the job agent to be updated. parameters - the update to the job agent.

func (JobAgentsClient) UpdatePreparer

func (client JobAgentsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, parameters JobAgentUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (JobAgentsClient) UpdateResponder

func (client JobAgentsClient) UpdateResponder(resp *http.Response) (result JobAgent, err error)

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

func (JobAgentsClient) UpdateSender

func (client JobAgentsClient) UpdateSender(req *http.Request) (future JobAgentsUpdateFuture, err error)

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

type JobAgentsCreateOrUpdateFuture

type JobAgentsCreateOrUpdateFuture struct {
	azure.Future
}

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

func (*JobAgentsCreateOrUpdateFuture) Result

func (future *JobAgentsCreateOrUpdateFuture) Result(client JobAgentsClient) (ja JobAgent, err error)

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

type JobAgentsDeleteFuture

type JobAgentsDeleteFuture struct {
	azure.Future
}

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

func (*JobAgentsDeleteFuture) Result

func (future *JobAgentsDeleteFuture) Result(client JobAgentsClient) (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 JobAgentsUpdateFuture

type JobAgentsUpdateFuture struct {
	azure.Future
}

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

func (*JobAgentsUpdateFuture) Result

func (future *JobAgentsUpdateFuture) Result(client JobAgentsClient) (ja JobAgent, err error)

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

type JobCredential

type JobCredential struct {
	autorest.Response `json:"-"`
	// JobCredentialProperties - Resource properties.
	*JobCredentialProperties `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"`
}

JobCredential a stored credential that can be used by a job to connect to target databases.

func (JobCredential) MarshalJSON

func (jc JobCredential) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for JobCredential.

func (*JobCredential) UnmarshalJSON

func (jc *JobCredential) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for JobCredential struct.

type JobCredentialListResult

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

JobCredentialListResult a list of job credentials.

func (JobCredentialListResult) IsEmpty

func (jclr JobCredentialListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type JobCredentialListResultIterator

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

JobCredentialListResultIterator provides access to a complete listing of JobCredential values.

func NewJobCredentialListResultIterator

func NewJobCredentialListResultIterator(page JobCredentialListResultPage) JobCredentialListResultIterator

Creates a new instance of the JobCredentialListResultIterator type.

func (*JobCredentialListResultIterator) Next

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 (*JobCredentialListResultIterator) NextWithContext

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

func (iter JobCredentialListResultIterator) NotDone() bool

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

func (JobCredentialListResultIterator) Response

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

func (JobCredentialListResultIterator) Value

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

type JobCredentialListResultPage

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

JobCredentialListResultPage contains a page of JobCredential values.

func NewJobCredentialListResultPage

func NewJobCredentialListResultPage(getNextPage func(context.Context, JobCredentialListResult) (JobCredentialListResult, error)) JobCredentialListResultPage

Creates a new instance of the JobCredentialListResultPage type.

func (*JobCredentialListResultPage) Next

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

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

func (page JobCredentialListResultPage) NotDone() bool

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

func (JobCredentialListResultPage) Response

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

func (JobCredentialListResultPage) Values

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

type JobCredentialProperties

type JobCredentialProperties struct {
	// Username - The credential user name.
	Username *string `json:"username,omitempty"`
	// Password - The credential password.
	Password *string `json:"password,omitempty"`
}

JobCredentialProperties properties of a job credential.

type JobCredentialsClient

type JobCredentialsClient struct {
	BaseClient
}

JobCredentialsClient 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 NewJobCredentialsClient

func NewJobCredentialsClient(subscriptionID string) JobCredentialsClient

NewJobCredentialsClient creates an instance of the JobCredentialsClient client.

func NewJobCredentialsClientWithBaseURI

func NewJobCredentialsClientWithBaseURI(baseURI string, subscriptionID string) JobCredentialsClient

NewJobCredentialsClientWithBaseURI creates an instance of the JobCredentialsClient client.

func (JobCredentialsClient) CreateOrUpdate

func (client JobCredentialsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, credentialName string, parameters JobCredential) (result JobCredential, err error)

CreateOrUpdate creates or updates a job credential. 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. jobAgentName - the name of the job agent. credentialName - the name of the credential. parameters - the requested job credential state.

func (JobCredentialsClient) CreateOrUpdatePreparer

func (client JobCredentialsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, credentialName string, parameters JobCredential) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (JobCredentialsClient) CreateOrUpdateResponder

func (client JobCredentialsClient) CreateOrUpdateResponder(resp *http.Response) (result JobCredential, err error)

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

func (JobCredentialsClient) CreateOrUpdateSender

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

func (client JobCredentialsClient) Delete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, credentialName string) (result autorest.Response, err error)

Delete deletes a job credential. 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. jobAgentName - the name of the job agent. credentialName - the name of the credential.

func (JobCredentialsClient) DeletePreparer

func (client JobCredentialsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, credentialName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (JobCredentialsClient) DeleteResponder

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

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

func (client JobCredentialsClient) Get(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, credentialName string) (result JobCredential, err error)

Get gets a jobs credential. 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. jobAgentName - the name of the job agent. credentialName - the name of the credential.

func (JobCredentialsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (JobCredentialsClient) GetResponder

func (client JobCredentialsClient) GetResponder(resp *http.Response) (result JobCredential, err error)

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

func (JobCredentialsClient) GetSender

func (client JobCredentialsClient) 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 (JobCredentialsClient) ListByAgent

func (client JobCredentialsClient) ListByAgent(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string) (result JobCredentialListResultPage, err error)

ListByAgent gets a list of jobs credentials. 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. jobAgentName - the name of the job agent.

func (JobCredentialsClient) ListByAgentComplete

func (client JobCredentialsClient) ListByAgentComplete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string) (result JobCredentialListResultIterator, err error)

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

func (JobCredentialsClient) ListByAgentPreparer

func (client JobCredentialsClient) ListByAgentPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string) (*http.Request, error)

ListByAgentPreparer prepares the ListByAgent request.

func (JobCredentialsClient) ListByAgentResponder

func (client JobCredentialsClient) ListByAgentResponder(resp *http.Response) (result JobCredentialListResult, err error)

ListByAgentResponder handles the response to the ListByAgent request. The method always closes the http.Response Body.

func (JobCredentialsClient) ListByAgentSender

func (client JobCredentialsClient) ListByAgentSender(req *http.Request) (*http.Response, error)

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

type JobExecution

type JobExecution struct {
	autorest.Response `json:"-"`
	// JobExecutionProperties - Resource properties.
	*JobExecutionProperties `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"`
}

JobExecution an execution of a job

func (JobExecution) MarshalJSON

func (je JobExecution) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for JobExecution.

func (*JobExecution) UnmarshalJSON

func (je *JobExecution) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for JobExecution struct.

type JobExecutionLifecycle

type JobExecutionLifecycle string

JobExecutionLifecycle enumerates the values for job execution lifecycle.

const (
	// Canceled ...
	Canceled JobExecutionLifecycle = "Canceled"
	// Created ...
	Created JobExecutionLifecycle = "Created"
	// Failed ...
	Failed JobExecutionLifecycle = "Failed"
	// InProgress ...
	InProgress JobExecutionLifecycle = "InProgress"
	// Skipped ...
	Skipped JobExecutionLifecycle = "Skipped"
	// Succeeded ...
	Succeeded JobExecutionLifecycle = "Succeeded"
	// SucceededWithSkipped ...
	SucceededWithSkipped JobExecutionLifecycle = "SucceededWithSkipped"
	// TimedOut ...
	TimedOut JobExecutionLifecycle = "TimedOut"
	// WaitingForChildJobExecutions ...
	WaitingForChildJobExecutions JobExecutionLifecycle = "WaitingForChildJobExecutions"
	// WaitingForRetry ...
	WaitingForRetry JobExecutionLifecycle = "WaitingForRetry"
)

func PossibleJobExecutionLifecycleValues

func PossibleJobExecutionLifecycleValues() []JobExecutionLifecycle

PossibleJobExecutionLifecycleValues returns an array of possible values for the JobExecutionLifecycle const type.

type JobExecutionListResult

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

JobExecutionListResult a list of job executions.

func (JobExecutionListResult) IsEmpty

func (jelr JobExecutionListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type JobExecutionListResultIterator

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

JobExecutionListResultIterator provides access to a complete listing of JobExecution values.

func NewJobExecutionListResultIterator

func NewJobExecutionListResultIterator(page JobExecutionListResultPage) JobExecutionListResultIterator

Creates a new instance of the JobExecutionListResultIterator type.

func (*JobExecutionListResultIterator) Next

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 (*JobExecutionListResultIterator) NextWithContext

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

func (iter JobExecutionListResultIterator) NotDone() bool

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

func (JobExecutionListResultIterator) Response

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

func (JobExecutionListResultIterator) Value

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

type JobExecutionListResultPage

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

JobExecutionListResultPage contains a page of JobExecution values.

func NewJobExecutionListResultPage

func NewJobExecutionListResultPage(getNextPage func(context.Context, JobExecutionListResult) (JobExecutionListResult, error)) JobExecutionListResultPage

Creates a new instance of the JobExecutionListResultPage type.

func (*JobExecutionListResultPage) Next

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

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

func (page JobExecutionListResultPage) NotDone() bool

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

func (JobExecutionListResultPage) Response

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

func (JobExecutionListResultPage) Values

func (page JobExecutionListResultPage) Values() []JobExecution

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

type JobExecutionProperties

type JobExecutionProperties struct {
	// JobVersion - READ-ONLY; The job version number.
	JobVersion *int32 `json:"jobVersion,omitempty"`
	// StepName - READ-ONLY; The job step name.
	StepName *string `json:"stepName,omitempty"`
	// StepID - READ-ONLY; The job step id.
	StepID *int32 `json:"stepId,omitempty"`
	// JobExecutionID - READ-ONLY; The unique identifier of the job execution.
	JobExecutionID *uuid.UUID `json:"jobExecutionId,omitempty"`
	// Lifecycle - READ-ONLY; The detailed state of the job execution. Possible values include: 'Created', 'InProgress', 'WaitingForChildJobExecutions', 'WaitingForRetry', 'Succeeded', 'SucceededWithSkipped', 'Failed', 'TimedOut', 'Canceled', 'Skipped'
	Lifecycle JobExecutionLifecycle `json:"lifecycle,omitempty"`
	// ProvisioningState - READ-ONLY; The ARM provisioning state of the job execution. Possible values include: 'ProvisioningStateCreated', 'ProvisioningStateInProgress', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
	// CreateTime - READ-ONLY; The time that the job execution was created.
	CreateTime *date.Time `json:"createTime,omitempty"`
	// StartTime - READ-ONLY; The time that the job execution started.
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - READ-ONLY; The time that the job execution completed.
	EndTime *date.Time `json:"endTime,omitempty"`
	// CurrentAttempts - Number of times the job execution has been attempted.
	CurrentAttempts *int32 `json:"currentAttempts,omitempty"`
	// CurrentAttemptStartTime - READ-ONLY; Start time of the current attempt.
	CurrentAttemptStartTime *date.Time `json:"currentAttemptStartTime,omitempty"`
	// LastMessage - READ-ONLY; The last status or error message.
	LastMessage *string `json:"lastMessage,omitempty"`
	// Target - READ-ONLY; The target that this execution is executed on.
	Target *JobExecutionTarget `json:"target,omitempty"`
}

JobExecutionProperties properties for an Azure SQL Database Elastic job execution.

type JobExecutionTarget

type JobExecutionTarget struct {
	// Type - READ-ONLY; The type of the target. Possible values include: 'JobTargetTypeTargetGroup', 'JobTargetTypeSQLDatabase', 'JobTargetTypeSQLElasticPool', 'JobTargetTypeSQLShardMap', 'JobTargetTypeSQLServer'
	Type JobTargetType `json:"type,omitempty"`
	// ServerName - READ-ONLY; The server name.
	ServerName *string `json:"serverName,omitempty"`
	// DatabaseName - READ-ONLY; The database name.
	DatabaseName *string `json:"databaseName,omitempty"`
}

JobExecutionTarget the target that a job execution is executed on.

type JobExecutionsClient

type JobExecutionsClient struct {
	BaseClient
}

JobExecutionsClient 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 NewJobExecutionsClient

func NewJobExecutionsClient(subscriptionID string) JobExecutionsClient

NewJobExecutionsClient creates an instance of the JobExecutionsClient client.

func NewJobExecutionsClientWithBaseURI

func NewJobExecutionsClientWithBaseURI(baseURI string, subscriptionID string) JobExecutionsClient

NewJobExecutionsClientWithBaseURI creates an instance of the JobExecutionsClient client.

func (JobExecutionsClient) Cancel

func (client JobExecutionsClient) Cancel(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID) (result autorest.Response, err error)

Cancel requests cancellation of a job execution. 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. jobAgentName - the name of the job agent. jobName - the name of the job. jobExecutionID - the id of the job execution to cancel.

func (JobExecutionsClient) CancelPreparer

func (client JobExecutionsClient) CancelPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID) (*http.Request, error)

CancelPreparer prepares the Cancel request.

func (JobExecutionsClient) CancelResponder

func (client JobExecutionsClient) 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 (JobExecutionsClient) CancelSender

func (client JobExecutionsClient) 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 (JobExecutionsClient) Create

func (client JobExecutionsClient) Create(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string) (result JobExecutionsCreateFuture, err error)

Create starts an elastic job execution. 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. jobAgentName - the name of the job agent. jobName - the name of the job to get.

func (JobExecutionsClient) CreateOrUpdate

func (client JobExecutionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID) (result JobExecutionsCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates a job execution. 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. jobAgentName - the name of the job agent. jobName - the name of the job to get. jobExecutionID - the job execution id to create the job execution under.

func (JobExecutionsClient) CreateOrUpdatePreparer

func (client JobExecutionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (JobExecutionsClient) CreateOrUpdateResponder

func (client JobExecutionsClient) CreateOrUpdateResponder(resp *http.Response) (result JobExecution, err error)

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

func (JobExecutionsClient) CreateOrUpdateSender

func (client JobExecutionsClient) CreateOrUpdateSender(req *http.Request) (future JobExecutionsCreateOrUpdateFuture, err error)

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

func (JobExecutionsClient) CreatePreparer

func (client JobExecutionsClient) CreatePreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string) (*http.Request, error)

CreatePreparer prepares the Create request.

func (JobExecutionsClient) CreateResponder

func (client JobExecutionsClient) CreateResponder(resp *http.Response) (result JobExecution, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (JobExecutionsClient) CreateSender

func (client JobExecutionsClient) CreateSender(req *http.Request) (future JobExecutionsCreateFuture, err error)

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

func (JobExecutionsClient) Get

func (client JobExecutionsClient) Get(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID) (result JobExecution, err error)

Get gets a job execution. 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. jobAgentName - the name of the job agent. jobName - the name of the job. jobExecutionID - the id of the job execution

func (JobExecutionsClient) GetPreparer

func (client JobExecutionsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID) (*http.Request, error)

GetPreparer prepares the Get request.

func (JobExecutionsClient) GetResponder

func (client JobExecutionsClient) GetResponder(resp *http.Response) (result JobExecution, err error)

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

func (JobExecutionsClient) GetSender

func (client JobExecutionsClient) 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 (JobExecutionsClient) ListByAgent

func (client JobExecutionsClient) ListByAgent(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (result JobExecutionListResultPage, err error)

ListByAgent lists all executions in a job agent. 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. jobAgentName - the name of the job agent. createTimeMin - if specified, only job executions created at or after the specified time are included. createTimeMax - if specified, only job executions created before the specified time are included. endTimeMin - if specified, only job executions completed at or after the specified time are included. endTimeMax - if specified, only job executions completed before the specified time are included. isActive - if specified, only active or only completed job executions are included. skip - the number of elements in the collection to skip. top - the number of elements to return from the collection.

func (JobExecutionsClient) ListByAgentComplete

func (client JobExecutionsClient) ListByAgentComplete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (result JobExecutionListResultIterator, err error)

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

func (JobExecutionsClient) ListByAgentPreparer

func (client JobExecutionsClient) ListByAgentPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (*http.Request, error)

ListByAgentPreparer prepares the ListByAgent request.

func (JobExecutionsClient) ListByAgentResponder

func (client JobExecutionsClient) ListByAgentResponder(resp *http.Response) (result JobExecutionListResult, err error)

ListByAgentResponder handles the response to the ListByAgent request. The method always closes the http.Response Body.

func (JobExecutionsClient) ListByAgentSender

func (client JobExecutionsClient) ListByAgentSender(req *http.Request) (*http.Response, error)

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

func (JobExecutionsClient) ListByJob

func (client JobExecutionsClient) ListByJob(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (result JobExecutionListResultPage, err error)

ListByJob lists a job's executions. 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. jobAgentName - the name of the job agent. jobName - the name of the job to get. createTimeMin - if specified, only job executions created at or after the specified time are included. createTimeMax - if specified, only job executions created before the specified time are included. endTimeMin - if specified, only job executions completed at or after the specified time are included. endTimeMax - if specified, only job executions completed before the specified time are included. isActive - if specified, only active or only completed job executions are included. skip - the number of elements in the collection to skip. top - the number of elements to return from the collection.

func (JobExecutionsClient) ListByJobComplete

func (client JobExecutionsClient) ListByJobComplete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (result JobExecutionListResultIterator, err error)

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

func (JobExecutionsClient) ListByJobPreparer

func (client JobExecutionsClient) ListByJobPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (*http.Request, error)

ListByJobPreparer prepares the ListByJob request.

func (JobExecutionsClient) ListByJobResponder

func (client JobExecutionsClient) ListByJobResponder(resp *http.Response) (result JobExecutionListResult, err error)

ListByJobResponder handles the response to the ListByJob request. The method always closes the http.Response Body.

func (JobExecutionsClient) ListByJobSender

func (client JobExecutionsClient) ListByJobSender(req *http.Request) (*http.Response, error)

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

type JobExecutionsCreateFuture

type JobExecutionsCreateFuture struct {
	azure.Future
}

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

func (*JobExecutionsCreateFuture) Result

func (future *JobExecutionsCreateFuture) Result(client JobExecutionsClient) (je JobExecution, err error)

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

type JobExecutionsCreateOrUpdateFuture

type JobExecutionsCreateOrUpdateFuture struct {
	azure.Future
}

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

func (*JobExecutionsCreateOrUpdateFuture) Result

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

type JobListResult

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

JobListResult a list of jobs.

func (JobListResult) IsEmpty

func (jlr JobListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type JobListResultIterator

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

JobListResultIterator provides access to a complete listing of Job values.

func NewJobListResultIterator

func NewJobListResultIterator(page JobListResultPage) JobListResultIterator

Creates a new instance of the JobListResultIterator type.

func (*JobListResultIterator) Next

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

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

func (iter JobListResultIterator) NotDone() bool

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

func (JobListResultIterator) Response

func (iter JobListResultIterator) Response() JobListResult

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

func (JobListResultIterator) Value

func (iter JobListResultIterator) Value() Job

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

type JobListResultPage

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

JobListResultPage contains a page of Job values.

func NewJobListResultPage

func NewJobListResultPage(getNextPage func(context.Context, JobListResult) (JobListResult, error)) JobListResultPage

Creates a new instance of the JobListResultPage type.

func (*JobListResultPage) Next

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

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

func (page JobListResultPage) NotDone() bool

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

func (JobListResultPage) Response

func (page JobListResultPage) Response() JobListResult

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

func (JobListResultPage) Values

func (page JobListResultPage) Values() []Job

Values returns the slice of values for the current page or nil if there are no values.

type JobProperties

type JobProperties struct {
	// Description - User-defined description of the job.
	Description *string `json:"description,omitempty"`
	// Version - READ-ONLY; The job version number.
	Version *int32 `json:"version,omitempty"`
	// Schedule - Schedule properties of the job.
	Schedule *JobSchedule `json:"schedule,omitempty"`
}

JobProperties properties of a job.

type JobSchedule

type JobSchedule struct {
	// StartTime - Schedule start time.
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - Schedule end time.
	EndTime *date.Time `json:"endTime,omitempty"`
	// Type - Schedule interval type. Possible values include: 'Once', 'Recurring'
	Type JobScheduleType `json:"type,omitempty"`
	// Enabled - Whether or not the schedule is enabled.
	Enabled *bool `json:"enabled,omitempty"`
	// Interval - Value of the schedule's recurring interval, if the schedule type is recurring. ISO8601 duration format.
	Interval *string `json:"interval,omitempty"`
}

JobSchedule scheduling properties of a job.

type JobScheduleType

type JobScheduleType string

JobScheduleType enumerates the values for job schedule type.

const (
	// Once ...
	Once JobScheduleType = "Once"
	// Recurring ...
	Recurring JobScheduleType = "Recurring"
)

func PossibleJobScheduleTypeValues

func PossibleJobScheduleTypeValues() []JobScheduleType

PossibleJobScheduleTypeValues returns an array of possible values for the JobScheduleType const type.

type JobStep

type JobStep struct {
	autorest.Response `json:"-"`
	// JobStepProperties - Resource properties.
	*JobStepProperties `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"`
}

JobStep a job step.

func (JobStep) MarshalJSON

func (js JobStep) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for JobStep.

func (*JobStep) UnmarshalJSON

func (js *JobStep) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for JobStep struct.

type JobStepAction

type JobStepAction struct {
	// Type - Type of action being executed by the job step. Possible values include: 'TSQL'
	Type JobStepActionType `json:"type,omitempty"`
	// Source - The source of the action to execute. Possible values include: 'Inline'
	Source JobStepActionSource `json:"source,omitempty"`
	// Value - The action value, for example the text of the T-SQL script to execute.
	Value *string `json:"value,omitempty"`
}

JobStepAction the action to be executed by a job step.

type JobStepActionSource

type JobStepActionSource string

JobStepActionSource enumerates the values for job step action source.

const (
	// Inline ...
	Inline JobStepActionSource = "Inline"
)

func PossibleJobStepActionSourceValues

func PossibleJobStepActionSourceValues() []JobStepActionSource

PossibleJobStepActionSourceValues returns an array of possible values for the JobStepActionSource const type.

type JobStepActionType

type JobStepActionType string

JobStepActionType enumerates the values for job step action type.

const (
	// TSQL ...
	TSQL JobStepActionType = "TSql"
)

func PossibleJobStepActionTypeValues

func PossibleJobStepActionTypeValues() []JobStepActionType

PossibleJobStepActionTypeValues returns an array of possible values for the JobStepActionType const type.

type JobStepExecutionOptions

type JobStepExecutionOptions struct {
	// TimeoutSeconds - Execution timeout for the job step.
	TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"`
	// RetryAttempts - Maximum number of times the job step will be reattempted if the first attempt fails.
	RetryAttempts *int32 `json:"retryAttempts,omitempty"`
	// InitialRetryIntervalSeconds - Initial delay between retries for job step execution.
	InitialRetryIntervalSeconds *int32 `json:"initialRetryIntervalSeconds,omitempty"`
	// MaximumRetryIntervalSeconds - The maximum amount of time to wait between retries for job step execution.
	MaximumRetryIntervalSeconds *int32 `json:"maximumRetryIntervalSeconds,omitempty"`
	// RetryIntervalBackoffMultiplier - The backoff multiplier for the time between retries.
	RetryIntervalBackoffMultiplier *float64 `json:"retryIntervalBackoffMultiplier,omitempty"`
}

JobStepExecutionOptions the execution options of a job step.

type JobStepExecutionsClient

type JobStepExecutionsClient struct {
	BaseClient
}

JobStepExecutionsClient 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 NewJobStepExecutionsClient

func NewJobStepExecutionsClient(subscriptionID string) JobStepExecutionsClient

NewJobStepExecutionsClient creates an instance of the JobStepExecutionsClient client.

func NewJobStepExecutionsClientWithBaseURI

func NewJobStepExecutionsClientWithBaseURI(baseURI string, subscriptionID string) JobStepExecutionsClient

NewJobStepExecutionsClientWithBaseURI creates an instance of the JobStepExecutionsClient client.

func (JobStepExecutionsClient) Get

func (client JobStepExecutionsClient) Get(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID, stepName string) (result JobExecution, err error)

Get gets a step execution of a job execution. 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. jobAgentName - the name of the job agent. jobName - the name of the job to get. jobExecutionID - the unique id of the job execution stepName - the name of the step.

func (JobStepExecutionsClient) GetPreparer

func (client JobStepExecutionsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID, stepName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (JobStepExecutionsClient) GetResponder

func (client JobStepExecutionsClient) GetResponder(resp *http.Response) (result JobExecution, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (JobStepExecutionsClient) GetSender

func (client JobStepExecutionsClient) 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 (JobStepExecutionsClient) ListByJobExecution

func (client JobStepExecutionsClient) ListByJobExecution(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (result JobExecutionListResultPage, err error)

ListByJobExecution lists the step executions of a job execution. 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. jobAgentName - the name of the job agent. jobName - the name of the job to get. jobExecutionID - the id of the job execution createTimeMin - if specified, only job executions created at or after the specified time are included. createTimeMax - if specified, only job executions created before the specified time are included. endTimeMin - if specified, only job executions completed at or after the specified time are included. endTimeMax - if specified, only job executions completed before the specified time are included. isActive - if specified, only active or only completed job executions are included. skip - the number of elements in the collection to skip. top - the number of elements to return from the collection.

func (JobStepExecutionsClient) ListByJobExecutionComplete

func (client JobStepExecutionsClient) ListByJobExecutionComplete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (result JobExecutionListResultIterator, err error)

ListByJobExecutionComplete enumerates all values, automatically crossing page boundaries as required.

func (JobStepExecutionsClient) ListByJobExecutionPreparer

func (client JobStepExecutionsClient) ListByJobExecutionPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (*http.Request, error)

ListByJobExecutionPreparer prepares the ListByJobExecution request.

func (JobStepExecutionsClient) ListByJobExecutionResponder

func (client JobStepExecutionsClient) ListByJobExecutionResponder(resp *http.Response) (result JobExecutionListResult, err error)

ListByJobExecutionResponder handles the response to the ListByJobExecution request. The method always closes the http.Response Body.

func (JobStepExecutionsClient) ListByJobExecutionSender

func (client JobStepExecutionsClient) ListByJobExecutionSender(req *http.Request) (*http.Response, error)

ListByJobExecutionSender sends the ListByJobExecution request. The method will close the http.Response Body if it receives an error.

type JobStepListResult

type JobStepListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]JobStep `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

JobStepListResult a list of job steps.

func (JobStepListResult) IsEmpty

func (jslr JobStepListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type JobStepListResultIterator

type JobStepListResultIterator struct {
	// contains filtered or unexported fields
}

JobStepListResultIterator provides access to a complete listing of JobStep values.

func NewJobStepListResultIterator

func NewJobStepListResultIterator(page JobStepListResultPage) JobStepListResultIterator

Creates a new instance of the JobStepListResultIterator type.

func (*JobStepListResultIterator) Next

func (iter *JobStepListResultIterator) 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 (*JobStepListResultIterator) NextWithContext

func (iter *JobStepListResultIterator) 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 (JobStepListResultIterator) NotDone

func (iter JobStepListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (JobStepListResultIterator) Response

Response returns the raw server response from the last page request.

func (JobStepListResultIterator) Value

func (iter JobStepListResultIterator) Value() JobStep

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type JobStepListResultPage

type JobStepListResultPage struct {
	// contains filtered or unexported fields
}

JobStepListResultPage contains a page of JobStep values.

func NewJobStepListResultPage

func NewJobStepListResultPage(getNextPage func(context.Context, JobStepListResult) (JobStepListResult, error)) JobStepListResultPage

Creates a new instance of the JobStepListResultPage type.

func (*JobStepListResultPage) Next

func (page *JobStepListResultPage) 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 (*JobStepListResultPage) NextWithContext

func (page *JobStepListResultPage) 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 (JobStepListResultPage) NotDone

func (page JobStepListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (JobStepListResultPage) Response

func (page JobStepListResultPage) Response() JobStepListResult

Response returns the raw server response from the last page request.

func (JobStepListResultPage) Values

func (page JobStepListResultPage) Values() []JobStep

Values returns the slice of values for the current page or nil if there are no values.

type JobStepOutput

type JobStepOutput struct {
	// Type - The output destination type. Possible values include: 'SQLDatabase'
	Type JobStepOutputType `json:"type,omitempty"`
	// SubscriptionID - The output destination subscription id.
	SubscriptionID *uuid.UUID `json:"subscriptionId,omitempty"`
	// ResourceGroupName - The output destination resource group.
	ResourceGroupName *string `json:"resourceGroupName,omitempty"`
	// ServerName - The output destination server name.
	ServerName *string `json:"serverName,omitempty"`
	// DatabaseName - The output destination database.
	DatabaseName *string `json:"databaseName,omitempty"`
	// SchemaName - The output destination schema.
	SchemaName *string `json:"schemaName,omitempty"`
	// TableName - The output destination table.
	TableName *string `json:"tableName,omitempty"`
	// Credential - The resource ID of the credential to use to connect to the output destination.
	Credential *string `json:"credential,omitempty"`
}

JobStepOutput the output configuration of a job step.

type JobStepOutputType

type JobStepOutputType string

JobStepOutputType enumerates the values for job step output type.

const (
	// SQLDatabase ...
	SQLDatabase JobStepOutputType = "SqlDatabase"
)

func PossibleJobStepOutputTypeValues

func PossibleJobStepOutputTypeValues() []JobStepOutputType

PossibleJobStepOutputTypeValues returns an array of possible values for the JobStepOutputType const type.

type JobStepProperties

type JobStepProperties struct {
	// StepID - The job step's index within the job. If not specified when creating the job step, it will be created as the last step. If not specified when updating the job step, the step id is not modified.
	StepID *int32 `json:"stepId,omitempty"`
	// TargetGroup - The resource ID of the target group that the job step will be executed on.
	TargetGroup *string `json:"targetGroup,omitempty"`
	// Credential - The resource ID of the job credential that will be used to connect to the targets.
	Credential *string `json:"credential,omitempty"`
	// Action - The action payload of the job step.
	Action *JobStepAction `json:"action,omitempty"`
	// Output - Output destination properties of the job step.
	Output *JobStepOutput `json:"output,omitempty"`
	// ExecutionOptions - Execution options for the job step.
	ExecutionOptions *JobStepExecutionOptions `json:"executionOptions,omitempty"`
}

JobStepProperties properties of a job step.

type JobStepsClient

type JobStepsClient struct {
	BaseClient
}

JobStepsClient 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 NewJobStepsClient

func NewJobStepsClient(subscriptionID string) JobStepsClient

NewJobStepsClient creates an instance of the JobStepsClient client.

func NewJobStepsClientWithBaseURI

func NewJobStepsClientWithBaseURI(baseURI string, subscriptionID string) JobStepsClient

NewJobStepsClientWithBaseURI creates an instance of the JobStepsClient client.

func (JobStepsClient) CreateOrUpdate

func (client JobStepsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, stepName string, parameters JobStep) (result JobStep, err error)

CreateOrUpdate creates or updates a job step. This will implicitly create a new job version. 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. jobAgentName - the name of the job agent. jobName - the name of the job. stepName - the name of the job step. parameters - the requested state of the job step.

func (JobStepsClient) CreateOrUpdatePreparer

func (client JobStepsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, stepName string, parameters JobStep) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (JobStepsClient) CreateOrUpdateResponder

func (client JobStepsClient) CreateOrUpdateResponder(resp *http.Response) (result JobStep, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (JobStepsClient) CreateOrUpdateSender

func (client JobStepsClient) 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 (JobStepsClient) Delete

func (client JobStepsClient) Delete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, stepName string) (result autorest.Response, err error)

Delete deletes a job step. This will implicitly create a new job version. 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. jobAgentName - the name of the job agent. jobName - the name of the job. stepName - the name of the job step to delete.

func (JobStepsClient) DeletePreparer

func (client JobStepsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, stepName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (JobStepsClient) DeleteResponder

func (client JobStepsClient) 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 (JobStepsClient) DeleteSender

func (client JobStepsClient) 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 (JobStepsClient) Get

func (client JobStepsClient) Get(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, stepName string) (result JobStep, err error)

Get gets a job step in a job's current version. 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. jobAgentName - the name of the job agent. jobName - the name of the job. stepName - the name of the job step.

func (JobStepsClient) GetByVersion

func (client JobStepsClient) GetByVersion(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobVersion int32, stepName string) (result JobStep, err error)

GetByVersion gets the specified version of a job step. 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. jobAgentName - the name of the job agent. jobName - the name of the job. jobVersion - the version of the job to get. stepName - the name of the job step.

func (JobStepsClient) GetByVersionPreparer

func (client JobStepsClient) GetByVersionPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobVersion int32, stepName string) (*http.Request, error)

GetByVersionPreparer prepares the GetByVersion request.

func (JobStepsClient) GetByVersionResponder

func (client JobStepsClient) GetByVersionResponder(resp *http.Response) (result JobStep, err error)

GetByVersionResponder handles the response to the GetByVersion request. The method always closes the http.Response Body.

func (JobStepsClient) GetByVersionSender

func (client JobStepsClient) GetByVersionSender(req *http.Request) (*http.Response, error)

GetByVersionSender sends the GetByVersion request. The method will close the http.Response Body if it receives an error.

func (JobStepsClient) GetPreparer

func (client JobStepsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, stepName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (JobStepsClient) GetResponder

func (client JobStepsClient) GetResponder(resp *http.Response) (result JobStep, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (JobStepsClient) GetSender

func (client JobStepsClient) 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 (JobStepsClient) ListByJob

func (client JobStepsClient) ListByJob(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string) (result JobStepListResultPage, err error)

ListByJob gets all job steps for a job's current version. 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. jobAgentName - the name of the job agent. jobName - the name of the job to get.

func (JobStepsClient) ListByJobComplete

func (client JobStepsClient) ListByJobComplete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string) (result JobStepListResultIterator, err error)

ListByJobComplete enumerates all values, automatically crossing page boundaries as required.

func (JobStepsClient) ListByJobPreparer

func (client JobStepsClient) ListByJobPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string) (*http.Request, error)

ListByJobPreparer prepares the ListByJob request.

func (JobStepsClient) ListByJobResponder

func (client JobStepsClient) ListByJobResponder(resp *http.Response) (result JobStepListResult, err error)

ListByJobResponder handles the response to the ListByJob request. The method always closes the http.Response Body.

func (JobStepsClient) ListByJobSender

func (client JobStepsClient) ListByJobSender(req *http.Request) (*http.Response, error)

ListByJobSender sends the ListByJob request. The method will close the http.Response Body if it receives an error.

func (JobStepsClient) ListByVersion

func (client JobStepsClient) ListByVersion(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobVersion int32) (result JobStepListResultPage, err error)

ListByVersion gets all job steps in the specified job version. 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. jobAgentName - the name of the job agent. jobName - the name of the job to get. jobVersion - the version of the job to get.

func (JobStepsClient) ListByVersionComplete

func (client JobStepsClient) ListByVersionComplete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobVersion int32) (result JobStepListResultIterator, err error)

ListByVersionComplete enumerates all values, automatically crossing page boundaries as required.

func (JobStepsClient) ListByVersionPreparer

func (client JobStepsClient) ListByVersionPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobVersion int32) (*http.Request, error)

ListByVersionPreparer prepares the ListByVersion request.

func (JobStepsClient) ListByVersionResponder

func (client JobStepsClient) ListByVersionResponder(resp *http.Response) (result JobStepListResult, err error)

ListByVersionResponder handles the response to the ListByVersion request. The method always closes the http.Response Body.

func (JobStepsClient) ListByVersionSender

func (client JobStepsClient) ListByVersionSender(req *http.Request) (*http.Response, error)

ListByVersionSender sends the ListByVersion request. The method will close the http.Response Body if it receives an error.

type JobTarget

type JobTarget struct {
	// MembershipType - Whether the target is included or excluded from the group. Possible values include: 'Include', 'Exclude'
	MembershipType JobTargetGroupMembershipType `json:"membershipType,omitempty"`
	// Type - The target type. Possible values include: 'JobTargetTypeTargetGroup', 'JobTargetTypeSQLDatabase', 'JobTargetTypeSQLElasticPool', 'JobTargetTypeSQLShardMap', 'JobTargetTypeSQLServer'
	Type JobTargetType `json:"type,omitempty"`
	// ServerName - The target server name.
	ServerName *string `json:"serverName,omitempty"`
	// DatabaseName - The target database name.
	DatabaseName *string `json:"databaseName,omitempty"`
	// ElasticPoolName - The target elastic pool name.
	ElasticPoolName *string `json:"elasticPoolName,omitempty"`
	// ShardMapName - The target shard map.
	ShardMapName *string `json:"shardMapName,omitempty"`
	// RefreshCredential - The resource ID of the credential that is used during job execution to connect to the target and determine the list of databases inside the target.
	RefreshCredential *string `json:"refreshCredential,omitempty"`
}

JobTarget a job target, for example a specific database or a container of databases that is evaluated during job execution.

type JobTargetExecutionsClient

type JobTargetExecutionsClient struct {
	BaseClient
}

JobTargetExecutionsClient 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 NewJobTargetExecutionsClient

func NewJobTargetExecutionsClient(subscriptionID string) JobTargetExecutionsClient

NewJobTargetExecutionsClient creates an instance of the JobTargetExecutionsClient client.

func NewJobTargetExecutionsClientWithBaseURI

func NewJobTargetExecutionsClientWithBaseURI(baseURI string, subscriptionID string) JobTargetExecutionsClient

NewJobTargetExecutionsClientWithBaseURI creates an instance of the JobTargetExecutionsClient client.

func (JobTargetExecutionsClient) Get

func (client JobTargetExecutionsClient) Get(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID, stepName string, targetID uuid.UUID) (result JobExecution, err error)

Get gets a target execution. 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. jobAgentName - the name of the job agent. jobName - the name of the job to get. jobExecutionID - the unique id of the job execution stepName - the name of the step. targetID - the target id.

func (JobTargetExecutionsClient) GetPreparer

func (client JobTargetExecutionsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID, stepName string, targetID uuid.UUID) (*http.Request, error)

GetPreparer prepares the Get request.

func (JobTargetExecutionsClient) GetResponder

func (client JobTargetExecutionsClient) GetResponder(resp *http.Response) (result JobExecution, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (JobTargetExecutionsClient) GetSender

func (client JobTargetExecutionsClient) 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 (JobTargetExecutionsClient) ListByJobExecution

func (client JobTargetExecutionsClient) ListByJobExecution(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (result JobExecutionListResultPage, err error)

ListByJobExecution lists target executions for all steps of a job execution. 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. jobAgentName - the name of the job agent. jobName - the name of the job to get. jobExecutionID - the id of the job execution createTimeMin - if specified, only job executions created at or after the specified time are included. createTimeMax - if specified, only job executions created before the specified time are included. endTimeMin - if specified, only job executions completed at or after the specified time are included. endTimeMax - if specified, only job executions completed before the specified time are included. isActive - if specified, only active or only completed job executions are included. skip - the number of elements in the collection to skip. top - the number of elements to return from the collection.

func (JobTargetExecutionsClient) ListByJobExecutionComplete

func (client JobTargetExecutionsClient) ListByJobExecutionComplete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (result JobExecutionListResultIterator, err error)

ListByJobExecutionComplete enumerates all values, automatically crossing page boundaries as required.

func (JobTargetExecutionsClient) ListByJobExecutionPreparer

func (client JobTargetExecutionsClient) ListByJobExecutionPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (*http.Request, error)

ListByJobExecutionPreparer prepares the ListByJobExecution request.

func (JobTargetExecutionsClient) ListByJobExecutionResponder

func (client JobTargetExecutionsClient) ListByJobExecutionResponder(resp *http.Response) (result JobExecutionListResult, err error)

ListByJobExecutionResponder handles the response to the ListByJobExecution request. The method always closes the http.Response Body.

func (JobTargetExecutionsClient) ListByJobExecutionSender

func (client JobTargetExecutionsClient) ListByJobExecutionSender(req *http.Request) (*http.Response, error)

ListByJobExecutionSender sends the ListByJobExecution request. The method will close the http.Response Body if it receives an error.

func (JobTargetExecutionsClient) ListByStep

func (client JobTargetExecutionsClient) ListByStep(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID, stepName string, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (result JobExecutionListResultPage, err error)

ListByStep lists the target executions of a job step execution. 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. jobAgentName - the name of the job agent. jobName - the name of the job to get. jobExecutionID - the id of the job execution stepName - the name of the step. createTimeMin - if specified, only job executions created at or after the specified time are included. createTimeMax - if specified, only job executions created before the specified time are included. endTimeMin - if specified, only job executions completed at or after the specified time are included. endTimeMax - if specified, only job executions completed before the specified time are included. isActive - if specified, only active or only completed job executions are included. skip - the number of elements in the collection to skip. top - the number of elements to return from the collection.

func (JobTargetExecutionsClient) ListByStepComplete

func (client JobTargetExecutionsClient) ListByStepComplete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID, stepName string, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (result JobExecutionListResultIterator, err error)

ListByStepComplete enumerates all values, automatically crossing page boundaries as required.

func (JobTargetExecutionsClient) ListByStepPreparer

func (client JobTargetExecutionsClient) ListByStepPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobExecutionID uuid.UUID, stepName string, createTimeMin *date.Time, createTimeMax *date.Time, endTimeMin *date.Time, endTimeMax *date.Time, isActive *bool, skip *int32, top *int32) (*http.Request, error)

ListByStepPreparer prepares the ListByStep request.

func (JobTargetExecutionsClient) ListByStepResponder

func (client JobTargetExecutionsClient) ListByStepResponder(resp *http.Response) (result JobExecutionListResult, err error)

ListByStepResponder handles the response to the ListByStep request. The method always closes the http.Response Body.

func (JobTargetExecutionsClient) ListByStepSender

func (client JobTargetExecutionsClient) ListByStepSender(req *http.Request) (*http.Response, error)

ListByStepSender sends the ListByStep request. The method will close the http.Response Body if it receives an error.

type JobTargetGroup

type JobTargetGroup struct {
	autorest.Response `json:"-"`
	// JobTargetGroupProperties - Resource properties.
	*JobTargetGroupProperties `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"`
}

JobTargetGroup a group of job targets.

func (JobTargetGroup) MarshalJSON

func (jtg JobTargetGroup) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for JobTargetGroup.

func (*JobTargetGroup) UnmarshalJSON

func (jtg *JobTargetGroup) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for JobTargetGroup struct.

type JobTargetGroupListResult

type JobTargetGroupListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]JobTargetGroup `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

JobTargetGroupListResult a list of target groups.

func (JobTargetGroupListResult) IsEmpty

func (jtglr JobTargetGroupListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type JobTargetGroupListResultIterator

type JobTargetGroupListResultIterator struct {
	// contains filtered or unexported fields
}

JobTargetGroupListResultIterator provides access to a complete listing of JobTargetGroup values.

func NewJobTargetGroupListResultIterator

func NewJobTargetGroupListResultIterator(page JobTargetGroupListResultPage) JobTargetGroupListResultIterator

Creates a new instance of the JobTargetGroupListResultIterator type.

func (*JobTargetGroupListResultIterator) Next

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 (*JobTargetGroupListResultIterator) NextWithContext

func (iter *JobTargetGroupListResultIterator) 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 (JobTargetGroupListResultIterator) NotDone

func (iter JobTargetGroupListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (JobTargetGroupListResultIterator) Response

Response returns the raw server response from the last page request.

func (JobTargetGroupListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type JobTargetGroupListResultPage

type JobTargetGroupListResultPage struct {
	// contains filtered or unexported fields
}

JobTargetGroupListResultPage contains a page of JobTargetGroup values.

func NewJobTargetGroupListResultPage

func NewJobTargetGroupListResultPage(getNextPage func(context.Context, JobTargetGroupListResult) (JobTargetGroupListResult, error)) JobTargetGroupListResultPage

Creates a new instance of the JobTargetGroupListResultPage type.

func (*JobTargetGroupListResultPage) Next

func (page *JobTargetGroupListResultPage) 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 (*JobTargetGroupListResultPage) NextWithContext

func (page *JobTargetGroupListResultPage) 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 (JobTargetGroupListResultPage) NotDone

func (page JobTargetGroupListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (JobTargetGroupListResultPage) Response

Response returns the raw server response from the last page request.

func (JobTargetGroupListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type JobTargetGroupMembershipType

type JobTargetGroupMembershipType string

JobTargetGroupMembershipType enumerates the values for job target group membership type.

const (
	// Exclude ...
	Exclude JobTargetGroupMembershipType = "Exclude"
	// Include ...
	Include JobTargetGroupMembershipType = "Include"
)

func PossibleJobTargetGroupMembershipTypeValues

func PossibleJobTargetGroupMembershipTypeValues() []JobTargetGroupMembershipType

PossibleJobTargetGroupMembershipTypeValues returns an array of possible values for the JobTargetGroupMembershipType const type.

type JobTargetGroupProperties

type JobTargetGroupProperties struct {
	// Members - Members of the target group.
	Members *[]JobTarget `json:"members,omitempty"`
}

JobTargetGroupProperties properties of job target group.

type JobTargetGroupsClient

type JobTargetGroupsClient struct {
	BaseClient
}

JobTargetGroupsClient 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 NewJobTargetGroupsClient

func NewJobTargetGroupsClient(subscriptionID string) JobTargetGroupsClient

NewJobTargetGroupsClient creates an instance of the JobTargetGroupsClient client.

func NewJobTargetGroupsClientWithBaseURI

func NewJobTargetGroupsClientWithBaseURI(baseURI string, subscriptionID string) JobTargetGroupsClient

NewJobTargetGroupsClientWithBaseURI creates an instance of the JobTargetGroupsClient client.

func (JobTargetGroupsClient) CreateOrUpdate

func (client JobTargetGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, targetGroupName string, parameters JobTargetGroup) (result JobTargetGroup, err error)

CreateOrUpdate creates or updates a target group. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. jobAgentName - the name of the job agent. targetGroupName - the name of the target group. parameters - the requested state of the target group.

func (JobTargetGroupsClient) CreateOrUpdatePreparer

func (client JobTargetGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, targetGroupName string, parameters JobTargetGroup) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (JobTargetGroupsClient) CreateOrUpdateResponder

func (client JobTargetGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result JobTargetGroup, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (JobTargetGroupsClient) CreateOrUpdateSender

func (client JobTargetGroupsClient) 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 (JobTargetGroupsClient) Delete

func (client JobTargetGroupsClient) Delete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, targetGroupName string) (result autorest.Response, err error)

Delete deletes a target group. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. jobAgentName - the name of the job agent. targetGroupName - the name of the target group.

func (JobTargetGroupsClient) DeletePreparer

func (client JobTargetGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, targetGroupName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (JobTargetGroupsClient) DeleteResponder

func (client JobTargetGroupsClient) 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 (JobTargetGroupsClient) DeleteSender

func (client JobTargetGroupsClient) 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 (JobTargetGroupsClient) Get

func (client JobTargetGroupsClient) Get(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, targetGroupName string) (result JobTargetGroup, err error)

Get gets a target group. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. jobAgentName - the name of the job agent. targetGroupName - the name of the target group.

func (JobTargetGroupsClient) GetPreparer

func (client JobTargetGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, targetGroupName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (JobTargetGroupsClient) GetResponder

func (client JobTargetGroupsClient) GetResponder(resp *http.Response) (result JobTargetGroup, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (JobTargetGroupsClient) GetSender

func (client JobTargetGroupsClient) 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 (JobTargetGroupsClient) ListByAgent

func (client JobTargetGroupsClient) ListByAgent(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string) (result JobTargetGroupListResultPage, err error)

ListByAgent gets all target groups in an agent. 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. jobAgentName - the name of the job agent.

func (JobTargetGroupsClient) ListByAgentComplete

func (client JobTargetGroupsClient) ListByAgentComplete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string) (result JobTargetGroupListResultIterator, err error)

ListByAgentComplete enumerates all values, automatically crossing page boundaries as required.

func (JobTargetGroupsClient) ListByAgentPreparer

func (client JobTargetGroupsClient) ListByAgentPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string) (*http.Request, error)

ListByAgentPreparer prepares the ListByAgent request.

func (JobTargetGroupsClient) ListByAgentResponder

func (client JobTargetGroupsClient) ListByAgentResponder(resp *http.Response) (result JobTargetGroupListResult, err error)

ListByAgentResponder handles the response to the ListByAgent request. The method always closes the http.Response Body.

func (JobTargetGroupsClient) ListByAgentSender

func (client JobTargetGroupsClient) ListByAgentSender(req *http.Request) (*http.Response, error)

ListByAgentSender sends the ListByAgent request. The method will close the http.Response Body if it receives an error.

type JobTargetType

type JobTargetType string

JobTargetType enumerates the values for job target type.

const (
	// JobTargetTypeSQLDatabase ...
	JobTargetTypeSQLDatabase JobTargetType = "SqlDatabase"
	// JobTargetTypeSQLElasticPool ...
	JobTargetTypeSQLElasticPool JobTargetType = "SqlElasticPool"
	// JobTargetTypeSQLServer ...
	JobTargetTypeSQLServer JobTargetType = "SqlServer"
	// JobTargetTypeSQLShardMap ...
	JobTargetTypeSQLShardMap JobTargetType = "SqlShardMap"
	// JobTargetTypeTargetGroup ...
	JobTargetTypeTargetGroup JobTargetType = "TargetGroup"
)

func PossibleJobTargetTypeValues

func PossibleJobTargetTypeValues() []JobTargetType

PossibleJobTargetTypeValues returns an array of possible values for the JobTargetType const type.

type JobVersion

type JobVersion struct {
	autorest.Response `json:"-"`
	// 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"`
}

JobVersion a job version.

type JobVersionListResult

type JobVersionListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]JobVersion `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

JobVersionListResult a list of job versions.

func (JobVersionListResult) IsEmpty

func (jvlr JobVersionListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type JobVersionListResultIterator

type JobVersionListResultIterator struct {
	// contains filtered or unexported fields
}

JobVersionListResultIterator provides access to a complete listing of JobVersion values.

func NewJobVersionListResultIterator

func NewJobVersionListResultIterator(page JobVersionListResultPage) JobVersionListResultIterator

Creates a new instance of the JobVersionListResultIterator type.

func (*JobVersionListResultIterator) Next

func (iter *JobVersionListResultIterator) 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 (*JobVersionListResultIterator) NextWithContext

func (iter *JobVersionListResultIterator) 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 (JobVersionListResultIterator) NotDone

func (iter JobVersionListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (JobVersionListResultIterator) Response

Response returns the raw server response from the last page request.

func (JobVersionListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type JobVersionListResultPage

type JobVersionListResultPage struct {
	// contains filtered or unexported fields
}

JobVersionListResultPage contains a page of JobVersion values.

func NewJobVersionListResultPage

func NewJobVersionListResultPage(getNextPage func(context.Context, JobVersionListResult) (JobVersionListResult, error)) JobVersionListResultPage

Creates a new instance of the JobVersionListResultPage type.

func (*JobVersionListResultPage) Next

func (page *JobVersionListResultPage) 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 (*JobVersionListResultPage) NextWithContext

func (page *JobVersionListResultPage) 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 (JobVersionListResultPage) NotDone

func (page JobVersionListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (JobVersionListResultPage) Response

Response returns the raw server response from the last page request.

func (JobVersionListResultPage) Values

func (page JobVersionListResultPage) Values() []JobVersion

Values returns the slice of values for the current page or nil if there are no values.

type JobVersionsClient

type JobVersionsClient struct {
	BaseClient
}

JobVersionsClient 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 NewJobVersionsClient

func NewJobVersionsClient(subscriptionID string) JobVersionsClient

NewJobVersionsClient creates an instance of the JobVersionsClient client.

func NewJobVersionsClientWithBaseURI

func NewJobVersionsClientWithBaseURI(baseURI string, subscriptionID string) JobVersionsClient

NewJobVersionsClientWithBaseURI creates an instance of the JobVersionsClient client.

func (JobVersionsClient) Get

func (client JobVersionsClient) Get(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobVersion int32) (result JobVersion, err error)

Get gets a job version. 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. jobAgentName - the name of the job agent. jobName - the name of the job. jobVersion - the version of the job to get.

func (JobVersionsClient) GetPreparer

func (client JobVersionsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, jobVersion int32) (*http.Request, error)

GetPreparer prepares the Get request.

func (JobVersionsClient) GetResponder

func (client JobVersionsClient) GetResponder(resp *http.Response) (result JobVersion, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (JobVersionsClient) GetSender

func (client JobVersionsClient) 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 (JobVersionsClient) ListByJob

func (client JobVersionsClient) ListByJob(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string) (result JobVersionListResultPage, err error)

ListByJob gets all versions of a job. 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. jobAgentName - the name of the job agent. jobName - the name of the job to get.

func (JobVersionsClient) ListByJobComplete

func (client JobVersionsClient) ListByJobComplete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string) (result JobVersionListResultIterator, err error)

ListByJobComplete enumerates all values, automatically crossing page boundaries as required.

func (JobVersionsClient) ListByJobPreparer

func (client JobVersionsClient) ListByJobPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string) (*http.Request, error)

ListByJobPreparer prepares the ListByJob request.

func (JobVersionsClient) ListByJobResponder

func (client JobVersionsClient) ListByJobResponder(resp *http.Response) (result JobVersionListResult, err error)

ListByJobResponder handles the response to the ListByJob request. The method always closes the http.Response Body.

func (JobVersionsClient) ListByJobSender

func (client JobVersionsClient) ListByJobSender(req *http.Request) (*http.Response, error)

ListByJobSender sends the ListByJob request. The method will close the http.Response Body if it receives an error.

type JobsClient

type JobsClient struct {
	BaseClient
}

JobsClient 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 NewJobsClient

func NewJobsClient(subscriptionID string) JobsClient

NewJobsClient creates an instance of the JobsClient client.

func NewJobsClientWithBaseURI

func NewJobsClientWithBaseURI(baseURI string, subscriptionID string) JobsClient

NewJobsClientWithBaseURI creates an instance of the JobsClient client.

func (JobsClient) CreateOrUpdate

func (client JobsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, parameters Job) (result Job, err error)

CreateOrUpdate creates or updates a job. 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. jobAgentName - the name of the job agent. jobName - the name of the job to get. parameters - the requested job state.

func (JobsClient) CreateOrUpdatePreparer

func (client JobsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string, parameters Job) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (JobsClient) CreateOrUpdateResponder

func (client JobsClient) CreateOrUpdateResponder(resp *http.Response) (result Job, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (JobsClient) CreateOrUpdateSender

func (client JobsClient) 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 (JobsClient) Delete

func (client JobsClient) Delete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string) (result autorest.Response, err error)

Delete deletes a job. 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. jobAgentName - the name of the job agent. jobName - the name of the job to delete.

func (JobsClient) DeletePreparer

func (client JobsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (JobsClient) DeleteResponder

func (client JobsClient) 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 (JobsClient) DeleteSender

func (client JobsClient) 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 (JobsClient) Get

func (client JobsClient) Get(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string) (result Job, err error)

Get gets a job. 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. jobAgentName - the name of the job agent. jobName - the name of the job to get.

func (JobsClient) GetPreparer

func (client JobsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string, jobName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (JobsClient) GetResponder

func (client JobsClient) GetResponder(resp *http.Response) (result Job, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (JobsClient) GetSender

func (client JobsClient) 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 (JobsClient) ListByAgent

func (client JobsClient) ListByAgent(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string) (result JobListResultPage, err error)

ListByAgent gets a list of jobs. 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. jobAgentName - the name of the job agent.

func (JobsClient) ListByAgentComplete

func (client JobsClient) ListByAgentComplete(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string) (result JobListResultIterator, err error)

ListByAgentComplete enumerates all values, automatically crossing page boundaries as required.

func (JobsClient) ListByAgentPreparer

func (client JobsClient) ListByAgentPreparer(ctx context.Context, resourceGroupName string, serverName string, jobAgentName string) (*http.Request, error)

ListByAgentPreparer prepares the ListByAgent request.

func (JobsClient) ListByAgentResponder

func (client JobsClient) ListByAgentResponder(resp *http.Response) (result JobListResult, err error)

ListByAgentResponder handles the response to the ListByAgent request. The method always closes the http.Response Body.

func (JobsClient) ListByAgentSender

func (client JobsClient) ListByAgentSender(req *http.Request) (*http.Response, error)

ListByAgentSender sends the ListByAgent request. The method will close the http.Response Body if it receives an error.

type LicenseTypeCapability

type LicenseTypeCapability struct {
	// Name - READ-ONLY; License type identifier.
	Name *string `json:"name,omitempty"`
	// Status - READ-ONLY; The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled'
	Status CapabilityStatus `json:"status,omitempty"`
	// Reason - The reason for the capability not being available.
	Reason *string `json:"reason,omitempty"`
}

LicenseTypeCapability the license type capability

type LocationCapabilities

type LocationCapabilities struct {
	autorest.Response `json:"-"`
	// Name - READ-ONLY; The location name.
	Name *string `json:"name,omitempty"`
	// SupportedServerVersions - READ-ONLY; The list of supported server versions.
	SupportedServerVersions *[]ServerVersionCapability `json:"supportedServerVersions,omitempty"`
	// SupportedManagedInstanceVersions - READ-ONLY; The list of supported managed instance versions.
	SupportedManagedInstanceVersions *[]ManagedInstanceVersionCapability `json:"supportedManagedInstanceVersions,omitempty"`
	// Status - READ-ONLY; The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled'
	Status CapabilityStatus `json:"status,omitempty"`
	// Reason - The reason for the capability not being available.
	Reason *string `json:"reason,omitempty"`
}

LocationCapabilities the location capability.

type LogSizeCapability

type LogSizeCapability struct {
	// Limit - READ-ONLY; The log size limit (see 'unit' for the units).
	Limit *int32 `json:"limit,omitempty"`
	// Unit - READ-ONLY; The units that the limit is expressed in. Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes', 'Percent'
	Unit LogSizeUnit `json:"unit,omitempty"`
}

LogSizeCapability the log size capability.

type LogSizeUnit

type LogSizeUnit string

LogSizeUnit enumerates the values for log size unit.

const (
	// Gigabytes ...
	Gigabytes LogSizeUnit = "Gigabytes"
	// Megabytes ...
	Megabytes LogSizeUnit = "Megabytes"
	// Percent ...
	Percent LogSizeUnit = "Percent"
	// Petabytes ...
	Petabytes LogSizeUnit = "Petabytes"
	// Terabytes ...
	Terabytes LogSizeUnit = "Terabytes"
)

func PossibleLogSizeUnitValues

func PossibleLogSizeUnitValues() []LogSizeUnit

PossibleLogSizeUnitValues returns an array of possible values for the LogSizeUnit const type.

type LogicalServerSecurityAlertPolicyListResult

type LogicalServerSecurityAlertPolicyListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]ServerSecurityAlertPolicy `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

LogicalServerSecurityAlertPolicyListResult a list of the server's security alert policies.

func (LogicalServerSecurityAlertPolicyListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type LogicalServerSecurityAlertPolicyListResultIterator

type LogicalServerSecurityAlertPolicyListResultIterator struct {
	// contains filtered or unexported fields
}

LogicalServerSecurityAlertPolicyListResultIterator provides access to a complete listing of ServerSecurityAlertPolicy values.

func NewLogicalServerSecurityAlertPolicyListResultIterator

func NewLogicalServerSecurityAlertPolicyListResultIterator(page LogicalServerSecurityAlertPolicyListResultPage) LogicalServerSecurityAlertPolicyListResultIterator

Creates a new instance of the LogicalServerSecurityAlertPolicyListResultIterator type.

func (*LogicalServerSecurityAlertPolicyListResultIterator) Next

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 (*LogicalServerSecurityAlertPolicyListResultIterator) NextWithContext

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 (LogicalServerSecurityAlertPolicyListResultIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (LogicalServerSecurityAlertPolicyListResultIterator) Response

Response returns the raw server response from the last page request.

func (LogicalServerSecurityAlertPolicyListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type LogicalServerSecurityAlertPolicyListResultPage

type LogicalServerSecurityAlertPolicyListResultPage struct {
	// contains filtered or unexported fields
}

LogicalServerSecurityAlertPolicyListResultPage contains a page of ServerSecurityAlertPolicy values.

func NewLogicalServerSecurityAlertPolicyListResultPage

Creates a new instance of the LogicalServerSecurityAlertPolicyListResultPage type.

func (*LogicalServerSecurityAlertPolicyListResultPage) Next

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 (*LogicalServerSecurityAlertPolicyListResultPage) NextWithContext

func (page *LogicalServerSecurityAlertPolicyListResultPage) 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 (LogicalServerSecurityAlertPolicyListResultPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (LogicalServerSecurityAlertPolicyListResultPage) Response

Response returns the raw server response from the last page request.

func (LogicalServerSecurityAlertPolicyListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type LongTermRetentionBackup

type LongTermRetentionBackup struct {
	autorest.Response `json:"-"`
	// LongTermRetentionBackupProperties - Resource properties.
	*LongTermRetentionBackupProperties `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"`
}

LongTermRetentionBackup a long term retention backup.

func (LongTermRetentionBackup) MarshalJSON

func (ltrb LongTermRetentionBackup) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LongTermRetentionBackup.

func (*LongTermRetentionBackup) UnmarshalJSON

func (ltrb *LongTermRetentionBackup) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for LongTermRetentionBackup struct.

type LongTermRetentionBackupListResult

type LongTermRetentionBackupListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]LongTermRetentionBackup `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

LongTermRetentionBackupListResult a list of long term retention backups.

func (LongTermRetentionBackupListResult) IsEmpty

func (ltrblr LongTermRetentionBackupListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type LongTermRetentionBackupListResultIterator

type LongTermRetentionBackupListResultIterator struct {
	// contains filtered or unexported fields
}

LongTermRetentionBackupListResultIterator provides access to a complete listing of LongTermRetentionBackup values.

func NewLongTermRetentionBackupListResultIterator

func NewLongTermRetentionBackupListResultIterator(page LongTermRetentionBackupListResultPage) LongTermRetentionBackupListResultIterator

Creates a new instance of the LongTermRetentionBackupListResultIterator type.

func (*LongTermRetentionBackupListResultIterator) Next

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 (*LongTermRetentionBackupListResultIterator) NextWithContext

func (iter *LongTermRetentionBackupListResultIterator) 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 (LongTermRetentionBackupListResultIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (LongTermRetentionBackupListResultIterator) Response

Response returns the raw server response from the last page request.

func (LongTermRetentionBackupListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type LongTermRetentionBackupListResultPage

type LongTermRetentionBackupListResultPage struct {
	// contains filtered or unexported fields
}

LongTermRetentionBackupListResultPage contains a page of LongTermRetentionBackup values.

func NewLongTermRetentionBackupListResultPage

Creates a new instance of the LongTermRetentionBackupListResultPage type.

func (*LongTermRetentionBackupListResultPage) Next

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 (*LongTermRetentionBackupListResultPage) NextWithContext

func (page *LongTermRetentionBackupListResultPage) 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 (LongTermRetentionBackupListResultPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (LongTermRetentionBackupListResultPage) Response

Response returns the raw server response from the last page request.

func (LongTermRetentionBackupListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type LongTermRetentionBackupProperties

type LongTermRetentionBackupProperties struct {
	// ServerName - READ-ONLY; The server name that the backup database belong to.
	ServerName *string `json:"serverName,omitempty"`
	// ServerCreateTime - READ-ONLY; The create time of the server.
	ServerCreateTime *date.Time `json:"serverCreateTime,omitempty"`
	// DatabaseName - READ-ONLY; The name of the database the backup belong to
	DatabaseName *string `json:"databaseName,omitempty"`
	// DatabaseDeletionTime - READ-ONLY; The delete time of the database
	DatabaseDeletionTime *date.Time `json:"databaseDeletionTime,omitempty"`
	// BackupTime - READ-ONLY; The time the backup was taken
	BackupTime *date.Time `json:"backupTime,omitempty"`
	// BackupExpirationTime - READ-ONLY; The time the long term retention backup will expire.
	BackupExpirationTime *date.Time `json:"backupExpirationTime,omitempty"`
}

LongTermRetentionBackupProperties properties of a long term retention backup

type LongTermRetentionBackupsClient

type LongTermRetentionBackupsClient struct {
	BaseClient
}

LongTermRetentionBackupsClient 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 NewLongTermRetentionBackupsClient

func NewLongTermRetentionBackupsClient(subscriptionID string) LongTermRetentionBackupsClient

NewLongTermRetentionBackupsClient creates an instance of the LongTermRetentionBackupsClient client.

func NewLongTermRetentionBackupsClientWithBaseURI

func NewLongTermRetentionBackupsClientWithBaseURI(baseURI string, subscriptionID string) LongTermRetentionBackupsClient

NewLongTermRetentionBackupsClientWithBaseURI creates an instance of the LongTermRetentionBackupsClient client.

func (LongTermRetentionBackupsClient) Delete

func (client LongTermRetentionBackupsClient) Delete(ctx context.Context, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, backupName string) (result LongTermRetentionBackupsDeleteFuture, err error)

Delete deletes a long term retention backup. Parameters: locationName - the location of the database longTermRetentionServerName - the name of the server longTermRetentionDatabaseName - the name of the database backupName - the backup name.

func (LongTermRetentionBackupsClient) DeleteByResourceGroup

func (client LongTermRetentionBackupsClient) DeleteByResourceGroup(ctx context.Context, resourceGroupName string, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, backupName string) (result LongTermRetentionBackupsDeleteByResourceGroupFuture, err error)

DeleteByResourceGroup deletes a long term retention backup. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. locationName - the location of the database longTermRetentionServerName - the name of the server longTermRetentionDatabaseName - the name of the database backupName - the backup name.

func (LongTermRetentionBackupsClient) DeleteByResourceGroupPreparer

func (client LongTermRetentionBackupsClient) DeleteByResourceGroupPreparer(ctx context.Context, resourceGroupName string, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, backupName string) (*http.Request, error)

DeleteByResourceGroupPreparer prepares the DeleteByResourceGroup request.

func (LongTermRetentionBackupsClient) DeleteByResourceGroupResponder

func (client LongTermRetentionBackupsClient) DeleteByResourceGroupResponder(resp *http.Response) (result autorest.Response, err error)

DeleteByResourceGroupResponder handles the response to the DeleteByResourceGroup request. The method always closes the http.Response Body.

func (LongTermRetentionBackupsClient) DeleteByResourceGroupSender

func (client LongTermRetentionBackupsClient) DeleteByResourceGroupSender(req *http.Request) (future LongTermRetentionBackupsDeleteByResourceGroupFuture, err error)

DeleteByResourceGroupSender sends the DeleteByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (LongTermRetentionBackupsClient) DeletePreparer

func (client LongTermRetentionBackupsClient) DeletePreparer(ctx context.Context, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, backupName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (LongTermRetentionBackupsClient) DeleteResponder

func (client LongTermRetentionBackupsClient) 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 (LongTermRetentionBackupsClient) DeleteSender

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (LongTermRetentionBackupsClient) Get

func (client LongTermRetentionBackupsClient) Get(ctx context.Context, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, backupName string) (result LongTermRetentionBackup, err error)

Get gets a long term retention backup. Parameters: locationName - the location of the database. longTermRetentionServerName - the name of the server longTermRetentionDatabaseName - the name of the database backupName - the backup name.

func (LongTermRetentionBackupsClient) GetByResourceGroup

func (client LongTermRetentionBackupsClient) GetByResourceGroup(ctx context.Context, resourceGroupName string, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, backupName string) (result LongTermRetentionBackup, err error)

GetByResourceGroup gets a long term retention backup. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. locationName - the location of the database. longTermRetentionServerName - the name of the server longTermRetentionDatabaseName - the name of the database backupName - the backup name.

func (LongTermRetentionBackupsClient) GetByResourceGroupPreparer

func (client LongTermRetentionBackupsClient) GetByResourceGroupPreparer(ctx context.Context, resourceGroupName string, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, backupName string) (*http.Request, error)

GetByResourceGroupPreparer prepares the GetByResourceGroup request.

func (LongTermRetentionBackupsClient) GetByResourceGroupResponder

func (client LongTermRetentionBackupsClient) GetByResourceGroupResponder(resp *http.Response) (result LongTermRetentionBackup, err error)

GetByResourceGroupResponder handles the response to the GetByResourceGroup request. The method always closes the http.Response Body.

func (LongTermRetentionBackupsClient) GetByResourceGroupSender

func (client LongTermRetentionBackupsClient) GetByResourceGroupSender(req *http.Request) (*http.Response, error)

GetByResourceGroupSender sends the GetByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (LongTermRetentionBackupsClient) GetPreparer

func (client LongTermRetentionBackupsClient) GetPreparer(ctx context.Context, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, backupName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (LongTermRetentionBackupsClient) GetResponder

func (client LongTermRetentionBackupsClient) GetResponder(resp *http.Response) (result LongTermRetentionBackup, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (LongTermRetentionBackupsClient) GetSender

func (client LongTermRetentionBackupsClient) 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 (LongTermRetentionBackupsClient) ListByDatabase

func (client LongTermRetentionBackupsClient) ListByDatabase(ctx context.Context, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (result LongTermRetentionBackupListResultPage, err error)

ListByDatabase lists all long term retention backups for a database. Parameters: locationName - the location of the database longTermRetentionServerName - the name of the server longTermRetentionDatabaseName - the name of the database onlyLatestPerDatabase - whether or not to only get the latest backup for each database. databaseState - whether to query against just live databases, just deleted databases, or all databases.

func (LongTermRetentionBackupsClient) ListByDatabaseComplete

func (client LongTermRetentionBackupsClient) ListByDatabaseComplete(ctx context.Context, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (result LongTermRetentionBackupListResultIterator, err error)

ListByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.

func (LongTermRetentionBackupsClient) ListByDatabasePreparer

func (client LongTermRetentionBackupsClient) ListByDatabasePreparer(ctx context.Context, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (*http.Request, error)

ListByDatabasePreparer prepares the ListByDatabase request.

func (LongTermRetentionBackupsClient) ListByDatabaseResponder

func (client LongTermRetentionBackupsClient) ListByDatabaseResponder(resp *http.Response) (result LongTermRetentionBackupListResult, err error)

ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.

func (LongTermRetentionBackupsClient) ListByDatabaseSender

func (client LongTermRetentionBackupsClient) 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 (LongTermRetentionBackupsClient) ListByLocation

func (client LongTermRetentionBackupsClient) ListByLocation(ctx context.Context, locationName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (result LongTermRetentionBackupListResultPage, err error)

ListByLocation lists the long term retention backups for a given location. Parameters: locationName - the location of the database onlyLatestPerDatabase - whether or not to only get the latest backup for each database. databaseState - whether to query against just live databases, just deleted databases, or all databases.

func (LongTermRetentionBackupsClient) ListByLocationComplete

func (client LongTermRetentionBackupsClient) ListByLocationComplete(ctx context.Context, locationName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (result LongTermRetentionBackupListResultIterator, err error)

ListByLocationComplete enumerates all values, automatically crossing page boundaries as required.

func (LongTermRetentionBackupsClient) ListByLocationPreparer

func (client LongTermRetentionBackupsClient) ListByLocationPreparer(ctx context.Context, locationName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (*http.Request, error)

ListByLocationPreparer prepares the ListByLocation request.

func (LongTermRetentionBackupsClient) ListByLocationResponder

func (client LongTermRetentionBackupsClient) ListByLocationResponder(resp *http.Response) (result LongTermRetentionBackupListResult, err error)

ListByLocationResponder handles the response to the ListByLocation request. The method always closes the http.Response Body.

func (LongTermRetentionBackupsClient) ListByLocationSender

func (client LongTermRetentionBackupsClient) 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.

func (LongTermRetentionBackupsClient) ListByResourceGroupDatabase

func (client LongTermRetentionBackupsClient) ListByResourceGroupDatabase(ctx context.Context, resourceGroupName string, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (result LongTermRetentionBackupListResultPage, err error)

ListByResourceGroupDatabase lists all long term retention backups for 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. locationName - the location of the database longTermRetentionServerName - the name of the server longTermRetentionDatabaseName - the name of the database onlyLatestPerDatabase - whether or not to only get the latest backup for each database. databaseState - whether to query against just live databases, just deleted databases, or all databases.

func (LongTermRetentionBackupsClient) ListByResourceGroupDatabaseComplete

func (client LongTermRetentionBackupsClient) ListByResourceGroupDatabaseComplete(ctx context.Context, resourceGroupName string, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (result LongTermRetentionBackupListResultIterator, err error)

ListByResourceGroupDatabaseComplete enumerates all values, automatically crossing page boundaries as required.

func (LongTermRetentionBackupsClient) ListByResourceGroupDatabasePreparer

func (client LongTermRetentionBackupsClient) ListByResourceGroupDatabasePreparer(ctx context.Context, resourceGroupName string, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (*http.Request, error)

ListByResourceGroupDatabasePreparer prepares the ListByResourceGroupDatabase request.

func (LongTermRetentionBackupsClient) ListByResourceGroupDatabaseResponder

func (client LongTermRetentionBackupsClient) ListByResourceGroupDatabaseResponder(resp *http.Response) (result LongTermRetentionBackupListResult, err error)

ListByResourceGroupDatabaseResponder handles the response to the ListByResourceGroupDatabase request. The method always closes the http.Response Body.

func (LongTermRetentionBackupsClient) ListByResourceGroupDatabaseSender

func (client LongTermRetentionBackupsClient) ListByResourceGroupDatabaseSender(req *http.Request) (*http.Response, error)

ListByResourceGroupDatabaseSender sends the ListByResourceGroupDatabase request. The method will close the http.Response Body if it receives an error.

func (LongTermRetentionBackupsClient) ListByResourceGroupLocation

func (client LongTermRetentionBackupsClient) ListByResourceGroupLocation(ctx context.Context, resourceGroupName string, locationName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (result LongTermRetentionBackupListResultPage, err error)

ListByResourceGroupLocation lists the long term retention backups for a given location. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. locationName - the location of the database onlyLatestPerDatabase - whether or not to only get the latest backup for each database. databaseState - whether to query against just live databases, just deleted databases, or all databases.

func (LongTermRetentionBackupsClient) ListByResourceGroupLocationComplete

func (client LongTermRetentionBackupsClient) ListByResourceGroupLocationComplete(ctx context.Context, resourceGroupName string, locationName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (result LongTermRetentionBackupListResultIterator, err error)

ListByResourceGroupLocationComplete enumerates all values, automatically crossing page boundaries as required.

func (LongTermRetentionBackupsClient) ListByResourceGroupLocationPreparer

func (client LongTermRetentionBackupsClient) ListByResourceGroupLocationPreparer(ctx context.Context, resourceGroupName string, locationName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (*http.Request, error)

ListByResourceGroupLocationPreparer prepares the ListByResourceGroupLocation request.

func (LongTermRetentionBackupsClient) ListByResourceGroupLocationResponder

func (client LongTermRetentionBackupsClient) ListByResourceGroupLocationResponder(resp *http.Response) (result LongTermRetentionBackupListResult, err error)

ListByResourceGroupLocationResponder handles the response to the ListByResourceGroupLocation request. The method always closes the http.Response Body.

func (LongTermRetentionBackupsClient) ListByResourceGroupLocationSender

func (client LongTermRetentionBackupsClient) ListByResourceGroupLocationSender(req *http.Request) (*http.Response, error)

ListByResourceGroupLocationSender sends the ListByResourceGroupLocation request. The method will close the http.Response Body if it receives an error.

func (LongTermRetentionBackupsClient) ListByResourceGroupServer

func (client LongTermRetentionBackupsClient) ListByResourceGroupServer(ctx context.Context, resourceGroupName string, locationName string, longTermRetentionServerName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (result LongTermRetentionBackupListResultPage, err error)

ListByResourceGroupServer lists the long term retention backups for a given server. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. locationName - the location of the database longTermRetentionServerName - the name of the server onlyLatestPerDatabase - whether or not to only get the latest backup for each database. databaseState - whether to query against just live databases, just deleted databases, or all databases.

func (LongTermRetentionBackupsClient) ListByResourceGroupServerComplete

func (client LongTermRetentionBackupsClient) ListByResourceGroupServerComplete(ctx context.Context, resourceGroupName string, locationName string, longTermRetentionServerName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (result LongTermRetentionBackupListResultIterator, err error)

ListByResourceGroupServerComplete enumerates all values, automatically crossing page boundaries as required.

func (LongTermRetentionBackupsClient) ListByResourceGroupServerPreparer

func (client LongTermRetentionBackupsClient) ListByResourceGroupServerPreparer(ctx context.Context, resourceGroupName string, locationName string, longTermRetentionServerName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (*http.Request, error)

ListByResourceGroupServerPreparer prepares the ListByResourceGroupServer request.

func (LongTermRetentionBackupsClient) ListByResourceGroupServerResponder

func (client LongTermRetentionBackupsClient) ListByResourceGroupServerResponder(resp *http.Response) (result LongTermRetentionBackupListResult, err error)

ListByResourceGroupServerResponder handles the response to the ListByResourceGroupServer request. The method always closes the http.Response Body.

func (LongTermRetentionBackupsClient) ListByResourceGroupServerSender

func (client LongTermRetentionBackupsClient) ListByResourceGroupServerSender(req *http.Request) (*http.Response, error)

ListByResourceGroupServerSender sends the ListByResourceGroupServer request. The method will close the http.Response Body if it receives an error.

func (LongTermRetentionBackupsClient) ListByServer

func (client LongTermRetentionBackupsClient) ListByServer(ctx context.Context, locationName string, longTermRetentionServerName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (result LongTermRetentionBackupListResultPage, err error)

ListByServer lists the long term retention backups for a given server. Parameters: locationName - the location of the database longTermRetentionServerName - the name of the server onlyLatestPerDatabase - whether or not to only get the latest backup for each database. databaseState - whether to query against just live databases, just deleted databases, or all databases.

func (LongTermRetentionBackupsClient) ListByServerComplete

func (client LongTermRetentionBackupsClient) ListByServerComplete(ctx context.Context, locationName string, longTermRetentionServerName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (result LongTermRetentionBackupListResultIterator, err error)

ListByServerComplete enumerates all values, automatically crossing page boundaries as required.

func (LongTermRetentionBackupsClient) ListByServerPreparer

func (client LongTermRetentionBackupsClient) ListByServerPreparer(ctx context.Context, locationName string, longTermRetentionServerName string, onlyLatestPerDatabase *bool, databaseState LongTermRetentionDatabaseState) (*http.Request, error)

ListByServerPreparer prepares the ListByServer request.

func (LongTermRetentionBackupsClient) ListByServerResponder

func (client LongTermRetentionBackupsClient) ListByServerResponder(resp *http.Response) (result LongTermRetentionBackupListResult, err error)

ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.

func (LongTermRetentionBackupsClient) ListByServerSender

func (client LongTermRetentionBackupsClient) 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 LongTermRetentionBackupsDeleteByResourceGroupFuture

type LongTermRetentionBackupsDeleteByResourceGroupFuture struct {
	azure.Future
}

LongTermRetentionBackupsDeleteByResourceGroupFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*LongTermRetentionBackupsDeleteByResourceGroupFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type LongTermRetentionBackupsDeleteFuture

type LongTermRetentionBackupsDeleteFuture struct {
	azure.Future
}

LongTermRetentionBackupsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*LongTermRetentionBackupsDeleteFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type LongTermRetentionDatabaseState

type LongTermRetentionDatabaseState string

LongTermRetentionDatabaseState enumerates the values for long term retention database state.

const (
	// All ...
	All LongTermRetentionDatabaseState = "All"
	// Deleted ...
	Deleted LongTermRetentionDatabaseState = "Deleted"
	// Live ...
	Live LongTermRetentionDatabaseState = "Live"
)

func PossibleLongTermRetentionDatabaseStateValues

func PossibleLongTermRetentionDatabaseStateValues() []LongTermRetentionDatabaseState

PossibleLongTermRetentionDatabaseStateValues returns an array of possible values for the LongTermRetentionDatabaseState const type.

type LongTermRetentionPolicyProperties

type LongTermRetentionPolicyProperties 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"`
}

LongTermRetentionPolicyProperties properties of a long term retention policy

type ManagedBackupShortTermRetentionPoliciesClient

type ManagedBackupShortTermRetentionPoliciesClient struct {
	BaseClient
}

ManagedBackupShortTermRetentionPoliciesClient 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 NewManagedBackupShortTermRetentionPoliciesClient

func NewManagedBackupShortTermRetentionPoliciesClient(subscriptionID string) ManagedBackupShortTermRetentionPoliciesClient

NewManagedBackupShortTermRetentionPoliciesClient creates an instance of the ManagedBackupShortTermRetentionPoliciesClient client.

func NewManagedBackupShortTermRetentionPoliciesClientWithBaseURI

func NewManagedBackupShortTermRetentionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ManagedBackupShortTermRetentionPoliciesClient

NewManagedBackupShortTermRetentionPoliciesClientWithBaseURI creates an instance of the ManagedBackupShortTermRetentionPoliciesClient client.

func (ManagedBackupShortTermRetentionPoliciesClient) CreateOrUpdate

func (client ManagedBackupShortTermRetentionPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters ManagedBackupShortTermRetentionPolicy) (result ManagedBackupShortTermRetentionPoliciesCreateOrUpdateFuture, err error)

CreateOrUpdate updates a managed 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. managedInstanceName - the name of the managed instance. databaseName - the name of the database. parameters - the short term retention policy info.

func (ManagedBackupShortTermRetentionPoliciesClient) CreateOrUpdatePreparer

func (client ManagedBackupShortTermRetentionPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters ManagedBackupShortTermRetentionPolicy) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ManagedBackupShortTermRetentionPoliciesClient) CreateOrUpdateResponder

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ManagedBackupShortTermRetentionPoliciesClient) CreateOrUpdateSender

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ManagedBackupShortTermRetentionPoliciesClient) Get

func (client ManagedBackupShortTermRetentionPoliciesClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result ManagedBackupShortTermRetentionPolicy, err error)

Get gets a managed 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. managedInstanceName - the name of the managed instance. databaseName - the name of the database.

func (ManagedBackupShortTermRetentionPoliciesClient) GetPreparer

func (client ManagedBackupShortTermRetentionPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ManagedBackupShortTermRetentionPoliciesClient) GetResponder

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ManagedBackupShortTermRetentionPoliciesClient) GetSender

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ManagedBackupShortTermRetentionPoliciesClient) ListByDatabase

func (client ManagedBackupShortTermRetentionPoliciesClient) ListByDatabase(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result ManagedBackupShortTermRetentionPolicyListResultPage, err error)

ListByDatabase gets a managed database's short term retention policy list. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database.

func (ManagedBackupShortTermRetentionPoliciesClient) ListByDatabaseComplete

func (client ManagedBackupShortTermRetentionPoliciesClient) ListByDatabaseComplete(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result ManagedBackupShortTermRetentionPolicyListResultIterator, err error)

ListByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.

func (ManagedBackupShortTermRetentionPoliciesClient) ListByDatabasePreparer

func (client ManagedBackupShortTermRetentionPoliciesClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (*http.Request, error)

ListByDatabasePreparer prepares the ListByDatabase request.

func (ManagedBackupShortTermRetentionPoliciesClient) ListByDatabaseResponder

ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.

func (ManagedBackupShortTermRetentionPoliciesClient) ListByDatabaseSender

func (client ManagedBackupShortTermRetentionPoliciesClient) 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 (ManagedBackupShortTermRetentionPoliciesClient) Update

func (client ManagedBackupShortTermRetentionPoliciesClient) Update(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters ManagedBackupShortTermRetentionPolicy) (result ManagedBackupShortTermRetentionPoliciesUpdateFuture, err error)

Update updates a managed 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. managedInstanceName - the name of the managed instance. databaseName - the name of the database. parameters - the short term retention policy info.

func (ManagedBackupShortTermRetentionPoliciesClient) UpdatePreparer

func (client ManagedBackupShortTermRetentionPoliciesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters ManagedBackupShortTermRetentionPolicy) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ManagedBackupShortTermRetentionPoliciesClient) UpdateResponder

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ManagedBackupShortTermRetentionPoliciesClient) UpdateSender

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type ManagedBackupShortTermRetentionPoliciesCreateOrUpdateFuture

type ManagedBackupShortTermRetentionPoliciesCreateOrUpdateFuture struct {
	azure.Future
}

ManagedBackupShortTermRetentionPoliciesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ManagedBackupShortTermRetentionPoliciesCreateOrUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ManagedBackupShortTermRetentionPoliciesUpdateFuture

type ManagedBackupShortTermRetentionPoliciesUpdateFuture struct {
	azure.Future
}

ManagedBackupShortTermRetentionPoliciesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ManagedBackupShortTermRetentionPoliciesUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ManagedBackupShortTermRetentionPolicy

type ManagedBackupShortTermRetentionPolicy struct {
	autorest.Response `json:"-"`
	// ManagedBackupShortTermRetentionPolicyProperties - Resource properties.
	*ManagedBackupShortTermRetentionPolicyProperties `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"`
}

ManagedBackupShortTermRetentionPolicy a short term retention policy.

func (ManagedBackupShortTermRetentionPolicy) MarshalJSON

func (mbstrp ManagedBackupShortTermRetentionPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedBackupShortTermRetentionPolicy.

func (*ManagedBackupShortTermRetentionPolicy) UnmarshalJSON

func (mbstrp *ManagedBackupShortTermRetentionPolicy) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ManagedBackupShortTermRetentionPolicy struct.

type ManagedBackupShortTermRetentionPolicyListResult

type ManagedBackupShortTermRetentionPolicyListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]ManagedBackupShortTermRetentionPolicy `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ManagedBackupShortTermRetentionPolicyListResult a list of short term retention policies.

func (ManagedBackupShortTermRetentionPolicyListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type ManagedBackupShortTermRetentionPolicyListResultIterator

type ManagedBackupShortTermRetentionPolicyListResultIterator struct {
	// contains filtered or unexported fields
}

ManagedBackupShortTermRetentionPolicyListResultIterator provides access to a complete listing of ManagedBackupShortTermRetentionPolicy values.

func NewManagedBackupShortTermRetentionPolicyListResultIterator

func NewManagedBackupShortTermRetentionPolicyListResultIterator(page ManagedBackupShortTermRetentionPolicyListResultPage) ManagedBackupShortTermRetentionPolicyListResultIterator

Creates a new instance of the ManagedBackupShortTermRetentionPolicyListResultIterator type.

func (*ManagedBackupShortTermRetentionPolicyListResultIterator) Next

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 (*ManagedBackupShortTermRetentionPolicyListResultIterator) NextWithContext

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 (ManagedBackupShortTermRetentionPolicyListResultIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (ManagedBackupShortTermRetentionPolicyListResultIterator) Response

Response returns the raw server response from the last page request.

func (ManagedBackupShortTermRetentionPolicyListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ManagedBackupShortTermRetentionPolicyListResultPage

type ManagedBackupShortTermRetentionPolicyListResultPage struct {
	// contains filtered or unexported fields
}

ManagedBackupShortTermRetentionPolicyListResultPage contains a page of ManagedBackupShortTermRetentionPolicy values.

func NewManagedBackupShortTermRetentionPolicyListResultPage

Creates a new instance of the ManagedBackupShortTermRetentionPolicyListResultPage type.

func (*ManagedBackupShortTermRetentionPolicyListResultPage) Next

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 (*ManagedBackupShortTermRetentionPolicyListResultPage) NextWithContext

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 (ManagedBackupShortTermRetentionPolicyListResultPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ManagedBackupShortTermRetentionPolicyListResultPage) Response

Response returns the raw server response from the last page request.

func (ManagedBackupShortTermRetentionPolicyListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type ManagedBackupShortTermRetentionPolicyProperties

type ManagedBackupShortTermRetentionPolicyProperties 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"`
}

ManagedBackupShortTermRetentionPolicyProperties properties of a short term retention policy

type ManagedDatabase

type ManagedDatabase struct {
	autorest.Response `json:"-"`
	// ManagedDatabaseProperties - Resource properties.
	*ManagedDatabaseProperties `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"`
}

ManagedDatabase a managed database resource.

func (ManagedDatabase) MarshalJSON

func (md ManagedDatabase) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedDatabase.

func (*ManagedDatabase) UnmarshalJSON

func (md *ManagedDatabase) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ManagedDatabase struct.

type ManagedDatabaseCreateMode

type ManagedDatabaseCreateMode string

ManagedDatabaseCreateMode enumerates the values for managed database create mode.

const (
	// ManagedDatabaseCreateModeDefault ...
	ManagedDatabaseCreateModeDefault ManagedDatabaseCreateMode = "Default"
	// ManagedDatabaseCreateModePointInTimeRestore ...
	ManagedDatabaseCreateModePointInTimeRestore ManagedDatabaseCreateMode = "PointInTimeRestore"
	// ManagedDatabaseCreateModeRecovery ...
	ManagedDatabaseCreateModeRecovery ManagedDatabaseCreateMode = "Recovery"
	// ManagedDatabaseCreateModeRestoreExternalBackup ...
	ManagedDatabaseCreateModeRestoreExternalBackup ManagedDatabaseCreateMode = "RestoreExternalBackup"
)

func PossibleManagedDatabaseCreateModeValues

func PossibleManagedDatabaseCreateModeValues() []ManagedDatabaseCreateMode

PossibleManagedDatabaseCreateModeValues returns an array of possible values for the ManagedDatabaseCreateMode const type.

type ManagedDatabaseListResult

type ManagedDatabaseListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]ManagedDatabase `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ManagedDatabaseListResult a list of managed databases.

func (ManagedDatabaseListResult) IsEmpty

func (mdlr ManagedDatabaseListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ManagedDatabaseListResultIterator

type ManagedDatabaseListResultIterator struct {
	// contains filtered or unexported fields
}

ManagedDatabaseListResultIterator provides access to a complete listing of ManagedDatabase values.

func NewManagedDatabaseListResultIterator

func NewManagedDatabaseListResultIterator(page ManagedDatabaseListResultPage) ManagedDatabaseListResultIterator

Creates a new instance of the ManagedDatabaseListResultIterator type.

func (*ManagedDatabaseListResultIterator) Next

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 (*ManagedDatabaseListResultIterator) NextWithContext

func (iter *ManagedDatabaseListResultIterator) 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 (ManagedDatabaseListResultIterator) NotDone

func (iter ManagedDatabaseListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ManagedDatabaseListResultIterator) Response

Response returns the raw server response from the last page request.

func (ManagedDatabaseListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ManagedDatabaseListResultPage

type ManagedDatabaseListResultPage struct {
	// contains filtered or unexported fields
}

ManagedDatabaseListResultPage contains a page of ManagedDatabase values.

func NewManagedDatabaseListResultPage

func NewManagedDatabaseListResultPage(getNextPage func(context.Context, ManagedDatabaseListResult) (ManagedDatabaseListResult, error)) ManagedDatabaseListResultPage

Creates a new instance of the ManagedDatabaseListResultPage type.

func (*ManagedDatabaseListResultPage) Next

func (page *ManagedDatabaseListResultPage) 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 (*ManagedDatabaseListResultPage) NextWithContext

func (page *ManagedDatabaseListResultPage) 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 (ManagedDatabaseListResultPage) NotDone

func (page ManagedDatabaseListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ManagedDatabaseListResultPage) Response

Response returns the raw server response from the last page request.

func (ManagedDatabaseListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type ManagedDatabaseProperties

type ManagedDatabaseProperties struct {
	// Collation - Collation of the managed database.
	Collation *string `json:"collation,omitempty"`
	// Status - READ-ONLY; Status of the database. Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible', 'Restoring', 'Updating'
	Status ManagedDatabaseStatus `json:"status,omitempty"`
	// CreationDate - READ-ONLY; Creation date of the database.
	CreationDate *date.Time `json:"creationDate,omitempty"`
	// EarliestRestorePoint - READ-ONLY; Earliest restore point in time for point in time restore.
	EarliestRestorePoint *date.Time `json:"earliestRestorePoint,omitempty"`
	// RestorePointInTime - Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database.
	RestorePointInTime *date.Time `json:"restorePointInTime,omitempty"`
	// DefaultSecondaryLocation - READ-ONLY; Geo paired region.
	DefaultSecondaryLocation *string `json:"defaultSecondaryLocation,omitempty"`
	// CatalogCollation - Collation of the metadata catalog. Possible values include: 'DATABASEDEFAULT', 'SQLLatin1GeneralCP1CIAS'
	CatalogCollation CatalogCollationType `json:"catalogCollation,omitempty"`
	// CreateMode - Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. Possible values include: 'ManagedDatabaseCreateModeDefault', 'ManagedDatabaseCreateModeRestoreExternalBackup', 'ManagedDatabaseCreateModePointInTimeRestore', 'ManagedDatabaseCreateModeRecovery'
	CreateMode ManagedDatabaseCreateMode `json:"createMode,omitempty"`
	// StorageContainerURI - Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the storage container where backups for this restore are stored.
	StorageContainerURI *string `json:"storageContainerUri,omitempty"`
	// SourceDatabaseID - The resource identifier of the source database associated with create operation of this database.
	SourceDatabaseID *string `json:"sourceDatabaseId,omitempty"`
	// RestorableDroppedDatabaseID - The restorable dropped database resource id to restore when creating this database.
	RestorableDroppedDatabaseID *string `json:"restorableDroppedDatabaseId,omitempty"`
	// StorageContainerSasToken - Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the storage container sas token.
	StorageContainerSasToken *string `json:"storageContainerSasToken,omitempty"`
	// FailoverGroupID - READ-ONLY; Instance Failover Group resource identifier that this managed database belongs to.
	FailoverGroupID *string `json:"failoverGroupId,omitempty"`
	// RecoverableDatabaseID - The resource identifier of the recoverable database associated with create operation of this database.
	RecoverableDatabaseID *string `json:"recoverableDatabaseId,omitempty"`
}

ManagedDatabaseProperties the managed database's properties.

type ManagedDatabaseRestoreDetailsClient

type ManagedDatabaseRestoreDetailsClient struct {
	BaseClient
}

ManagedDatabaseRestoreDetailsClient 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 NewManagedDatabaseRestoreDetailsClient

func NewManagedDatabaseRestoreDetailsClient(subscriptionID string) ManagedDatabaseRestoreDetailsClient

NewManagedDatabaseRestoreDetailsClient creates an instance of the ManagedDatabaseRestoreDetailsClient client.

func NewManagedDatabaseRestoreDetailsClientWithBaseURI

func NewManagedDatabaseRestoreDetailsClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseRestoreDetailsClient

NewManagedDatabaseRestoreDetailsClientWithBaseURI creates an instance of the ManagedDatabaseRestoreDetailsClient client.

func (ManagedDatabaseRestoreDetailsClient) Get

func (client ManagedDatabaseRestoreDetailsClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result ManagedDatabaseRestoreDetailsResult, err error)

Get gets managed database restore details. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database.

func (ManagedDatabaseRestoreDetailsClient) GetPreparer

func (client ManagedDatabaseRestoreDetailsClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ManagedDatabaseRestoreDetailsClient) GetResponder

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ManagedDatabaseRestoreDetailsClient) GetSender

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type ManagedDatabaseRestoreDetailsProperties

type ManagedDatabaseRestoreDetailsProperties struct {
	// Status - READ-ONLY; Restore status.
	Status *string `json:"status,omitempty"`
	// CurrentRestoringFileName - READ-ONLY; Current restoring file name.
	CurrentRestoringFileName *string `json:"currentRestoringFileName,omitempty"`
	// LastRestoredFileName - READ-ONLY; Last restored file name.
	LastRestoredFileName *string `json:"lastRestoredFileName,omitempty"`
	// LastRestoredFileTime - READ-ONLY; Last restored file time.
	LastRestoredFileTime *date.Time `json:"lastRestoredFileTime,omitempty"`
	// PercentCompleted - READ-ONLY; Percent completed.
	PercentCompleted *float64 `json:"percentCompleted,omitempty"`
	// UnrestorableFiles - READ-ONLY; List of unrestorable files.
	UnrestorableFiles *[]string `json:"unrestorableFiles,omitempty"`
	// NumberOfFilesDetected - READ-ONLY; Number of files detected.
	NumberOfFilesDetected *int64 `json:"numberOfFilesDetected,omitempty"`
	// LastUploadedFileName - READ-ONLY; Last uploaded file name.
	LastUploadedFileName *string `json:"lastUploadedFileName,omitempty"`
	// LastUploadedFileTime - READ-ONLY; Last uploaded file time.
	LastUploadedFileTime *date.Time `json:"lastUploadedFileTime,omitempty"`
	// BlockReason - READ-ONLY; The reason why restore is in Blocked state.
	BlockReason *string `json:"blockReason,omitempty"`
}

ManagedDatabaseRestoreDetailsProperties the managed database's restore details properties.

type ManagedDatabaseRestoreDetailsResult

type ManagedDatabaseRestoreDetailsResult struct {
	autorest.Response `json:"-"`
	// ManagedDatabaseRestoreDetailsProperties - Resource properties.
	*ManagedDatabaseRestoreDetailsProperties `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"`
}

ManagedDatabaseRestoreDetailsResult a managed database restore details.

func (ManagedDatabaseRestoreDetailsResult) MarshalJSON

func (mdrdr ManagedDatabaseRestoreDetailsResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedDatabaseRestoreDetailsResult.

func (*ManagedDatabaseRestoreDetailsResult) UnmarshalJSON

func (mdrdr *ManagedDatabaseRestoreDetailsResult) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ManagedDatabaseRestoreDetailsResult struct.

type ManagedDatabaseSecurityAlertPoliciesClient

type ManagedDatabaseSecurityAlertPoliciesClient struct {
	BaseClient
}

ManagedDatabaseSecurityAlertPoliciesClient 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 NewManagedDatabaseSecurityAlertPoliciesClient

func NewManagedDatabaseSecurityAlertPoliciesClient(subscriptionID string) ManagedDatabaseSecurityAlertPoliciesClient

NewManagedDatabaseSecurityAlertPoliciesClient creates an instance of the ManagedDatabaseSecurityAlertPoliciesClient client.

func NewManagedDatabaseSecurityAlertPoliciesClientWithBaseURI

func NewManagedDatabaseSecurityAlertPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseSecurityAlertPoliciesClient

NewManagedDatabaseSecurityAlertPoliciesClientWithBaseURI creates an instance of the ManagedDatabaseSecurityAlertPoliciesClient client.

func (ManagedDatabaseSecurityAlertPoliciesClient) CreateOrUpdate

func (client ManagedDatabaseSecurityAlertPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters ManagedDatabaseSecurityAlertPolicy) (result ManagedDatabaseSecurityAlertPolicy, err error)

CreateOrUpdate creates or updates a database's security alert 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. managedInstanceName - the name of the managed instance. databaseName - the name of the managed database for which the security alert policy is defined. parameters - the database security alert policy.

func (ManagedDatabaseSecurityAlertPoliciesClient) CreateOrUpdatePreparer

func (client ManagedDatabaseSecurityAlertPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters ManagedDatabaseSecurityAlertPolicy) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ManagedDatabaseSecurityAlertPoliciesClient) CreateOrUpdateResponder

func (client ManagedDatabaseSecurityAlertPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedDatabaseSecurityAlertPolicy, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ManagedDatabaseSecurityAlertPoliciesClient) CreateOrUpdateSender

func (client ManagedDatabaseSecurityAlertPoliciesClient) 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 (ManagedDatabaseSecurityAlertPoliciesClient) Get

func (client ManagedDatabaseSecurityAlertPoliciesClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result ManagedDatabaseSecurityAlertPolicy, err error)

Get gets a managed database's security alert 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. managedInstanceName - the name of the managed instance. databaseName - the name of the managed database for which the security alert policy is defined.

func (ManagedDatabaseSecurityAlertPoliciesClient) GetPreparer

func (client ManagedDatabaseSecurityAlertPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ManagedDatabaseSecurityAlertPoliciesClient) GetResponder

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ManagedDatabaseSecurityAlertPoliciesClient) GetSender

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ManagedDatabaseSecurityAlertPoliciesClient) ListByDatabase

func (client ManagedDatabaseSecurityAlertPoliciesClient) ListByDatabase(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result ManagedDatabaseSecurityAlertPolicyListResultPage, err error)

ListByDatabase gets a list of managed database's security alert policies. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the managed database for which the security alert policies are defined.

func (ManagedDatabaseSecurityAlertPoliciesClient) ListByDatabaseComplete

func (client ManagedDatabaseSecurityAlertPoliciesClient) ListByDatabaseComplete(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result ManagedDatabaseSecurityAlertPolicyListResultIterator, err error)

ListByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.

func (ManagedDatabaseSecurityAlertPoliciesClient) ListByDatabasePreparer

func (client ManagedDatabaseSecurityAlertPoliciesClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (*http.Request, error)

ListByDatabasePreparer prepares the ListByDatabase request.

func (ManagedDatabaseSecurityAlertPoliciesClient) ListByDatabaseResponder

ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.

func (ManagedDatabaseSecurityAlertPoliciesClient) ListByDatabaseSender

func (client ManagedDatabaseSecurityAlertPoliciesClient) 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 ManagedDatabaseSecurityAlertPolicy

type ManagedDatabaseSecurityAlertPolicy struct {
	autorest.Response `json:"-"`
	// SecurityAlertPolicyProperties - Resource properties.
	*SecurityAlertPolicyProperties `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"`
}

ManagedDatabaseSecurityAlertPolicy a managed database security alert policy.

func (ManagedDatabaseSecurityAlertPolicy) MarshalJSON

func (mdsap ManagedDatabaseSecurityAlertPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedDatabaseSecurityAlertPolicy.

func (*ManagedDatabaseSecurityAlertPolicy) UnmarshalJSON

func (mdsap *ManagedDatabaseSecurityAlertPolicy) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ManagedDatabaseSecurityAlertPolicy struct.

type ManagedDatabaseSecurityAlertPolicyListResult

type ManagedDatabaseSecurityAlertPolicyListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]ManagedDatabaseSecurityAlertPolicy `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ManagedDatabaseSecurityAlertPolicyListResult a list of the managed database's security alert policies.

func (ManagedDatabaseSecurityAlertPolicyListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type ManagedDatabaseSecurityAlertPolicyListResultIterator

type ManagedDatabaseSecurityAlertPolicyListResultIterator struct {
	// contains filtered or unexported fields
}

ManagedDatabaseSecurityAlertPolicyListResultIterator provides access to a complete listing of ManagedDatabaseSecurityAlertPolicy values.

func NewManagedDatabaseSecurityAlertPolicyListResultIterator

func NewManagedDatabaseSecurityAlertPolicyListResultIterator(page ManagedDatabaseSecurityAlertPolicyListResultPage) ManagedDatabaseSecurityAlertPolicyListResultIterator

Creates a new instance of the ManagedDatabaseSecurityAlertPolicyListResultIterator type.

func (*ManagedDatabaseSecurityAlertPolicyListResultIterator) Next

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 (*ManagedDatabaseSecurityAlertPolicyListResultIterator) NextWithContext

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 (ManagedDatabaseSecurityAlertPolicyListResultIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (ManagedDatabaseSecurityAlertPolicyListResultIterator) Response

Response returns the raw server response from the last page request.

func (ManagedDatabaseSecurityAlertPolicyListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ManagedDatabaseSecurityAlertPolicyListResultPage

type ManagedDatabaseSecurityAlertPolicyListResultPage struct {
	// contains filtered or unexported fields
}

ManagedDatabaseSecurityAlertPolicyListResultPage contains a page of ManagedDatabaseSecurityAlertPolicy values.

func NewManagedDatabaseSecurityAlertPolicyListResultPage

Creates a new instance of the ManagedDatabaseSecurityAlertPolicyListResultPage type.

func (*ManagedDatabaseSecurityAlertPolicyListResultPage) Next

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 (*ManagedDatabaseSecurityAlertPolicyListResultPage) NextWithContext

func (page *ManagedDatabaseSecurityAlertPolicyListResultPage) 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 (ManagedDatabaseSecurityAlertPolicyListResultPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ManagedDatabaseSecurityAlertPolicyListResultPage) Response

Response returns the raw server response from the last page request.

func (ManagedDatabaseSecurityAlertPolicyListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type ManagedDatabaseSensitivityLabelsClient

type ManagedDatabaseSensitivityLabelsClient struct {
	BaseClient
}

ManagedDatabaseSensitivityLabelsClient 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 NewManagedDatabaseSensitivityLabelsClient

func NewManagedDatabaseSensitivityLabelsClient(subscriptionID string) ManagedDatabaseSensitivityLabelsClient

NewManagedDatabaseSensitivityLabelsClient creates an instance of the ManagedDatabaseSensitivityLabelsClient client.

func NewManagedDatabaseSensitivityLabelsClientWithBaseURI

func NewManagedDatabaseSensitivityLabelsClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseSensitivityLabelsClient

NewManagedDatabaseSensitivityLabelsClientWithBaseURI creates an instance of the ManagedDatabaseSensitivityLabelsClient client.

func (ManagedDatabaseSensitivityLabelsClient) CreateOrUpdate

func (client ManagedDatabaseSensitivityLabelsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string, parameters SensitivityLabel) (result SensitivityLabel, err error)

CreateOrUpdate creates or updates the sensitivity label of a given column Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database. schemaName - the name of the schema. tableName - the name of the table. columnName - the name of the column. parameters - the column sensitivity label resource.

func (ManagedDatabaseSensitivityLabelsClient) CreateOrUpdatePreparer

func (client ManagedDatabaseSensitivityLabelsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string, parameters SensitivityLabel) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ManagedDatabaseSensitivityLabelsClient) CreateOrUpdateResponder

func (client ManagedDatabaseSensitivityLabelsClient) CreateOrUpdateResponder(resp *http.Response) (result SensitivityLabel, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ManagedDatabaseSensitivityLabelsClient) CreateOrUpdateSender

func (client ManagedDatabaseSensitivityLabelsClient) 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 (ManagedDatabaseSensitivityLabelsClient) Delete

func (client ManagedDatabaseSensitivityLabelsClient) Delete(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string) (result autorest.Response, err error)

Delete deletes the sensitivity label of a given column Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database. schemaName - the name of the schema. tableName - the name of the table. columnName - the name of the column.

func (ManagedDatabaseSensitivityLabelsClient) DeletePreparer

func (client ManagedDatabaseSensitivityLabelsClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ManagedDatabaseSensitivityLabelsClient) DeleteResponder

func (client ManagedDatabaseSensitivityLabelsClient) 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 (ManagedDatabaseSensitivityLabelsClient) DeleteSender

func (client ManagedDatabaseSensitivityLabelsClient) 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 (ManagedDatabaseSensitivityLabelsClient) DisableRecommendation

func (client ManagedDatabaseSensitivityLabelsClient) DisableRecommendation(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string) (result autorest.Response, err error)

DisableRecommendation disables sensitivity recommendations on a given column Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database. schemaName - the name of the schema. tableName - the name of the table. columnName - the name of the column.

func (ManagedDatabaseSensitivityLabelsClient) DisableRecommendationPreparer

func (client ManagedDatabaseSensitivityLabelsClient) DisableRecommendationPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string) (*http.Request, error)

DisableRecommendationPreparer prepares the DisableRecommendation request.

func (ManagedDatabaseSensitivityLabelsClient) DisableRecommendationResponder

func (client ManagedDatabaseSensitivityLabelsClient) DisableRecommendationResponder(resp *http.Response) (result autorest.Response, err error)

DisableRecommendationResponder handles the response to the DisableRecommendation request. The method always closes the http.Response Body.

func (ManagedDatabaseSensitivityLabelsClient) DisableRecommendationSender

func (client ManagedDatabaseSensitivityLabelsClient) DisableRecommendationSender(req *http.Request) (*http.Response, error)

DisableRecommendationSender sends the DisableRecommendation request. The method will close the http.Response Body if it receives an error.

func (ManagedDatabaseSensitivityLabelsClient) EnableRecommendation

func (client ManagedDatabaseSensitivityLabelsClient) EnableRecommendation(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string) (result autorest.Response, err error)

EnableRecommendation enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns) Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database. schemaName - the name of the schema. tableName - the name of the table. columnName - the name of the column.

func (ManagedDatabaseSensitivityLabelsClient) EnableRecommendationPreparer

func (client ManagedDatabaseSensitivityLabelsClient) EnableRecommendationPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string) (*http.Request, error)

EnableRecommendationPreparer prepares the EnableRecommendation request.

func (ManagedDatabaseSensitivityLabelsClient) EnableRecommendationResponder

func (client ManagedDatabaseSensitivityLabelsClient) EnableRecommendationResponder(resp *http.Response) (result autorest.Response, err error)

EnableRecommendationResponder handles the response to the EnableRecommendation request. The method always closes the http.Response Body.

func (ManagedDatabaseSensitivityLabelsClient) EnableRecommendationSender

func (client ManagedDatabaseSensitivityLabelsClient) EnableRecommendationSender(req *http.Request) (*http.Response, error)

EnableRecommendationSender sends the EnableRecommendation request. The method will close the http.Response Body if it receives an error.

func (ManagedDatabaseSensitivityLabelsClient) Get

func (client ManagedDatabaseSensitivityLabelsClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string, sensitivityLabelSource SensitivityLabelSource) (result SensitivityLabel, err error)

Get gets the sensitivity label of a given column Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database. schemaName - the name of the schema. tableName - the name of the table. columnName - the name of the column. sensitivityLabelSource - the source of the sensitivity label.

func (ManagedDatabaseSensitivityLabelsClient) GetPreparer

func (client ManagedDatabaseSensitivityLabelsClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string, sensitivityLabelSource SensitivityLabelSource) (*http.Request, error)

GetPreparer prepares the Get request.

func (ManagedDatabaseSensitivityLabelsClient) GetResponder

func (client ManagedDatabaseSensitivityLabelsClient) GetResponder(resp *http.Response) (result SensitivityLabel, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ManagedDatabaseSensitivityLabelsClient) GetSender

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabase

func (client ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabase(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, filter string) (result SensitivityLabelListResultPage, err error)

ListCurrentByDatabase gets the sensitivity labels of a given database Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database. filter - an OData filter expression that filters elements in the collection.

func (ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabaseComplete

func (client ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabaseComplete(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, filter string) (result SensitivityLabelListResultIterator, err error)

ListCurrentByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.

func (ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabasePreparer

func (client ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabasePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, filter string) (*http.Request, error)

ListCurrentByDatabasePreparer prepares the ListCurrentByDatabase request.

func (ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabaseResponder

func (client ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabaseResponder(resp *http.Response) (result SensitivityLabelListResult, err error)

ListCurrentByDatabaseResponder handles the response to the ListCurrentByDatabase request. The method always closes the http.Response Body.

func (ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabaseSender

func (client ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabaseSender(req *http.Request) (*http.Response, error)

ListCurrentByDatabaseSender sends the ListCurrentByDatabase request. The method will close the http.Response Body if it receives an error.

func (ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabase

func (client ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabase(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, includeDisabledRecommendations *bool, skipToken string, filter string) (result SensitivityLabelListResultPage, err error)

ListRecommendedByDatabase gets the sensitivity labels of a given database Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database. includeDisabledRecommendations - specifies whether to include disabled recommendations or not. filter - an OData filter expression that filters elements in the collection.

func (ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabaseComplete

func (client ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabaseComplete(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, includeDisabledRecommendations *bool, skipToken string, filter string) (result SensitivityLabelListResultIterator, err error)

ListRecommendedByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.

func (ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabasePreparer

func (client ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabasePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, includeDisabledRecommendations *bool, skipToken string, filter string) (*http.Request, error)

ListRecommendedByDatabasePreparer prepares the ListRecommendedByDatabase request.

func (ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabaseResponder

func (client ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabaseResponder(resp *http.Response) (result SensitivityLabelListResult, err error)

ListRecommendedByDatabaseResponder handles the response to the ListRecommendedByDatabase request. The method always closes the http.Response Body.

func (ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabaseSender

func (client ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabaseSender(req *http.Request) (*http.Response, error)

ListRecommendedByDatabaseSender sends the ListRecommendedByDatabase request. The method will close the http.Response Body if it receives an error.

type ManagedDatabaseStatus

type ManagedDatabaseStatus string

ManagedDatabaseStatus enumerates the values for managed database status.

const (
	// Creating ...
	Creating ManagedDatabaseStatus = "Creating"
	// Inaccessible ...
	Inaccessible ManagedDatabaseStatus = "Inaccessible"
	// Offline ...
	Offline ManagedDatabaseStatus = "Offline"
	// Online ...
	Online ManagedDatabaseStatus = "Online"
	// Restoring ...
	Restoring ManagedDatabaseStatus = "Restoring"
	// Shutdown ...
	Shutdown ManagedDatabaseStatus = "Shutdown"
	// Updating ...
	Updating ManagedDatabaseStatus = "Updating"
)

func PossibleManagedDatabaseStatusValues

func PossibleManagedDatabaseStatusValues() []ManagedDatabaseStatus

PossibleManagedDatabaseStatusValues returns an array of possible values for the ManagedDatabaseStatus const type.

type ManagedDatabaseUpdate

type ManagedDatabaseUpdate struct {
	// ManagedDatabaseProperties - Resource properties.
	*ManagedDatabaseProperties `json:"properties,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
}

ManagedDatabaseUpdate an managed database update.

func (ManagedDatabaseUpdate) MarshalJSON

func (mdu ManagedDatabaseUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedDatabaseUpdate.

func (*ManagedDatabaseUpdate) UnmarshalJSON

func (mdu *ManagedDatabaseUpdate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ManagedDatabaseUpdate struct.

type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient

type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient struct {
	BaseClient
}

ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient

func NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient(subscriptionID string) ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient

NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient creates an instance of the ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient client.

func NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI

func NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient

NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI creates an instance of the ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient client.

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdate

CreateOrUpdate creates or updates a database's vulnerability assessment rule baseline. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database for which the vulnerability assessment rule baseline is defined. ruleID - the vulnerability assessment rule ID. baselineName - the name of the vulnerability assessment rule baseline (default implies a baseline on a database level rule and master for server level rule). parameters - the requested rule baseline resource.

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdatePreparer

func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName, parameters DatabaseVulnerabilityAssessmentRuleBaseline) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdateResponder

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdateSender

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) Delete

func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) Delete(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName) (result autorest.Response, err error)

Delete removes the database's vulnerability assessment rule baseline. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database for which the vulnerability assessment rule baseline is defined. ruleID - the vulnerability assessment rule ID. baselineName - the name of the vulnerability assessment rule baseline (default implies a baseline on a database level rule and master for server level rule).

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) DeletePreparer

func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) DeleteResponder

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) DeleteSender

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) Get

func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName) (result DatabaseVulnerabilityAssessmentRuleBaseline, err error)

Get gets a database's vulnerability assessment rule baseline. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database for which the vulnerability assessment rule baseline is defined. ruleID - the vulnerability assessment rule ID. baselineName - the name of the vulnerability assessment rule baseline (default implies a baseline on a database level rule and master for server level rule).

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) GetPreparer

func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName) (*http.Request, error)

GetPreparer prepares the Get request.

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) GetResponder

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) GetSender

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type ManagedDatabaseVulnerabilityAssessmentScansClient

type ManagedDatabaseVulnerabilityAssessmentScansClient struct {
	BaseClient
}

ManagedDatabaseVulnerabilityAssessmentScansClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewManagedDatabaseVulnerabilityAssessmentScansClient

func NewManagedDatabaseVulnerabilityAssessmentScansClient(subscriptionID string) ManagedDatabaseVulnerabilityAssessmentScansClient

NewManagedDatabaseVulnerabilityAssessmentScansClient creates an instance of the ManagedDatabaseVulnerabilityAssessmentScansClient client.

func NewManagedDatabaseVulnerabilityAssessmentScansClientWithBaseURI

func NewManagedDatabaseVulnerabilityAssessmentScansClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseVulnerabilityAssessmentScansClient

NewManagedDatabaseVulnerabilityAssessmentScansClientWithBaseURI creates an instance of the ManagedDatabaseVulnerabilityAssessmentScansClient client.

func (ManagedDatabaseVulnerabilityAssessmentScansClient) Export

func (client ManagedDatabaseVulnerabilityAssessmentScansClient) Export(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, scanID string) (result DatabaseVulnerabilityAssessmentScansExport, err error)

Export convert an existing scan result to a human readable format. If already exists nothing happens Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the scanned database. scanID - the vulnerability assessment scan Id.

func (ManagedDatabaseVulnerabilityAssessmentScansClient) ExportPreparer

func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ExportPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, scanID string) (*http.Request, error)

ExportPreparer prepares the Export request.

func (ManagedDatabaseVulnerabilityAssessmentScansClient) ExportResponder

ExportResponder handles the response to the Export request. The method always closes the http.Response Body.

func (ManagedDatabaseVulnerabilityAssessmentScansClient) ExportSender

ExportSender sends the Export request. The method will close the http.Response Body if it receives an error.

func (ManagedDatabaseVulnerabilityAssessmentScansClient) Get

func (client ManagedDatabaseVulnerabilityAssessmentScansClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, scanID string) (result VulnerabilityAssessmentScanRecord, err error)

Get gets a vulnerability assessment scan record of a database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database. scanID - the vulnerability assessment scan Id of the scan to retrieve.

func (ManagedDatabaseVulnerabilityAssessmentScansClient) GetPreparer

func (client ManagedDatabaseVulnerabilityAssessmentScansClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, scanID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ManagedDatabaseVulnerabilityAssessmentScansClient) GetResponder

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ManagedDatabaseVulnerabilityAssessmentScansClient) GetSender

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScan

func (client ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScan(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, scanID string) (result ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture, err error)

InitiateScan executes a Vulnerability Assessment database scan. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database. scanID - the vulnerability assessment scan Id of the scan to retrieve.

func (ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScanPreparer

func (client ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScanPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, scanID string) (*http.Request, error)

InitiateScanPreparer prepares the InitiateScan request.

func (ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScanResponder

func (client ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScanResponder(resp *http.Response) (result autorest.Response, err error)

InitiateScanResponder handles the response to the InitiateScan request. The method always closes the http.Response Body.

func (ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScanSender

InitiateScanSender sends the InitiateScan request. The method will close the http.Response Body if it receives an error.

func (ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabase

func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabase(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result VulnerabilityAssessmentScanRecordListResultPage, err error)

ListByDatabase lists the vulnerability assessment scans of a database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database.

func (ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabaseComplete

func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabaseComplete(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result VulnerabilityAssessmentScanRecordListResultIterator, err error)

ListByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.

func (ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabasePreparer

func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (*http.Request, error)

ListByDatabasePreparer prepares the ListByDatabase request.

func (ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabaseResponder

ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.

func (ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabaseSender

func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)

ListByDatabaseSender sends the ListByDatabase request. The method will close the http.Response Body if it receives an error.

type ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture

type ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture struct {
	azure.Future
}

ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ManagedDatabaseVulnerabilityAssessmentsClient

type ManagedDatabaseVulnerabilityAssessmentsClient struct {
	BaseClient
}

ManagedDatabaseVulnerabilityAssessmentsClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewManagedDatabaseVulnerabilityAssessmentsClient

func NewManagedDatabaseVulnerabilityAssessmentsClient(subscriptionID string) ManagedDatabaseVulnerabilityAssessmentsClient

NewManagedDatabaseVulnerabilityAssessmentsClient creates an instance of the ManagedDatabaseVulnerabilityAssessmentsClient client.

func NewManagedDatabaseVulnerabilityAssessmentsClientWithBaseURI

func NewManagedDatabaseVulnerabilityAssessmentsClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseVulnerabilityAssessmentsClient

NewManagedDatabaseVulnerabilityAssessmentsClientWithBaseURI creates an instance of the ManagedDatabaseVulnerabilityAssessmentsClient client.

func (ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdate

func (client ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters DatabaseVulnerabilityAssessment) (result DatabaseVulnerabilityAssessment, err error)

CreateOrUpdate creates or updates the database's vulnerability assessment. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database for which the vulnerability assessment is defined. parameters - the requested resource.

func (ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdatePreparer

func (client ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters DatabaseVulnerabilityAssessment) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdateResponder

func (client ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdateResponder(resp *http.Response) (result DatabaseVulnerabilityAssessment, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdateSender

func (client ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ManagedDatabaseVulnerabilityAssessmentsClient) Delete

func (client ManagedDatabaseVulnerabilityAssessmentsClient) Delete(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result autorest.Response, err error)

Delete removes the database's vulnerability assessment. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database for which the vulnerability assessment is defined.

func (ManagedDatabaseVulnerabilityAssessmentsClient) DeletePreparer

func (client ManagedDatabaseVulnerabilityAssessmentsClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ManagedDatabaseVulnerabilityAssessmentsClient) DeleteResponder

func (client ManagedDatabaseVulnerabilityAssessmentsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ManagedDatabaseVulnerabilityAssessmentsClient) DeleteSender

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ManagedDatabaseVulnerabilityAssessmentsClient) Get

func (client ManagedDatabaseVulnerabilityAssessmentsClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result DatabaseVulnerabilityAssessment, err error)

Get gets the database's vulnerability assessment. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database for which the vulnerability assessment is defined.

func (ManagedDatabaseVulnerabilityAssessmentsClient) GetPreparer

func (client ManagedDatabaseVulnerabilityAssessmentsClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ManagedDatabaseVulnerabilityAssessmentsClient) GetResponder

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ManagedDatabaseVulnerabilityAssessmentsClient) GetSender

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabase

func (client ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabase(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result DatabaseVulnerabilityAssessmentListResultPage, err error)

ListByDatabase lists the vulnerability assessments of a managed database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database for which the vulnerability assessment is defined.

func (ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabaseComplete

func (client ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabaseComplete(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result DatabaseVulnerabilityAssessmentListResultIterator, err error)

ListByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.

func (ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabasePreparer

func (client ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (*http.Request, error)

ListByDatabasePreparer prepares the ListByDatabase request.

func (ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabaseResponder

ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.

func (ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabaseSender

func (client ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)

ListByDatabaseSender sends the ListByDatabase request. The method will close the http.Response Body if it receives an error.

type ManagedDatabasesClient

type ManagedDatabasesClient struct {
	BaseClient
}

ManagedDatabasesClient 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 NewManagedDatabasesClient

func NewManagedDatabasesClient(subscriptionID string) ManagedDatabasesClient

NewManagedDatabasesClient creates an instance of the ManagedDatabasesClient client.

func NewManagedDatabasesClientWithBaseURI

func NewManagedDatabasesClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabasesClient

NewManagedDatabasesClientWithBaseURI creates an instance of the ManagedDatabasesClient client.

func (ManagedDatabasesClient) CompleteRestore

func (client ManagedDatabasesClient) CompleteRestore(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters CompleteDatabaseRestoreDefinition) (result ManagedDatabasesCompleteRestoreFuture, err error)

CompleteRestore completes the restore operation on a managed database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database. parameters - the definition for completing the restore of this managed database.

func (ManagedDatabasesClient) CompleteRestorePreparer

func (client ManagedDatabasesClient) CompleteRestorePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters CompleteDatabaseRestoreDefinition) (*http.Request, error)

CompleteRestorePreparer prepares the CompleteRestore request.

func (ManagedDatabasesClient) CompleteRestoreResponder

func (client ManagedDatabasesClient) CompleteRestoreResponder(resp *http.Response) (result autorest.Response, err error)

CompleteRestoreResponder handles the response to the CompleteRestore request. The method always closes the http.Response Body.

func (ManagedDatabasesClient) CompleteRestoreSender

func (client ManagedDatabasesClient) CompleteRestoreSender(req *http.Request) (future ManagedDatabasesCompleteRestoreFuture, err error)

CompleteRestoreSender sends the CompleteRestore request. The method will close the http.Response Body if it receives an error.

func (ManagedDatabasesClient) CreateOrUpdate

func (client ManagedDatabasesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters ManagedDatabase) (result ManagedDatabasesCreateOrUpdateFuture, 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. managedInstanceName - the name of the managed instance. databaseName - the name of the database. parameters - the requested database resource state.

func (ManagedDatabasesClient) CreateOrUpdatePreparer

func (client ManagedDatabasesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters ManagedDatabase) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ManagedDatabasesClient) CreateOrUpdateResponder

func (client ManagedDatabasesClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedDatabase, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ManagedDatabasesClient) CreateOrUpdateSender

func (client ManagedDatabasesClient) CreateOrUpdateSender(req *http.Request) (future ManagedDatabasesCreateOrUpdateFuture, err error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ManagedDatabasesClient) Delete

func (client ManagedDatabasesClient) Delete(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result ManagedDatabasesDeleteFuture, err error)

Delete deletes a managed database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database.

func (ManagedDatabasesClient) DeletePreparer

func (client ManagedDatabasesClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ManagedDatabasesClient) DeleteResponder

func (client ManagedDatabasesClient) 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 (ManagedDatabasesClient) DeleteSender

func (client ManagedDatabasesClient) DeleteSender(req *http.Request) (future ManagedDatabasesDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ManagedDatabasesClient) Get

func (client ManagedDatabasesClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result ManagedDatabase, err error)

Get gets a managed database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database.

func (ManagedDatabasesClient) GetPreparer

func (client ManagedDatabasesClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ManagedDatabasesClient) GetResponder

func (client ManagedDatabasesClient) GetResponder(resp *http.Response) (result ManagedDatabase, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ManagedDatabasesClient) GetSender

func (client ManagedDatabasesClient) 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 (ManagedDatabasesClient) ListByInstance

func (client ManagedDatabasesClient) ListByInstance(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedDatabaseListResultPage, err error)

ListByInstance gets a list of managed databases. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance.

func (ManagedDatabasesClient) ListByInstanceComplete

func (client ManagedDatabasesClient) ListByInstanceComplete(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedDatabaseListResultIterator, err error)

ListByInstanceComplete enumerates all values, automatically crossing page boundaries as required.

func (ManagedDatabasesClient) ListByInstancePreparer

func (client ManagedDatabasesClient) ListByInstancePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error)

ListByInstancePreparer prepares the ListByInstance request.

func (ManagedDatabasesClient) ListByInstanceResponder

func (client ManagedDatabasesClient) ListByInstanceResponder(resp *http.Response) (result ManagedDatabaseListResult, err error)

ListByInstanceResponder handles the response to the ListByInstance request. The method always closes the http.Response Body.

func (ManagedDatabasesClient) ListByInstanceSender

func (client ManagedDatabasesClient) ListByInstanceSender(req *http.Request) (*http.Response, error)

ListByInstanceSender sends the ListByInstance request. The method will close the http.Response Body if it receives an error.

func (ManagedDatabasesClient) Update

func (client ManagedDatabasesClient) Update(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters ManagedDatabaseUpdate) (result ManagedDatabasesUpdateFuture, 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. managedInstanceName - the name of the managed instance. databaseName - the name of the database. parameters - the requested database resource state.

func (ManagedDatabasesClient) UpdatePreparer

func (client ManagedDatabasesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters ManagedDatabaseUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ManagedDatabasesClient) UpdateResponder

func (client ManagedDatabasesClient) UpdateResponder(resp *http.Response) (result ManagedDatabase, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ManagedDatabasesClient) UpdateSender

func (client ManagedDatabasesClient) UpdateSender(req *http.Request) (future ManagedDatabasesUpdateFuture, err error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type ManagedDatabasesCompleteRestoreFuture

type ManagedDatabasesCompleteRestoreFuture struct {
	azure.Future
}

ManagedDatabasesCompleteRestoreFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ManagedDatabasesCompleteRestoreFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ManagedDatabasesCreateOrUpdateFuture

type ManagedDatabasesCreateOrUpdateFuture struct {
	azure.Future
}

ManagedDatabasesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ManagedDatabasesCreateOrUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ManagedDatabasesDeleteFuture

type ManagedDatabasesDeleteFuture struct {
	azure.Future
}

ManagedDatabasesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ManagedDatabasesDeleteFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ManagedDatabasesUpdateFuture

type ManagedDatabasesUpdateFuture struct {
	azure.Future
}

ManagedDatabasesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ManagedDatabasesUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ManagedInstance

type ManagedInstance struct {
	autorest.Response `json:"-"`
	// Identity - The Azure Active Directory identity of the managed instance.
	Identity *ResourceIdentity `json:"identity,omitempty"`
	// Sku - Managed instance SKU. Allowed values for sku.name: GP_Gen4, GP_Gen5, BC_Gen4, BC_Gen5
	Sku *Sku `json:"sku,omitempty"`
	// ManagedInstanceProperties - Resource properties.
	*ManagedInstanceProperties `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"`
}

ManagedInstance an Azure SQL managed instance.

func (ManagedInstance) MarshalJSON

func (mi ManagedInstance) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedInstance.

func (*ManagedInstance) UnmarshalJSON

func (mi *ManagedInstance) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ManagedInstance struct.

type ManagedInstanceAdministrator

type ManagedInstanceAdministrator struct {
	autorest.Response `json:"-"`
	// ManagedInstanceAdministratorProperties - Resource properties.
	*ManagedInstanceAdministratorProperties `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"`
}

ManagedInstanceAdministrator an Azure SQL managed instance administrator.

func (ManagedInstanceAdministrator) MarshalJSON

func (mia ManagedInstanceAdministrator) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedInstanceAdministrator.

func (*ManagedInstanceAdministrator) UnmarshalJSON

func (mia *ManagedInstanceAdministrator) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ManagedInstanceAdministrator struct.

type ManagedInstanceAdministratorListResult

type ManagedInstanceAdministratorListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]ManagedInstanceAdministrator `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ManagedInstanceAdministratorListResult a list of managed instance administrators.

func (ManagedInstanceAdministratorListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type ManagedInstanceAdministratorListResultIterator

type ManagedInstanceAdministratorListResultIterator struct {
	// contains filtered or unexported fields
}

ManagedInstanceAdministratorListResultIterator provides access to a complete listing of ManagedInstanceAdministrator values.

func NewManagedInstanceAdministratorListResultIterator

func NewManagedInstanceAdministratorListResultIterator(page ManagedInstanceAdministratorListResultPage) ManagedInstanceAdministratorListResultIterator

Creates a new instance of the ManagedInstanceAdministratorListResultIterator type.

func (*ManagedInstanceAdministratorListResultIterator) Next

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 (*ManagedInstanceAdministratorListResultIterator) NextWithContext

func (iter *ManagedInstanceAdministratorListResultIterator) 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 (ManagedInstanceAdministratorListResultIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (ManagedInstanceAdministratorListResultIterator) Response

Response returns the raw server response from the last page request.

func (ManagedInstanceAdministratorListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ManagedInstanceAdministratorListResultPage

type ManagedInstanceAdministratorListResultPage struct {
	// contains filtered or unexported fields
}

ManagedInstanceAdministratorListResultPage contains a page of ManagedInstanceAdministrator values.

func NewManagedInstanceAdministratorListResultPage

Creates a new instance of the ManagedInstanceAdministratorListResultPage type.

func (*ManagedInstanceAdministratorListResultPage) Next

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 (*ManagedInstanceAdministratorListResultPage) NextWithContext

func (page *ManagedInstanceAdministratorListResultPage) 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 (ManagedInstanceAdministratorListResultPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ManagedInstanceAdministratorListResultPage) Response

Response returns the raw server response from the last page request.

func (ManagedInstanceAdministratorListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type ManagedInstanceAdministratorProperties

type ManagedInstanceAdministratorProperties struct {
	// AdministratorType - Type of the managed instance administrator.
	AdministratorType *string `json:"administratorType,omitempty"`
	// Login - Login name of the managed instance administrator.
	Login *string `json:"login,omitempty"`
	// Sid - SID (object ID) of the managed instance administrator.
	Sid *uuid.UUID `json:"sid,omitempty"`
	// TenantID - Tenant ID of the managed instance administrator.
	TenantID *uuid.UUID `json:"tenantId,omitempty"`
}

ManagedInstanceAdministratorProperties the properties of a managed instance administrator.

type ManagedInstanceAdministratorsClient

type ManagedInstanceAdministratorsClient struct {
	BaseClient
}

ManagedInstanceAdministratorsClient 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 NewManagedInstanceAdministratorsClient

func NewManagedInstanceAdministratorsClient(subscriptionID string) ManagedInstanceAdministratorsClient

NewManagedInstanceAdministratorsClient creates an instance of the ManagedInstanceAdministratorsClient client.

func NewManagedInstanceAdministratorsClientWithBaseURI

func NewManagedInstanceAdministratorsClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstanceAdministratorsClient

NewManagedInstanceAdministratorsClientWithBaseURI creates an instance of the ManagedInstanceAdministratorsClient client.

func (ManagedInstanceAdministratorsClient) CreateOrUpdate

func (client ManagedInstanceAdministratorsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, administratorName string, parameters ManagedInstanceAdministrator) (result ManagedInstanceAdministratorsCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates a managed instance administrator. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. administratorName - the requested administrator name. parameters - the requested administrator parameters.

func (ManagedInstanceAdministratorsClient) CreateOrUpdatePreparer

func (client ManagedInstanceAdministratorsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, administratorName string, parameters ManagedInstanceAdministrator) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ManagedInstanceAdministratorsClient) CreateOrUpdateResponder

func (client ManagedInstanceAdministratorsClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedInstanceAdministrator, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ManagedInstanceAdministratorsClient) CreateOrUpdateSender

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ManagedInstanceAdministratorsClient) Delete

func (client ManagedInstanceAdministratorsClient) Delete(ctx context.Context, resourceGroupName string, managedInstanceName string, administratorName string) (result ManagedInstanceAdministratorsDeleteFuture, err error)

Delete deletes a managed instance administrator. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. administratorName - the administrator name.

func (ManagedInstanceAdministratorsClient) DeletePreparer

func (client ManagedInstanceAdministratorsClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, administratorName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ManagedInstanceAdministratorsClient) DeleteResponder

func (client ManagedInstanceAdministratorsClient) 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 (ManagedInstanceAdministratorsClient) DeleteSender

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ManagedInstanceAdministratorsClient) Get

func (client ManagedInstanceAdministratorsClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, administratorName string) (result ManagedInstanceAdministrator, err error)

Get gets a managed instance administrator. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. administratorName - the administrator name.

func (ManagedInstanceAdministratorsClient) GetPreparer

func (client ManagedInstanceAdministratorsClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, administratorName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ManagedInstanceAdministratorsClient) GetResponder

func (client ManagedInstanceAdministratorsClient) GetResponder(resp *http.Response) (result ManagedInstanceAdministrator, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ManagedInstanceAdministratorsClient) GetSender

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ManagedInstanceAdministratorsClient) ListByInstance

func (client ManagedInstanceAdministratorsClient) ListByInstance(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceAdministratorListResultPage, err error)

ListByInstance gets a list of managed instance administrators. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance.

func (ManagedInstanceAdministratorsClient) ListByInstanceComplete

func (client ManagedInstanceAdministratorsClient) ListByInstanceComplete(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceAdministratorListResultIterator, err error)

ListByInstanceComplete enumerates all values, automatically crossing page boundaries as required.

func (ManagedInstanceAdministratorsClient) ListByInstancePreparer

func (client ManagedInstanceAdministratorsClient) ListByInstancePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error)

ListByInstancePreparer prepares the ListByInstance request.

func (ManagedInstanceAdministratorsClient) ListByInstanceResponder

func (client ManagedInstanceAdministratorsClient) ListByInstanceResponder(resp *http.Response) (result ManagedInstanceAdministratorListResult, err error)

ListByInstanceResponder handles the response to the ListByInstance request. The method always closes the http.Response Body.

func (ManagedInstanceAdministratorsClient) ListByInstanceSender

func (client ManagedInstanceAdministratorsClient) ListByInstanceSender(req *http.Request) (*http.Response, error)

ListByInstanceSender sends the ListByInstance request. The method will close the http.Response Body if it receives an error.

type ManagedInstanceAdministratorsCreateOrUpdateFuture

type ManagedInstanceAdministratorsCreateOrUpdateFuture struct {
	azure.Future
}

ManagedInstanceAdministratorsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ManagedInstanceAdministratorsCreateOrUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ManagedInstanceAdministratorsDeleteFuture

type ManagedInstanceAdministratorsDeleteFuture struct {
	azure.Future
}

ManagedInstanceAdministratorsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ManagedInstanceAdministratorsDeleteFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ManagedInstanceEditionCapability

type ManagedInstanceEditionCapability struct {
	// Name - READ-ONLY; The managed server version name.
	Name *string `json:"name,omitempty"`
	// SupportedFamilies - READ-ONLY; The supported families.
	SupportedFamilies *[]ManagedInstanceFamilyCapability `json:"supportedFamilies,omitempty"`
	// Status - READ-ONLY; The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled'
	Status CapabilityStatus `json:"status,omitempty"`
	// Reason - The reason for the capability not being available.
	Reason *string `json:"reason,omitempty"`
}

ManagedInstanceEditionCapability the managed server capability

type ManagedInstanceEncryptionProtector

type ManagedInstanceEncryptionProtector struct {
	autorest.Response `json:"-"`
	// Kind - READ-ONLY; Kind of encryption protector. This is metadata used for the Azure portal experience.
	Kind *string `json:"kind,omitempty"`
	// ManagedInstanceEncryptionProtectorProperties - Resource properties.
	*ManagedInstanceEncryptionProtectorProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

ManagedInstanceEncryptionProtector the managed instance encryption protector.

func (ManagedInstanceEncryptionProtector) MarshalJSON

func (miep ManagedInstanceEncryptionProtector) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedInstanceEncryptionProtector.

func (*ManagedInstanceEncryptionProtector) UnmarshalJSON

func (miep *ManagedInstanceEncryptionProtector) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ManagedInstanceEncryptionProtector struct.

type ManagedInstanceEncryptionProtectorListResult

type ManagedInstanceEncryptionProtectorListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]ManagedInstanceEncryptionProtector `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ManagedInstanceEncryptionProtectorListResult a list of managed instance encryption protectors.

func (ManagedInstanceEncryptionProtectorListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type ManagedInstanceEncryptionProtectorListResultIterator

type ManagedInstanceEncryptionProtectorListResultIterator struct {
	// contains filtered or unexported fields
}

ManagedInstanceEncryptionProtectorListResultIterator provides access to a complete listing of ManagedInstanceEncryptionProtector values.

func NewManagedInstanceEncryptionProtectorListResultIterator

func NewManagedInstanceEncryptionProtectorListResultIterator(page ManagedInstanceEncryptionProtectorListResultPage) ManagedInstanceEncryptionProtectorListResultIterator

Creates a new instance of the ManagedInstanceEncryptionProtectorListResultIterator type.

func (*ManagedInstanceEncryptionProtectorListResultIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ManagedInstanceEncryptionProtectorListResultIterator) NextWithContext

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ManagedInstanceEncryptionProtectorListResultIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (ManagedInstanceEncryptionProtectorListResultIterator) Response

Response returns the raw server response from the last page request.

func (ManagedInstanceEncryptionProtectorListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ManagedInstanceEncryptionProtectorListResultPage

type ManagedInstanceEncryptionProtectorListResultPage struct {
	// contains filtered or unexported fields
}

ManagedInstanceEncryptionProtectorListResultPage contains a page of ManagedInstanceEncryptionProtector values.

func NewManagedInstanceEncryptionProtectorListResultPage

Creates a new instance of the ManagedInstanceEncryptionProtectorListResultPage type.

func (*ManagedInstanceEncryptionProtectorListResultPage) Next

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ManagedInstanceEncryptionProtectorListResultPage) NextWithContext

func (page *ManagedInstanceEncryptionProtectorListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ManagedInstanceEncryptionProtectorListResultPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ManagedInstanceEncryptionProtectorListResultPage) Response

Response returns the raw server response from the last page request.

func (ManagedInstanceEncryptionProtectorListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type ManagedInstanceEncryptionProtectorProperties

type ManagedInstanceEncryptionProtectorProperties struct {
	// ServerKeyName - The name of the managed instance key.
	ServerKeyName *string `json:"serverKeyName,omitempty"`
	// ServerKeyType - The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: 'ServiceManaged', 'AzureKeyVault'
	ServerKeyType ServerKeyType `json:"serverKeyType,omitempty"`
	// URI - READ-ONLY; The URI of the server key.
	URI *string `json:"uri,omitempty"`
	// Thumbprint - READ-ONLY; Thumbprint of the server key.
	Thumbprint *string `json:"thumbprint,omitempty"`
}

ManagedInstanceEncryptionProtectorProperties properties for an encryption protector execution.

type ManagedInstanceEncryptionProtectorsClient

type ManagedInstanceEncryptionProtectorsClient struct {
	BaseClient
}

ManagedInstanceEncryptionProtectorsClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewManagedInstanceEncryptionProtectorsClient

func NewManagedInstanceEncryptionProtectorsClient(subscriptionID string) ManagedInstanceEncryptionProtectorsClient

NewManagedInstanceEncryptionProtectorsClient creates an instance of the ManagedInstanceEncryptionProtectorsClient client.

func NewManagedInstanceEncryptionProtectorsClientWithBaseURI

func NewManagedInstanceEncryptionProtectorsClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstanceEncryptionProtectorsClient

NewManagedInstanceEncryptionProtectorsClientWithBaseURI creates an instance of the ManagedInstanceEncryptionProtectorsClient client.

func (ManagedInstanceEncryptionProtectorsClient) CreateOrUpdate

func (client ManagedInstanceEncryptionProtectorsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters ManagedInstanceEncryptionProtector) (result ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture, err error)

CreateOrUpdate updates an existing encryption protector. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. parameters - the requested encryption protector resource state.

func (ManagedInstanceEncryptionProtectorsClient) CreateOrUpdatePreparer

func (client ManagedInstanceEncryptionProtectorsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters ManagedInstanceEncryptionProtector) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ManagedInstanceEncryptionProtectorsClient) CreateOrUpdateResponder

func (client ManagedInstanceEncryptionProtectorsClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedInstanceEncryptionProtector, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ManagedInstanceEncryptionProtectorsClient) CreateOrUpdateSender

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ManagedInstanceEncryptionProtectorsClient) Get

func (client ManagedInstanceEncryptionProtectorsClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceEncryptionProtector, err error)

Get gets a managed instance encryption protector. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance.

func (ManagedInstanceEncryptionProtectorsClient) GetPreparer

func (client ManagedInstanceEncryptionProtectorsClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ManagedInstanceEncryptionProtectorsClient) GetResponder

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ManagedInstanceEncryptionProtectorsClient) GetSender

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ManagedInstanceEncryptionProtectorsClient) ListByInstance

func (client ManagedInstanceEncryptionProtectorsClient) ListByInstance(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceEncryptionProtectorListResultPage, err error)

ListByInstance gets a list of managed instance encryption protectors Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance.

func (ManagedInstanceEncryptionProtectorsClient) ListByInstanceComplete

func (client ManagedInstanceEncryptionProtectorsClient) ListByInstanceComplete(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceEncryptionProtectorListResultIterator, err error)

ListByInstanceComplete enumerates all values, automatically crossing page boundaries as required.

func (ManagedInstanceEncryptionProtectorsClient) ListByInstancePreparer

func (client ManagedInstanceEncryptionProtectorsClient) ListByInstancePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error)

ListByInstancePreparer prepares the ListByInstance request.

func (ManagedInstanceEncryptionProtectorsClient) ListByInstanceResponder

ListByInstanceResponder handles the response to the ListByInstance request. The method always closes the http.Response Body.

func (ManagedInstanceEncryptionProtectorsClient) ListByInstanceSender

func (client ManagedInstanceEncryptionProtectorsClient) ListByInstanceSender(req *http.Request) (*http.Response, error)

ListByInstanceSender sends the ListByInstance request. The method will close the http.Response Body if it receives an error.

func (ManagedInstanceEncryptionProtectorsClient) Revalidate

func (client ManagedInstanceEncryptionProtectorsClient) Revalidate(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceEncryptionProtectorsRevalidateFuture, err error)

Revalidate revalidates an existing encryption protector. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance.

func (ManagedInstanceEncryptionProtectorsClient) RevalidatePreparer

func (client ManagedInstanceEncryptionProtectorsClient) RevalidatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error)

RevalidatePreparer prepares the Revalidate request.

func (ManagedInstanceEncryptionProtectorsClient) RevalidateResponder

func (client ManagedInstanceEncryptionProtectorsClient) RevalidateResponder(resp *http.Response) (result autorest.Response, err error)

RevalidateResponder handles the response to the Revalidate request. The method always closes the http.Response Body.

func (ManagedInstanceEncryptionProtectorsClient) RevalidateSender

RevalidateSender sends the Revalidate request. The method will close the http.Response Body if it receives an error.

type ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture

type ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture struct {
	azure.Future
}

ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ManagedInstanceEncryptionProtectorsRevalidateFuture

type ManagedInstanceEncryptionProtectorsRevalidateFuture struct {
	azure.Future
}

ManagedInstanceEncryptionProtectorsRevalidateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ManagedInstanceEncryptionProtectorsRevalidateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ManagedInstanceFamilyCapability

type ManagedInstanceFamilyCapability struct {
	// Name - READ-ONLY; Family name.
	Name *string `json:"name,omitempty"`
	// Sku - READ-ONLY; SKU name.
	Sku *string `json:"sku,omitempty"`
	// SupportedLicenseTypes - READ-ONLY; List of supported license types.
	SupportedLicenseTypes *[]LicenseTypeCapability `json:"supportedLicenseTypes,omitempty"`
	// SupportedVcoresValues - READ-ONLY; List of supported virtual cores values.
	SupportedVcoresValues *[]ManagedInstanceVcoresCapability `json:"supportedVcoresValues,omitempty"`
	// IncludedMaxSize - READ-ONLY; Included size.
	IncludedMaxSize *MaxSizeCapability `json:"includedMaxSize,omitempty"`
	// SupportedStorageSizes - READ-ONLY; Storage size ranges.
	SupportedStorageSizes *[]MaxSizeRangeCapability `json:"supportedStorageSizes,omitempty"`
	// Status - READ-ONLY; The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled'
	Status CapabilityStatus `json:"status,omitempty"`
	// Reason - The reason for the capability not being available.
	Reason *string `json:"reason,omitempty"`
}

ManagedInstanceFamilyCapability the managed server family capability.

type ManagedInstanceKey

type ManagedInstanceKey struct {
	autorest.Response `json:"-"`
	// Kind - READ-ONLY; Kind of encryption protector. This is metadata used for the Azure portal experience.
	Kind *string `json:"kind,omitempty"`
	// ManagedInstanceKeyProperties - Resource properties.
	*ManagedInstanceKeyProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

ManagedInstanceKey a managed instance key.

func (ManagedInstanceKey) MarshalJSON

func (mik ManagedInstanceKey) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedInstanceKey.

func (*ManagedInstanceKey) UnmarshalJSON

func (mik *ManagedInstanceKey) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ManagedInstanceKey struct.

type ManagedInstanceKeyListResult

type ManagedInstanceKeyListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]ManagedInstanceKey `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ManagedInstanceKeyListResult a list of managed instance keys.

func (ManagedInstanceKeyListResult) IsEmpty

func (miklr ManagedInstanceKeyListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ManagedInstanceKeyListResultIterator

type ManagedInstanceKeyListResultIterator struct {
	// contains filtered or unexported fields
}

ManagedInstanceKeyListResultIterator provides access to a complete listing of ManagedInstanceKey values.

func NewManagedInstanceKeyListResultIterator

func NewManagedInstanceKeyListResultIterator(page ManagedInstanceKeyListResultPage) ManagedInstanceKeyListResultIterator

Creates a new instance of the ManagedInstanceKeyListResultIterator type.

func (*ManagedInstanceKeyListResultIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ManagedInstanceKeyListResultIterator) NextWithContext

func (iter *ManagedInstanceKeyListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ManagedInstanceKeyListResultIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (ManagedInstanceKeyListResultIterator) Response

Response returns the raw server response from the last page request.

func (ManagedInstanceKeyListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ManagedInstanceKeyListResultPage

type ManagedInstanceKeyListResultPage struct {
	// contains filtered or unexported fields
}

ManagedInstanceKeyListResultPage contains a page of ManagedInstanceKey values.

func NewManagedInstanceKeyListResultPage

Creates a new instance of the ManagedInstanceKeyListResultPage type.

func (*ManagedInstanceKeyListResultPage) Next

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ManagedInstanceKeyListResultPage) NextWithContext

func (page *ManagedInstanceKeyListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ManagedInstanceKeyListResultPage) NotDone

func (page ManagedInstanceKeyListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ManagedInstanceKeyListResultPage) Response

Response returns the raw server response from the last page request.

func (ManagedInstanceKeyListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type ManagedInstanceKeyProperties

type ManagedInstanceKeyProperties struct {
	// ServerKeyType - The key type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: 'ServiceManaged', 'AzureKeyVault'
	ServerKeyType ServerKeyType `json:"serverKeyType,omitempty"`
	// URI - The URI of the key. If the ServerKeyType is AzureKeyVault, then the URI is required.
	URI *string `json:"uri,omitempty"`
	// Thumbprint - READ-ONLY; Thumbprint of the key.
	Thumbprint *string `json:"thumbprint,omitempty"`
	// CreationDate - READ-ONLY; The key creation date.
	CreationDate *date.Time `json:"creationDate,omitempty"`
}

ManagedInstanceKeyProperties properties for a key execution.

type ManagedInstanceKeysClient

type ManagedInstanceKeysClient struct {
	BaseClient
}

ManagedInstanceKeysClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewManagedInstanceKeysClient

func NewManagedInstanceKeysClient(subscriptionID string) ManagedInstanceKeysClient

NewManagedInstanceKeysClient creates an instance of the ManagedInstanceKeysClient client.

func NewManagedInstanceKeysClientWithBaseURI

func NewManagedInstanceKeysClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstanceKeysClient

NewManagedInstanceKeysClientWithBaseURI creates an instance of the ManagedInstanceKeysClient client.

func (ManagedInstanceKeysClient) CreateOrUpdate

func (client ManagedInstanceKeysClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, keyName string, parameters ManagedInstanceKey) (result ManagedInstanceKeysCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates a managed instance key. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. keyName - the name of the managed instance key to be operated on (updated or created). parameters - the requested managed instance key resource state.

func (ManagedInstanceKeysClient) CreateOrUpdatePreparer

func (client ManagedInstanceKeysClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, keyName string, parameters ManagedInstanceKey) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ManagedInstanceKeysClient) CreateOrUpdateResponder

func (client ManagedInstanceKeysClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedInstanceKey, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ManagedInstanceKeysClient) CreateOrUpdateSender

func (client ManagedInstanceKeysClient) CreateOrUpdateSender(req *http.Request) (future ManagedInstanceKeysCreateOrUpdateFuture, err error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ManagedInstanceKeysClient) Delete

func (client ManagedInstanceKeysClient) Delete(ctx context.Context, resourceGroupName string, managedInstanceName string, keyName string) (result ManagedInstanceKeysDeleteFuture, err error)

Delete deletes the managed instance key with the given name. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. keyName - the name of the managed instance key to be deleted.

func (ManagedInstanceKeysClient) DeletePreparer

func (client ManagedInstanceKeysClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, keyName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ManagedInstanceKeysClient) DeleteResponder

func (client ManagedInstanceKeysClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ManagedInstanceKeysClient) DeleteSender

func (client ManagedInstanceKeysClient) DeleteSender(req *http.Request) (future ManagedInstanceKeysDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ManagedInstanceKeysClient) Get

func (client ManagedInstanceKeysClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, keyName string) (result ManagedInstanceKey, err error)

Get gets a managed instance key. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. keyName - the name of the managed instance key to be retrieved.

func (ManagedInstanceKeysClient) GetPreparer

func (client ManagedInstanceKeysClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, keyName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ManagedInstanceKeysClient) GetResponder

func (client ManagedInstanceKeysClient) GetResponder(resp *http.Response) (result ManagedInstanceKey, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ManagedInstanceKeysClient) GetSender

func (client ManagedInstanceKeysClient) 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 (ManagedInstanceKeysClient) ListByInstance

func (client ManagedInstanceKeysClient) ListByInstance(ctx context.Context, resourceGroupName string, managedInstanceName string, filter string) (result ManagedInstanceKeyListResultPage, err error)

ListByInstance gets a list of managed instance keys. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. filter - an OData filter expression that filters elements in the collection.

func (ManagedInstanceKeysClient) ListByInstanceComplete

func (client ManagedInstanceKeysClient) ListByInstanceComplete(ctx context.Context, resourceGroupName string, managedInstanceName string, filter string) (result ManagedInstanceKeyListResultIterator, err error)

ListByInstanceComplete enumerates all values, automatically crossing page boundaries as required.

func (ManagedInstanceKeysClient) ListByInstancePreparer

func (client ManagedInstanceKeysClient) ListByInstancePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, filter string) (*http.Request, error)

ListByInstancePreparer prepares the ListByInstance request.

func (ManagedInstanceKeysClient) ListByInstanceResponder

func (client ManagedInstanceKeysClient) ListByInstanceResponder(resp *http.Response) (result ManagedInstanceKeyListResult, err error)

ListByInstanceResponder handles the response to the ListByInstance request. The method always closes the http.Response Body.

func (ManagedInstanceKeysClient) ListByInstanceSender

func (client ManagedInstanceKeysClient) ListByInstanceSender(req *http.Request) (*http.Response, error)

ListByInstanceSender sends the ListByInstance request. The method will close the http.Response Body if it receives an error.

type ManagedInstanceKeysCreateOrUpdateFuture

type ManagedInstanceKeysCreateOrUpdateFuture struct {
	azure.Future
}

ManagedInstanceKeysCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ManagedInstanceKeysCreateOrUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ManagedInstanceKeysDeleteFuture

type ManagedInstanceKeysDeleteFuture struct {
	azure.Future
}

ManagedInstanceKeysDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ManagedInstanceKeysDeleteFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ManagedInstanceLicenseType

type ManagedInstanceLicenseType string

ManagedInstanceLicenseType enumerates the values for managed instance license type.

const (
	// ManagedInstanceLicenseTypeBasePrice ...
	ManagedInstanceLicenseTypeBasePrice ManagedInstanceLicenseType = "BasePrice"
	// ManagedInstanceLicenseTypeLicenseIncluded ...
	ManagedInstanceLicenseTypeLicenseIncluded ManagedInstanceLicenseType = "LicenseIncluded"
)

func PossibleManagedInstanceLicenseTypeValues

func PossibleManagedInstanceLicenseTypeValues() []ManagedInstanceLicenseType

PossibleManagedInstanceLicenseTypeValues returns an array of possible values for the ManagedInstanceLicenseType const type.

type ManagedInstanceListResult

type ManagedInstanceListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]ManagedInstance `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ManagedInstanceListResult a list of managed instances.

func (ManagedInstanceListResult) IsEmpty

func (milr ManagedInstanceListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ManagedInstanceListResultIterator

type ManagedInstanceListResultIterator struct {
	// contains filtered or unexported fields
}

ManagedInstanceListResultIterator provides access to a complete listing of ManagedInstance values.

func NewManagedInstanceListResultIterator

func NewManagedInstanceListResultIterator(page ManagedInstanceListResultPage) ManagedInstanceListResultIterator

Creates a new instance of the ManagedInstanceListResultIterator type.

func (*ManagedInstanceListResultIterator) Next

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 (*ManagedInstanceListResultIterator) NextWithContext

func (iter *ManagedInstanceListResultIterator) 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 (ManagedInstanceListResultIterator) NotDone

func (iter ManagedInstanceListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ManagedInstanceListResultIterator) Response

Response returns the raw server response from the last page request.

func (ManagedInstanceListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ManagedInstanceListResultPage

type ManagedInstanceListResultPage struct {
	// contains filtered or unexported fields
}

ManagedInstanceListResultPage contains a page of ManagedInstance values.

func NewManagedInstanceListResultPage

func NewManagedInstanceListResultPage(getNextPage func(context.Context, ManagedInstanceListResult) (ManagedInstanceListResult, error)) ManagedInstanceListResultPage

Creates a new instance of the ManagedInstanceListResultPage type.

func (*ManagedInstanceListResultPage) Next

func (page *ManagedInstanceListResultPage) 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 (*ManagedInstanceListResultPage) NextWithContext

func (page *ManagedInstanceListResultPage) 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 (ManagedInstanceListResultPage) NotDone

func (page ManagedInstanceListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ManagedInstanceListResultPage) Response

Response returns the raw server response from the last page request.

func (ManagedInstanceListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type ManagedInstancePairInfo

type ManagedInstancePairInfo struct {
	// PrimaryManagedInstanceID - Id of Primary Managed Instance in pair.
	PrimaryManagedInstanceID *string `json:"primaryManagedInstanceId,omitempty"`
	// PartnerManagedInstanceID - Id of Partner Managed Instance in pair.
	PartnerManagedInstanceID *string `json:"partnerManagedInstanceId,omitempty"`
}

ManagedInstancePairInfo pairs of Managed Instances in the failover group.

type ManagedInstanceProperties

type ManagedInstanceProperties struct {
	// ManagedInstanceCreateMode - Specifies the mode of database creation.
	//
	// Default: Regular instance creation.
	//
	// Restore: Creates an instance by restoring a set of backups to specific point in time. RestorePointInTime and SourceManagedInstanceId must be specified. Possible values include: 'ManagedServerCreateModeDefault', 'ManagedServerCreateModePointInTimeRestore'
	ManagedInstanceCreateMode ManagedServerCreateMode `json:"managedInstanceCreateMode,omitempty"`
	// FullyQualifiedDomainName - READ-ONLY; The fully qualified domain name of the managed instance.
	FullyQualifiedDomainName *string `json:"fullyQualifiedDomainName,omitempty"`
	// AdministratorLogin - Administrator username for the managed instance. Can only be specified when the managed instance is being created (and is required for creation).
	AdministratorLogin *string `json:"administratorLogin,omitempty"`
	// AdministratorLoginPassword - The administrator login password (required for managed instance creation).
	AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"`
	// SubnetID - Subnet resource ID for the managed instance.
	SubnetID *string `json:"subnetId,omitempty"`
	// State - READ-ONLY; The state of the managed instance.
	State *string `json:"state,omitempty"`
	// LicenseType - The license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses). Possible values include: 'ManagedInstanceLicenseTypeLicenseIncluded', 'ManagedInstanceLicenseTypeBasePrice'
	LicenseType ManagedInstanceLicenseType `json:"licenseType,omitempty"`
	// VCores - The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80.
	VCores *int32 `json:"vCores,omitempty"`
	// StorageSizeInGB - Storage size in GB. Minimum value: 32. Maximum value: 8192. Increments of 32 GB allowed only.
	StorageSizeInGB *int32 `json:"storageSizeInGB,omitempty"`
	// Collation - Collation of the managed instance.
	Collation *string `json:"collation,omitempty"`
	// DNSZone - READ-ONLY; The Dns Zone that the managed instance is in.
	DNSZone *string `json:"dnsZone,omitempty"`
	// DNSZonePartner - The resource id of another managed instance whose DNS zone this managed instance will share after creation.
	DNSZonePartner *string `json:"dnsZonePartner,omitempty"`
	// PublicDataEndpointEnabled - Whether or not the public data endpoint is enabled.
	PublicDataEndpointEnabled *bool `json:"publicDataEndpointEnabled,omitempty"`
	// SourceManagedInstanceID - The resource identifier of the source managed instance associated with create operation of this instance.
	SourceManagedInstanceID *string `json:"sourceManagedInstanceId,omitempty"`
	// RestorePointInTime - Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database.
	RestorePointInTime *date.Time `json:"restorePointInTime,omitempty"`
	// ProxyOverride - Connection type used for connecting to the instance. Possible values include: 'ManagedInstanceProxyOverrideProxy', 'ManagedInstanceProxyOverrideRedirect', 'ManagedInstanceProxyOverrideDefault'
	ProxyOverride ManagedInstanceProxyOverride `json:"proxyOverride,omitempty"`
	// TimezoneID - Id of the timezone. Allowed values are timezones supported by Windows.
	// Windows keeps details on supported timezones, including the id, in registry under
	// KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones.
	// You can get those registry values via SQL Server by querying SELECT name AS timezone_id FROM sys.time_zone_info.
	// List of Ids can also be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell.
	// An example of valid timezone id is "Pacific Standard Time" or "W. Europe Standard Time".
	TimezoneID *string `json:"timezoneId,omitempty"`
	// InstancePoolID - The Id of the instance pool this managed server belongs to.
	InstancePoolID *string `json:"instancePoolId,omitempty"`
}

ManagedInstanceProperties the properties of a managed instance.

type ManagedInstanceProxyOverride

type ManagedInstanceProxyOverride string

ManagedInstanceProxyOverride enumerates the values for managed instance proxy override.

const (
	// ManagedInstanceProxyOverrideDefault ...
	ManagedInstanceProxyOverrideDefault ManagedInstanceProxyOverride = "Default"
	// ManagedInstanceProxyOverrideProxy ...
	ManagedInstanceProxyOverrideProxy ManagedInstanceProxyOverride = "Proxy"
	// ManagedInstanceProxyOverrideRedirect ...
	ManagedInstanceProxyOverrideRedirect ManagedInstanceProxyOverride = "Redirect"
)

func PossibleManagedInstanceProxyOverrideValues

func PossibleManagedInstanceProxyOverrideValues() []ManagedInstanceProxyOverride

PossibleManagedInstanceProxyOverrideValues returns an array of possible values for the ManagedInstanceProxyOverride const type.

type ManagedInstanceTdeCertificatesClient

type ManagedInstanceTdeCertificatesClient struct {
	BaseClient
}

ManagedInstanceTdeCertificatesClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewManagedInstanceTdeCertificatesClient

func NewManagedInstanceTdeCertificatesClient(subscriptionID string) ManagedInstanceTdeCertificatesClient

NewManagedInstanceTdeCertificatesClient creates an instance of the ManagedInstanceTdeCertificatesClient client.

func NewManagedInstanceTdeCertificatesClientWithBaseURI

func NewManagedInstanceTdeCertificatesClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstanceTdeCertificatesClient

NewManagedInstanceTdeCertificatesClientWithBaseURI creates an instance of the ManagedInstanceTdeCertificatesClient client.

func (ManagedInstanceTdeCertificatesClient) Create

func (client ManagedInstanceTdeCertificatesClient) Create(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters TdeCertificate) (result ManagedInstanceTdeCertificatesCreateFuture, err error)

Create creates a TDE certificate for a given server. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. parameters - the requested TDE certificate to be created or updated.

func (ManagedInstanceTdeCertificatesClient) CreatePreparer

func (client ManagedInstanceTdeCertificatesClient) CreatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters TdeCertificate) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ManagedInstanceTdeCertificatesClient) CreateResponder

func (client ManagedInstanceTdeCertificatesClient) CreateResponder(resp *http.Response) (result autorest.Response, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (ManagedInstanceTdeCertificatesClient) CreateSender

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

type ManagedInstanceTdeCertificatesCreateFuture

type ManagedInstanceTdeCertificatesCreateFuture struct {
	azure.Future
}

ManagedInstanceTdeCertificatesCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ManagedInstanceTdeCertificatesCreateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ManagedInstanceUpdate

type ManagedInstanceUpdate struct {
	// Sku - Managed instance sku
	Sku *Sku `json:"sku,omitempty"`
	// ManagedInstanceProperties - Resource properties.
	*ManagedInstanceProperties `json:"properties,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
}

ManagedInstanceUpdate an update request for an Azure SQL Database managed instance.

func (ManagedInstanceUpdate) MarshalJSON

func (miu ManagedInstanceUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedInstanceUpdate.

func (*ManagedInstanceUpdate) UnmarshalJSON

func (miu *ManagedInstanceUpdate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ManagedInstanceUpdate struct.

type ManagedInstanceVcoresCapability

type ManagedInstanceVcoresCapability struct {
	// Name - READ-ONLY; The virtual cores identifier.
	Name *string `json:"name,omitempty"`
	// Value - READ-ONLY; The virtual cores value.
	Value *int32 `json:"value,omitempty"`
	// Status - READ-ONLY; The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled'
	Status CapabilityStatus `json:"status,omitempty"`
	// Reason - The reason for the capability not being available.
	Reason *string `json:"reason,omitempty"`
}

ManagedInstanceVcoresCapability the managed instance virtual cores capability.

type ManagedInstanceVersionCapability

type ManagedInstanceVersionCapability struct {
	// Name - READ-ONLY; The server version name.
	Name *string `json:"name,omitempty"`
	// SupportedEditions - READ-ONLY; The list of supported managed instance editions.
	SupportedEditions *[]ManagedInstanceEditionCapability `json:"supportedEditions,omitempty"`
	// Status - READ-ONLY; The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled'
	Status CapabilityStatus `json:"status,omitempty"`
	// Reason - The reason for the capability not being available.
	Reason *string `json:"reason,omitempty"`
}

ManagedInstanceVersionCapability the managed instance capability

type ManagedInstanceVulnerabilityAssessment

type ManagedInstanceVulnerabilityAssessment struct {
	autorest.Response `json:"-"`
	// ManagedInstanceVulnerabilityAssessmentProperties - Resource properties.
	*ManagedInstanceVulnerabilityAssessmentProperties `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"`
}

ManagedInstanceVulnerabilityAssessment a managed instance vulnerability assessment.

func (ManagedInstanceVulnerabilityAssessment) MarshalJSON

func (miva ManagedInstanceVulnerabilityAssessment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedInstanceVulnerabilityAssessment.

func (*ManagedInstanceVulnerabilityAssessment) UnmarshalJSON

func (miva *ManagedInstanceVulnerabilityAssessment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ManagedInstanceVulnerabilityAssessment struct.

type ManagedInstanceVulnerabilityAssessmentListResult

type ManagedInstanceVulnerabilityAssessmentListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]ManagedInstanceVulnerabilityAssessment `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ManagedInstanceVulnerabilityAssessmentListResult a list of the ManagedInstance's vulnerability assessments.

func (ManagedInstanceVulnerabilityAssessmentListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type ManagedInstanceVulnerabilityAssessmentListResultIterator

type ManagedInstanceVulnerabilityAssessmentListResultIterator struct {
	// contains filtered or unexported fields
}

ManagedInstanceVulnerabilityAssessmentListResultIterator provides access to a complete listing of ManagedInstanceVulnerabilityAssessment values.

func NewManagedInstanceVulnerabilityAssessmentListResultIterator

func NewManagedInstanceVulnerabilityAssessmentListResultIterator(page ManagedInstanceVulnerabilityAssessmentListResultPage) ManagedInstanceVulnerabilityAssessmentListResultIterator

Creates a new instance of the ManagedInstanceVulnerabilityAssessmentListResultIterator type.

func (*ManagedInstanceVulnerabilityAssessmentListResultIterator) Next

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 (*ManagedInstanceVulnerabilityAssessmentListResultIterator) NextWithContext

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 (ManagedInstanceVulnerabilityAssessmentListResultIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (ManagedInstanceVulnerabilityAssessmentListResultIterator) Response

Response returns the raw server response from the last page request.

func (ManagedInstanceVulnerabilityAssessmentListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ManagedInstanceVulnerabilityAssessmentListResultPage

type ManagedInstanceVulnerabilityAssessmentListResultPage struct {
	// contains filtered or unexported fields
}

ManagedInstanceVulnerabilityAssessmentListResultPage contains a page of ManagedInstanceVulnerabilityAssessment values.

func NewManagedInstanceVulnerabilityAssessmentListResultPage

Creates a new instance of the ManagedInstanceVulnerabilityAssessmentListResultPage type.

func (*ManagedInstanceVulnerabilityAssessmentListResultPage) Next

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 (*ManagedInstanceVulnerabilityAssessmentListResultPage) NextWithContext

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 (ManagedInstanceVulnerabilityAssessmentListResultPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ManagedInstanceVulnerabilityAssessmentListResultPage) Response

Response returns the raw server response from the last page request.

func (ManagedInstanceVulnerabilityAssessmentListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type ManagedInstanceVulnerabilityAssessmentProperties

type ManagedInstanceVulnerabilityAssessmentProperties struct {
	// StorageContainerPath - A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
	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"`
}

ManagedInstanceVulnerabilityAssessmentProperties properties of a managed instance vulnerability assessment.

type ManagedInstanceVulnerabilityAssessmentsClient

type ManagedInstanceVulnerabilityAssessmentsClient struct {
	BaseClient
}

ManagedInstanceVulnerabilityAssessmentsClient 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 NewManagedInstanceVulnerabilityAssessmentsClient

func NewManagedInstanceVulnerabilityAssessmentsClient(subscriptionID string) ManagedInstanceVulnerabilityAssessmentsClient

NewManagedInstanceVulnerabilityAssessmentsClient creates an instance of the ManagedInstanceVulnerabilityAssessmentsClient client.

func NewManagedInstanceVulnerabilityAssessmentsClientWithBaseURI

func NewManagedInstanceVulnerabilityAssessmentsClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstanceVulnerabilityAssessmentsClient

NewManagedInstanceVulnerabilityAssessmentsClientWithBaseURI creates an instance of the ManagedInstanceVulnerabilityAssessmentsClient client.

func (ManagedInstanceVulnerabilityAssessmentsClient) CreateOrUpdate

func (client ManagedInstanceVulnerabilityAssessmentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters ManagedInstanceVulnerabilityAssessment) (result ManagedInstanceVulnerabilityAssessment, err error)

CreateOrUpdate creates or updates the managed instance's vulnerability assessment. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance for which the vulnerability assessment is defined. parameters - the requested resource.

func (ManagedInstanceVulnerabilityAssessmentsClient) CreateOrUpdatePreparer

func (client ManagedInstanceVulnerabilityAssessmentsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters ManagedInstanceVulnerabilityAssessment) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ManagedInstanceVulnerabilityAssessmentsClient) CreateOrUpdateResponder

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ManagedInstanceVulnerabilityAssessmentsClient) CreateOrUpdateSender

func (client ManagedInstanceVulnerabilityAssessmentsClient) 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 (ManagedInstanceVulnerabilityAssessmentsClient) Delete

func (client ManagedInstanceVulnerabilityAssessmentsClient) Delete(ctx context.Context, resourceGroupName string, managedInstanceName string) (result autorest.Response, err error)

Delete removes the managed instance's vulnerability assessment. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance for which the vulnerability assessment is defined.

func (ManagedInstanceVulnerabilityAssessmentsClient) DeletePreparer

func (client ManagedInstanceVulnerabilityAssessmentsClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ManagedInstanceVulnerabilityAssessmentsClient) DeleteResponder

func (client ManagedInstanceVulnerabilityAssessmentsClient) 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 (ManagedInstanceVulnerabilityAssessmentsClient) DeleteSender

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ManagedInstanceVulnerabilityAssessmentsClient) Get

func (client ManagedInstanceVulnerabilityAssessmentsClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceVulnerabilityAssessment, err error)

Get gets the managed instance's vulnerability assessment. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance for which the vulnerability assessment is defined.

func (ManagedInstanceVulnerabilityAssessmentsClient) GetPreparer

func (client ManagedInstanceVulnerabilityAssessmentsClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ManagedInstanceVulnerabilityAssessmentsClient) GetResponder

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ManagedInstanceVulnerabilityAssessmentsClient) GetSender

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ManagedInstanceVulnerabilityAssessmentsClient) ListByInstance

func (client ManagedInstanceVulnerabilityAssessmentsClient) ListByInstance(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceVulnerabilityAssessmentListResultPage, err error)

ListByInstance gets the managed instance's vulnerability assessment policies. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance for which the vulnerability assessments is defined.

func (ManagedInstanceVulnerabilityAssessmentsClient) ListByInstanceComplete

func (client ManagedInstanceVulnerabilityAssessmentsClient) ListByInstanceComplete(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceVulnerabilityAssessmentListResultIterator, err error)

ListByInstanceComplete enumerates all values, automatically crossing page boundaries as required.

func (ManagedInstanceVulnerabilityAssessmentsClient) ListByInstancePreparer

func (client ManagedInstanceVulnerabilityAssessmentsClient) ListByInstancePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error)

ListByInstancePreparer prepares the ListByInstance request.

func (ManagedInstanceVulnerabilityAssessmentsClient) ListByInstanceResponder

ListByInstanceResponder handles the response to the ListByInstance request. The method always closes the http.Response Body.

func (ManagedInstanceVulnerabilityAssessmentsClient) ListByInstanceSender

func (client ManagedInstanceVulnerabilityAssessmentsClient) ListByInstanceSender(req *http.Request) (*http.Response, error)

ListByInstanceSender sends the ListByInstance request. The method will close the http.Response Body if it receives an error.

type ManagedInstancesClient

type ManagedInstancesClient struct {
	BaseClient
}

ManagedInstancesClient 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 NewManagedInstancesClient

func NewManagedInstancesClient(subscriptionID string) ManagedInstancesClient

NewManagedInstancesClient creates an instance of the ManagedInstancesClient client.

func NewManagedInstancesClientWithBaseURI

func NewManagedInstancesClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstancesClient

NewManagedInstancesClientWithBaseURI creates an instance of the ManagedInstancesClient client.

func (ManagedInstancesClient) CreateOrUpdate

func (client ManagedInstancesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters ManagedInstance) (result ManagedInstancesCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates a managed instance. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. parameters - the requested managed instance resource state.

func (ManagedInstancesClient) CreateOrUpdatePreparer

func (client ManagedInstancesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters ManagedInstance) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ManagedInstancesClient) CreateOrUpdateResponder

func (client ManagedInstancesClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedInstance, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ManagedInstancesClient) CreateOrUpdateSender

func (client ManagedInstancesClient) CreateOrUpdateSender(req *http.Request) (future ManagedInstancesCreateOrUpdateFuture, err error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ManagedInstancesClient) Delete

func (client ManagedInstancesClient) Delete(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstancesDeleteFuture, err error)

Delete deletes a managed instance. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance.

func (ManagedInstancesClient) DeletePreparer

func (client ManagedInstancesClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ManagedInstancesClient) DeleteResponder

func (client ManagedInstancesClient) 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 (ManagedInstancesClient) DeleteSender

func (client ManagedInstancesClient) DeleteSender(req *http.Request) (future ManagedInstancesDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ManagedInstancesClient) Get

func (client ManagedInstancesClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstance, err error)

Get gets a managed instance. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance.

func (ManagedInstancesClient) GetPreparer

func (client ManagedInstancesClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ManagedInstancesClient) GetResponder

func (client ManagedInstancesClient) GetResponder(resp *http.Response) (result ManagedInstance, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ManagedInstancesClient) GetSender

func (client ManagedInstancesClient) 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 (ManagedInstancesClient) List

List gets a list of all managed instances in the subscription.

func (ManagedInstancesClient) ListByInstancePool

func (client ManagedInstancesClient) ListByInstancePool(ctx context.Context, resourceGroupName string, instancePoolName string) (result ManagedInstanceListResultPage, err error)

ListByInstancePool gets a list of all managed instances in an instance 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. instancePoolName - the instance pool name.

func (ManagedInstancesClient) ListByInstancePoolComplete

func (client ManagedInstancesClient) ListByInstancePoolComplete(ctx context.Context, resourceGroupName string, instancePoolName string) (result ManagedInstanceListResultIterator, err error)

ListByInstancePoolComplete enumerates all values, automatically crossing page boundaries as required.

func (ManagedInstancesClient) ListByInstancePoolPreparer

func (client ManagedInstancesClient) ListByInstancePoolPreparer(ctx context.Context, resourceGroupName string, instancePoolName string) (*http.Request, error)

ListByInstancePoolPreparer prepares the ListByInstancePool request.

func (ManagedInstancesClient) ListByInstancePoolResponder

func (client ManagedInstancesClient) ListByInstancePoolResponder(resp *http.Response) (result ManagedInstanceListResult, err error)

ListByInstancePoolResponder handles the response to the ListByInstancePool request. The method always closes the http.Response Body.

func (ManagedInstancesClient) ListByInstancePoolSender

func (client ManagedInstancesClient) ListByInstancePoolSender(req *http.Request) (*http.Response, error)

ListByInstancePoolSender sends the ListByInstancePool request. The method will close the http.Response Body if it receives an error.

func (ManagedInstancesClient) ListByResourceGroup

func (client ManagedInstancesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ManagedInstanceListResultPage, err error)

ListByResourceGroup gets a list of managed instances in a resource group. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

func (ManagedInstancesClient) ListByResourceGroupComplete

func (client ManagedInstancesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ManagedInstanceListResultIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (ManagedInstancesClient) ListByResourceGroupPreparer

func (client ManagedInstancesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ManagedInstancesClient) ListByResourceGroupResponder

func (client ManagedInstancesClient) ListByResourceGroupResponder(resp *http.Response) (result ManagedInstanceListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (ManagedInstancesClient) ListByResourceGroupSender

func (client ManagedInstancesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (ManagedInstancesClient) ListComplete

func (client ManagedInstancesClient) ListComplete(ctx context.Context) (result ManagedInstanceListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (ManagedInstancesClient) ListPreparer

func (client ManagedInstancesClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (ManagedInstancesClient) ListResponder

func (client ManagedInstancesClient) ListResponder(resp *http.Response) (result ManagedInstanceListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ManagedInstancesClient) ListSender

func (client ManagedInstancesClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (ManagedInstancesClient) Update

func (client ManagedInstancesClient) Update(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters ManagedInstanceUpdate) (result ManagedInstancesUpdateFuture, err error)

Update updates a managed instance. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. parameters - the requested managed instance resource state.

func (ManagedInstancesClient) UpdatePreparer

func (client ManagedInstancesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters ManagedInstanceUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ManagedInstancesClient) UpdateResponder

func (client ManagedInstancesClient) UpdateResponder(resp *http.Response) (result ManagedInstance, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ManagedInstancesClient) UpdateSender

func (client ManagedInstancesClient) UpdateSender(req *http.Request) (future ManagedInstancesUpdateFuture, err error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type ManagedInstancesCreateOrUpdateFuture

type ManagedInstancesCreateOrUpdateFuture struct {
	azure.Future
}

ManagedInstancesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ManagedInstancesCreateOrUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ManagedInstancesDeleteFuture

type ManagedInstancesDeleteFuture struct {
	azure.Future
}

ManagedInstancesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ManagedInstancesDeleteFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ManagedInstancesUpdateFuture

type ManagedInstancesUpdateFuture struct {
	azure.Future
}

ManagedInstancesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ManagedInstancesUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient

type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient struct {
	BaseClient
}

ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient 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 NewManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient

func NewManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient(subscriptionID string) ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient

NewManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient creates an instance of the ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient client.

func NewManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClientWithBaseURI

func NewManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient

NewManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClientWithBaseURI creates an instance of the ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient client.

func (ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) CreateOrUpdate

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. managedInstanceName - the name of the managed instance. parameters - the long term retention policy info.

func (ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) CreateOrUpdatePreparer

func (client ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, restorableDroppedDatabaseID string, parameters ManagedBackupShortTermRetentionPolicy) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) CreateOrUpdateResponder

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) CreateOrUpdateSender

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) Get

func (client ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, restorableDroppedDatabaseID string) (result ManagedBackupShortTermRetentionPolicy, err error)

Get gets a dropped 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. managedInstanceName - the name of the managed instance.

func (ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) GetPreparer

func (client ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, restorableDroppedDatabaseID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) GetResponder

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) GetSender

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) ListByRestorableDroppedDatabase

func (client ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) ListByRestorableDroppedDatabase(ctx context.Context, resourceGroupName string, managedInstanceName string, restorableDroppedDatabaseID string) (result ManagedBackupShortTermRetentionPolicyListResultPage, err error)

ListByRestorableDroppedDatabase gets a dropped database's short term retention policy list. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance.

func (ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) ListByRestorableDroppedDatabaseComplete

func (client ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) ListByRestorableDroppedDatabaseComplete(ctx context.Context, resourceGroupName string, managedInstanceName string, restorableDroppedDatabaseID string) (result ManagedBackupShortTermRetentionPolicyListResultIterator, err error)

ListByRestorableDroppedDatabaseComplete enumerates all values, automatically crossing page boundaries as required.

func (ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) ListByRestorableDroppedDatabasePreparer

func (client ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) ListByRestorableDroppedDatabasePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, restorableDroppedDatabaseID string) (*http.Request, error)

ListByRestorableDroppedDatabasePreparer prepares the ListByRestorableDroppedDatabase request.

func (ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) ListByRestorableDroppedDatabaseResponder

ListByRestorableDroppedDatabaseResponder handles the response to the ListByRestorableDroppedDatabase request. The method always closes the http.Response Body.

func (ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) ListByRestorableDroppedDatabaseSender

func (client ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) ListByRestorableDroppedDatabaseSender(req *http.Request) (*http.Response, error)

ListByRestorableDroppedDatabaseSender sends the ListByRestorableDroppedDatabase request. The method will close the http.Response Body if it receives an error.

func (ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) Update

Update 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. managedInstanceName - the name of the managed instance. parameters - the long term retention policy info.

func (ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) UpdatePreparer

func (client ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, restorableDroppedDatabaseID string, parameters ManagedBackupShortTermRetentionPolicy) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) UpdateResponder

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) UpdateSender

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateFuture

type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateFuture struct {
	azure.Future
}

ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateFuture

type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateFuture struct {
	azure.Future
}

ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ManagedServerCreateMode

type ManagedServerCreateMode string

ManagedServerCreateMode enumerates the values for managed server create mode.

const (
	// ManagedServerCreateModeDefault ...
	ManagedServerCreateModeDefault ManagedServerCreateMode = "Default"
	// ManagedServerCreateModePointInTimeRestore ...
	ManagedServerCreateModePointInTimeRestore ManagedServerCreateMode = "PointInTimeRestore"
)

func PossibleManagedServerCreateModeValues

func PossibleManagedServerCreateModeValues() []ManagedServerCreateMode

PossibleManagedServerCreateModeValues returns an array of possible values for the ManagedServerCreateMode const type.

type ManagedServerSecurityAlertPoliciesClient

type ManagedServerSecurityAlertPoliciesClient struct {
	BaseClient
}

ManagedServerSecurityAlertPoliciesClient 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 NewManagedServerSecurityAlertPoliciesClient

func NewManagedServerSecurityAlertPoliciesClient(subscriptionID string) ManagedServerSecurityAlertPoliciesClient

NewManagedServerSecurityAlertPoliciesClient creates an instance of the ManagedServerSecurityAlertPoliciesClient client.

func NewManagedServerSecurityAlertPoliciesClientWithBaseURI

func NewManagedServerSecurityAlertPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ManagedServerSecurityAlertPoliciesClient

NewManagedServerSecurityAlertPoliciesClientWithBaseURI creates an instance of the ManagedServerSecurityAlertPoliciesClient client.

func (ManagedServerSecurityAlertPoliciesClient) CreateOrUpdate

func (client ManagedServerSecurityAlertPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters ManagedServerSecurityAlertPolicy) (result ManagedServerSecurityAlertPoliciesCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates a 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. managedInstanceName - the name of the managed instance. parameters - the managed server security alert policy.

func (ManagedServerSecurityAlertPoliciesClient) CreateOrUpdatePreparer

func (client ManagedServerSecurityAlertPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters ManagedServerSecurityAlertPolicy) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ManagedServerSecurityAlertPoliciesClient) CreateOrUpdateResponder

func (client ManagedServerSecurityAlertPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedServerSecurityAlertPolicy, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ManagedServerSecurityAlertPoliciesClient) CreateOrUpdateSender

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ManagedServerSecurityAlertPoliciesClient) Get

func (client ManagedServerSecurityAlertPoliciesClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedServerSecurityAlertPolicy, err error)

Get get a managed server'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. managedInstanceName - the name of the managed instance.

func (ManagedServerSecurityAlertPoliciesClient) GetPreparer

func (client ManagedServerSecurityAlertPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ManagedServerSecurityAlertPoliciesClient) GetResponder

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ManagedServerSecurityAlertPoliciesClient) GetSender

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ManagedServerSecurityAlertPoliciesClient) ListByInstance

func (client ManagedServerSecurityAlertPoliciesClient) ListByInstance(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedServerSecurityAlertPolicyListResultPage, err error)

ListByInstance get the managed server's threat detection policies. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance.

func (ManagedServerSecurityAlertPoliciesClient) ListByInstanceComplete

func (client ManagedServerSecurityAlertPoliciesClient) ListByInstanceComplete(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedServerSecurityAlertPolicyListResultIterator, err error)

ListByInstanceComplete enumerates all values, automatically crossing page boundaries as required.

func (ManagedServerSecurityAlertPoliciesClient) ListByInstancePreparer

func (client ManagedServerSecurityAlertPoliciesClient) ListByInstancePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error)

ListByInstancePreparer prepares the ListByInstance request.

func (ManagedServerSecurityAlertPoliciesClient) ListByInstanceResponder

ListByInstanceResponder handles the response to the ListByInstance request. The method always closes the http.Response Body.

func (ManagedServerSecurityAlertPoliciesClient) ListByInstanceSender

func (client ManagedServerSecurityAlertPoliciesClient) ListByInstanceSender(req *http.Request) (*http.Response, error)

ListByInstanceSender sends the ListByInstance request. The method will close the http.Response Body if it receives an error.

type ManagedServerSecurityAlertPoliciesCreateOrUpdateFuture

type ManagedServerSecurityAlertPoliciesCreateOrUpdateFuture struct {
	azure.Future
}

ManagedServerSecurityAlertPoliciesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ManagedServerSecurityAlertPoliciesCreateOrUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ManagedServerSecurityAlertPolicy

type ManagedServerSecurityAlertPolicy struct {
	autorest.Response `json:"-"`
	// SecurityAlertPolicyProperties - Resource properties.
	*SecurityAlertPolicyProperties `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"`
}

ManagedServerSecurityAlertPolicy a managed server security alert policy.

func (ManagedServerSecurityAlertPolicy) MarshalJSON

func (mssap ManagedServerSecurityAlertPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedServerSecurityAlertPolicy.

func (*ManagedServerSecurityAlertPolicy) UnmarshalJSON

func (mssap *ManagedServerSecurityAlertPolicy) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ManagedServerSecurityAlertPolicy struct.

type ManagedServerSecurityAlertPolicyListResult

type ManagedServerSecurityAlertPolicyListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]ManagedServerSecurityAlertPolicy `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ManagedServerSecurityAlertPolicyListResult a list of the managed Server's security alert policies.

func (ManagedServerSecurityAlertPolicyListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type ManagedServerSecurityAlertPolicyListResultIterator

type ManagedServerSecurityAlertPolicyListResultIterator struct {
	// contains filtered or unexported fields
}

ManagedServerSecurityAlertPolicyListResultIterator provides access to a complete listing of ManagedServerSecurityAlertPolicy values.

func NewManagedServerSecurityAlertPolicyListResultIterator

func NewManagedServerSecurityAlertPolicyListResultIterator(page ManagedServerSecurityAlertPolicyListResultPage) ManagedServerSecurityAlertPolicyListResultIterator

Creates a new instance of the ManagedServerSecurityAlertPolicyListResultIterator type.

func (*ManagedServerSecurityAlertPolicyListResultIterator) Next

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 (*ManagedServerSecurityAlertPolicyListResultIterator) NextWithContext

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 (ManagedServerSecurityAlertPolicyListResultIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (ManagedServerSecurityAlertPolicyListResultIterator) Response

Response returns the raw server response from the last page request.

func (ManagedServerSecurityAlertPolicyListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ManagedServerSecurityAlertPolicyListResultPage

type ManagedServerSecurityAlertPolicyListResultPage struct {
	// contains filtered or unexported fields
}

ManagedServerSecurityAlertPolicyListResultPage contains a page of ManagedServerSecurityAlertPolicy values.

func NewManagedServerSecurityAlertPolicyListResultPage

Creates a new instance of the ManagedServerSecurityAlertPolicyListResultPage type.

func (*ManagedServerSecurityAlertPolicyListResultPage) Next

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 (*ManagedServerSecurityAlertPolicyListResultPage) NextWithContext

func (page *ManagedServerSecurityAlertPolicyListResultPage) 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 (ManagedServerSecurityAlertPolicyListResultPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ManagedServerSecurityAlertPolicyListResultPage) Response

Response returns the raw server response from the last page request.

func (ManagedServerSecurityAlertPolicyListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type ManagementOperationState

type ManagementOperationState string

ManagementOperationState enumerates the values for management operation state.

const (
	// ManagementOperationStateCancelInProgress ...
	ManagementOperationStateCancelInProgress ManagementOperationState = "CancelInProgress"
	// ManagementOperationStateCancelled ...
	ManagementOperationStateCancelled ManagementOperationState = "Cancelled"
	// ManagementOperationStateFailed ...
	ManagementOperationStateFailed ManagementOperationState = "Failed"
	// ManagementOperationStateInProgress ...
	ManagementOperationStateInProgress ManagementOperationState = "InProgress"
	// ManagementOperationStatePending ...
	ManagementOperationStatePending ManagementOperationState = "Pending"
	// ManagementOperationStateSucceeded ...
	ManagementOperationStateSucceeded ManagementOperationState = "Succeeded"
)

func PossibleManagementOperationStateValues

func PossibleManagementOperationStateValues() []ManagementOperationState

PossibleManagementOperationStateValues returns an array of possible values for the ManagementOperationState const type.

type MaxSizeCapability

type MaxSizeCapability struct {
	// Limit - READ-ONLY; The maximum size limit (see 'unit' for the units).
	Limit *int32 `json:"limit,omitempty"`
	// Unit - READ-ONLY; The units that the limit is expressed in. Possible values include: 'MaxSizeUnitMegabytes', 'MaxSizeUnitGigabytes', 'MaxSizeUnitTerabytes', 'MaxSizeUnitPetabytes'
	Unit MaxSizeUnit `json:"unit,omitempty"`
}

MaxSizeCapability the maximum size capability.

type MaxSizeRangeCapability

type MaxSizeRangeCapability struct {
	// MinValue - READ-ONLY; Minimum value.
	MinValue *MaxSizeCapability `json:"minValue,omitempty"`
	// MaxValue - READ-ONLY; Maximum value.
	MaxValue *MaxSizeCapability `json:"maxValue,omitempty"`
	// ScaleSize - READ-ONLY; Scale/step size for discrete values between the minimum value and the maximum value.
	ScaleSize *MaxSizeCapability `json:"scaleSize,omitempty"`
	// LogSize - READ-ONLY; Size of transaction log.
	LogSize *LogSizeCapability `json:"logSize,omitempty"`
	// Status - READ-ONLY; The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled'
	Status CapabilityStatus `json:"status,omitempty"`
	// Reason - The reason for the capability not being available.
	Reason *string `json:"reason,omitempty"`
}

MaxSizeRangeCapability the maximum size range capability.

type MaxSizeUnit

type MaxSizeUnit string

MaxSizeUnit enumerates the values for max size unit.

const (
	// MaxSizeUnitGigabytes ...
	MaxSizeUnitGigabytes MaxSizeUnit = "Gigabytes"
	// MaxSizeUnitMegabytes ...
	MaxSizeUnitMegabytes MaxSizeUnit = "Megabytes"
	// MaxSizeUnitPetabytes ...
	MaxSizeUnitPetabytes MaxSizeUnit = "Petabytes"
	// MaxSizeUnitTerabytes ...
	MaxSizeUnitTerabytes MaxSizeUnit = "Terabytes"
)

func PossibleMaxSizeUnitValues

func PossibleMaxSizeUnitValues() []MaxSizeUnit

PossibleMaxSizeUnitValues returns an array of possible values for the MaxSizeUnit const type.

type Metric

type Metric struct {
	// StartTime - READ-ONLY; The start time for the metric (ISO-8601 format).
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - READ-ONLY; The end time for the metric (ISO-8601 format).
	EndTime *date.Time `json:"endTime,omitempty"`
	// TimeGrain - READ-ONLY; The time step to be used to summarize the metric values.
	TimeGrain *string `json:"timeGrain,omitempty"`
	// Unit - READ-ONLY; The unit of the metric. Possible values include: 'UnitTypeCount', 'UnitTypeBytes', 'UnitTypeSeconds', 'UnitTypePercent', 'UnitTypeCountPerSecond', 'UnitTypeBytesPerSecond'
	Unit UnitType `json:"unit,omitempty"`
	// Name - READ-ONLY; The name information for the metric.
	Name *MetricName `json:"name,omitempty"`
	// MetricValues - READ-ONLY; The metric values for the specified time window and timestep.
	MetricValues *[]MetricValue `json:"metricValues,omitempty"`
}

Metric database metrics.

type MetricAvailability

type MetricAvailability struct {
	// Retention - READ-ONLY; The length of retention for the database metric.
	Retention *string `json:"retention,omitempty"`
	// TimeGrain - READ-ONLY; The granularity of the database metric.
	TimeGrain *string `json:"timeGrain,omitempty"`
}

MetricAvailability a metric availability value.

type MetricDefinition

type MetricDefinition struct {
	// Name - READ-ONLY; The name information for the metric.
	Name *MetricName `json:"name,omitempty"`
	// PrimaryAggregationType - READ-ONLY; The primary aggregation type defining how metric values are displayed. Possible values include: 'None', 'Average', 'Count', 'Minimum', 'Maximum', 'Total'
	PrimaryAggregationType PrimaryAggregationType `json:"primaryAggregationType,omitempty"`
	// ResourceURI - READ-ONLY; The resource uri of the database.
	ResourceURI *string `json:"resourceUri,omitempty"`
	// Unit - READ-ONLY; The unit of the metric. Possible values include: 'UnitDefinitionTypeCount', 'UnitDefinitionTypeBytes', 'UnitDefinitionTypeSeconds', 'UnitDefinitionTypePercent', 'UnitDefinitionTypeCountPerSecond', 'UnitDefinitionTypeBytesPerSecond'
	Unit UnitDefinitionType `json:"unit,omitempty"`
	// MetricAvailabilities - READ-ONLY; The list of database metric availabilities for the metric.
	MetricAvailabilities *[]MetricAvailability `json:"metricAvailabilities,omitempty"`
}

MetricDefinition a database metric definition.

type MetricDefinitionListResult

type MetricDefinitionListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of metric definitions for the database.
	Value *[]MetricDefinition `json:"value,omitempty"`
}

MetricDefinitionListResult the response to a list database metric definitions request.

type MetricListResult

type MetricListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of metrics for the database.
	Value *[]Metric `json:"value,omitempty"`
}

MetricListResult the response to a list database metrics request.

type MetricName

type MetricName struct {
	// Value - READ-ONLY; The name of the database metric.
	Value *string `json:"value,omitempty"`
	// LocalizedValue - READ-ONLY; The friendly name of the database metric.
	LocalizedValue *string `json:"localizedValue,omitempty"`
}

MetricName a database metric name.

type MetricValue

type MetricValue struct {
	// Count - READ-ONLY; The number of values for the metric.
	Count *float64 `json:"count,omitempty"`
	// Average - READ-ONLY; The average value of the metric.
	Average *float64 `json:"average,omitempty"`
	// Maximum - READ-ONLY; The max value of the metric.
	Maximum *float64 `json:"maximum,omitempty"`
	// Minimum - READ-ONLY; The min value of the metric.
	Minimum *float64 `json:"minimum,omitempty"`
	// Timestamp - READ-ONLY; The metric timestamp (ISO-8601 format).
	Timestamp *date.Time `json:"timestamp,omitempty"`
	// Total - READ-ONLY; The total value of the metric.
	Total *float64 `json:"total,omitempty"`
}

MetricValue represents database metrics.

type Name

type Name struct {
	// Value - Usage name value
	Value *string `json:"value,omitempty"`
	// LocalizedValue - Usage name localized value.
	LocalizedValue *string `json:"localizedValue,omitempty"`
}

Name ARM Usage Name

type Operation

type Operation struct {
	// Name - READ-ONLY; The name of the operation being performed on this particular object.
	Name *string `json:"name,omitempty"`
	// Display - READ-ONLY; The localized display information for this particular operation / action.
	Display *OperationDisplay `json:"display,omitempty"`
	// Origin - READ-ONLY; The intended executor of the operation. Possible values include: 'OperationOriginUser', 'OperationOriginSystem'
	Origin OperationOrigin `json:"origin,omitempty"`
	// Properties - READ-ONLY; Additional descriptions for the operation.
	Properties map[string]interface{} `json:"properties"`
}

Operation SQL REST API operation definition.

func (Operation) MarshalJSON

func (o Operation) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Operation.

type OperationDisplay

type OperationDisplay struct {
	// Provider - READ-ONLY; The localized friendly form of the resource provider name.
	Provider *string `json:"provider,omitempty"`
	// Resource - READ-ONLY; The localized friendly form of the resource type related to this action/operation.
	Resource *string `json:"resource,omitempty"`
	// Operation - READ-ONLY; The localized friendly name for the operation.
	Operation *string `json:"operation,omitempty"`
	// Description - READ-ONLY; The localized friendly description for the operation.
	Description *string `json:"description,omitempty"`
}

OperationDisplay display metadata associated with the operation.

type OperationImpact

type OperationImpact struct {
	// Name - READ-ONLY; The name of the impact dimension.
	Name *string `json:"name,omitempty"`
	// Unit - READ-ONLY; The unit in which estimated impact to dimension is measured.
	Unit *string `json:"unit,omitempty"`
	// ChangeValueAbsolute - READ-ONLY; The absolute impact to dimension.
	ChangeValueAbsolute *float64 `json:"changeValueAbsolute,omitempty"`
	// ChangeValueRelative - READ-ONLY; The relative impact to dimension (null if not applicable)
	ChangeValueRelative *float64 `json:"changeValueRelative,omitempty"`
}

OperationImpact the impact of an operation, both in absolute and relative terms.

type OperationListResult

type OperationListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]Operation `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

OperationListResult result of the request to list SQL operations.

func (OperationListResult) IsEmpty

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator

type OperationListResultIterator struct {
	// contains filtered or unexported fields
}

OperationListResultIterator provides access to a complete listing of Operation values.

func NewOperationListResultIterator

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next

func (iter *OperationListResultIterator) 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 (*OperationListResultIterator) NextWithContext

func (iter *OperationListResultIterator) 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 (OperationListResultIterator) NotDone

func (iter OperationListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (OperationListResultIterator) Response

Response returns the raw server response from the last page request.

func (OperationListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type OperationListResultPage

type OperationListResultPage struct {
	// contains filtered or unexported fields
}

OperationListResultPage contains a page of Operation values.

func NewOperationListResultPage

func NewOperationListResultPage(getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next

func (page *OperationListResultPage) 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 (*OperationListResultPage) NextWithContext

func (page *OperationListResultPage) 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 (OperationListResultPage) NotDone

func (page OperationListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (OperationListResultPage) Response

Response returns the raw server response from the last page request.

func (OperationListResultPage) Values

func (page OperationListResultPage) Values() []Operation

Values returns the slice of values for the current page or nil if there are no values.

type OperationOrigin

type OperationOrigin string

OperationOrigin enumerates the values for operation origin.

const (
	// OperationOriginSystem ...
	OperationOriginSystem OperationOrigin = "system"
	// OperationOriginUser ...
	OperationOriginUser OperationOrigin = "user"
)

func PossibleOperationOriginValues

func PossibleOperationOriginValues() []OperationOrigin

PossibleOperationOriginValues returns an array of possible values for the OperationOrigin const type.

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List

func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)

List lists all of the available SQL Rest API operations.

func (OperationsClient) ListComplete

func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type PartnerInfo

type PartnerInfo struct {
	// ID - Resource identifier of the partner server.
	ID *string `json:"id,omitempty"`
	// Location - READ-ONLY; Geo location of the partner server.
	Location *string `json:"location,omitempty"`
	// ReplicationRole - READ-ONLY; Replication role of the partner server. Possible values include: 'Primary', 'Secondary'
	ReplicationRole FailoverGroupReplicationRole `json:"replicationRole,omitempty"`
}

PartnerInfo partner server information for the failover group.

type PartnerRegionInfo

type PartnerRegionInfo struct {
	// Location - Geo location of the partner managed instances.
	Location *string `json:"location,omitempty"`
	// ReplicationRole - READ-ONLY; Replication role of the partner managed instances. Possible values include: 'InstanceFailoverGroupReplicationRolePrimary', 'InstanceFailoverGroupReplicationRoleSecondary'
	ReplicationRole InstanceFailoverGroupReplicationRole `json:"replicationRole,omitempty"`
}

PartnerRegionInfo partner region information for the failover group.

type PerformanceLevelCapability

type PerformanceLevelCapability struct {
	// Value - READ-ONLY; Performance level value.
	Value *float64 `json:"value,omitempty"`
	// Unit - READ-ONLY; Unit type used to measure performance level. Possible values include: 'DTU', 'VCores'
	Unit PerformanceLevelUnit `json:"unit,omitempty"`
}

PerformanceLevelCapability the performance level capability.

type PerformanceLevelUnit

type PerformanceLevelUnit string

PerformanceLevelUnit enumerates the values for performance level unit.

const (
	// DTU ...
	DTU PerformanceLevelUnit = "DTU"
	// VCores ...
	VCores PerformanceLevelUnit = "VCores"
)

func PossiblePerformanceLevelUnitValues

func PossiblePerformanceLevelUnitValues() []PerformanceLevelUnit

PossiblePerformanceLevelUnitValues returns an array of possible values for the PerformanceLevelUnit const type.

type PrimaryAggregationType

type PrimaryAggregationType string

PrimaryAggregationType enumerates the values for primary aggregation type.

const (
	// Average ...
	Average PrimaryAggregationType = "Average"
	// Count ...
	Count PrimaryAggregationType = "Count"
	// Maximum ...
	Maximum PrimaryAggregationType = "Maximum"
	// Minimum ...
	Minimum PrimaryAggregationType = "Minimum"
	// None ...
	None PrimaryAggregationType = "None"
	// Total ...
	Total PrimaryAggregationType = "Total"
)

func PossiblePrimaryAggregationTypeValues

func PossiblePrimaryAggregationTypeValues() []PrimaryAggregationType

PossiblePrimaryAggregationTypeValues returns an array of possible values for the PrimaryAggregationType const type.

type PrivateEndpointConnection

type PrivateEndpointConnection struct {
	autorest.Response `json:"-"`
	// PrivateEndpointConnectionProperties - Resource properties.
	*PrivateEndpointConnectionProperties `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"`
}

PrivateEndpointConnection a private endpoint connection

func (PrivateEndpointConnection) MarshalJSON

func (pec PrivateEndpointConnection) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PrivateEndpointConnection.

func (*PrivateEndpointConnection) UnmarshalJSON

func (pec *PrivateEndpointConnection) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PrivateEndpointConnection struct.

type PrivateEndpointConnectionListResult

type PrivateEndpointConnectionListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]PrivateEndpointConnection `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

PrivateEndpointConnectionListResult a list of private endpoint connections.

func (PrivateEndpointConnectionListResult) IsEmpty

func (peclr PrivateEndpointConnectionListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type PrivateEndpointConnectionListResultIterator

type PrivateEndpointConnectionListResultIterator struct {
	// contains filtered or unexported fields
}

PrivateEndpointConnectionListResultIterator provides access to a complete listing of PrivateEndpointConnection values.

func NewPrivateEndpointConnectionListResultIterator

func NewPrivateEndpointConnectionListResultIterator(page PrivateEndpointConnectionListResultPage) PrivateEndpointConnectionListResultIterator

Creates a new instance of the PrivateEndpointConnectionListResultIterator type.

func (*PrivateEndpointConnectionListResultIterator) Next

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 (*PrivateEndpointConnectionListResultIterator) NextWithContext

func (iter *PrivateEndpointConnectionListResultIterator) 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 (PrivateEndpointConnectionListResultIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (PrivateEndpointConnectionListResultIterator) Response

Response returns the raw server response from the last page request.

func (PrivateEndpointConnectionListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type PrivateEndpointConnectionListResultPage

type PrivateEndpointConnectionListResultPage struct {
	// contains filtered or unexported fields
}

PrivateEndpointConnectionListResultPage contains a page of PrivateEndpointConnection values.

func NewPrivateEndpointConnectionListResultPage

Creates a new instance of the PrivateEndpointConnectionListResultPage type.

func (*PrivateEndpointConnectionListResultPage) Next

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 (*PrivateEndpointConnectionListResultPage) NextWithContext

func (page *PrivateEndpointConnectionListResultPage) 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 (PrivateEndpointConnectionListResultPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (PrivateEndpointConnectionListResultPage) Response

Response returns the raw server response from the last page request.

func (PrivateEndpointConnectionListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type PrivateEndpointConnectionProperties

type PrivateEndpointConnectionProperties struct {
	// PrivateEndpoint - Private endpoint which the connection belongs to.
	PrivateEndpoint *PrivateEndpointProperty `json:"privateEndpoint,omitempty"`
	// PrivateLinkServiceConnectionState - Connection state of the private endpoint connection.
	PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionStateProperty `json:"privateLinkServiceConnectionState,omitempty"`
	// ProvisioningState - READ-ONLY; State of the private endpoint connection.
	ProvisioningState *string `json:"provisioningState,omitempty"`
}

PrivateEndpointConnectionProperties properties of a private endpoint connection.

type PrivateEndpointConnectionsClient

type PrivateEndpointConnectionsClient struct {
	BaseClient
}

PrivateEndpointConnectionsClient 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 NewPrivateEndpointConnectionsClient

func NewPrivateEndpointConnectionsClient(subscriptionID string) PrivateEndpointConnectionsClient

NewPrivateEndpointConnectionsClient creates an instance of the PrivateEndpointConnectionsClient client.

func NewPrivateEndpointConnectionsClientWithBaseURI

func NewPrivateEndpointConnectionsClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointConnectionsClient

NewPrivateEndpointConnectionsClientWithBaseURI creates an instance of the PrivateEndpointConnectionsClient client.

func (PrivateEndpointConnectionsClient) CreateOrUpdate

func (client PrivateEndpointConnectionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, privateEndpointConnectionName string, parameters PrivateEndpointConnection) (result PrivateEndpointConnectionsCreateOrUpdateFuture, err error)

CreateOrUpdate approve or reject a private endpoint connection with a given name. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.

func (PrivateEndpointConnectionsClient) CreateOrUpdatePreparer

func (client PrivateEndpointConnectionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, privateEndpointConnectionName string, parameters PrivateEndpointConnection) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (PrivateEndpointConnectionsClient) CreateOrUpdateResponder

func (client PrivateEndpointConnectionsClient) CreateOrUpdateResponder(resp *http.Response) (result PrivateEndpointConnection, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (PrivateEndpointConnectionsClient) CreateOrUpdateSender

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (PrivateEndpointConnectionsClient) Delete

func (client PrivateEndpointConnectionsClient) Delete(ctx context.Context, resourceGroupName string, serverName string, privateEndpointConnectionName string) (result PrivateEndpointConnectionsDeleteFuture, err error)

Delete deletes a private endpoint connection with a given name. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.

func (PrivateEndpointConnectionsClient) DeletePreparer

func (client PrivateEndpointConnectionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, privateEndpointConnectionName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (PrivateEndpointConnectionsClient) DeleteResponder

func (client PrivateEndpointConnectionsClient) 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 (PrivateEndpointConnectionsClient) DeleteSender

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (PrivateEndpointConnectionsClient) Get

func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, serverName string, privateEndpointConnectionName string) (result PrivateEndpointConnection, err error)

Get gets a private endpoint connection. 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. privateEndpointConnectionName - the name of the private endpoint connection.

func (PrivateEndpointConnectionsClient) GetPreparer

func (client PrivateEndpointConnectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, privateEndpointConnectionName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (PrivateEndpointConnectionsClient) GetResponder

func (client PrivateEndpointConnectionsClient) GetResponder(resp *http.Response) (result PrivateEndpointConnection, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (PrivateEndpointConnectionsClient) GetSender

func (client PrivateEndpointConnectionsClient) 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 (PrivateEndpointConnectionsClient) ListByServer

func (client PrivateEndpointConnectionsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result PrivateEndpointConnectionListResultPage, err error)

ListByServer gets all private endpoint connections on 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 (PrivateEndpointConnectionsClient) ListByServerComplete

func (client PrivateEndpointConnectionsClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result PrivateEndpointConnectionListResultIterator, err error)

ListByServerComplete enumerates all values, automatically crossing page boundaries as required.

func (PrivateEndpointConnectionsClient) ListByServerPreparer

func (client PrivateEndpointConnectionsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

ListByServerPreparer prepares the ListByServer request.

func (PrivateEndpointConnectionsClient) ListByServerResponder

func (client PrivateEndpointConnectionsClient) ListByServerResponder(resp *http.Response) (result PrivateEndpointConnectionListResult, err error)

ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.

func (PrivateEndpointConnectionsClient) ListByServerSender

func (client PrivateEndpointConnectionsClient) 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 PrivateEndpointConnectionsCreateOrUpdateFuture

type PrivateEndpointConnectionsCreateOrUpdateFuture struct {
	azure.Future
}

PrivateEndpointConnectionsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*PrivateEndpointConnectionsCreateOrUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type PrivateEndpointConnectionsDeleteFuture

type PrivateEndpointConnectionsDeleteFuture struct {
	azure.Future
}

PrivateEndpointConnectionsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*PrivateEndpointConnectionsDeleteFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type PrivateEndpointProperty

type PrivateEndpointProperty struct {
	// ID - Resource id of the private endpoint.
	ID *string `json:"id,omitempty"`
}

PrivateEndpointProperty ...

type PrivateLinkResource

type PrivateLinkResource struct {
	autorest.Response `json:"-"`
	// Properties - READ-ONLY; The private link resource group id.
	Properties *PrivateLinkResourceProperties `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"`
}

PrivateLinkResource a private link resource

type PrivateLinkResourceListResult

type PrivateLinkResourceListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]PrivateLinkResource `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

PrivateLinkResourceListResult a list of private link resources

func (PrivateLinkResourceListResult) IsEmpty

func (plrlr PrivateLinkResourceListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type PrivateLinkResourceListResultIterator

type PrivateLinkResourceListResultIterator struct {
	// contains filtered or unexported fields
}

PrivateLinkResourceListResultIterator provides access to a complete listing of PrivateLinkResource values.

func NewPrivateLinkResourceListResultIterator

func NewPrivateLinkResourceListResultIterator(page PrivateLinkResourceListResultPage) PrivateLinkResourceListResultIterator

Creates a new instance of the PrivateLinkResourceListResultIterator type.

func (*PrivateLinkResourceListResultIterator) Next

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 (*PrivateLinkResourceListResultIterator) NextWithContext

func (iter *PrivateLinkResourceListResultIterator) 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 (PrivateLinkResourceListResultIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (PrivateLinkResourceListResultIterator) Response

Response returns the raw server response from the last page request.

func (PrivateLinkResourceListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type PrivateLinkResourceListResultPage

type PrivateLinkResourceListResultPage struct {
	// contains filtered or unexported fields
}

PrivateLinkResourceListResultPage contains a page of PrivateLinkResource values.

func NewPrivateLinkResourceListResultPage

Creates a new instance of the PrivateLinkResourceListResultPage type.

func (*PrivateLinkResourceListResultPage) Next

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 (*PrivateLinkResourceListResultPage) NextWithContext

func (page *PrivateLinkResourceListResultPage) 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 (PrivateLinkResourceListResultPage) NotDone

func (page PrivateLinkResourceListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (PrivateLinkResourceListResultPage) Response

Response returns the raw server response from the last page request.

func (PrivateLinkResourceListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type PrivateLinkResourceProperties

type PrivateLinkResourceProperties struct {
	// GroupID - READ-ONLY; The private link resource group id.
	GroupID *string `json:"groupId,omitempty"`
	// RequiredMembers - READ-ONLY; The private link resource required member names.
	RequiredMembers *[]string `json:"requiredMembers,omitempty"`
}

PrivateLinkResourceProperties properties of a private link resource.

type PrivateLinkResourcesClient

type PrivateLinkResourcesClient struct {
	BaseClient
}

PrivateLinkResourcesClient 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 NewPrivateLinkResourcesClient

func NewPrivateLinkResourcesClient(subscriptionID string) PrivateLinkResourcesClient

NewPrivateLinkResourcesClient creates an instance of the PrivateLinkResourcesClient client.

func NewPrivateLinkResourcesClientWithBaseURI

func NewPrivateLinkResourcesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkResourcesClient

NewPrivateLinkResourcesClientWithBaseURI creates an instance of the PrivateLinkResourcesClient client.

func (PrivateLinkResourcesClient) Get

func (client PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupName string, serverName string, groupName string) (result PrivateLinkResource, err error)

Get gets a private link resource for SQL server. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. groupName - the name of the private link resource.

func (PrivateLinkResourcesClient) GetPreparer

func (client PrivateLinkResourcesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, groupName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (PrivateLinkResourcesClient) GetResponder

func (client PrivateLinkResourcesClient) GetResponder(resp *http.Response) (result PrivateLinkResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (PrivateLinkResourcesClient) GetSender

func (client PrivateLinkResourcesClient) 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 (PrivateLinkResourcesClient) ListByServer

func (client PrivateLinkResourcesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result PrivateLinkResourceListResultPage, err error)

ListByServer gets the private link resources for SQL server. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.

func (PrivateLinkResourcesClient) ListByServerComplete

func (client PrivateLinkResourcesClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result PrivateLinkResourceListResultIterator, err error)

ListByServerComplete enumerates all values, automatically crossing page boundaries as required.

func (PrivateLinkResourcesClient) ListByServerPreparer

func (client PrivateLinkResourcesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

ListByServerPreparer prepares the ListByServer request.

func (PrivateLinkResourcesClient) ListByServerResponder

func (client PrivateLinkResourcesClient) ListByServerResponder(resp *http.Response) (result PrivateLinkResourceListResult, err error)

ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.

func (PrivateLinkResourcesClient) ListByServerSender

func (client PrivateLinkResourcesClient) 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 PrivateLinkServiceConnectionStateProperty

type PrivateLinkServiceConnectionStateProperty struct {
	// Status - The private link service connection status.
	Status *string `json:"status,omitempty"`
	// Description - The private link service connection description.
	Description *string `json:"description,omitempty"`
	// ActionsRequired - READ-ONLY; The actions required for private link service connection.
	ActionsRequired *string `json:"actionsRequired,omitempty"`
}

PrivateLinkServiceConnectionStateProperty ...

type ProvisioningState

type ProvisioningState string

ProvisioningState enumerates the values for provisioning state.

const (
	// ProvisioningStateCanceled ...
	ProvisioningStateCanceled ProvisioningState = "Canceled"
	// ProvisioningStateCreated ...
	ProvisioningStateCreated ProvisioningState = "Created"
	// ProvisioningStateFailed ...
	ProvisioningStateFailed ProvisioningState = "Failed"
	// ProvisioningStateInProgress ...
	ProvisioningStateInProgress ProvisioningState = "InProgress"
	// ProvisioningStateSucceeded ...
	ProvisioningStateSucceeded ProvisioningState = "Succeeded"
)

func PossibleProvisioningStateValues

func PossibleProvisioningStateValues() []ProvisioningState

PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.

type ProxyResource

type ProxyResource struct {
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

ProxyResource ARM proxy resource.

type ReadOnlyEndpointFailoverPolicy

type ReadOnlyEndpointFailoverPolicy string

ReadOnlyEndpointFailoverPolicy enumerates the values for read only endpoint failover policy.

const (
	// ReadOnlyEndpointFailoverPolicyDisabled ...
	ReadOnlyEndpointFailoverPolicyDisabled ReadOnlyEndpointFailoverPolicy = "Disabled"
	// ReadOnlyEndpointFailoverPolicyEnabled ...
	ReadOnlyEndpointFailoverPolicyEnabled ReadOnlyEndpointFailoverPolicy = "Enabled"
)

func PossibleReadOnlyEndpointFailoverPolicyValues

func PossibleReadOnlyEndpointFailoverPolicyValues() []ReadOnlyEndpointFailoverPolicy

PossibleReadOnlyEndpointFailoverPolicyValues returns an array of possible values for the ReadOnlyEndpointFailoverPolicy const type.

type ReadWriteEndpointFailoverPolicy

type ReadWriteEndpointFailoverPolicy string

ReadWriteEndpointFailoverPolicy enumerates the values for read write endpoint failover policy.

const (
	// Automatic ...
	Automatic ReadWriteEndpointFailoverPolicy = "Automatic"
	// Manual ...
	Manual ReadWriteEndpointFailoverPolicy = "Manual"
)

func PossibleReadWriteEndpointFailoverPolicyValues

func PossibleReadWriteEndpointFailoverPolicyValues() []ReadWriteEndpointFailoverPolicy

PossibleReadWriteEndpointFailoverPolicyValues returns an array of possible values for the ReadWriteEndpointFailoverPolicy const type.

type RecommendedElasticPool

type RecommendedElasticPool struct {
	autorest.Response `json:"-"`
	// RecommendedElasticPoolProperties - The properties representing the resource.
	*RecommendedElasticPoolProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

RecommendedElasticPool represents a recommended elastic pool.

func (RecommendedElasticPool) MarshalJSON

func (rep RecommendedElasticPool) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RecommendedElasticPool.

func (*RecommendedElasticPool) UnmarshalJSON

func (rep *RecommendedElasticPool) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RecommendedElasticPool struct.

type RecommendedElasticPoolListMetricsResult

type RecommendedElasticPoolListMetricsResult struct {
	autorest.Response `json:"-"`
	// Value - The list of recommended elastic pools metrics.
	Value *[]RecommendedElasticPoolMetric `json:"value,omitempty"`
}

RecommendedElasticPoolListMetricsResult represents the response to a list recommended elastic pool metrics request.

type RecommendedElasticPoolListResult

type RecommendedElasticPoolListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of recommended elastic pools hosted in the server.
	Value *[]RecommendedElasticPool `json:"value,omitempty"`
}

RecommendedElasticPoolListResult represents the response to a list recommended elastic pool request.

type RecommendedElasticPoolMetric

type RecommendedElasticPoolMetric struct {
	// DateTime - The time of metric (ISO8601 format).
	DateTime *date.Time `json:"dateTime,omitempty"`
	// Dtu - Gets or sets the DTUs (Database Transaction Units). See https://azure.microsoft.com/documentation/articles/sql-database-what-is-a-dtu/
	Dtu *float64 `json:"dtu,omitempty"`
	// SizeGB - Gets or sets size in gigabytes.
	SizeGB *float64 `json:"sizeGB,omitempty"`
}

RecommendedElasticPoolMetric represents recommended elastic pool metric.

type RecommendedElasticPoolProperties

type RecommendedElasticPoolProperties struct {
	// DatabaseEdition - READ-ONLY; The edition of the recommended elastic pool. The ElasticPoolEdition enumeration contains all the valid editions. Possible values include: 'ElasticPoolEditionBasic', 'ElasticPoolEditionStandard', 'ElasticPoolEditionPremium', 'ElasticPoolEditionGeneralPurpose', 'ElasticPoolEditionBusinessCritical'
	DatabaseEdition ElasticPoolEdition `json:"databaseEdition,omitempty"`
	// Dtu - The DTU for the recommended elastic pool.
	Dtu *float64 `json:"dtu,omitempty"`
	// DatabaseDtuMin - The minimum DTU for the database.
	DatabaseDtuMin *float64 `json:"databaseDtuMin,omitempty"`
	// DatabaseDtuMax - The maximum DTU for the database.
	DatabaseDtuMax *float64 `json:"databaseDtuMax,omitempty"`
	// StorageMB - Gets storage size in megabytes.
	StorageMB *float64 `json:"storageMB,omitempty"`
	// ObservationPeriodStart - READ-ONLY; The observation period start (ISO8601 format).
	ObservationPeriodStart *date.Time `json:"observationPeriodStart,omitempty"`
	// ObservationPeriodEnd - READ-ONLY; The observation period start (ISO8601 format).
	ObservationPeriodEnd *date.Time `json:"observationPeriodEnd,omitempty"`
	// MaxObservedDtu - READ-ONLY; Gets maximum observed DTU.
	MaxObservedDtu *float64 `json:"maxObservedDtu,omitempty"`
	// MaxObservedStorageMB - READ-ONLY; Gets maximum observed storage in megabytes.
	MaxObservedStorageMB *float64 `json:"maxObservedStorageMB,omitempty"`
	// Databases - READ-ONLY; The list of databases in this pool. Expanded property
	Databases *[]TrackedResource `json:"databases,omitempty"`
	// Metrics - READ-ONLY; The list of databases housed in the server. Expanded property
	Metrics *[]RecommendedElasticPoolMetric `json:"metrics,omitempty"`
}

RecommendedElasticPoolProperties represents the properties of a recommended elastic pool.

type RecommendedElasticPoolsClient

type RecommendedElasticPoolsClient struct {
	BaseClient
}

RecommendedElasticPoolsClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewRecommendedElasticPoolsClient

func NewRecommendedElasticPoolsClient(subscriptionID string) RecommendedElasticPoolsClient

NewRecommendedElasticPoolsClient creates an instance of the RecommendedElasticPoolsClient client.

func NewRecommendedElasticPoolsClientWithBaseURI

func NewRecommendedElasticPoolsClientWithBaseURI(baseURI string, subscriptionID string) RecommendedElasticPoolsClient

NewRecommendedElasticPoolsClientWithBaseURI creates an instance of the RecommendedElasticPoolsClient client.

func (RecommendedElasticPoolsClient) Get

func (client RecommendedElasticPoolsClient) Get(ctx context.Context, resourceGroupName string, serverName string, recommendedElasticPoolName string) (result RecommendedElasticPool, err error)

Get gets a recommended elastic pool. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. recommendedElasticPoolName - the name of the recommended elastic pool to be retrieved.

func (RecommendedElasticPoolsClient) GetPreparer

func (client RecommendedElasticPoolsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, recommendedElasticPoolName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (RecommendedElasticPoolsClient) GetResponder

func (client RecommendedElasticPoolsClient) GetResponder(resp *http.Response) (result RecommendedElasticPool, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (RecommendedElasticPoolsClient) GetSender

func (client RecommendedElasticPoolsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (RecommendedElasticPoolsClient) ListByServer

func (client RecommendedElasticPoolsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result RecommendedElasticPoolListResult, err error)

ListByServer returns recommended elastic pools. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.

func (RecommendedElasticPoolsClient) ListByServerPreparer

func (client RecommendedElasticPoolsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

ListByServerPreparer prepares the ListByServer request.

func (RecommendedElasticPoolsClient) ListByServerResponder

func (client RecommendedElasticPoolsClient) ListByServerResponder(resp *http.Response) (result RecommendedElasticPoolListResult, err error)

ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.

func (RecommendedElasticPoolsClient) ListByServerSender

func (client RecommendedElasticPoolsClient) ListByServerSender(req *http.Request) (*http.Response, error)

ListByServerSender sends the ListByServer request. The method will close the http.Response Body if it receives an error.

func (RecommendedElasticPoolsClient) ListMetrics

func (client RecommendedElasticPoolsClient) ListMetrics(ctx context.Context, resourceGroupName string, serverName string, recommendedElasticPoolName string) (result RecommendedElasticPoolListMetricsResult, err error)

ListMetrics returns recommended elastic pool metrics. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. recommendedElasticPoolName - the name of the recommended elastic pool to be retrieved.

func (RecommendedElasticPoolsClient) ListMetricsPreparer

func (client RecommendedElasticPoolsClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, serverName string, recommendedElasticPoolName string) (*http.Request, error)

ListMetricsPreparer prepares the ListMetrics request.

func (RecommendedElasticPoolsClient) ListMetricsResponder

func (client RecommendedElasticPoolsClient) ListMetricsResponder(resp *http.Response) (result RecommendedElasticPoolListMetricsResult, err error)

ListMetricsResponder handles the response to the ListMetrics request. The method always closes the http.Response Body.

func (RecommendedElasticPoolsClient) ListMetricsSender

func (client RecommendedElasticPoolsClient) ListMetricsSender(req *http.Request) (*http.Response, error)

ListMetricsSender sends the ListMetrics request. The method will close the http.Response Body if it receives an error.

type RecommendedIndex

type RecommendedIndex struct {
	// RecommendedIndexProperties - READ-ONLY; The properties representing the resource.
	*RecommendedIndexProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

RecommendedIndex represents a database recommended index.

func (RecommendedIndex) MarshalJSON

func (ri RecommendedIndex) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RecommendedIndex.

func (*RecommendedIndex) UnmarshalJSON

func (ri *RecommendedIndex) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RecommendedIndex struct.

type RecommendedIndexAction

type RecommendedIndexAction string

RecommendedIndexAction enumerates the values for recommended index action.

const (
	// Create ...
	Create RecommendedIndexAction = "Create"
	// Drop ...
	Drop RecommendedIndexAction = "Drop"
	// Rebuild ...
	Rebuild RecommendedIndexAction = "Rebuild"
)

func PossibleRecommendedIndexActionValues

func PossibleRecommendedIndexActionValues() []RecommendedIndexAction

PossibleRecommendedIndexActionValues returns an array of possible values for the RecommendedIndexAction const type.

type RecommendedIndexProperties

type RecommendedIndexProperties struct {
	// Action - READ-ONLY; The proposed index action. You can create a missing index, drop an unused index, or rebuild an existing index to improve its performance. Possible values include: 'Create', 'Drop', 'Rebuild'
	Action RecommendedIndexAction `json:"action,omitempty"`
	// State - READ-ONLY; The current recommendation state. Possible values include: 'Active', 'Pending', 'Executing', 'Verifying', 'PendingRevert', 'Reverting', 'Reverted', 'Ignored', 'Expired', 'Blocked', 'Success'
	State RecommendedIndexState `json:"state,omitempty"`
	// Created - READ-ONLY; The UTC datetime showing when this resource was created (ISO8601 format).
	Created *date.Time `json:"created,omitempty"`
	// LastModified - READ-ONLY; The UTC datetime of when was this resource last changed (ISO8601 format).
	LastModified *date.Time `json:"lastModified,omitempty"`
	// IndexType - READ-ONLY; The type of index (CLUSTERED, NONCLUSTERED, COLUMNSTORE, CLUSTERED COLUMNSTORE). Possible values include: 'CLUSTERED', 'NONCLUSTERED', 'COLUMNSTORE', 'CLUSTEREDCOLUMNSTORE'
	IndexType RecommendedIndexType `json:"indexType,omitempty"`
	// Schema - READ-ONLY; The schema where table to build index over resides
	Schema *string `json:"schema,omitempty"`
	// Table - READ-ONLY; The table on which to build index.
	Table *string `json:"table,omitempty"`
	// Columns - READ-ONLY; Columns over which to build index
	Columns *[]string `json:"columns,omitempty"`
	// IncludedColumns - READ-ONLY; The list of column names to be included in the index
	IncludedColumns *[]string `json:"includedColumns,omitempty"`
	// IndexScript - READ-ONLY; The full build index script
	IndexScript *string `json:"indexScript,omitempty"`
	// EstimatedImpact - READ-ONLY; The estimated impact of doing recommended index action.
	EstimatedImpact *[]OperationImpact `json:"estimatedImpact,omitempty"`
	// ReportedImpact - READ-ONLY; The values reported after index action is complete.
	ReportedImpact *[]OperationImpact `json:"reportedImpact,omitempty"`
}

RecommendedIndexProperties represents the properties of a database recommended index.

type RecommendedIndexState

type RecommendedIndexState string

RecommendedIndexState enumerates the values for recommended index state.

const (
	// Active ...
	Active RecommendedIndexState = "Active"
	// Blocked ...
	Blocked RecommendedIndexState = "Blocked"
	// Executing ...
	Executing RecommendedIndexState = "Executing"
	// Expired ...
	Expired RecommendedIndexState = "Expired"
	// Ignored ...
	Ignored RecommendedIndexState = "Ignored"
	// Pending ...
	Pending RecommendedIndexState = "Pending"
	// PendingRevert ...
	PendingRevert RecommendedIndexState = "Pending Revert"
	// Reverted ...
	Reverted RecommendedIndexState = "Reverted"
	// Reverting ...
	Reverting RecommendedIndexState = "Reverting"
	// Success ...
	Success RecommendedIndexState = "Success"
	// Verifying ...
	Verifying RecommendedIndexState = "Verifying"
)

func PossibleRecommendedIndexStateValues

func PossibleRecommendedIndexStateValues() []RecommendedIndexState

PossibleRecommendedIndexStateValues returns an array of possible values for the RecommendedIndexState const type.

type RecommendedIndexType

type RecommendedIndexType string

RecommendedIndexType enumerates the values for recommended index type.

const (
	// CLUSTERED ...
	CLUSTERED RecommendedIndexType = "CLUSTERED"
	// CLUSTEREDCOLUMNSTORE ...
	CLUSTEREDCOLUMNSTORE RecommendedIndexType = "CLUSTERED COLUMNSTORE"
	// COLUMNSTORE ...
	COLUMNSTORE RecommendedIndexType = "COLUMNSTORE"
	// NONCLUSTERED ...
	NONCLUSTERED RecommendedIndexType = "NONCLUSTERED"
)

func PossibleRecommendedIndexTypeValues

func PossibleRecommendedIndexTypeValues() []RecommendedIndexType

PossibleRecommendedIndexTypeValues returns an array of possible values for the RecommendedIndexType const type.

type RecoverableDatabase

type RecoverableDatabase struct {
	autorest.Response `json:"-"`
	// RecoverableDatabaseProperties - The properties of a recoverable database
	*RecoverableDatabaseProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

RecoverableDatabase a recoverable database

func (RecoverableDatabase) MarshalJSON

func (rd RecoverableDatabase) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RecoverableDatabase.

func (*RecoverableDatabase) UnmarshalJSON

func (rd *RecoverableDatabase) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RecoverableDatabase struct.

type RecoverableDatabaseListResult

type RecoverableDatabaseListResult struct {
	autorest.Response `json:"-"`
	// Value - A list of recoverable databases
	Value *[]RecoverableDatabase `json:"value,omitempty"`
}

RecoverableDatabaseListResult the response to a list recoverable databases request

type RecoverableDatabaseProperties

type RecoverableDatabaseProperties struct {
	// Edition - READ-ONLY; The edition of the database
	Edition *string `json:"edition,omitempty"`
	// ServiceLevelObjective - READ-ONLY; The service level objective name of the database
	ServiceLevelObjective *string `json:"serviceLevelObjective,omitempty"`
	// ElasticPoolName - READ-ONLY; The elastic pool name of the database
	ElasticPoolName *string `json:"elasticPoolName,omitempty"`
	// LastAvailableBackupDate - READ-ONLY; The last available backup date of the database (ISO8601 format)
	LastAvailableBackupDate *date.Time `json:"lastAvailableBackupDate,omitempty"`
}

RecoverableDatabaseProperties the properties of a recoverable database

type RecoverableDatabasesClient

type RecoverableDatabasesClient struct {
	BaseClient
}

RecoverableDatabasesClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewRecoverableDatabasesClient

func NewRecoverableDatabasesClient(subscriptionID string) RecoverableDatabasesClient

NewRecoverableDatabasesClient creates an instance of the RecoverableDatabasesClient client.

func NewRecoverableDatabasesClientWithBaseURI

func NewRecoverableDatabasesClientWithBaseURI(baseURI string, subscriptionID string) RecoverableDatabasesClient

NewRecoverableDatabasesClientWithBaseURI creates an instance of the RecoverableDatabasesClient client.

func (RecoverableDatabasesClient) Get

func (client RecoverableDatabasesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result RecoverableDatabase, err error)

Get gets a recoverable database, which is a resource representing a database's geo backup Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database

func (RecoverableDatabasesClient) GetPreparer

func (client RecoverableDatabasesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (RecoverableDatabasesClient) GetResponder

func (client RecoverableDatabasesClient) GetResponder(resp *http.Response) (result RecoverableDatabase, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (RecoverableDatabasesClient) GetSender

func (client RecoverableDatabasesClient) 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 (RecoverableDatabasesClient) ListByServer

func (client RecoverableDatabasesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result RecoverableDatabaseListResult, err error)

ListByServer gets a list of recoverable databases Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.

func (RecoverableDatabasesClient) ListByServerPreparer

func (client RecoverableDatabasesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

ListByServerPreparer prepares the ListByServer request.

func (RecoverableDatabasesClient) ListByServerResponder

func (client RecoverableDatabasesClient) ListByServerResponder(resp *http.Response) (result RecoverableDatabaseListResult, err error)

ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.

func (RecoverableDatabasesClient) ListByServerSender

func (client RecoverableDatabasesClient) ListByServerSender(req *http.Request) (*http.Response, error)

ListByServerSender sends the ListByServer request. The method will close the http.Response Body if it receives an error.

type RecoverableManagedDatabase

type RecoverableManagedDatabase struct {
	autorest.Response `json:"-"`
	// RecoverableManagedDatabaseProperties - Resource properties.
	*RecoverableManagedDatabaseProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

RecoverableManagedDatabase a recoverable managed database resource.

func (RecoverableManagedDatabase) MarshalJSON

func (rmd RecoverableManagedDatabase) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RecoverableManagedDatabase.

func (*RecoverableManagedDatabase) UnmarshalJSON

func (rmd *RecoverableManagedDatabase) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RecoverableManagedDatabase struct.

type RecoverableManagedDatabaseListResult

type RecoverableManagedDatabaseListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]RecoverableManagedDatabase `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

RecoverableManagedDatabaseListResult a list of recoverable managed databases.

func (RecoverableManagedDatabaseListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type RecoverableManagedDatabaseListResultIterator

type RecoverableManagedDatabaseListResultIterator struct {
	// contains filtered or unexported fields
}

RecoverableManagedDatabaseListResultIterator provides access to a complete listing of RecoverableManagedDatabase values.

func NewRecoverableManagedDatabaseListResultIterator

func NewRecoverableManagedDatabaseListResultIterator(page RecoverableManagedDatabaseListResultPage) RecoverableManagedDatabaseListResultIterator

Creates a new instance of the RecoverableManagedDatabaseListResultIterator type.

func (*RecoverableManagedDatabaseListResultIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*RecoverableManagedDatabaseListResultIterator) NextWithContext

func (iter *RecoverableManagedDatabaseListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (RecoverableManagedDatabaseListResultIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (RecoverableManagedDatabaseListResultIterator) Response

Response returns the raw server response from the last page request.

func (RecoverableManagedDatabaseListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type RecoverableManagedDatabaseListResultPage

type RecoverableManagedDatabaseListResultPage struct {
	// contains filtered or unexported fields
}

RecoverableManagedDatabaseListResultPage contains a page of RecoverableManagedDatabase values.

func NewRecoverableManagedDatabaseListResultPage

Creates a new instance of the RecoverableManagedDatabaseListResultPage type.

func (*RecoverableManagedDatabaseListResultPage) Next

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*RecoverableManagedDatabaseListResultPage) NextWithContext

func (page *RecoverableManagedDatabaseListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (RecoverableManagedDatabaseListResultPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (RecoverableManagedDatabaseListResultPage) Response

Response returns the raw server response from the last page request.

func (RecoverableManagedDatabaseListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type RecoverableManagedDatabaseProperties

type RecoverableManagedDatabaseProperties struct {
	// LastAvailableBackupDate - READ-ONLY; The last available backup date.
	LastAvailableBackupDate *string `json:"lastAvailableBackupDate,omitempty"`
}

RecoverableManagedDatabaseProperties the recoverable managed database's properties.

type RecoverableManagedDatabasesClient

type RecoverableManagedDatabasesClient struct {
	BaseClient
}

RecoverableManagedDatabasesClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewRecoverableManagedDatabasesClient

func NewRecoverableManagedDatabasesClient(subscriptionID string) RecoverableManagedDatabasesClient

NewRecoverableManagedDatabasesClient creates an instance of the RecoverableManagedDatabasesClient client.

func NewRecoverableManagedDatabasesClientWithBaseURI

func NewRecoverableManagedDatabasesClientWithBaseURI(baseURI string, subscriptionID string) RecoverableManagedDatabasesClient

NewRecoverableManagedDatabasesClientWithBaseURI creates an instance of the RecoverableManagedDatabasesClient client.

func (RecoverableManagedDatabasesClient) Get

func (client RecoverableManagedDatabasesClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, recoverableDatabaseName string) (result RecoverableManagedDatabase, err error)

Get gets a recoverable managed database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance.

func (RecoverableManagedDatabasesClient) GetPreparer

func (client RecoverableManagedDatabasesClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, recoverableDatabaseName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (RecoverableManagedDatabasesClient) GetResponder

func (client RecoverableManagedDatabasesClient) GetResponder(resp *http.Response) (result RecoverableManagedDatabase, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (RecoverableManagedDatabasesClient) GetSender

func (client RecoverableManagedDatabasesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (RecoverableManagedDatabasesClient) ListByInstance

func (client RecoverableManagedDatabasesClient) ListByInstance(ctx context.Context, resourceGroupName string, managedInstanceName string) (result RecoverableManagedDatabaseListResultPage, err error)

ListByInstance gets a list of recoverable managed databases. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance.

func (RecoverableManagedDatabasesClient) ListByInstanceComplete

func (client RecoverableManagedDatabasesClient) ListByInstanceComplete(ctx context.Context, resourceGroupName string, managedInstanceName string) (result RecoverableManagedDatabaseListResultIterator, err error)

ListByInstanceComplete enumerates all values, automatically crossing page boundaries as required.

func (RecoverableManagedDatabasesClient) ListByInstancePreparer

func (client RecoverableManagedDatabasesClient) ListByInstancePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error)

ListByInstancePreparer prepares the ListByInstance request.

func (RecoverableManagedDatabasesClient) ListByInstanceResponder

func (client RecoverableManagedDatabasesClient) ListByInstanceResponder(resp *http.Response) (result RecoverableManagedDatabaseListResult, err error)

ListByInstanceResponder handles the response to the ListByInstance request. The method always closes the http.Response Body.

func (RecoverableManagedDatabasesClient) ListByInstanceSender

func (client RecoverableManagedDatabasesClient) ListByInstanceSender(req *http.Request) (*http.Response, error)

ListByInstanceSender sends the ListByInstance request. The method will close the http.Response Body if it receives an error.

type ReplicationLink struct {
	autorest.Response `json:"-"`
	// Location - READ-ONLY; Location of the server that contains this firewall rule.
	Location *string `json:"location,omitempty"`
	// ReplicationLinkProperties - The properties representing the resource.
	*ReplicationLinkProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

ReplicationLink represents a database replication link.

func (ReplicationLink) MarshalJSON

func (rl ReplicationLink) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ReplicationLink.

func (*ReplicationLink) UnmarshalJSON

func (rl *ReplicationLink) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ReplicationLink struct.

type ReplicationLinkListResult

type ReplicationLinkListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of database replication links housed in the database.
	Value *[]ReplicationLink `json:"value,omitempty"`
}

ReplicationLinkListResult represents the response to a List database replication link request.

type ReplicationLinkProperties

type ReplicationLinkProperties struct {
	// IsTerminationAllowed - READ-ONLY; Legacy value indicating whether termination is allowed.  Currently always returns true.
	IsTerminationAllowed *bool `json:"isTerminationAllowed,omitempty"`
	// ReplicationMode - READ-ONLY; Replication mode of this replication link.
	ReplicationMode *string `json:"replicationMode,omitempty"`
	// PartnerServer - READ-ONLY; The name of the server hosting the partner database.
	PartnerServer *string `json:"partnerServer,omitempty"`
	// PartnerDatabase - READ-ONLY; The name of the partner database.
	PartnerDatabase *string `json:"partnerDatabase,omitempty"`
	// PartnerLocation - READ-ONLY; The Azure Region of the partner database.
	PartnerLocation *string `json:"partnerLocation,omitempty"`
	// Role - READ-ONLY; The role of the database in the replication link. Possible values include: 'ReplicationRolePrimary', 'ReplicationRoleSecondary', 'ReplicationRoleNonReadableSecondary', 'ReplicationRoleSource', 'ReplicationRoleCopy'
	Role ReplicationRole `json:"role,omitempty"`
	// PartnerRole - READ-ONLY; The role of the partner database in the replication link. Possible values include: 'ReplicationRolePrimary', 'ReplicationRoleSecondary', 'ReplicationRoleNonReadableSecondary', 'ReplicationRoleSource', 'ReplicationRoleCopy'
	PartnerRole ReplicationRole `json:"partnerRole,omitempty"`
	// StartTime - READ-ONLY; The start time for the replication link.
	StartTime *date.Time `json:"startTime,omitempty"`
	// PercentComplete - READ-ONLY; The percentage of seeding complete for the replication link.
	PercentComplete *int32 `json:"percentComplete,omitempty"`
	// ReplicationState - READ-ONLY; The replication state for the replication link. Possible values include: 'PENDING', 'SEEDING', 'CATCHUP', 'SUSPENDED'
	ReplicationState ReplicationState `json:"replicationState,omitempty"`
}

ReplicationLinkProperties represents the properties of a database replication link.

type ReplicationLinksClient

type ReplicationLinksClient struct {
	BaseClient
}

ReplicationLinksClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewReplicationLinksClient

func NewReplicationLinksClient(subscriptionID string) ReplicationLinksClient

NewReplicationLinksClient creates an instance of the ReplicationLinksClient client.

func NewReplicationLinksClientWithBaseURI

func NewReplicationLinksClientWithBaseURI(baseURI string, subscriptionID string) ReplicationLinksClient

NewReplicationLinksClientWithBaseURI creates an instance of the ReplicationLinksClient client.

func (ReplicationLinksClient) Delete

func (client ReplicationLinksClient) Delete(ctx context.Context, resourceGroupName string, serverName string, databaseName string, linkID string) (result autorest.Response, err error)

Delete deletes a database replication link. Cannot be done during failover. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database that has the replication link to be dropped. linkID - the ID of the replication link to be deleted.

func (ReplicationLinksClient) DeletePreparer

func (client ReplicationLinksClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, linkID string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ReplicationLinksClient) DeleteResponder

func (client ReplicationLinksClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ReplicationLinksClient) DeleteSender

func (client ReplicationLinksClient) 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 (ReplicationLinksClient) Failover

func (client ReplicationLinksClient) Failover(ctx context.Context, resourceGroupName string, serverName string, databaseName string, linkID string) (result ReplicationLinksFailoverFuture, err error)

Failover sets which replica database is primary by failing over from the current primary replica database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database that has the replication link to be failed over. linkID - the ID of the replication link to be failed over.

func (ReplicationLinksClient) FailoverAllowDataLoss

func (client ReplicationLinksClient) FailoverAllowDataLoss(ctx context.Context, resourceGroupName string, serverName string, databaseName string, linkID string) (result ReplicationLinksFailoverAllowDataLossFuture, err error)

FailoverAllowDataLoss sets which replica database is primary by failing over from the current primary replica database. This operation might result in data loss. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database that has the replication link to be failed over. linkID - the ID of the replication link to be failed over.

func (ReplicationLinksClient) FailoverAllowDataLossPreparer

func (client ReplicationLinksClient) FailoverAllowDataLossPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, linkID string) (*http.Request, error)

FailoverAllowDataLossPreparer prepares the FailoverAllowDataLoss request.

func (ReplicationLinksClient) FailoverAllowDataLossResponder

func (client ReplicationLinksClient) FailoverAllowDataLossResponder(resp *http.Response) (result autorest.Response, err error)

FailoverAllowDataLossResponder handles the response to the FailoverAllowDataLoss request. The method always closes the http.Response Body.

func (ReplicationLinksClient) FailoverAllowDataLossSender

func (client ReplicationLinksClient) FailoverAllowDataLossSender(req *http.Request) (future ReplicationLinksFailoverAllowDataLossFuture, err error)

FailoverAllowDataLossSender sends the FailoverAllowDataLoss request. The method will close the http.Response Body if it receives an error.

func (ReplicationLinksClient) FailoverPreparer

func (client ReplicationLinksClient) FailoverPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, linkID string) (*http.Request, error)

FailoverPreparer prepares the Failover request.

func (ReplicationLinksClient) FailoverResponder

func (client ReplicationLinksClient) FailoverResponder(resp *http.Response) (result autorest.Response, err error)

FailoverResponder handles the response to the Failover request. The method always closes the http.Response Body.

func (ReplicationLinksClient) FailoverSender

func (client ReplicationLinksClient) FailoverSender(req *http.Request) (future ReplicationLinksFailoverFuture, err error)

FailoverSender sends the Failover request. The method will close the http.Response Body if it receives an error.

func (ReplicationLinksClient) Get

func (client ReplicationLinksClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string, linkID string) (result ReplicationLink, err error)

Get gets a database replication link. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database to get the link for. linkID - the replication link ID to be retrieved.

func (ReplicationLinksClient) GetPreparer

func (client ReplicationLinksClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, linkID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ReplicationLinksClient) GetResponder

func (client ReplicationLinksClient) GetResponder(resp *http.Response) (result ReplicationLink, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ReplicationLinksClient) GetSender

func (client ReplicationLinksClient) 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 (ReplicationLinksClient) ListByDatabase

func (client ReplicationLinksClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result ReplicationLinkListResult, err error)

ListByDatabase lists a database's replication links. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database to retrieve links for.

func (ReplicationLinksClient) ListByDatabasePreparer

func (client ReplicationLinksClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

ListByDatabasePreparer prepares the ListByDatabase request.

func (ReplicationLinksClient) ListByDatabaseResponder

func (client ReplicationLinksClient) ListByDatabaseResponder(resp *http.Response) (result ReplicationLinkListResult, err error)

ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.

func (ReplicationLinksClient) ListByDatabaseSender

func (client ReplicationLinksClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)

ListByDatabaseSender sends the ListByDatabase request. The method will close the http.Response Body if it receives an error.

type ReplicationLinksFailoverAllowDataLossFuture

type ReplicationLinksFailoverAllowDataLossFuture struct {
	azure.Future
}

ReplicationLinksFailoverAllowDataLossFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ReplicationLinksFailoverAllowDataLossFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ReplicationLinksFailoverFuture

type ReplicationLinksFailoverFuture struct {
	azure.Future
}

ReplicationLinksFailoverFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ReplicationLinksFailoverFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ReplicationRole

type ReplicationRole string

ReplicationRole enumerates the values for replication role.

const (
	// ReplicationRoleCopy ...
	ReplicationRoleCopy ReplicationRole = "Copy"
	// ReplicationRoleNonReadableSecondary ...
	ReplicationRoleNonReadableSecondary ReplicationRole = "NonReadableSecondary"
	// ReplicationRolePrimary ...
	ReplicationRolePrimary ReplicationRole = "Primary"
	// ReplicationRoleSecondary ...
	ReplicationRoleSecondary ReplicationRole = "Secondary"
	// ReplicationRoleSource ...
	ReplicationRoleSource ReplicationRole = "Source"
)

func PossibleReplicationRoleValues

func PossibleReplicationRoleValues() []ReplicationRole

PossibleReplicationRoleValues returns an array of possible values for the ReplicationRole const type.

type ReplicationState

type ReplicationState string

ReplicationState enumerates the values for replication state.

const (
	// CATCHUP ...
	CATCHUP ReplicationState = "CATCH_UP"
	// PENDING ...
	PENDING ReplicationState = "PENDING"
	// SEEDING ...
	SEEDING ReplicationState = "SEEDING"
	// SUSPENDED ...
	SUSPENDED ReplicationState = "SUSPENDED"
)

func PossibleReplicationStateValues

func PossibleReplicationStateValues() []ReplicationState

PossibleReplicationStateValues returns an array of possible values for the ReplicationState const type.

type Resource

type Resource struct {
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

Resource ARM resource.

type ResourceIdentity

type ResourceIdentity struct {
	// PrincipalID - READ-ONLY; The Azure Active Directory principal id.
	PrincipalID *uuid.UUID `json:"principalId,omitempty"`
	// Type - The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. Possible values include: 'SystemAssigned'
	Type IdentityType `json:"type,omitempty"`
	// TenantID - READ-ONLY; The Azure Active Directory tenant id.
	TenantID *uuid.UUID `json:"tenantId,omitempty"`
}

ResourceIdentity azure Active Directory identity configuration for a resource.

type ResourceMoveDefinition

type ResourceMoveDefinition struct {
	// ID - The target ID for the resource
	ID *string `json:"id,omitempty"`
}

ResourceMoveDefinition contains the information necessary to perform a resource move (rename).

type RestorableDroppedDatabase

type RestorableDroppedDatabase struct {
	autorest.Response `json:"-"`
	// Location - READ-ONLY; The geo-location where the resource lives
	Location *string `json:"location,omitempty"`
	// RestorableDroppedDatabaseProperties - The properties of a restorable dropped database
	*RestorableDroppedDatabaseProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

RestorableDroppedDatabase a restorable dropped database

func (RestorableDroppedDatabase) MarshalJSON

func (rdd RestorableDroppedDatabase) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RestorableDroppedDatabase.

func (*RestorableDroppedDatabase) UnmarshalJSON

func (rdd *RestorableDroppedDatabase) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RestorableDroppedDatabase struct.

type RestorableDroppedDatabaseListResult

type RestorableDroppedDatabaseListResult struct {
	autorest.Response `json:"-"`
	// Value - A list of restorable dropped databases
	Value *[]RestorableDroppedDatabase `json:"value,omitempty"`
}

RestorableDroppedDatabaseListResult the response to a list restorable dropped databases request

type RestorableDroppedDatabaseProperties

type RestorableDroppedDatabaseProperties struct {
	// DatabaseName - READ-ONLY; The name of the database
	DatabaseName *string `json:"databaseName,omitempty"`
	// Edition - READ-ONLY; The edition of the database
	Edition *string `json:"edition,omitempty"`
	// MaxSizeBytes - READ-ONLY; The max size in bytes of the database
	MaxSizeBytes *string `json:"maxSizeBytes,omitempty"`
	// ServiceLevelObjective - READ-ONLY; The service level objective name of the database
	ServiceLevelObjective *string `json:"serviceLevelObjective,omitempty"`
	// ElasticPoolName - READ-ONLY; The elastic pool name of the database
	ElasticPoolName *string `json:"elasticPoolName,omitempty"`
	// CreationDate - READ-ONLY; The creation date of the database (ISO8601 format)
	CreationDate *date.Time `json:"creationDate,omitempty"`
	// DeletionDate - READ-ONLY; The deletion date of the database (ISO8601 format)
	DeletionDate *date.Time `json:"deletionDate,omitempty"`
	// EarliestRestoreDate - READ-ONLY; The earliest restore date of the database (ISO8601 format)
	EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"`
}

RestorableDroppedDatabaseProperties the properties of a restorable dropped database

type RestorableDroppedDatabasesClient

type RestorableDroppedDatabasesClient struct {
	BaseClient
}

RestorableDroppedDatabasesClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewRestorableDroppedDatabasesClient

func NewRestorableDroppedDatabasesClient(subscriptionID string) RestorableDroppedDatabasesClient

NewRestorableDroppedDatabasesClient creates an instance of the RestorableDroppedDatabasesClient client.

func NewRestorableDroppedDatabasesClientWithBaseURI

func NewRestorableDroppedDatabasesClientWithBaseURI(baseURI string, subscriptionID string) RestorableDroppedDatabasesClient

NewRestorableDroppedDatabasesClientWithBaseURI creates an instance of the RestorableDroppedDatabasesClient client.

func (RestorableDroppedDatabasesClient) Get

func (client RestorableDroppedDatabasesClient) Get(ctx context.Context, resourceGroupName string, serverName string, restorableDroppededDatabaseID string) (result RestorableDroppedDatabase, err error)

Get gets a deleted database that can be restored Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. restorableDroppededDatabaseID - the id of the deleted database in the form of databaseName,deletionTimeInFileTimeFormat

func (RestorableDroppedDatabasesClient) GetPreparer

func (client RestorableDroppedDatabasesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, restorableDroppededDatabaseID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (RestorableDroppedDatabasesClient) GetResponder

func (client RestorableDroppedDatabasesClient) GetResponder(resp *http.Response) (result RestorableDroppedDatabase, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (RestorableDroppedDatabasesClient) GetSender

func (client RestorableDroppedDatabasesClient) 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 (RestorableDroppedDatabasesClient) ListByServer

func (client RestorableDroppedDatabasesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result RestorableDroppedDatabaseListResult, err error)

ListByServer gets a list of deleted databases that can be restored Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.

func (RestorableDroppedDatabasesClient) ListByServerPreparer

func (client RestorableDroppedDatabasesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

ListByServerPreparer prepares the ListByServer request.

func (RestorableDroppedDatabasesClient) ListByServerResponder

func (client RestorableDroppedDatabasesClient) ListByServerResponder(resp *http.Response) (result RestorableDroppedDatabaseListResult, err error)

ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.

func (RestorableDroppedDatabasesClient) ListByServerSender

func (client RestorableDroppedDatabasesClient) ListByServerSender(req *http.Request) (*http.Response, error)

ListByServerSender sends the ListByServer request. The method will close the http.Response Body if it receives an error.

type RestorableDroppedManagedDatabase

type RestorableDroppedManagedDatabase struct {
	autorest.Response `json:"-"`
	// RestorableDroppedManagedDatabaseProperties - Resource properties.
	*RestorableDroppedManagedDatabaseProperties `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"`
}

RestorableDroppedManagedDatabase a restorable dropped managed database resource.

func (RestorableDroppedManagedDatabase) MarshalJSON

func (rdmd RestorableDroppedManagedDatabase) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RestorableDroppedManagedDatabase.

func (*RestorableDroppedManagedDatabase) UnmarshalJSON

func (rdmd *RestorableDroppedManagedDatabase) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RestorableDroppedManagedDatabase struct.

type RestorableDroppedManagedDatabaseListResult

type RestorableDroppedManagedDatabaseListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]RestorableDroppedManagedDatabase `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

RestorableDroppedManagedDatabaseListResult a list of restorable dropped managed databases.

func (RestorableDroppedManagedDatabaseListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type RestorableDroppedManagedDatabaseListResultIterator

type RestorableDroppedManagedDatabaseListResultIterator struct {
	// contains filtered or unexported fields
}

RestorableDroppedManagedDatabaseListResultIterator provides access to a complete listing of RestorableDroppedManagedDatabase values.

func NewRestorableDroppedManagedDatabaseListResultIterator

func NewRestorableDroppedManagedDatabaseListResultIterator(page RestorableDroppedManagedDatabaseListResultPage) RestorableDroppedManagedDatabaseListResultIterator

Creates a new instance of the RestorableDroppedManagedDatabaseListResultIterator type.

func (*RestorableDroppedManagedDatabaseListResultIterator) Next

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 (*RestorableDroppedManagedDatabaseListResultIterator) NextWithContext

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 (RestorableDroppedManagedDatabaseListResultIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (RestorableDroppedManagedDatabaseListResultIterator) Response

Response returns the raw server response from the last page request.

func (RestorableDroppedManagedDatabaseListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type RestorableDroppedManagedDatabaseListResultPage

type RestorableDroppedManagedDatabaseListResultPage struct {
	// contains filtered or unexported fields
}

RestorableDroppedManagedDatabaseListResultPage contains a page of RestorableDroppedManagedDatabase values.

func NewRestorableDroppedManagedDatabaseListResultPage

Creates a new instance of the RestorableDroppedManagedDatabaseListResultPage type.

func (*RestorableDroppedManagedDatabaseListResultPage) Next

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 (*RestorableDroppedManagedDatabaseListResultPage) NextWithContext

func (page *RestorableDroppedManagedDatabaseListResultPage) 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 (RestorableDroppedManagedDatabaseListResultPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (RestorableDroppedManagedDatabaseListResultPage) Response

Response returns the raw server response from the last page request.

func (RestorableDroppedManagedDatabaseListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type RestorableDroppedManagedDatabaseProperties

type RestorableDroppedManagedDatabaseProperties struct {
	// DatabaseName - READ-ONLY; The name of the database.
	DatabaseName *string `json:"databaseName,omitempty"`
	// CreationDate - READ-ONLY; The creation date of the database (ISO8601 format).
	CreationDate *date.Time `json:"creationDate,omitempty"`
	// DeletionDate - READ-ONLY; The deletion date of the database (ISO8601 format).
	DeletionDate *date.Time `json:"deletionDate,omitempty"`
	// EarliestRestoreDate - READ-ONLY; The earliest restore date of the database (ISO8601 format).
	EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"`
}

RestorableDroppedManagedDatabaseProperties the restorable dropped managed database's properties.

type RestorableDroppedManagedDatabasesClient

type RestorableDroppedManagedDatabasesClient struct {
	BaseClient
}

RestorableDroppedManagedDatabasesClient 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 NewRestorableDroppedManagedDatabasesClient

func NewRestorableDroppedManagedDatabasesClient(subscriptionID string) RestorableDroppedManagedDatabasesClient

NewRestorableDroppedManagedDatabasesClient creates an instance of the RestorableDroppedManagedDatabasesClient client.

func NewRestorableDroppedManagedDatabasesClientWithBaseURI

func NewRestorableDroppedManagedDatabasesClientWithBaseURI(baseURI string, subscriptionID string) RestorableDroppedManagedDatabasesClient

NewRestorableDroppedManagedDatabasesClientWithBaseURI creates an instance of the RestorableDroppedManagedDatabasesClient client.

func (RestorableDroppedManagedDatabasesClient) Get

func (client RestorableDroppedManagedDatabasesClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, restorableDroppedDatabaseID string) (result RestorableDroppedManagedDatabase, err error)

Get gets a restorable dropped managed database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance.

func (RestorableDroppedManagedDatabasesClient) GetPreparer

func (client RestorableDroppedManagedDatabasesClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, restorableDroppedDatabaseID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (RestorableDroppedManagedDatabasesClient) GetResponder

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (RestorableDroppedManagedDatabasesClient) GetSender

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (RestorableDroppedManagedDatabasesClient) ListByInstance

func (client RestorableDroppedManagedDatabasesClient) ListByInstance(ctx context.Context, resourceGroupName string, managedInstanceName string) (result RestorableDroppedManagedDatabaseListResultPage, err error)

ListByInstance gets a list of restorable dropped managed databases. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance.

func (RestorableDroppedManagedDatabasesClient) ListByInstanceComplete

func (client RestorableDroppedManagedDatabasesClient) ListByInstanceComplete(ctx context.Context, resourceGroupName string, managedInstanceName string) (result RestorableDroppedManagedDatabaseListResultIterator, err error)

ListByInstanceComplete enumerates all values, automatically crossing page boundaries as required.

func (RestorableDroppedManagedDatabasesClient) ListByInstancePreparer

func (client RestorableDroppedManagedDatabasesClient) ListByInstancePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error)

ListByInstancePreparer prepares the ListByInstance request.

func (RestorableDroppedManagedDatabasesClient) ListByInstanceResponder

ListByInstanceResponder handles the response to the ListByInstance request. The method always closes the http.Response Body.

func (RestorableDroppedManagedDatabasesClient) ListByInstanceSender

func (client RestorableDroppedManagedDatabasesClient) ListByInstanceSender(req *http.Request) (*http.Response, error)

ListByInstanceSender sends the ListByInstance request. The method will close the http.Response Body if it receives an error.

type RestorePoint

type RestorePoint struct {
	autorest.Response `json:"-"`
	// Location - READ-ONLY; Resource location.
	Location *string `json:"location,omitempty"`
	// RestorePointProperties - Resource properties.
	*RestorePointProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

RestorePoint database restore points.

func (RestorePoint) MarshalJSON

func (rp RestorePoint) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RestorePoint.

func (*RestorePoint) UnmarshalJSON

func (rp *RestorePoint) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RestorePoint struct.

type RestorePointListResult

type RestorePointListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]RestorePoint `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

RestorePointListResult a list of long term retention backups.

type RestorePointProperties

type RestorePointProperties struct {
	// RestorePointType - READ-ONLY; The type of restore point. Possible values include: 'CONTINUOUS', 'DISCRETE'
	RestorePointType RestorePointType `json:"restorePointType,omitempty"`
	// EarliestRestoreDate - READ-ONLY; The earliest time to which this database can be restored
	EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"`
	// RestorePointCreationDate - READ-ONLY; The time the backup was taken
	RestorePointCreationDate *date.Time `json:"restorePointCreationDate,omitempty"`
	// RestorePointLabel - READ-ONLY; The label of restore point for backup request by user
	RestorePointLabel *string `json:"restorePointLabel,omitempty"`
}

RestorePointProperties properties of a database restore point

type RestorePointType

type RestorePointType string

RestorePointType enumerates the values for restore point type.

const (
	// CONTINUOUS ...
	CONTINUOUS RestorePointType = "CONTINUOUS"
	// DISCRETE ...
	DISCRETE RestorePointType = "DISCRETE"
)

func PossibleRestorePointTypeValues

func PossibleRestorePointTypeValues() []RestorePointType

PossibleRestorePointTypeValues returns an array of possible values for the RestorePointType const type.

type RestorePointsClient

type RestorePointsClient struct {
	BaseClient
}

RestorePointsClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewRestorePointsClient

func NewRestorePointsClient(subscriptionID string) RestorePointsClient

NewRestorePointsClient creates an instance of the RestorePointsClient client.

func NewRestorePointsClientWithBaseURI

func NewRestorePointsClientWithBaseURI(baseURI string, subscriptionID string) RestorePointsClient

NewRestorePointsClientWithBaseURI creates an instance of the RestorePointsClient client.

func (RestorePointsClient) Create

func (client RestorePointsClient) Create(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters CreateDatabaseRestorePointDefinition) (result RestorePointsCreateFuture, err error)

Create creates a restore point for a data warehouse. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database. parameters - the definition for creating the restore point of this database.

func (RestorePointsClient) CreatePreparer

func (client RestorePointsClient) CreatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters CreateDatabaseRestorePointDefinition) (*http.Request, error)

CreatePreparer prepares the Create request.

func (RestorePointsClient) CreateResponder

func (client RestorePointsClient) CreateResponder(resp *http.Response) (result RestorePoint, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (RestorePointsClient) CreateSender

func (client RestorePointsClient) CreateSender(req *http.Request) (future RestorePointsCreateFuture, err error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (RestorePointsClient) Delete

func (client RestorePointsClient) Delete(ctx context.Context, resourceGroupName string, serverName string, databaseName string, restorePointName string) (result autorest.Response, err error)

Delete deletes a restore point. 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. restorePointName - the name of the restore point.

func (RestorePointsClient) DeletePreparer

func (client RestorePointsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, restorePointName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (RestorePointsClient) DeleteResponder

func (client RestorePointsClient) 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 (RestorePointsClient) DeleteSender

func (client RestorePointsClient) 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 (RestorePointsClient) Get

func (client RestorePointsClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string, restorePointName string) (result RestorePoint, err error)

Get gets a restore point. 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. restorePointName - the name of the restore point.

func (RestorePointsClient) GetPreparer

func (client RestorePointsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, restorePointName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (RestorePointsClient) GetResponder

func (client RestorePointsClient) GetResponder(resp *http.Response) (result RestorePoint, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (RestorePointsClient) GetSender

func (client RestorePointsClient) 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 (RestorePointsClient) ListByDatabase

func (client RestorePointsClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result RestorePointListResult, err error)

ListByDatabase gets a list of database restore points. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database.

func (RestorePointsClient) ListByDatabasePreparer

func (client RestorePointsClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

ListByDatabasePreparer prepares the ListByDatabase request.

func (RestorePointsClient) ListByDatabaseResponder

func (client RestorePointsClient) ListByDatabaseResponder(resp *http.Response) (result RestorePointListResult, err error)

ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.

func (RestorePointsClient) ListByDatabaseSender

func (client RestorePointsClient) 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 RestorePointsCreateFuture

type RestorePointsCreateFuture struct {
	azure.Future
}

RestorePointsCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*RestorePointsCreateFuture) Result

func (future *RestorePointsCreateFuture) Result(client RestorePointsClient) (rp RestorePoint, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type SampleName

type SampleName string

SampleName enumerates the values for sample name.

const (
	// AdventureWorksLT ...
	AdventureWorksLT SampleName = "AdventureWorksLT"
	// WideWorldImportersFull ...
	WideWorldImportersFull SampleName = "WideWorldImportersFull"
	// WideWorldImportersStd ...
	WideWorldImportersStd SampleName = "WideWorldImportersStd"
)

func PossibleSampleNameValues

func PossibleSampleNameValues() []SampleName

PossibleSampleNameValues returns an array of possible values for the SampleName const type.

type SecurityAlertPolicyEmailAccountAdmins

type SecurityAlertPolicyEmailAccountAdmins string

SecurityAlertPolicyEmailAccountAdmins enumerates the values for security alert policy email account admins.

const (
	// SecurityAlertPolicyEmailAccountAdminsDisabled ...
	SecurityAlertPolicyEmailAccountAdminsDisabled SecurityAlertPolicyEmailAccountAdmins = "Disabled"
	// SecurityAlertPolicyEmailAccountAdminsEnabled ...
	SecurityAlertPolicyEmailAccountAdminsEnabled SecurityAlertPolicyEmailAccountAdmins = "Enabled"
)

func PossibleSecurityAlertPolicyEmailAccountAdminsValues

func PossibleSecurityAlertPolicyEmailAccountAdminsValues() []SecurityAlertPolicyEmailAccountAdmins

PossibleSecurityAlertPolicyEmailAccountAdminsValues returns an array of possible values for the SecurityAlertPolicyEmailAccountAdmins const type.

type SecurityAlertPolicyProperties

type SecurityAlertPolicyProperties struct {
	// State - Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. Possible values include: 'SecurityAlertPolicyStateNew', 'SecurityAlertPolicyStateEnabled', 'SecurityAlertPolicyStateDisabled'
	State SecurityAlertPolicyState `json:"state,omitempty"`
	// DisabledAlerts - Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action
	DisabledAlerts *[]string `json:"disabledAlerts,omitempty"`
	// EmailAddresses - Specifies an array 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.
	EmailAccountAdmins *bool `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.
	StorageEndpoint *string `json:"storageEndpoint,omitempty"`
	// StorageAccountAccessKey - Specifies the identifier key of the Threat Detection audit storage account.
	StorageAccountAccessKey *string `json:"storageAccountAccessKey,omitempty"`
	// RetentionDays - Specifies the number of days to keep in the Threat Detection audit logs.
	RetentionDays *int32 `json:"retentionDays,omitempty"`
	// CreationTime - READ-ONLY; Specifies the UTC creation time of the policy.
	CreationTime *date.Time `json:"creationTime,omitempty"`
}

SecurityAlertPolicyProperties properties of a security alert policy.

type SecurityAlertPolicyState

type SecurityAlertPolicyState string

SecurityAlertPolicyState enumerates the values for security alert policy state.

const (
	// SecurityAlertPolicyStateDisabled ...
	SecurityAlertPolicyStateDisabled SecurityAlertPolicyState = "Disabled"
	// SecurityAlertPolicyStateEnabled ...
	SecurityAlertPolicyStateEnabled SecurityAlertPolicyState = "Enabled"
	// SecurityAlertPolicyStateNew ...
	SecurityAlertPolicyStateNew SecurityAlertPolicyState = "New"
)

func PossibleSecurityAlertPolicyStateValues

func PossibleSecurityAlertPolicyStateValues() []SecurityAlertPolicyState

PossibleSecurityAlertPolicyStateValues returns an array of possible values for the SecurityAlertPolicyState const type.

type SecurityAlertPolicyUseServerDefault

type SecurityAlertPolicyUseServerDefault string

SecurityAlertPolicyUseServerDefault enumerates the values for security alert policy use server default.

const (
	// SecurityAlertPolicyUseServerDefaultDisabled ...
	SecurityAlertPolicyUseServerDefaultDisabled SecurityAlertPolicyUseServerDefault = "Disabled"
	// SecurityAlertPolicyUseServerDefaultEnabled ...
	SecurityAlertPolicyUseServerDefaultEnabled SecurityAlertPolicyUseServerDefault = "Enabled"
)

func PossibleSecurityAlertPolicyUseServerDefaultValues

func PossibleSecurityAlertPolicyUseServerDefaultValues() []SecurityAlertPolicyUseServerDefault

PossibleSecurityAlertPolicyUseServerDefaultValues returns an array of possible values for the SecurityAlertPolicyUseServerDefault const type.

type SensitivityLabel

type SensitivityLabel struct {
	autorest.Response `json:"-"`
	// SensitivityLabelProperties - Resource properties.
	*SensitivityLabelProperties `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"`
}

SensitivityLabel a sensitivity label.

func (SensitivityLabel) MarshalJSON

func (sl SensitivityLabel) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SensitivityLabel.

func (*SensitivityLabel) UnmarshalJSON

func (sl *SensitivityLabel) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SensitivityLabel struct.

type SensitivityLabelListResult

type SensitivityLabelListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]SensitivityLabel `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

SensitivityLabelListResult a list of sensitivity labels.

func (SensitivityLabelListResult) IsEmpty

func (sllr SensitivityLabelListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type SensitivityLabelListResultIterator

type SensitivityLabelListResultIterator struct {
	// contains filtered or unexported fields
}

SensitivityLabelListResultIterator provides access to a complete listing of SensitivityLabel values.

func NewSensitivityLabelListResultIterator

func NewSensitivityLabelListResultIterator(page SensitivityLabelListResultPage) SensitivityLabelListResultIterator

Creates a new instance of the SensitivityLabelListResultIterator type.

func (*SensitivityLabelListResultIterator) Next

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 (*SensitivityLabelListResultIterator) NextWithContext

func (iter *SensitivityLabelListResultIterator) 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 (SensitivityLabelListResultIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (SensitivityLabelListResultIterator) Response

Response returns the raw server response from the last page request.

func (SensitivityLabelListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type SensitivityLabelListResultPage

type SensitivityLabelListResultPage struct {
	// contains filtered or unexported fields
}

SensitivityLabelListResultPage contains a page of SensitivityLabel values.

func NewSensitivityLabelListResultPage

func NewSensitivityLabelListResultPage(getNextPage func(context.Context, SensitivityLabelListResult) (SensitivityLabelListResult, error)) SensitivityLabelListResultPage

Creates a new instance of the SensitivityLabelListResultPage type.

func (*SensitivityLabelListResultPage) Next

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 (*SensitivityLabelListResultPage) NextWithContext

func (page *SensitivityLabelListResultPage) 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 (SensitivityLabelListResultPage) NotDone

func (page SensitivityLabelListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (SensitivityLabelListResultPage) Response

Response returns the raw server response from the last page request.

func (SensitivityLabelListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type SensitivityLabelProperties

type SensitivityLabelProperties struct {
	// LabelName - The label name.
	LabelName *string `json:"labelName,omitempty"`
	// LabelID - The label ID.
	LabelID *string `json:"labelId,omitempty"`
	// InformationType - The information type.
	InformationType *string `json:"informationType,omitempty"`
	// InformationTypeID - The information type ID.
	InformationTypeID *string `json:"informationTypeId,omitempty"`
	// IsDisabled - READ-ONLY; Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not.
	IsDisabled *bool `json:"isDisabled,omitempty"`
}

SensitivityLabelProperties properties of a sensitivity label.

type SensitivityLabelSource

type SensitivityLabelSource string

SensitivityLabelSource enumerates the values for sensitivity label source.

const (
	// Current ...
	Current SensitivityLabelSource = "current"
	// Recommended ...
	Recommended SensitivityLabelSource = "recommended"
)

func PossibleSensitivityLabelSourceValues

func PossibleSensitivityLabelSourceValues() []SensitivityLabelSource

PossibleSensitivityLabelSourceValues returns an array of possible values for the SensitivityLabelSource const type.

type SensitivityLabelsClient

type SensitivityLabelsClient struct {
	BaseClient
}

SensitivityLabelsClient 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 NewSensitivityLabelsClient

func NewSensitivityLabelsClient(subscriptionID string) SensitivityLabelsClient

NewSensitivityLabelsClient creates an instance of the SensitivityLabelsClient client.

func NewSensitivityLabelsClientWithBaseURI

func NewSensitivityLabelsClientWithBaseURI(baseURI string, subscriptionID string) SensitivityLabelsClient

NewSensitivityLabelsClientWithBaseURI creates an instance of the SensitivityLabelsClient client.

func (SensitivityLabelsClient) CreateOrUpdate

func (client SensitivityLabelsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, schemaName string, tableName string, columnName string, parameters SensitivityLabel) (result SensitivityLabel, err error)

CreateOrUpdate creates or updates the sensitivity label of a given column 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. schemaName - the name of the schema. tableName - the name of the table. columnName - the name of the column. parameters - the column sensitivity label resource.

func (SensitivityLabelsClient) CreateOrUpdatePreparer

func (client SensitivityLabelsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, schemaName string, tableName string, columnName string, parameters SensitivityLabel) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (SensitivityLabelsClient) CreateOrUpdateResponder

func (client SensitivityLabelsClient) CreateOrUpdateResponder(resp *http.Response) (result SensitivityLabel, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (SensitivityLabelsClient) CreateOrUpdateSender

func (client SensitivityLabelsClient) 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 (SensitivityLabelsClient) Delete

func (client SensitivityLabelsClient) Delete(ctx context.Context, resourceGroupName string, serverName string, databaseName string, schemaName string, tableName string, columnName string) (result autorest.Response, err error)

Delete deletes the sensitivity label of a given column 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. schemaName - the name of the schema. tableName - the name of the table. columnName - the name of the column.

func (SensitivityLabelsClient) DeletePreparer

func (client SensitivityLabelsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, schemaName string, tableName string, columnName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (SensitivityLabelsClient) DeleteResponder

func (client SensitivityLabelsClient) 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 (SensitivityLabelsClient) DeleteSender

func (client SensitivityLabelsClient) 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 (SensitivityLabelsClient) DisableRecommendation

func (client SensitivityLabelsClient) DisableRecommendation(ctx context.Context, resourceGroupName string, serverName string, databaseName string, schemaName string, tableName string, columnName string) (result autorest.Response, err error)

DisableRecommendation disables sensitivity recommendations on a given column 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. schemaName - the name of the schema. tableName - the name of the table. columnName - the name of the column.

func (SensitivityLabelsClient) DisableRecommendationPreparer

func (client SensitivityLabelsClient) DisableRecommendationPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, schemaName string, tableName string, columnName string) (*http.Request, error)

DisableRecommendationPreparer prepares the DisableRecommendation request.

func (SensitivityLabelsClient) DisableRecommendationResponder

func (client SensitivityLabelsClient) DisableRecommendationResponder(resp *http.Response) (result autorest.Response, err error)

DisableRecommendationResponder handles the response to the DisableRecommendation request. The method always closes the http.Response Body.

func (SensitivityLabelsClient) DisableRecommendationSender

func (client SensitivityLabelsClient) DisableRecommendationSender(req *http.Request) (*http.Response, error)

DisableRecommendationSender sends the DisableRecommendation request. The method will close the http.Response Body if it receives an error.

func (SensitivityLabelsClient) EnableRecommendation

func (client SensitivityLabelsClient) EnableRecommendation(ctx context.Context, resourceGroupName string, serverName string, databaseName string, schemaName string, tableName string, columnName string) (result autorest.Response, err error)

EnableRecommendation enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns) 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. schemaName - the name of the schema. tableName - the name of the table. columnName - the name of the column.

func (SensitivityLabelsClient) EnableRecommendationPreparer

func (client SensitivityLabelsClient) EnableRecommendationPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, schemaName string, tableName string, columnName string) (*http.Request, error)

EnableRecommendationPreparer prepares the EnableRecommendation request.

func (SensitivityLabelsClient) EnableRecommendationResponder

func (client SensitivityLabelsClient) EnableRecommendationResponder(resp *http.Response) (result autorest.Response, err error)

EnableRecommendationResponder handles the response to the EnableRecommendation request. The method always closes the http.Response Body.

func (SensitivityLabelsClient) EnableRecommendationSender

func (client SensitivityLabelsClient) EnableRecommendationSender(req *http.Request) (*http.Response, error)

EnableRecommendationSender sends the EnableRecommendation request. The method will close the http.Response Body if it receives an error.

func (SensitivityLabelsClient) Get

func (client SensitivityLabelsClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string, schemaName string, tableName string, columnName string, sensitivityLabelSource SensitivityLabelSource) (result SensitivityLabel, err error)

Get gets the sensitivity label of a given column 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. schemaName - the name of the schema. tableName - the name of the table. columnName - the name of the column. sensitivityLabelSource - the source of the sensitivity label.

func (SensitivityLabelsClient) GetPreparer

func (client SensitivityLabelsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, schemaName string, tableName string, columnName string, sensitivityLabelSource SensitivityLabelSource) (*http.Request, error)

GetPreparer prepares the Get request.

func (SensitivityLabelsClient) GetResponder

func (client SensitivityLabelsClient) GetResponder(resp *http.Response) (result SensitivityLabel, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (SensitivityLabelsClient) GetSender

func (client SensitivityLabelsClient) 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 (SensitivityLabelsClient) ListCurrentByDatabase

func (client SensitivityLabelsClient) ListCurrentByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string, filter string) (result SensitivityLabelListResultPage, err error)

ListCurrentByDatabase gets the sensitivity labels of a given 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. filter - an OData filter expression that filters elements in the collection.

func (SensitivityLabelsClient) ListCurrentByDatabaseComplete

func (client SensitivityLabelsClient) ListCurrentByDatabaseComplete(ctx context.Context, resourceGroupName string, serverName string, databaseName string, filter string) (result SensitivityLabelListResultIterator, err error)

ListCurrentByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.

func (SensitivityLabelsClient) ListCurrentByDatabasePreparer

func (client SensitivityLabelsClient) ListCurrentByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, filter string) (*http.Request, error)

ListCurrentByDatabasePreparer prepares the ListCurrentByDatabase request.

func (SensitivityLabelsClient) ListCurrentByDatabaseResponder

func (client SensitivityLabelsClient) ListCurrentByDatabaseResponder(resp *http.Response) (result SensitivityLabelListResult, err error)

ListCurrentByDatabaseResponder handles the response to the ListCurrentByDatabase request. The method always closes the http.Response Body.

func (SensitivityLabelsClient) ListCurrentByDatabaseSender

func (client SensitivityLabelsClient) ListCurrentByDatabaseSender(req *http.Request) (*http.Response, error)

ListCurrentByDatabaseSender sends the ListCurrentByDatabase request. The method will close the http.Response Body if it receives an error.

func (SensitivityLabelsClient) ListRecommendedByDatabase

func (client SensitivityLabelsClient) ListRecommendedByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string, includeDisabledRecommendations *bool, skipToken string, filter string) (result SensitivityLabelListResultPage, err error)

ListRecommendedByDatabase gets the sensitivity labels of a given 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. includeDisabledRecommendations - specifies whether to include disabled recommendations or not. filter - an OData filter expression that filters elements in the collection.

func (SensitivityLabelsClient) ListRecommendedByDatabaseComplete

func (client SensitivityLabelsClient) ListRecommendedByDatabaseComplete(ctx context.Context, resourceGroupName string, serverName string, databaseName string, includeDisabledRecommendations *bool, skipToken string, filter string) (result SensitivityLabelListResultIterator, err error)

ListRecommendedByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.

func (SensitivityLabelsClient) ListRecommendedByDatabasePreparer

func (client SensitivityLabelsClient) ListRecommendedByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, includeDisabledRecommendations *bool, skipToken string, filter string) (*http.Request, error)

ListRecommendedByDatabasePreparer prepares the ListRecommendedByDatabase request.

func (SensitivityLabelsClient) ListRecommendedByDatabaseResponder

func (client SensitivityLabelsClient) ListRecommendedByDatabaseResponder(resp *http.Response) (result SensitivityLabelListResult, err error)

ListRecommendedByDatabaseResponder handles the response to the ListRecommendedByDatabase request. The method always closes the http.Response Body.

func (SensitivityLabelsClient) ListRecommendedByDatabaseSender

func (client SensitivityLabelsClient) ListRecommendedByDatabaseSender(req *http.Request) (*http.Response, error)

ListRecommendedByDatabaseSender sends the ListRecommendedByDatabase request. The method will close the http.Response Body if it receives an error.

type Server

type Server struct {
	autorest.Response `json:"-"`
	// Identity - The Azure Active Directory identity of the server.
	Identity *ResourceIdentity `json:"identity,omitempty"`
	// Kind - READ-ONLY; Kind of sql server. This is metadata used for the Azure portal experience.
	Kind *string `json:"kind,omitempty"`
	// ServerProperties - Resource properties.
	*ServerProperties `json:"properties,omitempty"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

Server an Azure SQL Database server.

func (Server) MarshalJSON

func (s Server) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Server.

func (*Server) UnmarshalJSON

func (s *Server) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Server struct.

type ServerAdministratorListResult

type ServerAdministratorListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of server Active Directory Administrators for the server.
	Value *[]ServerAzureADAdministrator `json:"value,omitempty"`
}

ServerAdministratorListResult the response to a list Active Directory Administrators request.

type ServerAdministratorProperties

type ServerAdministratorProperties struct {
	// AdministratorType - The type of administrator.
	AdministratorType *string `json:"administratorType,omitempty"`
	// Login - The server administrator login value.
	Login *string `json:"login,omitempty"`
	// Sid - The server administrator Sid (Secure ID).
	Sid *uuid.UUID `json:"sid,omitempty"`
	// TenantID - The server Active Directory Administrator tenant id.
	TenantID *uuid.UUID `json:"tenantId,omitempty"`
}

ServerAdministratorProperties the properties of an server Administrator.

type ServerAutomaticTuning

type ServerAutomaticTuning struct {
	autorest.Response `json:"-"`
	// AutomaticTuningServerProperties - Resource properties.
	*AutomaticTuningServerProperties `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"`
}

ServerAutomaticTuning server-level Automatic Tuning.

func (ServerAutomaticTuning) MarshalJSON

func (sat ServerAutomaticTuning) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerAutomaticTuning.

func (*ServerAutomaticTuning) UnmarshalJSON

func (sat *ServerAutomaticTuning) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServerAutomaticTuning struct.

type ServerAutomaticTuningClient

type ServerAutomaticTuningClient struct {
	BaseClient
}

ServerAutomaticTuningClient 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 NewServerAutomaticTuningClient

func NewServerAutomaticTuningClient(subscriptionID string) ServerAutomaticTuningClient

NewServerAutomaticTuningClient creates an instance of the ServerAutomaticTuningClient client.

func NewServerAutomaticTuningClientWithBaseURI

func NewServerAutomaticTuningClientWithBaseURI(baseURI string, subscriptionID string) ServerAutomaticTuningClient

NewServerAutomaticTuningClientWithBaseURI creates an instance of the ServerAutomaticTuningClient client.

func (ServerAutomaticTuningClient) Get

func (client ServerAutomaticTuningClient) Get(ctx context.Context, resourceGroupName string, serverName string) (result ServerAutomaticTuning, err error)

Get retrieves server automatic tuning options. 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 (ServerAutomaticTuningClient) GetPreparer

func (client ServerAutomaticTuningClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ServerAutomaticTuningClient) GetResponder

func (client ServerAutomaticTuningClient) GetResponder(resp *http.Response) (result ServerAutomaticTuning, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ServerAutomaticTuningClient) GetSender

func (client ServerAutomaticTuningClient) 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 (ServerAutomaticTuningClient) Update

func (client ServerAutomaticTuningClient) Update(ctx context.Context, resourceGroupName string, serverName string, parameters ServerAutomaticTuning) (result ServerAutomaticTuning, err error)

Update update automatic tuning options on server. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. parameters - the requested automatic tuning resource state.

func (ServerAutomaticTuningClient) UpdatePreparer

func (client ServerAutomaticTuningClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters ServerAutomaticTuning) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ServerAutomaticTuningClient) UpdateResponder

func (client ServerAutomaticTuningClient) UpdateResponder(resp *http.Response) (result ServerAutomaticTuning, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ServerAutomaticTuningClient) UpdateSender

func (client ServerAutomaticTuningClient) 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 ServerAzureADAdministrator

type ServerAzureADAdministrator struct {
	autorest.Response `json:"-"`
	// ServerAdministratorProperties - The properties of the resource.
	*ServerAdministratorProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

ServerAzureADAdministrator an server Active Directory Administrator.

func (ServerAzureADAdministrator) MarshalJSON

func (saaa ServerAzureADAdministrator) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerAzureADAdministrator.

func (*ServerAzureADAdministrator) UnmarshalJSON

func (saaa *ServerAzureADAdministrator) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServerAzureADAdministrator struct.

type ServerAzureADAdministratorsClient

type ServerAzureADAdministratorsClient struct {
	BaseClient
}

ServerAzureADAdministratorsClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewServerAzureADAdministratorsClient

func NewServerAzureADAdministratorsClient(subscriptionID string) ServerAzureADAdministratorsClient

NewServerAzureADAdministratorsClient creates an instance of the ServerAzureADAdministratorsClient client.

func NewServerAzureADAdministratorsClientWithBaseURI

func NewServerAzureADAdministratorsClientWithBaseURI(baseURI string, subscriptionID string) ServerAzureADAdministratorsClient

NewServerAzureADAdministratorsClientWithBaseURI creates an instance of the ServerAzureADAdministratorsClient client.

func (ServerAzureADAdministratorsClient) CreateOrUpdate

func (client ServerAzureADAdministratorsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, properties ServerAzureADAdministrator) (result ServerAzureADAdministratorsCreateOrUpdateFuture, err error)

CreateOrUpdate creates a new Server Active Directory Administrator or updates an existing server Active Directory Administrator. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. properties - the required parameters for creating or updating an Active Directory Administrator.

func (ServerAzureADAdministratorsClient) CreateOrUpdatePreparer

func (client ServerAzureADAdministratorsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, properties ServerAzureADAdministrator) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ServerAzureADAdministratorsClient) CreateOrUpdateResponder

func (client ServerAzureADAdministratorsClient) CreateOrUpdateResponder(resp *http.Response) (result ServerAzureADAdministrator, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ServerAzureADAdministratorsClient) CreateOrUpdateSender

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ServerAzureADAdministratorsClient) Delete

func (client ServerAzureADAdministratorsClient) Delete(ctx context.Context, resourceGroupName string, serverName string) (result ServerAzureADAdministratorsDeleteFuture, err error)

Delete deletes an existing server Active Directory Administrator. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.

func (ServerAzureADAdministratorsClient) DeletePreparer

func (client ServerAzureADAdministratorsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ServerAzureADAdministratorsClient) DeleteResponder

func (client ServerAzureADAdministratorsClient) DeleteResponder(resp *http.Response) (result ServerAzureADAdministrator, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ServerAzureADAdministratorsClient) DeleteSender

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ServerAzureADAdministratorsClient) Get

func (client ServerAzureADAdministratorsClient) Get(ctx context.Context, resourceGroupName string, serverName string) (result ServerAzureADAdministrator, err error)

Get returns an server Administrator. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.

func (ServerAzureADAdministratorsClient) GetPreparer

func (client ServerAzureADAdministratorsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ServerAzureADAdministratorsClient) GetResponder

func (client ServerAzureADAdministratorsClient) GetResponder(resp *http.Response) (result ServerAzureADAdministrator, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ServerAzureADAdministratorsClient) GetSender

func (client ServerAzureADAdministratorsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ServerAzureADAdministratorsClient) ListByServer

func (client ServerAzureADAdministratorsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ServerAdministratorListResult, err error)

ListByServer returns a list of server Administrators. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.

func (ServerAzureADAdministratorsClient) ListByServerPreparer

func (client ServerAzureADAdministratorsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

ListByServerPreparer prepares the ListByServer request.

func (ServerAzureADAdministratorsClient) ListByServerResponder

func (client ServerAzureADAdministratorsClient) ListByServerResponder(resp *http.Response) (result ServerAdministratorListResult, err error)

ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.

func (ServerAzureADAdministratorsClient) ListByServerSender

func (client ServerAzureADAdministratorsClient) ListByServerSender(req *http.Request) (*http.Response, error)

ListByServerSender sends the ListByServer request. The method will close the http.Response Body if it receives an error.

type ServerAzureADAdministratorsCreateOrUpdateFuture

type ServerAzureADAdministratorsCreateOrUpdateFuture struct {
	azure.Future
}

ServerAzureADAdministratorsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ServerAzureADAdministratorsCreateOrUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ServerAzureADAdministratorsDeleteFuture

type ServerAzureADAdministratorsDeleteFuture struct {
	azure.Future
}

ServerAzureADAdministratorsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ServerAzureADAdministratorsDeleteFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ServerBlobAuditingPoliciesClient

type ServerBlobAuditingPoliciesClient struct {
	BaseClient
}

ServerBlobAuditingPoliciesClient 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 NewServerBlobAuditingPoliciesClient

func NewServerBlobAuditingPoliciesClient(subscriptionID string) ServerBlobAuditingPoliciesClient

NewServerBlobAuditingPoliciesClient creates an instance of the ServerBlobAuditingPoliciesClient client.

func NewServerBlobAuditingPoliciesClientWithBaseURI

func NewServerBlobAuditingPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ServerBlobAuditingPoliciesClient

NewServerBlobAuditingPoliciesClientWithBaseURI creates an instance of the ServerBlobAuditingPoliciesClient client.

func (ServerBlobAuditingPoliciesClient) CreateOrUpdate

func (client ServerBlobAuditingPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, parameters ServerBlobAuditingPolicy) (result ServerBlobAuditingPoliciesCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates a server'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. parameters - properties of blob auditing policy

func (ServerBlobAuditingPoliciesClient) CreateOrUpdatePreparer

func (client ServerBlobAuditingPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters ServerBlobAuditingPolicy) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ServerBlobAuditingPoliciesClient) CreateOrUpdateResponder

func (client ServerBlobAuditingPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result ServerBlobAuditingPolicy, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ServerBlobAuditingPoliciesClient) CreateOrUpdateSender

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ServerBlobAuditingPoliciesClient) Get

func (client ServerBlobAuditingPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string) (result ServerBlobAuditingPolicy, err error)

Get gets a server'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.

func (ServerBlobAuditingPoliciesClient) GetPreparer

func (client ServerBlobAuditingPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ServerBlobAuditingPoliciesClient) GetResponder

func (client ServerBlobAuditingPoliciesClient) GetResponder(resp *http.Response) (result ServerBlobAuditingPolicy, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ServerBlobAuditingPoliciesClient) GetSender

func (client ServerBlobAuditingPoliciesClient) 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 (ServerBlobAuditingPoliciesClient) ListByServer

func (client ServerBlobAuditingPoliciesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ServerBlobAuditingPolicyListResultPage, err error)

ListByServer lists auditing settings of 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 (ServerBlobAuditingPoliciesClient) ListByServerComplete

func (client ServerBlobAuditingPoliciesClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result ServerBlobAuditingPolicyListResultIterator, err error)

ListByServerComplete enumerates all values, automatically crossing page boundaries as required.

func (ServerBlobAuditingPoliciesClient) ListByServerPreparer

func (client ServerBlobAuditingPoliciesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

ListByServerPreparer prepares the ListByServer request.

func (ServerBlobAuditingPoliciesClient) ListByServerResponder

func (client ServerBlobAuditingPoliciesClient) ListByServerResponder(resp *http.Response) (result ServerBlobAuditingPolicyListResult, err error)

ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.

func (ServerBlobAuditingPoliciesClient) ListByServerSender

func (client ServerBlobAuditingPoliciesClient) 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 ServerBlobAuditingPoliciesCreateOrUpdateFuture

type ServerBlobAuditingPoliciesCreateOrUpdateFuture struct {
	azure.Future
}

ServerBlobAuditingPoliciesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ServerBlobAuditingPoliciesCreateOrUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ServerBlobAuditingPolicy

type ServerBlobAuditingPolicy struct {
	autorest.Response `json:"-"`
	// ServerBlobAuditingPolicyProperties - Resource properties.
	*ServerBlobAuditingPolicyProperties `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"`
}

ServerBlobAuditingPolicy a server blob auditing policy.

func (ServerBlobAuditingPolicy) MarshalJSON

func (sbap ServerBlobAuditingPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerBlobAuditingPolicy.

func (*ServerBlobAuditingPolicy) UnmarshalJSON

func (sbap *ServerBlobAuditingPolicy) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServerBlobAuditingPolicy struct.

type ServerBlobAuditingPolicyListResult

type ServerBlobAuditingPolicyListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]ServerBlobAuditingPolicy `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ServerBlobAuditingPolicyListResult a list of server auditing settings.

func (ServerBlobAuditingPolicyListResult) IsEmpty

func (sbaplr ServerBlobAuditingPolicyListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ServerBlobAuditingPolicyListResultIterator

type ServerBlobAuditingPolicyListResultIterator struct {
	// contains filtered or unexported fields
}

ServerBlobAuditingPolicyListResultIterator provides access to a complete listing of ServerBlobAuditingPolicy values.

func NewServerBlobAuditingPolicyListResultIterator

func NewServerBlobAuditingPolicyListResultIterator(page ServerBlobAuditingPolicyListResultPage) ServerBlobAuditingPolicyListResultIterator

Creates a new instance of the ServerBlobAuditingPolicyListResultIterator type.

func (*ServerBlobAuditingPolicyListResultIterator) Next

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 (*ServerBlobAuditingPolicyListResultIterator) NextWithContext

func (iter *ServerBlobAuditingPolicyListResultIterator) 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 (ServerBlobAuditingPolicyListResultIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (ServerBlobAuditingPolicyListResultIterator) Response

Response returns the raw server response from the last page request.

func (ServerBlobAuditingPolicyListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ServerBlobAuditingPolicyListResultPage

type ServerBlobAuditingPolicyListResultPage struct {
	// contains filtered or unexported fields
}

ServerBlobAuditingPolicyListResultPage contains a page of ServerBlobAuditingPolicy values.

func NewServerBlobAuditingPolicyListResultPage

Creates a new instance of the ServerBlobAuditingPolicyListResultPage type.

func (*ServerBlobAuditingPolicyListResultPage) Next

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 (*ServerBlobAuditingPolicyListResultPage) NextWithContext

func (page *ServerBlobAuditingPolicyListResultPage) 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 (ServerBlobAuditingPolicyListResultPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ServerBlobAuditingPolicyListResultPage) Response

Response returns the raw server response from the last page request.

func (ServerBlobAuditingPolicyListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type ServerBlobAuditingPolicyProperties

type ServerBlobAuditingPolicyProperties 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"`
}

ServerBlobAuditingPolicyProperties properties of a server blob auditing policy.

type ServerCommunicationLink struct {
	autorest.Response `json:"-"`
	// ServerCommunicationLinkProperties - The properties of resource.
	*ServerCommunicationLinkProperties `json:"properties,omitempty"`
	// Location - READ-ONLY; Communication link location.
	Location *string `json:"location,omitempty"`
	// Kind - READ-ONLY; Communication link kind.  This property is used for Azure Portal metadata.
	Kind *string `json:"kind,omitempty"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

ServerCommunicationLink server communication link.

func (ServerCommunicationLink) MarshalJSON

func (scl ServerCommunicationLink) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerCommunicationLink.

func (*ServerCommunicationLink) UnmarshalJSON

func (scl *ServerCommunicationLink) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServerCommunicationLink struct.

type ServerCommunicationLinkListResult

type ServerCommunicationLinkListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of server communication links.
	Value *[]ServerCommunicationLink `json:"value,omitempty"`
}

ServerCommunicationLinkListResult a list of server communication links.

type ServerCommunicationLinkProperties

type ServerCommunicationLinkProperties struct {
	// State - READ-ONLY; The state.
	State *string `json:"state,omitempty"`
	// PartnerServer - The name of the partner server.
	PartnerServer *string `json:"partnerServer,omitempty"`
}

ServerCommunicationLinkProperties the properties of a server communication link.

type ServerCommunicationLinksClient

type ServerCommunicationLinksClient struct {
	BaseClient
}

ServerCommunicationLinksClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewServerCommunicationLinksClient

func NewServerCommunicationLinksClient(subscriptionID string) ServerCommunicationLinksClient

NewServerCommunicationLinksClient creates an instance of the ServerCommunicationLinksClient client.

func NewServerCommunicationLinksClientWithBaseURI

func NewServerCommunicationLinksClientWithBaseURI(baseURI string, subscriptionID string) ServerCommunicationLinksClient

NewServerCommunicationLinksClientWithBaseURI creates an instance of the ServerCommunicationLinksClient client.

func (ServerCommunicationLinksClient) CreateOrUpdate

func (client ServerCommunicationLinksClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, communicationLinkName string, parameters ServerCommunicationLink) (result ServerCommunicationLinksCreateOrUpdateFuture, err error)

CreateOrUpdate creates a server communication link. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. communicationLinkName - the name of the server communication link. parameters - the required parameters for creating a server communication link.

func (ServerCommunicationLinksClient) CreateOrUpdatePreparer

func (client ServerCommunicationLinksClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, communicationLinkName string, parameters ServerCommunicationLink) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ServerCommunicationLinksClient) CreateOrUpdateResponder

func (client ServerCommunicationLinksClient) CreateOrUpdateResponder(resp *http.Response) (result ServerCommunicationLink, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ServerCommunicationLinksClient) CreateOrUpdateSender

func (client ServerCommunicationLinksClient) CreateOrUpdateSender(req *http.Request) (future ServerCommunicationLinksCreateOrUpdateFuture, err error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ServerCommunicationLinksClient) Delete

func (client ServerCommunicationLinksClient) Delete(ctx context.Context, resourceGroupName string, serverName string, communicationLinkName string) (result autorest.Response, err error)

Delete deletes a server communication link. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. communicationLinkName - the name of the server communication link.

func (ServerCommunicationLinksClient) DeletePreparer

func (client ServerCommunicationLinksClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, communicationLinkName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ServerCommunicationLinksClient) DeleteResponder

func (client ServerCommunicationLinksClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ServerCommunicationLinksClient) DeleteSender

func (client ServerCommunicationLinksClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ServerCommunicationLinksClient) Get

func (client ServerCommunicationLinksClient) Get(ctx context.Context, resourceGroupName string, serverName string, communicationLinkName string) (result ServerCommunicationLink, err error)

Get returns a server communication link. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. communicationLinkName - the name of the server communication link.

func (ServerCommunicationLinksClient) GetPreparer

func (client ServerCommunicationLinksClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, communicationLinkName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ServerCommunicationLinksClient) GetResponder

func (client ServerCommunicationLinksClient) GetResponder(resp *http.Response) (result ServerCommunicationLink, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ServerCommunicationLinksClient) GetSender

func (client ServerCommunicationLinksClient) 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 (ServerCommunicationLinksClient) ListByServer

func (client ServerCommunicationLinksClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ServerCommunicationLinkListResult, err error)

ListByServer gets a list of server communication links. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.

func (ServerCommunicationLinksClient) ListByServerPreparer

func (client ServerCommunicationLinksClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

ListByServerPreparer prepares the ListByServer request.

func (ServerCommunicationLinksClient) ListByServerResponder

func (client ServerCommunicationLinksClient) ListByServerResponder(resp *http.Response) (result ServerCommunicationLinkListResult, err error)

ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.

func (ServerCommunicationLinksClient) ListByServerSender

func (client ServerCommunicationLinksClient) ListByServerSender(req *http.Request) (*http.Response, error)

ListByServerSender sends the ListByServer request. The method will close the http.Response Body if it receives an error.

type ServerCommunicationLinksCreateOrUpdateFuture

type ServerCommunicationLinksCreateOrUpdateFuture struct {
	azure.Future
}

ServerCommunicationLinksCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ServerCommunicationLinksCreateOrUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ServerConnectionPoliciesClient

type ServerConnectionPoliciesClient struct {
	BaseClient
}

ServerConnectionPoliciesClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewServerConnectionPoliciesClient

func NewServerConnectionPoliciesClient(subscriptionID string) ServerConnectionPoliciesClient

NewServerConnectionPoliciesClient creates an instance of the ServerConnectionPoliciesClient client.

func NewServerConnectionPoliciesClientWithBaseURI

func NewServerConnectionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ServerConnectionPoliciesClient

NewServerConnectionPoliciesClientWithBaseURI creates an instance of the ServerConnectionPoliciesClient client.

func (ServerConnectionPoliciesClient) CreateOrUpdate

func (client ServerConnectionPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, parameters ServerConnectionPolicy) (result ServerConnectionPolicy, err error)

CreateOrUpdate creates or updates the server's connection policy. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. parameters - the required parameters for updating a secure connection policy.

func (ServerConnectionPoliciesClient) CreateOrUpdatePreparer

func (client ServerConnectionPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters ServerConnectionPolicy) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ServerConnectionPoliciesClient) CreateOrUpdateResponder

func (client ServerConnectionPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result ServerConnectionPolicy, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ServerConnectionPoliciesClient) CreateOrUpdateSender

func (client ServerConnectionPoliciesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ServerConnectionPoliciesClient) Get

func (client ServerConnectionPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string) (result ServerConnectionPolicy, err error)

Get gets the server's secure connection policy. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.

func (ServerConnectionPoliciesClient) GetPreparer

func (client ServerConnectionPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ServerConnectionPoliciesClient) GetResponder

func (client ServerConnectionPoliciesClient) GetResponder(resp *http.Response) (result ServerConnectionPolicy, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ServerConnectionPoliciesClient) GetSender

func (client ServerConnectionPoliciesClient) 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 ServerConnectionPolicy

type ServerConnectionPolicy struct {
	autorest.Response `json:"-"`
	// Kind - READ-ONLY; Metadata used for the Azure portal experience.
	Kind *string `json:"kind,omitempty"`
	// Location - READ-ONLY; Resource location.
	Location *string `json:"location,omitempty"`
	// ServerConnectionPolicyProperties - The properties of the server secure connection policy.
	*ServerConnectionPolicyProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

ServerConnectionPolicy a server secure connection policy.

func (ServerConnectionPolicy) MarshalJSON

func (scp ServerConnectionPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerConnectionPolicy.

func (*ServerConnectionPolicy) UnmarshalJSON

func (scp *ServerConnectionPolicy) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServerConnectionPolicy struct.

type ServerConnectionPolicyProperties

type ServerConnectionPolicyProperties struct {
	// ConnectionType - The server connection type. Possible values include: 'ServerConnectionTypeDefault', 'ServerConnectionTypeProxy', 'ServerConnectionTypeRedirect'
	ConnectionType ServerConnectionType `json:"connectionType,omitempty"`
}

ServerConnectionPolicyProperties the properties of a server secure connection policy.

type ServerConnectionType

type ServerConnectionType string

ServerConnectionType enumerates the values for server connection type.

const (
	// ServerConnectionTypeDefault ...
	ServerConnectionTypeDefault ServerConnectionType = "Default"
	// ServerConnectionTypeProxy ...
	ServerConnectionTypeProxy ServerConnectionType = "Proxy"
	// ServerConnectionTypeRedirect ...
	ServerConnectionTypeRedirect ServerConnectionType = "Redirect"
)

func PossibleServerConnectionTypeValues

func PossibleServerConnectionTypeValues() []ServerConnectionType

PossibleServerConnectionTypeValues returns an array of possible values for the ServerConnectionType const type.

type ServerDNSAlias

type ServerDNSAlias struct {
	autorest.Response `json:"-"`
	// ServerDNSAliasProperties - Resource properties.
	*ServerDNSAliasProperties `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"`
}

ServerDNSAlias a server DNS alias.

func (ServerDNSAlias) MarshalJSON

func (sda ServerDNSAlias) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerDNSAlias.

func (*ServerDNSAlias) UnmarshalJSON

func (sda *ServerDNSAlias) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServerDNSAlias struct.

type ServerDNSAliasAcquisition

type ServerDNSAliasAcquisition struct {
	// OldServerDNSAliasID - The id of the server alias that will be acquired to point to this server instead.
	OldServerDNSAliasID *string `json:"oldServerDnsAliasId,omitempty"`
}

ServerDNSAliasAcquisition a server DNS alias acquisition request.

type ServerDNSAliasListResult

type ServerDNSAliasListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]ServerDNSAlias `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ServerDNSAliasListResult a list of server DNS aliases.

func (ServerDNSAliasListResult) IsEmpty

func (sdalr ServerDNSAliasListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ServerDNSAliasListResultIterator

type ServerDNSAliasListResultIterator struct {
	// contains filtered or unexported fields
}

ServerDNSAliasListResultIterator provides access to a complete listing of ServerDNSAlias values.

func NewServerDNSAliasListResultIterator

func NewServerDNSAliasListResultIterator(page ServerDNSAliasListResultPage) ServerDNSAliasListResultIterator

Creates a new instance of the ServerDNSAliasListResultIterator type.

func (*ServerDNSAliasListResultIterator) Next

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 (*ServerDNSAliasListResultIterator) NextWithContext

func (iter *ServerDNSAliasListResultIterator) 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 (ServerDNSAliasListResultIterator) NotDone

func (iter ServerDNSAliasListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ServerDNSAliasListResultIterator) Response

Response returns the raw server response from the last page request.

func (ServerDNSAliasListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ServerDNSAliasListResultPage

type ServerDNSAliasListResultPage struct {
	// contains filtered or unexported fields
}

ServerDNSAliasListResultPage contains a page of ServerDNSAlias values.

func NewServerDNSAliasListResultPage

func NewServerDNSAliasListResultPage(getNextPage func(context.Context, ServerDNSAliasListResult) (ServerDNSAliasListResult, error)) ServerDNSAliasListResultPage

Creates a new instance of the ServerDNSAliasListResultPage type.

func (*ServerDNSAliasListResultPage) Next

func (page *ServerDNSAliasListResultPage) 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 (*ServerDNSAliasListResultPage) NextWithContext

func (page *ServerDNSAliasListResultPage) 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 (ServerDNSAliasListResultPage) NotDone

func (page ServerDNSAliasListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ServerDNSAliasListResultPage) Response

Response returns the raw server response from the last page request.

func (ServerDNSAliasListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type ServerDNSAliasProperties

type ServerDNSAliasProperties struct {
	// AzureDNSRecord - READ-ONLY; The fully qualified DNS record for alias
	AzureDNSRecord *string `json:"azureDnsRecord,omitempty"`
}

ServerDNSAliasProperties properties of a server DNS alias.

type ServerDNSAliasesAcquireFuture

type ServerDNSAliasesAcquireFuture struct {
	azure.Future
}

ServerDNSAliasesAcquireFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ServerDNSAliasesAcquireFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ServerDNSAliasesClient

type ServerDNSAliasesClient struct {
	BaseClient
}

ServerDNSAliasesClient 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 NewServerDNSAliasesClient

func NewServerDNSAliasesClient(subscriptionID string) ServerDNSAliasesClient

NewServerDNSAliasesClient creates an instance of the ServerDNSAliasesClient client.

func NewServerDNSAliasesClientWithBaseURI

func NewServerDNSAliasesClientWithBaseURI(baseURI string, subscriptionID string) ServerDNSAliasesClient

NewServerDNSAliasesClientWithBaseURI creates an instance of the ServerDNSAliasesClient client.

func (ServerDNSAliasesClient) Acquire

func (client ServerDNSAliasesClient) Acquire(ctx context.Context, resourceGroupName string, serverName string, DNSAliasName string, parameters ServerDNSAliasAcquisition) (result ServerDNSAliasesAcquireFuture, err error)

Acquire acquires server DNS alias from another 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 that the alias is pointing to. DNSAliasName - the name of the server dns alias.

func (ServerDNSAliasesClient) AcquirePreparer

func (client ServerDNSAliasesClient) AcquirePreparer(ctx context.Context, resourceGroupName string, serverName string, DNSAliasName string, parameters ServerDNSAliasAcquisition) (*http.Request, error)

AcquirePreparer prepares the Acquire request.

func (ServerDNSAliasesClient) AcquireResponder

func (client ServerDNSAliasesClient) AcquireResponder(resp *http.Response) (result autorest.Response, err error)

AcquireResponder handles the response to the Acquire request. The method always closes the http.Response Body.

func (ServerDNSAliasesClient) AcquireSender

func (client ServerDNSAliasesClient) AcquireSender(req *http.Request) (future ServerDNSAliasesAcquireFuture, err error)

AcquireSender sends the Acquire request. The method will close the http.Response Body if it receives an error.

func (ServerDNSAliasesClient) CreateOrUpdate

func (client ServerDNSAliasesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, DNSAliasName string) (result ServerDNSAliasesCreateOrUpdateFuture, err error)

CreateOrUpdate creates a server dns alias. 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 that the alias is pointing to. DNSAliasName - the name of the server DNS alias.

func (ServerDNSAliasesClient) CreateOrUpdatePreparer

func (client ServerDNSAliasesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, DNSAliasName string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ServerDNSAliasesClient) CreateOrUpdateResponder

func (client ServerDNSAliasesClient) CreateOrUpdateResponder(resp *http.Response) (result ServerDNSAlias, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ServerDNSAliasesClient) CreateOrUpdateSender

func (client ServerDNSAliasesClient) CreateOrUpdateSender(req *http.Request) (future ServerDNSAliasesCreateOrUpdateFuture, err error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ServerDNSAliasesClient) Delete

func (client ServerDNSAliasesClient) Delete(ctx context.Context, resourceGroupName string, serverName string, DNSAliasName string) (result ServerDNSAliasesDeleteFuture, err error)

Delete deletes the server DNS alias with the given name. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server that the alias is pointing to. DNSAliasName - the name of the server DNS alias.

func (ServerDNSAliasesClient) DeletePreparer

func (client ServerDNSAliasesClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, DNSAliasName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ServerDNSAliasesClient) DeleteResponder

func (client ServerDNSAliasesClient) 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 (ServerDNSAliasesClient) DeleteSender

func (client ServerDNSAliasesClient) DeleteSender(req *http.Request) (future ServerDNSAliasesDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ServerDNSAliasesClient) Get

func (client ServerDNSAliasesClient) Get(ctx context.Context, resourceGroupName string, serverName string, DNSAliasName string) (result ServerDNSAlias, err error)

Get gets a server DNS alias. 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 that the alias is pointing to. DNSAliasName - the name of the server DNS alias.

func (ServerDNSAliasesClient) GetPreparer

func (client ServerDNSAliasesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, DNSAliasName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ServerDNSAliasesClient) GetResponder

func (client ServerDNSAliasesClient) GetResponder(resp *http.Response) (result ServerDNSAlias, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ServerDNSAliasesClient) GetSender

func (client ServerDNSAliasesClient) 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 (ServerDNSAliasesClient) ListByServer

func (client ServerDNSAliasesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ServerDNSAliasListResultPage, err error)

ListByServer gets a list of server DNS aliases for 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 that the alias is pointing to.

func (ServerDNSAliasesClient) ListByServerComplete

func (client ServerDNSAliasesClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result ServerDNSAliasListResultIterator, err error)

ListByServerComplete enumerates all values, automatically crossing page boundaries as required.

func (ServerDNSAliasesClient) ListByServerPreparer

func (client ServerDNSAliasesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

ListByServerPreparer prepares the ListByServer request.

func (ServerDNSAliasesClient) ListByServerResponder

func (client ServerDNSAliasesClient) ListByServerResponder(resp *http.Response) (result ServerDNSAliasListResult, err error)

ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.

func (ServerDNSAliasesClient) ListByServerSender

func (client ServerDNSAliasesClient) 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 ServerDNSAliasesCreateOrUpdateFuture

type ServerDNSAliasesCreateOrUpdateFuture struct {
	azure.Future
}

ServerDNSAliasesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ServerDNSAliasesCreateOrUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ServerDNSAliasesDeleteFuture

type ServerDNSAliasesDeleteFuture struct {
	azure.Future
}

ServerDNSAliasesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ServerDNSAliasesDeleteFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ServerKey

type ServerKey struct {
	autorest.Response `json:"-"`
	// Kind - Kind of encryption protector. This is metadata used for the Azure portal experience.
	Kind *string `json:"kind,omitempty"`
	// Location - READ-ONLY; Resource location.
	Location *string `json:"location,omitempty"`
	// ServerKeyProperties - Resource properties.
	*ServerKeyProperties `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"`
}

ServerKey a server key.

func (ServerKey) MarshalJSON

func (sk ServerKey) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerKey.

func (*ServerKey) UnmarshalJSON

func (sk *ServerKey) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServerKey struct.

type ServerKeyListResult

type ServerKeyListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]ServerKey `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ServerKeyListResult a list of server keys.

func (ServerKeyListResult) IsEmpty

func (sklr ServerKeyListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ServerKeyListResultIterator

type ServerKeyListResultIterator struct {
	// contains filtered or unexported fields
}

ServerKeyListResultIterator provides access to a complete listing of ServerKey values.

func NewServerKeyListResultIterator

func NewServerKeyListResultIterator(page ServerKeyListResultPage) ServerKeyListResultIterator

Creates a new instance of the ServerKeyListResultIterator type.

func (*ServerKeyListResultIterator) Next

func (iter *ServerKeyListResultIterator) 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 (*ServerKeyListResultIterator) NextWithContext

func (iter *ServerKeyListResultIterator) 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 (ServerKeyListResultIterator) NotDone

func (iter ServerKeyListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ServerKeyListResultIterator) Response

Response returns the raw server response from the last page request.

func (ServerKeyListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ServerKeyListResultPage

type ServerKeyListResultPage struct {
	// contains filtered or unexported fields
}

ServerKeyListResultPage contains a page of ServerKey values.

func NewServerKeyListResultPage

func NewServerKeyListResultPage(getNextPage func(context.Context, ServerKeyListResult) (ServerKeyListResult, error)) ServerKeyListResultPage

Creates a new instance of the ServerKeyListResultPage type.

func (*ServerKeyListResultPage) Next

func (page *ServerKeyListResultPage) 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 (*ServerKeyListResultPage) NextWithContext

func (page *ServerKeyListResultPage) 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 (ServerKeyListResultPage) NotDone

func (page ServerKeyListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ServerKeyListResultPage) Response

Response returns the raw server response from the last page request.

func (ServerKeyListResultPage) Values

func (page ServerKeyListResultPage) Values() []ServerKey

Values returns the slice of values for the current page or nil if there are no values.

type ServerKeyProperties

type ServerKeyProperties struct {
	// Subregion - READ-ONLY; Subregion of the server key.
	Subregion *string `json:"subregion,omitempty"`
	// ServerKeyType - The server key type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: 'ServiceManaged', 'AzureKeyVault'
	ServerKeyType ServerKeyType `json:"serverKeyType,omitempty"`
	// URI - The URI of the server key.
	URI *string `json:"uri,omitempty"`
	// Thumbprint - Thumbprint of the server key.
	Thumbprint *string `json:"thumbprint,omitempty"`
	// CreationDate - The server key creation date.
	CreationDate *date.Time `json:"creationDate,omitempty"`
}

ServerKeyProperties properties for a server key execution.

type ServerKeyType

type ServerKeyType string

ServerKeyType enumerates the values for server key type.

const (
	// AzureKeyVault ...
	AzureKeyVault ServerKeyType = "AzureKeyVault"
	// ServiceManaged ...
	ServiceManaged ServerKeyType = "ServiceManaged"
)

func PossibleServerKeyTypeValues

func PossibleServerKeyTypeValues() []ServerKeyType

PossibleServerKeyTypeValues returns an array of possible values for the ServerKeyType const type.

type ServerKeysClient

type ServerKeysClient struct {
	BaseClient
}

ServerKeysClient 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 NewServerKeysClient

func NewServerKeysClient(subscriptionID string) ServerKeysClient

NewServerKeysClient creates an instance of the ServerKeysClient client.

func NewServerKeysClientWithBaseURI

func NewServerKeysClientWithBaseURI(baseURI string, subscriptionID string) ServerKeysClient

NewServerKeysClientWithBaseURI creates an instance of the ServerKeysClient client.

func (ServerKeysClient) CreateOrUpdate

func (client ServerKeysClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, keyName string, parameters ServerKey) (result ServerKeysCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates a server key. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. keyName - the name of the server key to be operated on (updated or created). The key name is required to be in the format of 'vault_key_version'. For example, if the keyId is https://YourVaultName.vault.azure.net/keys/YourKeyName/01234567890123456789012345678901, then the server key name should be formatted as: YourVaultName_YourKeyName_01234567890123456789012345678901 parameters - the requested server key resource state.

func (ServerKeysClient) CreateOrUpdatePreparer

func (client ServerKeysClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, keyName string, parameters ServerKey) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ServerKeysClient) CreateOrUpdateResponder

func (client ServerKeysClient) CreateOrUpdateResponder(resp *http.Response) (result ServerKey, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ServerKeysClient) CreateOrUpdateSender

func (client ServerKeysClient) CreateOrUpdateSender(req *http.Request) (future ServerKeysCreateOrUpdateFuture, err error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ServerKeysClient) Delete

func (client ServerKeysClient) Delete(ctx context.Context, resourceGroupName string, serverName string, keyName string) (result ServerKeysDeleteFuture, err error)

Delete deletes the server key with the given name. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. keyName - the name of the server key to be deleted.

func (ServerKeysClient) DeletePreparer

func (client ServerKeysClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, keyName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ServerKeysClient) DeleteResponder

func (client ServerKeysClient) 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 (ServerKeysClient) DeleteSender

func (client ServerKeysClient) DeleteSender(req *http.Request) (future ServerKeysDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ServerKeysClient) Get

func (client ServerKeysClient) Get(ctx context.Context, resourceGroupName string, serverName string, keyName string) (result ServerKey, err error)

Get gets a server key. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. keyName - the name of the server key to be retrieved.

func (ServerKeysClient) GetPreparer

func (client ServerKeysClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, keyName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ServerKeysClient) GetResponder

func (client ServerKeysClient) GetResponder(resp *http.Response) (result ServerKey, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ServerKeysClient) GetSender

func (client ServerKeysClient) 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 (ServerKeysClient) ListByServer

func (client ServerKeysClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ServerKeyListResultPage, err error)

ListByServer gets a list of server keys. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.

func (ServerKeysClient) ListByServerComplete

func (client ServerKeysClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result ServerKeyListResultIterator, err error)

ListByServerComplete enumerates all values, automatically crossing page boundaries as required.

func (ServerKeysClient) ListByServerPreparer

func (client ServerKeysClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

ListByServerPreparer prepares the ListByServer request.

func (ServerKeysClient) ListByServerResponder

func (client ServerKeysClient) ListByServerResponder(resp *http.Response) (result ServerKeyListResult, err error)

ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.

func (ServerKeysClient) ListByServerSender

func (client ServerKeysClient) 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 ServerKeysCreateOrUpdateFuture

type ServerKeysCreateOrUpdateFuture struct {
	azure.Future
}

ServerKeysCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ServerKeysCreateOrUpdateFuture) Result

func (future *ServerKeysCreateOrUpdateFuture) Result(client ServerKeysClient) (sk ServerKey, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ServerKeysDeleteFuture

type ServerKeysDeleteFuture struct {
	azure.Future
}

ServerKeysDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ServerKeysDeleteFuture) Result

func (future *ServerKeysDeleteFuture) Result(client ServerKeysClient) (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 ServerListResult

type ServerListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]Server `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ServerListResult a list of servers.

func (ServerListResult) IsEmpty

func (slr ServerListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ServerListResultIterator

type ServerListResultIterator struct {
	// contains filtered or unexported fields
}

ServerListResultIterator provides access to a complete listing of Server values.

func NewServerListResultIterator

func NewServerListResultIterator(page ServerListResultPage) ServerListResultIterator

Creates a new instance of the ServerListResultIterator type.

func (*ServerListResultIterator) Next

func (iter *ServerListResultIterator) 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 (*ServerListResultIterator) NextWithContext

func (iter *ServerListResultIterator) 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 (ServerListResultIterator) NotDone

func (iter ServerListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ServerListResultIterator) Response

Response returns the raw server response from the last page request.

func (ServerListResultIterator) Value

func (iter ServerListResultIterator) Value() Server

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ServerListResultPage

type ServerListResultPage struct {
	// contains filtered or unexported fields
}

ServerListResultPage contains a page of Server values.

func NewServerListResultPage

func NewServerListResultPage(getNextPage func(context.Context, ServerListResult) (ServerListResult, error)) ServerListResultPage

Creates a new instance of the ServerListResultPage type.

func (*ServerListResultPage) Next

func (page *ServerListResultPage) 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 (*ServerListResultPage) NextWithContext

func (page *ServerListResultPage) 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 (ServerListResultPage) NotDone

func (page ServerListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ServerListResultPage) Response

func (page ServerListResultPage) Response() ServerListResult

Response returns the raw server response from the last page request.

func (ServerListResultPage) Values

func (page ServerListResultPage) Values() []Server

Values returns the slice of values for the current page or nil if there are no values.

type ServerProperties

type ServerProperties struct {
	// AdministratorLogin - Administrator username for the server. Once created it cannot be changed.
	AdministratorLogin *string `json:"administratorLogin,omitempty"`
	// AdministratorLoginPassword - The administrator login password (required for server creation).
	AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"`
	// Version - The version of the server.
	Version *string `json:"version,omitempty"`
	// State - READ-ONLY; The state of the server.
	State *string `json:"state,omitempty"`
	// FullyQualifiedDomainName - READ-ONLY; The fully qualified domain name of the server.
	FullyQualifiedDomainName *string `json:"fullyQualifiedDomainName,omitempty"`
}

ServerProperties the properties of a server.

type ServerSecurityAlertPoliciesClient

type ServerSecurityAlertPoliciesClient struct {
	BaseClient
}

ServerSecurityAlertPoliciesClient 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 NewServerSecurityAlertPoliciesClient

func NewServerSecurityAlertPoliciesClient(subscriptionID string) ServerSecurityAlertPoliciesClient

NewServerSecurityAlertPoliciesClient creates an instance of the ServerSecurityAlertPoliciesClient client.

func NewServerSecurityAlertPoliciesClientWithBaseURI

func NewServerSecurityAlertPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ServerSecurityAlertPoliciesClient

NewServerSecurityAlertPoliciesClientWithBaseURI creates an instance of the ServerSecurityAlertPoliciesClient client.

func (ServerSecurityAlertPoliciesClient) CreateOrUpdate

func (client ServerSecurityAlertPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, parameters ServerSecurityAlertPolicy) (result ServerSecurityAlertPoliciesCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates a 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. parameters - the server security alert policy.

func (ServerSecurityAlertPoliciesClient) CreateOrUpdatePreparer

func (client ServerSecurityAlertPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters ServerSecurityAlertPolicy) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ServerSecurityAlertPoliciesClient) CreateOrUpdateResponder

func (client ServerSecurityAlertPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result ServerSecurityAlertPolicy, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ServerSecurityAlertPoliciesClient) CreateOrUpdateSender

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ServerSecurityAlertPoliciesClient) Get

func (client ServerSecurityAlertPoliciesClient) Get(ctx context.Context, resourceGroupName string, serverName string) (result ServerSecurityAlertPolicy, err error)

Get get a server's security alert policy. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.

func (ServerSecurityAlertPoliciesClient) GetPreparer

func (client ServerSecurityAlertPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ServerSecurityAlertPoliciesClient) GetResponder

func (client ServerSecurityAlertPoliciesClient) GetResponder(resp *http.Response) (result ServerSecurityAlertPolicy, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ServerSecurityAlertPoliciesClient) GetSender

func (client ServerSecurityAlertPoliciesClient) 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 (ServerSecurityAlertPoliciesClient) ListByServer

func (client ServerSecurityAlertPoliciesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result LogicalServerSecurityAlertPolicyListResultPage, err error)

ListByServer get the server's threat detection policies. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.

func (ServerSecurityAlertPoliciesClient) ListByServerComplete

func (client ServerSecurityAlertPoliciesClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result LogicalServerSecurityAlertPolicyListResultIterator, err error)

ListByServerComplete enumerates all values, automatically crossing page boundaries as required.

func (ServerSecurityAlertPoliciesClient) ListByServerPreparer

func (client ServerSecurityAlertPoliciesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

ListByServerPreparer prepares the ListByServer request.

func (ServerSecurityAlertPoliciesClient) ListByServerResponder

func (client ServerSecurityAlertPoliciesClient) ListByServerResponder(resp *http.Response) (result LogicalServerSecurityAlertPolicyListResult, err error)

ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.

func (ServerSecurityAlertPoliciesClient) ListByServerSender

func (client ServerSecurityAlertPoliciesClient) 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 ServerSecurityAlertPoliciesCreateOrUpdateFuture

type ServerSecurityAlertPoliciesCreateOrUpdateFuture struct {
	azure.Future
}

ServerSecurityAlertPoliciesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ServerSecurityAlertPoliciesCreateOrUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ServerSecurityAlertPolicy

type ServerSecurityAlertPolicy struct {
	autorest.Response `json:"-"`
	// SecurityAlertPolicyProperties - Resource properties.
	*SecurityAlertPolicyProperties `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"`
}

ServerSecurityAlertPolicy a server security alert policy.

func (ServerSecurityAlertPolicy) MarshalJSON

func (ssap ServerSecurityAlertPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerSecurityAlertPolicy.

func (*ServerSecurityAlertPolicy) UnmarshalJSON

func (ssap *ServerSecurityAlertPolicy) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServerSecurityAlertPolicy struct.

type ServerUpdate

type ServerUpdate struct {
	// ServerProperties - Resource properties.
	*ServerProperties `json:"properties,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
}

ServerUpdate an update request for an Azure SQL Database server.

func (ServerUpdate) MarshalJSON

func (su ServerUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerUpdate.

func (*ServerUpdate) UnmarshalJSON

func (su *ServerUpdate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServerUpdate struct.

type ServerUsage

type ServerUsage struct {
	// Name - READ-ONLY; Name of the server usage metric.
	Name *string `json:"name,omitempty"`
	// ResourceName - READ-ONLY; The name of the resource.
	ResourceName *string `json:"resourceName,omitempty"`
	// DisplayName - READ-ONLY; The metric display name.
	DisplayName *string `json:"displayName,omitempty"`
	// CurrentValue - READ-ONLY; The current value of the metric.
	CurrentValue *float64 `json:"currentValue,omitempty"`
	// Limit - READ-ONLY; The current limit of the metric.
	Limit *float64 `json:"limit,omitempty"`
	// Unit - READ-ONLY; The units of the metric.
	Unit *string `json:"unit,omitempty"`
	// NextResetTime - READ-ONLY; The next reset time for the metric (ISO8601 format).
	NextResetTime *date.Time `json:"nextResetTime,omitempty"`
}

ServerUsage represents server metrics.

type ServerUsageListResult

type ServerUsageListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of server metrics for the server.
	Value *[]ServerUsage `json:"value,omitempty"`
}

ServerUsageListResult represents the response to a list server metrics request.

type ServerUsagesClient

type ServerUsagesClient struct {
	BaseClient
}

ServerUsagesClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewServerUsagesClient

func NewServerUsagesClient(subscriptionID string) ServerUsagesClient

NewServerUsagesClient creates an instance of the ServerUsagesClient client.

func NewServerUsagesClientWithBaseURI

func NewServerUsagesClientWithBaseURI(baseURI string, subscriptionID string) ServerUsagesClient

NewServerUsagesClientWithBaseURI creates an instance of the ServerUsagesClient client.

func (ServerUsagesClient) ListByServer

func (client ServerUsagesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ServerUsageListResult, err error)

ListByServer returns server usages. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.

func (ServerUsagesClient) ListByServerPreparer

func (client ServerUsagesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

ListByServerPreparer prepares the ListByServer request.

func (ServerUsagesClient) ListByServerResponder

func (client ServerUsagesClient) ListByServerResponder(resp *http.Response) (result ServerUsageListResult, err error)

ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.

func (ServerUsagesClient) ListByServerSender

func (client ServerUsagesClient) 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 ServerVersionCapability

type ServerVersionCapability struct {
	// Name - READ-ONLY; The server version name.
	Name *string `json:"name,omitempty"`
	// SupportedEditions - READ-ONLY; The list of supported database editions.
	SupportedEditions *[]EditionCapability `json:"supportedEditions,omitempty"`
	// SupportedElasticPoolEditions - READ-ONLY; The list of supported elastic pool editions.
	SupportedElasticPoolEditions *[]ElasticPoolEditionCapability `json:"supportedElasticPoolEditions,omitempty"`
	// Status - READ-ONLY; The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled'
	Status CapabilityStatus `json:"status,omitempty"`
	// Reason - The reason for the capability not being available.
	Reason *string `json:"reason,omitempty"`
}

ServerVersionCapability the server capability

type ServerVulnerabilityAssessment

type ServerVulnerabilityAssessment struct {
	autorest.Response `json:"-"`
	// ServerVulnerabilityAssessmentProperties - Resource properties.
	*ServerVulnerabilityAssessmentProperties `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"`
}

ServerVulnerabilityAssessment a server vulnerability assessment.

func (ServerVulnerabilityAssessment) MarshalJSON

func (sva ServerVulnerabilityAssessment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerVulnerabilityAssessment.

func (*ServerVulnerabilityAssessment) UnmarshalJSON

func (sva *ServerVulnerabilityAssessment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServerVulnerabilityAssessment struct.

type ServerVulnerabilityAssessmentListResult

type ServerVulnerabilityAssessmentListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]ServerVulnerabilityAssessment `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ServerVulnerabilityAssessmentListResult a list of the server's vulnerability assessments.

func (ServerVulnerabilityAssessmentListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type ServerVulnerabilityAssessmentListResultIterator

type ServerVulnerabilityAssessmentListResultIterator struct {
	// contains filtered or unexported fields
}

ServerVulnerabilityAssessmentListResultIterator provides access to a complete listing of ServerVulnerabilityAssessment values.

func NewServerVulnerabilityAssessmentListResultIterator

func NewServerVulnerabilityAssessmentListResultIterator(page ServerVulnerabilityAssessmentListResultPage) ServerVulnerabilityAssessmentListResultIterator

Creates a new instance of the ServerVulnerabilityAssessmentListResultIterator type.

func (*ServerVulnerabilityAssessmentListResultIterator) Next

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 (*ServerVulnerabilityAssessmentListResultIterator) NextWithContext

func (iter *ServerVulnerabilityAssessmentListResultIterator) 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 (ServerVulnerabilityAssessmentListResultIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (ServerVulnerabilityAssessmentListResultIterator) Response

Response returns the raw server response from the last page request.

func (ServerVulnerabilityAssessmentListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ServerVulnerabilityAssessmentListResultPage

type ServerVulnerabilityAssessmentListResultPage struct {
	// contains filtered or unexported fields
}

ServerVulnerabilityAssessmentListResultPage contains a page of ServerVulnerabilityAssessment values.

func NewServerVulnerabilityAssessmentListResultPage

Creates a new instance of the ServerVulnerabilityAssessmentListResultPage type.

func (*ServerVulnerabilityAssessmentListResultPage) Next

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 (*ServerVulnerabilityAssessmentListResultPage) NextWithContext

func (page *ServerVulnerabilityAssessmentListResultPage) 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 (ServerVulnerabilityAssessmentListResultPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ServerVulnerabilityAssessmentListResultPage) Response

Response returns the raw server response from the last page request.

func (ServerVulnerabilityAssessmentListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type ServerVulnerabilityAssessmentProperties

type ServerVulnerabilityAssessmentProperties struct {
	// StorageContainerPath - A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
	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"`
}

ServerVulnerabilityAssessmentProperties properties of a server Vulnerability Assessment.

type ServerVulnerabilityAssessmentsClient

type ServerVulnerabilityAssessmentsClient struct {
	BaseClient
}

ServerVulnerabilityAssessmentsClient 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 NewServerVulnerabilityAssessmentsClient

func NewServerVulnerabilityAssessmentsClient(subscriptionID string) ServerVulnerabilityAssessmentsClient

NewServerVulnerabilityAssessmentsClient creates an instance of the ServerVulnerabilityAssessmentsClient client.

func NewServerVulnerabilityAssessmentsClientWithBaseURI

func NewServerVulnerabilityAssessmentsClientWithBaseURI(baseURI string, subscriptionID string) ServerVulnerabilityAssessmentsClient

NewServerVulnerabilityAssessmentsClientWithBaseURI creates an instance of the ServerVulnerabilityAssessmentsClient client.

func (ServerVulnerabilityAssessmentsClient) CreateOrUpdate

func (client ServerVulnerabilityAssessmentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, parameters ServerVulnerabilityAssessment) (result ServerVulnerabilityAssessment, err error)

CreateOrUpdate creates or updates the server'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 for which the vulnerability assessment is defined. parameters - the requested resource.

func (ServerVulnerabilityAssessmentsClient) CreateOrUpdatePreparer

func (client ServerVulnerabilityAssessmentsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters ServerVulnerabilityAssessment) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ServerVulnerabilityAssessmentsClient) CreateOrUpdateResponder

func (client ServerVulnerabilityAssessmentsClient) CreateOrUpdateResponder(resp *http.Response) (result ServerVulnerabilityAssessment, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ServerVulnerabilityAssessmentsClient) CreateOrUpdateSender

func (client ServerVulnerabilityAssessmentsClient) 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 (ServerVulnerabilityAssessmentsClient) Delete

func (client ServerVulnerabilityAssessmentsClient) Delete(ctx context.Context, resourceGroupName string, serverName string) (result autorest.Response, err error)

Delete removes the server'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 for which the vulnerability assessment is defined.

func (ServerVulnerabilityAssessmentsClient) DeletePreparer

func (client ServerVulnerabilityAssessmentsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ServerVulnerabilityAssessmentsClient) DeleteResponder

func (client ServerVulnerabilityAssessmentsClient) 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 (ServerVulnerabilityAssessmentsClient) DeleteSender

func (client ServerVulnerabilityAssessmentsClient) 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 (ServerVulnerabilityAssessmentsClient) Get

func (client ServerVulnerabilityAssessmentsClient) Get(ctx context.Context, resourceGroupName string, serverName string) (result ServerVulnerabilityAssessment, err error)

Get gets the server'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 for which the vulnerability assessment is defined.

func (ServerVulnerabilityAssessmentsClient) GetPreparer

func (client ServerVulnerabilityAssessmentsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ServerVulnerabilityAssessmentsClient) GetResponder

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ServerVulnerabilityAssessmentsClient) GetSender

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ServerVulnerabilityAssessmentsClient) ListByServer

func (client ServerVulnerabilityAssessmentsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ServerVulnerabilityAssessmentListResultPage, err error)

ListByServer lists the vulnerability assessment policies associated with 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 (ServerVulnerabilityAssessmentsClient) ListByServerComplete

func (client ServerVulnerabilityAssessmentsClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result ServerVulnerabilityAssessmentListResultIterator, err error)

ListByServerComplete enumerates all values, automatically crossing page boundaries as required.

func (ServerVulnerabilityAssessmentsClient) ListByServerPreparer

func (client ServerVulnerabilityAssessmentsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

ListByServerPreparer prepares the ListByServer request.

func (ServerVulnerabilityAssessmentsClient) ListByServerResponder

func (client ServerVulnerabilityAssessmentsClient) ListByServerResponder(resp *http.Response) (result ServerVulnerabilityAssessmentListResult, err error)

ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.

func (ServerVulnerabilityAssessmentsClient) ListByServerSender

func (client ServerVulnerabilityAssessmentsClient) 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 ServersClient

type ServersClient struct {
	BaseClient
}

ServersClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewServersClient

func NewServersClient(subscriptionID string) ServersClient

NewServersClient creates an instance of the ServersClient client.

func NewServersClientWithBaseURI

func NewServersClientWithBaseURI(baseURI string, subscriptionID string) ServersClient

NewServersClientWithBaseURI creates an instance of the ServersClient client.

func (ServersClient) CheckNameAvailability

func (client ServersClient) CheckNameAvailability(ctx context.Context, parameters CheckNameAvailabilityRequest) (result CheckNameAvailabilityResponse, err error)

CheckNameAvailability determines whether a resource can be created with the specified name. Parameters: parameters - the parameters to request for name availability.

func (ServersClient) CheckNameAvailabilityPreparer

func (client ServersClient) CheckNameAvailabilityPreparer(ctx context.Context, parameters CheckNameAvailabilityRequest) (*http.Request, error)

CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.

func (ServersClient) CheckNameAvailabilityResponder

func (client ServersClient) CheckNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityResponse, err error)

CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always closes the http.Response Body.

func (ServersClient) CheckNameAvailabilitySender

func (client ServersClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error)

CheckNameAvailabilitySender sends the CheckNameAvailability request. The method will close the http.Response Body if it receives an error.

func (ServersClient) CreateOrUpdate

func (client ServersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, parameters Server) (result ServersCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates 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. parameters - the requested server resource state.

func (ServersClient) CreateOrUpdatePreparer

func (client ServersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters Server) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ServersClient) CreateOrUpdateResponder

func (client ServersClient) CreateOrUpdateResponder(resp *http.Response) (result Server, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ServersClient) CreateOrUpdateSender

func (client ServersClient) CreateOrUpdateSender(req *http.Request) (future ServersCreateOrUpdateFuture, err error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ServersClient) Delete

func (client ServersClient) Delete(ctx context.Context, resourceGroupName string, serverName string) (result ServersDeleteFuture, err error)

Delete deletes a server. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.

func (ServersClient) DeletePreparer

func (client ServersClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ServersClient) DeleteResponder

func (client ServersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ServersClient) DeleteSender

func (client ServersClient) DeleteSender(req *http.Request) (future ServersDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ServersClient) Get

func (client ServersClient) Get(ctx context.Context, resourceGroupName string, serverName string) (result Server, err error)

Get gets a server. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.

func (ServersClient) GetPreparer

func (client ServersClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ServersClient) GetResponder

func (client ServersClient) GetResponder(resp *http.Response) (result Server, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ServersClient) GetSender

func (client ServersClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ServersClient) List

func (client ServersClient) List(ctx context.Context) (result ServerListResultPage, err error)

List gets a list of all servers in the subscription.

func (ServersClient) ListByResourceGroup

func (client ServersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ServerListResultPage, err error)

ListByResourceGroup gets a list of servers in a resource groups. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

func (ServersClient) ListByResourceGroupComplete

func (client ServersClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ServerListResultIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (ServersClient) ListByResourceGroupPreparer

func (client ServersClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ServersClient) ListByResourceGroupResponder

func (client ServersClient) ListByResourceGroupResponder(resp *http.Response) (result ServerListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (ServersClient) ListByResourceGroupSender

func (client ServersClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (ServersClient) ListComplete

func (client ServersClient) ListComplete(ctx context.Context) (result ServerListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (ServersClient) ListPreparer

func (client ServersClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (ServersClient) ListResponder

func (client ServersClient) ListResponder(resp *http.Response) (result ServerListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ServersClient) ListSender

func (client ServersClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (ServersClient) Update

func (client ServersClient) Update(ctx context.Context, resourceGroupName string, serverName string, parameters ServerUpdate) (result ServersUpdateFuture, err error)

Update updates 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. parameters - the requested server resource state.

func (ServersClient) UpdatePreparer

func (client ServersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters ServerUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ServersClient) UpdateResponder

func (client ServersClient) UpdateResponder(resp *http.Response) (result Server, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ServersClient) UpdateSender

func (client ServersClient) UpdateSender(req *http.Request) (future ServersUpdateFuture, err error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type ServersCreateOrUpdateFuture

type ServersCreateOrUpdateFuture struct {
	azure.Future
}

ServersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ServersCreateOrUpdateFuture) Result

func (future *ServersCreateOrUpdateFuture) Result(client ServersClient) (s Server, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ServersDeleteFuture

type ServersDeleteFuture struct {
	azure.Future
}

ServersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ServersDeleteFuture) Result

func (future *ServersDeleteFuture) Result(client ServersClient) (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 ServersUpdateFuture

type ServersUpdateFuture struct {
	azure.Future
}

ServersUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ServersUpdateFuture) Result

func (future *ServersUpdateFuture) Result(client ServersClient) (s Server, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ServiceObjective

type ServiceObjective struct {
	autorest.Response `json:"-"`
	// ServiceObjectiveProperties - Represents the properties of the resource.
	*ServiceObjectiveProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

ServiceObjective represents a database service objective.

func (ServiceObjective) MarshalJSON

func (so ServiceObjective) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServiceObjective.

func (*ServiceObjective) UnmarshalJSON

func (so *ServiceObjective) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServiceObjective struct.

type ServiceObjectiveCapability

type ServiceObjectiveCapability struct {
	// ID - READ-ONLY; The unique ID of the service objective.
	ID *uuid.UUID `json:"id,omitempty"`
	// Name - READ-ONLY; The service objective name.
	Name *string `json:"name,omitempty"`
	// SupportedMaxSizes - READ-ONLY; The list of supported maximum database sizes.
	SupportedMaxSizes *[]MaxSizeRangeCapability `json:"supportedMaxSizes,omitempty"`
	// PerformanceLevel - READ-ONLY; The performance level.
	PerformanceLevel *PerformanceLevelCapability `json:"performanceLevel,omitempty"`
	// Sku - READ-ONLY; The sku.
	Sku *Sku `json:"sku,omitempty"`
	// SupportedLicenseTypes - READ-ONLY; List of supported license types.
	SupportedLicenseTypes *[]LicenseTypeCapability `json:"supportedLicenseTypes,omitempty"`
	// IncludedMaxSize - READ-ONLY; The included (free) max size.
	IncludedMaxSize *MaxSizeCapability `json:"includedMaxSize,omitempty"`
	// Status - READ-ONLY; The status of the capability. Possible values include: 'CapabilityStatusVisible', 'CapabilityStatusAvailable', 'CapabilityStatusDefault', 'CapabilityStatusDisabled'
	Status CapabilityStatus `json:"status,omitempty"`
	// Reason - The reason for the capability not being available.
	Reason *string `json:"reason,omitempty"`
}

ServiceObjectiveCapability the service objectives capability.

type ServiceObjectiveListResult

type ServiceObjectiveListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of database service objectives.
	Value *[]ServiceObjective `json:"value,omitempty"`
}

ServiceObjectiveListResult represents the response to a get database service objectives request.

type ServiceObjectiveName

type ServiceObjectiveName string

ServiceObjectiveName enumerates the values for service objective name.

const (
	// ServiceObjectiveNameBasic ...
	ServiceObjectiveNameBasic ServiceObjectiveName = "Basic"
	// ServiceObjectiveNameDS100 ...
	ServiceObjectiveNameDS100 ServiceObjectiveName = "DS100"
	// ServiceObjectiveNameDS1000 ...
	ServiceObjectiveNameDS1000 ServiceObjectiveName = "DS1000"
	// ServiceObjectiveNameDS1200 ...
	ServiceObjectiveNameDS1200 ServiceObjectiveName = "DS1200"
	// ServiceObjectiveNameDS1500 ...
	ServiceObjectiveNameDS1500 ServiceObjectiveName = "DS1500"
	// ServiceObjectiveNameDS200 ...
	ServiceObjectiveNameDS200 ServiceObjectiveName = "DS200"
	// ServiceObjectiveNameDS2000 ...
	ServiceObjectiveNameDS2000 ServiceObjectiveName = "DS2000"
	// ServiceObjectiveNameDS300 ...
	ServiceObjectiveNameDS300 ServiceObjectiveName = "DS300"
	// ServiceObjectiveNameDS400 ...
	ServiceObjectiveNameDS400 ServiceObjectiveName = "DS400"
	// ServiceObjectiveNameDS500 ...
	ServiceObjectiveNameDS500 ServiceObjectiveName = "DS500"
	// ServiceObjectiveNameDS600 ...
	ServiceObjectiveNameDS600 ServiceObjectiveName = "DS600"
	// ServiceObjectiveNameDW100 ...
	ServiceObjectiveNameDW100 ServiceObjectiveName = "DW100"
	// ServiceObjectiveNameDW1000 ...
	ServiceObjectiveNameDW1000 ServiceObjectiveName = "DW1000"
	// ServiceObjectiveNameDW10000c ...
	ServiceObjectiveNameDW10000c ServiceObjectiveName = "DW10000c"
	// ServiceObjectiveNameDW1000c ...
	ServiceObjectiveNameDW1000c ServiceObjectiveName = "DW1000c"
	// ServiceObjectiveNameDW1200 ...
	ServiceObjectiveNameDW1200 ServiceObjectiveName = "DW1200"
	// ServiceObjectiveNameDW1500 ...
	ServiceObjectiveNameDW1500 ServiceObjectiveName = "DW1500"
	// ServiceObjectiveNameDW15000c ...
	ServiceObjectiveNameDW15000c ServiceObjectiveName = "DW15000c"
	// ServiceObjectiveNameDW1500c ...
	ServiceObjectiveNameDW1500c ServiceObjectiveName = "DW1500c"
	// ServiceObjectiveNameDW200 ...
	ServiceObjectiveNameDW200 ServiceObjectiveName = "DW200"
	// ServiceObjectiveNameDW2000 ...
	ServiceObjectiveNameDW2000 ServiceObjectiveName = "DW2000"
	// ServiceObjectiveNameDW2000c ...
	ServiceObjectiveNameDW2000c ServiceObjectiveName = "DW2000c"
	// ServiceObjectiveNameDW2500c ...
	ServiceObjectiveNameDW2500c ServiceObjectiveName = "DW2500c"
	// ServiceObjectiveNameDW300 ...
	ServiceObjectiveNameDW300 ServiceObjectiveName = "DW300"
	// ServiceObjectiveNameDW3000 ...
	ServiceObjectiveNameDW3000 ServiceObjectiveName = "DW3000"
	// ServiceObjectiveNameDW30000c ...
	ServiceObjectiveNameDW30000c ServiceObjectiveName = "DW30000c"
	// ServiceObjectiveNameDW3000c ...
	ServiceObjectiveNameDW3000c ServiceObjectiveName = "DW3000c"
	// ServiceObjectiveNameDW400 ...
	ServiceObjectiveNameDW400 ServiceObjectiveName = "DW400"
	// ServiceObjectiveNameDW500 ...
	ServiceObjectiveNameDW500 ServiceObjectiveName = "DW500"
	// ServiceObjectiveNameDW5000c ...
	ServiceObjectiveNameDW5000c ServiceObjectiveName = "DW5000c"
	// ServiceObjectiveNameDW600 ...
	ServiceObjectiveNameDW600 ServiceObjectiveName = "DW600"
	// ServiceObjectiveNameDW6000 ...
	ServiceObjectiveNameDW6000 ServiceObjectiveName = "DW6000"
	// ServiceObjectiveNameDW6000c ...
	ServiceObjectiveNameDW6000c ServiceObjectiveName = "DW6000c"
	// ServiceObjectiveNameDW7500c ...
	ServiceObjectiveNameDW7500c ServiceObjectiveName = "DW7500c"
	// ServiceObjectiveNameElasticPool ...
	ServiceObjectiveNameElasticPool ServiceObjectiveName = "ElasticPool"
	// ServiceObjectiveNameFree ...
	ServiceObjectiveNameFree ServiceObjectiveName = "Free"
	// ServiceObjectiveNameP1 ...
	ServiceObjectiveNameP1 ServiceObjectiveName = "P1"
	// ServiceObjectiveNameP11 ...
	ServiceObjectiveNameP11 ServiceObjectiveName = "P11"
	// ServiceObjectiveNameP15 ...
	ServiceObjectiveNameP15 ServiceObjectiveName = "P15"
	// ServiceObjectiveNameP2 ...
	ServiceObjectiveNameP2 ServiceObjectiveName = "P2"
	// ServiceObjectiveNameP3 ...
	ServiceObjectiveNameP3 ServiceObjectiveName = "P3"
	// ServiceObjectiveNameP4 ...
	ServiceObjectiveNameP4 ServiceObjectiveName = "P4"
	// ServiceObjectiveNameP6 ...
	ServiceObjectiveNameP6 ServiceObjectiveName = "P6"
	// ServiceObjectiveNamePRS1 ...
	ServiceObjectiveNamePRS1 ServiceObjectiveName = "PRS1"
	// ServiceObjectiveNamePRS2 ...
	ServiceObjectiveNamePRS2 ServiceObjectiveName = "PRS2"
	// ServiceObjectiveNamePRS4 ...
	ServiceObjectiveNamePRS4 ServiceObjectiveName = "PRS4"
	// ServiceObjectiveNamePRS6 ...
	ServiceObjectiveNamePRS6 ServiceObjectiveName = "PRS6"
	// ServiceObjectiveNameS0 ...
	ServiceObjectiveNameS0 ServiceObjectiveName = "S0"
	// ServiceObjectiveNameS1 ...
	ServiceObjectiveNameS1 ServiceObjectiveName = "S1"
	// ServiceObjectiveNameS12 ...
	ServiceObjectiveNameS12 ServiceObjectiveName = "S12"
	// ServiceObjectiveNameS2 ...
	ServiceObjectiveNameS2 ServiceObjectiveName = "S2"
	// ServiceObjectiveNameS3 ...
	ServiceObjectiveNameS3 ServiceObjectiveName = "S3"
	// ServiceObjectiveNameS4 ...
	ServiceObjectiveNameS4 ServiceObjectiveName = "S4"
	// ServiceObjectiveNameS6 ...
	ServiceObjectiveNameS6 ServiceObjectiveName = "S6"
	// ServiceObjectiveNameS7 ...
	ServiceObjectiveNameS7 ServiceObjectiveName = "S7"
	// ServiceObjectiveNameS9 ...
	ServiceObjectiveNameS9 ServiceObjectiveName = "S9"
	// ServiceObjectiveNameSystem ...
	ServiceObjectiveNameSystem ServiceObjectiveName = "System"
	// ServiceObjectiveNameSystem0 ...
	ServiceObjectiveNameSystem0 ServiceObjectiveName = "System0"
	// ServiceObjectiveNameSystem1 ...
	ServiceObjectiveNameSystem1 ServiceObjectiveName = "System1"
	// ServiceObjectiveNameSystem2 ...
	ServiceObjectiveNameSystem2 ServiceObjectiveName = "System2"
	// ServiceObjectiveNameSystem2L ...
	ServiceObjectiveNameSystem2L ServiceObjectiveName = "System2L"
	// ServiceObjectiveNameSystem3 ...
	ServiceObjectiveNameSystem3 ServiceObjectiveName = "System3"
	// ServiceObjectiveNameSystem3L ...
	ServiceObjectiveNameSystem3L ServiceObjectiveName = "System3L"
	// ServiceObjectiveNameSystem4 ...
	ServiceObjectiveNameSystem4 ServiceObjectiveName = "System4"
	// ServiceObjectiveNameSystem4L ...
	ServiceObjectiveNameSystem4L ServiceObjectiveName = "System4L"
)

func PossibleServiceObjectiveNameValues

func PossibleServiceObjectiveNameValues() []ServiceObjectiveName

PossibleServiceObjectiveNameValues returns an array of possible values for the ServiceObjectiveName const type.

type ServiceObjectiveProperties

type ServiceObjectiveProperties struct {
	// ServiceObjectiveName - READ-ONLY; The name for the service objective.
	ServiceObjectiveName *string `json:"serviceObjectiveName,omitempty"`
	// IsDefault - READ-ONLY; Gets whether the service level objective is the default service objective.
	IsDefault *bool `json:"isDefault,omitempty"`
	// IsSystem - READ-ONLY; Gets whether the service level objective is a system service objective.
	IsSystem *bool `json:"isSystem,omitempty"`
	// Description - READ-ONLY; The description for the service level objective.
	Description *string `json:"description,omitempty"`
	// Enabled - READ-ONLY; Gets whether the service level objective is enabled.
	Enabled *bool `json:"enabled,omitempty"`
}

ServiceObjectiveProperties represents the properties of a database service objective.

type ServiceObjectivesClient

type ServiceObjectivesClient struct {
	BaseClient
}

ServiceObjectivesClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewServiceObjectivesClient

func NewServiceObjectivesClient(subscriptionID string) ServiceObjectivesClient

NewServiceObjectivesClient creates an instance of the ServiceObjectivesClient client.

func NewServiceObjectivesClientWithBaseURI

func NewServiceObjectivesClientWithBaseURI(baseURI string, subscriptionID string) ServiceObjectivesClient

NewServiceObjectivesClientWithBaseURI creates an instance of the ServiceObjectivesClient client.

func (ServiceObjectivesClient) Get

func (client ServiceObjectivesClient) Get(ctx context.Context, resourceGroupName string, serverName string, serviceObjectiveName string) (result ServiceObjective, err error)

Get gets a database service objective. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. serviceObjectiveName - the name of the service objective to retrieve.

func (ServiceObjectivesClient) GetPreparer

func (client ServiceObjectivesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, serviceObjectiveName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ServiceObjectivesClient) GetResponder

func (client ServiceObjectivesClient) GetResponder(resp *http.Response) (result ServiceObjective, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ServiceObjectivesClient) GetSender

func (client ServiceObjectivesClient) 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 (ServiceObjectivesClient) ListByServer

func (client ServiceObjectivesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ServiceObjectiveListResult, err error)

ListByServer returns database service objectives. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.

func (ServiceObjectivesClient) ListByServerPreparer

func (client ServiceObjectivesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

ListByServerPreparer prepares the ListByServer request.

func (ServiceObjectivesClient) ListByServerResponder

func (client ServiceObjectivesClient) ListByServerResponder(resp *http.Response) (result ServiceObjectiveListResult, err error)

ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.

func (ServiceObjectivesClient) ListByServerSender

func (client ServiceObjectivesClient) 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 ServiceTierAdvisor

type ServiceTierAdvisor struct {
	autorest.Response `json:"-"`
	// ServiceTierAdvisorProperties - READ-ONLY; The properties representing the resource.
	*ServiceTierAdvisorProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

ServiceTierAdvisor represents a Service Tier Advisor.

func (ServiceTierAdvisor) MarshalJSON

func (sta ServiceTierAdvisor) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServiceTierAdvisor.

func (*ServiceTierAdvisor) UnmarshalJSON

func (sta *ServiceTierAdvisor) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServiceTierAdvisor struct.

type ServiceTierAdvisorListResult

type ServiceTierAdvisorListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of service tier advisors for specified database.
	Value *[]ServiceTierAdvisor `json:"value,omitempty"`
}

ServiceTierAdvisorListResult represents the response to a list service tier advisor request.

type ServiceTierAdvisorProperties

type ServiceTierAdvisorProperties struct {
	// ObservationPeriodStart - READ-ONLY; The observation period start (ISO8601 format).
	ObservationPeriodStart *date.Time `json:"observationPeriodStart,omitempty"`
	// ObservationPeriodEnd - READ-ONLY; The observation period start (ISO8601 format).
	ObservationPeriodEnd *date.Time `json:"observationPeriodEnd,omitempty"`
	// ActiveTimeRatio - READ-ONLY; The activeTimeRatio for service tier advisor.
	ActiveTimeRatio *float64 `json:"activeTimeRatio,omitempty"`
	// MinDtu - READ-ONLY; Gets or sets minDtu for service tier advisor.
	MinDtu *float64 `json:"minDtu,omitempty"`
	// AvgDtu - READ-ONLY; Gets or sets avgDtu for service tier advisor.
	AvgDtu *float64 `json:"avgDtu,omitempty"`
	// MaxDtu - READ-ONLY; Gets or sets maxDtu for service tier advisor.
	MaxDtu *float64 `json:"maxDtu,omitempty"`
	// MaxSizeInGB - READ-ONLY; Gets or sets maxSizeInGB for service tier advisor.
	MaxSizeInGB *float64 `json:"maxSizeInGB,omitempty"`
	// ServiceLevelObjectiveUsageMetrics - READ-ONLY; Gets or sets serviceLevelObjectiveUsageMetrics for the service tier advisor.
	ServiceLevelObjectiveUsageMetrics *[]SloUsageMetric `json:"serviceLevelObjectiveUsageMetrics,omitempty"`
	// CurrentServiceLevelObjective - READ-ONLY; Gets or sets currentServiceLevelObjective for service tier advisor.
	CurrentServiceLevelObjective *string `json:"currentServiceLevelObjective,omitempty"`
	// CurrentServiceLevelObjectiveID - READ-ONLY; Gets or sets currentServiceLevelObjectiveId for service tier advisor.
	CurrentServiceLevelObjectiveID *uuid.UUID `json:"currentServiceLevelObjectiveId,omitempty"`
	// UsageBasedRecommendationServiceLevelObjective - READ-ONLY; Gets or sets usageBasedRecommendationServiceLevelObjective for service tier advisor.
	UsageBasedRecommendationServiceLevelObjective *string `json:"usageBasedRecommendationServiceLevelObjective,omitempty"`
	// UsageBasedRecommendationServiceLevelObjectiveID - READ-ONLY; Gets or sets usageBasedRecommendationServiceLevelObjectiveId for service tier advisor.
	UsageBasedRecommendationServiceLevelObjectiveID *uuid.UUID `json:"usageBasedRecommendationServiceLevelObjectiveId,omitempty"`
	// DatabaseSizeBasedRecommendationServiceLevelObjective - READ-ONLY; Gets or sets databaseSizeBasedRecommendationServiceLevelObjective for service tier advisor.
	DatabaseSizeBasedRecommendationServiceLevelObjective *string `json:"databaseSizeBasedRecommendationServiceLevelObjective,omitempty"`
	// DatabaseSizeBasedRecommendationServiceLevelObjectiveID - READ-ONLY; Gets or sets databaseSizeBasedRecommendationServiceLevelObjectiveId for service tier advisor.
	DatabaseSizeBasedRecommendationServiceLevelObjectiveID *uuid.UUID `json:"databaseSizeBasedRecommendationServiceLevelObjectiveId,omitempty"`
	// DisasterPlanBasedRecommendationServiceLevelObjective - READ-ONLY; Gets or sets disasterPlanBasedRecommendationServiceLevelObjective for service tier advisor.
	DisasterPlanBasedRecommendationServiceLevelObjective *string `json:"disasterPlanBasedRecommendationServiceLevelObjective,omitempty"`
	// DisasterPlanBasedRecommendationServiceLevelObjectiveID - READ-ONLY; Gets or sets disasterPlanBasedRecommendationServiceLevelObjectiveId for service tier advisor.
	DisasterPlanBasedRecommendationServiceLevelObjectiveID *uuid.UUID `json:"disasterPlanBasedRecommendationServiceLevelObjectiveId,omitempty"`
	// OverallRecommendationServiceLevelObjective - READ-ONLY; Gets or sets overallRecommendationServiceLevelObjective for service tier advisor.
	OverallRecommendationServiceLevelObjective *string `json:"overallRecommendationServiceLevelObjective,omitempty"`
	// OverallRecommendationServiceLevelObjectiveID - READ-ONLY; Gets or sets overallRecommendationServiceLevelObjectiveId for service tier advisor.
	OverallRecommendationServiceLevelObjectiveID *uuid.UUID `json:"overallRecommendationServiceLevelObjectiveId,omitempty"`
	// Confidence - READ-ONLY; Gets or sets confidence for service tier advisor.
	Confidence *float64 `json:"confidence,omitempty"`
}

ServiceTierAdvisorProperties represents the properties of a Service Tier Advisor.

type ServiceTierAdvisorsClient

type ServiceTierAdvisorsClient struct {
	BaseClient
}

ServiceTierAdvisorsClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewServiceTierAdvisorsClient

func NewServiceTierAdvisorsClient(subscriptionID string) ServiceTierAdvisorsClient

NewServiceTierAdvisorsClient creates an instance of the ServiceTierAdvisorsClient client.

func NewServiceTierAdvisorsClientWithBaseURI

func NewServiceTierAdvisorsClientWithBaseURI(baseURI string, subscriptionID string) ServiceTierAdvisorsClient

NewServiceTierAdvisorsClientWithBaseURI creates an instance of the ServiceTierAdvisorsClient client.

func (ServiceTierAdvisorsClient) Get

func (client ServiceTierAdvisorsClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string, serviceTierAdvisorName string) (result ServiceTierAdvisor, err error)

Get gets a service tier advisor. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of database. serviceTierAdvisorName - the name of service tier advisor.

func (ServiceTierAdvisorsClient) GetPreparer

func (client ServiceTierAdvisorsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, serviceTierAdvisorName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ServiceTierAdvisorsClient) GetResponder

func (client ServiceTierAdvisorsClient) GetResponder(resp *http.Response) (result ServiceTierAdvisor, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ServiceTierAdvisorsClient) GetSender

func (client ServiceTierAdvisorsClient) 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 (ServiceTierAdvisorsClient) ListByDatabase

func (client ServiceTierAdvisorsClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result ServiceTierAdvisorListResult, err error)

ListByDatabase returns service tier advisors for specified database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of database.

func (ServiceTierAdvisorsClient) ListByDatabasePreparer

func (client ServiceTierAdvisorsClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

ListByDatabasePreparer prepares the ListByDatabase request.

func (ServiceTierAdvisorsClient) ListByDatabaseResponder

func (client ServiceTierAdvisorsClient) ListByDatabaseResponder(resp *http.Response) (result ServiceTierAdvisorListResult, err error)

ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.

func (ServiceTierAdvisorsClient) ListByDatabaseSender

func (client ServiceTierAdvisorsClient) ListByDatabaseSender(req *http.Request) (*http.Response, error)

ListByDatabaseSender sends the ListByDatabase request. The method will close the http.Response Body if it receives an error.

type Sku

type Sku struct {
	// Name - The name of the SKU, typically, a letter + Number code, e.g. P3.
	Name *string `json:"name,omitempty"`
	// Tier - The tier or edition of the particular SKU, e.g. Basic, Premium.
	Tier *string `json:"tier,omitempty"`
	// Size - Size of the particular SKU
	Size *string `json:"size,omitempty"`
	// Family - If the service has different generations of hardware, for the same SKU, then that can be captured here.
	Family *string `json:"family,omitempty"`
	// Capacity - Capacity of the particular SKU.
	Capacity *int32 `json:"capacity,omitempty"`
}

Sku an ARM Resource SKU.

type SloUsageMetric

type SloUsageMetric struct {
	// ServiceLevelObjective - READ-ONLY; The serviceLevelObjective for SLO usage metric. Possible values include: 'ServiceObjectiveNameSystem', 'ServiceObjectiveNameSystem0', 'ServiceObjectiveNameSystem1', 'ServiceObjectiveNameSystem2', 'ServiceObjectiveNameSystem3', 'ServiceObjectiveNameSystem4', 'ServiceObjectiveNameSystem2L', 'ServiceObjectiveNameSystem3L', 'ServiceObjectiveNameSystem4L', 'ServiceObjectiveNameFree', 'ServiceObjectiveNameBasic', 'ServiceObjectiveNameS0', 'ServiceObjectiveNameS1', 'ServiceObjectiveNameS2', 'ServiceObjectiveNameS3', 'ServiceObjectiveNameS4', 'ServiceObjectiveNameS6', 'ServiceObjectiveNameS7', 'ServiceObjectiveNameS9', 'ServiceObjectiveNameS12', 'ServiceObjectiveNameP1', 'ServiceObjectiveNameP2', 'ServiceObjectiveNameP3', 'ServiceObjectiveNameP4', 'ServiceObjectiveNameP6', 'ServiceObjectiveNameP11', 'ServiceObjectiveNameP15', 'ServiceObjectiveNamePRS1', 'ServiceObjectiveNamePRS2', 'ServiceObjectiveNamePRS4', 'ServiceObjectiveNamePRS6', 'ServiceObjectiveNameDW100', 'ServiceObjectiveNameDW200', 'ServiceObjectiveNameDW300', 'ServiceObjectiveNameDW400', 'ServiceObjectiveNameDW500', 'ServiceObjectiveNameDW600', 'ServiceObjectiveNameDW1000', 'ServiceObjectiveNameDW1200', 'ServiceObjectiveNameDW1000c', 'ServiceObjectiveNameDW1500', 'ServiceObjectiveNameDW1500c', 'ServiceObjectiveNameDW2000', 'ServiceObjectiveNameDW2000c', 'ServiceObjectiveNameDW3000', 'ServiceObjectiveNameDW2500c', 'ServiceObjectiveNameDW3000c', 'ServiceObjectiveNameDW6000', 'ServiceObjectiveNameDW5000c', 'ServiceObjectiveNameDW6000c', 'ServiceObjectiveNameDW7500c', 'ServiceObjectiveNameDW10000c', 'ServiceObjectiveNameDW15000c', 'ServiceObjectiveNameDW30000c', 'ServiceObjectiveNameDS100', 'ServiceObjectiveNameDS200', 'ServiceObjectiveNameDS300', 'ServiceObjectiveNameDS400', 'ServiceObjectiveNameDS500', 'ServiceObjectiveNameDS600', 'ServiceObjectiveNameDS1000', 'ServiceObjectiveNameDS1200', 'ServiceObjectiveNameDS1500', 'ServiceObjectiveNameDS2000', 'ServiceObjectiveNameElasticPool'
	ServiceLevelObjective ServiceObjectiveName `json:"serviceLevelObjective,omitempty"`
	// ServiceLevelObjectiveID - READ-ONLY; The serviceLevelObjectiveId for SLO usage metric.
	ServiceLevelObjectiveID *uuid.UUID `json:"serviceLevelObjectiveId,omitempty"`
	// InRangeTimeRatio - READ-ONLY; Gets or sets inRangeTimeRatio for SLO usage metric.
	InRangeTimeRatio *float64 `json:"inRangeTimeRatio,omitempty"`
}

SloUsageMetric a Slo Usage Metric.

type StorageKeyType

type StorageKeyType string

StorageKeyType enumerates the values for storage key type.

const (
	// SharedAccessKey ...
	SharedAccessKey StorageKeyType = "SharedAccessKey"
	// StorageAccessKey ...
	StorageAccessKey StorageKeyType = "StorageAccessKey"
)

func PossibleStorageKeyTypeValues

func PossibleStorageKeyTypeValues() []StorageKeyType

PossibleStorageKeyTypeValues returns an array of possible values for the StorageKeyType const type.

type SubscriptionUsage

type SubscriptionUsage struct {
	autorest.Response `json:"-"`
	// SubscriptionUsageProperties - Resource properties.
	*SubscriptionUsageProperties `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"`
}

SubscriptionUsage usage Metric of a Subscription in a Location.

func (SubscriptionUsage) MarshalJSON

func (su SubscriptionUsage) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SubscriptionUsage.

func (*SubscriptionUsage) UnmarshalJSON

func (su *SubscriptionUsage) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SubscriptionUsage struct.

type SubscriptionUsageListResult

type SubscriptionUsageListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]SubscriptionUsage `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

SubscriptionUsageListResult a list of subscription usage metrics in a location.

func (SubscriptionUsageListResult) IsEmpty

func (sulr SubscriptionUsageListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type SubscriptionUsageListResultIterator

type SubscriptionUsageListResultIterator struct {
	// contains filtered or unexported fields
}

SubscriptionUsageListResultIterator provides access to a complete listing of SubscriptionUsage values.

func NewSubscriptionUsageListResultIterator

func NewSubscriptionUsageListResultIterator(page SubscriptionUsageListResultPage) SubscriptionUsageListResultIterator

Creates a new instance of the SubscriptionUsageListResultIterator type.

func (*SubscriptionUsageListResultIterator) Next

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 (*SubscriptionUsageListResultIterator) NextWithContext

func (iter *SubscriptionUsageListResultIterator) 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 (SubscriptionUsageListResultIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (SubscriptionUsageListResultIterator) Response

Response returns the raw server response from the last page request.

func (SubscriptionUsageListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type SubscriptionUsageListResultPage

type SubscriptionUsageListResultPage struct {
	// contains filtered or unexported fields
}

SubscriptionUsageListResultPage contains a page of SubscriptionUsage values.

func NewSubscriptionUsageListResultPage

func NewSubscriptionUsageListResultPage(getNextPage func(context.Context, SubscriptionUsageListResult) (SubscriptionUsageListResult, error)) SubscriptionUsageListResultPage

Creates a new instance of the SubscriptionUsageListResultPage type.

func (*SubscriptionUsageListResultPage) Next

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 (*SubscriptionUsageListResultPage) NextWithContext

func (page *SubscriptionUsageListResultPage) 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 (SubscriptionUsageListResultPage) NotDone

func (page SubscriptionUsageListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (SubscriptionUsageListResultPage) Response

Response returns the raw server response from the last page request.

func (SubscriptionUsageListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type SubscriptionUsageProperties

type SubscriptionUsageProperties struct {
	// DisplayName - READ-ONLY; User-readable name of the metric.
	DisplayName *string `json:"displayName,omitempty"`
	// CurrentValue - READ-ONLY; Current value of the metric.
	CurrentValue *float64 `json:"currentValue,omitempty"`
	// Limit - READ-ONLY; Boundary value of the metric.
	Limit *float64 `json:"limit,omitempty"`
	// Unit - READ-ONLY; Unit of the metric.
	Unit *string `json:"unit,omitempty"`
}

SubscriptionUsageProperties properties of a subscription usage.

type SubscriptionUsagesClient

type SubscriptionUsagesClient struct {
	BaseClient
}

SubscriptionUsagesClient 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 NewSubscriptionUsagesClient

func NewSubscriptionUsagesClient(subscriptionID string) SubscriptionUsagesClient

NewSubscriptionUsagesClient creates an instance of the SubscriptionUsagesClient client.

func NewSubscriptionUsagesClientWithBaseURI

func NewSubscriptionUsagesClientWithBaseURI(baseURI string, subscriptionID string) SubscriptionUsagesClient

NewSubscriptionUsagesClientWithBaseURI creates an instance of the SubscriptionUsagesClient client.

func (SubscriptionUsagesClient) Get

func (client SubscriptionUsagesClient) Get(ctx context.Context, locationName string, usageName string) (result SubscriptionUsage, err error)

Get gets a subscription usage metric. Parameters: locationName - the name of the region where the resource is located. usageName - name of usage metric to return.

func (SubscriptionUsagesClient) GetPreparer

func (client SubscriptionUsagesClient) GetPreparer(ctx context.Context, locationName string, usageName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (SubscriptionUsagesClient) GetResponder

func (client SubscriptionUsagesClient) GetResponder(resp *http.Response) (result SubscriptionUsage, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (SubscriptionUsagesClient) GetSender

func (client SubscriptionUsagesClient) 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 (SubscriptionUsagesClient) ListByLocation

func (client SubscriptionUsagesClient) ListByLocation(ctx context.Context, locationName string) (result SubscriptionUsageListResultPage, err error)

ListByLocation gets all subscription usage metrics in a given location. Parameters: locationName - the name of the region where the resource is located.

func (SubscriptionUsagesClient) ListByLocationComplete

func (client SubscriptionUsagesClient) ListByLocationComplete(ctx context.Context, locationName string) (result SubscriptionUsageListResultIterator, err error)

ListByLocationComplete enumerates all values, automatically crossing page boundaries as required.

func (SubscriptionUsagesClient) ListByLocationPreparer

func (client SubscriptionUsagesClient) ListByLocationPreparer(ctx context.Context, locationName string) (*http.Request, error)

ListByLocationPreparer prepares the ListByLocation request.

func (SubscriptionUsagesClient) ListByLocationResponder

func (client SubscriptionUsagesClient) ListByLocationResponder(resp *http.Response) (result SubscriptionUsageListResult, err error)

ListByLocationResponder handles the response to the ListByLocation request. The method always closes the http.Response Body.

func (SubscriptionUsagesClient) ListByLocationSender

func (client SubscriptionUsagesClient) 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 SyncAgent

type SyncAgent struct {
	autorest.Response `json:"-"`
	// SyncAgentProperties - Resource properties.
	*SyncAgentProperties `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"`
}

SyncAgent an Azure SQL Database sync agent.

func (SyncAgent) MarshalJSON

func (sa SyncAgent) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SyncAgent.

func (*SyncAgent) UnmarshalJSON

func (sa *SyncAgent) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SyncAgent struct.

type SyncAgentKeyProperties

type SyncAgentKeyProperties struct {
	autorest.Response `json:"-"`
	// SyncAgentKey - READ-ONLY; Key of sync agent.
	SyncAgentKey *string `json:"syncAgentKey,omitempty"`
}

SyncAgentKeyProperties properties of an Azure SQL Database sync agent key.

type SyncAgentLinkedDatabase

type SyncAgentLinkedDatabase struct {
	// SyncAgentLinkedDatabaseProperties - Resource properties.
	*SyncAgentLinkedDatabaseProperties `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"`
}

SyncAgentLinkedDatabase an Azure SQL Database sync agent linked database.

func (SyncAgentLinkedDatabase) MarshalJSON

func (sald SyncAgentLinkedDatabase) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SyncAgentLinkedDatabase.

func (*SyncAgentLinkedDatabase) UnmarshalJSON

func (sald *SyncAgentLinkedDatabase) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SyncAgentLinkedDatabase struct.

type SyncAgentLinkedDatabaseListResult

type SyncAgentLinkedDatabaseListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]SyncAgentLinkedDatabase `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

SyncAgentLinkedDatabaseListResult a list of sync agent linked databases.

func (SyncAgentLinkedDatabaseListResult) IsEmpty

func (saldlr SyncAgentLinkedDatabaseListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type SyncAgentLinkedDatabaseListResultIterator

type SyncAgentLinkedDatabaseListResultIterator struct {
	// contains filtered or unexported fields
}

SyncAgentLinkedDatabaseListResultIterator provides access to a complete listing of SyncAgentLinkedDatabase values.

func NewSyncAgentLinkedDatabaseListResultIterator

func NewSyncAgentLinkedDatabaseListResultIterator(page SyncAgentLinkedDatabaseListResultPage) SyncAgentLinkedDatabaseListResultIterator

Creates a new instance of the SyncAgentLinkedDatabaseListResultIterator type.

func (*SyncAgentLinkedDatabaseListResultIterator) Next

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 (*SyncAgentLinkedDatabaseListResultIterator) NextWithContext

func (iter *SyncAgentLinkedDatabaseListResultIterator) 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 (SyncAgentLinkedDatabaseListResultIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (SyncAgentLinkedDatabaseListResultIterator) Response

Response returns the raw server response from the last page request.

func (SyncAgentLinkedDatabaseListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type SyncAgentLinkedDatabaseListResultPage

type SyncAgentLinkedDatabaseListResultPage struct {
	// contains filtered or unexported fields
}

SyncAgentLinkedDatabaseListResultPage contains a page of SyncAgentLinkedDatabase values.

func NewSyncAgentLinkedDatabaseListResultPage

Creates a new instance of the SyncAgentLinkedDatabaseListResultPage type.

func (*SyncAgentLinkedDatabaseListResultPage) Next

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 (*SyncAgentLinkedDatabaseListResultPage) NextWithContext

func (page *SyncAgentLinkedDatabaseListResultPage) 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 (SyncAgentLinkedDatabaseListResultPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (SyncAgentLinkedDatabaseListResultPage) Response

Response returns the raw server response from the last page request.

func (SyncAgentLinkedDatabaseListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type SyncAgentLinkedDatabaseProperties

type SyncAgentLinkedDatabaseProperties struct {
	// DatabaseType - READ-ONLY; Type of the sync agent linked database. Possible values include: 'AzureSQLDatabase', 'SQLServerDatabase'
	DatabaseType SyncMemberDbType `json:"databaseType,omitempty"`
	// DatabaseID - READ-ONLY; Id of the sync agent linked database.
	DatabaseID *string `json:"databaseId,omitempty"`
	// Description - READ-ONLY; Description of the sync agent linked database.
	Description *string `json:"description,omitempty"`
	// ServerName - READ-ONLY; Server name of the sync agent linked database.
	ServerName *string `json:"serverName,omitempty"`
	// DatabaseName - READ-ONLY; Database name of the sync agent linked database.
	DatabaseName *string `json:"databaseName,omitempty"`
	// UserName - READ-ONLY; User name of the sync agent linked database.
	UserName *string `json:"userName,omitempty"`
}

SyncAgentLinkedDatabaseProperties properties of an Azure SQL Database sync agent linked database.

type SyncAgentListResult

type SyncAgentListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]SyncAgent `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

SyncAgentListResult a list of sync agents.

func (SyncAgentListResult) IsEmpty

func (salr SyncAgentListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type SyncAgentListResultIterator

type SyncAgentListResultIterator struct {
	// contains filtered or unexported fields
}

SyncAgentListResultIterator provides access to a complete listing of SyncAgent values.

func NewSyncAgentListResultIterator

func NewSyncAgentListResultIterator(page SyncAgentListResultPage) SyncAgentListResultIterator

Creates a new instance of the SyncAgentListResultIterator type.

func (*SyncAgentListResultIterator) Next

func (iter *SyncAgentListResultIterator) 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 (*SyncAgentListResultIterator) NextWithContext

func (iter *SyncAgentListResultIterator) 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 (SyncAgentListResultIterator) NotDone

func (iter SyncAgentListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (SyncAgentListResultIterator) Response

Response returns the raw server response from the last page request.

func (SyncAgentListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type SyncAgentListResultPage

type SyncAgentListResultPage struct {
	// contains filtered or unexported fields
}

SyncAgentListResultPage contains a page of SyncAgent values.

func NewSyncAgentListResultPage

func NewSyncAgentListResultPage(getNextPage func(context.Context, SyncAgentListResult) (SyncAgentListResult, error)) SyncAgentListResultPage

Creates a new instance of the SyncAgentListResultPage type.

func (*SyncAgentListResultPage) Next

func (page *SyncAgentListResultPage) 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 (*SyncAgentListResultPage) NextWithContext

func (page *SyncAgentListResultPage) 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 (SyncAgentListResultPage) NotDone

func (page SyncAgentListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (SyncAgentListResultPage) Response

Response returns the raw server response from the last page request.

func (SyncAgentListResultPage) Values

func (page SyncAgentListResultPage) Values() []SyncAgent

Values returns the slice of values for the current page or nil if there are no values.

type SyncAgentProperties

type SyncAgentProperties struct {
	// Name - READ-ONLY; Name of the sync agent.
	Name *string `json:"name,omitempty"`
	// SyncDatabaseID - ARM resource id of the sync database in the sync agent.
	SyncDatabaseID *string `json:"syncDatabaseId,omitempty"`
	// LastAliveTime - READ-ONLY; Last alive time of the sync agent.
	LastAliveTime *date.Time `json:"lastAliveTime,omitempty"`
	// State - READ-ONLY; State of the sync agent. Possible values include: 'SyncAgentStateOnline', 'SyncAgentStateOffline', 'SyncAgentStateNeverConnected'
	State SyncAgentState `json:"state,omitempty"`
	// IsUpToDate - READ-ONLY; If the sync agent version is up to date.
	IsUpToDate *bool `json:"isUpToDate,omitempty"`
	// ExpiryTime - READ-ONLY; Expiration time of the sync agent version.
	ExpiryTime *date.Time `json:"expiryTime,omitempty"`
	// Version - READ-ONLY; Version of the sync agent.
	Version *string `json:"version,omitempty"`
}

SyncAgentProperties properties of an Azure SQL Database sync agent.

type SyncAgentState

type SyncAgentState string

SyncAgentState enumerates the values for sync agent state.

const (
	// SyncAgentStateNeverConnected ...
	SyncAgentStateNeverConnected SyncAgentState = "NeverConnected"
	// SyncAgentStateOffline ...
	SyncAgentStateOffline SyncAgentState = "Offline"
	// SyncAgentStateOnline ...
	SyncAgentStateOnline SyncAgentState = "Online"
)

func PossibleSyncAgentStateValues

func PossibleSyncAgentStateValues() []SyncAgentState

PossibleSyncAgentStateValues returns an array of possible values for the SyncAgentState const type.

type SyncAgentsClient

type SyncAgentsClient struct {
	BaseClient
}

SyncAgentsClient 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 NewSyncAgentsClient

func NewSyncAgentsClient(subscriptionID string) SyncAgentsClient

NewSyncAgentsClient creates an instance of the SyncAgentsClient client.

func NewSyncAgentsClientWithBaseURI

func NewSyncAgentsClientWithBaseURI(baseURI string, subscriptionID string) SyncAgentsClient

NewSyncAgentsClientWithBaseURI creates an instance of the SyncAgentsClient client.

func (SyncAgentsClient) CreateOrUpdate

func (client SyncAgentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, syncAgentName string, parameters SyncAgent) (result SyncAgentsCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates a sync agent. 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 on which the sync agent is hosted. syncAgentName - the name of the sync agent. parameters - the requested sync agent resource state.

func (SyncAgentsClient) CreateOrUpdatePreparer

func (client SyncAgentsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, syncAgentName string, parameters SyncAgent) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (SyncAgentsClient) CreateOrUpdateResponder

func (client SyncAgentsClient) CreateOrUpdateResponder(resp *http.Response) (result SyncAgent, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (SyncAgentsClient) CreateOrUpdateSender

func (client SyncAgentsClient) CreateOrUpdateSender(req *http.Request) (future SyncAgentsCreateOrUpdateFuture, err error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (SyncAgentsClient) Delete

func (client SyncAgentsClient) Delete(ctx context.Context, resourceGroupName string, serverName string, syncAgentName string) (result SyncAgentsDeleteFuture, err error)

Delete deletes a sync agent. 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 on which the sync agent is hosted. syncAgentName - the name of the sync agent.

func (SyncAgentsClient) DeletePreparer

func (client SyncAgentsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, syncAgentName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (SyncAgentsClient) DeleteResponder

func (client SyncAgentsClient) 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 (SyncAgentsClient) DeleteSender

func (client SyncAgentsClient) DeleteSender(req *http.Request) (future SyncAgentsDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (SyncAgentsClient) GenerateKey

func (client SyncAgentsClient) GenerateKey(ctx context.Context, resourceGroupName string, serverName string, syncAgentName string) (result SyncAgentKeyProperties, err error)

GenerateKey generates a sync agent key. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server on which the sync agent is hosted. syncAgentName - the name of the sync agent.

func (SyncAgentsClient) GenerateKeyPreparer

func (client SyncAgentsClient) GenerateKeyPreparer(ctx context.Context, resourceGroupName string, serverName string, syncAgentName string) (*http.Request, error)

GenerateKeyPreparer prepares the GenerateKey request.

func (SyncAgentsClient) GenerateKeyResponder

func (client SyncAgentsClient) GenerateKeyResponder(resp *http.Response) (result SyncAgentKeyProperties, err error)

GenerateKeyResponder handles the response to the GenerateKey request. The method always closes the http.Response Body.

func (SyncAgentsClient) GenerateKeySender

func (client SyncAgentsClient) GenerateKeySender(req *http.Request) (*http.Response, error)

GenerateKeySender sends the GenerateKey request. The method will close the http.Response Body if it receives an error.

func (SyncAgentsClient) Get

func (client SyncAgentsClient) Get(ctx context.Context, resourceGroupName string, serverName string, syncAgentName string) (result SyncAgent, err error)

Get gets a sync agent. 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 on which the sync agent is hosted. syncAgentName - the name of the sync agent.

func (SyncAgentsClient) GetPreparer

func (client SyncAgentsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, syncAgentName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (SyncAgentsClient) GetResponder

func (client SyncAgentsClient) GetResponder(resp *http.Response) (result SyncAgent, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (SyncAgentsClient) GetSender

func (client SyncAgentsClient) 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 (SyncAgentsClient) ListByServer

func (client SyncAgentsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result SyncAgentListResultPage, err error)

ListByServer lists sync agents 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 on which the sync agent is hosted.

func (SyncAgentsClient) ListByServerComplete

func (client SyncAgentsClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result SyncAgentListResultIterator, err error)

ListByServerComplete enumerates all values, automatically crossing page boundaries as required.

func (SyncAgentsClient) ListByServerPreparer

func (client SyncAgentsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

ListByServerPreparer prepares the ListByServer request.

func (SyncAgentsClient) ListByServerResponder

func (client SyncAgentsClient) ListByServerResponder(resp *http.Response) (result SyncAgentListResult, err error)

ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.

func (SyncAgentsClient) ListByServerSender

func (client SyncAgentsClient) 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 (SyncAgentsClient) ListLinkedDatabases

func (client SyncAgentsClient) ListLinkedDatabases(ctx context.Context, resourceGroupName string, serverName string, syncAgentName string) (result SyncAgentLinkedDatabaseListResultPage, err error)

ListLinkedDatabases lists databases linked to a sync agent. 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 on which the sync agent is hosted. syncAgentName - the name of the sync agent.

func (SyncAgentsClient) ListLinkedDatabasesComplete

func (client SyncAgentsClient) ListLinkedDatabasesComplete(ctx context.Context, resourceGroupName string, serverName string, syncAgentName string) (result SyncAgentLinkedDatabaseListResultIterator, err error)

ListLinkedDatabasesComplete enumerates all values, automatically crossing page boundaries as required.

func (SyncAgentsClient) ListLinkedDatabasesPreparer

func (client SyncAgentsClient) ListLinkedDatabasesPreparer(ctx context.Context, resourceGroupName string, serverName string, syncAgentName string) (*http.Request, error)

ListLinkedDatabasesPreparer prepares the ListLinkedDatabases request.

func (SyncAgentsClient) ListLinkedDatabasesResponder

func (client SyncAgentsClient) ListLinkedDatabasesResponder(resp *http.Response) (result SyncAgentLinkedDatabaseListResult, err error)

ListLinkedDatabasesResponder handles the response to the ListLinkedDatabases request. The method always closes the http.Response Body.

func (SyncAgentsClient) ListLinkedDatabasesSender

func (client SyncAgentsClient) ListLinkedDatabasesSender(req *http.Request) (*http.Response, error)

ListLinkedDatabasesSender sends the ListLinkedDatabases request. The method will close the http.Response Body if it receives an error.

type SyncAgentsCreateOrUpdateFuture

type SyncAgentsCreateOrUpdateFuture struct {
	azure.Future
}

SyncAgentsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*SyncAgentsCreateOrUpdateFuture) Result

func (future *SyncAgentsCreateOrUpdateFuture) Result(client SyncAgentsClient) (sa SyncAgent, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type SyncAgentsDeleteFuture

type SyncAgentsDeleteFuture struct {
	azure.Future
}

SyncAgentsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*SyncAgentsDeleteFuture) Result

func (future *SyncAgentsDeleteFuture) Result(client SyncAgentsClient) (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 SyncConflictResolutionPolicy

type SyncConflictResolutionPolicy string

SyncConflictResolutionPolicy enumerates the values for sync conflict resolution policy.

const (
	// HubWin ...
	HubWin SyncConflictResolutionPolicy = "HubWin"
	// MemberWin ...
	MemberWin SyncConflictResolutionPolicy = "MemberWin"
)

func PossibleSyncConflictResolutionPolicyValues

func PossibleSyncConflictResolutionPolicyValues() []SyncConflictResolutionPolicy

PossibleSyncConflictResolutionPolicyValues returns an array of possible values for the SyncConflictResolutionPolicy const type.

type SyncDatabaseIDListResult

type SyncDatabaseIDListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]SyncDatabaseIDProperties `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

SyncDatabaseIDListResult a list of sync database ID properties.

func (SyncDatabaseIDListResult) IsEmpty

func (sdilr SyncDatabaseIDListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type SyncDatabaseIDListResultIterator

type SyncDatabaseIDListResultIterator struct {
	// contains filtered or unexported fields
}

SyncDatabaseIDListResultIterator provides access to a complete listing of SyncDatabaseIDProperties values.

func NewSyncDatabaseIDListResultIterator

func NewSyncDatabaseIDListResultIterator(page SyncDatabaseIDListResultPage) SyncDatabaseIDListResultIterator

Creates a new instance of the SyncDatabaseIDListResultIterator type.

func (*SyncDatabaseIDListResultIterator) Next

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 (*SyncDatabaseIDListResultIterator) NextWithContext

func (iter *SyncDatabaseIDListResultIterator) 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 (SyncDatabaseIDListResultIterator) NotDone

func (iter SyncDatabaseIDListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (SyncDatabaseIDListResultIterator) Response

Response returns the raw server response from the last page request.

func (SyncDatabaseIDListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type SyncDatabaseIDListResultPage

type SyncDatabaseIDListResultPage struct {
	// contains filtered or unexported fields
}

SyncDatabaseIDListResultPage contains a page of SyncDatabaseIDProperties values.

func NewSyncDatabaseIDListResultPage

func NewSyncDatabaseIDListResultPage(getNextPage func(context.Context, SyncDatabaseIDListResult) (SyncDatabaseIDListResult, error)) SyncDatabaseIDListResultPage

Creates a new instance of the SyncDatabaseIDListResultPage type.

func (*SyncDatabaseIDListResultPage) Next

func (page *SyncDatabaseIDListResultPage) 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 (*SyncDatabaseIDListResultPage) NextWithContext

func (page *SyncDatabaseIDListResultPage) 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 (SyncDatabaseIDListResultPage) NotDone

func (page SyncDatabaseIDListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (SyncDatabaseIDListResultPage) Response

Response returns the raw server response from the last page request.

func (SyncDatabaseIDListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type SyncDatabaseIDProperties

type SyncDatabaseIDProperties struct {
	// ID - READ-ONLY; ARM resource id of sync database.
	ID *string `json:"id,omitempty"`
}

SyncDatabaseIDProperties properties of the sync database id.

type SyncDirection

type SyncDirection string

SyncDirection enumerates the values for sync direction.

const (
	// Bidirectional ...
	Bidirectional SyncDirection = "Bidirectional"
	// OneWayHubToMember ...
	OneWayHubToMember SyncDirection = "OneWayHubToMember"
	// OneWayMemberToHub ...
	OneWayMemberToHub SyncDirection = "OneWayMemberToHub"
)

func PossibleSyncDirectionValues

func PossibleSyncDirectionValues() []SyncDirection

PossibleSyncDirectionValues returns an array of possible values for the SyncDirection const type.

type SyncFullSchemaProperties

type SyncFullSchemaProperties struct {
	// Tables - READ-ONLY; List of tables in the database full schema.
	Tables *[]SyncFullSchemaTable `json:"tables,omitempty"`
	// LastUpdateTime - READ-ONLY; Last update time of the database schema.
	LastUpdateTime *date.Time `json:"lastUpdateTime,omitempty"`
}

SyncFullSchemaProperties properties of the database full schema.

type SyncFullSchemaPropertiesListResult

type SyncFullSchemaPropertiesListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]SyncFullSchemaProperties `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

SyncFullSchemaPropertiesListResult a list of sync schema properties.

func (SyncFullSchemaPropertiesListResult) IsEmpty

func (sfsplr SyncFullSchemaPropertiesListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type SyncFullSchemaPropertiesListResultIterator

type SyncFullSchemaPropertiesListResultIterator struct {
	// contains filtered or unexported fields
}

SyncFullSchemaPropertiesListResultIterator provides access to a complete listing of SyncFullSchemaProperties values.

func NewSyncFullSchemaPropertiesListResultIterator

func NewSyncFullSchemaPropertiesListResultIterator(page SyncFullSchemaPropertiesListResultPage) SyncFullSchemaPropertiesListResultIterator

Creates a new instance of the SyncFullSchemaPropertiesListResultIterator type.

func (*SyncFullSchemaPropertiesListResultIterator) Next

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 (*SyncFullSchemaPropertiesListResultIterator) NextWithContext

func (iter *SyncFullSchemaPropertiesListResultIterator) 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 (SyncFullSchemaPropertiesListResultIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (SyncFullSchemaPropertiesListResultIterator) Response

Response returns the raw server response from the last page request.

func (SyncFullSchemaPropertiesListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type SyncFullSchemaPropertiesListResultPage

type SyncFullSchemaPropertiesListResultPage struct {
	// contains filtered or unexported fields
}

SyncFullSchemaPropertiesListResultPage contains a page of SyncFullSchemaProperties values.

func NewSyncFullSchemaPropertiesListResultPage

Creates a new instance of the SyncFullSchemaPropertiesListResultPage type.

func (*SyncFullSchemaPropertiesListResultPage) Next

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 (*SyncFullSchemaPropertiesListResultPage) NextWithContext

func (page *SyncFullSchemaPropertiesListResultPage) 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 (SyncFullSchemaPropertiesListResultPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (SyncFullSchemaPropertiesListResultPage) Response

Response returns the raw server response from the last page request.

func (SyncFullSchemaPropertiesListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type SyncFullSchemaTable

type SyncFullSchemaTable struct {
	// Columns - READ-ONLY; List of columns in the table of database full schema.
	Columns *[]SyncFullSchemaTableColumn `json:"columns,omitempty"`
	// ErrorID - READ-ONLY; Error id of the table.
	ErrorID *string `json:"errorId,omitempty"`
	// HasError - READ-ONLY; If there is error in the table.
	HasError *bool `json:"hasError,omitempty"`
	// Name - READ-ONLY; Name of the table.
	Name *string `json:"name,omitempty"`
	// QuotedName - READ-ONLY; Quoted name of the table.
	QuotedName *string `json:"quotedName,omitempty"`
}

SyncFullSchemaTable properties of the table in the database full schema.

type SyncFullSchemaTableColumn

type SyncFullSchemaTableColumn struct {
	// DataSize - READ-ONLY; Data size of the column.
	DataSize *string `json:"dataSize,omitempty"`
	// DataType - READ-ONLY; Data type of the column.
	DataType *string `json:"dataType,omitempty"`
	// ErrorID - READ-ONLY; Error id of the column.
	ErrorID *string `json:"errorId,omitempty"`
	// HasError - READ-ONLY; If there is error in the table.
	HasError *bool `json:"hasError,omitempty"`
	// IsPrimaryKey - READ-ONLY; If it is the primary key of the table.
	IsPrimaryKey *bool `json:"isPrimaryKey,omitempty"`
	// Name - READ-ONLY; Name of the column.
	Name *string `json:"name,omitempty"`
	// QuotedName - READ-ONLY; Quoted name of the column.
	QuotedName *string `json:"quotedName,omitempty"`
}

SyncFullSchemaTableColumn properties of the column in the table of database full schema.

type SyncGroup

type SyncGroup struct {
	autorest.Response `json:"-"`
	// SyncGroupProperties - Resource properties.
	*SyncGroupProperties `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"`
}

SyncGroup an Azure SQL Database sync group.

func (SyncGroup) MarshalJSON

func (sg SyncGroup) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SyncGroup.

func (*SyncGroup) UnmarshalJSON

func (sg *SyncGroup) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SyncGroup struct.

type SyncGroupListResult

type SyncGroupListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]SyncGroup `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

SyncGroupListResult a list of sync groups.

func (SyncGroupListResult) IsEmpty

func (sglr SyncGroupListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type SyncGroupListResultIterator

type SyncGroupListResultIterator struct {
	// contains filtered or unexported fields
}

SyncGroupListResultIterator provides access to a complete listing of SyncGroup values.

func NewSyncGroupListResultIterator

func NewSyncGroupListResultIterator(page SyncGroupListResultPage) SyncGroupListResultIterator

Creates a new instance of the SyncGroupListResultIterator type.

func (*SyncGroupListResultIterator) Next

func (iter *SyncGroupListResultIterator) 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 (*SyncGroupListResultIterator) NextWithContext

func (iter *SyncGroupListResultIterator) 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 (SyncGroupListResultIterator) NotDone

func (iter SyncGroupListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (SyncGroupListResultIterator) Response

Response returns the raw server response from the last page request.

func (SyncGroupListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type SyncGroupListResultPage

type SyncGroupListResultPage struct {
	// contains filtered or unexported fields
}

SyncGroupListResultPage contains a page of SyncGroup values.

func NewSyncGroupListResultPage

func NewSyncGroupListResultPage(getNextPage func(context.Context, SyncGroupListResult) (SyncGroupListResult, error)) SyncGroupListResultPage

Creates a new instance of the SyncGroupListResultPage type.

func (*SyncGroupListResultPage) Next

func (page *SyncGroupListResultPage) 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 (*SyncGroupListResultPage) NextWithContext

func (page *SyncGroupListResultPage) 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 (SyncGroupListResultPage) NotDone

func (page SyncGroupListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (SyncGroupListResultPage) Response

Response returns the raw server response from the last page request.

func (SyncGroupListResultPage) Values

func (page SyncGroupListResultPage) Values() []SyncGroup

Values returns the slice of values for the current page or nil if there are no values.

type SyncGroupLogListResult

type SyncGroupLogListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]SyncGroupLogProperties `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

SyncGroupLogListResult a list of sync group log properties.

func (SyncGroupLogListResult) IsEmpty

func (sgllr SyncGroupLogListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type SyncGroupLogListResultIterator

type SyncGroupLogListResultIterator struct {
	// contains filtered or unexported fields
}

SyncGroupLogListResultIterator provides access to a complete listing of SyncGroupLogProperties values.

func NewSyncGroupLogListResultIterator

func NewSyncGroupLogListResultIterator(page SyncGroupLogListResultPage) SyncGroupLogListResultIterator

Creates a new instance of the SyncGroupLogListResultIterator type.

func (*SyncGroupLogListResultIterator) Next

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 (*SyncGroupLogListResultIterator) NextWithContext

func (iter *SyncGroupLogListResultIterator) 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 (SyncGroupLogListResultIterator) NotDone

func (iter SyncGroupLogListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (SyncGroupLogListResultIterator) Response

Response returns the raw server response from the last page request.

func (SyncGroupLogListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type SyncGroupLogListResultPage

type SyncGroupLogListResultPage struct {
	// contains filtered or unexported fields
}

SyncGroupLogListResultPage contains a page of SyncGroupLogProperties values.

func NewSyncGroupLogListResultPage

func NewSyncGroupLogListResultPage(getNextPage func(context.Context, SyncGroupLogListResult) (SyncGroupLogListResult, error)) SyncGroupLogListResultPage

Creates a new instance of the SyncGroupLogListResultPage type.

func (*SyncGroupLogListResultPage) Next

func (page *SyncGroupLogListResultPage) 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 (*SyncGroupLogListResultPage) NextWithContext

func (page *SyncGroupLogListResultPage) 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 (SyncGroupLogListResultPage) NotDone

func (page SyncGroupLogListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (SyncGroupLogListResultPage) Response

Response returns the raw server response from the last page request.

func (SyncGroupLogListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type SyncGroupLogProperties

type SyncGroupLogProperties struct {
	// Timestamp - READ-ONLY; Timestamp of the sync group log.
	Timestamp *date.Time `json:"timestamp,omitempty"`
	// Type - READ-ONLY; Type of the sync group log. Possible values include: 'SyncGroupLogTypeAll', 'SyncGroupLogTypeError', 'SyncGroupLogTypeWarning', 'SyncGroupLogTypeSuccess'
	Type SyncGroupLogType `json:"type,omitempty"`
	// Source - READ-ONLY; Source of the sync group log.
	Source *string `json:"source,omitempty"`
	// Details - READ-ONLY; Details of the sync group log.
	Details *string `json:"details,omitempty"`
	// TracingID - READ-ONLY; TracingId of the sync group log.
	TracingID *uuid.UUID `json:"tracingId,omitempty"`
	// OperationStatus - READ-ONLY; OperationStatus of the sync group log.
	OperationStatus *string `json:"operationStatus,omitempty"`
}

SyncGroupLogProperties properties of an Azure SQL Database sync group log.

type SyncGroupLogType

type SyncGroupLogType string

SyncGroupLogType enumerates the values for sync group log type.

const (
	// SyncGroupLogTypeAll ...
	SyncGroupLogTypeAll SyncGroupLogType = "All"
	// SyncGroupLogTypeError ...
	SyncGroupLogTypeError SyncGroupLogType = "Error"
	// SyncGroupLogTypeSuccess ...
	SyncGroupLogTypeSuccess SyncGroupLogType = "Success"
	// SyncGroupLogTypeWarning ...
	SyncGroupLogTypeWarning SyncGroupLogType = "Warning"
)

func PossibleSyncGroupLogTypeValues

func PossibleSyncGroupLogTypeValues() []SyncGroupLogType

PossibleSyncGroupLogTypeValues returns an array of possible values for the SyncGroupLogType const type.

type SyncGroupProperties

type SyncGroupProperties struct {
	// Interval - Sync interval of the sync group.
	Interval *int32 `json:"interval,omitempty"`
	// LastSyncTime - READ-ONLY; Last sync time of the sync group.
	LastSyncTime *date.Time `json:"lastSyncTime,omitempty"`
	// ConflictResolutionPolicy - Conflict resolution policy of the sync group. Possible values include: 'HubWin', 'MemberWin'
	ConflictResolutionPolicy SyncConflictResolutionPolicy `json:"conflictResolutionPolicy,omitempty"`
	// SyncDatabaseID - ARM resource id of the sync database in the sync group.
	SyncDatabaseID *string `json:"syncDatabaseId,omitempty"`
	// HubDatabaseUserName - User name for the sync group hub database credential.
	HubDatabaseUserName *string `json:"hubDatabaseUserName,omitempty"`
	// HubDatabasePassword - Password for the sync group hub database credential.
	HubDatabasePassword *string `json:"hubDatabasePassword,omitempty"`
	// SyncState - READ-ONLY; Sync state of the sync group. Possible values include: 'NotReady', 'Error', 'Warning', 'Progressing', 'Good'
	SyncState SyncGroupState `json:"syncState,omitempty"`
	// Schema - Sync schema of the sync group.
	Schema *SyncGroupSchema `json:"schema,omitempty"`
}

SyncGroupProperties properties of a sync group.

type SyncGroupSchema

type SyncGroupSchema struct {
	// Tables - List of tables in sync group schema.
	Tables *[]SyncGroupSchemaTable `json:"tables,omitempty"`
	// MasterSyncMemberName - Name of master sync member where the schema is from.
	MasterSyncMemberName *string `json:"masterSyncMemberName,omitempty"`
}

SyncGroupSchema properties of sync group schema.

type SyncGroupSchemaTable

type SyncGroupSchemaTable struct {
	// Columns - List of columns in sync group schema.
	Columns *[]SyncGroupSchemaTableColumn `json:"columns,omitempty"`
	// QuotedName - Quoted name of sync group schema table.
	QuotedName *string `json:"quotedName,omitempty"`
}

SyncGroupSchemaTable properties of table in sync group schema.

type SyncGroupSchemaTableColumn

type SyncGroupSchemaTableColumn struct {
	// QuotedName - Quoted name of sync group table column.
	QuotedName *string `json:"quotedName,omitempty"`
	// DataSize - Data size of the column.
	DataSize *string `json:"dataSize,omitempty"`
	// DataType - Data type of the column.
	DataType *string `json:"dataType,omitempty"`
}

SyncGroupSchemaTableColumn properties of column in sync group table.

type SyncGroupState

type SyncGroupState string

SyncGroupState enumerates the values for sync group state.

const (
	// Error ...
	Error SyncGroupState = "Error"
	// Good ...
	Good SyncGroupState = "Good"
	// NotReady ...
	NotReady SyncGroupState = "NotReady"
	// Progressing ...
	Progressing SyncGroupState = "Progressing"
	// Warning ...
	Warning SyncGroupState = "Warning"
)

func PossibleSyncGroupStateValues

func PossibleSyncGroupStateValues() []SyncGroupState

PossibleSyncGroupStateValues returns an array of possible values for the SyncGroupState const type.

type SyncGroupsClient

type SyncGroupsClient struct {
	BaseClient
}

SyncGroupsClient 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 NewSyncGroupsClient

func NewSyncGroupsClient(subscriptionID string) SyncGroupsClient

NewSyncGroupsClient creates an instance of the SyncGroupsClient client.

func NewSyncGroupsClientWithBaseURI

func NewSyncGroupsClientWithBaseURI(baseURI string, subscriptionID string) SyncGroupsClient

NewSyncGroupsClientWithBaseURI creates an instance of the SyncGroupsClient client.

func (SyncGroupsClient) CancelSync

func (client SyncGroupsClient) CancelSync(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string) (result autorest.Response, err error)

CancelSync cancels a sync group synchronization. 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 on which the sync group is hosted. syncGroupName - the name of the sync group.

func (SyncGroupsClient) CancelSyncPreparer

func (client SyncGroupsClient) CancelSyncPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string) (*http.Request, error)

CancelSyncPreparer prepares the CancelSync request.

func (SyncGroupsClient) CancelSyncResponder

func (client SyncGroupsClient) CancelSyncResponder(resp *http.Response) (result autorest.Response, err error)

CancelSyncResponder handles the response to the CancelSync request. The method always closes the http.Response Body.

func (SyncGroupsClient) CancelSyncSender

func (client SyncGroupsClient) CancelSyncSender(req *http.Request) (*http.Response, error)

CancelSyncSender sends the CancelSync request. The method will close the http.Response Body if it receives an error.

func (SyncGroupsClient) CreateOrUpdate

func (client SyncGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string, parameters SyncGroup) (result SyncGroupsCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates a sync group. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database on which the sync group is hosted. syncGroupName - the name of the sync group. parameters - the requested sync group resource state.

func (SyncGroupsClient) CreateOrUpdatePreparer

func (client SyncGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string, parameters SyncGroup) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (SyncGroupsClient) CreateOrUpdateResponder

func (client SyncGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result SyncGroup, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (SyncGroupsClient) CreateOrUpdateSender

func (client SyncGroupsClient) CreateOrUpdateSender(req *http.Request) (future SyncGroupsCreateOrUpdateFuture, err error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (SyncGroupsClient) Delete

func (client SyncGroupsClient) Delete(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string) (result SyncGroupsDeleteFuture, err error)

Delete deletes a sync group. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database on which the sync group is hosted. syncGroupName - the name of the sync group.

func (SyncGroupsClient) DeletePreparer

func (client SyncGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (SyncGroupsClient) DeleteResponder

func (client SyncGroupsClient) 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 (SyncGroupsClient) DeleteSender

func (client SyncGroupsClient) DeleteSender(req *http.Request) (future SyncGroupsDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (SyncGroupsClient) Get

func (client SyncGroupsClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string) (result SyncGroup, err error)

Get gets a sync group. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database on which the sync group is hosted. syncGroupName - the name of the sync group.

func (SyncGroupsClient) GetPreparer

func (client SyncGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (SyncGroupsClient) GetResponder

func (client SyncGroupsClient) GetResponder(resp *http.Response) (result SyncGroup, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (SyncGroupsClient) GetSender

func (client SyncGroupsClient) 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 (SyncGroupsClient) ListByDatabase

func (client SyncGroupsClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result SyncGroupListResultPage, err error)

ListByDatabase lists sync groups under a hub 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 on which the sync group is hosted.

func (SyncGroupsClient) ListByDatabaseComplete

func (client SyncGroupsClient) ListByDatabaseComplete(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result SyncGroupListResultIterator, err error)

ListByDatabaseComplete enumerates all values, automatically crossing page boundaries as required.

func (SyncGroupsClient) ListByDatabasePreparer

func (client SyncGroupsClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

ListByDatabasePreparer prepares the ListByDatabase request.

func (SyncGroupsClient) ListByDatabaseResponder

func (client SyncGroupsClient) ListByDatabaseResponder(resp *http.Response) (result SyncGroupListResult, err error)

ListByDatabaseResponder handles the response to the ListByDatabase request. The method always closes the http.Response Body.

func (SyncGroupsClient) ListByDatabaseSender

func (client SyncGroupsClient) 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 (SyncGroupsClient) ListHubSchemas

func (client SyncGroupsClient) ListHubSchemas(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string) (result SyncFullSchemaPropertiesListResultPage, err error)

ListHubSchemas gets a collection of hub database schemas. 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 on which the sync group is hosted. syncGroupName - the name of the sync group.

func (SyncGroupsClient) ListHubSchemasComplete

func (client SyncGroupsClient) ListHubSchemasComplete(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string) (result SyncFullSchemaPropertiesListResultIterator, err error)

ListHubSchemasComplete enumerates all values, automatically crossing page boundaries as required.

func (SyncGroupsClient) ListHubSchemasPreparer

func (client SyncGroupsClient) ListHubSchemasPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string) (*http.Request, error)

ListHubSchemasPreparer prepares the ListHubSchemas request.

func (SyncGroupsClient) ListHubSchemasResponder

func (client SyncGroupsClient) ListHubSchemasResponder(resp *http.Response) (result SyncFullSchemaPropertiesListResult, err error)

ListHubSchemasResponder handles the response to the ListHubSchemas request. The method always closes the http.Response Body.

func (SyncGroupsClient) ListHubSchemasSender

func (client SyncGroupsClient) ListHubSchemasSender(req *http.Request) (*http.Response, error)

ListHubSchemasSender sends the ListHubSchemas request. The method will close the http.Response Body if it receives an error.

func (SyncGroupsClient) ListLogs

func (client SyncGroupsClient) ListLogs(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string, startTime string, endTime string, typeParameter string, continuationToken string) (result SyncGroupLogListResultPage, err error)

ListLogs gets a collection of sync group logs. 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 on which the sync group is hosted. syncGroupName - the name of the sync group. startTime - get logs generated after this time. endTime - get logs generated before this time. typeParameter - the types of logs to retrieve. continuationToken - the continuation token for this operation.

func (SyncGroupsClient) ListLogsComplete

func (client SyncGroupsClient) ListLogsComplete(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string, startTime string, endTime string, typeParameter string, continuationToken string) (result SyncGroupLogListResultIterator, err error)

ListLogsComplete enumerates all values, automatically crossing page boundaries as required.

func (SyncGroupsClient) ListLogsPreparer

func (client SyncGroupsClient) ListLogsPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string, startTime string, endTime string, typeParameter string, continuationToken string) (*http.Request, error)

ListLogsPreparer prepares the ListLogs request.

func (SyncGroupsClient) ListLogsResponder

func (client SyncGroupsClient) ListLogsResponder(resp *http.Response) (result SyncGroupLogListResult, err error)

ListLogsResponder handles the response to the ListLogs request. The method always closes the http.Response Body.

func (SyncGroupsClient) ListLogsSender

func (client SyncGroupsClient) ListLogsSender(req *http.Request) (*http.Response, error)

ListLogsSender sends the ListLogs request. The method will close the http.Response Body if it receives an error.

func (SyncGroupsClient) ListSyncDatabaseIds

func (client SyncGroupsClient) ListSyncDatabaseIds(ctx context.Context, locationName string) (result SyncDatabaseIDListResultPage, err error)

ListSyncDatabaseIds gets a collection of sync database ids. Parameters: locationName - the name of the region where the resource is located.

func (SyncGroupsClient) ListSyncDatabaseIdsComplete

func (client SyncGroupsClient) ListSyncDatabaseIdsComplete(ctx context.Context, locationName string) (result SyncDatabaseIDListResultIterator, err error)

ListSyncDatabaseIdsComplete enumerates all values, automatically crossing page boundaries as required.

func (SyncGroupsClient) ListSyncDatabaseIdsPreparer

func (client SyncGroupsClient) ListSyncDatabaseIdsPreparer(ctx context.Context, locationName string) (*http.Request, error)

ListSyncDatabaseIdsPreparer prepares the ListSyncDatabaseIds request.

func (SyncGroupsClient) ListSyncDatabaseIdsResponder

func (client SyncGroupsClient) ListSyncDatabaseIdsResponder(resp *http.Response) (result SyncDatabaseIDListResult, err error)

ListSyncDatabaseIdsResponder handles the response to the ListSyncDatabaseIds request. The method always closes the http.Response Body.

func (SyncGroupsClient) ListSyncDatabaseIdsSender

func (client SyncGroupsClient) ListSyncDatabaseIdsSender(req *http.Request) (*http.Response, error)

ListSyncDatabaseIdsSender sends the ListSyncDatabaseIds request. The method will close the http.Response Body if it receives an error.

func (SyncGroupsClient) RefreshHubSchema

func (client SyncGroupsClient) RefreshHubSchema(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string) (result SyncGroupsRefreshHubSchemaFuture, err error)

RefreshHubSchema refreshes a hub database schema. 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 on which the sync group is hosted. syncGroupName - the name of the sync group.

func (SyncGroupsClient) RefreshHubSchemaPreparer

func (client SyncGroupsClient) RefreshHubSchemaPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string) (*http.Request, error)

RefreshHubSchemaPreparer prepares the RefreshHubSchema request.

func (SyncGroupsClient) RefreshHubSchemaResponder

func (client SyncGroupsClient) RefreshHubSchemaResponder(resp *http.Response) (result autorest.Response, err error)

RefreshHubSchemaResponder handles the response to the RefreshHubSchema request. The method always closes the http.Response Body.

func (SyncGroupsClient) RefreshHubSchemaSender

func (client SyncGroupsClient) RefreshHubSchemaSender(req *http.Request) (future SyncGroupsRefreshHubSchemaFuture, err error)

RefreshHubSchemaSender sends the RefreshHubSchema request. The method will close the http.Response Body if it receives an error.

func (SyncGroupsClient) TriggerSync

func (client SyncGroupsClient) TriggerSync(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string) (result autorest.Response, err error)

TriggerSync triggers a sync group synchronization. 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 on which the sync group is hosted. syncGroupName - the name of the sync group.

func (SyncGroupsClient) TriggerSyncPreparer

func (client SyncGroupsClient) TriggerSyncPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string) (*http.Request, error)

TriggerSyncPreparer prepares the TriggerSync request.

func (SyncGroupsClient) TriggerSyncResponder

func (client SyncGroupsClient) TriggerSyncResponder(resp *http.Response) (result autorest.Response, err error)

TriggerSyncResponder handles the response to the TriggerSync request. The method always closes the http.Response Body.

func (SyncGroupsClient) TriggerSyncSender

func (client SyncGroupsClient) TriggerSyncSender(req *http.Request) (*http.Response, error)

TriggerSyncSender sends the TriggerSync request. The method will close the http.Response Body if it receives an error.

func (SyncGroupsClient) Update

func (client SyncGroupsClient) Update(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string, parameters SyncGroup) (result SyncGroupsUpdateFuture, err error)

Update updates a sync group. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database on which the sync group is hosted. syncGroupName - the name of the sync group. parameters - the requested sync group resource state.

func (SyncGroupsClient) UpdatePreparer

func (client SyncGroupsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string, parameters SyncGroup) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (SyncGroupsClient) UpdateResponder

func (client SyncGroupsClient) UpdateResponder(resp *http.Response) (result SyncGroup, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (SyncGroupsClient) UpdateSender

func (client SyncGroupsClient) UpdateSender(req *http.Request) (future SyncGroupsUpdateFuture, err error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type SyncGroupsCreateOrUpdateFuture

type SyncGroupsCreateOrUpdateFuture struct {
	azure.Future
}

SyncGroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*SyncGroupsCreateOrUpdateFuture) Result

func (future *SyncGroupsCreateOrUpdateFuture) Result(client SyncGroupsClient) (sg SyncGroup, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type SyncGroupsDeleteFuture

type SyncGroupsDeleteFuture struct {
	azure.Future
}

SyncGroupsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*SyncGroupsDeleteFuture) Result

func (future *SyncGroupsDeleteFuture) Result(client SyncGroupsClient) (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 SyncGroupsRefreshHubSchemaFuture

type SyncGroupsRefreshHubSchemaFuture struct {
	azure.Future
}

SyncGroupsRefreshHubSchemaFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*SyncGroupsRefreshHubSchemaFuture) Result

func (future *SyncGroupsRefreshHubSchemaFuture) Result(client SyncGroupsClient) (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 SyncGroupsUpdateFuture

type SyncGroupsUpdateFuture struct {
	azure.Future
}

SyncGroupsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*SyncGroupsUpdateFuture) Result

func (future *SyncGroupsUpdateFuture) Result(client SyncGroupsClient) (sg SyncGroup, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type SyncMember

type SyncMember struct {
	autorest.Response `json:"-"`
	// SyncMemberProperties - Resource properties.
	*SyncMemberProperties `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"`
}

SyncMember an Azure SQL Database sync member.

func (SyncMember) MarshalJSON

func (sm SyncMember) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SyncMember.

func (*SyncMember) UnmarshalJSON

func (sm *SyncMember) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SyncMember struct.

type SyncMemberDbType

type SyncMemberDbType string

SyncMemberDbType enumerates the values for sync member db type.

const (
	// AzureSQLDatabase ...
	AzureSQLDatabase SyncMemberDbType = "AzureSqlDatabase"
	// SQLServerDatabase ...
	SQLServerDatabase SyncMemberDbType = "SqlServerDatabase"
)

func PossibleSyncMemberDbTypeValues

func PossibleSyncMemberDbTypeValues() []SyncMemberDbType

PossibleSyncMemberDbTypeValues returns an array of possible values for the SyncMemberDbType const type.

type SyncMemberListResult

type SyncMemberListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]SyncMember `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

SyncMemberListResult a list of Azure SQL Database sync members.

func (SyncMemberListResult) IsEmpty

func (smlr SyncMemberListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type SyncMemberListResultIterator

type SyncMemberListResultIterator struct {
	// contains filtered or unexported fields
}

SyncMemberListResultIterator provides access to a complete listing of SyncMember values.

func NewSyncMemberListResultIterator

func NewSyncMemberListResultIterator(page SyncMemberListResultPage) SyncMemberListResultIterator

Creates a new instance of the SyncMemberListResultIterator type.

func (*SyncMemberListResultIterator) Next

func (iter *SyncMemberListResultIterator) 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 (*SyncMemberListResultIterator) NextWithContext

func (iter *SyncMemberListResultIterator) 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 (SyncMemberListResultIterator) NotDone

func (iter SyncMemberListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (SyncMemberListResultIterator) Response

Response returns the raw server response from the last page request.

func (SyncMemberListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type SyncMemberListResultPage

type SyncMemberListResultPage struct {
	// contains filtered or unexported fields
}

SyncMemberListResultPage contains a page of SyncMember values.

func NewSyncMemberListResultPage

func NewSyncMemberListResultPage(getNextPage func(context.Context, SyncMemberListResult) (SyncMemberListResult, error)) SyncMemberListResultPage

Creates a new instance of the SyncMemberListResultPage type.

func (*SyncMemberListResultPage) Next

func (page *SyncMemberListResultPage) 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 (*SyncMemberListResultPage) NextWithContext

func (page *SyncMemberListResultPage) 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 (SyncMemberListResultPage) NotDone

func (page SyncMemberListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (SyncMemberListResultPage) Response

Response returns the raw server response from the last page request.

func (SyncMemberListResultPage) Values

func (page SyncMemberListResultPage) Values() []SyncMember

Values returns the slice of values for the current page or nil if there are no values.

type SyncMemberProperties

type SyncMemberProperties struct {
	// DatabaseType - Database type of the sync member. Possible values include: 'AzureSQLDatabase', 'SQLServerDatabase'
	DatabaseType SyncMemberDbType `json:"databaseType,omitempty"`
	// SyncAgentID - ARM resource id of the sync agent in the sync member.
	SyncAgentID *string `json:"syncAgentId,omitempty"`
	// SQLServerDatabaseID - SQL Server database id of the sync member.
	SQLServerDatabaseID *uuid.UUID `json:"sqlServerDatabaseId,omitempty"`
	// ServerName - Server name of the member database in the sync member
	ServerName *string `json:"serverName,omitempty"`
	// DatabaseName - Database name of the member database in the sync member.
	DatabaseName *string `json:"databaseName,omitempty"`
	// UserName - User name of the member database in the sync member.
	UserName *string `json:"userName,omitempty"`
	// Password - Password of the member database in the sync member.
	Password *string `json:"password,omitempty"`
	// SyncDirection - Sync direction of the sync member. Possible values include: 'Bidirectional', 'OneWayMemberToHub', 'OneWayHubToMember'
	SyncDirection SyncDirection `json:"syncDirection,omitempty"`
	// SyncState - READ-ONLY; Sync state of the sync member. Possible values include: 'SyncInProgress', 'SyncSucceeded', 'SyncFailed', 'DisabledTombstoneCleanup', 'DisabledBackupRestore', 'SyncSucceededWithWarnings', 'SyncCancelling', 'SyncCancelled', 'UnProvisioned', 'Provisioning', 'Provisioned', 'ProvisionFailed', 'DeProvisioning', 'DeProvisioned', 'DeProvisionFailed', 'Reprovisioning', 'ReprovisionFailed', 'UnReprovisioned'
	SyncState SyncMemberState `json:"syncState,omitempty"`
}

SyncMemberProperties properties of a sync member.

type SyncMemberState

type SyncMemberState string

SyncMemberState enumerates the values for sync member state.

const (
	// DeProvisioned ...
	DeProvisioned SyncMemberState = "DeProvisioned"
	// DeProvisionFailed ...
	DeProvisionFailed SyncMemberState = "DeProvisionFailed"
	// DeProvisioning ...
	DeProvisioning SyncMemberState = "DeProvisioning"
	// DisabledBackupRestore ...
	DisabledBackupRestore SyncMemberState = "DisabledBackupRestore"
	// DisabledTombstoneCleanup ...
	DisabledTombstoneCleanup SyncMemberState = "DisabledTombstoneCleanup"
	// Provisioned ...
	Provisioned SyncMemberState = "Provisioned"
	// ProvisionFailed ...
	ProvisionFailed SyncMemberState = "ProvisionFailed"
	// Provisioning ...
	Provisioning SyncMemberState = "Provisioning"
	// ReprovisionFailed ...
	ReprovisionFailed SyncMemberState = "ReprovisionFailed"
	// Reprovisioning ...
	Reprovisioning SyncMemberState = "Reprovisioning"
	// SyncCancelled ...
	SyncCancelled SyncMemberState = "SyncCancelled"
	// SyncCancelling ...
	SyncCancelling SyncMemberState = "SyncCancelling"
	// SyncFailed ...
	SyncFailed SyncMemberState = "SyncFailed"
	// SyncInProgress ...
	SyncInProgress SyncMemberState = "SyncInProgress"
	// SyncSucceeded ...
	SyncSucceeded SyncMemberState = "SyncSucceeded"
	// SyncSucceededWithWarnings ...
	SyncSucceededWithWarnings SyncMemberState = "SyncSucceededWithWarnings"
	// UnProvisioned ...
	UnProvisioned SyncMemberState = "UnProvisioned"
	// UnReprovisioned ...
	UnReprovisioned SyncMemberState = "UnReprovisioned"
)

func PossibleSyncMemberStateValues

func PossibleSyncMemberStateValues() []SyncMemberState

PossibleSyncMemberStateValues returns an array of possible values for the SyncMemberState const type.

type SyncMembersClient

type SyncMembersClient struct {
	BaseClient
}

SyncMembersClient 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 NewSyncMembersClient

func NewSyncMembersClient(subscriptionID string) SyncMembersClient

NewSyncMembersClient creates an instance of the SyncMembersClient client.

func NewSyncMembersClientWithBaseURI

func NewSyncMembersClientWithBaseURI(baseURI string, subscriptionID string) SyncMembersClient

NewSyncMembersClientWithBaseURI creates an instance of the SyncMembersClient client.

func (SyncMembersClient) CreateOrUpdate

func (client SyncMembersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string, syncMemberName string, parameters SyncMember) (result SyncMembersCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates a sync member. 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 on which the sync group is hosted. syncGroupName - the name of the sync group on which the sync member is hosted. syncMemberName - the name of the sync member. parameters - the requested sync member resource state.

func (SyncMembersClient) CreateOrUpdatePreparer

func (client SyncMembersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string, syncMemberName string, parameters SyncMember) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (SyncMembersClient) CreateOrUpdateResponder

func (client SyncMembersClient) CreateOrUpdateResponder(resp *http.Response) (result SyncMember, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (SyncMembersClient) CreateOrUpdateSender

func (client SyncMembersClient) CreateOrUpdateSender(req *http.Request) (future SyncMembersCreateOrUpdateFuture, err error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (SyncMembersClient) Delete

func (client SyncMembersClient) Delete(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string, syncMemberName string) (result SyncMembersDeleteFuture, err error)

Delete deletes a sync member. 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 on which the sync group is hosted. syncGroupName - the name of the sync group on which the sync member is hosted. syncMemberName - the name of the sync member.

func (SyncMembersClient) DeletePreparer

func (client SyncMembersClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string, syncMemberName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (SyncMembersClient) DeleteResponder

func (client SyncMembersClient) 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 (SyncMembersClient) DeleteSender

func (client SyncMembersClient) DeleteSender(req *http.Request) (future SyncMembersDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (SyncMembersClient) Get

func (client SyncMembersClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string, syncMemberName string) (result SyncMember, err error)

Get gets a sync member. 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 on which the sync group is hosted. syncGroupName - the name of the sync group on which the sync member is hosted. syncMemberName - the name of the sync member.

func (SyncMembersClient) GetPreparer

func (client SyncMembersClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string, syncMemberName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (SyncMembersClient) GetResponder

func (client SyncMembersClient) GetResponder(resp *http.Response) (result SyncMember, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (SyncMembersClient) GetSender

func (client SyncMembersClient) 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 (SyncMembersClient) ListBySyncGroup

func (client SyncMembersClient) ListBySyncGroup(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string) (result SyncMemberListResultPage, err error)

ListBySyncGroup lists sync members in the given sync group. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database on which the sync group is hosted. syncGroupName - the name of the sync group.

func (SyncMembersClient) ListBySyncGroupComplete

func (client SyncMembersClient) ListBySyncGroupComplete(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string) (result SyncMemberListResultIterator, err error)

ListBySyncGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (SyncMembersClient) ListBySyncGroupPreparer

func (client SyncMembersClient) ListBySyncGroupPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string) (*http.Request, error)

ListBySyncGroupPreparer prepares the ListBySyncGroup request.

func (SyncMembersClient) ListBySyncGroupResponder

func (client SyncMembersClient) ListBySyncGroupResponder(resp *http.Response) (result SyncMemberListResult, err error)

ListBySyncGroupResponder handles the response to the ListBySyncGroup request. The method always closes the http.Response Body.

func (SyncMembersClient) ListBySyncGroupSender

func (client SyncMembersClient) ListBySyncGroupSender(req *http.Request) (*http.Response, error)

ListBySyncGroupSender sends the ListBySyncGroup request. The method will close the http.Response Body if it receives an error.

func (SyncMembersClient) ListMemberSchemas

func (client SyncMembersClient) ListMemberSchemas(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string, syncMemberName string) (result SyncFullSchemaPropertiesListResultPage, err error)

ListMemberSchemas gets a sync member database schema. 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 on which the sync group is hosted. syncGroupName - the name of the sync group on which the sync member is hosted. syncMemberName - the name of the sync member.

func (SyncMembersClient) ListMemberSchemasComplete

func (client SyncMembersClient) ListMemberSchemasComplete(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string, syncMemberName string) (result SyncFullSchemaPropertiesListResultIterator, err error)

ListMemberSchemasComplete enumerates all values, automatically crossing page boundaries as required.

func (SyncMembersClient) ListMemberSchemasPreparer

func (client SyncMembersClient) ListMemberSchemasPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string, syncMemberName string) (*http.Request, error)

ListMemberSchemasPreparer prepares the ListMemberSchemas request.

func (SyncMembersClient) ListMemberSchemasResponder

func (client SyncMembersClient) ListMemberSchemasResponder(resp *http.Response) (result SyncFullSchemaPropertiesListResult, err error)

ListMemberSchemasResponder handles the response to the ListMemberSchemas request. The method always closes the http.Response Body.

func (SyncMembersClient) ListMemberSchemasSender

func (client SyncMembersClient) ListMemberSchemasSender(req *http.Request) (*http.Response, error)

ListMemberSchemasSender sends the ListMemberSchemas request. The method will close the http.Response Body if it receives an error.

func (SyncMembersClient) RefreshMemberSchema

func (client SyncMembersClient) RefreshMemberSchema(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string, syncMemberName string) (result SyncMembersRefreshMemberSchemaFuture, err error)

RefreshMemberSchema refreshes a sync member database schema. 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 on which the sync group is hosted. syncGroupName - the name of the sync group on which the sync member is hosted. syncMemberName - the name of the sync member.

func (SyncMembersClient) RefreshMemberSchemaPreparer

func (client SyncMembersClient) RefreshMemberSchemaPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string, syncMemberName string) (*http.Request, error)

RefreshMemberSchemaPreparer prepares the RefreshMemberSchema request.

func (SyncMembersClient) RefreshMemberSchemaResponder

func (client SyncMembersClient) RefreshMemberSchemaResponder(resp *http.Response) (result autorest.Response, err error)

RefreshMemberSchemaResponder handles the response to the RefreshMemberSchema request. The method always closes the http.Response Body.

func (SyncMembersClient) RefreshMemberSchemaSender

func (client SyncMembersClient) RefreshMemberSchemaSender(req *http.Request) (future SyncMembersRefreshMemberSchemaFuture, err error)

RefreshMemberSchemaSender sends the RefreshMemberSchema request. The method will close the http.Response Body if it receives an error.

func (SyncMembersClient) Update

func (client SyncMembersClient) Update(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string, syncMemberName string, parameters SyncMember) (result SyncMembersUpdateFuture, err error)

Update updates an existing sync member. 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 on which the sync group is hosted. syncGroupName - the name of the sync group on which the sync member is hosted. syncMemberName - the name of the sync member. parameters - the requested sync member resource state.

func (SyncMembersClient) UpdatePreparer

func (client SyncMembersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, syncGroupName string, syncMemberName string, parameters SyncMember) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (SyncMembersClient) UpdateResponder

func (client SyncMembersClient) UpdateResponder(resp *http.Response) (result SyncMember, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (SyncMembersClient) UpdateSender

func (client SyncMembersClient) UpdateSender(req *http.Request) (future SyncMembersUpdateFuture, err error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type SyncMembersCreateOrUpdateFuture

type SyncMembersCreateOrUpdateFuture struct {
	azure.Future
}

SyncMembersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*SyncMembersCreateOrUpdateFuture) Result

func (future *SyncMembersCreateOrUpdateFuture) Result(client SyncMembersClient) (sm SyncMember, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type SyncMembersDeleteFuture

type SyncMembersDeleteFuture struct {
	azure.Future
}

SyncMembersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*SyncMembersDeleteFuture) Result

func (future *SyncMembersDeleteFuture) Result(client SyncMembersClient) (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 SyncMembersRefreshMemberSchemaFuture

type SyncMembersRefreshMemberSchemaFuture struct {
	azure.Future
}

SyncMembersRefreshMemberSchemaFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*SyncMembersRefreshMemberSchemaFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type SyncMembersUpdateFuture

type SyncMembersUpdateFuture struct {
	azure.Future
}

SyncMembersUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*SyncMembersUpdateFuture) Result

func (future *SyncMembersUpdateFuture) Result(client SyncMembersClient) (sm SyncMember, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type TdeCertificate

type TdeCertificate struct {
	// TdeCertificateProperties - Resource properties.
	*TdeCertificateProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

TdeCertificate a TDE certificate that can be uploaded into a server.

func (TdeCertificate) MarshalJSON

func (tc TdeCertificate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TdeCertificate.

func (*TdeCertificate) UnmarshalJSON

func (tc *TdeCertificate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TdeCertificate struct.

type TdeCertificateProperties

type TdeCertificateProperties struct {
	// PrivateBlob - The base64 encoded certificate private blob.
	PrivateBlob *string `json:"privateBlob,omitempty"`
	// CertPassword - The certificate password.
	CertPassword *string `json:"certPassword,omitempty"`
}

TdeCertificateProperties properties of a TDE certificate.

type TdeCertificatesClient

type TdeCertificatesClient struct {
	BaseClient
}

TdeCertificatesClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewTdeCertificatesClient

func NewTdeCertificatesClient(subscriptionID string) TdeCertificatesClient

NewTdeCertificatesClient creates an instance of the TdeCertificatesClient client.

func NewTdeCertificatesClientWithBaseURI

func NewTdeCertificatesClientWithBaseURI(baseURI string, subscriptionID string) TdeCertificatesClient

NewTdeCertificatesClientWithBaseURI creates an instance of the TdeCertificatesClient client.

func (TdeCertificatesClient) Create

func (client TdeCertificatesClient) Create(ctx context.Context, resourceGroupName string, serverName string, parameters TdeCertificate) (result TdeCertificatesCreateFuture, err error)

Create creates a TDE certificate for a given server. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. parameters - the requested TDE certificate to be created or updated.

func (TdeCertificatesClient) CreatePreparer

func (client TdeCertificatesClient) CreatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters TdeCertificate) (*http.Request, error)

CreatePreparer prepares the Create request.

func (TdeCertificatesClient) CreateResponder

func (client TdeCertificatesClient) CreateResponder(resp *http.Response) (result autorest.Response, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (TdeCertificatesClient) CreateSender

func (client TdeCertificatesClient) CreateSender(req *http.Request) (future TdeCertificatesCreateFuture, err error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

type TdeCertificatesCreateFuture

type TdeCertificatesCreateFuture struct {
	azure.Future
}

TdeCertificatesCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*TdeCertificatesCreateFuture) Result

func (future *TdeCertificatesCreateFuture) Result(client TdeCertificatesClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type TrackedResource

type TrackedResource struct {
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

TrackedResource ARM tracked top level resource.

func (TrackedResource) MarshalJSON

func (tr TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TrackedResource.

type TransparentDataEncryption

type TransparentDataEncryption struct {
	autorest.Response `json:"-"`
	// Location - READ-ONLY; Resource location.
	Location *string `json:"location,omitempty"`
	// TransparentDataEncryptionProperties - Represents the properties of the resource.
	*TransparentDataEncryptionProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

TransparentDataEncryption represents a database transparent data encryption configuration.

func (TransparentDataEncryption) MarshalJSON

func (tde TransparentDataEncryption) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TransparentDataEncryption.

func (*TransparentDataEncryption) UnmarshalJSON

func (tde *TransparentDataEncryption) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TransparentDataEncryption struct.

type TransparentDataEncryptionActivitiesClient

type TransparentDataEncryptionActivitiesClient struct {
	BaseClient
}

TransparentDataEncryptionActivitiesClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewTransparentDataEncryptionActivitiesClient

func NewTransparentDataEncryptionActivitiesClient(subscriptionID string) TransparentDataEncryptionActivitiesClient

NewTransparentDataEncryptionActivitiesClient creates an instance of the TransparentDataEncryptionActivitiesClient client.

func NewTransparentDataEncryptionActivitiesClientWithBaseURI

func NewTransparentDataEncryptionActivitiesClientWithBaseURI(baseURI string, subscriptionID string) TransparentDataEncryptionActivitiesClient

NewTransparentDataEncryptionActivitiesClientWithBaseURI creates an instance of the TransparentDataEncryptionActivitiesClient client.

func (TransparentDataEncryptionActivitiesClient) ListByConfiguration

func (client TransparentDataEncryptionActivitiesClient) ListByConfiguration(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result TransparentDataEncryptionActivityListResult, err error)

ListByConfiguration returns a database's transparent data encryption operation result. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database for which the transparent data encryption applies.

func (TransparentDataEncryptionActivitiesClient) ListByConfigurationPreparer

func (client TransparentDataEncryptionActivitiesClient) ListByConfigurationPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

ListByConfigurationPreparer prepares the ListByConfiguration request.

func (TransparentDataEncryptionActivitiesClient) ListByConfigurationResponder

func (client TransparentDataEncryptionActivitiesClient) ListByConfigurationResponder(resp *http.Response) (result TransparentDataEncryptionActivityListResult, err error)

ListByConfigurationResponder handles the response to the ListByConfiguration request. The method always closes the http.Response Body.

func (TransparentDataEncryptionActivitiesClient) ListByConfigurationSender

func (client TransparentDataEncryptionActivitiesClient) ListByConfigurationSender(req *http.Request) (*http.Response, error)

ListByConfigurationSender sends the ListByConfiguration request. The method will close the http.Response Body if it receives an error.

type TransparentDataEncryptionActivity

type TransparentDataEncryptionActivity struct {
	// Location - READ-ONLY; Resource location.
	Location *string `json:"location,omitempty"`
	// TransparentDataEncryptionActivityProperties - Represents the properties of the resource.
	*TransparentDataEncryptionActivityProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

TransparentDataEncryptionActivity represents a database transparent data encryption Scan.

func (TransparentDataEncryptionActivity) MarshalJSON

func (tdea TransparentDataEncryptionActivity) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TransparentDataEncryptionActivity.

func (*TransparentDataEncryptionActivity) UnmarshalJSON

func (tdea *TransparentDataEncryptionActivity) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TransparentDataEncryptionActivity struct.

type TransparentDataEncryptionActivityListResult

type TransparentDataEncryptionActivityListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of database transparent data encryption activities.
	Value *[]TransparentDataEncryptionActivity `json:"value,omitempty"`
}

TransparentDataEncryptionActivityListResult represents the response to a list database transparent data encryption activity request.

type TransparentDataEncryptionActivityProperties

type TransparentDataEncryptionActivityProperties struct {
	// Status - READ-ONLY; The status of the database. Possible values include: 'Encrypting', 'Decrypting'
	Status TransparentDataEncryptionActivityStatus `json:"status,omitempty"`
	// PercentComplete - READ-ONLY; The percent complete of the transparent data encryption scan for a database.
	PercentComplete *float64 `json:"percentComplete,omitempty"`
}

TransparentDataEncryptionActivityProperties represents the properties of a database transparent data encryption Scan.

type TransparentDataEncryptionActivityStatus

type TransparentDataEncryptionActivityStatus string

TransparentDataEncryptionActivityStatus enumerates the values for transparent data encryption activity status.

const (
	// Decrypting ...
	Decrypting TransparentDataEncryptionActivityStatus = "Decrypting"
	// Encrypting ...
	Encrypting TransparentDataEncryptionActivityStatus = "Encrypting"
)

func PossibleTransparentDataEncryptionActivityStatusValues

func PossibleTransparentDataEncryptionActivityStatusValues() []TransparentDataEncryptionActivityStatus

PossibleTransparentDataEncryptionActivityStatusValues returns an array of possible values for the TransparentDataEncryptionActivityStatus const type.

type TransparentDataEncryptionProperties

type TransparentDataEncryptionProperties struct {
	// Status - The status of the database transparent data encryption. Possible values include: 'TransparentDataEncryptionStatusEnabled', 'TransparentDataEncryptionStatusDisabled'
	Status TransparentDataEncryptionStatus `json:"status,omitempty"`
}

TransparentDataEncryptionProperties represents the properties of a database transparent data encryption.

type TransparentDataEncryptionStatus

type TransparentDataEncryptionStatus string

TransparentDataEncryptionStatus enumerates the values for transparent data encryption status.

const (
	// TransparentDataEncryptionStatusDisabled ...
	TransparentDataEncryptionStatusDisabled TransparentDataEncryptionStatus = "Disabled"
	// TransparentDataEncryptionStatusEnabled ...
	TransparentDataEncryptionStatusEnabled TransparentDataEncryptionStatus = "Enabled"
)

func PossibleTransparentDataEncryptionStatusValues

func PossibleTransparentDataEncryptionStatusValues() []TransparentDataEncryptionStatus

PossibleTransparentDataEncryptionStatusValues returns an array of possible values for the TransparentDataEncryptionStatus const type.

type TransparentDataEncryptionsClient

type TransparentDataEncryptionsClient struct {
	BaseClient
}

TransparentDataEncryptionsClient is the the Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.

func NewTransparentDataEncryptionsClient

func NewTransparentDataEncryptionsClient(subscriptionID string) TransparentDataEncryptionsClient

NewTransparentDataEncryptionsClient creates an instance of the TransparentDataEncryptionsClient client.

func NewTransparentDataEncryptionsClientWithBaseURI

func NewTransparentDataEncryptionsClientWithBaseURI(baseURI string, subscriptionID string) TransparentDataEncryptionsClient

NewTransparentDataEncryptionsClientWithBaseURI creates an instance of the TransparentDataEncryptionsClient client.

func (TransparentDataEncryptionsClient) CreateOrUpdate

func (client TransparentDataEncryptionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters TransparentDataEncryption) (result TransparentDataEncryption, err error)

CreateOrUpdate creates or updates a database's transparent data encryption configuration. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database for which setting the transparent data encryption applies. parameters - the required parameters for creating or updating transparent data encryption.

func (TransparentDataEncryptionsClient) CreateOrUpdatePreparer

func (client TransparentDataEncryptionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters TransparentDataEncryption) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (TransparentDataEncryptionsClient) CreateOrUpdateResponder

func (client TransparentDataEncryptionsClient) CreateOrUpdateResponder(resp *http.Response) (result TransparentDataEncryption, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (TransparentDataEncryptionsClient) CreateOrUpdateSender

func (client TransparentDataEncryptionsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (TransparentDataEncryptionsClient) Get

func (client TransparentDataEncryptionsClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result TransparentDataEncryption, err error)

Get gets a database's transparent data encryption configuration. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database for which the transparent data encryption applies.

func (TransparentDataEncryptionsClient) GetPreparer

func (client TransparentDataEncryptionsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (TransparentDataEncryptionsClient) GetResponder

func (client TransparentDataEncryptionsClient) GetResponder(resp *http.Response) (result TransparentDataEncryption, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (TransparentDataEncryptionsClient) GetSender

func (client TransparentDataEncryptionsClient) 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 UnitDefinitionType

type UnitDefinitionType string

UnitDefinitionType enumerates the values for unit definition type.

const (
	// UnitDefinitionTypeBytes ...
	UnitDefinitionTypeBytes UnitDefinitionType = "Bytes"
	// UnitDefinitionTypeBytesPerSecond ...
	UnitDefinitionTypeBytesPerSecond UnitDefinitionType = "BytesPerSecond"
	// UnitDefinitionTypeCount ...
	UnitDefinitionTypeCount UnitDefinitionType = "Count"
	// UnitDefinitionTypeCountPerSecond ...
	UnitDefinitionTypeCountPerSecond UnitDefinitionType = "CountPerSecond"
	// UnitDefinitionTypePercent ...
	UnitDefinitionTypePercent UnitDefinitionType = "Percent"
	// UnitDefinitionTypeSeconds ...
	UnitDefinitionTypeSeconds UnitDefinitionType = "Seconds"
)

func PossibleUnitDefinitionTypeValues

func PossibleUnitDefinitionTypeValues() []UnitDefinitionType

PossibleUnitDefinitionTypeValues returns an array of possible values for the UnitDefinitionType const type.

type UnitType

type UnitType string

UnitType enumerates the values for unit type.

const (
	// UnitTypeBytes ...
	UnitTypeBytes UnitType = "bytes"
	// UnitTypeBytesPerSecond ...
	UnitTypeBytesPerSecond UnitType = "bytesPerSecond"
	// UnitTypeCount ...
	UnitTypeCount UnitType = "count"
	// UnitTypeCountPerSecond ...
	UnitTypeCountPerSecond UnitType = "countPerSecond"
	// UnitTypePercent ...
	UnitTypePercent UnitType = "percent"
	// UnitTypeSeconds ...
	UnitTypeSeconds UnitType = "seconds"
)

func PossibleUnitTypeValues

func PossibleUnitTypeValues() []UnitType

PossibleUnitTypeValues returns an array of possible values for the UnitType const type.

type Usage

type Usage struct {
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *Name `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
	// Unit - READ-ONLY; Usage unit.
	Unit *string `json:"unit,omitempty"`
	// CurrentValue - READ-ONLY; Usage current value.
	CurrentValue *int32 `json:"currentValue,omitempty"`
	// Limit - READ-ONLY; Usage limit.
	Limit *int32 `json:"limit,omitempty"`
	// RequestedLimit - READ-ONLY; Usage requested limit.
	RequestedLimit *int32 `json:"requestedLimit,omitempty"`
}

Usage ARM usage.

type UsageListResult

type UsageListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]Usage `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

UsageListResult a list of usages.

func (UsageListResult) IsEmpty

func (ulr UsageListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type UsageListResultIterator

type UsageListResultIterator struct {
	// contains filtered or unexported fields
}

UsageListResultIterator provides access to a complete listing of Usage values.

func NewUsageListResultIterator

func NewUsageListResultIterator(page UsageListResultPage) UsageListResultIterator

Creates a new instance of the UsageListResultIterator type.

func (*UsageListResultIterator) Next

func (iter *UsageListResultIterator) 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 (*UsageListResultIterator) NextWithContext

func (iter *UsageListResultIterator) 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 (UsageListResultIterator) NotDone

func (iter UsageListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (UsageListResultIterator) Response

func (iter UsageListResultIterator) Response() UsageListResult

Response returns the raw server response from the last page request.

func (UsageListResultIterator) Value

func (iter UsageListResultIterator) Value() Usage

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type UsageListResultPage

type UsageListResultPage struct {
	// contains filtered or unexported fields
}

UsageListResultPage contains a page of Usage values.

func NewUsageListResultPage

func NewUsageListResultPage(getNextPage func(context.Context, UsageListResult) (UsageListResult, error)) UsageListResultPage

Creates a new instance of the UsageListResultPage type.

func (*UsageListResultPage) Next

func (page *UsageListResultPage) 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 (*UsageListResultPage) NextWithContext

func (page *UsageListResultPage) 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 (UsageListResultPage) NotDone

func (page UsageListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (UsageListResultPage) Response

func (page UsageListResultPage) Response() UsageListResult

Response returns the raw server response from the last page request.

func (UsageListResultPage) Values

func (page UsageListResultPage) Values() []Usage

Values returns the slice of values for the current page or nil if there are no values.

type UsagesClient

type UsagesClient struct {
	BaseClient
}

UsagesClient 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 NewUsagesClient

func NewUsagesClient(subscriptionID string) UsagesClient

NewUsagesClient creates an instance of the UsagesClient client.

func NewUsagesClientWithBaseURI

func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient

NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.

func (UsagesClient) ListByInstancePool

func (client UsagesClient) ListByInstancePool(ctx context.Context, resourceGroupName string, instancePoolName string, expandChildren *bool) (result UsageListResultPage, err error)

ListByInstancePool gets all instance pool usage 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. instancePoolName - the name of the instance pool to be retrieved. expandChildren - optional request parameter to include managed instance usages within the instance pool.

func (UsagesClient) ListByInstancePoolComplete

func (client UsagesClient) ListByInstancePoolComplete(ctx context.Context, resourceGroupName string, instancePoolName string, expandChildren *bool) (result UsageListResultIterator, err error)

ListByInstancePoolComplete enumerates all values, automatically crossing page boundaries as required.

func (UsagesClient) ListByInstancePoolPreparer

func (client UsagesClient) ListByInstancePoolPreparer(ctx context.Context, resourceGroupName string, instancePoolName string, expandChildren *bool) (*http.Request, error)

ListByInstancePoolPreparer prepares the ListByInstancePool request.

func (UsagesClient) ListByInstancePoolResponder

func (client UsagesClient) ListByInstancePoolResponder(resp *http.Response) (result UsageListResult, err error)

ListByInstancePoolResponder handles the response to the ListByInstancePool request. The method always closes the http.Response Body.

func (UsagesClient) ListByInstancePoolSender

func (client UsagesClient) ListByInstancePoolSender(req *http.Request) (*http.Response, error)

ListByInstancePoolSender sends the ListByInstancePool request. The method will close the http.Response Body if it receives an error.

type VirtualCluster

type VirtualCluster struct {
	autorest.Response `json:"-"`
	// VirtualClusterProperties - Resource properties.
	*VirtualClusterProperties `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"`
}

VirtualCluster an Azure SQL virtual cluster.

func (VirtualCluster) MarshalJSON

func (vc VirtualCluster) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VirtualCluster.

func (*VirtualCluster) UnmarshalJSON

func (vc *VirtualCluster) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for VirtualCluster struct.

type VirtualClusterListResult

type VirtualClusterListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]VirtualCluster `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

VirtualClusterListResult a list of virtual clusters.

func (VirtualClusterListResult) IsEmpty

func (vclr VirtualClusterListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type VirtualClusterListResultIterator

type VirtualClusterListResultIterator struct {
	// contains filtered or unexported fields
}

VirtualClusterListResultIterator provides access to a complete listing of VirtualCluster values.

func NewVirtualClusterListResultIterator

func NewVirtualClusterListResultIterator(page VirtualClusterListResultPage) VirtualClusterListResultIterator

Creates a new instance of the VirtualClusterListResultIterator type.

func (*VirtualClusterListResultIterator) Next

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 (*VirtualClusterListResultIterator) NextWithContext

func (iter *VirtualClusterListResultIterator) 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 (VirtualClusterListResultIterator) NotDone

func (iter VirtualClusterListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (VirtualClusterListResultIterator) Response

Response returns the raw server response from the last page request.

func (VirtualClusterListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type VirtualClusterListResultPage

type VirtualClusterListResultPage struct {
	// contains filtered or unexported fields
}

VirtualClusterListResultPage contains a page of VirtualCluster values.

func NewVirtualClusterListResultPage

func NewVirtualClusterListResultPage(getNextPage func(context.Context, VirtualClusterListResult) (VirtualClusterListResult, error)) VirtualClusterListResultPage

Creates a new instance of the VirtualClusterListResultPage type.

func (*VirtualClusterListResultPage) Next

func (page *VirtualClusterListResultPage) 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 (*VirtualClusterListResultPage) NextWithContext

func (page *VirtualClusterListResultPage) 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 (VirtualClusterListResultPage) NotDone

func (page VirtualClusterListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (VirtualClusterListResultPage) Response

Response returns the raw server response from the last page request.

func (VirtualClusterListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type VirtualClusterProperties

type VirtualClusterProperties struct {
	// SubnetID - READ-ONLY; Subnet resource ID for the virtual cluster.
	SubnetID *string `json:"subnetId,omitempty"`
	// Family - If the service has different generations of hardware, for the same SKU, then that can be captured here.
	Family *string `json:"family,omitempty"`
	// ChildResources - READ-ONLY; List of resources in this virtual cluster.
	ChildResources *[]string `json:"childResources,omitempty"`
}

VirtualClusterProperties the properties of a virtual cluster.

type VirtualClusterUpdate

type VirtualClusterUpdate struct {
	// VirtualClusterProperties - Resource properties.
	*VirtualClusterProperties `json:"properties,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
}

VirtualClusterUpdate an update request for an Azure SQL Database virtual cluster.

func (VirtualClusterUpdate) MarshalJSON

func (vcu VirtualClusterUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VirtualClusterUpdate.

func (*VirtualClusterUpdate) UnmarshalJSON

func (vcu *VirtualClusterUpdate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for VirtualClusterUpdate struct.

type VirtualClustersClient

type VirtualClustersClient struct {
	BaseClient
}

VirtualClustersClient 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 NewVirtualClustersClient

func NewVirtualClustersClient(subscriptionID string) VirtualClustersClient

NewVirtualClustersClient creates an instance of the VirtualClustersClient client.

func NewVirtualClustersClientWithBaseURI

func NewVirtualClustersClientWithBaseURI(baseURI string, subscriptionID string) VirtualClustersClient

NewVirtualClustersClientWithBaseURI creates an instance of the VirtualClustersClient client.

func (VirtualClustersClient) Delete

func (client VirtualClustersClient) Delete(ctx context.Context, resourceGroupName string, virtualClusterName string) (result VirtualClustersDeleteFuture, err error)

Delete deletes a virtual cluster. 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. virtualClusterName - the name of the virtual cluster.

func (VirtualClustersClient) DeletePreparer

func (client VirtualClustersClient) DeletePreparer(ctx context.Context, resourceGroupName string, virtualClusterName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (VirtualClustersClient) DeleteResponder

func (client VirtualClustersClient) 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 (VirtualClustersClient) DeleteSender

func (client VirtualClustersClient) DeleteSender(req *http.Request) (future VirtualClustersDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (VirtualClustersClient) Get

func (client VirtualClustersClient) Get(ctx context.Context, resourceGroupName string, virtualClusterName string) (result VirtualCluster, err error)

Get gets a virtual cluster. 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. virtualClusterName - the name of the virtual cluster.

func (VirtualClustersClient) GetPreparer

func (client VirtualClustersClient) GetPreparer(ctx context.Context, resourceGroupName string, virtualClusterName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (VirtualClustersClient) GetResponder

func (client VirtualClustersClient) GetResponder(resp *http.Response) (result VirtualCluster, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (VirtualClustersClient) GetSender

func (client VirtualClustersClient) 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 (VirtualClustersClient) List

List gets a list of all virtualClusters in the subscription.

func (VirtualClustersClient) ListByResourceGroup

func (client VirtualClustersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result VirtualClusterListResultPage, err error)

ListByResourceGroup gets a list of virtual clusters in a resource group. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

func (VirtualClustersClient) ListByResourceGroupComplete

func (client VirtualClustersClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result VirtualClusterListResultIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (VirtualClustersClient) ListByResourceGroupPreparer

func (client VirtualClustersClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (VirtualClustersClient) ListByResourceGroupResponder

func (client VirtualClustersClient) ListByResourceGroupResponder(resp *http.Response) (result VirtualClusterListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (VirtualClustersClient) ListByResourceGroupSender

func (client VirtualClustersClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (VirtualClustersClient) ListComplete

func (client VirtualClustersClient) ListComplete(ctx context.Context) (result VirtualClusterListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (VirtualClustersClient) ListPreparer

func (client VirtualClustersClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (VirtualClustersClient) ListResponder

func (client VirtualClustersClient) ListResponder(resp *http.Response) (result VirtualClusterListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (VirtualClustersClient) ListSender

func (client VirtualClustersClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (VirtualClustersClient) Update

func (client VirtualClustersClient) Update(ctx context.Context, resourceGroupName string, virtualClusterName string, parameters VirtualClusterUpdate) (result VirtualClustersUpdateFuture, err error)

Update updates a virtual cluster. 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. virtualClusterName - the name of the virtual cluster. parameters - the requested managed instance resource state.

func (VirtualClustersClient) UpdatePreparer

func (client VirtualClustersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, virtualClusterName string, parameters VirtualClusterUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (VirtualClustersClient) UpdateResponder

func (client VirtualClustersClient) UpdateResponder(resp *http.Response) (result VirtualCluster, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (VirtualClustersClient) UpdateSender

func (client VirtualClustersClient) UpdateSender(req *http.Request) (future VirtualClustersUpdateFuture, err error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type VirtualClustersDeleteFuture

type VirtualClustersDeleteFuture struct {
	azure.Future
}

VirtualClustersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*VirtualClustersDeleteFuture) Result

func (future *VirtualClustersDeleteFuture) Result(client VirtualClustersClient) (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 VirtualClustersUpdateFuture

type VirtualClustersUpdateFuture struct {
	azure.Future
}

VirtualClustersUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*VirtualClustersUpdateFuture) Result

func (future *VirtualClustersUpdateFuture) Result(client VirtualClustersClient) (vc VirtualCluster, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type VirtualNetworkRule

type VirtualNetworkRule struct {
	autorest.Response `json:"-"`
	// VirtualNetworkRuleProperties - Resource properties.
	*VirtualNetworkRuleProperties `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"`
}

VirtualNetworkRule a virtual network rule.

func (VirtualNetworkRule) MarshalJSON

func (vnr VirtualNetworkRule) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VirtualNetworkRule.

func (*VirtualNetworkRule) UnmarshalJSON

func (vnr *VirtualNetworkRule) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for VirtualNetworkRule struct.

type VirtualNetworkRuleListResult

type VirtualNetworkRuleListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]VirtualNetworkRule `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

VirtualNetworkRuleListResult a list of virtual network rules.

func (VirtualNetworkRuleListResult) IsEmpty

func (vnrlr VirtualNetworkRuleListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type VirtualNetworkRuleListResultIterator

type VirtualNetworkRuleListResultIterator struct {
	// contains filtered or unexported fields
}

VirtualNetworkRuleListResultIterator provides access to a complete listing of VirtualNetworkRule values.

func NewVirtualNetworkRuleListResultIterator

func NewVirtualNetworkRuleListResultIterator(page VirtualNetworkRuleListResultPage) VirtualNetworkRuleListResultIterator

Creates a new instance of the VirtualNetworkRuleListResultIterator type.

func (*VirtualNetworkRuleListResultIterator) Next

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 (*VirtualNetworkRuleListResultIterator) NextWithContext

func (iter *VirtualNetworkRuleListResultIterator) 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 (VirtualNetworkRuleListResultIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (VirtualNetworkRuleListResultIterator) Response

Response returns the raw server response from the last page request.

func (VirtualNetworkRuleListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type VirtualNetworkRuleListResultPage

type VirtualNetworkRuleListResultPage struct {
	// contains filtered or unexported fields
}

VirtualNetworkRuleListResultPage contains a page of VirtualNetworkRule values.

func NewVirtualNetworkRuleListResultPage

Creates a new instance of the VirtualNetworkRuleListResultPage type.

func (*VirtualNetworkRuleListResultPage) Next

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 (*VirtualNetworkRuleListResultPage) NextWithContext

func (page *VirtualNetworkRuleListResultPage) 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 (VirtualNetworkRuleListResultPage) NotDone

func (page VirtualNetworkRuleListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (VirtualNetworkRuleListResultPage) Response

Response returns the raw server response from the last page request.

func (VirtualNetworkRuleListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type VirtualNetworkRuleProperties

type VirtualNetworkRuleProperties struct {
	// VirtualNetworkSubnetID - The ARM resource id of the virtual network subnet.
	VirtualNetworkSubnetID *string `json:"virtualNetworkSubnetId,omitempty"`
	// IgnoreMissingVnetServiceEndpoint - Create firewall rule before the virtual network has vnet service endpoint enabled.
	IgnoreMissingVnetServiceEndpoint *bool `json:"ignoreMissingVnetServiceEndpoint,omitempty"`
	// State - READ-ONLY; Virtual Network Rule State. Possible values include: 'VirtualNetworkRuleStateInitializing', 'VirtualNetworkRuleStateInProgress', 'VirtualNetworkRuleStateReady', 'VirtualNetworkRuleStateDeleting', 'VirtualNetworkRuleStateUnknown'
	State VirtualNetworkRuleState `json:"state,omitempty"`
}

VirtualNetworkRuleProperties properties of a virtual network rule.

type VirtualNetworkRuleState

type VirtualNetworkRuleState string

VirtualNetworkRuleState enumerates the values for virtual network rule state.

const (
	// VirtualNetworkRuleStateDeleting ...
	VirtualNetworkRuleStateDeleting VirtualNetworkRuleState = "Deleting"
	// VirtualNetworkRuleStateInitializing ...
	VirtualNetworkRuleStateInitializing VirtualNetworkRuleState = "Initializing"
	// VirtualNetworkRuleStateInProgress ...
	VirtualNetworkRuleStateInProgress VirtualNetworkRuleState = "InProgress"
	// VirtualNetworkRuleStateReady ...
	VirtualNetworkRuleStateReady VirtualNetworkRuleState = "Ready"
	// VirtualNetworkRuleStateUnknown ...
	VirtualNetworkRuleStateUnknown VirtualNetworkRuleState = "Unknown"
)

func PossibleVirtualNetworkRuleStateValues

func PossibleVirtualNetworkRuleStateValues() []VirtualNetworkRuleState

PossibleVirtualNetworkRuleStateValues returns an array of possible values for the VirtualNetworkRuleState const type.

type VirtualNetworkRulesClient

type VirtualNetworkRulesClient struct {
	BaseClient
}

VirtualNetworkRulesClient 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 NewVirtualNetworkRulesClient

func NewVirtualNetworkRulesClient(subscriptionID string) VirtualNetworkRulesClient

NewVirtualNetworkRulesClient creates an instance of the VirtualNetworkRulesClient client.

func NewVirtualNetworkRulesClientWithBaseURI

func NewVirtualNetworkRulesClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkRulesClient

NewVirtualNetworkRulesClientWithBaseURI creates an instance of the VirtualNetworkRulesClient client.

func (VirtualNetworkRulesClient) CreateOrUpdate

func (client VirtualNetworkRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, virtualNetworkRuleName string, parameters VirtualNetworkRule) (result VirtualNetworkRulesCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates an existing virtual network 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. virtualNetworkRuleName - the name of the virtual network rule. parameters - the requested virtual Network Rule Resource state.

func (VirtualNetworkRulesClient) CreateOrUpdatePreparer

func (client VirtualNetworkRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, virtualNetworkRuleName string, parameters VirtualNetworkRule) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (VirtualNetworkRulesClient) CreateOrUpdateResponder

func (client VirtualNetworkRulesClient) CreateOrUpdateResponder(resp *http.Response) (result VirtualNetworkRule, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (VirtualNetworkRulesClient) CreateOrUpdateSender

func (client VirtualNetworkRulesClient) CreateOrUpdateSender(req *http.Request) (future VirtualNetworkRulesCreateOrUpdateFuture, err error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (VirtualNetworkRulesClient) Delete

func (client VirtualNetworkRulesClient) Delete(ctx context.Context, resourceGroupName string, serverName string, virtualNetworkRuleName string) (result VirtualNetworkRulesDeleteFuture, err error)

Delete deletes the virtual network rule with the given name. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. virtualNetworkRuleName - the name of the virtual network rule.

func (VirtualNetworkRulesClient) DeletePreparer

func (client VirtualNetworkRulesClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, virtualNetworkRuleName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (VirtualNetworkRulesClient) DeleteResponder

func (client VirtualNetworkRulesClient) 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 (VirtualNetworkRulesClient) DeleteSender

func (client VirtualNetworkRulesClient) DeleteSender(req *http.Request) (future VirtualNetworkRulesDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (VirtualNetworkRulesClient) Get

func (client VirtualNetworkRulesClient) Get(ctx context.Context, resourceGroupName string, serverName string, virtualNetworkRuleName string) (result VirtualNetworkRule, err error)

Get gets a virtual network 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. virtualNetworkRuleName - the name of the virtual network rule.

func (VirtualNetworkRulesClient) GetPreparer

func (client VirtualNetworkRulesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, virtualNetworkRuleName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (VirtualNetworkRulesClient) GetResponder

func (client VirtualNetworkRulesClient) GetResponder(resp *http.Response) (result VirtualNetworkRule, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (VirtualNetworkRulesClient) GetSender

func (client VirtualNetworkRulesClient) 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 (VirtualNetworkRulesClient) ListByServer

func (client VirtualNetworkRulesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result VirtualNetworkRuleListResultPage, err error)

ListByServer gets a list of virtual network rules 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 (VirtualNetworkRulesClient) ListByServerComplete

func (client VirtualNetworkRulesClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result VirtualNetworkRuleListResultIterator, err error)

ListByServerComplete enumerates all values, automatically crossing page boundaries as required.

func (VirtualNetworkRulesClient) ListByServerPreparer

func (client VirtualNetworkRulesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)

ListByServerPreparer prepares the ListByServer request.

func (VirtualNetworkRulesClient) ListByServerResponder

func (client VirtualNetworkRulesClient) ListByServerResponder(resp *http.Response) (result VirtualNetworkRuleListResult, err error)

ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.

func (VirtualNetworkRulesClient) ListByServerSender

func (client VirtualNetworkRulesClient) 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 VirtualNetworkRulesCreateOrUpdateFuture

type VirtualNetworkRulesCreateOrUpdateFuture struct {
	azure.Future
}

VirtualNetworkRulesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*VirtualNetworkRulesCreateOrUpdateFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type VirtualNetworkRulesDeleteFuture

type VirtualNetworkRulesDeleteFuture struct {
	azure.Future
}

VirtualNetworkRulesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*VirtualNetworkRulesDeleteFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type VulnerabilityAssessmentPolicyBaselineName

type VulnerabilityAssessmentPolicyBaselineName string

VulnerabilityAssessmentPolicyBaselineName enumerates the values for vulnerability assessment policy baseline name.

const (
	// VulnerabilityAssessmentPolicyBaselineNameDefault ...
	VulnerabilityAssessmentPolicyBaselineNameDefault VulnerabilityAssessmentPolicyBaselineName = "default"
	// VulnerabilityAssessmentPolicyBaselineNameMaster ...
	VulnerabilityAssessmentPolicyBaselineNameMaster VulnerabilityAssessmentPolicyBaselineName = "master"
)

func PossibleVulnerabilityAssessmentPolicyBaselineNameValues

func PossibleVulnerabilityAssessmentPolicyBaselineNameValues() []VulnerabilityAssessmentPolicyBaselineName

PossibleVulnerabilityAssessmentPolicyBaselineNameValues returns an array of possible values for the VulnerabilityAssessmentPolicyBaselineName const type.

type VulnerabilityAssessmentRecurringScansProperties

type VulnerabilityAssessmentRecurringScansProperties struct {
	// IsEnabled - Recurring scans state.
	IsEnabled *bool `json:"isEnabled,omitempty"`
	// EmailSubscriptionAdmins - Specifies that the schedule scan notification will be is sent to the subscription administrators.
	EmailSubscriptionAdmins *bool `json:"emailSubscriptionAdmins,omitempty"`
	// Emails - Specifies an array of e-mail addresses to which the scan notification is sent.
	Emails *[]string `json:"emails,omitempty"`
}

VulnerabilityAssessmentRecurringScansProperties properties of a Vulnerability Assessment recurring scans.

type VulnerabilityAssessmentScanError

type VulnerabilityAssessmentScanError struct {
	// Code - READ-ONLY; The error code.
	Code *string `json:"code,omitempty"`
	// Message - READ-ONLY; The error message.
	Message *string `json:"message,omitempty"`
}

VulnerabilityAssessmentScanError properties of a vulnerability assessment scan error.

type VulnerabilityAssessmentScanRecord

type VulnerabilityAssessmentScanRecord struct {
	autorest.Response `json:"-"`
	// VulnerabilityAssessmentScanRecordProperties - Resource properties.
	*VulnerabilityAssessmentScanRecordProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

VulnerabilityAssessmentScanRecord a vulnerability assessment scan record.

func (VulnerabilityAssessmentScanRecord) MarshalJSON

func (vasr VulnerabilityAssessmentScanRecord) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VulnerabilityAssessmentScanRecord.

func (*VulnerabilityAssessmentScanRecord) UnmarshalJSON

func (vasr *VulnerabilityAssessmentScanRecord) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for VulnerabilityAssessmentScanRecord struct.

type VulnerabilityAssessmentScanRecordListResult

type VulnerabilityAssessmentScanRecordListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]VulnerabilityAssessmentScanRecord `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

VulnerabilityAssessmentScanRecordListResult a list of vulnerability assessment scan records.

func (VulnerabilityAssessmentScanRecordListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type VulnerabilityAssessmentScanRecordListResultIterator

type VulnerabilityAssessmentScanRecordListResultIterator struct {
	// contains filtered or unexported fields
}

VulnerabilityAssessmentScanRecordListResultIterator provides access to a complete listing of VulnerabilityAssessmentScanRecord values.

func NewVulnerabilityAssessmentScanRecordListResultIterator

func NewVulnerabilityAssessmentScanRecordListResultIterator(page VulnerabilityAssessmentScanRecordListResultPage) VulnerabilityAssessmentScanRecordListResultIterator

Creates a new instance of the VulnerabilityAssessmentScanRecordListResultIterator type.

func (*VulnerabilityAssessmentScanRecordListResultIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*VulnerabilityAssessmentScanRecordListResultIterator) NextWithContext

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (VulnerabilityAssessmentScanRecordListResultIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (VulnerabilityAssessmentScanRecordListResultIterator) Response

Response returns the raw server response from the last page request.

func (VulnerabilityAssessmentScanRecordListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type VulnerabilityAssessmentScanRecordListResultPage

type VulnerabilityAssessmentScanRecordListResultPage struct {
	// contains filtered or unexported fields
}

VulnerabilityAssessmentScanRecordListResultPage contains a page of VulnerabilityAssessmentScanRecord values.

func NewVulnerabilityAssessmentScanRecordListResultPage

Creates a new instance of the VulnerabilityAssessmentScanRecordListResultPage type.

func (*VulnerabilityAssessmentScanRecordListResultPage) Next

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*VulnerabilityAssessmentScanRecordListResultPage) NextWithContext

func (page *VulnerabilityAssessmentScanRecordListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (VulnerabilityAssessmentScanRecordListResultPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (VulnerabilityAssessmentScanRecordListResultPage) Response

Response returns the raw server response from the last page request.

func (VulnerabilityAssessmentScanRecordListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type VulnerabilityAssessmentScanRecordProperties

type VulnerabilityAssessmentScanRecordProperties struct {
	// ScanID - READ-ONLY; The scan ID.
	ScanID *string `json:"scanId,omitempty"`
	// TriggerType - READ-ONLY; The scan trigger type. Possible values include: 'VulnerabilityAssessmentScanTriggerTypeOnDemand', 'VulnerabilityAssessmentScanTriggerTypeRecurring'
	TriggerType VulnerabilityAssessmentScanTriggerType `json:"triggerType,omitempty"`
	// State - READ-ONLY; The scan status. Possible values include: 'VulnerabilityAssessmentScanStatePassed', 'VulnerabilityAssessmentScanStateFailed', 'VulnerabilityAssessmentScanStateFailedToRun', 'VulnerabilityAssessmentScanStateInProgress'
	State VulnerabilityAssessmentScanState `json:"state,omitempty"`
	// StartTime - READ-ONLY; The scan start time (UTC).
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - READ-ONLY; The scan end time (UTC).
	EndTime *date.Time `json:"endTime,omitempty"`
	// Errors - READ-ONLY; The scan errors.
	Errors *[]VulnerabilityAssessmentScanError `json:"errors,omitempty"`
	// StorageContainerPath - READ-ONLY; The scan results storage container path.
	StorageContainerPath *string `json:"storageContainerPath,omitempty"`
	// NumberOfFailedSecurityChecks - READ-ONLY; The number of failed security checks.
	NumberOfFailedSecurityChecks *int32 `json:"numberOfFailedSecurityChecks,omitempty"`
}

VulnerabilityAssessmentScanRecordProperties properties of a vulnerability assessment scan record.

type VulnerabilityAssessmentScanState

type VulnerabilityAssessmentScanState string

VulnerabilityAssessmentScanState enumerates the values for vulnerability assessment scan state.

const (
	// VulnerabilityAssessmentScanStateFailed ...
	VulnerabilityAssessmentScanStateFailed VulnerabilityAssessmentScanState = "Failed"
	// VulnerabilityAssessmentScanStateFailedToRun ...
	VulnerabilityAssessmentScanStateFailedToRun VulnerabilityAssessmentScanState = "FailedToRun"
	// VulnerabilityAssessmentScanStateInProgress ...
	VulnerabilityAssessmentScanStateInProgress VulnerabilityAssessmentScanState = "InProgress"
	// VulnerabilityAssessmentScanStatePassed ...
	VulnerabilityAssessmentScanStatePassed VulnerabilityAssessmentScanState = "Passed"
)

func PossibleVulnerabilityAssessmentScanStateValues

func PossibleVulnerabilityAssessmentScanStateValues() []VulnerabilityAssessmentScanState

PossibleVulnerabilityAssessmentScanStateValues returns an array of possible values for the VulnerabilityAssessmentScanState const type.

type VulnerabilityAssessmentScanTriggerType

type VulnerabilityAssessmentScanTriggerType string

VulnerabilityAssessmentScanTriggerType enumerates the values for vulnerability assessment scan trigger type.

const (
	// VulnerabilityAssessmentScanTriggerTypeOnDemand ...
	VulnerabilityAssessmentScanTriggerTypeOnDemand VulnerabilityAssessmentScanTriggerType = "OnDemand"
	// VulnerabilityAssessmentScanTriggerTypeRecurring ...
	VulnerabilityAssessmentScanTriggerTypeRecurring VulnerabilityAssessmentScanTriggerType = "Recurring"
)

func PossibleVulnerabilityAssessmentScanTriggerTypeValues

func PossibleVulnerabilityAssessmentScanTriggerTypeValues() []VulnerabilityAssessmentScanTriggerType

PossibleVulnerabilityAssessmentScanTriggerTypeValues returns an array of possible values for the VulnerabilityAssessmentScanTriggerType const type.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL