sql

package
v68.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Deprecated: Please note, this package has been deprecated. A replacement package is available github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/sql/armsql(https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/sql/armsql). We strongly encourage you to upgrade to continue receiving updates. See [Migration Guide](https://aka.ms/azsdk/golang/t2/migration) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details.

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 AdministratorListResult

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

AdministratorListResult a list of active directory administrators.

func (AdministratorListResult) IsEmpty

func (alr AdministratorListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (AdministratorListResult) MarshalJSON

func (alr AdministratorListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AdministratorListResult.

type AdministratorListResultIterator

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

AdministratorListResultIterator provides access to a complete listing of ServerAzureADAdministrator values.

func NewAdministratorListResultIterator

func NewAdministratorListResultIterator(page AdministratorListResultPage) AdministratorListResultIterator

Creates a new instance of the AdministratorListResultIterator type.

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

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

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

func (AdministratorListResultIterator) NotDone

func (iter AdministratorListResultIterator) NotDone() bool

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

func (AdministratorListResultIterator) Response

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

func (AdministratorListResultIterator) Value

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

type AdministratorListResultPage

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

AdministratorListResultPage contains a page of ServerAzureADAdministrator values.

func NewAdministratorListResultPage

Creates a new instance of the AdministratorListResultPage type.

func (*AdministratorListResultPage) Next

func (page *AdministratorListResultPage) Next() error

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

func (*AdministratorListResultPage) NextWithContext

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

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

func (AdministratorListResultPage) NotDone

func (page AdministratorListResultPage) NotDone() bool

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

func (AdministratorListResultPage) Response

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

func (AdministratorListResultPage) Values

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

type AdministratorProperties

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

AdministratorProperties properties of a active directory administrator.

func (AdministratorProperties) MarshalJSON

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

MarshalJSON is the custom marshaler for AdministratorProperties.

type AdministratorType

type AdministratorType string

AdministratorType enumerates the values for administrator type.

const (
	// AdministratorTypeActiveDirectory ...
	AdministratorTypeActiveDirectory AdministratorType = "ActiveDirectory"
)

func PossibleAdministratorTypeValues

func PossibleAdministratorTypeValues() []AdministratorType

PossibleAdministratorTypeValues returns an array of possible values for the AdministratorType const type.

type AdvancedThreatProtectionProperties

type AdvancedThreatProtectionProperties struct {
	// State - Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server. Possible values include: 'AdvancedThreatProtectionStateNew', 'AdvancedThreatProtectionStateEnabled', 'AdvancedThreatProtectionStateDisabled'
	State AdvancedThreatProtectionState `json:"state,omitempty"`
	// CreationTime - READ-ONLY; Specifies the UTC creation time of the policy.
	CreationTime *date.Time `json:"creationTime,omitempty"`
}

AdvancedThreatProtectionProperties properties of an Advanced Threat Protection state.

func (AdvancedThreatProtectionProperties) MarshalJSON

func (atpp AdvancedThreatProtectionProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AdvancedThreatProtectionProperties.

type AdvancedThreatProtectionState

type AdvancedThreatProtectionState string

AdvancedThreatProtectionState enumerates the values for advanced threat protection state.

const (
	// AdvancedThreatProtectionStateDisabled ...
	AdvancedThreatProtectionStateDisabled AdvancedThreatProtectionState = "Disabled"
	// AdvancedThreatProtectionStateEnabled ...
	AdvancedThreatProtectionStateEnabled AdvancedThreatProtectionState = "Enabled"
	// AdvancedThreatProtectionStateNew ...
	AdvancedThreatProtectionStateNew AdvancedThreatProtectionState = "New"
)

func PossibleAdvancedThreatProtectionStateValues

func PossibleAdvancedThreatProtectionStateValues() []AdvancedThreatProtectionState

PossibleAdvancedThreatProtectionStateValues returns an array of possible values for the AdvancedThreatProtectionState const type.

type Advisor

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

Advisor database, Server or Elastic Pool Advisor.

func (Advisor) MarshalJSON

func (a Advisor) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Advisor.

func (*Advisor) UnmarshalJSON

func (a *Advisor) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Advisor struct.

type AdvisorProperties

type AdvisorProperties struct {
	// AdvisorStatus - READ-ONLY; Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'. Possible values include: 'AdvisorStatusGA', 'AdvisorStatusPublicPreview', 'AdvisorStatusLimitedPublicPreview', 'AdvisorStatusPrivatePreview'
	AdvisorStatus AdvisorStatus `json:"advisorStatus,omitempty"`
	// AutoExecuteStatus - Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'. Possible values include: 'AutoExecuteStatusEnabled', 'AutoExecuteStatusDisabled', 'AutoExecuteStatusDefault'
	AutoExecuteStatus AutoExecuteStatus `json:"autoExecuteStatus,omitempty"`
	// AutoExecuteStatusInheritedFrom - READ-ONLY; Gets the resource from which current value of auto-execute status is inherited. Auto-execute status can be set on (and inherited from) different levels in the resource hierarchy. Possible values are 'Subscription', 'Server', 'ElasticPool', 'Database' and 'Default' (when status is not explicitly set on any level). Possible values include: 'AutoExecuteStatusInheritedFromDefault', 'AutoExecuteStatusInheritedFromSubscription', 'AutoExecuteStatusInheritedFromServer', 'AutoExecuteStatusInheritedFromElasticPool', 'AutoExecuteStatusInheritedFromDatabase'
	AutoExecuteStatusInheritedFrom AutoExecuteStatusInheritedFrom `json:"autoExecuteStatusInheritedFrom,omitempty"`
	// RecommendationsStatus - READ-ONLY; Gets that status of recommendations for this advisor and reason for not having any recommendations. Possible values include, but are not limited to, 'Ok' (Recommendations available),LowActivity (not enough workload to analyze), 'DbSeemsTuned' (Database is doing well), etc.
	RecommendationsStatus *string `json:"recommendationsStatus,omitempty"`
	// LastChecked - READ-ONLY; Gets the time when the current resource was analyzed for recommendations by this advisor.
	LastChecked *date.Time `json:"lastChecked,omitempty"`
	// RecommendedActions - READ-ONLY; Gets the recommended actions for this advisor.
	RecommendedActions *[]RecommendedAction `json:"recommendedActions,omitempty"`
}

AdvisorProperties properties for a Database, Server or Elastic Pool Advisor.

func (AdvisorProperties) MarshalJSON

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

MarshalJSON is the custom marshaler for AdvisorProperties.

type AdvisorStatus

type AdvisorStatus string

AdvisorStatus enumerates the values for advisor status.

const (
	// AdvisorStatusGA ...
	AdvisorStatusGA AdvisorStatus = "GA"
	// AdvisorStatusLimitedPublicPreview ...
	AdvisorStatusLimitedPublicPreview AdvisorStatus = "LimitedPublicPreview"
	// AdvisorStatusPrivatePreview ...
	AdvisorStatusPrivatePreview AdvisorStatus = "PrivatePreview"
	// AdvisorStatusPublicPreview ...
	AdvisorStatusPublicPreview AdvisorStatus = "PublicPreview"
)

func PossibleAdvisorStatusValues

func PossibleAdvisorStatusValues() []AdvisorStatus

PossibleAdvisorStatusValues returns an array of possible values for the AdvisorStatus const type.

type AgentClient

type AgentClient struct {
	BaseClient
}

AgentClient 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 NewAgentClient

func NewAgentClient(subscriptionID string) AgentClient

NewAgentClient creates an instance of the AgentClient client.

func NewAgentClientWithBaseURI

func NewAgentClientWithBaseURI(baseURI string, subscriptionID string) AgentClient

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

func (AgentClient) CreateOrUpdate

func (client AgentClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters AgentConfiguration) (result AgentConfiguration, err error)

CreateOrUpdate puts new sql agent configuration to 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 (AgentClient) CreateOrUpdatePreparer

func (client AgentClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters AgentConfiguration) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (AgentClient) CreateOrUpdateResponder

func (client AgentClient) CreateOrUpdateResponder(resp *http.Response) (result AgentConfiguration, err error)

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

func (AgentClient) CreateOrUpdateSender

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

func (client AgentClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string) (result AgentConfiguration, err error)

Get gets current instance sql agent 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. managedInstanceName - the name of the managed instance.

func (AgentClient) GetPreparer

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

GetPreparer prepares the Get request.

func (AgentClient) GetResponder

func (client AgentClient) GetResponder(resp *http.Response) (result AgentConfiguration, err error)

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

func (AgentClient) GetSender

func (client AgentClient) 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 AgentConfiguration

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

AgentConfiguration a recoverable managed database resource.

func (AgentConfiguration) MarshalJSON

func (ac AgentConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AgentConfiguration.

func (*AgentConfiguration) UnmarshalJSON

func (ac *AgentConfiguration) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AgentConfiguration struct.

type AgentConfigurationProperties

type AgentConfigurationProperties struct {
	// State - The state of Sql Agent. Possible values include: 'StateEnabled', 'StateDisabled'
	State State `json:"state,omitempty"`
}

AgentConfigurationProperties sql agent configuration properties.

type AggregationFunctionType

type AggregationFunctionType string

AggregationFunctionType enumerates the values for aggregation function type.

const (
	// AggregationFunctionTypeAvg ...
	AggregationFunctionTypeAvg AggregationFunctionType = "avg"
	// AggregationFunctionTypeMax ...
	AggregationFunctionTypeMax AggregationFunctionType = "max"
	// AggregationFunctionTypeMin ...
	AggregationFunctionTypeMin AggregationFunctionType = "min"
	// AggregationFunctionTypeStdev ...
	AggregationFunctionTypeStdev AggregationFunctionType = "stdev"
	// AggregationFunctionTypeSum ...
	AggregationFunctionTypeSum AggregationFunctionType = "sum"
)

func PossibleAggregationFunctionTypeValues

func PossibleAggregationFunctionTypeValues() []AggregationFunctionType

PossibleAggregationFunctionTypeValues returns an array of possible values for the AggregationFunctionType const type.

type AutoExecuteStatus

type AutoExecuteStatus string

AutoExecuteStatus enumerates the values for auto execute status.

const (
	// AutoExecuteStatusDefault ...
	AutoExecuteStatusDefault AutoExecuteStatus = "Default"
	// AutoExecuteStatusDisabled ...
	AutoExecuteStatusDisabled AutoExecuteStatus = "Disabled"
	// AutoExecuteStatusEnabled ...
	AutoExecuteStatusEnabled AutoExecuteStatus = "Enabled"
)

func PossibleAutoExecuteStatusValues

func PossibleAutoExecuteStatusValues() []AutoExecuteStatus

PossibleAutoExecuteStatusValues returns an array of possible values for the AutoExecuteStatus const type.

type AutoExecuteStatusInheritedFrom

type AutoExecuteStatusInheritedFrom string

AutoExecuteStatusInheritedFrom enumerates the values for auto execute status inherited from.

const (
	// AutoExecuteStatusInheritedFromDatabase ...
	AutoExecuteStatusInheritedFromDatabase AutoExecuteStatusInheritedFrom = "Database"
	// AutoExecuteStatusInheritedFromDefault ...
	AutoExecuteStatusInheritedFromDefault AutoExecuteStatusInheritedFrom = "Default"
	// AutoExecuteStatusInheritedFromElasticPool ...
	AutoExecuteStatusInheritedFromElasticPool AutoExecuteStatusInheritedFrom = "ElasticPool"
	// AutoExecuteStatusInheritedFromServer ...
	AutoExecuteStatusInheritedFromServer AutoExecuteStatusInheritedFrom = "Server"
	// AutoExecuteStatusInheritedFromSubscription ...
	AutoExecuteStatusInheritedFromSubscription AutoExecuteStatusInheritedFrom = "Subscription"
)

func PossibleAutoExecuteStatusInheritedFromValues

func PossibleAutoExecuteStatusInheritedFromValues() []AutoExecuteStatusInheritedFrom

PossibleAutoExecuteStatusInheritedFromValues returns an array of possible values for the AutoExecuteStatusInheritedFrom const type.

type AutoPauseDelayTimeRange

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

AutoPauseDelayTimeRange supported auto pause delay time range

func (AutoPauseDelayTimeRange) MarshalJSON

func (apdtr AutoPauseDelayTimeRange) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AutoPauseDelayTimeRange.

type AutomaticTuningDisabledReason

type AutomaticTuningDisabledReason string

AutomaticTuningDisabledReason enumerates the values for automatic tuning disabled reason.

const (
	// AutomaticTuningDisabledReasonAutoConfigured ...
	AutomaticTuningDisabledReasonAutoConfigured AutomaticTuningDisabledReason = "AutoConfigured"
	// AutomaticTuningDisabledReasonDefault ...
	AutomaticTuningDisabledReasonDefault AutomaticTuningDisabledReason = "Default"
	// AutomaticTuningDisabledReasonDisabled ...
	AutomaticTuningDisabledReasonDisabled AutomaticTuningDisabledReason = "Disabled"
	// AutomaticTuningDisabledReasonInheritedFromServer ...
	AutomaticTuningDisabledReasonInheritedFromServer AutomaticTuningDisabledReason = "InheritedFromServer"
	// AutomaticTuningDisabledReasonNotSupported ...
	AutomaticTuningDisabledReasonNotSupported AutomaticTuningDisabledReason = "NotSupported"
	// AutomaticTuningDisabledReasonQueryStoreOff ...
	AutomaticTuningDisabledReasonQueryStoreOff AutomaticTuningDisabledReason = "QueryStoreOff"
	// AutomaticTuningDisabledReasonQueryStoreReadOnly ...
	AutomaticTuningDisabledReasonQueryStoreReadOnly 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 (
	// AutomaticTuningModeAuto ...
	AutomaticTuningModeAuto AutomaticTuningMode = "Auto"
	// AutomaticTuningModeCustom ...
	AutomaticTuningModeCustom AutomaticTuningMode = "Custom"
	// AutomaticTuningModeInherit ...
	AutomaticTuningModeInherit AutomaticTuningMode = "Inherit"
	// AutomaticTuningModeUnspecified ...
	AutomaticTuningModeUnspecified 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 (
	// AutomaticTuningOptionModeActualOff ...
	AutomaticTuningOptionModeActualOff AutomaticTuningOptionModeActual = "Off"
	// AutomaticTuningOptionModeActualOn ...
	AutomaticTuningOptionModeActualOn 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: 'AutomaticTuningOptionModeActualOff', 'AutomaticTuningOptionModeActualOn'
	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: 'AutomaticTuningDisabledReasonDefault', 'AutomaticTuningDisabledReasonDisabled', 'AutomaticTuningDisabledReasonAutoConfigured', 'AutomaticTuningDisabledReasonInheritedFromServer', 'AutomaticTuningDisabledReasonQueryStoreOff', 'AutomaticTuningDisabledReasonQueryStoreReadOnly', 'AutomaticTuningDisabledReasonNotSupported'
	ReasonDesc AutomaticTuningDisabledReason `json:"reasonDesc,omitempty"`
}

AutomaticTuningOptions automatic tuning properties for individual advisors.

func (AutomaticTuningOptions) MarshalJSON

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

MarshalJSON is the custom marshaler for AutomaticTuningOptions.

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: 'AutomaticTuningOptionModeActualOff', 'AutomaticTuningOptionModeActualOn'
	ActualState AutomaticTuningOptionModeActual `json:"actualState,omitempty"`
	// ReasonCode - READ-ONLY; Reason code if desired and actual state are different.
	ReasonCode *int32 `json:"reasonCode,omitempty"`
	// ReasonDesc - READ-ONLY; Reason description if desired and actual state are different. Possible values include: 'AutomaticTuningServerReasonDefault', 'AutomaticTuningServerReasonDisabled', 'AutomaticTuningServerReasonAutoConfigured'
	ReasonDesc AutomaticTuningServerReason `json:"reasonDesc,omitempty"`
}

AutomaticTuningServerOptions automatic tuning properties for individual advisors.

func (AutomaticTuningServerOptions) MarshalJSON

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

MarshalJSON is the custom marshaler for AutomaticTuningServerOptions.

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 AzureADOnlyAuthListResult

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

AzureADOnlyAuthListResult a list of active directory only authentications.

func (AzureADOnlyAuthListResult) IsEmpty

func (aaoalr AzureADOnlyAuthListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (AzureADOnlyAuthListResult) MarshalJSON

func (aaoalr AzureADOnlyAuthListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AzureADOnlyAuthListResult.

type AzureADOnlyAuthListResultIterator

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

AzureADOnlyAuthListResultIterator provides access to a complete listing of ServerAzureADOnlyAuthentication values.

func NewAzureADOnlyAuthListResultIterator

func NewAzureADOnlyAuthListResultIterator(page AzureADOnlyAuthListResultPage) AzureADOnlyAuthListResultIterator

Creates a new instance of the AzureADOnlyAuthListResultIterator type.

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

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

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

func (AzureADOnlyAuthListResultIterator) NotDone

func (iter AzureADOnlyAuthListResultIterator) NotDone() bool

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

func (AzureADOnlyAuthListResultIterator) Response

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

func (AzureADOnlyAuthListResultIterator) Value

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

type AzureADOnlyAuthListResultPage

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

AzureADOnlyAuthListResultPage contains a page of ServerAzureADOnlyAuthentication values.

func NewAzureADOnlyAuthListResultPage

Creates a new instance of the AzureADOnlyAuthListResultPage type.

func (*AzureADOnlyAuthListResultPage) Next

func (page *AzureADOnlyAuthListResultPage) Next() error

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

func (*AzureADOnlyAuthListResultPage) NextWithContext

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

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

func (AzureADOnlyAuthListResultPage) NotDone

func (page AzureADOnlyAuthListResultPage) NotDone() bool

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

func (AzureADOnlyAuthListResultPage) Response

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

func (AzureADOnlyAuthListResultPage) Values

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

type AzureADOnlyAuthProperties

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

AzureADOnlyAuthProperties properties of a active directory only authentication.

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

func (BackupShortTermRetentionPoliciesClient) CreateOrUpdate

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.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(BackupShortTermRetentionPoliciesClient) (BackupShortTermRetentionPolicy, error)
}

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

func (*BackupShortTermRetentionPoliciesCreateOrUpdateFuture) UnmarshalJSON

func (future *BackupShortTermRetentionPoliciesCreateOrUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type BackupShortTermRetentionPoliciesUpdateFuture

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

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

func (*BackupShortTermRetentionPoliciesUpdateFuture) UnmarshalJSON

func (future *BackupShortTermRetentionPoliciesUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

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.

func (BackupShortTermRetentionPolicyListResult) MarshalJSON

func (bstrplr BackupShortTermRetentionPolicyListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for BackupShortTermRetentionPolicyListResult.

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"`
	// DiffBackupIntervalInHours - The differential backup interval in hours. This is how many interval hours between each differential backup will be supported. This is only applicable to live databases but not dropped databases.
	DiffBackupIntervalInHours *int32 `json:"diffBackupIntervalInHours,omitempty"`
}

BackupShortTermRetentionPolicyProperties properties of a short term retention policy

type BackupStorageRedundancy

type BackupStorageRedundancy string

BackupStorageRedundancy enumerates the values for backup storage redundancy.

const (
	// BackupStorageRedundancyGeo ...
	BackupStorageRedundancyGeo BackupStorageRedundancy = "Geo"
	// BackupStorageRedundancyGeoZone ...
	BackupStorageRedundancyGeoZone BackupStorageRedundancy = "GeoZone"
	// BackupStorageRedundancyLocal ...
	BackupStorageRedundancyLocal BackupStorageRedundancy = "Local"
	// BackupStorageRedundancyZone ...
	BackupStorageRedundancyZone BackupStorageRedundancy = "Zone"
)

func PossibleBackupStorageRedundancyValues

func PossibleBackupStorageRedundancyValues() []BackupStorageRedundancy

PossibleBackupStorageRedundancyValues returns an array of possible values for the BackupStorageRedundancy const type.

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

type BaseLongTermRetentionPolicyProperties

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

BaseLongTermRetentionPolicyProperties properties of a long term retention policy

type Baseline

type Baseline struct {
	// ExpectedResults - READ-ONLY; SQL Vulnerability Assessment baseline expected results
	ExpectedResults *[][]string `json:"expectedResults,omitempty"`
	// UpdatedTime - READ-ONLY; SQL Vulnerability Assessment baseline update time (UTC)
	UpdatedTime *date.Time `json:"updatedTime,omitempty"`
}

Baseline SQL Vulnerability Assessment baseline Details

func (Baseline) MarshalJSON

func (b Baseline) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Baseline.

type BaselineAdjustedResult

type BaselineAdjustedResult struct {
	// Baseline - READ-ONLY; SQL Vulnerability Assessment baseline details
	Baseline *Baseline `json:"baseline,omitempty"`
	// Status - READ-ONLY; SQL Vulnerability Assessment baseline status. Possible values include: 'RuleStatusNonFinding', 'RuleStatusFinding', 'RuleStatusInternalError'
	Status RuleStatus `json:"status,omitempty"`
	// ResultsNotInBaseline - READ-ONLY; SQL Vulnerability Assessment results that are not in baseline
	ResultsNotInBaseline *[][]string `json:"resultsNotInBaseline,omitempty"`
	// ResultsOnlyInBaseline - READ-ONLY; SQL Vulnerability Assessment results that are in baseline.
	ResultsOnlyInBaseline *[][]string `json:"resultsOnlyInBaseline,omitempty"`
}

BaselineAdjustedResult SQL Vulnerability Assessment baseline adjusted results

func (BaselineAdjustedResult) MarshalJSON

func (bar BaselineAdjustedResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for BaselineAdjustedResult.

type BenchmarkReference

type BenchmarkReference struct {
	// Benchmark - READ-ONLY; SQL Vulnerability Assessment benchmark name
	Benchmark *string `json:"benchmark,omitempty"`
	// Reference - READ-ONLY; SQL Vulnerability Assessment benchmark reference.
	Reference *string `json:"reference,omitempty"`
}

BenchmarkReference SQL Vulnerability Assessment benchmark reference

func (BenchmarkReference) MarshalJSON

func (br BenchmarkReference) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for BenchmarkReference.

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

func (CapabilitiesClient) ListByLocation

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 (
	// CapabilityGroupSupportedEditions ...
	CapabilityGroupSupportedEditions CapabilityGroup = "supportedEditions"
	// CapabilityGroupSupportedElasticPoolEditions ...
	CapabilityGroupSupportedElasticPoolEditions CapabilityGroup = "supportedElasticPoolEditions"
	// CapabilityGroupSupportedInstancePoolEditions ...
	CapabilityGroupSupportedInstancePoolEditions CapabilityGroup = "supportedInstancePoolEditions"
	// CapabilityGroupSupportedManagedInstanceEditions ...
	CapabilityGroupSupportedManagedInstanceEditions CapabilityGroup = "supportedManagedInstanceEditions"
	// CapabilityGroupSupportedManagedInstanceVersions ...
	CapabilityGroupSupportedManagedInstanceVersions 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 (
	// CatalogCollationTypeDATABASEDEFAULT ...
	CatalogCollationTypeDATABASEDEFAULT CatalogCollationType = "DATABASE_DEFAULT"
	// CatalogCollationTypeSQLLatin1GeneralCP1CIAS ...
	CatalogCollationTypeSQLLatin1GeneralCP1CIAS 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 (
	// CheckNameAvailabilityReasonAlreadyExists ...
	CheckNameAvailabilityReasonAlreadyExists CheckNameAvailabilityReason = "AlreadyExists"
	// CheckNameAvailabilityReasonInvalid ...
	CheckNameAvailabilityReasonInvalid 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 *string `json:"name,omitempty"`
	Type *string `json:"type,omitempty"`
}

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

type CheckNameAvailabilityResponse

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

CheckNameAvailabilityResponse the result of a name availability check.

func (CheckNameAvailabilityResponse) MarshalJSON

func (cnar CheckNameAvailabilityResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CheckNameAvailabilityResponse.

type ColumnDataType

type ColumnDataType string

ColumnDataType enumerates the values for column data type.

const (
	// ColumnDataTypeBigint ...
	ColumnDataTypeBigint ColumnDataType = "bigint"
	// ColumnDataTypeBinary ...
	ColumnDataTypeBinary ColumnDataType = "binary"
	// ColumnDataTypeBit ...
	ColumnDataTypeBit ColumnDataType = "bit"
	// ColumnDataTypeChar ...
	ColumnDataTypeChar ColumnDataType = "char"
	// ColumnDataTypeDate ...
	ColumnDataTypeDate ColumnDataType = "date"
	// ColumnDataTypeDatetime ...
	ColumnDataTypeDatetime ColumnDataType = "datetime"
	// ColumnDataTypeDatetime2 ...
	ColumnDataTypeDatetime2 ColumnDataType = "datetime2"
	// ColumnDataTypeDatetimeoffset ...
	ColumnDataTypeDatetimeoffset ColumnDataType = "datetimeoffset"
	// ColumnDataTypeDecimal ...
	ColumnDataTypeDecimal ColumnDataType = "decimal"
	// ColumnDataTypeFloat ...
	ColumnDataTypeFloat ColumnDataType = "float"
	// ColumnDataTypeGeography ...
	ColumnDataTypeGeography ColumnDataType = "geography"
	// ColumnDataTypeGeometry ...
	ColumnDataTypeGeometry ColumnDataType = "geometry"
	// ColumnDataTypeHierarchyid ...
	ColumnDataTypeHierarchyid ColumnDataType = "hierarchyid"
	// ColumnDataTypeImage ...
	ColumnDataTypeImage ColumnDataType = "image"
	// ColumnDataTypeInt ...
	ColumnDataTypeInt ColumnDataType = "int"
	// ColumnDataTypeMoney ...
	ColumnDataTypeMoney ColumnDataType = "money"
	// ColumnDataTypeNchar ...
	ColumnDataTypeNchar ColumnDataType = "nchar"
	// ColumnDataTypeNtext ...
	ColumnDataTypeNtext ColumnDataType = "ntext"
	// ColumnDataTypeNumeric ...
	ColumnDataTypeNumeric ColumnDataType = "numeric"
	// ColumnDataTypeNvarchar ...
	ColumnDataTypeNvarchar ColumnDataType = "nvarchar"
	// ColumnDataTypeReal ...
	ColumnDataTypeReal ColumnDataType = "real"
	// ColumnDataTypeSmalldatetime ...
	ColumnDataTypeSmalldatetime ColumnDataType = "smalldatetime"
	// ColumnDataTypeSmallint ...
	ColumnDataTypeSmallint ColumnDataType = "smallint"
	// ColumnDataTypeSmallmoney ...
	ColumnDataTypeSmallmoney ColumnDataType = "smallmoney"
	// ColumnDataTypeSQLVariant ...
	ColumnDataTypeSQLVariant ColumnDataType = "sql_variant"
	// ColumnDataTypeSysname ...
	ColumnDataTypeSysname ColumnDataType = "sysname"
	// ColumnDataTypeText ...
	ColumnDataTypeText ColumnDataType = "text"
	// ColumnDataTypeTime ...
	ColumnDataTypeTime ColumnDataType = "time"
	// ColumnDataTypeTimestamp ...
	ColumnDataTypeTimestamp ColumnDataType = "timestamp"
	// ColumnDataTypeTinyint ...
	ColumnDataTypeTinyint ColumnDataType = "tinyint"
	// ColumnDataTypeUniqueidentifier ...
	ColumnDataTypeUniqueidentifier ColumnDataType = "uniqueidentifier"
	// ColumnDataTypeVarbinary ...
	ColumnDataTypeVarbinary ColumnDataType = "varbinary"
	// ColumnDataTypeVarchar ...
	ColumnDataTypeVarchar ColumnDataType = "varchar"
	// ColumnDataTypeXML ...
	ColumnDataTypeXML ColumnDataType = "xml"
)

func PossibleColumnDataTypeValues

func PossibleColumnDataTypeValues() []ColumnDataType

PossibleColumnDataTypeValues returns an array of possible values for the ColumnDataType const type.

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 CopyLongTermRetentionBackupParameters

type CopyLongTermRetentionBackupParameters struct {
	// CopyLongTermRetentionBackupParametersProperties - Resource properties.
	*CopyLongTermRetentionBackupParametersProperties `json:"properties,omitempty"`
}

CopyLongTermRetentionBackupParameters contains the information necessary to perform long term retention backup copy operation.

func (CopyLongTermRetentionBackupParameters) MarshalJSON

func (cltrbp CopyLongTermRetentionBackupParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CopyLongTermRetentionBackupParameters.

func (*CopyLongTermRetentionBackupParameters) UnmarshalJSON

func (cltrbp *CopyLongTermRetentionBackupParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CopyLongTermRetentionBackupParameters struct.

type CopyLongTermRetentionBackupParametersProperties

type CopyLongTermRetentionBackupParametersProperties struct {
	// TargetSubscriptionID - The subscription that owns the target server
	TargetSubscriptionID *string `json:"targetSubscriptionId,omitempty"`
	// TargetResourceGroup - The resource group that owns the target server
	TargetResourceGroup *string `json:"targetResourceGroup,omitempty"`
	// TargetServerResourceID - The resource Id of the target server that owns the database
	TargetServerResourceID *string `json:"targetServerResourceId,omitempty"`
	// TargetServerFullyQualifiedDomainName - The fully qualified domain name of the target server
	TargetServerFullyQualifiedDomainName *string `json:"targetServerFullyQualifiedDomainName,omitempty"`
	// TargetDatabaseName - The name of the database owns the copied backup.
	TargetDatabaseName *string `json:"targetDatabaseName,omitempty"`
	// TargetBackupStorageRedundancy - The storage redundancy type of the copied backup. Possible values include: 'BackupStorageRedundancyGeo', 'BackupStorageRedundancyLocal', 'BackupStorageRedundancyZone', 'BackupStorageRedundancyGeoZone'
	TargetBackupStorageRedundancy BackupStorageRedundancy `json:"targetBackupStorageRedundancy,omitempty"`
}

CopyLongTermRetentionBackupParametersProperties contains the properties to perform long term retention backup copy 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 CreatedByType

type CreatedByType string

CreatedByType enumerates the values for created by type.

const (
	// CreatedByTypeApplication ...
	CreatedByTypeApplication CreatedByType = "Application"
	// CreatedByTypeKey ...
	CreatedByTypeKey CreatedByType = "Key"
	// CreatedByTypeManagedIdentity ...
	CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
	// CreatedByTypeUser ...
	CreatedByTypeUser CreatedByType = "User"
)

func PossibleCreatedByTypeValues

func PossibleCreatedByTypeValues() []CreatedByType

PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.

type DNSRefreshOperationStatus

type DNSRefreshOperationStatus string

DNSRefreshOperationStatus enumerates the values for dns refresh operation status.

const (
	// DNSRefreshOperationStatusFailed ...
	DNSRefreshOperationStatusFailed DNSRefreshOperationStatus = "Failed"
	// DNSRefreshOperationStatusInProgress ...
	DNSRefreshOperationStatusInProgress DNSRefreshOperationStatus = "InProgress"
	// DNSRefreshOperationStatusSucceeded ...
	DNSRefreshOperationStatusSucceeded DNSRefreshOperationStatus = "Succeeded"
)

func PossibleDNSRefreshOperationStatusValues

func PossibleDNSRefreshOperationStatusValues() []DNSRefreshOperationStatus

PossibleDNSRefreshOperationStatusValues returns an array of possible values for the DNSRefreshOperationStatus 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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (DataMaskingPoliciesClient) CreateOrUpdate

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.

func (DataMaskingPolicyProperties) MarshalJSON

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

MarshalJSON is the custom marshaler for DataMaskingPolicyProperties.

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.

func (DataMaskingRuleProperties) MarshalJSON

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

MarshalJSON is the custom marshaler for DataMaskingRuleProperties.

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

func (DataMaskingRulesClient) CreateOrUpdate

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 DataWarehouseUserActivities

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

DataWarehouseUserActivities user activities of a data warehouse

func (DataWarehouseUserActivities) MarshalJSON

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

MarshalJSON is the custom marshaler for DataWarehouseUserActivities.

func (*DataWarehouseUserActivities) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for DataWarehouseUserActivities struct.

type DataWarehouseUserActivitiesClient

type DataWarehouseUserActivitiesClient struct {
	BaseClient
}

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

func NewDataWarehouseUserActivitiesClient

func NewDataWarehouseUserActivitiesClient(subscriptionID string) DataWarehouseUserActivitiesClient

NewDataWarehouseUserActivitiesClient creates an instance of the DataWarehouseUserActivitiesClient client.

func NewDataWarehouseUserActivitiesClientWithBaseURI

func NewDataWarehouseUserActivitiesClientWithBaseURI(baseURI string, subscriptionID string) DataWarehouseUserActivitiesClient

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

func (DataWarehouseUserActivitiesClient) Get

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

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

func (DataWarehouseUserActivitiesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (DataWarehouseUserActivitiesClient) GetResponder

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

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

func (DataWarehouseUserActivitiesClient) GetSender

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

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

func (DataWarehouseUserActivitiesClient) ListByDatabase

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

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

func (DataWarehouseUserActivitiesClient) ListByDatabaseComplete

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

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

func (DataWarehouseUserActivitiesClient) ListByDatabasePreparer

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (DataWarehouseUserActivitiesClient) ListByDatabaseResponder

func (client DataWarehouseUserActivitiesClient) ListByDatabaseResponder(resp *http.Response) (result DataWarehouseUserActivitiesListResult, err error)

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

func (DataWarehouseUserActivitiesClient) ListByDatabaseSender

func (client DataWarehouseUserActivitiesClient) 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 DataWarehouseUserActivitiesListResult

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

DataWarehouseUserActivitiesListResult user activities of a data warehouse

func (DataWarehouseUserActivitiesListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

func (DataWarehouseUserActivitiesListResult) MarshalJSON

func (dwualr DataWarehouseUserActivitiesListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DataWarehouseUserActivitiesListResult.

type DataWarehouseUserActivitiesListResultIterator

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

DataWarehouseUserActivitiesListResultIterator provides access to a complete listing of DataWarehouseUserActivities values.

func NewDataWarehouseUserActivitiesListResultIterator

func NewDataWarehouseUserActivitiesListResultIterator(page DataWarehouseUserActivitiesListResultPage) DataWarehouseUserActivitiesListResultIterator

Creates a new instance of the DataWarehouseUserActivitiesListResultIterator type.

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

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

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

func (DataWarehouseUserActivitiesListResultIterator) Response

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

func (DataWarehouseUserActivitiesListResultIterator) Value

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

type DataWarehouseUserActivitiesListResultPage

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

DataWarehouseUserActivitiesListResultPage contains a page of DataWarehouseUserActivities values.

func NewDataWarehouseUserActivitiesListResultPage

Creates a new instance of the DataWarehouseUserActivitiesListResultPage type.

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

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

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

func (DataWarehouseUserActivitiesListResultPage) Response

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

func (DataWarehouseUserActivitiesListResultPage) Values

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

type DataWarehouseUserActivitiesProperties

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

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

func (DataWarehouseUserActivitiesProperties) MarshalJSON

func (dwuap DataWarehouseUserActivitiesProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DataWarehouseUserActivitiesProperties.

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"`
	// Identity - The Azure Active Directory identity of the database.
	Identity *DatabaseIdentity `json:"identity,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 DatabaseAdvancedThreatProtection

type DatabaseAdvancedThreatProtection struct {
	autorest.Response `json:"-"`
	// SystemData - READ-ONLY; SystemData of AdvancedThreatProtectionResource.
	SystemData *SystemData `json:"systemData,omitempty"`
	// AdvancedThreatProtectionProperties - Resource properties.
	*AdvancedThreatProtectionProperties `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"`
}

DatabaseAdvancedThreatProtection a database Advanced Threat Protection.

func (DatabaseAdvancedThreatProtection) MarshalJSON

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

MarshalJSON is the custom marshaler for DatabaseAdvancedThreatProtection.

func (*DatabaseAdvancedThreatProtection) UnmarshalJSON

func (datp *DatabaseAdvancedThreatProtection) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DatabaseAdvancedThreatProtection struct.

type DatabaseAdvancedThreatProtectionListResult

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

DatabaseAdvancedThreatProtectionListResult a list of the database's Advanced Threat Protection configurations.

func (DatabaseAdvancedThreatProtectionListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

func (DatabaseAdvancedThreatProtectionListResult) MarshalJSON

func (datplr DatabaseAdvancedThreatProtectionListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseAdvancedThreatProtectionListResult.

type DatabaseAdvancedThreatProtectionListResultIterator

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

DatabaseAdvancedThreatProtectionListResultIterator provides access to a complete listing of DatabaseAdvancedThreatProtection values.

func NewDatabaseAdvancedThreatProtectionListResultIterator

func NewDatabaseAdvancedThreatProtectionListResultIterator(page DatabaseAdvancedThreatProtectionListResultPage) DatabaseAdvancedThreatProtectionListResultIterator

Creates a new instance of the DatabaseAdvancedThreatProtectionListResultIterator type.

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

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

func (DatabaseAdvancedThreatProtectionListResultIterator) Response

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

func (DatabaseAdvancedThreatProtectionListResultIterator) Value

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

type DatabaseAdvancedThreatProtectionListResultPage

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

DatabaseAdvancedThreatProtectionListResultPage contains a page of DatabaseAdvancedThreatProtection values.

func NewDatabaseAdvancedThreatProtectionListResultPage

Creates a new instance of the DatabaseAdvancedThreatProtectionListResultPage type.

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

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

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

func (DatabaseAdvancedThreatProtectionListResultPage) Response

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

func (DatabaseAdvancedThreatProtectionListResultPage) Values

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

type DatabaseAdvancedThreatProtectionSettingsClient

type DatabaseAdvancedThreatProtectionSettingsClient struct {
	BaseClient
}

DatabaseAdvancedThreatProtectionSettingsClient 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 NewDatabaseAdvancedThreatProtectionSettingsClient

func NewDatabaseAdvancedThreatProtectionSettingsClient(subscriptionID string) DatabaseAdvancedThreatProtectionSettingsClient

NewDatabaseAdvancedThreatProtectionSettingsClient creates an instance of the DatabaseAdvancedThreatProtectionSettingsClient client.

func NewDatabaseAdvancedThreatProtectionSettingsClientWithBaseURI

func NewDatabaseAdvancedThreatProtectionSettingsClientWithBaseURI(baseURI string, subscriptionID string) DatabaseAdvancedThreatProtectionSettingsClient

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

func (DatabaseAdvancedThreatProtectionSettingsClient) CreateOrUpdate

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

CreateOrUpdate creates or updates a database's Advanced Threat Protection state. Parameters: resourceGroupName - the name of the resource group 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 Advanced Threat Protection state.

func (DatabaseAdvancedThreatProtectionSettingsClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DatabaseAdvancedThreatProtectionSettingsClient) CreateOrUpdateResponder

func (client DatabaseAdvancedThreatProtectionSettingsClient) CreateOrUpdateResponder(resp *http.Response) (result DatabaseAdvancedThreatProtection, err error)

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

func (DatabaseAdvancedThreatProtectionSettingsClient) CreateOrUpdateSender

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

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

Get gets a database's Advanced Threat Protection state. Parameters: resourceGroupName - the name of the resource group 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 (DatabaseAdvancedThreatProtectionSettingsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (DatabaseAdvancedThreatProtectionSettingsClient) GetResponder

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

func (DatabaseAdvancedThreatProtectionSettingsClient) GetSender

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

func (DatabaseAdvancedThreatProtectionSettingsClient) ListByDatabase

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

ListByDatabase gets a list of database's Advanced Threat Protection states. Parameters: resourceGroupName - the name of the resource group 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 (DatabaseAdvancedThreatProtectionSettingsClient) ListByDatabaseComplete

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

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

func (DatabaseAdvancedThreatProtectionSettingsClient) ListByDatabasePreparer

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (DatabaseAdvancedThreatProtectionSettingsClient) ListByDatabaseResponder

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

func (DatabaseAdvancedThreatProtectionSettingsClient) ListByDatabaseSender

func (client DatabaseAdvancedThreatProtectionSettingsClient) 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 DatabaseAdvisorsClient

type DatabaseAdvisorsClient struct {
	BaseClient
}

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

func NewDatabaseAdvisorsClient

func NewDatabaseAdvisorsClient(subscriptionID string) DatabaseAdvisorsClient

NewDatabaseAdvisorsClient creates an instance of the DatabaseAdvisorsClient client.

func NewDatabaseAdvisorsClientWithBaseURI

func NewDatabaseAdvisorsClientWithBaseURI(baseURI string, subscriptionID string) DatabaseAdvisorsClient

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

func (DatabaseAdvisorsClient) Get

func (client DatabaseAdvisorsClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string, advisorName string) (result Advisor, err error)

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

func (DatabaseAdvisorsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (DatabaseAdvisorsClient) GetResponder

func (client DatabaseAdvisorsClient) GetResponder(resp *http.Response) (result Advisor, err error)

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

func (DatabaseAdvisorsClient) GetSender

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

func (client DatabaseAdvisorsClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string, expand string) (result ListAdvisor, err error)

ListByDatabase gets a list of database advisors. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database. expand - the child resources to include in the response.

func (DatabaseAdvisorsClient) ListByDatabasePreparer

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (DatabaseAdvisorsClient) ListByDatabaseResponder

func (client DatabaseAdvisorsClient) ListByDatabaseResponder(resp *http.Response) (result ListAdvisor, err error)

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

func (DatabaseAdvisorsClient) ListByDatabaseSender

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

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

func (DatabaseAdvisorsClient) Update

func (client DatabaseAdvisorsClient) Update(ctx context.Context, resourceGroupName string, serverName string, databaseName string, advisorName string, parameters Advisor) (result Advisor, err error)

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

func (DatabaseAdvisorsClient) UpdatePreparer

func (client DatabaseAdvisorsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, advisorName string, parameters Advisor) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (DatabaseAdvisorsClient) UpdateResponder

func (client DatabaseAdvisorsClient) UpdateResponder(resp *http.Response) (result Advisor, err error)

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

func (DatabaseAdvisorsClient) UpdateSender

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

func (DatabaseAutomaticTuningClient) Get

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: 'AutomaticTuningModeInherit', 'AutomaticTuningModeCustom', 'AutomaticTuningModeAuto', 'AutomaticTuningModeUnspecified'
	DesiredState AutomaticTuningMode `json:"desiredState,omitempty"`
	// ActualState - READ-ONLY; Automatic tuning actual state. Possible values include: 'AutomaticTuningModeInherit', 'AutomaticTuningModeCustom', 'AutomaticTuningModeAuto', 'AutomaticTuningModeUnspecified'
	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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (DatabaseBlobAuditingPoliciesClient) CreateOrUpdate

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.

func (DatabaseBlobAuditingPolicyListResult) MarshalJSON

func (dbaplr DatabaseBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseBlobAuditingPolicyListResult.

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 {
	// 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
	// DBCC_GROUP
	// DATABASE_OWNERSHIP_CHANGE_GROUP
	// DATABASE_CHANGE_GROUP
	// LEDGER_OPERATION_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"`
	// 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"`
	// QueueDelayMs - Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed.
	// The default minimum value is 1000 (1 second). The maximum is 2,147,483,647.
	QueueDelayMs *int32 `json:"queueDelayMs,omitempty"`
	// IsManagedIdentityInUse - Specifies whether Managed Identity is used to access blob storage
	IsManagedIdentityInUse *bool `json:"isManagedIdentityInUse,omitempty"`
	// State - Specifies the state of the audit. 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 or isAzureMonitorTargetEnabled 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, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage.
	// Prerequisites for using managed identity authentication:
	// 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD).
	// 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity.
	// For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355)
	StorageAccountAccessKey *string `json:"storageAccountAccessKey,omitempty"`
	// StorageAccountSubscriptionID - Specifies the blob storage subscription Id.
	StorageAccountSubscriptionID *uuid.UUID `json:"storageAccountSubscriptionId,omitempty"`
}

DatabaseBlobAuditingPolicyProperties properties of a database blob auditing policy.

type DatabaseColumn

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

DatabaseColumn a database column resource.

func (DatabaseColumn) MarshalJSON

func (dc DatabaseColumn) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseColumn.

func (*DatabaseColumn) UnmarshalJSON

func (dc *DatabaseColumn) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DatabaseColumn struct.

type DatabaseColumnListResult

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

DatabaseColumnListResult a list of database columns.

func (DatabaseColumnListResult) IsEmpty

func (dclr DatabaseColumnListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (DatabaseColumnListResult) MarshalJSON

func (dclr DatabaseColumnListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseColumnListResult.

type DatabaseColumnListResultIterator

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

DatabaseColumnListResultIterator provides access to a complete listing of DatabaseColumn values.

func NewDatabaseColumnListResultIterator

func NewDatabaseColumnListResultIterator(page DatabaseColumnListResultPage) DatabaseColumnListResultIterator

Creates a new instance of the DatabaseColumnListResultIterator type.

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

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

func (iter DatabaseColumnListResultIterator) NotDone() bool

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

func (DatabaseColumnListResultIterator) Response

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

func (DatabaseColumnListResultIterator) Value

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

type DatabaseColumnListResultPage

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

DatabaseColumnListResultPage contains a page of DatabaseColumn values.

func NewDatabaseColumnListResultPage

Creates a new instance of the DatabaseColumnListResultPage type.

func (*DatabaseColumnListResultPage) Next

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

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

func (page DatabaseColumnListResultPage) NotDone() bool

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

func (DatabaseColumnListResultPage) Response

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

func (DatabaseColumnListResultPage) Values

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

type DatabaseColumnProperties

type DatabaseColumnProperties struct {
	// ColumnType - The column data type. Possible values include: 'ColumnDataTypeImage', 'ColumnDataTypeText', 'ColumnDataTypeUniqueidentifier', 'ColumnDataTypeDate', 'ColumnDataTypeTime', 'ColumnDataTypeDatetime2', 'ColumnDataTypeDatetimeoffset', 'ColumnDataTypeTinyint', 'ColumnDataTypeSmallint', 'ColumnDataTypeInt', 'ColumnDataTypeSmalldatetime', 'ColumnDataTypeReal', 'ColumnDataTypeMoney', 'ColumnDataTypeDatetime', 'ColumnDataTypeFloat', 'ColumnDataTypeSQLVariant', 'ColumnDataTypeNtext', 'ColumnDataTypeBit', 'ColumnDataTypeDecimal', 'ColumnDataTypeNumeric', 'ColumnDataTypeSmallmoney', 'ColumnDataTypeBigint', 'ColumnDataTypeHierarchyid', 'ColumnDataTypeGeometry', 'ColumnDataTypeGeography', 'ColumnDataTypeVarbinary', 'ColumnDataTypeVarchar', 'ColumnDataTypeBinary', 'ColumnDataTypeChar', 'ColumnDataTypeTimestamp', 'ColumnDataTypeNvarchar', 'ColumnDataTypeNchar', 'ColumnDataTypeXML', 'ColumnDataTypeSysname'
	ColumnType ColumnDataType `json:"columnType,omitempty"`
	// TemporalType - The table temporal type. Possible values include: 'TableTemporalTypeNonTemporalTable', 'TableTemporalTypeHistoryTable', 'TableTemporalTypeSystemVersionedTemporalTable'
	TemporalType TableTemporalType `json:"temporalType,omitempty"`
	// MemoryOptimized - Whether or not the column belongs to a memory optimized table.
	MemoryOptimized *bool `json:"memoryOptimized,omitempty"`
	// IsComputed - Whether or not the column is computed.
	IsComputed *bool `json:"isComputed,omitempty"`
}

DatabaseColumnProperties database column properties.

type DatabaseColumnsClient

type DatabaseColumnsClient struct {
	BaseClient
}

DatabaseColumnsClient 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 NewDatabaseColumnsClient

func NewDatabaseColumnsClient(subscriptionID string) DatabaseColumnsClient

NewDatabaseColumnsClient creates an instance of the DatabaseColumnsClient client.

func NewDatabaseColumnsClientWithBaseURI

func NewDatabaseColumnsClientWithBaseURI(baseURI string, subscriptionID string) DatabaseColumnsClient

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

func (DatabaseColumnsClient) Get

func (client DatabaseColumnsClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string, schemaName string, tableName string, columnName string) (result DatabaseColumn, err error)

Get get database 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 (DatabaseColumnsClient) GetPreparer

func (client DatabaseColumnsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, schemaName string, tableName string, columnName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DatabaseColumnsClient) GetResponder

func (client DatabaseColumnsClient) GetResponder(resp *http.Response) (result DatabaseColumn, err error)

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

func (DatabaseColumnsClient) GetSender

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

func (client DatabaseColumnsClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string, schema []string, table []string, column []string, orderBy []string, skiptoken string) (result DatabaseColumnListResultPage, err error)

ListByDatabase list database 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. skiptoken - an opaque token that identifies a starting point in the collection.

func (DatabaseColumnsClient) ListByDatabaseComplete

func (client DatabaseColumnsClient) ListByDatabaseComplete(ctx context.Context, resourceGroupName string, serverName string, databaseName string, schema []string, table []string, column []string, orderBy []string, skiptoken string) (result DatabaseColumnListResultIterator, err error)

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

func (DatabaseColumnsClient) ListByDatabasePreparer

func (client DatabaseColumnsClient) ListByDatabasePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, schema []string, table []string, column []string, orderBy []string, skiptoken string) (*http.Request, error)

ListByDatabasePreparer prepares the ListByDatabase request.

func (DatabaseColumnsClient) ListByDatabaseResponder

func (client DatabaseColumnsClient) ListByDatabaseResponder(resp *http.Response) (result DatabaseColumnListResult, err error)

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

func (DatabaseColumnsClient) ListByDatabaseSender

func (client DatabaseColumnsClient) 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 (DatabaseColumnsClient) ListByTable

func (client DatabaseColumnsClient) ListByTable(ctx context.Context, resourceGroupName string, serverName string, databaseName string, schemaName string, tableName string, filter string) (result DatabaseColumnListResultPage, err error)

ListByTable list database 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. filter - an OData filter expression that filters elements in the collection.

func (DatabaseColumnsClient) ListByTableComplete

func (client DatabaseColumnsClient) ListByTableComplete(ctx context.Context, resourceGroupName string, serverName string, databaseName string, schemaName string, tableName string, filter string) (result DatabaseColumnListResultIterator, err error)

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

func (DatabaseColumnsClient) ListByTablePreparer

func (client DatabaseColumnsClient) ListByTablePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, schemaName string, tableName string, filter string) (*http.Request, error)

ListByTablePreparer prepares the ListByTable request.

func (DatabaseColumnsClient) ListByTableResponder

func (client DatabaseColumnsClient) ListByTableResponder(resp *http.Response) (result DatabaseColumnListResult, err error)

ListByTableResponder handles the response to the ListByTable request. The method always closes the http.Response Body.

func (DatabaseColumnsClient) ListByTableSender

func (client DatabaseColumnsClient) ListByTableSender(req *http.Request) (*http.Response, error)

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

type DatabaseExtensions

type DatabaseExtensions struct {
	// DatabaseExtensionsProperties - Resource properties.
	*DatabaseExtensionsProperties `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"`
}

DatabaseExtensions an export managed database operation result resource.

func (DatabaseExtensions) MarshalJSON

func (de DatabaseExtensions) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseExtensions.

func (*DatabaseExtensions) UnmarshalJSON

func (de *DatabaseExtensions) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DatabaseExtensions struct.

type DatabaseExtensionsClient

type DatabaseExtensionsClient struct {
	BaseClient
}

DatabaseExtensionsClient 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 NewDatabaseExtensionsClient

func NewDatabaseExtensionsClient(subscriptionID string) DatabaseExtensionsClient

NewDatabaseExtensionsClient creates an instance of the DatabaseExtensionsClient client.

func NewDatabaseExtensionsClientWithBaseURI

func NewDatabaseExtensionsClientWithBaseURI(baseURI string, subscriptionID string) DatabaseExtensionsClient

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

func (DatabaseExtensionsClient) CreateOrUpdate

func (client DatabaseExtensionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, extensionName string, parameters DatabaseExtensions) (result DatabaseExtensionsCreateOrUpdateFuture, err error)

CreateOrUpdate perform a database extension operation, like polybase import Parameters: resourceGroupName - the name of the resource group 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 import request parameters.

func (DatabaseExtensionsClient) CreateOrUpdatePreparer

func (client DatabaseExtensionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, extensionName string, parameters DatabaseExtensions) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DatabaseExtensionsClient) CreateOrUpdateResponder

func (client DatabaseExtensionsClient) CreateOrUpdateResponder(resp *http.Response) (result ImportExportExtensionsOperationResult, err error)

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

func (DatabaseExtensionsClient) CreateOrUpdateSender

func (client DatabaseExtensionsClient) CreateOrUpdateSender(req *http.Request) (future DatabaseExtensionsCreateOrUpdateFuture, err error)

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

func (DatabaseExtensionsClient) Get

func (client DatabaseExtensionsClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string, extensionName string) (result autorest.Response, err error)

Get gets a database extension. This will return resource not found as it is not supported. Parameters: resourceGroupName - the name of the resource group 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 (DatabaseExtensionsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (DatabaseExtensionsClient) GetResponder

func (client DatabaseExtensionsClient) GetResponder(resp *http.Response) (result autorest.Response, err error)

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

func (DatabaseExtensionsClient) GetSender

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

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

ListByDatabase list database extension. This will return an empty list as it is not supported. Parameters: resourceGroupName - the name of the resource group 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 (DatabaseExtensionsClient) ListByDatabaseComplete

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

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

func (DatabaseExtensionsClient) ListByDatabasePreparer

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (DatabaseExtensionsClient) ListByDatabaseResponder

func (client DatabaseExtensionsClient) ListByDatabaseResponder(resp *http.Response) (result ImportExportExtensionsOperationListResult, err error)

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

func (DatabaseExtensionsClient) ListByDatabaseSender

func (client DatabaseExtensionsClient) 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 DatabaseExtensionsCreateOrUpdateFuture

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

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

func (*DatabaseExtensionsCreateOrUpdateFuture) UnmarshalJSON

func (future *DatabaseExtensionsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DatabaseExtensionsProperties

type DatabaseExtensionsProperties struct {
	// OperationMode - Operation Mode.
	OperationMode *string `json:"operationMode,omitempty"`
	// StorageKeyType - Storage key type. Possible values include: 'StorageKeyTypeSharedAccessKey', 'StorageKeyTypeStorageAccessKey'
	StorageKeyType StorageKeyType `json:"storageKeyType,omitempty"`
	// StorageKey - Storage key.
	StorageKey *string `json:"storageKey,omitempty"`
	// StorageURI - Storage Uri.
	StorageURI *string `json:"storageUri,omitempty"`
}

DatabaseExtensionsProperties contains the database information after successful export.

type DatabaseIdentity

type DatabaseIdentity struct {
	// Type - The identity type. Possible values include: 'DatabaseIdentityTypeNone', 'DatabaseIdentityTypeUserAssigned'
	Type DatabaseIdentityType `json:"type,omitempty"`
	// TenantID - READ-ONLY; The Azure Active Directory tenant id.
	TenantID *uuid.UUID `json:"tenantId,omitempty"`
	// UserAssignedIdentities - The resource ids of the user assigned identities to use
	UserAssignedIdentities map[string]*DatabaseUserIdentity `json:"userAssignedIdentities"`
}

DatabaseIdentity azure Active Directory identity configuration for a resource.

func (DatabaseIdentity) MarshalJSON

func (di DatabaseIdentity) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseIdentity.

type DatabaseIdentityType

type DatabaseIdentityType string

DatabaseIdentityType enumerates the values for database identity type.

const (
	// DatabaseIdentityTypeNone ...
	DatabaseIdentityTypeNone DatabaseIdentityType = "None"
	// DatabaseIdentityTypeUserAssigned ...
	DatabaseIdentityTypeUserAssigned DatabaseIdentityType = "UserAssigned"
)

func PossibleDatabaseIdentityTypeValues

func PossibleDatabaseIdentityTypeValues() []DatabaseIdentityType

PossibleDatabaseIdentityTypeValues returns an array of possible values for the DatabaseIdentityType const type.

type DatabaseLicenseType

type DatabaseLicenseType string

DatabaseLicenseType enumerates the values for database license type.

const (
	// DatabaseLicenseTypeBasePrice ...
	DatabaseLicenseTypeBasePrice DatabaseLicenseType = "BasePrice"
	// DatabaseLicenseTypeLicenseIncluded ...
	DatabaseLicenseTypeLicenseIncluded 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.

func (DatabaseListResult) MarshalJSON

func (dlr DatabaseListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseListResult.

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(cur DatabaseListResult, 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.

func (DatabaseOperationListResult) MarshalJSON

func (dolr DatabaseOperationListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseOperationListResult.

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

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.

func (DatabaseOperationProperties) MarshalJSON

func (dop DatabaseOperationProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseOperationProperties.

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

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: 'SampleNameAdventureWorksLT', 'SampleNameWideWorldImportersStd', 'SampleNameWideWorldImportersFull'
	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', 'DatabaseStatusStopping', 'DatabaseStatusStopped', 'DatabaseStatusStarting'
	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: 'CatalogCollationTypeDATABASEDEFAULT', 'CatalogCollationTypeSQLLatin1GeneralCP1CIAS'
	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. `LicenseIncluded` if you need a license, or `BasePrice` if you have a license and are eligible for the Azure Hybrid Benefit. Possible values include: 'DatabaseLicenseTypeLicenseIncluded', 'DatabaseLicenseTypeBasePrice'
	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 - The state of read-only routing. If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica in the same region. Not applicable to a Hyperscale database within an elastic pool. Possible values include: 'DatabaseReadScaleEnabled', 'DatabaseReadScaleDisabled'
	ReadScale DatabaseReadScale `json:"readScale,omitempty"`
	// HighAvailabilityReplicaCount - The number of secondary replicas associated with the database that are used to provide high availability. Not applicable to a Hyperscale database within an elastic pool.
	HighAvailabilityReplicaCount *int32 `json:"highAvailabilityReplicaCount,omitempty"`
	// SecondaryType - The secondary type of the database if it is a secondary.  Valid values are Geo, Named and Standby. Possible values include: 'SecondaryTypeGeo', 'SecondaryTypeNamed', 'SecondaryTypeStandby'
	SecondaryType SecondaryType `json:"secondaryType,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"`
	// CurrentBackupStorageRedundancy - READ-ONLY; The storage account type used to store backups for this database. Possible values include: 'BackupStorageRedundancyGeo', 'BackupStorageRedundancyLocal', 'BackupStorageRedundancyZone', 'BackupStorageRedundancyGeoZone'
	CurrentBackupStorageRedundancy BackupStorageRedundancy `json:"currentBackupStorageRedundancy,omitempty"`
	// RequestedBackupStorageRedundancy - The storage account type to be used to store backups for this database. Possible values include: 'BackupStorageRedundancyGeo', 'BackupStorageRedundancyLocal', 'BackupStorageRedundancyZone', 'BackupStorageRedundancyGeoZone'
	RequestedBackupStorageRedundancy BackupStorageRedundancy `json:"requestedBackupStorageRedundancy,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"`
	// MaintenanceConfigurationID - Maintenance configuration id assigned to the database. This configuration defines the period when the maintenance updates will occur.
	MaintenanceConfigurationID *string `json:"maintenanceConfigurationId,omitempty"`
	// IsLedgerOn - Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created.
	IsLedgerOn *bool `json:"isLedgerOn,omitempty"`
	// IsInfraEncryptionEnabled - READ-ONLY; Infra encryption is enabled for this database.
	IsInfraEncryptionEnabled *bool `json:"isInfraEncryptionEnabled,omitempty"`
	// FederatedClientID - The Client id used for cross tenant per database CMK scenario
	FederatedClientID *uuid.UUID `json:"federatedClientId,omitempty"`
	// SourceResourceID - The resource identifier of the source associated with the create operation of this database.
	//
	// This property is only supported for DataWarehouse edition and allows to restore across subscriptions.
	//
	// When sourceResourceId is specified, sourceDatabaseId, recoverableDatabaseId, restorableDroppedDatabaseId and sourceDatabaseDeletionDate must not be specified and CreateMode must be PointInTimeRestore, Restore or Recover.
	//
	// When createMode is PointInTimeRestore, sourceResourceId must be the resource ID of the existing database or existing sql pool, and restorePointInTime must be specified.
	//
	// When createMode is Restore, sourceResourceId must be the resource ID of restorable dropped database or restorable dropped sql pool.
	//
	// When createMode is Recover, sourceResourceId must be the resource ID of recoverable database or recoverable sql pool.
	//
	// When source subscription belongs to a different tenant than target subscription, “x-ms-authorization-auxiliary” header must contain authentication token for the source tenant. For more details about “x-ms-authorization-auxiliary” header see https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/authenticate-multi-tenant
	SourceResourceID *string `json:"sourceResourceId,omitempty"`
}

DatabaseProperties the database's properties.

func (DatabaseProperties) MarshalJSON

func (dp DatabaseProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseProperties.

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 DatabaseRecommendedActionsClient

type DatabaseRecommendedActionsClient struct {
	BaseClient
}

DatabaseRecommendedActionsClient 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 NewDatabaseRecommendedActionsClient

func NewDatabaseRecommendedActionsClient(subscriptionID string) DatabaseRecommendedActionsClient

NewDatabaseRecommendedActionsClient creates an instance of the DatabaseRecommendedActionsClient client.

func NewDatabaseRecommendedActionsClientWithBaseURI

func NewDatabaseRecommendedActionsClientWithBaseURI(baseURI string, subscriptionID string) DatabaseRecommendedActionsClient

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

func (DatabaseRecommendedActionsClient) Get

func (client DatabaseRecommendedActionsClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string, advisorName string, recommendedActionName string) (result RecommendedAction, err error)

Get gets a database recommended action. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database. advisorName - the name of the Database Advisor. recommendedActionName - the name of Database Recommended Action.

func (DatabaseRecommendedActionsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (DatabaseRecommendedActionsClient) GetResponder

func (client DatabaseRecommendedActionsClient) GetResponder(resp *http.Response) (result RecommendedAction, err error)

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

func (DatabaseRecommendedActionsClient) GetSender

func (client DatabaseRecommendedActionsClient) 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 (DatabaseRecommendedActionsClient) ListByDatabaseAdvisor

func (client DatabaseRecommendedActionsClient) ListByDatabaseAdvisor(ctx context.Context, resourceGroupName string, serverName string, databaseName string, advisorName string) (result ListRecommendedAction, err error)

ListByDatabaseAdvisor gets list of Database Recommended Actions. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database. advisorName - the name of the Database Advisor.

func (DatabaseRecommendedActionsClient) ListByDatabaseAdvisorPreparer

func (client DatabaseRecommendedActionsClient) ListByDatabaseAdvisorPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, advisorName string) (*http.Request, error)

ListByDatabaseAdvisorPreparer prepares the ListByDatabaseAdvisor request.

func (DatabaseRecommendedActionsClient) ListByDatabaseAdvisorResponder

func (client DatabaseRecommendedActionsClient) ListByDatabaseAdvisorResponder(resp *http.Response) (result ListRecommendedAction, err error)

ListByDatabaseAdvisorResponder handles the response to the ListByDatabaseAdvisor request. The method always closes the http.Response Body.

func (DatabaseRecommendedActionsClient) ListByDatabaseAdvisorSender

func (client DatabaseRecommendedActionsClient) ListByDatabaseAdvisorSender(req *http.Request) (*http.Response, error)

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

func (DatabaseRecommendedActionsClient) Update

func (client DatabaseRecommendedActionsClient) Update(ctx context.Context, resourceGroupName string, serverName string, databaseName string, advisorName string, recommendedActionName string, parameters RecommendedAction) (result RecommendedAction, err error)

Update updates a database recommended action. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database. advisorName - the name of the Database Advisor. recommendedActionName - the name of Database Recommended Action. parameters - the requested recommended action resource state.

func (DatabaseRecommendedActionsClient) UpdatePreparer

func (client DatabaseRecommendedActionsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, advisorName string, recommendedActionName string, parameters RecommendedAction) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (DatabaseRecommendedActionsClient) UpdateResponder

func (client DatabaseRecommendedActionsClient) UpdateResponder(resp *http.Response) (result RecommendedAction, err error)

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

func (DatabaseRecommendedActionsClient) UpdateSender

func (client DatabaseRecommendedActionsClient) 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 DatabaseSQLVulnerabilityAssessmentBaselineSet

type DatabaseSQLVulnerabilityAssessmentBaselineSet struct {
	autorest.Response `json:"-"`
	// SystemData - READ-ONLY; SystemData of DatabaseSqlVulnerabilityAssessmentBaselineSetResource.
	SystemData *SystemData `json:"systemData,omitempty"`
	// DatabaseSQLVulnerabilityAssessmentBaselineSetProperties - Resource properties.
	*DatabaseSQLVulnerabilityAssessmentBaselineSetProperties `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"`
}

DatabaseSQLVulnerabilityAssessmentBaselineSet a database sql vulnerability assessment baseline set.

func (DatabaseSQLVulnerabilityAssessmentBaselineSet) MarshalJSON

func (dsvabs DatabaseSQLVulnerabilityAssessmentBaselineSet) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseSQLVulnerabilityAssessmentBaselineSet.

func (*DatabaseSQLVulnerabilityAssessmentBaselineSet) UnmarshalJSON

func (dsvabs *DatabaseSQLVulnerabilityAssessmentBaselineSet) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DatabaseSQLVulnerabilityAssessmentBaselineSet struct.

type DatabaseSQLVulnerabilityAssessmentBaselineSetListResult

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

DatabaseSQLVulnerabilityAssessmentBaselineSetListResult a list of SQL Vulnerability Assessments baseline set.

func (DatabaseSQLVulnerabilityAssessmentBaselineSetListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

func (DatabaseSQLVulnerabilityAssessmentBaselineSetListResult) MarshalJSON

MarshalJSON is the custom marshaler for DatabaseSQLVulnerabilityAssessmentBaselineSetListResult.

type DatabaseSQLVulnerabilityAssessmentBaselineSetListResultIterator

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

DatabaseSQLVulnerabilityAssessmentBaselineSetListResultIterator provides access to a complete listing of DatabaseSQLVulnerabilityAssessmentBaselineSet values.

func NewDatabaseSQLVulnerabilityAssessmentBaselineSetListResultIterator

Creates a new instance of the DatabaseSQLVulnerabilityAssessmentBaselineSetListResultIterator type.

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

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

func (DatabaseSQLVulnerabilityAssessmentBaselineSetListResultIterator) Response

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

func (DatabaseSQLVulnerabilityAssessmentBaselineSetListResultIterator) Value

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

type DatabaseSQLVulnerabilityAssessmentBaselineSetListResultPage

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

DatabaseSQLVulnerabilityAssessmentBaselineSetListResultPage contains a page of DatabaseSQLVulnerabilityAssessmentBaselineSet values.

func NewDatabaseSQLVulnerabilityAssessmentBaselineSetListResultPage

Creates a new instance of the DatabaseSQLVulnerabilityAssessmentBaselineSetListResultPage type.

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

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

func (DatabaseSQLVulnerabilityAssessmentBaselineSetListResultPage) Response

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

func (DatabaseSQLVulnerabilityAssessmentBaselineSetListResultPage) Values

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

type DatabaseSQLVulnerabilityAssessmentBaselineSetProperties

type DatabaseSQLVulnerabilityAssessmentBaselineSetProperties struct {
	// Results - The baseline set result
	Results map[string][][]string `json:"results"`
}

DatabaseSQLVulnerabilityAssessmentBaselineSetProperties properties of a database Sql Vulnerability Assessment baseline set.

func (DatabaseSQLVulnerabilityAssessmentBaselineSetProperties) MarshalJSON

MarshalJSON is the custom marshaler for DatabaseSQLVulnerabilityAssessmentBaselineSetProperties.

type DatabaseSQLVulnerabilityAssessmentBaselinesClient

type DatabaseSQLVulnerabilityAssessmentBaselinesClient struct {
	BaseClient
}

DatabaseSQLVulnerabilityAssessmentBaselinesClient 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 NewDatabaseSQLVulnerabilityAssessmentBaselinesClient

func NewDatabaseSQLVulnerabilityAssessmentBaselinesClient(subscriptionID string) DatabaseSQLVulnerabilityAssessmentBaselinesClient

NewDatabaseSQLVulnerabilityAssessmentBaselinesClient creates an instance of the DatabaseSQLVulnerabilityAssessmentBaselinesClient client.

func NewDatabaseSQLVulnerabilityAssessmentBaselinesClientWithBaseURI

func NewDatabaseSQLVulnerabilityAssessmentBaselinesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseSQLVulnerabilityAssessmentBaselinesClient

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

func (DatabaseSQLVulnerabilityAssessmentBaselinesClient) CreateOrUpdate

CreateOrUpdate add a database's vulnerability assessment rule baseline 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. serverName - the name of the server. databaseName - the name of the database. parameters - the requested rule baseline resource.

func (DatabaseSQLVulnerabilityAssessmentBaselinesClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DatabaseSQLVulnerabilityAssessmentBaselinesClient) CreateOrUpdateResponder

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

func (DatabaseSQLVulnerabilityAssessmentBaselinesClient) CreateOrUpdateSender

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

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

Get gets a list of database's sql vulnerability assessment rule baselines. Parameters: resourceGroupName - the name of the resource group 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 (DatabaseSQLVulnerabilityAssessmentBaselinesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (DatabaseSQLVulnerabilityAssessmentBaselinesClient) GetResponder

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

func (DatabaseSQLVulnerabilityAssessmentBaselinesClient) GetSender

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

func (DatabaseSQLVulnerabilityAssessmentBaselinesClient) ListBySQLVulnerabilityAssessment

func (client DatabaseSQLVulnerabilityAssessmentBaselinesClient) ListBySQLVulnerabilityAssessment(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseSQLVulnerabilityAssessmentBaselineSetListResultPage, err error)

ListBySQLVulnerabilityAssessment gets a list of database's sql vulnerability assessment rule baselines. Parameters: resourceGroupName - the name of the resource group 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 (DatabaseSQLVulnerabilityAssessmentBaselinesClient) ListBySQLVulnerabilityAssessmentComplete

func (client DatabaseSQLVulnerabilityAssessmentBaselinesClient) ListBySQLVulnerabilityAssessmentComplete(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseSQLVulnerabilityAssessmentBaselineSetListResultIterator, err error)

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

func (DatabaseSQLVulnerabilityAssessmentBaselinesClient) ListBySQLVulnerabilityAssessmentPreparer

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

ListBySQLVulnerabilityAssessmentPreparer prepares the ListBySQLVulnerabilityAssessment request.

func (DatabaseSQLVulnerabilityAssessmentBaselinesClient) ListBySQLVulnerabilityAssessmentResponder

func (client DatabaseSQLVulnerabilityAssessmentBaselinesClient) ListBySQLVulnerabilityAssessmentResponder(resp *http.Response) (result DatabaseSQLVulnerabilityAssessmentBaselineSetListResult, err error)

ListBySQLVulnerabilityAssessmentResponder handles the response to the ListBySQLVulnerabilityAssessment request. The method always closes the http.Response Body.

func (DatabaseSQLVulnerabilityAssessmentBaselinesClient) ListBySQLVulnerabilityAssessmentSender

func (client DatabaseSQLVulnerabilityAssessmentBaselinesClient) ListBySQLVulnerabilityAssessmentSender(req *http.Request) (*http.Response, error)

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

type DatabaseSQLVulnerabilityAssessmentExecuteScanClient

type DatabaseSQLVulnerabilityAssessmentExecuteScanClient struct {
	BaseClient
}

DatabaseSQLVulnerabilityAssessmentExecuteScanClient 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 NewDatabaseSQLVulnerabilityAssessmentExecuteScanClient

func NewDatabaseSQLVulnerabilityAssessmentExecuteScanClient(subscriptionID string) DatabaseSQLVulnerabilityAssessmentExecuteScanClient

NewDatabaseSQLVulnerabilityAssessmentExecuteScanClient creates an instance of the DatabaseSQLVulnerabilityAssessmentExecuteScanClient client.

func NewDatabaseSQLVulnerabilityAssessmentExecuteScanClientWithBaseURI

func NewDatabaseSQLVulnerabilityAssessmentExecuteScanClientWithBaseURI(baseURI string, subscriptionID string) DatabaseSQLVulnerabilityAssessmentExecuteScanClient

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

func (DatabaseSQLVulnerabilityAssessmentExecuteScanClient) Execute

Execute 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.

func (DatabaseSQLVulnerabilityAssessmentExecuteScanClient) ExecutePreparer

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

ExecutePreparer prepares the Execute request.

func (DatabaseSQLVulnerabilityAssessmentExecuteScanClient) ExecuteResponder

func (client DatabaseSQLVulnerabilityAssessmentExecuteScanClient) ExecuteResponder(resp *http.Response) (result autorest.Response, err error)

ExecuteResponder handles the response to the Execute request. The method always closes the http.Response Body.

func (DatabaseSQLVulnerabilityAssessmentExecuteScanClient) ExecuteSender

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

type DatabaseSQLVulnerabilityAssessmentExecuteScanExecuteFuture

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

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

func (*DatabaseSQLVulnerabilityAssessmentExecuteScanExecuteFuture) UnmarshalJSON

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DatabaseSQLVulnerabilityAssessmentRuleBaseline

type DatabaseSQLVulnerabilityAssessmentRuleBaseline struct {
	autorest.Response `json:"-"`
	// SystemData - READ-ONLY; SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineResource.
	SystemData *SystemData `json:"systemData,omitempty"`
	// DatabaseSQLVulnerabilityAssessmentRuleBaselineProperties - Resource properties.
	*DatabaseSQLVulnerabilityAssessmentRuleBaselineProperties `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"`
}

DatabaseSQLVulnerabilityAssessmentRuleBaseline a database sql vulnerability assessment rule baseline.

func (DatabaseSQLVulnerabilityAssessmentRuleBaseline) MarshalJSON

func (dsvarb DatabaseSQLVulnerabilityAssessmentRuleBaseline) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseSQLVulnerabilityAssessmentRuleBaseline.

func (*DatabaseSQLVulnerabilityAssessmentRuleBaseline) UnmarshalJSON

func (dsvarb *DatabaseSQLVulnerabilityAssessmentRuleBaseline) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DatabaseSQLVulnerabilityAssessmentRuleBaseline struct.

type DatabaseSQLVulnerabilityAssessmentRuleBaselineInput

type DatabaseSQLVulnerabilityAssessmentRuleBaselineInput struct {
	// SystemData - READ-ONLY; SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineInputResource.
	SystemData *SystemData `json:"systemData,omitempty"`
	// DatabaseSQLVulnerabilityAssessmentRuleBaselineInputProperties - Resource properties.
	*DatabaseSQLVulnerabilityAssessmentRuleBaselineInputProperties `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"`
}

DatabaseSQLVulnerabilityAssessmentRuleBaselineInput a database sql vulnerability assessment rule baseline input.

func (DatabaseSQLVulnerabilityAssessmentRuleBaselineInput) MarshalJSON

MarshalJSON is the custom marshaler for DatabaseSQLVulnerabilityAssessmentRuleBaselineInput.

func (*DatabaseSQLVulnerabilityAssessmentRuleBaselineInput) UnmarshalJSON

func (dsvarbi *DatabaseSQLVulnerabilityAssessmentRuleBaselineInput) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DatabaseSQLVulnerabilityAssessmentRuleBaselineInput struct.

type DatabaseSQLVulnerabilityAssessmentRuleBaselineInputProperties

type DatabaseSQLVulnerabilityAssessmentRuleBaselineInputProperties struct {
	// LatestScan - The latest scan flag
	LatestScan *bool `json:"latestScan,omitempty"`
	// Results - The rule baseline result
	Results *[][]string `json:"results,omitempty"`
}

DatabaseSQLVulnerabilityAssessmentRuleBaselineInputProperties properties of a database Sql Vulnerability Assessment rule baseline.

type DatabaseSQLVulnerabilityAssessmentRuleBaselineListInput

type DatabaseSQLVulnerabilityAssessmentRuleBaselineListInput struct {
	// SystemData - READ-ONLY; SystemData of DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputResource.
	SystemData *SystemData `json:"systemData,omitempty"`
	// DatabaseSQLVulnerabilityAssessmentRuleBaselineListInputProperties - Resource properties.
	*DatabaseSQLVulnerabilityAssessmentRuleBaselineListInputProperties `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"`
}

DatabaseSQLVulnerabilityAssessmentRuleBaselineListInput a database sql vulnerability assessment rule baseline list input.

func (DatabaseSQLVulnerabilityAssessmentRuleBaselineListInput) MarshalJSON

MarshalJSON is the custom marshaler for DatabaseSQLVulnerabilityAssessmentRuleBaselineListInput.

func (*DatabaseSQLVulnerabilityAssessmentRuleBaselineListInput) UnmarshalJSON

func (dsvarbli *DatabaseSQLVulnerabilityAssessmentRuleBaselineListInput) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DatabaseSQLVulnerabilityAssessmentRuleBaselineListInput struct.

type DatabaseSQLVulnerabilityAssessmentRuleBaselineListInputProperties

type DatabaseSQLVulnerabilityAssessmentRuleBaselineListInputProperties struct {
	// LatestScan - The latest scan flag
	LatestScan *bool `json:"latestScan,omitempty"`
	// Results - The rule baseline result list
	Results map[string][][]string `json:"results"`
}

DatabaseSQLVulnerabilityAssessmentRuleBaselineListInputProperties properties of a database Sql Vulnerability Assessment rule baseline.

func (DatabaseSQLVulnerabilityAssessmentRuleBaselineListInputProperties) MarshalJSON

MarshalJSON is the custom marshaler for DatabaseSQLVulnerabilityAssessmentRuleBaselineListInputProperties.

type DatabaseSQLVulnerabilityAssessmentRuleBaselineListResult

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

DatabaseSQLVulnerabilityAssessmentRuleBaselineListResult a list of SQL Vulnerability Assessments rule baseline.

func (DatabaseSQLVulnerabilityAssessmentRuleBaselineListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

func (DatabaseSQLVulnerabilityAssessmentRuleBaselineListResult) MarshalJSON

MarshalJSON is the custom marshaler for DatabaseSQLVulnerabilityAssessmentRuleBaselineListResult.

type DatabaseSQLVulnerabilityAssessmentRuleBaselineListResultIterator

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

DatabaseSQLVulnerabilityAssessmentRuleBaselineListResultIterator provides access to a complete listing of DatabaseSQLVulnerabilityAssessmentRuleBaseline values.

func NewDatabaseSQLVulnerabilityAssessmentRuleBaselineListResultIterator

Creates a new instance of the DatabaseSQLVulnerabilityAssessmentRuleBaselineListResultIterator type.

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

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

func (DatabaseSQLVulnerabilityAssessmentRuleBaselineListResultIterator) Response

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

func (DatabaseSQLVulnerabilityAssessmentRuleBaselineListResultIterator) Value

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

type DatabaseSQLVulnerabilityAssessmentRuleBaselineListResultPage

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

DatabaseSQLVulnerabilityAssessmentRuleBaselineListResultPage contains a page of DatabaseSQLVulnerabilityAssessmentRuleBaseline values.

func NewDatabaseSQLVulnerabilityAssessmentRuleBaselineListResultPage

Creates a new instance of the DatabaseSQLVulnerabilityAssessmentRuleBaselineListResultPage type.

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

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

func (DatabaseSQLVulnerabilityAssessmentRuleBaselineListResultPage) Response

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

func (DatabaseSQLVulnerabilityAssessmentRuleBaselineListResultPage) Values

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

type DatabaseSQLVulnerabilityAssessmentRuleBaselineProperties

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

DatabaseSQLVulnerabilityAssessmentRuleBaselineProperties properties of a database Sql Vulnerability Assessment rule baseline.

type DatabaseSQLVulnerabilityAssessmentRuleBaselinesClient

type DatabaseSQLVulnerabilityAssessmentRuleBaselinesClient struct {
	BaseClient
}

DatabaseSQLVulnerabilityAssessmentRuleBaselinesClient 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 NewDatabaseSQLVulnerabilityAssessmentRuleBaselinesClient

func NewDatabaseSQLVulnerabilityAssessmentRuleBaselinesClient(subscriptionID string) DatabaseSQLVulnerabilityAssessmentRuleBaselinesClient

NewDatabaseSQLVulnerabilityAssessmentRuleBaselinesClient creates an instance of the DatabaseSQLVulnerabilityAssessmentRuleBaselinesClient client.

func NewDatabaseSQLVulnerabilityAssessmentRuleBaselinesClientWithBaseURI

func NewDatabaseSQLVulnerabilityAssessmentRuleBaselinesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseSQLVulnerabilityAssessmentRuleBaselinesClient

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

func (DatabaseSQLVulnerabilityAssessmentRuleBaselinesClient) 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. ruleID - the vulnerability assessment rule ID. parameters - the requested rule baseline resource.

func (DatabaseSQLVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdatePreparer

func (client DatabaseSQLVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, ruleID string, parameters DatabaseSQLVulnerabilityAssessmentRuleBaselineInput) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DatabaseSQLVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdateResponder

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

func (DatabaseSQLVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdateSender

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

func (DatabaseSQLVulnerabilityAssessmentRuleBaselinesClient) Delete

func (client DatabaseSQLVulnerabilityAssessmentRuleBaselinesClient) Delete(ctx context.Context, resourceGroupName string, serverName string, databaseName string, ruleID string) (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. ruleID - the vulnerability assessment rule ID.

func (DatabaseSQLVulnerabilityAssessmentRuleBaselinesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (DatabaseSQLVulnerabilityAssessmentRuleBaselinesClient) DeleteResponder

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

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

func (DatabaseSQLVulnerabilityAssessmentRuleBaselinesClient) Get

func (client DatabaseSQLVulnerabilityAssessmentRuleBaselinesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string, ruleID string) (result DatabaseSQLVulnerabilityAssessmentRuleBaseline, err error)

Get gets a database's sql 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. ruleID - the vulnerability assessment rule ID.

func (DatabaseSQLVulnerabilityAssessmentRuleBaselinesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (DatabaseSQLVulnerabilityAssessmentRuleBaselinesClient) GetResponder

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

func (DatabaseSQLVulnerabilityAssessmentRuleBaselinesClient) GetSender

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

func (DatabaseSQLVulnerabilityAssessmentRuleBaselinesClient) ListByBaseline

func (client DatabaseSQLVulnerabilityAssessmentRuleBaselinesClient) ListByBaseline(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseSQLVulnerabilityAssessmentRuleBaselineListResultPage, err error)

ListByBaseline gets a list of database's sql vulnerability assessment rule baselines. Parameters: resourceGroupName - the name of the resource group 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 (DatabaseSQLVulnerabilityAssessmentRuleBaselinesClient) ListByBaselineComplete

func (client DatabaseSQLVulnerabilityAssessmentRuleBaselinesClient) ListByBaselineComplete(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabaseSQLVulnerabilityAssessmentRuleBaselineListResultIterator, err error)

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

func (DatabaseSQLVulnerabilityAssessmentRuleBaselinesClient) ListByBaselinePreparer

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

ListByBaselinePreparer prepares the ListByBaseline request.

func (DatabaseSQLVulnerabilityAssessmentRuleBaselinesClient) ListByBaselineResponder

ListByBaselineResponder handles the response to the ListByBaseline request. The method always closes the http.Response Body.

func (DatabaseSQLVulnerabilityAssessmentRuleBaselinesClient) ListByBaselineSender

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

type DatabaseSQLVulnerabilityAssessmentScanResultClient

type DatabaseSQLVulnerabilityAssessmentScanResultClient struct {
	BaseClient
}

DatabaseSQLVulnerabilityAssessmentScanResultClient 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 NewDatabaseSQLVulnerabilityAssessmentScanResultClient

func NewDatabaseSQLVulnerabilityAssessmentScanResultClient(subscriptionID string) DatabaseSQLVulnerabilityAssessmentScanResultClient

NewDatabaseSQLVulnerabilityAssessmentScanResultClient creates an instance of the DatabaseSQLVulnerabilityAssessmentScanResultClient client.

func NewDatabaseSQLVulnerabilityAssessmentScanResultClientWithBaseURI

func NewDatabaseSQLVulnerabilityAssessmentScanResultClientWithBaseURI(baseURI string, subscriptionID string) DatabaseSQLVulnerabilityAssessmentScanResultClient

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

func (DatabaseSQLVulnerabilityAssessmentScanResultClient) Get

func (client DatabaseSQLVulnerabilityAssessmentScanResultClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string, scanID string, scanResultID string) (result VulnerabilityAssessmentScanResults, 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 scan id of the SQL Vulnerability Assessment scan to retrieve result from. scanResultID - the scan result id of the specific result to retrieve.

func (DatabaseSQLVulnerabilityAssessmentScanResultClient) GetPreparer

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

GetPreparer prepares the Get request.

func (DatabaseSQLVulnerabilityAssessmentScanResultClient) GetResponder

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

func (DatabaseSQLVulnerabilityAssessmentScanResultClient) GetSender

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

func (DatabaseSQLVulnerabilityAssessmentScanResultClient) ListByScan

func (client DatabaseSQLVulnerabilityAssessmentScanResultClient) ListByScan(ctx context.Context, resourceGroupName string, serverName string, databaseName string, scanID string) (result VulnerabilityAssessmentScanListResultPage, err error)

ListByScan 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 scan id of the SQL Vulnerability Assessment scan to retrieve result from.

func (DatabaseSQLVulnerabilityAssessmentScanResultClient) ListByScanComplete

func (client DatabaseSQLVulnerabilityAssessmentScanResultClient) ListByScanComplete(ctx context.Context, resourceGroupName string, serverName string, databaseName string, scanID string) (result VulnerabilityAssessmentScanListResultIterator, err error)

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

func (DatabaseSQLVulnerabilityAssessmentScanResultClient) ListByScanPreparer

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

ListByScanPreparer prepares the ListByScan request.

func (DatabaseSQLVulnerabilityAssessmentScanResultClient) ListByScanResponder

ListByScanResponder handles the response to the ListByScan request. The method always closes the http.Response Body.

func (DatabaseSQLVulnerabilityAssessmentScanResultClient) ListByScanSender

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

type DatabaseSQLVulnerabilityAssessmentScansClient

type DatabaseSQLVulnerabilityAssessmentScansClient struct {
	BaseClient
}

DatabaseSQLVulnerabilityAssessmentScansClient 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 NewDatabaseSQLVulnerabilityAssessmentScansClient

func NewDatabaseSQLVulnerabilityAssessmentScansClient(subscriptionID string) DatabaseSQLVulnerabilityAssessmentScansClient

NewDatabaseSQLVulnerabilityAssessmentScansClient creates an instance of the DatabaseSQLVulnerabilityAssessmentScansClient client.

func NewDatabaseSQLVulnerabilityAssessmentScansClientWithBaseURI

func NewDatabaseSQLVulnerabilityAssessmentScansClientWithBaseURI(baseURI string, subscriptionID string) DatabaseSQLVulnerabilityAssessmentScansClient

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

func (DatabaseSQLVulnerabilityAssessmentScansClient) Get

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

Get get a database vulnerability assessment scan 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. scanID - the vulnerability assessment scan Id of the scan to retrieve.

func (DatabaseSQLVulnerabilityAssessmentScansClient) GetPreparer

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

GetPreparer prepares the Get request.

func (DatabaseSQLVulnerabilityAssessmentScansClient) GetResponder

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

func (DatabaseSQLVulnerabilityAssessmentScansClient) GetSender

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

func (DatabaseSQLVulnerabilityAssessmentScansClient) ListBySQLVulnerabilityAssessments

func (client DatabaseSQLVulnerabilityAssessmentScansClient) ListBySQLVulnerabilityAssessments(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result VulnerabilityAssessmentScanRecordListResultTypePage, err error)

ListBySQLVulnerabilityAssessments 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 (DatabaseSQLVulnerabilityAssessmentScansClient) ListBySQLVulnerabilityAssessmentsComplete

func (client DatabaseSQLVulnerabilityAssessmentScansClient) ListBySQLVulnerabilityAssessmentsComplete(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result VulnerabilityAssessmentScanRecordListResultTypeIterator, err error)

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

func (DatabaseSQLVulnerabilityAssessmentScansClient) ListBySQLVulnerabilityAssessmentsPreparer

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

ListBySQLVulnerabilityAssessmentsPreparer prepares the ListBySQLVulnerabilityAssessments request.

func (DatabaseSQLVulnerabilityAssessmentScansClient) ListBySQLVulnerabilityAssessmentsResponder

func (client DatabaseSQLVulnerabilityAssessmentScansClient) ListBySQLVulnerabilityAssessmentsResponder(resp *http.Response) (result VulnerabilityAssessmentScanRecordListResultType, err error)

ListBySQLVulnerabilityAssessmentsResponder handles the response to the ListBySQLVulnerabilityAssessments request. The method always closes the http.Response Body.

func (DatabaseSQLVulnerabilityAssessmentScansClient) ListBySQLVulnerabilityAssessmentsSender

func (client DatabaseSQLVulnerabilityAssessmentScansClient) ListBySQLVulnerabilityAssessmentsSender(req *http.Request) (*http.Response, error)

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

type DatabaseSQLVulnerabilityAssessmentsSettingsClient

type DatabaseSQLVulnerabilityAssessmentsSettingsClient struct {
	BaseClient
}

DatabaseSQLVulnerabilityAssessmentsSettingsClient 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 NewDatabaseSQLVulnerabilityAssessmentsSettingsClient

func NewDatabaseSQLVulnerabilityAssessmentsSettingsClient(subscriptionID string) DatabaseSQLVulnerabilityAssessmentsSettingsClient

NewDatabaseSQLVulnerabilityAssessmentsSettingsClient creates an instance of the DatabaseSQLVulnerabilityAssessmentsSettingsClient client.

func NewDatabaseSQLVulnerabilityAssessmentsSettingsClientWithBaseURI

func NewDatabaseSQLVulnerabilityAssessmentsSettingsClientWithBaseURI(baseURI string, subscriptionID string) DatabaseSQLVulnerabilityAssessmentsSettingsClient

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

func (DatabaseSQLVulnerabilityAssessmentsSettingsClient) Get

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

Get gets SQL Vulnerability Assessment policy for 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 (DatabaseSQLVulnerabilityAssessmentsSettingsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (DatabaseSQLVulnerabilityAssessmentsSettingsClient) GetResponder

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

func (DatabaseSQLVulnerabilityAssessmentsSettingsClient) GetSender

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

func (DatabaseSQLVulnerabilityAssessmentsSettingsClient) ListByDatabase

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

ListByDatabase lists SQL 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.

func (DatabaseSQLVulnerabilityAssessmentsSettingsClient) ListByDatabaseComplete

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

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

func (DatabaseSQLVulnerabilityAssessmentsSettingsClient) ListByDatabasePreparer

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (DatabaseSQLVulnerabilityAssessmentsSettingsClient) ListByDatabaseResponder

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

func (DatabaseSQLVulnerabilityAssessmentsSettingsClient) ListByDatabaseSender

func (client DatabaseSQLVulnerabilityAssessmentsSettingsClient) 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 DatabaseSchema

type DatabaseSchema 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"`
}

DatabaseSchema a database schema resource.

func (DatabaseSchema) MarshalJSON

func (ds DatabaseSchema) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseSchema.

type DatabaseSchemaListResult

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

DatabaseSchemaListResult a list of database schemas.

func (DatabaseSchemaListResult) IsEmpty

func (dslr DatabaseSchemaListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (DatabaseSchemaListResult) MarshalJSON

func (dslr DatabaseSchemaListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseSchemaListResult.

type DatabaseSchemaListResultIterator

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

DatabaseSchemaListResultIterator provides access to a complete listing of DatabaseSchema values.

func NewDatabaseSchemaListResultIterator

func NewDatabaseSchemaListResultIterator(page DatabaseSchemaListResultPage) DatabaseSchemaListResultIterator

Creates a new instance of the DatabaseSchemaListResultIterator type.

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

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

func (iter DatabaseSchemaListResultIterator) NotDone() bool

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

func (DatabaseSchemaListResultIterator) Response

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

func (DatabaseSchemaListResultIterator) Value

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

type DatabaseSchemaListResultPage

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

DatabaseSchemaListResultPage contains a page of DatabaseSchema values.

func NewDatabaseSchemaListResultPage

Creates a new instance of the DatabaseSchemaListResultPage type.

func (*DatabaseSchemaListResultPage) Next

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

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

func (page DatabaseSchemaListResultPage) NotDone() bool

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

func (DatabaseSchemaListResultPage) Response

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

func (DatabaseSchemaListResultPage) Values

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

type DatabaseSchemasClient

type DatabaseSchemasClient struct {
	BaseClient
}

DatabaseSchemasClient 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 NewDatabaseSchemasClient

func NewDatabaseSchemasClient(subscriptionID string) DatabaseSchemasClient

NewDatabaseSchemasClient creates an instance of the DatabaseSchemasClient client.

func NewDatabaseSchemasClientWithBaseURI

func NewDatabaseSchemasClientWithBaseURI(baseURI string, subscriptionID string) DatabaseSchemasClient

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

func (DatabaseSchemasClient) Get

func (client DatabaseSchemasClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string, schemaName string) (result DatabaseSchema, err error)

Get get 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. schemaName - the name of the schema.

func (DatabaseSchemasClient) GetPreparer

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

GetPreparer prepares the Get request.

func (DatabaseSchemasClient) GetResponder

func (client DatabaseSchemasClient) GetResponder(resp *http.Response) (result DatabaseSchema, err error)

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

func (DatabaseSchemasClient) GetSender

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

func (client DatabaseSchemasClient) ListByDatabase(ctx context.Context, resourceGroupName string, serverName string, databaseName string, filter string) (result DatabaseSchemaListResultPage, err error)

ListByDatabase list 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. filter - an OData filter expression that filters elements in the collection.

func (DatabaseSchemasClient) ListByDatabaseComplete

func (client DatabaseSchemasClient) ListByDatabaseComplete(ctx context.Context, resourceGroupName string, serverName string, databaseName string, filter string) (result DatabaseSchemaListResultIterator, err error)

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

func (DatabaseSchemasClient) ListByDatabasePreparer

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (DatabaseSchemasClient) ListByDatabaseResponder

func (client DatabaseSchemasClient) ListByDatabaseResponder(resp *http.Response) (result DatabaseSchemaListResult, err error)

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

func (DatabaseSchemasClient) ListByDatabaseSender

func (client DatabaseSchemasClient) 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 DatabaseSecurityAlertListResult

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

DatabaseSecurityAlertListResult a list of the database's security alert policies.

func (DatabaseSecurityAlertListResult) IsEmpty

func (dsalr DatabaseSecurityAlertListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (DatabaseSecurityAlertListResult) MarshalJSON

func (dsalr DatabaseSecurityAlertListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseSecurityAlertListResult.

type DatabaseSecurityAlertListResultIterator

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

DatabaseSecurityAlertListResultIterator provides access to a complete listing of DatabaseSecurityAlertPolicy values.

func NewDatabaseSecurityAlertListResultIterator

func NewDatabaseSecurityAlertListResultIterator(page DatabaseSecurityAlertListResultPage) DatabaseSecurityAlertListResultIterator

Creates a new instance of the DatabaseSecurityAlertListResultIterator type.

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

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

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

func (DatabaseSecurityAlertListResultIterator) Response

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

func (DatabaseSecurityAlertListResultIterator) Value

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

type DatabaseSecurityAlertListResultPage

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

DatabaseSecurityAlertListResultPage contains a page of DatabaseSecurityAlertPolicy values.

func NewDatabaseSecurityAlertListResultPage

Creates a new instance of the DatabaseSecurityAlertListResultPage type.

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

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

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

func (DatabaseSecurityAlertListResultPage) Response

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

func (DatabaseSecurityAlertListResultPage) Values

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

type DatabaseSecurityAlertPoliciesClient

type DatabaseSecurityAlertPoliciesClient struct {
	BaseClient
}

DatabaseSecurityAlertPoliciesClient 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 NewDatabaseSecurityAlertPoliciesClient

func NewDatabaseSecurityAlertPoliciesClient(subscriptionID string) DatabaseSecurityAlertPoliciesClient

NewDatabaseSecurityAlertPoliciesClient creates an instance of the DatabaseSecurityAlertPoliciesClient client.

func NewDatabaseSecurityAlertPoliciesClientWithBaseURI

func NewDatabaseSecurityAlertPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseSecurityAlertPoliciesClient

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

func (DatabaseSecurityAlertPoliciesClient) CreateOrUpdate

func (client DatabaseSecurityAlertPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseSecurityAlertPolicy) (result DatabaseSecurityAlertPolicy, 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. serverName - the name of the server. databaseName - the name of the database for which the security alert policy is defined. parameters - the database security alert policy.

func (DatabaseSecurityAlertPoliciesClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DatabaseSecurityAlertPoliciesClient) CreateOrUpdateResponder

func (client DatabaseSecurityAlertPoliciesClient) 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 (DatabaseSecurityAlertPoliciesClient) CreateOrUpdateSender

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

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

Get gets 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. serverName - the name of the server. databaseName - the name of the database for which the security alert policy is defined.

func (DatabaseSecurityAlertPoliciesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (DatabaseSecurityAlertPoliciesClient) GetResponder

func (client DatabaseSecurityAlertPoliciesClient) 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 (DatabaseSecurityAlertPoliciesClient) GetSender

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

func (DatabaseSecurityAlertPoliciesClient) ListByDatabase

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

ListByDatabase gets a list of 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. serverName - the name of the server. databaseName - the name of the database for which the security alert policy is defined.

func (DatabaseSecurityAlertPoliciesClient) ListByDatabaseComplete

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

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

func (DatabaseSecurityAlertPoliciesClient) ListByDatabasePreparer

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (DatabaseSecurityAlertPoliciesClient) ListByDatabaseResponder

func (client DatabaseSecurityAlertPoliciesClient) ListByDatabaseResponder(resp *http.Response) (result DatabaseSecurityAlertListResult, err error)

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

func (DatabaseSecurityAlertPoliciesClient) ListByDatabaseSender

func (client DatabaseSecurityAlertPoliciesClient) 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 DatabaseSecurityAlertPolicy

type DatabaseSecurityAlertPolicy struct {
	autorest.Response `json:"-"`
	// SystemData - READ-ONLY; SystemData of SecurityAlertPolicyResource.
	SystemData *SystemData `json:"systemData,omitempty"`
	// SecurityAlertsPolicyProperties - Resource properties.
	*SecurityAlertsPolicyProperties `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 a database security alert 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 DatabaseState

type DatabaseState string

DatabaseState enumerates the values for database state.

const (
	// DatabaseStateAll ...
	DatabaseStateAll DatabaseState = "All"
	// DatabaseStateDeleted ...
	DatabaseStateDeleted DatabaseState = "Deleted"
	// DatabaseStateLive ...
	DatabaseStateLive DatabaseState = "Live"
)

func PossibleDatabaseStateValues

func PossibleDatabaseStateValues() []DatabaseState

PossibleDatabaseStateValues returns an array of possible values for the DatabaseState const type.

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"
	// DatabaseStatusStarting ...
	DatabaseStatusStarting DatabaseStatus = "Starting"
	// DatabaseStatusStopped ...
	DatabaseStatusStopped DatabaseStatus = "Stopped"
	// DatabaseStatusStopping ...
	DatabaseStatusStopping DatabaseStatus = "Stopping"
	// DatabaseStatusSuspect ...
	DatabaseStatusSuspect DatabaseStatus = "Suspect"
)

func PossibleDatabaseStatusValues

func PossibleDatabaseStatusValues() []DatabaseStatus

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

type DatabaseTable

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

DatabaseTable a database table resource.

func (DatabaseTable) MarshalJSON

func (dt DatabaseTable) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseTable.

func (*DatabaseTable) UnmarshalJSON

func (dt *DatabaseTable) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DatabaseTable struct.

type DatabaseTableListResult

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

DatabaseTableListResult a list of database tables.

func (DatabaseTableListResult) IsEmpty

func (dtlr DatabaseTableListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (DatabaseTableListResult) MarshalJSON

func (dtlr DatabaseTableListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseTableListResult.

type DatabaseTableListResultIterator

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

DatabaseTableListResultIterator provides access to a complete listing of DatabaseTable values.

func NewDatabaseTableListResultIterator

func NewDatabaseTableListResultIterator(page DatabaseTableListResultPage) DatabaseTableListResultIterator

Creates a new instance of the DatabaseTableListResultIterator type.

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

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

func (iter DatabaseTableListResultIterator) NotDone() bool

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

func (DatabaseTableListResultIterator) Response

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

func (DatabaseTableListResultIterator) Value

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

type DatabaseTableListResultPage

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

DatabaseTableListResultPage contains a page of DatabaseTable values.

func NewDatabaseTableListResultPage

Creates a new instance of the DatabaseTableListResultPage type.

func (*DatabaseTableListResultPage) Next

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

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

func (page DatabaseTableListResultPage) NotDone() bool

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

func (DatabaseTableListResultPage) Response

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

func (DatabaseTableListResultPage) Values

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

type DatabaseTableProperties

type DatabaseTableProperties struct {
	// TemporalType - The table temporal type. Possible values include: 'TableTemporalTypeNonTemporalTable', 'TableTemporalTypeHistoryTable', 'TableTemporalTypeSystemVersionedTemporalTable'
	TemporalType TableTemporalType `json:"temporalType,omitempty"`
	// MemoryOptimized - Whether or not the table is memory optimized.
	MemoryOptimized *bool `json:"memoryOptimized,omitempty"`
}

DatabaseTableProperties database table properties.

type DatabaseTablesClient

type DatabaseTablesClient struct {
	BaseClient
}

DatabaseTablesClient 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 NewDatabaseTablesClient

func NewDatabaseTablesClient(subscriptionID string) DatabaseTablesClient

NewDatabaseTablesClient creates an instance of the DatabaseTablesClient client.

func NewDatabaseTablesClientWithBaseURI

func NewDatabaseTablesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseTablesClient

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

func (DatabaseTablesClient) Get

func (client DatabaseTablesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string, schemaName string, tableName string) (result DatabaseTable, err error)

Get get database table Parameters: resourceGroupName - the name of the resource group 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.

func (DatabaseTablesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (DatabaseTablesClient) GetResponder

func (client DatabaseTablesClient) GetResponder(resp *http.Response) (result DatabaseTable, err error)

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

func (DatabaseTablesClient) GetSender

func (client DatabaseTablesClient) 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 (DatabaseTablesClient) ListBySchema

func (client DatabaseTablesClient) ListBySchema(ctx context.Context, resourceGroupName string, serverName string, databaseName string, schemaName string, filter string) (result DatabaseTableListResultPage, err error)

ListBySchema list database tables Parameters: resourceGroupName - the name of the resource group 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. filter - an OData filter expression that filters elements in the collection.

func (DatabaseTablesClient) ListBySchemaComplete

func (client DatabaseTablesClient) ListBySchemaComplete(ctx context.Context, resourceGroupName string, serverName string, databaseName string, schemaName string, filter string) (result DatabaseTableListResultIterator, err error)

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

func (DatabaseTablesClient) ListBySchemaPreparer

func (client DatabaseTablesClient) ListBySchemaPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, schemaName string, filter string) (*http.Request, error)

ListBySchemaPreparer prepares the ListBySchema request.

func (DatabaseTablesClient) ListBySchemaResponder

func (client DatabaseTablesClient) ListBySchemaResponder(resp *http.Response) (result DatabaseTableListResult, err error)

ListBySchemaResponder handles the response to the ListBySchema request. The method always closes the http.Response Body.

func (DatabaseTablesClient) ListBySchemaSender

func (client DatabaseTablesClient) ListBySchemaSender(req *http.Request) (*http.Response, error)

ListBySchemaSender sends the ListBySchema 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"`
	// Identity - Database identity
	Identity *DatabaseIdentity `json:"identity,omitempty"`
	// DatabaseUpdateProperties - Resource properties.
	*DatabaseUpdateProperties `json:"properties,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
}

DatabaseUpdate a database update 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 DatabaseUpdateProperties

type DatabaseUpdateProperties 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: 'SampleNameAdventureWorksLT', 'SampleNameWideWorldImportersStd', 'SampleNameWideWorldImportersFull'
	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', 'DatabaseStatusStopping', 'DatabaseStatusStopped', 'DatabaseStatusStarting'
	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: 'CatalogCollationTypeDATABASEDEFAULT', 'CatalogCollationTypeSQLLatin1GeneralCP1CIAS'
	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. `LicenseIncluded` if you need a license, or `BasePrice` if you have a license and are eligible for the Azure Hybrid Benefit. Possible values include: 'DatabaseLicenseTypeLicenseIncluded', 'DatabaseLicenseTypeBasePrice'
	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 - The state of read-only routing. If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica in the same region. Not applicable to a Hyperscale database within an elastic pool. Possible values include: 'DatabaseReadScaleEnabled', 'DatabaseReadScaleDisabled'
	ReadScale DatabaseReadScale `json:"readScale,omitempty"`
	// HighAvailabilityReplicaCount - The number of secondary replicas associated with the database that are used to provide high availability. Not applicable to a Hyperscale database within an elastic pool.
	HighAvailabilityReplicaCount *int32 `json:"highAvailabilityReplicaCount,omitempty"`
	// SecondaryType - The secondary type of the database if it is a secondary.  Valid values are Geo, Named and Standby. Possible values include: 'SecondaryTypeGeo', 'SecondaryTypeNamed', 'SecondaryTypeStandby'
	SecondaryType SecondaryType `json:"secondaryType,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"`
	// CurrentBackupStorageRedundancy - READ-ONLY; The storage account type used to store backups for this database. Possible values include: 'BackupStorageRedundancyGeo', 'BackupStorageRedundancyLocal', 'BackupStorageRedundancyZone', 'BackupStorageRedundancyGeoZone'
	CurrentBackupStorageRedundancy BackupStorageRedundancy `json:"currentBackupStorageRedundancy,omitempty"`
	// RequestedBackupStorageRedundancy - The storage account type to be used to store backups for this database. Possible values include: 'BackupStorageRedundancyGeo', 'BackupStorageRedundancyLocal', 'BackupStorageRedundancyZone', 'BackupStorageRedundancyGeoZone'
	RequestedBackupStorageRedundancy BackupStorageRedundancy `json:"requestedBackupStorageRedundancy,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"`
	// MaintenanceConfigurationID - Maintenance configuration id assigned to the database. This configuration defines the period when the maintenance updates will occur.
	MaintenanceConfigurationID *string `json:"maintenanceConfigurationId,omitempty"`
	// IsLedgerOn - Whether or not this database is a ledger database, which means all tables in the database are ledger tables. Note: the value of this property cannot be changed after the database has been created.
	IsLedgerOn *bool `json:"isLedgerOn,omitempty"`
	// IsInfraEncryptionEnabled - READ-ONLY; Infra encryption is enabled for this database.
	IsInfraEncryptionEnabled *bool `json:"isInfraEncryptionEnabled,omitempty"`
	// FederatedClientID - The Client id used for cross tenant per database CMK scenario
	FederatedClientID *uuid.UUID `json:"federatedClientId,omitempty"`
}

DatabaseUpdateProperties a database update properties.

func (DatabaseUpdateProperties) MarshalJSON

func (dup DatabaseUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseUpdateProperties.

type DatabaseUsage

type DatabaseUsage struct {
	// DatabaseUsageProperties - Resource properties.
	*DatabaseUsageProperties `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"`
}

DatabaseUsage usage metric of a database.

func (DatabaseUsage) MarshalJSON

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

MarshalJSON is the custom marshaler for DatabaseUsage.

func (*DatabaseUsage) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for DatabaseUsage struct.

type DatabaseUsageListResult

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

DatabaseUsageListResult a list of database usage metrics.

func (DatabaseUsageListResult) IsEmpty

func (dulr DatabaseUsageListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (DatabaseUsageListResult) MarshalJSON

func (dulr DatabaseUsageListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseUsageListResult.

type DatabaseUsageListResultIterator

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

DatabaseUsageListResultIterator provides access to a complete listing of DatabaseUsage values.

func NewDatabaseUsageListResultIterator

func NewDatabaseUsageListResultIterator(page DatabaseUsageListResultPage) DatabaseUsageListResultIterator

Creates a new instance of the DatabaseUsageListResultIterator type.

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

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

func (iter DatabaseUsageListResultIterator) NotDone() bool

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

func (DatabaseUsageListResultIterator) Response

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

func (DatabaseUsageListResultIterator) Value

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

type DatabaseUsageListResultPage

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

DatabaseUsageListResultPage contains a page of DatabaseUsage values.

func NewDatabaseUsageListResultPage

Creates a new instance of the DatabaseUsageListResultPage type.

func (*DatabaseUsageListResultPage) Next

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

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

func (page DatabaseUsageListResultPage) NotDone() bool

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

func (DatabaseUsageListResultPage) Response

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

func (DatabaseUsageListResultPage) Values

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

type DatabaseUsageProperties

type DatabaseUsageProperties 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"`
}

DatabaseUsageProperties properties of a database usage.

func (DatabaseUsageProperties) MarshalJSON

func (dup DatabaseUsageProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseUsageProperties.

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

func (DatabaseUsagesClient) ListByDatabase

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

ListByDatabase gets 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) ListByDatabaseComplete

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

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

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 DatabaseUserIdentity

type DatabaseUserIdentity struct {
	// PrincipalID - READ-ONLY; The Azure Active Directory principal id.
	PrincipalID *uuid.UUID `json:"principalId,omitempty"`
	// ClientID - READ-ONLY; The Azure Active Directory client id.
	ClientID *uuid.UUID `json:"clientId,omitempty"`
}

DatabaseUserIdentity azure Active Directory identity configuration for a resource.

func (DatabaseUserIdentity) MarshalJSON

func (dui DatabaseUserIdentity) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseUserIdentity.

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.

func (DatabaseVulnerabilityAssessmentListResult) MarshalJSON

func (dvalr DatabaseVulnerabilityAssessmentListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatabaseVulnerabilityAssessmentListResult.

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

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.

func (DatabaseVulnerabilityAssessmentScanExportProperties) MarshalJSON

MarshalJSON is the custom marshaler for DatabaseVulnerabilityAssessmentScanExportProperties.

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

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.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(DatabaseVulnerabilityAssessmentScansClient) (autorest.Response, error)
}

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

func (*DatabaseVulnerabilityAssessmentScansInitiateScanFuture) UnmarshalJSON

UnmarshalJSON is the custom unmarshaller for CreateFuture.

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

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

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

Export exports 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. parameters - the database export request parameters.

func (DatabasesClient) ExportPreparer

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

ExportPreparer prepares the Export request.

func (DatabasesClient) ExportResponder

func (client DatabasesClient) ExportResponder(resp *http.Response) (result ImportExportOperationResult, 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, replicaType ReplicaType) (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. replicaType - the type of replica to be failed over.

func (DatabasesClient) FailoverPreparer

func (client DatabasesClient) FailoverPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, replicaType ReplicaType) (*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, databaseName string, parameters ImportExistingDatabaseDefinition) (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. databaseName - the name of the database. parameters - the database import request parameters.

func (DatabasesClient) ImportPreparer

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

ImportPreparer prepares the Import request.

func (DatabasesClient) ImportResponder

func (client DatabasesClient) ImportResponder(resp *http.Response) (result ImportExportOperationResult, 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, skipToken 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, skipToken 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, skipToken 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) ListInaccessibleByServer

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

ListInaccessibleByServer gets a list of inaccessible databases in a logical 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 (DatabasesClient) ListInaccessibleByServerComplete

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

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

func (DatabasesClient) ListInaccessibleByServerPreparer

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

ListInaccessibleByServerPreparer prepares the ListInaccessibleByServer request.

func (DatabasesClient) ListInaccessibleByServerResponder

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

ListInaccessibleByServerResponder handles the response to the ListInaccessibleByServer request. The method always closes the http.Response Body.

func (DatabasesClient) ListInaccessibleByServerSender

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

ListInaccessibleByServerSender sends the ListInaccessibleByServer 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 DatabasesCreateOrUpdateFuture

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

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

func (*DatabasesCreateOrUpdateFuture) UnmarshalJSON

func (future *DatabasesCreateOrUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DatabasesDeleteFuture

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

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

func (*DatabasesDeleteFuture) UnmarshalJSON

func (future *DatabasesDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DatabasesExportFuture

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

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

func (*DatabasesExportFuture) UnmarshalJSON

func (future *DatabasesExportFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DatabasesFailoverFuture

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

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

func (*DatabasesFailoverFuture) UnmarshalJSON

func (future *DatabasesFailoverFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DatabasesImportFuture

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

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

func (*DatabasesImportFuture) UnmarshalJSON

func (future *DatabasesImportFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DatabasesPauseFuture

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

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

func (*DatabasesPauseFuture) UnmarshalJSON

func (future *DatabasesPauseFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DatabasesResumeFuture

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

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

func (*DatabasesResumeFuture) UnmarshalJSON

func (future *DatabasesResumeFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DatabasesUpdateFuture

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

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

func (*DatabasesUpdateFuture) UnmarshalJSON

func (future *DatabasesUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DatabasesUpgradeDataWarehouseFuture

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

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

func (*DatabasesUpgradeDataWarehouseFuture) UnmarshalJSON

func (future *DatabasesUpgradeDataWarehouseFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DayOfWeek

type DayOfWeek string

DayOfWeek enumerates the values for day of week.

const (
	// DayOfWeekFriday ...
	DayOfWeekFriday DayOfWeek = "Friday"
	// DayOfWeekMonday ...
	DayOfWeekMonday DayOfWeek = "Monday"
	// DayOfWeekSaturday ...
	DayOfWeekSaturday DayOfWeek = "Saturday"
	// DayOfWeekSunday ...
	DayOfWeekSunday DayOfWeek = "Sunday"
	// DayOfWeekThursday ...
	DayOfWeekThursday DayOfWeek = "Thursday"
	// DayOfWeekTuesday ...
	DayOfWeekTuesday DayOfWeek = "Tuesday"
	// DayOfWeekWednesday ...
	DayOfWeekWednesday DayOfWeek = "Wednesday"
)

func PossibleDayOfWeekValues

func PossibleDayOfWeekValues() []DayOfWeek

PossibleDayOfWeekValues returns an array of possible values for the DayOfWeek const type.

type DeletedServer

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

DeletedServer a deleted server.

func (DeletedServer) MarshalJSON

func (ds DeletedServer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DeletedServer.

func (*DeletedServer) UnmarshalJSON

func (ds *DeletedServer) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DeletedServer struct.

type DeletedServerListResult

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

DeletedServerListResult a list of deleted servers.

func (DeletedServerListResult) IsEmpty

func (dslr DeletedServerListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (DeletedServerListResult) MarshalJSON

func (dslr DeletedServerListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DeletedServerListResult.

type DeletedServerListResultIterator

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

DeletedServerListResultIterator provides access to a complete listing of DeletedServer values.

func NewDeletedServerListResultIterator

func NewDeletedServerListResultIterator(page DeletedServerListResultPage) DeletedServerListResultIterator

Creates a new instance of the DeletedServerListResultIterator type.

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

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

func (iter DeletedServerListResultIterator) NotDone() bool

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

func (DeletedServerListResultIterator) Response

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

func (DeletedServerListResultIterator) Value

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

type DeletedServerListResultPage

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

DeletedServerListResultPage contains a page of DeletedServer values.

func NewDeletedServerListResultPage

Creates a new instance of the DeletedServerListResultPage type.

func (*DeletedServerListResultPage) Next

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

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

func (page DeletedServerListResultPage) NotDone() bool

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

func (DeletedServerListResultPage) Response

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

func (DeletedServerListResultPage) Values

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

type DeletedServerProperties

type DeletedServerProperties struct {
	// Version - READ-ONLY; The version of the deleted server.
	Version *string `json:"version,omitempty"`
	// DeletionTime - READ-ONLY; The deletion time of the deleted server.
	DeletionTime *date.Time `json:"deletionTime,omitempty"`
	// OriginalID - READ-ONLY; The original ID of the server before deletion.
	OriginalID *string `json:"originalId,omitempty"`
	// FullyQualifiedDomainName - READ-ONLY; The fully qualified domain name of the server.
	FullyQualifiedDomainName *string `json:"fullyQualifiedDomainName,omitempty"`
}

DeletedServerProperties the properties of a deleted server.

func (DeletedServerProperties) MarshalJSON

func (dsp DeletedServerProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DeletedServerProperties.

type DeletedServersClient

type DeletedServersClient struct {
	BaseClient
}

DeletedServersClient 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 NewDeletedServersClient

func NewDeletedServersClient(subscriptionID string) DeletedServersClient

NewDeletedServersClient creates an instance of the DeletedServersClient client.

func NewDeletedServersClientWithBaseURI

func NewDeletedServersClientWithBaseURI(baseURI string, subscriptionID string) DeletedServersClient

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

func (DeletedServersClient) Get

func (client DeletedServersClient) Get(ctx context.Context, locationName string, deletedServerName string) (result DeletedServer, err error)

Get gets a deleted server. Parameters: locationName - the name of the region where the resource is located. deletedServerName - the name of the deleted server.

func (DeletedServersClient) GetPreparer

func (client DeletedServersClient) GetPreparer(ctx context.Context, locationName string, deletedServerName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DeletedServersClient) GetResponder

func (client DeletedServersClient) GetResponder(resp *http.Response) (result DeletedServer, err error)

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

func (DeletedServersClient) GetSender

func (client DeletedServersClient) 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 (DeletedServersClient) List

func (client DeletedServersClient) List(ctx context.Context) (result DeletedServerListResultPage, err error)

List gets a list of all deleted servers in a subscription.

func (DeletedServersClient) ListByLocation

func (client DeletedServersClient) ListByLocation(ctx context.Context, locationName string) (result DeletedServerListResultPage, err error)

ListByLocation gets a list of deleted servers for a location. Parameters: locationName - the name of the region where the resource is located.

func (DeletedServersClient) ListByLocationComplete

func (client DeletedServersClient) ListByLocationComplete(ctx context.Context, locationName string) (result DeletedServerListResultIterator, err error)

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

func (DeletedServersClient) ListByLocationPreparer

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

ListByLocationPreparer prepares the ListByLocation request.

func (DeletedServersClient) ListByLocationResponder

func (client DeletedServersClient) ListByLocationResponder(resp *http.Response) (result DeletedServerListResult, err error)

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

func (DeletedServersClient) ListByLocationSender

func (client DeletedServersClient) 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 (DeletedServersClient) ListComplete

func (client DeletedServersClient) ListComplete(ctx context.Context) (result DeletedServerListResultIterator, err error)

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

func (DeletedServersClient) ListPreparer

func (client DeletedServersClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (DeletedServersClient) ListResponder

func (client DeletedServersClient) ListResponder(resp *http.Response) (result DeletedServerListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (DeletedServersClient) ListSender

func (client DeletedServersClient) 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 (DeletedServersClient) Recover

func (client DeletedServersClient) Recover(ctx context.Context, locationName string, deletedServerName string) (result DeletedServersRecoverFuture, err error)

Recover recovers a deleted server. Parameters: locationName - the name of the region where the resource is located. deletedServerName - the name of the deleted server.

func (DeletedServersClient) RecoverPreparer

func (client DeletedServersClient) RecoverPreparer(ctx context.Context, locationName string, deletedServerName string) (*http.Request, error)

RecoverPreparer prepares the Recover request.

func (DeletedServersClient) RecoverResponder

func (client DeletedServersClient) RecoverResponder(resp *http.Response) (result DeletedServer, err error)

RecoverResponder handles the response to the Recover request. The method always closes the http.Response Body.

func (DeletedServersClient) RecoverSender

func (client DeletedServersClient) RecoverSender(req *http.Request) (future DeletedServersRecoverFuture, err error)

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

type DeletedServersRecoverFuture

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

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

func (*DeletedServersRecoverFuture) UnmarshalJSON

func (future *DeletedServersRecoverFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DistributedAvailabilityGroup

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

DistributedAvailabilityGroup distributed availability group between box and Sql Managed Instance.

func (DistributedAvailabilityGroup) MarshalJSON

func (dag DistributedAvailabilityGroup) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DistributedAvailabilityGroup.

func (*DistributedAvailabilityGroup) UnmarshalJSON

func (dag *DistributedAvailabilityGroup) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DistributedAvailabilityGroup struct.

type DistributedAvailabilityGroupProperties

type DistributedAvailabilityGroupProperties struct {
	// TargetDatabase - The name of the target database
	TargetDatabase *string `json:"targetDatabase,omitempty"`
	// SourceEndpoint - The source endpoint
	SourceEndpoint *string `json:"sourceEndpoint,omitempty"`
	// PrimaryAvailabilityGroupName - The primary availability group name
	PrimaryAvailabilityGroupName *string `json:"primaryAvailabilityGroupName,omitempty"`
	// SecondaryAvailabilityGroupName - The secondary availability group name
	SecondaryAvailabilityGroupName *string `json:"secondaryAvailabilityGroupName,omitempty"`
	// ReplicationMode - The replication mode of a distributed availability group. Parameter will be ignored during link creation. Possible values include: 'ReplicationModeAsync', 'ReplicationModeSync'
	ReplicationMode ReplicationMode `json:"replicationMode,omitempty"`
	// DistributedAvailabilityGroupID - READ-ONLY; The distributed availability group id
	DistributedAvailabilityGroupID *uuid.UUID `json:"distributedAvailabilityGroupId,omitempty"`
	// SourceReplicaID - READ-ONLY; The source replica id
	SourceReplicaID *uuid.UUID `json:"sourceReplicaId,omitempty"`
	// TargetReplicaID - READ-ONLY; The target replica id
	TargetReplicaID *uuid.UUID `json:"targetReplicaId,omitempty"`
	// LinkState - READ-ONLY; The link state
	LinkState *string `json:"linkState,omitempty"`
	// LastHardenedLsn - READ-ONLY; The last hardened lsn
	LastHardenedLsn *string `json:"lastHardenedLsn,omitempty"`
}

DistributedAvailabilityGroupProperties the properties of a distributed availability group.

func (DistributedAvailabilityGroupProperties) MarshalJSON

func (dagp DistributedAvailabilityGroupProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DistributedAvailabilityGroupProperties.

type DistributedAvailabilityGroupsClient

type DistributedAvailabilityGroupsClient struct {
	BaseClient
}

DistributedAvailabilityGroupsClient 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 NewDistributedAvailabilityGroupsClient

func NewDistributedAvailabilityGroupsClient(subscriptionID string) DistributedAvailabilityGroupsClient

NewDistributedAvailabilityGroupsClient creates an instance of the DistributedAvailabilityGroupsClient client.

func NewDistributedAvailabilityGroupsClientWithBaseURI

func NewDistributedAvailabilityGroupsClientWithBaseURI(baseURI string, subscriptionID string) DistributedAvailabilityGroupsClient

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

func (DistributedAvailabilityGroupsClient) CreateOrUpdate

func (client DistributedAvailabilityGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, distributedAvailabilityGroupName string, parameters DistributedAvailabilityGroup) (result DistributedAvailabilityGroupsCreateOrUpdateFuture, err error)

CreateOrUpdate creates a distributed availability group between Sql On-Prem and Sql 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. distributedAvailabilityGroupName - the distributed availability group name. parameters - the distributed availability group info.

func (DistributedAvailabilityGroupsClient) CreateOrUpdatePreparer

func (client DistributedAvailabilityGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, distributedAvailabilityGroupName string, parameters DistributedAvailabilityGroup) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DistributedAvailabilityGroupsClient) CreateOrUpdateResponder

func (client DistributedAvailabilityGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result DistributedAvailabilityGroup, err error)

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

func (DistributedAvailabilityGroupsClient) CreateOrUpdateSender

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

func (DistributedAvailabilityGroupsClient) Delete

func (client DistributedAvailabilityGroupsClient) Delete(ctx context.Context, resourceGroupName string, managedInstanceName string, distributedAvailabilityGroupName string) (result DistributedAvailabilityGroupsDeleteFuture, err error)

Delete drops a distributed availability group between Sql On-Prem and Sql 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. distributedAvailabilityGroupName - the distributed availability group name.

func (DistributedAvailabilityGroupsClient) DeletePreparer

func (client DistributedAvailabilityGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, distributedAvailabilityGroupName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (DistributedAvailabilityGroupsClient) DeleteResponder

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

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

func (DistributedAvailabilityGroupsClient) Get

func (client DistributedAvailabilityGroupsClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, distributedAvailabilityGroupName string) (result DistributedAvailabilityGroup, err error)

Get gets a distributed availability group info. Parameters: resourceGroupName - 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. distributedAvailabilityGroupName - the distributed availability group name.

func (DistributedAvailabilityGroupsClient) GetPreparer

func (client DistributedAvailabilityGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, distributedAvailabilityGroupName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DistributedAvailabilityGroupsClient) GetResponder

func (client DistributedAvailabilityGroupsClient) GetResponder(resp *http.Response) (result DistributedAvailabilityGroup, err error)

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

func (DistributedAvailabilityGroupsClient) GetSender

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

func (DistributedAvailabilityGroupsClient) ListByInstance

func (client DistributedAvailabilityGroupsClient) ListByInstance(ctx context.Context, resourceGroupName string, managedInstanceName string) (result DistributedAvailabilityGroupsListResultPage, err error)

ListByInstance gets a list of a distributed availability groups in 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 (DistributedAvailabilityGroupsClient) ListByInstanceComplete

func (client DistributedAvailabilityGroupsClient) ListByInstanceComplete(ctx context.Context, resourceGroupName string, managedInstanceName string) (result DistributedAvailabilityGroupsListResultIterator, err error)

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

func (DistributedAvailabilityGroupsClient) ListByInstancePreparer

func (client DistributedAvailabilityGroupsClient) ListByInstancePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error)

ListByInstancePreparer prepares the ListByInstance request.

func (DistributedAvailabilityGroupsClient) ListByInstanceResponder

func (client DistributedAvailabilityGroupsClient) ListByInstanceResponder(resp *http.Response) (result DistributedAvailabilityGroupsListResult, err error)

ListByInstanceResponder handles the response to the ListByInstance request. The method always closes the http.Response Body.

func (DistributedAvailabilityGroupsClient) ListByInstanceSender

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

func (client DistributedAvailabilityGroupsClient) Update(ctx context.Context, resourceGroupName string, managedInstanceName string, distributedAvailabilityGroupName string, parameters DistributedAvailabilityGroup) (result DistributedAvailabilityGroupsUpdateFuture, err error)

Update updates a distributed availability group replication mode. Parameters: resourceGroupName - 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. distributedAvailabilityGroupName - the distributed availability group name. parameters - the distributed availability group info.

func (DistributedAvailabilityGroupsClient) UpdatePreparer

func (client DistributedAvailabilityGroupsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, distributedAvailabilityGroupName string, parameters DistributedAvailabilityGroup) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (DistributedAvailabilityGroupsClient) UpdateResponder

func (client DistributedAvailabilityGroupsClient) UpdateResponder(resp *http.Response) (result DistributedAvailabilityGroup, err error)

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

func (DistributedAvailabilityGroupsClient) UpdateSender

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

type DistributedAvailabilityGroupsCreateOrUpdateFuture

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

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

func (*DistributedAvailabilityGroupsCreateOrUpdateFuture) UnmarshalJSON

func (future *DistributedAvailabilityGroupsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DistributedAvailabilityGroupsDeleteFuture

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

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

func (*DistributedAvailabilityGroupsDeleteFuture) UnmarshalJSON

func (future *DistributedAvailabilityGroupsDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DistributedAvailabilityGroupsListResult

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

DistributedAvailabilityGroupsListResult a list of distributed availability groups in instance.

func (DistributedAvailabilityGroupsListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

func (DistributedAvailabilityGroupsListResult) MarshalJSON

func (daglr DistributedAvailabilityGroupsListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DistributedAvailabilityGroupsListResult.

type DistributedAvailabilityGroupsListResultIterator

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

DistributedAvailabilityGroupsListResultIterator provides access to a complete listing of DistributedAvailabilityGroup values.

func NewDistributedAvailabilityGroupsListResultIterator

func NewDistributedAvailabilityGroupsListResultIterator(page DistributedAvailabilityGroupsListResultPage) DistributedAvailabilityGroupsListResultIterator

Creates a new instance of the DistributedAvailabilityGroupsListResultIterator type.

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

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

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

func (DistributedAvailabilityGroupsListResultIterator) Response

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

func (DistributedAvailabilityGroupsListResultIterator) Value

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

type DistributedAvailabilityGroupsListResultPage

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

DistributedAvailabilityGroupsListResultPage contains a page of DistributedAvailabilityGroup values.

func NewDistributedAvailabilityGroupsListResultPage

Creates a new instance of the DistributedAvailabilityGroupsListResultPage type.

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

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

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

func (DistributedAvailabilityGroupsListResultPage) Response

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

func (DistributedAvailabilityGroupsListResultPage) Values

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

type DistributedAvailabilityGroupsUpdateFuture

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

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

func (*DistributedAvailabilityGroupsUpdateFuture) UnmarshalJSON

func (future *DistributedAvailabilityGroupsUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

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"`
	// ReadScale - READ-ONLY; The read scale capability for the edition.
	ReadScale *ReadScaleCapability `json:"readScale,omitempty"`
	// SupportedStorageCapabilities - READ-ONLY; The list of supported storage capabilities for this edition
	SupportedStorageCapabilities *[]StorageCapability `json:"supportedStorageCapabilities,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.

func (EditionCapability) MarshalJSON

func (ec EditionCapability) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EditionCapability.

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

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.

func (ElasticPoolActivityProperties) MarshalJSON

func (epap ElasticPoolActivityProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ElasticPoolActivityProperties.

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

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.

func (ElasticPoolDatabaseActivityProperties) MarshalJSON

func (epdap ElasticPoolDatabaseActivityProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ElasticPoolDatabaseActivityProperties.

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.

func (ElasticPoolEditionCapability) MarshalJSON

func (epec ElasticPoolEditionCapability) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ElasticPoolEditionCapability.

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.

func (ElasticPoolListResult) MarshalJSON

func (eplr ElasticPoolListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ElasticPoolListResult.

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

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.

func (ElasticPoolOperationListResult) MarshalJSON

func (epolr ElasticPoolOperationListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ElasticPoolOperationListResult.

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.

func (ElasticPoolOperationProperties) MarshalJSON

func (epop ElasticPoolOperationProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ElasticPoolOperationProperties.

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

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: 'PerformanceLevelUnitDTU', 'PerformanceLevelUnitVCores'
	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.

func (ElasticPoolPerDatabaseMaxPerformanceLevelCapability) MarshalJSON

MarshalJSON is the custom marshaler for ElasticPoolPerDatabaseMaxPerformanceLevelCapability.

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: 'PerformanceLevelUnitDTU', 'PerformanceLevelUnitVCores'
	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.

func (ElasticPoolPerDatabaseMinPerformanceLevelCapability) MarshalJSON

MarshalJSON is the custom marshaler for ElasticPoolPerDatabaseMinPerformanceLevelCapability.

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"`
	// ZoneRedundant - READ-ONLY; Whether or not zone redundancy is supported for the performance level.
	ZoneRedundant *bool `json:"zoneRedundant,omitempty"`
	// SupportedMaintenanceConfigurations - READ-ONLY; List of supported maintenance configurations
	SupportedMaintenanceConfigurations *[]MaintenanceConfigurationCapability `json:"supportedMaintenanceConfigurations,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.

func (ElasticPoolPerformanceLevelCapability) MarshalJSON

func (epplc ElasticPoolPerformanceLevelCapability) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ElasticPoolPerformanceLevelCapability.

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"`
	// MaintenanceConfigurationID - Maintenance configuration id assigned to the elastic pool. This configuration defines the period when the maintenance updates will will occur.
	MaintenanceConfigurationID *string `json:"maintenanceConfigurationId,omitempty"`
	// HighAvailabilityReplicaCount - The number of secondary replicas associated with the elastic pool that are used to provide high availability.
	HighAvailabilityReplicaCount *int32 `json:"highAvailabilityReplicaCount,omitempty"`
}

ElasticPoolProperties properties of an elastic pool

func (ElasticPoolProperties) MarshalJSON

func (epp ElasticPoolProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ElasticPoolProperties.

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"`
	// MaintenanceConfigurationID - Maintenance configuration id assigned to the elastic pool. This configuration defines the period when the maintenance updates will will occur.
	MaintenanceConfigurationID *string `json:"maintenanceConfigurationId,omitempty"`
	// HighAvailabilityReplicaCount - The number of secondary replicas associated with the elastic pool that are used to provide high availability. Applicable only to Hyperscale elastic pools.
	HighAvailabilityReplicaCount *int32 `json:"highAvailabilityReplicaCount,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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

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 *int64) (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 *int64) (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 *int64) (*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.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(ElasticPoolsClient) (ElasticPool, error)
}

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

func (*ElasticPoolsCreateOrUpdateFuture) UnmarshalJSON

func (future *ElasticPoolsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ElasticPoolsDeleteFuture

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

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

func (*ElasticPoolsDeleteFuture) UnmarshalJSON

func (future *ElasticPoolsDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ElasticPoolsFailoverFuture

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

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

func (*ElasticPoolsFailoverFuture) UnmarshalJSON

func (future *ElasticPoolsFailoverFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ElasticPoolsUpdateFuture

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

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

func (*ElasticPoolsUpdateFuture) UnmarshalJSON

func (future *ElasticPoolsUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

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.

func (EncryptionProtectorListResult) MarshalJSON

func (eplr EncryptionProtectorListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EncryptionProtectorListResult.

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: 'ServerKeyTypeServiceManaged', 'ServerKeyTypeAzureKeyVault'
	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"`
	// AutoRotationEnabled - Key auto rotation opt-in flag. Either true or false.
	AutoRotationEnabled *bool `json:"autoRotationEnabled,omitempty"`
}

EncryptionProtectorProperties properties for an encryption protector execution.

func (EncryptionProtectorProperties) MarshalJSON

func (epp EncryptionProtectorProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EncryptionProtectorProperties.

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

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.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(EncryptionProtectorsClient) (EncryptionProtector, error)
}

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

func (*EncryptionProtectorsCreateOrUpdateFuture) UnmarshalJSON

func (future *EncryptionProtectorsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type EncryptionProtectorsRevalidateFuture

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

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

func (*EncryptionProtectorsRevalidateFuture) UnmarshalJSON

func (future *EncryptionProtectorsRevalidateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type EndpointCertificate

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

EndpointCertificate certificate used on an endpoint on the Managed Instance.

func (EndpointCertificate) MarshalJSON

func (ec EndpointCertificate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EndpointCertificate.

func (*EndpointCertificate) UnmarshalJSON

func (ec *EndpointCertificate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for EndpointCertificate struct.

type EndpointCertificateListResult

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

EndpointCertificateListResult a list of endpoint certificates on the target instance.

func (EndpointCertificateListResult) IsEmpty

func (eclr EndpointCertificateListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (EndpointCertificateListResult) MarshalJSON

func (eclr EndpointCertificateListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EndpointCertificateListResult.

type EndpointCertificateListResultIterator

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

EndpointCertificateListResultIterator provides access to a complete listing of EndpointCertificate values.

func NewEndpointCertificateListResultIterator

func NewEndpointCertificateListResultIterator(page EndpointCertificateListResultPage) EndpointCertificateListResultIterator

Creates a new instance of the EndpointCertificateListResultIterator type.

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

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

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

func (EndpointCertificateListResultIterator) Response

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

func (EndpointCertificateListResultIterator) Value

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

type EndpointCertificateListResultPage

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

EndpointCertificateListResultPage contains a page of EndpointCertificate values.

func NewEndpointCertificateListResultPage

Creates a new instance of the EndpointCertificateListResultPage type.

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

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

func (page EndpointCertificateListResultPage) NotDone() bool

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

func (EndpointCertificateListResultPage) Response

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

func (EndpointCertificateListResultPage) Values

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

type EndpointCertificateProperties

type EndpointCertificateProperties struct {
	// PublicBlob - The certificate public blob
	PublicBlob *string `json:"publicBlob,omitempty"`
}

EndpointCertificateProperties the properties of an endpoint certificate.

type EndpointCertificatesClient

type EndpointCertificatesClient struct {
	BaseClient
}

EndpointCertificatesClient 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 NewEndpointCertificatesClient

func NewEndpointCertificatesClient(subscriptionID string) EndpointCertificatesClient

NewEndpointCertificatesClient creates an instance of the EndpointCertificatesClient client.

func NewEndpointCertificatesClientWithBaseURI

func NewEndpointCertificatesClientWithBaseURI(baseURI string, subscriptionID string) EndpointCertificatesClient

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

func (EndpointCertificatesClient) Get

func (client EndpointCertificatesClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, endpointType string) (result EndpointCertificate, err error)

Get gets a certificate used on the endpoint with the given id. Parameters: resourceGroupName - 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. endpointType - type of the endpoint whose certificate the customer is looking for.

func (EndpointCertificatesClient) GetPreparer

func (client EndpointCertificatesClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, endpointType string) (*http.Request, error)

GetPreparer prepares the Get request.

func (EndpointCertificatesClient) GetResponder

func (client EndpointCertificatesClient) GetResponder(resp *http.Response) (result EndpointCertificate, err error)

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

func (EndpointCertificatesClient) GetSender

func (client EndpointCertificatesClient) 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 (EndpointCertificatesClient) ListByInstance

func (client EndpointCertificatesClient) ListByInstance(ctx context.Context, resourceGroupName string, managedInstanceName string) (result EndpointCertificateListResultPage, err error)

ListByInstance list certificates used on endpoints on the target 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 (EndpointCertificatesClient) ListByInstanceComplete

func (client EndpointCertificatesClient) ListByInstanceComplete(ctx context.Context, resourceGroupName string, managedInstanceName string) (result EndpointCertificateListResultIterator, err error)

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

func (EndpointCertificatesClient) ListByInstancePreparer

func (client EndpointCertificatesClient) ListByInstancePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string) (*http.Request, error)

ListByInstancePreparer prepares the ListByInstance request.

func (EndpointCertificatesClient) ListByInstanceResponder

func (client EndpointCertificatesClient) ListByInstanceResponder(resp *http.Response) (result EndpointCertificateListResult, err error)

ListByInstanceResponder handles the response to the ListByInstance request. The method always closes the http.Response Body.

func (EndpointCertificatesClient) ListByInstanceSender

func (client EndpointCertificatesClient) 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 ExportDatabaseDefinition

type ExportDatabaseDefinition struct {
	// StorageKeyType - Storage key type. Possible values include: 'StorageKeyTypeSharedAccessKey', 'StorageKeyTypeStorageAccessKey'
	StorageKeyType StorageKeyType `json:"storageKeyType,omitempty"`
	// StorageKey - Storage key.
	StorageKey *string `json:"storageKey,omitempty"`
	// StorageURI - Storage Uri.
	StorageURI *string `json:"storageUri,omitempty"`
	// AdministratorLogin - Administrator login name.
	AdministratorLogin *string `json:"administratorLogin,omitempty"`
	// AdministratorLoginPassword - Administrator login password.
	AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"`
	// AuthenticationType - Authentication type.
	AuthenticationType *string `json:"authenticationType,omitempty"`
	// NetworkIsolation - Optional resource information to enable network isolation for request.
	NetworkIsolation *NetworkIsolationSettings `json:"networkIsolation,omitempty"`
}

ExportDatabaseDefinition contains the information necessary to perform export database operation.

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

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.

func (ExtendedDatabaseBlobAuditingPoliciesClient) ListByDatabase

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

ListByDatabase lists extended 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 (ExtendedDatabaseBlobAuditingPoliciesClient) ListByDatabaseComplete

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

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

func (ExtendedDatabaseBlobAuditingPoliciesClient) ListByDatabasePreparer

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (ExtendedDatabaseBlobAuditingPoliciesClient) ListByDatabaseResponder

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

func (ExtendedDatabaseBlobAuditingPoliciesClient) ListByDatabaseSender

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

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

ExtendedDatabaseBlobAuditingPolicyListResult a list of database extended auditing settings.

func (ExtendedDatabaseBlobAuditingPolicyListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

func (ExtendedDatabaseBlobAuditingPolicyListResult) MarshalJSON

func (edbaplr ExtendedDatabaseBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ExtendedDatabaseBlobAuditingPolicyListResult.

type ExtendedDatabaseBlobAuditingPolicyListResultIterator

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

ExtendedDatabaseBlobAuditingPolicyListResultIterator provides access to a complete listing of ExtendedDatabaseBlobAuditingPolicy values.

func NewExtendedDatabaseBlobAuditingPolicyListResultIterator

func NewExtendedDatabaseBlobAuditingPolicyListResultIterator(page ExtendedDatabaseBlobAuditingPolicyListResultPage) ExtendedDatabaseBlobAuditingPolicyListResultIterator

Creates a new instance of the ExtendedDatabaseBlobAuditingPolicyListResultIterator type.

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

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

func (ExtendedDatabaseBlobAuditingPolicyListResultIterator) Response

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

func (ExtendedDatabaseBlobAuditingPolicyListResultIterator) Value

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

type ExtendedDatabaseBlobAuditingPolicyListResultPage

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

ExtendedDatabaseBlobAuditingPolicyListResultPage contains a page of ExtendedDatabaseBlobAuditingPolicy values.

func NewExtendedDatabaseBlobAuditingPolicyListResultPage

Creates a new instance of the ExtendedDatabaseBlobAuditingPolicyListResultPage type.

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

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

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

func (ExtendedDatabaseBlobAuditingPolicyListResultPage) Response

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

func (ExtendedDatabaseBlobAuditingPolicyListResultPage) Values

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

type ExtendedDatabaseBlobAuditingPolicyProperties

type ExtendedDatabaseBlobAuditingPolicyProperties struct {
	// PredicateExpression - Specifies condition of where clause when creating an audit.
	PredicateExpression *string `json:"predicateExpression,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
	// DBCC_GROUP
	// DATABASE_OWNERSHIP_CHANGE_GROUP
	// DATABASE_CHANGE_GROUP
	// LEDGER_OPERATION_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"`
	// 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"`
	// QueueDelayMs - Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed.
	// The default minimum value is 1000 (1 second). The maximum is 2,147,483,647.
	QueueDelayMs *int32 `json:"queueDelayMs,omitempty"`
	// IsManagedIdentityInUse - Specifies whether Managed Identity is used to access blob storage
	IsManagedIdentityInUse *bool `json:"isManagedIdentityInUse,omitempty"`
	// State - Specifies the state of the audit. 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 or isAzureMonitorTargetEnabled 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, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage.
	// Prerequisites for using managed identity authentication:
	// 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD).
	// 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity.
	// For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355)
	StorageAccountAccessKey *string `json:"storageAccountAccessKey,omitempty"`
	// StorageAccountSubscriptionID - Specifies the blob storage subscription Id.
	StorageAccountSubscriptionID *uuid.UUID `json:"storageAccountSubscriptionId,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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

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.

func (ExtendedServerBlobAuditingPoliciesClient) ListByServer

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

ListByServer lists extended 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 (ExtendedServerBlobAuditingPoliciesClient) ListByServerComplete

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

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

func (ExtendedServerBlobAuditingPoliciesClient) ListByServerPreparer

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

ListByServerPreparer prepares the ListByServer request.

func (ExtendedServerBlobAuditingPoliciesClient) ListByServerResponder

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

func (ExtendedServerBlobAuditingPoliciesClient) ListByServerSender

func (client ExtendedServerBlobAuditingPoliciesClient) 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 ExtendedServerBlobAuditingPoliciesCreateOrUpdateFuture

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

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

func (*ExtendedServerBlobAuditingPoliciesCreateOrUpdateFuture) UnmarshalJSON

UnmarshalJSON is the custom unmarshaller for CreateFuture.

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 ExtendedServerBlobAuditingPolicyListResult

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

ExtendedServerBlobAuditingPolicyListResult a list of server extended auditing settings.

func (ExtendedServerBlobAuditingPolicyListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

func (ExtendedServerBlobAuditingPolicyListResult) MarshalJSON

func (esbaplr ExtendedServerBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ExtendedServerBlobAuditingPolicyListResult.

type ExtendedServerBlobAuditingPolicyListResultIterator

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

ExtendedServerBlobAuditingPolicyListResultIterator provides access to a complete listing of ExtendedServerBlobAuditingPolicy values.

func NewExtendedServerBlobAuditingPolicyListResultIterator

func NewExtendedServerBlobAuditingPolicyListResultIterator(page ExtendedServerBlobAuditingPolicyListResultPage) ExtendedServerBlobAuditingPolicyListResultIterator

Creates a new instance of the ExtendedServerBlobAuditingPolicyListResultIterator type.

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

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

func (ExtendedServerBlobAuditingPolicyListResultIterator) Response

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

func (ExtendedServerBlobAuditingPolicyListResultIterator) Value

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

type ExtendedServerBlobAuditingPolicyListResultPage

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

ExtendedServerBlobAuditingPolicyListResultPage contains a page of ExtendedServerBlobAuditingPolicy values.

func NewExtendedServerBlobAuditingPolicyListResultPage

Creates a new instance of the ExtendedServerBlobAuditingPolicyListResultPage type.

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

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

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

func (ExtendedServerBlobAuditingPolicyListResultPage) Response

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

func (ExtendedServerBlobAuditingPolicyListResultPage) Values

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

type ExtendedServerBlobAuditingPolicyProperties

type ExtendedServerBlobAuditingPolicyProperties struct {
	// IsDevopsAuditEnabled - Specifies the state of devops audit. If state is Enabled, devops logs will be sent to Azure Monitor.
	// In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true
	//
	// When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs category on the master database should also be created.
	//
	// Diagnostic Settings URI format:
	// PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/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)
	IsDevopsAuditEnabled *bool `json:"isDevopsAuditEnabled,omitempty"`
	// PredicateExpression - Specifies condition of where clause when creating an audit.
	PredicateExpression *string `json:"predicateExpression,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
	// DBCC_GROUP
	// DATABASE_OWNERSHIP_CHANGE_GROUP
	// DATABASE_CHANGE_GROUP
	// LEDGER_OPERATION_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"`
	// 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"`
	// QueueDelayMs - Specifies the amount of time in milliseconds that can elapse before audit actions are forced to be processed.
	// The default minimum value is 1000 (1 second). The maximum is 2,147,483,647.
	QueueDelayMs *int32 `json:"queueDelayMs,omitempty"`
	// IsManagedIdentityInUse - Specifies whether Managed Identity is used to access blob storage
	IsManagedIdentityInUse *bool `json:"isManagedIdentityInUse,omitempty"`
	// State - Specifies the state of the audit. 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 or isAzureMonitorTargetEnabled 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, not specifying the storageAccountAccessKey will use SQL server system-assigned managed identity to access the storage.
	// Prerequisites for using managed identity authentication:
	// 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD).
	// 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server identity.
	// For more information, see [Auditing to storage using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355)
	StorageAccountAccessKey *string `json:"storageAccountAccessKey,omitempty"`
	// StorageAccountSubscriptionID - Specifies the blob storage subscription Id.
	StorageAccountSubscriptionID *uuid.UUID `json:"storageAccountSubscriptionId,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.

func (FailoverGroupListResult) MarshalJSON

func (fglr FailoverGroupListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for FailoverGroupListResult.

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

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: 'FailoverGroupReplicationRolePrimary', 'FailoverGroupReplicationRoleSecondary'
	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.

func (FailoverGroupProperties) MarshalJSON

func (fgp FailoverGroupProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for FailoverGroupProperties.

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: 'ReadWriteEndpointFailoverPolicyManual', 'ReadWriteEndpointFailoverPolicyAutomatic'
	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 (
	// FailoverGroupReplicationRolePrimary ...
	FailoverGroupReplicationRolePrimary FailoverGroupReplicationRole = "Primary"
	// FailoverGroupReplicationRoleSecondary ...
	FailoverGroupReplicationRoleSecondary 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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

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.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(FailoverGroupsClient) (FailoverGroup, error)
}

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

func (*FailoverGroupsCreateOrUpdateFuture) UnmarshalJSON

func (future *FailoverGroupsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type FailoverGroupsDeleteFuture

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

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

func (*FailoverGroupsDeleteFuture) UnmarshalJSON

func (future *FailoverGroupsDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type FailoverGroupsFailoverFuture

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

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

func (*FailoverGroupsFailoverFuture) UnmarshalJSON

func (future *FailoverGroupsFailoverFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type FailoverGroupsForceFailoverAllowDataLossFuture

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

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

func (*FailoverGroupsForceFailoverAllowDataLossFuture) UnmarshalJSON

func (future *FailoverGroupsForceFailoverAllowDataLossFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type FailoverGroupsUpdateFuture

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

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

func (*FailoverGroupsUpdateFuture) UnmarshalJSON

func (future *FailoverGroupsUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type FirewallRule

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

FirewallRule 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 FirewallRuleList

type FirewallRuleList struct {
	Values *[]FirewallRule `json:"values,omitempty"`
}

FirewallRuleList a list of server firewall rules.

type FirewallRuleListResult

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

FirewallRuleListResult the response to a list firewall rules request

func (FirewallRuleListResult) IsEmpty

func (frlr FirewallRuleListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (FirewallRuleListResult) MarshalJSON

func (frlr FirewallRuleListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for FirewallRuleListResult.

type FirewallRuleListResultIterator

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

FirewallRuleListResultIterator provides access to a complete listing of FirewallRule values.

func NewFirewallRuleListResultIterator

func NewFirewallRuleListResultIterator(page FirewallRuleListResultPage) FirewallRuleListResultIterator

Creates a new instance of the FirewallRuleListResultIterator type.

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

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

func (iter FirewallRuleListResultIterator) NotDone() bool

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

func (FirewallRuleListResultIterator) Response

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

func (FirewallRuleListResultIterator) Value

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

type FirewallRuleListResultPage

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

FirewallRuleListResultPage contains a page of FirewallRule values.

func NewFirewallRuleListResultPage

Creates a new instance of the FirewallRuleListResultPage type.

func (*FirewallRuleListResultPage) Next

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

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

func (page FirewallRuleListResultPage) NotDone() bool

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

func (FirewallRuleListResultPage) Response

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

func (FirewallRuleListResultPage) Values

func (page FirewallRuleListResultPage) Values() []FirewallRule

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

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

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 FirewallRuleListResultPage, err error)

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

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

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

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.

func (FirewallRulesClient) Replace

func (client FirewallRulesClient) Replace(ctx context.Context, resourceGroupName string, serverName string, parameters FirewallRuleList) (result FirewallRule, err error)

Replace replaces all firewall rules on the 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 (FirewallRulesClient) ReplacePreparer

func (client FirewallRulesClient) ReplacePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters FirewallRuleList) (*http.Request, error)

ReplacePreparer prepares the Replace request.

func (FirewallRulesClient) ReplaceResponder

func (client FirewallRulesClient) ReplaceResponder(resp *http.Response) (result FirewallRule, err error)

ReplaceResponder handles the response to the Replace request. The method always closes the http.Response Body.

func (FirewallRulesClient) ReplaceSender

func (client FirewallRulesClient) ReplaceSender(req *http.Request) (*http.Response, error)

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

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.

func (GeoBackupPolicyProperties) MarshalJSON

func (gbpp GeoBackupPolicyProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for GeoBackupPolicyProperties.

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 IPv6FirewallRule

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

IPv6FirewallRule an IPv6 server firewall rule.

func (IPv6FirewallRule) MarshalJSON

func (ip6fr IPv6FirewallRule) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for IPv6FirewallRule.

func (*IPv6FirewallRule) UnmarshalJSON

func (ip6fr *IPv6FirewallRule) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for IPv6FirewallRule struct.

type IPv6FirewallRuleListResult

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

IPv6FirewallRuleListResult the response to a list IPv6 firewall rules request

func (IPv6FirewallRuleListResult) IsEmpty

func (ip6frlr IPv6FirewallRuleListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (IPv6FirewallRuleListResult) MarshalJSON

func (ip6frlr IPv6FirewallRuleListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for IPv6FirewallRuleListResult.

type IPv6FirewallRuleListResultIterator

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

IPv6FirewallRuleListResultIterator provides access to a complete listing of IPv6FirewallRule values.

func NewIPv6FirewallRuleListResultIterator

func NewIPv6FirewallRuleListResultIterator(page IPv6FirewallRuleListResultPage) IPv6FirewallRuleListResultIterator

Creates a new instance of the IPv6FirewallRuleListResultIterator type.

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

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

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

func (IPv6FirewallRuleListResultIterator) Response

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

func (IPv6FirewallRuleListResultIterator) Value

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

type IPv6FirewallRuleListResultPage

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

IPv6FirewallRuleListResultPage contains a page of IPv6FirewallRule values.

func NewIPv6FirewallRuleListResultPage

Creates a new instance of the IPv6FirewallRuleListResultPage type.

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

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

func (page IPv6FirewallRuleListResultPage) NotDone() bool

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

func (IPv6FirewallRuleListResultPage) Response

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

func (IPv6FirewallRuleListResultPage) Values

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

type IPv6FirewallRulesClient

type IPv6FirewallRulesClient struct {
	BaseClient
}

IPv6FirewallRulesClient 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 NewIPv6FirewallRulesClient

func NewIPv6FirewallRulesClient(subscriptionID string) IPv6FirewallRulesClient

NewIPv6FirewallRulesClient creates an instance of the IPv6FirewallRulesClient client.

func NewIPv6FirewallRulesClientWithBaseURI

func NewIPv6FirewallRulesClientWithBaseURI(baseURI string, subscriptionID string) IPv6FirewallRulesClient

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

func (IPv6FirewallRulesClient) CreateOrUpdate

func (client IPv6FirewallRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string, parameters IPv6FirewallRule) (result IPv6FirewallRule, err error)

CreateOrUpdate creates or updates an IPv6 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 an IPv6 firewall rule.

func (IPv6FirewallRulesClient) CreateOrUpdatePreparer

func (client IPv6FirewallRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string, parameters IPv6FirewallRule) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (IPv6FirewallRulesClient) CreateOrUpdateResponder

func (client IPv6FirewallRulesClient) CreateOrUpdateResponder(resp *http.Response) (result IPv6FirewallRule, err error)

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

func (IPv6FirewallRulesClient) CreateOrUpdateSender

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

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

Delete deletes an IPv6 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 (IPv6FirewallRulesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (IPv6FirewallRulesClient) DeleteResponder

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

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

func (client IPv6FirewallRulesClient) Get(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (result IPv6FirewallRule, err error)

Get gets an IPv6 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 (IPv6FirewallRulesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (IPv6FirewallRulesClient) GetResponder

func (client IPv6FirewallRulesClient) GetResponder(resp *http.Response) (result IPv6FirewallRule, err error)

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

func (IPv6FirewallRulesClient) GetSender

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

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

ListByServer gets a list of IPv6 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 (IPv6FirewallRulesClient) ListByServerComplete

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

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

func (IPv6FirewallRulesClient) ListByServerPreparer

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

ListByServerPreparer prepares the ListByServer request.

func (IPv6FirewallRulesClient) ListByServerResponder

func (client IPv6FirewallRulesClient) ListByServerResponder(resp *http.Response) (result IPv6FirewallRuleListResult, err error)

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

func (IPv6FirewallRulesClient) ListByServerSender

func (client IPv6FirewallRulesClient) 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 IPv6ServerFirewallRuleProperties

type IPv6ServerFirewallRuleProperties struct {
	// StartIPv6Address - The start IP address of the firewall rule. Must be IPv6 format.
	StartIPv6Address *string `json:"startIPv6Address,omitempty"`
	// EndIPv6Address - The end IP address of the firewall rule. Must be IPv6 format. Must be greater than or equal to startIpAddress.
	EndIPv6Address *string `json:"endIPv6Address,omitempty"`
}

IPv6ServerFirewallRuleProperties the properties of an IPv6 server firewall rule.

type IdentityType

type IdentityType string

IdentityType enumerates the values for identity type.

const (
	// IdentityTypeNone ...
	IdentityTypeNone IdentityType = "None"
	// IdentityTypeSystemAssigned ...
	IdentityTypeSystemAssigned IdentityType = "SystemAssigned"
	// IdentityTypeSystemAssignedUserAssigned ...
	IdentityTypeSystemAssignedUserAssigned IdentityType = "SystemAssigned,UserAssigned"
	// IdentityTypeUserAssigned ...
	IdentityTypeUserAssigned IdentityType = "UserAssigned"
)

func PossibleIdentityTypeValues

func PossibleIdentityTypeValues() []IdentityType

PossibleIdentityTypeValues returns an array of possible values for the IdentityType const type.

type ImplementationMethod

type ImplementationMethod string

ImplementationMethod enumerates the values for implementation method.

const (
	// ImplementationMethodAzurePowerShell ...
	ImplementationMethodAzurePowerShell ImplementationMethod = "AzurePowerShell"
	// ImplementationMethodTSQL ...
	ImplementationMethodTSQL ImplementationMethod = "TSql"
)

func PossibleImplementationMethodValues

func PossibleImplementationMethodValues() []ImplementationMethod

PossibleImplementationMethodValues returns an array of possible values for the ImplementationMethod const type.

type ImportExistingDatabaseDefinition

type ImportExistingDatabaseDefinition struct {
	// StorageKeyType - Storage key type. Possible values include: 'StorageKeyTypeSharedAccessKey', 'StorageKeyTypeStorageAccessKey'
	StorageKeyType StorageKeyType `json:"storageKeyType,omitempty"`
	// StorageKey - Storage key.
	StorageKey *string `json:"storageKey,omitempty"`
	// StorageURI - Storage Uri.
	StorageURI *string `json:"storageUri,omitempty"`
	// AdministratorLogin - Administrator login name.
	AdministratorLogin *string `json:"administratorLogin,omitempty"`
	// AdministratorLoginPassword - Administrator login password.
	AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"`
	// AuthenticationType - Authentication type.
	AuthenticationType *string `json:"authenticationType,omitempty"`
	// NetworkIsolation - Optional resource information to enable network isolation for request.
	NetworkIsolation *NetworkIsolationSettings `json:"networkIsolation,omitempty"`
}

ImportExistingDatabaseDefinition contains the information necessary to perform import operation for existing database.

type ImportExportExtensionsOperationListResult

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

ImportExportExtensionsOperationListResult import export operation extensions list.

func (ImportExportExtensionsOperationListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

func (ImportExportExtensionsOperationListResult) MarshalJSON

func (ieeolr ImportExportExtensionsOperationListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImportExportExtensionsOperationListResult.

type ImportExportExtensionsOperationListResultIterator

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

ImportExportExtensionsOperationListResultIterator provides access to a complete listing of ImportExportExtensionsOperationResult values.

func NewImportExportExtensionsOperationListResultIterator

func NewImportExportExtensionsOperationListResultIterator(page ImportExportExtensionsOperationListResultPage) ImportExportExtensionsOperationListResultIterator

Creates a new instance of the ImportExportExtensionsOperationListResultIterator type.

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

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

func (ImportExportExtensionsOperationListResultIterator) Response

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

func (ImportExportExtensionsOperationListResultIterator) Value

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

type ImportExportExtensionsOperationListResultPage

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

ImportExportExtensionsOperationListResultPage contains a page of ImportExportExtensionsOperationResult values.

func NewImportExportExtensionsOperationListResultPage

Creates a new instance of the ImportExportExtensionsOperationListResultPage type.

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

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

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

func (ImportExportExtensionsOperationListResultPage) Response

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

func (ImportExportExtensionsOperationListResultPage) Values

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

type ImportExportExtensionsOperationResult

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

ImportExportExtensionsOperationResult an Extension operation result resource.

func (ImportExportExtensionsOperationResult) MarshalJSON

func (ieeor ImportExportExtensionsOperationResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImportExportExtensionsOperationResult.

func (*ImportExportExtensionsOperationResult) UnmarshalJSON

func (ieeor *ImportExportExtensionsOperationResult) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ImportExportExtensionsOperationResult struct.

type ImportExportExtensionsOperationResultProperties

type ImportExportExtensionsOperationResultProperties struct {
	// RequestID - READ-ONLY; Request Id.
	RequestID *uuid.UUID `json:"requestId,omitempty"`
	// RequestType - READ-ONLY; Request type.
	RequestType *string `json:"requestType,omitempty"`
	// LastModifiedTime - READ-ONLY; Last modified time.
	LastModifiedTime *string `json:"lastModifiedTime,omitempty"`
	// ServerName - READ-ONLY; Server name.
	ServerName *string `json:"serverName,omitempty"`
	// DatabaseName - READ-ONLY; Database name.
	DatabaseName *string `json:"databaseName,omitempty"`
	// Status - READ-ONLY; Operation status.
	Status *string `json:"status,omitempty"`
	// ErrorMessage - READ-ONLY; Error message.
	ErrorMessage *string `json:"errorMessage,omitempty"`
}

ImportExportExtensionsOperationResultProperties contains the operation result properties for import/export operation.

func (ImportExportExtensionsOperationResultProperties) MarshalJSON

MarshalJSON is the custom marshaler for ImportExportExtensionsOperationResultProperties.

type ImportExportOperationResult

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

ImportExportOperationResult an ImportExport operation result resource.

func (ImportExportOperationResult) MarshalJSON

func (ieor ImportExportOperationResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImportExportOperationResult.

func (*ImportExportOperationResult) UnmarshalJSON

func (ieor *ImportExportOperationResult) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ImportExportOperationResult struct.

type ImportExportOperationResultProperties

type ImportExportOperationResultProperties struct {
	// RequestID - READ-ONLY; Request Id.
	RequestID *uuid.UUID `json:"requestId,omitempty"`
	// RequestType - READ-ONLY; Request type.
	RequestType *string `json:"requestType,omitempty"`
	// QueuedTime - READ-ONLY; Queued time.
	QueuedTime *string `json:"queuedTime,omitempty"`
	// LastModifiedTime - READ-ONLY; Last modified time.
	LastModifiedTime *string `json:"lastModifiedTime,omitempty"`
	// BlobURI - READ-ONLY; Blob Uri.
	BlobURI *string `json:"blobUri,omitempty"`
	// ServerName - READ-ONLY; Server name.
	ServerName *string `json:"serverName,omitempty"`
	// DatabaseName - READ-ONLY; Database name.
	DatabaseName *string `json:"databaseName,omitempty"`
	// Status - READ-ONLY; Operation status.
	Status *string `json:"status,omitempty"`
	// ErrorMessage - READ-ONLY; Error message.
	ErrorMessage *string `json:"errorMessage,omitempty"`
	// PrivateEndpointConnections - READ-ONLY; Gets the status of private endpoints associated with this request.
	PrivateEndpointConnections *[]PrivateEndpointConnectionRequestStatus `json:"privateEndpointConnections,omitempty"`
}

ImportExportOperationResultProperties contains the operation result properties for import/export operation.

func (ImportExportOperationResultProperties) MarshalJSON

func (ieorp ImportExportOperationResultProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImportExportOperationResultProperties.

type ImportNewDatabaseDefinition

type ImportNewDatabaseDefinition struct {
	// DatabaseName - Name of the import database.
	DatabaseName *string `json:"databaseName,omitempty"`
	// Edition - Edition of the import database.
	Edition *string `json:"edition,omitempty"`
	// ServiceObjectiveName - Service level objective name of the import database.
	ServiceObjectiveName *string `json:"serviceObjectiveName,omitempty"`
	// MaxSizeBytes - Max size in bytes for the import database.
	MaxSizeBytes *string `json:"maxSizeBytes,omitempty"`
	// StorageKeyType - Storage key type. Possible values include: 'StorageKeyTypeSharedAccessKey', 'StorageKeyTypeStorageAccessKey'
	StorageKeyType StorageKeyType `json:"storageKeyType,omitempty"`
	// StorageKey - Storage key.
	StorageKey *string `json:"storageKey,omitempty"`
	// StorageURI - Storage Uri.
	StorageURI *string `json:"storageUri,omitempty"`
	// AdministratorLogin - Administrator login name.
	AdministratorLogin *string `json:"administratorLogin,omitempty"`
	// AdministratorLoginPassword - Administrator login password.
	AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"`
	// AuthenticationType - Authentication type.
	AuthenticationType *string `json:"authenticationType,omitempty"`
	// NetworkIsolation - Optional resource information to enable network isolation for request.
	NetworkIsolation *NetworkIsolationSettings `json:"networkIsolation,omitempty"`
}

ImportNewDatabaseDefinition contains the information necessary to perform import operation for new database.

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.

func (InstanceFailoverGroupListResult) MarshalJSON

func (ifglr InstanceFailoverGroupListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for InstanceFailoverGroupListResult.

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