sql

package
v17.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package sql implements the Azure ARM Sql service API version 2017-10-01-preview.

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 BackupShortTermRetentionPoliciesClient

type BackupShortTermRetentionPoliciesClient struct {
	BaseClient
}

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

func NewBackupShortTermRetentionPoliciesClient

func NewBackupShortTermRetentionPoliciesClient(subscriptionID string) BackupShortTermRetentionPoliciesClient

NewBackupShortTermRetentionPoliciesClient creates an instance of the BackupShortTermRetentionPoliciesClient client.

func NewBackupShortTermRetentionPoliciesClientWithBaseURI

func NewBackupShortTermRetentionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) BackupShortTermRetentionPoliciesClient

NewBackupShortTermRetentionPoliciesClientWithBaseURI creates an instance of the BackupShortTermRetentionPoliciesClient client.

func (BackupShortTermRetentionPoliciesClient) CreateOrUpdate

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

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

func (BackupShortTermRetentionPoliciesClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (BackupShortTermRetentionPoliciesClient) CreateOrUpdateResponder

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

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

func (BackupShortTermRetentionPoliciesClient) CreateOrUpdateSender

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

func (BackupShortTermRetentionPoliciesClient) Get

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

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

func (BackupShortTermRetentionPoliciesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (BackupShortTermRetentionPoliciesClient) GetResponder

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

func (BackupShortTermRetentionPoliciesClient) GetSender

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

func (BackupShortTermRetentionPoliciesClient) ListByDatabase added in v17.4.0

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 added in v17.4.0

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 added in v17.4.0

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (BackupShortTermRetentionPoliciesClient) ListByDatabaseResponder added in v17.4.0

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 added in v17.4.0

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

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

func (BackupShortTermRetentionPoliciesClient) Update

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

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

func (BackupShortTermRetentionPoliciesClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (BackupShortTermRetentionPoliciesClient) UpdateResponder

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

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

func (BackupShortTermRetentionPoliciesClient) UpdateSender

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

type BackupShortTermRetentionPoliciesCreateOrUpdateFuture

type BackupShortTermRetentionPoliciesCreateOrUpdateFuture struct {
	azure.Future
}

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

func (*BackupShortTermRetentionPoliciesCreateOrUpdateFuture) Result

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

type BackupShortTermRetentionPoliciesUpdateFuture

type BackupShortTermRetentionPoliciesUpdateFuture struct {
	azure.Future
}

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

func (*BackupShortTermRetentionPoliciesUpdateFuture) Result

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

type BackupShortTermRetentionPolicy

type BackupShortTermRetentionPolicy struct {
	autorest.Response `json:"-"`
	// BackupShortTermRetentionPolicyProperties - Resource properties.
	*BackupShortTermRetentionPolicyProperties `json:"properties,omitempty"`
	// ID - Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - Resource name.
	Name *string `json:"name,omitempty"`
	// Type - 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 added in v17.4.0

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

BackupShortTermRetentionPolicyListResult a list of short term retention policies.

func (BackupShortTermRetentionPolicyListResult) IsEmpty added in v17.4.0

IsEmpty returns true if the ListResult contains no values.

type BackupShortTermRetentionPolicyListResultIterator added in v17.4.0

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

BackupShortTermRetentionPolicyListResultIterator provides access to a complete listing of BackupShortTermRetentionPolicy values.

func (*BackupShortTermRetentionPolicyListResultIterator) Next added in v17.4.0

Next 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 added in v17.4.0

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

func (BackupShortTermRetentionPolicyListResultIterator) Response added in v17.4.0

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

func (BackupShortTermRetentionPolicyListResultIterator) Value added in v17.4.0

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

type BackupShortTermRetentionPolicyListResultPage added in v17.4.0

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

BackupShortTermRetentionPolicyListResultPage contains a page of BackupShortTermRetentionPolicy values.

func (*BackupShortTermRetentionPolicyListResultPage) Next added in v17.4.0

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.

func (BackupShortTermRetentionPolicyListResultPage) NotDone added in v17.4.0

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

func (BackupShortTermRetentionPolicyListResultPage) Response added in v17.4.0

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

func (BackupShortTermRetentionPolicyListResultPage) Values added in v17.4.0

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

type BackupShortTermRetentionPolicyProperties

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

BackupShortTermRetentionPolicyProperties properties of a short term retention policy

type BaseClient

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

BaseClient is the base client for Sql.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type CapabilitiesClient

type CapabilitiesClient struct {
	BaseClient
}

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

func NewCapabilitiesClient

func NewCapabilitiesClient(subscriptionID string) CapabilitiesClient

NewCapabilitiesClient creates an instance of the CapabilitiesClient client.

func NewCapabilitiesClientWithBaseURI

func NewCapabilitiesClientWithBaseURI(baseURI string, subscriptionID string) CapabilitiesClient

NewCapabilitiesClientWithBaseURI creates an instance of the CapabilitiesClient client.

func (CapabilitiesClient) ListByLocation

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

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

func (CapabilitiesClient) ListByLocationPreparer

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

ListByLocationPreparer prepares the ListByLocation request.

func (CapabilitiesClient) ListByLocationResponder

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

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

func (CapabilitiesClient) ListByLocationSender

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

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

type CapabilityGroup

type CapabilityGroup string

CapabilityGroup enumerates the values for capability group.

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

func PossibleCapabilityGroupValues

func PossibleCapabilityGroupValues() []CapabilityGroup

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

type CapabilityStatus

type CapabilityStatus string

CapabilityStatus enumerates the values for capability status.

const (
	// Available ...
	Available CapabilityStatus = "Available"
	// Default ...
	Default CapabilityStatus = "Default"
	// Disabled ...
	Disabled CapabilityStatus = "Disabled"
	// Visible ...
	Visible CapabilityStatus = "Visible"
)

func PossibleCapabilityStatusValues

func PossibleCapabilityStatusValues() []CapabilityStatus

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

type CatalogCollationType

type CatalogCollationType string

CatalogCollationType enumerates the values for catalog collation type.

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

func PossibleCatalogCollationTypeValues

func PossibleCatalogCollationTypeValues() []CatalogCollationType

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

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

type Database struct {
	autorest.Response `json:"-"`
	// Sku - The name and tier of the SKU.
	Sku *Sku `json:"sku,omitempty"`
	// Kind - Kind of database. This is metadata used for the Azure portal experience.
	Kind *string `json:"kind,omitempty"`
	// ManagedBy - Resource that manages the database.
	ManagedBy *string `json:"managedBy,omitempty"`
	// DatabaseProperties - Resource properties.
	*DatabaseProperties `json:"properties,omitempty"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ID - Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - Resource name.
	Name *string `json:"name,omitempty"`
	// Type - 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 DatabaseLicenseType

type DatabaseLicenseType string

DatabaseLicenseType enumerates the values for database license type.

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

func PossibleDatabaseLicenseTypeValues

func PossibleDatabaseLicenseTypeValues() []DatabaseLicenseType

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

type DatabaseListResult

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

DatabaseListResult a list of databases.

func (DatabaseListResult) IsEmpty

func (dlr DatabaseListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DatabaseListResultIterator

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

DatabaseListResultIterator provides access to a complete listing of Database values.

func (*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.

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 (*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.

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 - Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - Resource name.
	Name *string `json:"name,omitempty"`
	// Type - 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 - Array of results.
	Value *[]DatabaseOperation `json:"value,omitempty"`
	// NextLink - Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

DatabaseOperationListResult the response to a list database operations request

func (DatabaseOperationListResult) IsEmpty

func (dolr DatabaseOperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DatabaseOperationListResultIterator

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

DatabaseOperationListResultIterator provides access to a complete listing of DatabaseOperation values.

func (*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.

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 (*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.

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 - The name of the database the operation is being performed on.
	DatabaseName *string `json:"databaseName,omitempty"`
	// Operation - The name of operation.
	Operation *string `json:"operation,omitempty"`
	// OperationFriendlyName - The friendly name of operation.
	OperationFriendlyName *string `json:"operationFriendlyName,omitempty"`
	// PercentComplete - The percentage of the operation completed.
	PercentComplete *int32 `json:"percentComplete,omitempty"`
	// ServerName - The name of the server.
	ServerName *string `json:"serverName,omitempty"`
	// StartTime - The operation start time.
	StartTime *date.Time `json:"startTime,omitempty"`
	// State - The operation state. Possible values include: 'Pending', 'InProgress', 'Succeeded', 'Failed', 'CancelInProgress', 'Cancelled'
	State ManagementOperationState `json:"state,omitempty"`
	// ErrorCode - The operation error code.
	ErrorCode *int32 `json:"errorCode,omitempty"`
	// ErrorDescription - The operation error description.
	ErrorDescription *string `json:"errorDescription,omitempty"`
	// ErrorSeverity - The operation error severity.
	ErrorSeverity *int32 `json:"errorSeverity,omitempty"`
	// IsUserError - Whether or not the error is a user error.
	IsUserError *bool `json:"isUserError,omitempty"`
	// EstimatedCompletionTime - The estimated completion time of the operation.
	EstimatedCompletionTime *date.Time `json:"estimatedCompletionTime,omitempty"`
	// Description - The operation description.
	Description *string `json:"description,omitempty"`
	// IsCancellable - Whether the operation can be cancelled.
	IsCancellable *bool `json:"isCancellable,omitempty"`
}

DatabaseOperationProperties the properties of a database operation.

type DatabaseOperationsClient

type DatabaseOperationsClient struct {
	BaseClient
}

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

func NewDatabaseOperationsClient

func NewDatabaseOperationsClient(subscriptionID string) DatabaseOperationsClient

NewDatabaseOperationsClient creates an instance of the DatabaseOperationsClient client.

func NewDatabaseOperationsClientWithBaseURI

func NewDatabaseOperationsClientWithBaseURI(baseURI string, subscriptionID string) DatabaseOperationsClient

NewDatabaseOperationsClientWithBaseURI creates an instance of the DatabaseOperationsClient client.

func (DatabaseOperationsClient) Cancel

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

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

func (DatabaseOperationsClient) CancelPreparer

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

CancelPreparer prepares the Cancel request.

func (DatabaseOperationsClient) CancelResponder

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

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

func (DatabaseOperationsClient) CancelSender

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

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

func (DatabaseOperationsClient) ListByDatabase

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

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

func (DatabaseOperationsClient) ListByDatabaseComplete

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

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

func (DatabaseOperationsClient) ListByDatabasePreparer

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (DatabaseOperationsClient) ListByDatabaseResponder

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

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

func (DatabaseOperationsClient) ListByDatabaseSender

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

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

type DatabaseProperties

type DatabaseProperties struct {
	// CreateMode - Specifies the mode of database creation.
	//
	// Default: regular database creation.
	//
	// Copy: creates a database as a copy of an existing database. sourceDatabaseId must be specified as the resource ID of the source database.
	//
	// Secondary: creates a database as a secondary replica of an existing database. sourceDatabaseId must be specified as the resource ID of the existing primary database.
	//
	// PointInTimeRestore: Creates a database by restoring a point in time backup of an existing database. sourceDatabaseId must be specified as the resource ID of the existing database, and restorePointInTime must be specified.
	//
	// Recovery: Creates a database by restoring a geo-replicated backup. sourceDatabaseId must be specified as the recoverable database resource ID to restore.
	//
	// Restore: Creates a database by restoring a backup of a deleted database. sourceDatabaseId must be specified. If sourceDatabaseId is the database's original resource ID, then sourceDatabaseDeletionDate must be specified. Otherwise sourceDatabaseId must be the restorable dropped database resource ID and sourceDatabaseDeletionDate is ignored. restorePointInTime may also be specified to restore from an earlier point in time.
	//
	// RestoreLongTermRetentionBackup: Creates a database by restoring from a long term retention vault. recoveryServicesRecoveryPointResourceId must be specified as the recovery point resource ID.
	//
	// Copy, Secondary, and RestoreLongTermRetentionBackup are not supported for DataWarehouse edition. Possible values include: 'CreateModeDefault', 'CreateModeCopy', 'CreateModeSecondary', 'CreateModePointInTimeRestore', 'CreateModeRestore', 'CreateModeRecovery', 'CreateModeRestoreExternalBackup', 'CreateModeRestoreExternalBackupSecondary', 'CreateModeRestoreLongTermRetentionBackup', 'CreateModeOnlineSecondary'
	CreateMode CreateMode `json:"createMode,omitempty"`
	// Collation - The collation of the database.
	Collation *string `json:"collation,omitempty"`
	// MaxSizeBytes - The max size of the database expressed in bytes.
	MaxSizeBytes *int64 `json:"maxSizeBytes,omitempty"`
	// SampleName - The name of the sample schema to apply when creating this database. Possible values include: 'AdventureWorksLT', 'WideWorldImportersStd', 'WideWorldImportersFull'
	SampleName SampleName `json:"sampleName,omitempty"`
	// ElasticPoolID - The resource identifier of the elastic pool containing this database.
	ElasticPoolID *string `json:"elasticPoolId,omitempty"`
	// SourceDatabaseID - The resource identifier of the source database associated with create operation of this database.
	SourceDatabaseID *string `json:"sourceDatabaseId,omitempty"`
	// Status - The status of the database. Possible values include: 'Online', 'Restoring', 'RecoveryPending', 'Recovering', 'Suspect', 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', 'Copying', 'Creating', 'Inaccessible', 'OfflineSecondary', 'Pausing', 'Paused', 'Resuming', 'Scaling'
	Status DatabaseStatus `json:"status,omitempty"`
	// DatabaseID - The ID of the database.
	DatabaseID *uuid.UUID `json:"databaseId,omitempty"`
	// CreationDate - The creation date of the database (ISO8601 format).
	CreationDate *date.Time `json:"creationDate,omitempty"`
	// CurrentServiceObjectiveName - The current service level objective name of the database.
	CurrentServiceObjectiveName *string `json:"currentServiceObjectiveName,omitempty"`
	// RequestedServiceObjectiveName - The requested service level objective name of the database.
	RequestedServiceObjectiveName *string `json:"requestedServiceObjectiveName,omitempty"`
	// DefaultSecondaryLocation - The default secondary region for this database.
	DefaultSecondaryLocation *string `json:"defaultSecondaryLocation,omitempty"`
	// FailoverGroupID - Failover Group resource identifier that this database belongs to.
	FailoverGroupID *string `json:"failoverGroupId,omitempty"`
	// RestorePointInTime - Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database.
	RestorePointInTime *date.Time `json:"restorePointInTime,omitempty"`
	// SourceDatabaseDeletionDate - Specifies the time that the database was deleted.
	SourceDatabaseDeletionDate *date.Time `json:"sourceDatabaseDeletionDate,omitempty"`
	// RecoveryServicesRecoveryPointID - The resource identifier of the recovery point associated with create operation of this database.
	RecoveryServicesRecoveryPointID *string `json:"recoveryServicesRecoveryPointId,omitempty"`
	// LongTermRetentionBackupResourceID - The resource identifier of the long term retention backup associated with create operation of this database.
	LongTermRetentionBackupResourceID *string `json:"longTermRetentionBackupResourceId,omitempty"`
	// RecoverableDatabaseID - The resource identifier of the recoverable database associated with create operation of this database.
	RecoverableDatabaseID *string `json:"recoverableDatabaseId,omitempty"`
	// RestorableDroppedDatabaseID - The resource identifier of the restorable dropped database associated with create operation of this database.
	RestorableDroppedDatabaseID *string `json:"restorableDroppedDatabaseId,omitempty"`
	// CatalogCollation - Collation of the metadata catalog. Possible values include: 'DATABASEDEFAULT', 'SQLLatin1GeneralCP1CIAS'
	CatalogCollation CatalogCollationType `json:"catalogCollation,omitempty"`
	// ZoneRedundant - Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones.
	ZoneRedundant *bool `json:"zoneRedundant,omitempty"`
	// LicenseType - The license type to apply for this database. Possible values include: 'LicenseIncluded', 'BasePrice'
	LicenseType DatabaseLicenseType `json:"licenseType,omitempty"`
	// MaxLogSizeBytes - The max log size for this database.
	MaxLogSizeBytes *int64 `json:"maxLogSizeBytes,omitempty"`
	// EarliestRestoreDate - 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. Possible values include: 'DatabaseReadScaleEnabled', 'DatabaseReadScaleDisabled'
	ReadScale DatabaseReadScale `json:"readScale,omitempty"`
	// CurrentSku - The name and tier of the SKU.
	CurrentSku *Sku `json:"currentSku,omitempty"`
}

DatabaseProperties the database's properties.

type DatabaseReadScale

type DatabaseReadScale string

DatabaseReadScale enumerates the values for database read scale.

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

func PossibleDatabaseReadScaleValues

func PossibleDatabaseReadScaleValues() []DatabaseReadScale

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

type DatabaseStatus

type DatabaseStatus string

DatabaseStatus enumerates the values for database status.

const (
	// AutoClosed ...
	AutoClosed DatabaseStatus = "AutoClosed"
	// Copying ...
	Copying DatabaseStatus = "Copying"
	// Creating ...
	Creating DatabaseStatus = "Creating"
	// EmergencyMode ...
	EmergencyMode DatabaseStatus = "EmergencyMode"
	// Inaccessible ...
	Inaccessible DatabaseStatus = "Inaccessible"
	// Offline ...
	Offline DatabaseStatus = "Offline"
	// OfflineSecondary ...
	OfflineSecondary DatabaseStatus = "OfflineSecondary"
	// Online ...
	Online DatabaseStatus = "Online"
	// Paused ...
	Paused DatabaseStatus = "Paused"
	// Pausing ...
	Pausing DatabaseStatus = "Pausing"
	// Recovering ...
	Recovering DatabaseStatus = "Recovering"
	// RecoveryPending ...
	RecoveryPending DatabaseStatus = "RecoveryPending"
	// Restoring ...
	Restoring DatabaseStatus = "Restoring"
	// Resuming ...
	Resuming DatabaseStatus = "Resuming"
	// Scaling ...
	Scaling DatabaseStatus = "Scaling"
	// Shutdown ...
	Shutdown DatabaseStatus = "Shutdown"
	// Standby ...
	Standby DatabaseStatus = "Standby"
	// Suspect ...
	Suspect DatabaseStatus = "Suspect"
)

func PossibleDatabaseStatusValues

func PossibleDatabaseStatusValues() []DatabaseStatus

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

type DatabaseUpdate

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

DatabaseUpdate a database resource.

func (DatabaseUpdate) MarshalJSON

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

MarshalJSON is the custom marshaler for DatabaseUpdate.

func (*DatabaseUpdate) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for DatabaseUpdate struct.

type DatabaseVulnerabilityAssessment

type DatabaseVulnerabilityAssessment struct {
	// DatabaseVulnerabilityAssessmentProperties - Resource properties.
	*DatabaseVulnerabilityAssessmentProperties `json:"properties,omitempty"`
	// ID - Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - Resource name.
	Name *string `json:"name,omitempty"`
	// Type - 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 DatabaseVulnerabilityAssessmentProperties

type DatabaseVulnerabilityAssessmentProperties struct {
	// StorageContainerPath - A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
	StorageContainerPath *string `json:"storageContainerPath,omitempty"`
	// StorageContainerSasKey - A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter.
	StorageContainerSasKey *string `json:"storageContainerSasKey,omitempty"`
	// RecurringScans - The recurring scans settings
	RecurringScans *VulnerabilityAssessmentRecurringScansProperties `json:"recurringScans,omitempty"`
}

DatabaseVulnerabilityAssessmentProperties properties of a database Vulnerability Assessment.

type DatabaseVulnerabilityAssessmentScanExportProperties

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

DatabaseVulnerabilityAssessmentScanExportProperties properties of the export operation's result.

type DatabaseVulnerabilityAssessmentScansClient

type DatabaseVulnerabilityAssessmentScansClient struct {
	BaseClient
}

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

func NewDatabaseVulnerabilityAssessmentScansClient

func NewDatabaseVulnerabilityAssessmentScansClient(subscriptionID string) DatabaseVulnerabilityAssessmentScansClient

NewDatabaseVulnerabilityAssessmentScansClient creates an instance of the DatabaseVulnerabilityAssessmentScansClient client.

func NewDatabaseVulnerabilityAssessmentScansClientWithBaseURI

func NewDatabaseVulnerabilityAssessmentScansClientWithBaseURI(baseURI string, subscriptionID string) DatabaseVulnerabilityAssessmentScansClient

NewDatabaseVulnerabilityAssessmentScansClientWithBaseURI creates an instance of the DatabaseVulnerabilityAssessmentScansClient client.

func (DatabaseVulnerabilityAssessmentScansClient) Export

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

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

func (DatabaseVulnerabilityAssessmentScansClient) ExportPreparer

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

ExportPreparer prepares the Export request.

func (DatabaseVulnerabilityAssessmentScansClient) ExportResponder

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

func (DatabaseVulnerabilityAssessmentScansClient) ExportSender

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

func (DatabaseVulnerabilityAssessmentScansClient) Get

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

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

func (DatabaseVulnerabilityAssessmentScansClient) GetPreparer

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

GetPreparer prepares the Get request.

func (DatabaseVulnerabilityAssessmentScansClient) GetResponder

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

func (DatabaseVulnerabilityAssessmentScansClient) GetSender

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

func (DatabaseVulnerabilityAssessmentScansClient) InitiateScan

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

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

func (DatabaseVulnerabilityAssessmentScansClient) InitiateScanPreparer

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

InitiateScanPreparer prepares the InitiateScan request.

func (DatabaseVulnerabilityAssessmentScansClient) InitiateScanResponder

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

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

func (DatabaseVulnerabilityAssessmentScansClient) InitiateScanSender

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

func (DatabaseVulnerabilityAssessmentScansClient) ListByDatabase

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

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

func (DatabaseVulnerabilityAssessmentScansClient) ListByDatabaseComplete

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

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

func (DatabaseVulnerabilityAssessmentScansClient) ListByDatabasePreparer

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (DatabaseVulnerabilityAssessmentScansClient) ListByDatabaseResponder

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

func (DatabaseVulnerabilityAssessmentScansClient) ListByDatabaseSender

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

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

type DatabaseVulnerabilityAssessmentScansExport

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

DatabaseVulnerabilityAssessmentScansExport a database Vulnerability Assessment scan export resource.

func (DatabaseVulnerabilityAssessmentScansExport) MarshalJSON

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

MarshalJSON is the custom marshaler for DatabaseVulnerabilityAssessmentScansExport.

func (*DatabaseVulnerabilityAssessmentScansExport) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for DatabaseVulnerabilityAssessmentScansExport struct.

type DatabaseVulnerabilityAssessmentScansInitiateScanFuture

type DatabaseVulnerabilityAssessmentScansInitiateScanFuture struct {
	azure.Future
}

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

func (*DatabaseVulnerabilityAssessmentScansInitiateScanFuture) Result

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

type DatabasesClient

type DatabasesClient struct {
	BaseClient
}

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

func NewDatabasesClient

func NewDatabasesClient(subscriptionID string) DatabasesClient

NewDatabasesClient creates an instance of the DatabasesClient client.

func NewDatabasesClientWithBaseURI

func NewDatabasesClientWithBaseURI(baseURI string, subscriptionID string) DatabasesClient

NewDatabasesClientWithBaseURI creates an instance of the DatabasesClient client.

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

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

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

func (DatabasesClient) ListByElasticPoolComplete

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

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

func (DatabasesClient) ListByElasticPoolPreparer

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

ListByElasticPoolPreparer prepares the ListByElasticPool request.

func (DatabasesClient) ListByElasticPoolResponder

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

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

func (DatabasesClient) ListByElasticPoolSender

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

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

func (DatabasesClient) ListByServer

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

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

func (DatabasesClient) ListByServerComplete

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

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

func (DatabasesClient) ListByServerPreparer

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

ListByServerPreparer prepares the ListByServer request.

func (DatabasesClient) ListByServerResponder

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

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

func (DatabasesClient) ListByServerSender

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

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

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

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

func (*DatabasesCreateOrUpdateFuture) Result

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

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

type DatabasesDeleteFuture

type DatabasesDeleteFuture struct {
	azure.Future
}

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

func (*DatabasesDeleteFuture) Result

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

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

type DatabasesPauseFuture

type DatabasesPauseFuture struct {
	azure.Future
}

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

func (*DatabasesPauseFuture) Result

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

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

type DatabasesResumeFuture

type DatabasesResumeFuture struct {
	azure.Future
}

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

func (*DatabasesResumeFuture) Result

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

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

type DatabasesUpdateFuture

type DatabasesUpdateFuture struct {
	azure.Future
}

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

func (*DatabasesUpdateFuture) Result

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

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

type DatabasesUpgradeDataWarehouseFuture

type DatabasesUpgradeDataWarehouseFuture struct {
	azure.Future
}

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

func (*DatabasesUpgradeDataWarehouseFuture) Result

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

type EditionCapability

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

EditionCapability the edition capability.

type ElasticPool

type ElasticPool struct {
	autorest.Response `json:"-"`
	Sku               *Sku `json:"sku,omitempty"`
	// Kind - 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 - Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - Resource name.
	Name *string `json:"name,omitempty"`
	// Type - 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 ElasticPoolEditionCapability

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

ElasticPoolEditionCapability the elastic pool edition capability.

type ElasticPoolLicenseType

type ElasticPoolLicenseType string

ElasticPoolLicenseType enumerates the values for elastic pool license type.

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

func PossibleElasticPoolLicenseTypeValues

func PossibleElasticPoolLicenseTypeValues() []ElasticPoolLicenseType

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

type ElasticPoolListResult

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

ElasticPoolListResult the result of an elastic pool list request.

func (ElasticPoolListResult) IsEmpty

func (eplr ElasticPoolListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ElasticPoolListResultIterator

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

ElasticPoolListResultIterator provides access to a complete listing of ElasticPool values.

func (*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.

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 (*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.

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 - Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - Resource name.
	Name *string `json:"name,omitempty"`
	// Type - 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 - Array of results.
	Value *[]ElasticPoolOperation `json:"value,omitempty"`
	// NextLink - Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ElasticPoolOperationListResult the response to a list elastic pool operations request

func (ElasticPoolOperationListResult) IsEmpty

func (epolr ElasticPoolOperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ElasticPoolOperationListResultIterator

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

ElasticPoolOperationListResultIterator provides access to a complete listing of ElasticPoolOperation values.

func (*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.

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 (*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.

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

ElasticPoolOperationProperties the properties of a elastic pool operation.

type ElasticPoolOperationsClient

type ElasticPoolOperationsClient struct {
	BaseClient
}

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

func NewElasticPoolOperationsClient

func NewElasticPoolOperationsClient(subscriptionID string) ElasticPoolOperationsClient

NewElasticPoolOperationsClient creates an instance of the ElasticPoolOperationsClient client.

func NewElasticPoolOperationsClientWithBaseURI

func NewElasticPoolOperationsClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolOperationsClient

NewElasticPoolOperationsClientWithBaseURI creates an instance of the ElasticPoolOperationsClient client.

func (ElasticPoolOperationsClient) Cancel

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

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

func (ElasticPoolOperationsClient) CancelPreparer

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

CancelPreparer prepares the Cancel request.

func (ElasticPoolOperationsClient) CancelResponder

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

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

func (ElasticPoolOperationsClient) CancelSender

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

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

func (ElasticPoolOperationsClient) ListByElasticPool

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

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

func (ElasticPoolOperationsClient) ListByElasticPoolComplete

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

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

func (ElasticPoolOperationsClient) ListByElasticPoolPreparer

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

ListByElasticPoolPreparer prepares the ListByElasticPool request.

func (ElasticPoolOperationsClient) ListByElasticPoolResponder

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

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

func (ElasticPoolOperationsClient) ListByElasticPoolSender

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

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

type ElasticPoolPerDatabaseMaxPerformanceLevelCapability

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

ElasticPoolPerDatabaseMaxPerformanceLevelCapability the max per-database performance level capability.

type ElasticPoolPerDatabaseMinPerformanceLevelCapability

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

ElasticPoolPerDatabaseMinPerformanceLevelCapability the minimum per-database performance level capability.

type ElasticPoolPerDatabaseSettings

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

ElasticPoolPerDatabaseSettings per database settings of an elastic pool.

type ElasticPoolPerformanceLevelCapability

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

ElasticPoolPerformanceLevelCapability the Elastic Pool performance level capability.

type ElasticPoolProperties

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

ElasticPoolProperties properties of an elastic pool

type ElasticPoolState

type ElasticPoolState string

ElasticPoolState enumerates the values for elastic pool state.

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

func PossibleElasticPoolStateValues

func PossibleElasticPoolStateValues() []ElasticPoolState

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

type ElasticPoolUpdate

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

ElasticPoolUpdate an elastic pool update.

func (ElasticPoolUpdate) MarshalJSON

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

MarshalJSON is the custom marshaler for ElasticPoolUpdate.

func (*ElasticPoolUpdate) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for ElasticPoolUpdate struct.

type ElasticPoolUpdateProperties

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

ElasticPoolUpdateProperties properties of an elastic pool

type ElasticPoolsClient

type ElasticPoolsClient struct {
	BaseClient
}

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

func NewElasticPoolsClient

func NewElasticPoolsClient(subscriptionID string) ElasticPoolsClient

NewElasticPoolsClient creates an instance of the ElasticPoolsClient client.

func NewElasticPoolsClientWithBaseURI

func NewElasticPoolsClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolsClient

NewElasticPoolsClientWithBaseURI creates an instance of the ElasticPoolsClient client.

func (ElasticPoolsClient) CreateOrUpdate

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

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

func (ElasticPoolsClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ElasticPoolsClient) CreateOrUpdateResponder

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

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

func (ElasticPoolsClient) CreateOrUpdateSender

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

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

func (ElasticPoolsClient) Delete

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

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

func (ElasticPoolsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ElasticPoolsClient) DeleteResponder

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

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

func (ElasticPoolsClient) DeleteSender

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

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

func (ElasticPoolsClient) Get

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

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

func (ElasticPoolsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ElasticPoolsClient) GetResponder

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

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

func (ElasticPoolsClient) GetSender

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

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

func (ElasticPoolsClient) ListByServer

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

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

func (ElasticPoolsClient) ListByServerComplete

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

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

func (ElasticPoolsClient) ListByServerPreparer

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

ListByServerPreparer prepares the ListByServer request.

func (ElasticPoolsClient) ListByServerResponder

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

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

func (ElasticPoolsClient) ListByServerSender

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

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

func (ElasticPoolsClient) Update

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

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

func (ElasticPoolsClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (ElasticPoolsClient) UpdateResponder

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

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

func (ElasticPoolsClient) UpdateSender

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

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

type ElasticPoolsCreateOrUpdateFuture

type ElasticPoolsCreateOrUpdateFuture struct {
	azure.Future
}

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

func (*ElasticPoolsCreateOrUpdateFuture) Result

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

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

type ElasticPoolsDeleteFuture

type ElasticPoolsDeleteFuture struct {
	azure.Future
}

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

func (*ElasticPoolsDeleteFuture) Result

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

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

type ElasticPoolsUpdateFuture

type ElasticPoolsUpdateFuture struct {
	azure.Future
}

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

func (*ElasticPoolsUpdateFuture) Result

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

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

type InstanceFailoverGroup

type InstanceFailoverGroup struct {
	autorest.Response `json:"-"`
	// InstanceFailoverGroupProperties - Resource properties.
	*InstanceFailoverGroupProperties `json:"properties,omitempty"`
	// ID - Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - Resource name.
	Name *string `json:"name,omitempty"`
	// Type - 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 - Array of results.
	Value *[]InstanceFailoverGroup `json:"value,omitempty"`
	// NextLink - Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

InstanceFailoverGroupListResult a list of instance failover groups.

func (InstanceFailoverGroupListResult) IsEmpty

func (ifglr InstanceFailoverGroupListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type InstanceFailoverGroupListResultIterator

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

InstanceFailoverGroupListResultIterator provides access to a complete listing of InstanceFailoverGroup values.

func (*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.

func (InstanceFailoverGroupListResultIterator) NotDone

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

func (InstanceFailoverGroupListResultIterator) Response

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

func (InstanceFailoverGroupListResultIterator) Value

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

type InstanceFailoverGroupListResultPage

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

InstanceFailoverGroupListResultPage contains a page of InstanceFailoverGroup values.

func (*InstanceFailoverGroupListResultPage) Next

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

func (InstanceFailoverGroupListResultPage) NotDone

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

func (InstanceFailoverGroupListResultPage) Response

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

func (InstanceFailoverGroupListResultPage) Values

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

type InstanceFailoverGroupProperties

type InstanceFailoverGroupProperties struct {
	// ReadWriteEndpoint - Read-write endpoint of the failover group instance.
	ReadWriteEndpoint *InstanceFailoverGroupReadWriteEndpoint `json:"readWriteEndpoint,omitempty"`
	// ReadOnlyEndpoint - Read-only endpoint of the failover group instance.
	ReadOnlyEndpoint *InstanceFailoverGroupReadOnlyEndpoint `json:"readOnlyEndpoint,omitempty"`
	// ReplicationRole - Local replication role of the failover group instance. Possible values include: 'Primary', 'Secondary'
	ReplicationRole InstanceFailoverGroupReplicationRole `json:"replicationRole,omitempty"`
	// ReplicationState - Replication state of the failover group instance.
	ReplicationState *string `json:"replicationState,omitempty"`
	// PartnerRegions - Partner region information for the failover group.
	PartnerRegions *[]PartnerRegionInfo `json:"partnerRegions,omitempty"`
	// ManagedInstancePairs - List of managed instance pairs in the failover group.
	ManagedInstancePairs *[]ManagedInstancePairInfo `json:"managedInstancePairs,omitempty"`
}

InstanceFailoverGroupProperties properties of a instance failover group.

type InstanceFailoverGroupReadOnlyEndpoint

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

InstanceFailoverGroupReadOnlyEndpoint read-only endpoint of the failover group instance.

type InstanceFailoverGroupReadWriteEndpoint

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

InstanceFailoverGroupReadWriteEndpoint read-write endpoint of the failover group instance.

type InstanceFailoverGroupReplicationRole

type InstanceFailoverGroupReplicationRole string

InstanceFailoverGroupReplicationRole enumerates the values for instance failover group replication role.

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

func PossibleInstanceFailoverGroupReplicationRoleValues

func PossibleInstanceFailoverGroupReplicationRoleValues() []InstanceFailoverGroupReplicationRole

PossibleInstanceFailoverGroupReplicationRoleValues returns an array of possible values for the InstanceFailoverGroupReplicationRole const type.

type InstanceFailoverGroupsClient

type InstanceFailoverGroupsClient struct {
	BaseClient
}

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

func NewInstanceFailoverGroupsClient

func NewInstanceFailoverGroupsClient(subscriptionID string) InstanceFailoverGroupsClient

NewInstanceFailoverGroupsClient creates an instance of the InstanceFailoverGroupsClient client.

func NewInstanceFailoverGroupsClientWithBaseURI

func NewInstanceFailoverGroupsClientWithBaseURI(baseURI string, subscriptionID string) InstanceFailoverGroupsClient

NewInstanceFailoverGroupsClientWithBaseURI creates an instance of the InstanceFailoverGroupsClient client.

func (InstanceFailoverGroupsClient) CreateOrUpdate

func (client InstanceFailoverGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string, parameters InstanceFailoverGroup) (result InstanceFailoverGroupsCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates a failover group. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. locationName - the name of the region where the resource is located. failoverGroupName - the name of the failover group. parameters - the failover group parameters.

func (InstanceFailoverGroupsClient) CreateOrUpdatePreparer

func (client InstanceFailoverGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string, parameters InstanceFailoverGroup) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (InstanceFailoverGroupsClient) CreateOrUpdateResponder

func (client InstanceFailoverGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result InstanceFailoverGroup, err error)

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

func (InstanceFailoverGroupsClient) CreateOrUpdateSender

func (client InstanceFailoverGroupsClient) CreateOrUpdateSender(req *http.Request) (future InstanceFailoverGroupsCreateOrUpdateFuture, err error)

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

func (InstanceFailoverGroupsClient) Delete

func (client InstanceFailoverGroupsClient) Delete(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string) (result InstanceFailoverGroupsDeleteFuture, err error)

Delete deletes a failover group. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. locationName - the name of the region where the resource is located. failoverGroupName - the name of the failover group.

func (InstanceFailoverGroupsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (InstanceFailoverGroupsClient) DeleteResponder

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

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

func (InstanceFailoverGroupsClient) DeleteSender

func (client InstanceFailoverGroupsClient) DeleteSender(req *http.Request) (future InstanceFailoverGroupsDeleteFuture, err error)

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

func (InstanceFailoverGroupsClient) Failover

func (client InstanceFailoverGroupsClient) Failover(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string) (result InstanceFailoverGroupsFailoverFuture, err error)

Failover fails over from the current primary managed instance to this managed instance. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. locationName - the name of the region where the resource is located. failoverGroupName - the name of the failover group.

func (InstanceFailoverGroupsClient) FailoverPreparer

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

FailoverPreparer prepares the Failover request.

func (InstanceFailoverGroupsClient) FailoverResponder

func (client InstanceFailoverGroupsClient) FailoverResponder(resp *http.Response) (result InstanceFailoverGroup, err error)

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

func (InstanceFailoverGroupsClient) FailoverSender

func (client InstanceFailoverGroupsClient) FailoverSender(req *http.Request) (future InstanceFailoverGroupsFailoverFuture, err error)

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

func (InstanceFailoverGroupsClient) ForceFailoverAllowDataLoss

func (client InstanceFailoverGroupsClient) ForceFailoverAllowDataLoss(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string) (result InstanceFailoverGroupsForceFailoverAllowDataLossFuture, err error)

ForceFailoverAllowDataLoss fails over from the current primary managed instance to this managed instance. This operation might result in data loss. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. locationName - the name of the region where the resource is located. failoverGroupName - the name of the failover group.

func (InstanceFailoverGroupsClient) ForceFailoverAllowDataLossPreparer

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

ForceFailoverAllowDataLossPreparer prepares the ForceFailoverAllowDataLoss request.

func (InstanceFailoverGroupsClient) ForceFailoverAllowDataLossResponder

func (client InstanceFailoverGroupsClient) ForceFailoverAllowDataLossResponder(resp *http.Response) (result InstanceFailoverGroup, err error)

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

func (InstanceFailoverGroupsClient) ForceFailoverAllowDataLossSender

func (client InstanceFailoverGroupsClient) ForceFailoverAllowDataLossSender(req *http.Request) (future InstanceFailoverGroupsForceFailoverAllowDataLossFuture, err error)

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

func (InstanceFailoverGroupsClient) Get

func (client InstanceFailoverGroupsClient) Get(ctx context.Context, resourceGroupName string, locationName string, failoverGroupName string) (result InstanceFailoverGroup, err error)

Get gets a failover group. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. locationName - the name of the region where the resource is located. failoverGroupName - the name of the failover group.

func (InstanceFailoverGroupsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (InstanceFailoverGroupsClient) GetResponder

func (client InstanceFailoverGroupsClient) GetResponder(resp *http.Response) (result InstanceFailoverGroup, err error)

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

func (InstanceFailoverGroupsClient) GetSender

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

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

func (InstanceFailoverGroupsClient) ListByLocation

func (client InstanceFailoverGroupsClient) ListByLocation(ctx context.Context, resourceGroupName string, locationName string) (result InstanceFailoverGroupListResultPage, err error)

ListByLocation lists the failover groups in a location. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. locationName - the name of the region where the resource is located.

func (InstanceFailoverGroupsClient) ListByLocationComplete

func (client InstanceFailoverGroupsClient) ListByLocationComplete(ctx context.Context, resourceGroupName string, locationName string) (result InstanceFailoverGroupListResultIterator, err error)

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

func (InstanceFailoverGroupsClient) ListByLocationPreparer

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

ListByLocationPreparer prepares the ListByLocation request.

func (InstanceFailoverGroupsClient) ListByLocationResponder

func (client InstanceFailoverGroupsClient) ListByLocationResponder(resp *http.Response) (result InstanceFailoverGroupListResult, err error)

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

func (InstanceFailoverGroupsClient) ListByLocationSender

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

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

type InstanceFailoverGroupsCreateOrUpdateFuture

type InstanceFailoverGroupsCreateOrUpdateFuture struct {
	azure.Future
}

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

func (*InstanceFailoverGroupsCreateOrUpdateFuture) Result

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

type InstanceFailoverGroupsDeleteFuture

type InstanceFailoverGroupsDeleteFuture struct {
	azure.Future
}

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

func (*InstanceFailoverGroupsDeleteFuture) Result

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

type InstanceFailoverGroupsFailoverFuture

type InstanceFailoverGroupsFailoverFuture struct {
	azure.Future
}

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

func (*InstanceFailoverGroupsFailoverFuture) Result

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

type InstanceFailoverGroupsForceFailoverAllowDataLossFuture

type InstanceFailoverGroupsForceFailoverAllowDataLossFuture struct {
	azure.Future
}

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

func (*InstanceFailoverGroupsForceFailoverAllowDataLossFuture) Result

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

type LicenseTypeCapability

type LicenseTypeCapability struct {
	// Name - License type identifier.
	Name *string `json:"name,omitempty"`
	// Status - The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled'
	Status CapabilityStatus `json:"status,omitempty"`
	// Reason - The reason for the capability not being available.
	Reason *string `json:"reason,omitempty"`
}

LicenseTypeCapability the license type capability

type LocationCapabilities

type LocationCapabilities struct {
	autorest.Response `json:"-"`
	// Name - The location name.
	Name *string `json:"name,omitempty"`
	// SupportedServerVersions - The list of supported server versions.
	SupportedServerVersions *[]ServerVersionCapability `json:"supportedServerVersions,omitempty"`
	// SupportedManagedInstanceVersions - The list of supported managed instance versions.
	SupportedManagedInstanceVersions *[]ManagedInstanceVersionCapability `json:"supportedManagedInstanceVersions,omitempty"`
	// Status - The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled'
	Status CapabilityStatus `json:"status,omitempty"`
	// Reason - The reason for the capability not being available.
	Reason *string `json:"reason,omitempty"`
}

LocationCapabilities the location capability.

type LogSizeCapability

type LogSizeCapability struct {
	// Limit - The log size limit (see 'unit' for the units).
	Limit *int32 `json:"limit,omitempty"`
	// Unit - The units that the limit is expressed in. Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes', 'Percent'
	Unit LogSizeUnit `json:"unit,omitempty"`
}

LogSizeCapability the log size capability.

type LogSizeUnit

type LogSizeUnit string

LogSizeUnit enumerates the values for log size unit.

const (
	// Gigabytes ...
	Gigabytes LogSizeUnit = "Gigabytes"
	// Megabytes ...
	Megabytes LogSizeUnit = "Megabytes"
	// Percent ...
	Percent LogSizeUnit = "Percent"
	// Petabytes ...
	Petabytes LogSizeUnit = "Petabytes"
	// Terabytes ...
	Terabytes LogSizeUnit = "Terabytes"
)

func PossibleLogSizeUnitValues

func PossibleLogSizeUnitValues() []LogSizeUnit

PossibleLogSizeUnitValues returns an array of possible values for the LogSizeUnit const type.

type ManagedInstanceEditionCapability

type ManagedInstanceEditionCapability struct {
	// Name - The managed server version name.
	Name *string `json:"name,omitempty"`
	// SupportedFamilies - The supported families.
	SupportedFamilies *[]ManagedInstanceFamilyCapability `json:"supportedFamilies,omitempty"`
	// Status - The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled'
	Status CapabilityStatus `json:"status,omitempty"`
	// Reason - The reason for the capability not being available.
	Reason *string `json:"reason,omitempty"`
}

ManagedInstanceEditionCapability the managed server capability

type ManagedInstanceFamilyCapability

type ManagedInstanceFamilyCapability struct {
	// Name - Family name.
	Name *string `json:"name,omitempty"`
	// Sku - SKU name.
	Sku *string `json:"sku,omitempty"`
	// SupportedLicenseTypes - List of supported license types.
	SupportedLicenseTypes *[]LicenseTypeCapability `json:"supportedLicenseTypes,omitempty"`
	// SupportedVcoresValues - List of supported virtual cores values.
	SupportedVcoresValues *[]ManagedInstanceVcoresCapability `json:"supportedVcoresValues,omitempty"`
	// IncludedMaxSize - Included size.
	IncludedMaxSize *MaxSizeCapability `json:"includedMaxSize,omitempty"`
	// SupportedStorageSizes - Storage size ranges.
	SupportedStorageSizes *[]MaxSizeRangeCapability `json:"supportedStorageSizes,omitempty"`
	// Status - The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled'
	Status CapabilityStatus `json:"status,omitempty"`
	// Reason - The reason for the capability not being available.
	Reason *string `json:"reason,omitempty"`
}

ManagedInstanceFamilyCapability the managed server family capability.

type ManagedInstancePairInfo

type ManagedInstancePairInfo struct {
	// PrimaryManagedInstanceID - Id of Primary Managed Instance in pair.
	PrimaryManagedInstanceID *string `json:"primaryManagedInstanceId,omitempty"`
	// PartnerManagedInstanceID - Id of Partner Managed Instance in pair.
	PartnerManagedInstanceID *string `json:"partnerManagedInstanceId,omitempty"`
}

ManagedInstancePairInfo pairs of Managed Instances in the failover group.

type ManagedInstanceVcoresCapability

type ManagedInstanceVcoresCapability struct {
	// Name - The virtual cores identifier.
	Name *string `json:"name,omitempty"`
	// Value - The virtual cores value.
	Value *int32 `json:"value,omitempty"`
	// Status - The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled'
	Status CapabilityStatus `json:"status,omitempty"`
	// Reason - The reason for the capability not being available.
	Reason *string `json:"reason,omitempty"`
}

ManagedInstanceVcoresCapability the managed instance virtual cores capability.

type ManagedInstanceVersionCapability

type ManagedInstanceVersionCapability struct {
	// Name - The server version name.
	Name *string `json:"name,omitempty"`
	// SupportedEditions - The list of supported managed instance editions.
	SupportedEditions *[]ManagedInstanceEditionCapability `json:"supportedEditions,omitempty"`
	// Status - The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled'
	Status CapabilityStatus `json:"status,omitempty"`
	// Reason - The reason for the capability not being available.
	Reason *string `json:"reason,omitempty"`
}

ManagedInstanceVersionCapability the managed instance capability

type ManagementOperationState

type ManagementOperationState string

ManagementOperationState enumerates the values for management operation state.

const (
	// CancelInProgress ...
	CancelInProgress ManagementOperationState = "CancelInProgress"
	// Cancelled ...
	Cancelled ManagementOperationState = "Cancelled"
	// Failed ...
	Failed ManagementOperationState = "Failed"
	// InProgress ...
	InProgress ManagementOperationState = "InProgress"
	// Pending ...
	Pending ManagementOperationState = "Pending"
	// Succeeded ...
	Succeeded ManagementOperationState = "Succeeded"
)

func PossibleManagementOperationStateValues

func PossibleManagementOperationStateValues() []ManagementOperationState

PossibleManagementOperationStateValues returns an array of possible values for the ManagementOperationState const type.

type MaxSizeCapability

type MaxSizeCapability struct {
	// Limit - The maximum size limit (see 'unit' for the units).
	Limit *int32 `json:"limit,omitempty"`
	// Unit - The units that the limit is expressed in. Possible values include: 'MaxSizeUnitMegabytes', 'MaxSizeUnitGigabytes', 'MaxSizeUnitTerabytes', 'MaxSizeUnitPetabytes'
	Unit MaxSizeUnit `json:"unit,omitempty"`
}

MaxSizeCapability the maximum size capability.

type MaxSizeRangeCapability

type MaxSizeRangeCapability struct {
	// MinValue - Minimum value.
	MinValue *MaxSizeCapability `json:"minValue,omitempty"`
	// MaxValue - Maximum value.
	MaxValue *MaxSizeCapability `json:"maxValue,omitempty"`
	// ScaleSize - Scale/step size for discrete values between the minimum value and the maximum value.
	ScaleSize *MaxSizeCapability `json:"scaleSize,omitempty"`
	// LogSize - Size of transaction log.
	LogSize *LogSizeCapability `json:"logSize,omitempty"`
	// Status - The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled'
	Status CapabilityStatus `json:"status,omitempty"`
	// Reason - The reason for the capability not being available.
	Reason *string `json:"reason,omitempty"`
}

MaxSizeRangeCapability the maximum size range capability.

type MaxSizeUnit

type MaxSizeUnit string

MaxSizeUnit enumerates the values for max size unit.

const (
	// MaxSizeUnitGigabytes ...
	MaxSizeUnitGigabytes MaxSizeUnit = "Gigabytes"
	// MaxSizeUnitMegabytes ...
	MaxSizeUnitMegabytes MaxSizeUnit = "Megabytes"
	// MaxSizeUnitPetabytes ...
	MaxSizeUnitPetabytes MaxSizeUnit = "Petabytes"
	// MaxSizeUnitTerabytes ...
	MaxSizeUnitTerabytes MaxSizeUnit = "Terabytes"
)

func PossibleMaxSizeUnitValues

func PossibleMaxSizeUnitValues() []MaxSizeUnit

PossibleMaxSizeUnitValues returns an array of possible values for the MaxSizeUnit const type.

type PartnerRegionInfo

type PartnerRegionInfo struct {
	// Location - Geo location of the partner managed instances.
	Location *string `json:"location,omitempty"`
	// ReplicationRole - Replication role of the partner managed instances. Possible values include: 'Primary', 'Secondary'
	ReplicationRole InstanceFailoverGroupReplicationRole `json:"replicationRole,omitempty"`
}

PartnerRegionInfo partner region information for the failover group.

type PerformanceLevelCapability

type PerformanceLevelCapability struct {
	// Value - Performance level value.
	Value *float64 `json:"value,omitempty"`
	// Unit - Unit type used to measure performance level. Possible values include: 'DTU', 'VCores'
	Unit PerformanceLevelUnit `json:"unit,omitempty"`
}

PerformanceLevelCapability the performance level capability.

type PerformanceLevelUnit

type PerformanceLevelUnit string

PerformanceLevelUnit enumerates the values for performance level unit.

const (
	// DTU ...
	DTU PerformanceLevelUnit = "DTU"
	// VCores ...
	VCores PerformanceLevelUnit = "VCores"
)

func PossiblePerformanceLevelUnitValues

func PossiblePerformanceLevelUnitValues() []PerformanceLevelUnit

PossiblePerformanceLevelUnitValues returns an array of possible values for the PerformanceLevelUnit const type.

type ProxyResource

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

ProxyResource ARM proxy resource.

type ReadOnlyEndpointFailoverPolicy

type ReadOnlyEndpointFailoverPolicy string

ReadOnlyEndpointFailoverPolicy enumerates the values for read only endpoint failover policy.

const (
	// ReadOnlyEndpointFailoverPolicyDisabled ...
	ReadOnlyEndpointFailoverPolicyDisabled ReadOnlyEndpointFailoverPolicy = "Disabled"
	// ReadOnlyEndpointFailoverPolicyEnabled ...
	ReadOnlyEndpointFailoverPolicyEnabled ReadOnlyEndpointFailoverPolicy = "Enabled"
)

func PossibleReadOnlyEndpointFailoverPolicyValues

func PossibleReadOnlyEndpointFailoverPolicyValues() []ReadOnlyEndpointFailoverPolicy

PossibleReadOnlyEndpointFailoverPolicyValues returns an array of possible values for the ReadOnlyEndpointFailoverPolicy const type.

type ReadWriteEndpointFailoverPolicy

type ReadWriteEndpointFailoverPolicy string

ReadWriteEndpointFailoverPolicy enumerates the values for read write endpoint failover policy.

const (
	// Automatic ...
	Automatic ReadWriteEndpointFailoverPolicy = "Automatic"
	// Manual ...
	Manual ReadWriteEndpointFailoverPolicy = "Manual"
)

func PossibleReadWriteEndpointFailoverPolicyValues

func PossibleReadWriteEndpointFailoverPolicyValues() []ReadWriteEndpointFailoverPolicy

PossibleReadWriteEndpointFailoverPolicyValues returns an array of possible values for the ReadWriteEndpointFailoverPolicy const type.

type Resource

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

Resource ARM resource.

type ResourceMoveDefinition

type ResourceMoveDefinition struct {
	// ID - The target ID for the resource
	ID *string `json:"id,omitempty"`
}

ResourceMoveDefinition contains the information necessary to perform a resource move (rename).

type SampleName

type SampleName string

SampleName enumerates the values for sample name.

const (
	// AdventureWorksLT ...
	AdventureWorksLT SampleName = "AdventureWorksLT"
	// WideWorldImportersFull ...
	WideWorldImportersFull SampleName = "WideWorldImportersFull"
	// WideWorldImportersStd ...
	WideWorldImportersStd SampleName = "WideWorldImportersStd"
)

func PossibleSampleNameValues

func PossibleSampleNameValues() []SampleName

PossibleSampleNameValues returns an array of possible values for the SampleName const type.

type ServerVersionCapability

type ServerVersionCapability struct {
	// Name - The server version name.
	Name *string `json:"name,omitempty"`
	// SupportedEditions - The list of supported database editions.
	SupportedEditions *[]EditionCapability `json:"supportedEditions,omitempty"`
	// SupportedElasticPoolEditions - The list of supported elastic pool editions.
	SupportedElasticPoolEditions *[]ElasticPoolEditionCapability `json:"supportedElasticPoolEditions,omitempty"`
	// Status - The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled'
	Status CapabilityStatus `json:"status,omitempty"`
	// Reason - The reason for the capability not being available.
	Reason *string `json:"reason,omitempty"`
}

ServerVersionCapability the server capability

type ServiceObjectiveCapability

type ServiceObjectiveCapability struct {
	// ID - The unique ID of the service objective.
	ID *uuid.UUID `json:"id,omitempty"`
	// Name - The service objective name.
	Name *string `json:"name,omitempty"`
	// SupportedMaxSizes - The list of supported maximum database sizes.
	SupportedMaxSizes *[]MaxSizeRangeCapability `json:"supportedMaxSizes,omitempty"`
	// PerformanceLevel - The performance level.
	PerformanceLevel *PerformanceLevelCapability `json:"performanceLevel,omitempty"`
	// Sku - The sku.
	Sku *Sku `json:"sku,omitempty"`
	// SupportedLicenseTypes - List of supported license types.
	SupportedLicenseTypes *[]LicenseTypeCapability `json:"supportedLicenseTypes,omitempty"`
	// IncludedMaxSize - The included (free) max size.
	IncludedMaxSize *MaxSizeCapability `json:"includedMaxSize,omitempty"`
	// Status - The status of the capability. Possible values include: 'Visible', 'Available', 'Default', 'Disabled'
	Status CapabilityStatus `json:"status,omitempty"`
	// Reason - The reason for the capability not being available.
	Reason *string `json:"reason,omitempty"`
}

ServiceObjectiveCapability the service objectives capability.

type Sku

type Sku struct {
	// Name - The name of the SKU. Ex - P3. It is typically a letter+number code
	Name *string `json:"name,omitempty"`
	// Tier - This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.
	Tier *string `json:"tier,omitempty"`
	// Size - The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
	Size *string `json:"size,omitempty"`
	// Family - If the service has different generations of hardware, for the same SKU, then that can be captured here.
	Family *string `json:"family,omitempty"`
	// Capacity - If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
	Capacity *int32 `json:"capacity,omitempty"`
}

Sku the resource model definition representing SKU

type TrackedResource

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

TrackedResource ARM tracked top level resource.

func (TrackedResource) MarshalJSON

func (tr TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TrackedResource.

type VulnerabilityAssessmentRecurringScansProperties

type VulnerabilityAssessmentRecurringScansProperties struct {
	// IsEnabled - Recurring scans state.
	IsEnabled *bool `json:"isEnabled,omitempty"`
	// EmailSubscriptionAdmins - Specifies that the schedule scan notification will be is sent to the subscription administrators.
	EmailSubscriptionAdmins *bool `json:"emailSubscriptionAdmins,omitempty"`
	// Emails - Specifies an array of e-mail addresses to which the scan notification is sent.
	Emails *[]string `json:"emails,omitempty"`
}

VulnerabilityAssessmentRecurringScansProperties properties of a Vulnerability Assessment recurring scans.

type VulnerabilityAssessmentScanError

type VulnerabilityAssessmentScanError struct {
	// Code - The error code.
	Code *string `json:"code,omitempty"`
	// Message - The error message.
	Message *string `json:"message,omitempty"`
}

VulnerabilityAssessmentScanError properties of a vulnerability assessment scan error.

type VulnerabilityAssessmentScanRecord

type VulnerabilityAssessmentScanRecord struct {
	autorest.Response `json:"-"`
	// VulnerabilityAssessmentScanRecordProperties - Resource properties.
	*VulnerabilityAssessmentScanRecordProperties `json:"properties,omitempty"`
	// ID - Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - Resource name.
	Name *string `json:"name,omitempty"`
	// Type - Resource type.
	Type *string `json:"type,omitempty"`
}

VulnerabilityAssessmentScanRecord a vulnerability assessment scan record.

func (VulnerabilityAssessmentScanRecord) MarshalJSON

func (vasr VulnerabilityAssessmentScanRecord) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VulnerabilityAssessmentScanRecord.

func (*VulnerabilityAssessmentScanRecord) UnmarshalJSON

func (vasr *VulnerabilityAssessmentScanRecord) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for VulnerabilityAssessmentScanRecord struct.

type VulnerabilityAssessmentScanRecordListResult

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

VulnerabilityAssessmentScanRecordListResult a list of vulnerability assessment scan records.

func (VulnerabilityAssessmentScanRecordListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type VulnerabilityAssessmentScanRecordListResultIterator

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

VulnerabilityAssessmentScanRecordListResultIterator provides access to a complete listing of VulnerabilityAssessmentScanRecord values.

func (*VulnerabilityAssessmentScanRecordListResultIterator) Next

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

func (VulnerabilityAssessmentScanRecordListResultIterator) NotDone

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

func (VulnerabilityAssessmentScanRecordListResultIterator) Response

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

func (VulnerabilityAssessmentScanRecordListResultIterator) Value

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

type VulnerabilityAssessmentScanRecordListResultPage

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

VulnerabilityAssessmentScanRecordListResultPage contains a page of VulnerabilityAssessmentScanRecord values.

func (*VulnerabilityAssessmentScanRecordListResultPage) Next

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

func (VulnerabilityAssessmentScanRecordListResultPage) NotDone

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

func (VulnerabilityAssessmentScanRecordListResultPage) Response

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

func (VulnerabilityAssessmentScanRecordListResultPage) Values

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

type VulnerabilityAssessmentScanRecordProperties

type VulnerabilityAssessmentScanRecordProperties struct {
	// ScanID - The scan ID.
	ScanID *string `json:"scanId,omitempty"`
	// TriggerType - The scan trigger type. Possible values include: 'OnDemand', 'Recurring'
	TriggerType VulnerabilityAssessmentScanTriggerType `json:"triggerType,omitempty"`
	// State - The scan status. Possible values include: 'VulnerabilityAssessmentScanStatePassed', 'VulnerabilityAssessmentScanStateFailed', 'VulnerabilityAssessmentScanStateFailedToRun', 'VulnerabilityAssessmentScanStateInProgress'
	State VulnerabilityAssessmentScanState `json:"state,omitempty"`
	// StartTime - The scan start time (UTC).
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - The scan end time (UTC).
	EndTime *date.Time `json:"endTime,omitempty"`
	// Errors - The scan errors.
	Errors *[]VulnerabilityAssessmentScanError `json:"errors,omitempty"`
	// StorageContainerPath - The scan results storage container path.
	StorageContainerPath *string `json:"storageContainerPath,omitempty"`
	// NumberOfFailedSecurityChecks - The number of failed security checks.
	NumberOfFailedSecurityChecks *int32 `json:"numberOfFailedSecurityChecks,omitempty"`
}

VulnerabilityAssessmentScanRecordProperties properties of a vulnerability assessment scan record.

type VulnerabilityAssessmentScanState

type VulnerabilityAssessmentScanState string

VulnerabilityAssessmentScanState enumerates the values for vulnerability assessment scan state.

const (
	// VulnerabilityAssessmentScanStateFailed ...
	VulnerabilityAssessmentScanStateFailed VulnerabilityAssessmentScanState = "Failed"
	// VulnerabilityAssessmentScanStateFailedToRun ...
	VulnerabilityAssessmentScanStateFailedToRun VulnerabilityAssessmentScanState = "FailedToRun"
	// VulnerabilityAssessmentScanStateInProgress ...
	VulnerabilityAssessmentScanStateInProgress VulnerabilityAssessmentScanState = "InProgress"
	// VulnerabilityAssessmentScanStatePassed ...
	VulnerabilityAssessmentScanStatePassed VulnerabilityAssessmentScanState = "Passed"
)

func PossibleVulnerabilityAssessmentScanStateValues

func PossibleVulnerabilityAssessmentScanStateValues() []VulnerabilityAssessmentScanState

PossibleVulnerabilityAssessmentScanStateValues returns an array of possible values for the VulnerabilityAssessmentScanState const type.

type VulnerabilityAssessmentScanTriggerType

type VulnerabilityAssessmentScanTriggerType string

VulnerabilityAssessmentScanTriggerType enumerates the values for vulnerability assessment scan trigger type.

const (
	// OnDemand ...
	OnDemand VulnerabilityAssessmentScanTriggerType = "OnDemand"
	// Recurring ...
	Recurring VulnerabilityAssessmentScanTriggerType = "Recurring"
)

func PossibleVulnerabilityAssessmentScanTriggerTypeValues

func PossibleVulnerabilityAssessmentScanTriggerTypeValues() []VulnerabilityAssessmentScanTriggerType

PossibleVulnerabilityAssessmentScanTriggerTypeValues returns an array of possible values for the VulnerabilityAssessmentScanTriggerType const type.

Jump to

Keyboard shortcuts

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