sql

package
v59.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: MIT Imports: 11 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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (BackupShortTermRetentionPoliciesClient) CreateOrUpdate

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

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

func (BackupShortTermRetentionPoliciesClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (BackupShortTermRetentionPoliciesClient) CreateOrUpdateResponder

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

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

func (BackupShortTermRetentionPoliciesClient) CreateOrUpdateSender

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

func (BackupShortTermRetentionPoliciesClient) Get

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

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

func (BackupShortTermRetentionPoliciesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (BackupShortTermRetentionPoliciesClient) GetResponder

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

func (BackupShortTermRetentionPoliciesClient) GetSender

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

func (BackupShortTermRetentionPoliciesClient) ListByDatabase

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

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

func (BackupShortTermRetentionPoliciesClient) ListByDatabaseComplete

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

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

func (BackupShortTermRetentionPoliciesClient) ListByDatabasePreparer

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (BackupShortTermRetentionPoliciesClient) ListByDatabaseResponder

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

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

func (BackupShortTermRetentionPoliciesClient) ListByDatabaseSender

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

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

func (BackupShortTermRetentionPoliciesClient) Update

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

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

func (BackupShortTermRetentionPoliciesClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (BackupShortTermRetentionPoliciesClient) UpdateResponder

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

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

func (BackupShortTermRetentionPoliciesClient) UpdateSender

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

type BackupShortTermRetentionPoliciesCreateOrUpdateFuture

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

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

func (*BackupShortTermRetentionPoliciesCreateOrUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type BackupShortTermRetentionPoliciesUpdateFuture

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

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

func (*BackupShortTermRetentionPoliciesUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type BackupShortTermRetentionPolicy

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

BackupShortTermRetentionPolicy a short term retention policy.

func (BackupShortTermRetentionPolicy) MarshalJSON

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

MarshalJSON is the custom marshaler for BackupShortTermRetentionPolicy.

func (*BackupShortTermRetentionPolicy) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for BackupShortTermRetentionPolicy struct.

type BackupShortTermRetentionPolicyListResult

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

BackupShortTermRetentionPolicyListResult a list of short term retention policies.

func (BackupShortTermRetentionPolicyListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

func (BackupShortTermRetentionPolicyListResult) MarshalJSON

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

MarshalJSON is the custom marshaler for BackupShortTermRetentionPolicyListResult.

type BackupShortTermRetentionPolicyListResultIterator

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

BackupShortTermRetentionPolicyListResultIterator provides access to a complete listing of BackupShortTermRetentionPolicy values.

func NewBackupShortTermRetentionPolicyListResultIterator

func NewBackupShortTermRetentionPolicyListResultIterator(page BackupShortTermRetentionPolicyListResultPage) BackupShortTermRetentionPolicyListResultIterator

Creates a new instance of the BackupShortTermRetentionPolicyListResultIterator type.

func (*BackupShortTermRetentionPolicyListResultIterator) Next

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

func (*BackupShortTermRetentionPolicyListResultIterator) NextWithContext

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

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

func (BackupShortTermRetentionPolicyListResultIterator) NotDone

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

func (BackupShortTermRetentionPolicyListResultIterator) Response

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

func (BackupShortTermRetentionPolicyListResultIterator) Value

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

type BackupShortTermRetentionPolicyListResultPage

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

BackupShortTermRetentionPolicyListResultPage contains a page of BackupShortTermRetentionPolicy values.

func NewBackupShortTermRetentionPolicyListResultPage

Creates a new instance of the BackupShortTermRetentionPolicyListResultPage type.

func (*BackupShortTermRetentionPolicyListResultPage) Next

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

func (*BackupShortTermRetentionPolicyListResultPage) NextWithContext

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

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

func (BackupShortTermRetentionPolicyListResultPage) NotDone

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

func (BackupShortTermRetentionPolicyListResultPage) Response

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

func (BackupShortTermRetentionPolicyListResultPage) Values

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

type BackupShortTermRetentionPolicyProperties

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

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

type CapabilitiesClient

type CapabilitiesClient struct {
	BaseClient
}

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

func NewCapabilitiesClient

func NewCapabilitiesClient(subscriptionID string) CapabilitiesClient

NewCapabilitiesClient creates an instance of the CapabilitiesClient client.

func NewCapabilitiesClientWithBaseURI

func NewCapabilitiesClientWithBaseURI(baseURI string, subscriptionID string) CapabilitiesClient

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

func (CapabilitiesClient) ListByLocation

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

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

func (CapabilitiesClient) ListByLocationPreparer

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

ListByLocationPreparer prepares the ListByLocation request.

func (CapabilitiesClient) ListByLocationResponder

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

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

func (CapabilitiesClient) ListByLocationSender

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

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

type CapabilityGroup

type CapabilityGroup string

CapabilityGroup enumerates the values for capability group.

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

Database a database resource.

func (Database) MarshalJSON

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

MarshalJSON is the custom marshaler for Database.

func (*Database) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Database struct.

type DatabaseLicenseType

type DatabaseLicenseType string

DatabaseLicenseType enumerates the values for database license type.

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

func PossibleDatabaseLicenseTypeValues

func PossibleDatabaseLicenseTypeValues() []DatabaseLicenseType

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

type DatabaseListResult

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

DatabaseListResult a list of databases.

func (DatabaseListResult) IsEmpty

func (dlr DatabaseListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (DatabaseListResult) MarshalJSON

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

MarshalJSON is the custom marshaler for DatabaseListResult.

type DatabaseListResultIterator

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

DatabaseListResultIterator provides access to a complete listing of Database values.

func NewDatabaseListResultIterator

func NewDatabaseListResultIterator(page DatabaseListResultPage) DatabaseListResultIterator

Creates a new instance of the DatabaseListResultIterator type.

func (*DatabaseListResultIterator) Next

func (iter *DatabaseListResultIterator) Next() error

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

func (*DatabaseListResultIterator) NextWithContext

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

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

func (DatabaseListResultIterator) NotDone

func (iter DatabaseListResultIterator) NotDone() bool

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

func (DatabaseListResultIterator) Response

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

func (DatabaseListResultIterator) Value

func (iter DatabaseListResultIterator) Value() Database

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

type DatabaseListResultPage

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

DatabaseListResultPage contains a page of Database values.

func NewDatabaseListResultPage

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

Creates a new instance of the DatabaseListResultPage type.

func (*DatabaseListResultPage) Next

func (page *DatabaseListResultPage) Next() error

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

func (*DatabaseListResultPage) NextWithContext

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

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

func (DatabaseListResultPage) NotDone

func (page DatabaseListResultPage) NotDone() bool

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

func (DatabaseListResultPage) Response

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

func (DatabaseListResultPage) Values

func (page DatabaseListResultPage) Values() []Database

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

type DatabaseOperation

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

DatabaseOperation a database operation.

func (DatabaseOperation) MarshalJSON

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

MarshalJSON is the custom marshaler for DatabaseOperation.

func (*DatabaseOperation) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for DatabaseOperation struct.

type DatabaseOperationListResult

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

DatabaseOperationListResult the response to a list database operations request

func (DatabaseOperationListResult) IsEmpty

func (dolr DatabaseOperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (DatabaseOperationListResult) MarshalJSON

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

MarshalJSON is the custom marshaler for DatabaseOperationListResult.

type DatabaseOperationListResultIterator

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

DatabaseOperationListResultIterator provides access to a complete listing of DatabaseOperation values.

func NewDatabaseOperationListResultIterator

func NewDatabaseOperationListResultIterator(page DatabaseOperationListResultPage) DatabaseOperationListResultIterator

Creates a new instance of the DatabaseOperationListResultIterator type.

func (*DatabaseOperationListResultIterator) Next

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

func (*DatabaseOperationListResultIterator) NextWithContext

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

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

func (DatabaseOperationListResultIterator) NotDone

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

func (DatabaseOperationListResultIterator) Response

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

func (DatabaseOperationListResultIterator) Value

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

type DatabaseOperationListResultPage

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

DatabaseOperationListResultPage contains a page of DatabaseOperation values.

func NewDatabaseOperationListResultPage

Creates a new instance of the DatabaseOperationListResultPage type.

func (*DatabaseOperationListResultPage) Next

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

func (*DatabaseOperationListResultPage) NextWithContext

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

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

func (DatabaseOperationListResultPage) NotDone

func (page DatabaseOperationListResultPage) NotDone() bool

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

func (DatabaseOperationListResultPage) Response

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

func (DatabaseOperationListResultPage) Values

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

type DatabaseOperationProperties

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

DatabaseOperationProperties the properties of a database operation.

func (DatabaseOperationProperties) MarshalJSON

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

MarshalJSON is the custom marshaler for DatabaseOperationProperties.

type DatabaseOperationsClient

type DatabaseOperationsClient struct {
	BaseClient
}

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

func NewDatabaseOperationsClient

func NewDatabaseOperationsClient(subscriptionID string) DatabaseOperationsClient

NewDatabaseOperationsClient creates an instance of the DatabaseOperationsClient client.

func NewDatabaseOperationsClientWithBaseURI

func NewDatabaseOperationsClientWithBaseURI(baseURI string, subscriptionID string) DatabaseOperationsClient

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

func (DatabaseOperationsClient) Cancel

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

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

func (DatabaseOperationsClient) CancelPreparer

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

CancelPreparer prepares the Cancel request.

func (DatabaseOperationsClient) CancelResponder

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

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

func (DatabaseOperationsClient) CancelSender

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

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

func (DatabaseOperationsClient) ListByDatabase

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

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

func (DatabaseOperationsClient) ListByDatabaseComplete

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

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

func (DatabaseOperationsClient) ListByDatabasePreparer

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (DatabaseOperationsClient) ListByDatabaseResponder

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

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

func (DatabaseOperationsClient) ListByDatabaseSender

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

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

type DatabaseProperties

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

DatabaseProperties the database's properties.

func (DatabaseProperties) MarshalJSON

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

MarshalJSON is the custom marshaler for DatabaseProperties.

type DatabaseReadScale

type DatabaseReadScale string

DatabaseReadScale enumerates the values for database read scale.

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

func PossibleDatabaseReadScaleValues

func PossibleDatabaseReadScaleValues() []DatabaseReadScale

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

type DatabaseStatus

type DatabaseStatus string

DatabaseStatus enumerates the values for database status.

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

func PossibleDatabaseStatusValues

func PossibleDatabaseStatusValues() []DatabaseStatus

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

type 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 {
	autorest.Response `json:"-"`
	// DatabaseVulnerabilityAssessmentProperties - Resource properties.
	*DatabaseVulnerabilityAssessmentProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

DatabaseVulnerabilityAssessment a database vulnerability assessment.

func (DatabaseVulnerabilityAssessment) MarshalJSON

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

MarshalJSON is the custom marshaler for DatabaseVulnerabilityAssessment.

func (*DatabaseVulnerabilityAssessment) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for DatabaseVulnerabilityAssessment struct.

type DatabaseVulnerabilityAssessmentListResult

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

DatabaseVulnerabilityAssessmentListResult a list of the database's vulnerability assessments.

func (DatabaseVulnerabilityAssessmentListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

func (DatabaseVulnerabilityAssessmentListResult) MarshalJSON

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

MarshalJSON is the custom marshaler for DatabaseVulnerabilityAssessmentListResult.

type DatabaseVulnerabilityAssessmentListResultIterator

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

DatabaseVulnerabilityAssessmentListResultIterator provides access to a complete listing of DatabaseVulnerabilityAssessment values.

func NewDatabaseVulnerabilityAssessmentListResultIterator

func NewDatabaseVulnerabilityAssessmentListResultIterator(page DatabaseVulnerabilityAssessmentListResultPage) DatabaseVulnerabilityAssessmentListResultIterator

Creates a new instance of the DatabaseVulnerabilityAssessmentListResultIterator type.

func (*DatabaseVulnerabilityAssessmentListResultIterator) Next

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

func (*DatabaseVulnerabilityAssessmentListResultIterator) NextWithContext

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

func (DatabaseVulnerabilityAssessmentListResultIterator) NotDone

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

func (DatabaseVulnerabilityAssessmentListResultIterator) Response

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

func (DatabaseVulnerabilityAssessmentListResultIterator) Value

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

type DatabaseVulnerabilityAssessmentListResultPage

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

DatabaseVulnerabilityAssessmentListResultPage contains a page of DatabaseVulnerabilityAssessment values.

func NewDatabaseVulnerabilityAssessmentListResultPage

Creates a new instance of the DatabaseVulnerabilityAssessmentListResultPage type.

func (*DatabaseVulnerabilityAssessmentListResultPage) Next

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

func (*DatabaseVulnerabilityAssessmentListResultPage) NextWithContext

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

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

func (DatabaseVulnerabilityAssessmentListResultPage) NotDone

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

func (DatabaseVulnerabilityAssessmentListResultPage) Response

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

func (DatabaseVulnerabilityAssessmentListResultPage) Values

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

type DatabaseVulnerabilityAssessmentProperties

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

DatabaseVulnerabilityAssessmentProperties properties of a database Vulnerability Assessment.

type DatabaseVulnerabilityAssessmentRuleBaseline

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

DatabaseVulnerabilityAssessmentRuleBaseline a database vulnerability assessment rule baseline.

func (DatabaseVulnerabilityAssessmentRuleBaseline) MarshalJSON

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

MarshalJSON is the custom marshaler for DatabaseVulnerabilityAssessmentRuleBaseline.

func (*DatabaseVulnerabilityAssessmentRuleBaseline) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for DatabaseVulnerabilityAssessmentRuleBaseline struct.

type DatabaseVulnerabilityAssessmentRuleBaselineItem

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

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

type DatabaseVulnerabilityAssessmentRuleBaselineProperties

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

DatabaseVulnerabilityAssessmentRuleBaselineProperties properties of a database Vulnerability Assessment rule baseline.

type DatabaseVulnerabilityAssessmentScanExportProperties

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

DatabaseVulnerabilityAssessmentScanExportProperties properties of the export operation's result.

func (DatabaseVulnerabilityAssessmentScanExportProperties) MarshalJSON

MarshalJSON is the custom marshaler for DatabaseVulnerabilityAssessmentScanExportProperties.

type DatabaseVulnerabilityAssessmentScansClient

type DatabaseVulnerabilityAssessmentScansClient struct {
	BaseClient
}

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

func NewDatabaseVulnerabilityAssessmentScansClient

func NewDatabaseVulnerabilityAssessmentScansClient(subscriptionID string) DatabaseVulnerabilityAssessmentScansClient

NewDatabaseVulnerabilityAssessmentScansClient creates an instance of the DatabaseVulnerabilityAssessmentScansClient client.

func NewDatabaseVulnerabilityAssessmentScansClientWithBaseURI

func NewDatabaseVulnerabilityAssessmentScansClientWithBaseURI(baseURI string, subscriptionID string) DatabaseVulnerabilityAssessmentScansClient

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

func (DatabaseVulnerabilityAssessmentScansClient) Export

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

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

func (DatabaseVulnerabilityAssessmentScansClient) ExportPreparer

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

ExportPreparer prepares the Export request.

func (DatabaseVulnerabilityAssessmentScansClient) ExportResponder

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

func (DatabaseVulnerabilityAssessmentScansClient) ExportSender

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

func (DatabaseVulnerabilityAssessmentScansClient) Get

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

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

func (DatabaseVulnerabilityAssessmentScansClient) GetPreparer

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

GetPreparer prepares the Get request.

func (DatabaseVulnerabilityAssessmentScansClient) GetResponder

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

func (DatabaseVulnerabilityAssessmentScansClient) GetSender

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

func (DatabaseVulnerabilityAssessmentScansClient) InitiateScan

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

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

func (DatabaseVulnerabilityAssessmentScansClient) InitiateScanPreparer

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

InitiateScanPreparer prepares the InitiateScan request.

func (DatabaseVulnerabilityAssessmentScansClient) InitiateScanResponder

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

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

func (DatabaseVulnerabilityAssessmentScansClient) InitiateScanSender

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

func (DatabaseVulnerabilityAssessmentScansClient) ListByDatabase

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

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

func (DatabaseVulnerabilityAssessmentScansClient) ListByDatabaseComplete

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

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

func (DatabaseVulnerabilityAssessmentScansClient) ListByDatabasePreparer

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (DatabaseVulnerabilityAssessmentScansClient) ListByDatabaseResponder

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

func (DatabaseVulnerabilityAssessmentScansClient) ListByDatabaseSender

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

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

type DatabaseVulnerabilityAssessmentScansExport

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

DatabaseVulnerabilityAssessmentScansExport a database Vulnerability Assessment scan export resource.

func (DatabaseVulnerabilityAssessmentScansExport) MarshalJSON

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

MarshalJSON is the custom marshaler for DatabaseVulnerabilityAssessmentScansExport.

func (*DatabaseVulnerabilityAssessmentScansExport) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for DatabaseVulnerabilityAssessmentScansExport struct.

type DatabaseVulnerabilityAssessmentScansInitiateScanFuture

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

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

func (*DatabaseVulnerabilityAssessmentScansInitiateScanFuture) UnmarshalJSON

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DatabasesClient

type DatabasesClient struct {
	BaseClient
}

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

func NewDatabasesClient

func NewDatabasesClient(subscriptionID string) DatabasesClient

NewDatabasesClient creates an instance of the DatabasesClient client.

func NewDatabasesClientWithBaseURI

func NewDatabasesClientWithBaseURI(baseURI string, subscriptionID string) DatabasesClient

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

func (DatabasesClient) CreateOrUpdate

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

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

func (DatabasesClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DatabasesClient) CreateOrUpdateResponder

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

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

func (DatabasesClient) CreateOrUpdateSender

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

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

func (DatabasesClient) Delete

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

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

func (DatabasesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (DatabasesClient) DeleteResponder

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

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

func (DatabasesClient) DeleteSender

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

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

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

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

func (*DatabasesCreateOrUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DatabasesDeleteFuture

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

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

func (*DatabasesDeleteFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DatabasesPauseFuture

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

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

func (*DatabasesPauseFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DatabasesResumeFuture

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

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

func (*DatabasesResumeFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DatabasesUpdateFuture

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

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

func (*DatabasesUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type DatabasesUpgradeDataWarehouseFuture

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

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

func (*DatabasesUpgradeDataWarehouseFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type EditionCapability

type EditionCapability struct {
	// Name - READ-ONLY; The database edition name.
	Name *string `json:"name,omitempty"`
	// SupportedServiceLevelObjectives - READ-ONLY; The list of supported service objectives for the edition.
	SupportedServiceLevelObjectives *[]ServiceObjectiveCapability `json:"supportedServiceLevelObjectives,omitempty"`
	// ZoneRedundant - READ-ONLY; Whether or not zone redundancy is supported for the edition.
	ZoneRedundant *bool `json:"zoneRedundant,omitempty"`
	// Status - READ-ONLY; The status of the capability. Possible values include: '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.

func (EditionCapability) MarshalJSON

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

MarshalJSON is the custom marshaler for EditionCapability.

type ElasticPool

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

ElasticPool an elastic pool.

func (ElasticPool) MarshalJSON

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

MarshalJSON is the custom marshaler for ElasticPool.

func (*ElasticPool) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for ElasticPool struct.

type ElasticPoolEditionCapability

type ElasticPoolEditionCapability struct {
	// Name - READ-ONLY; The elastic pool edition name.
	Name *string `json:"name,omitempty"`
	// SupportedElasticPoolPerformanceLevels - READ-ONLY; The list of supported elastic pool DTU levels for the edition.
	SupportedElasticPoolPerformanceLevels *[]ElasticPoolPerformanceLevelCapability `json:"supportedElasticPoolPerformanceLevels,omitempty"`
	// ZoneRedundant - READ-ONLY; Whether or not zone redundancy is supported for the edition.
	ZoneRedundant *bool `json:"zoneRedundant,omitempty"`
	// Status - READ-ONLY; The status of the capability. Possible values include: '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.

func (ElasticPoolEditionCapability) MarshalJSON

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

MarshalJSON is the custom marshaler for ElasticPoolEditionCapability.

type ElasticPoolLicenseType

type ElasticPoolLicenseType string

ElasticPoolLicenseType enumerates the values for elastic pool license type.

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

func PossibleElasticPoolLicenseTypeValues

func PossibleElasticPoolLicenseTypeValues() []ElasticPoolLicenseType

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

type ElasticPoolListResult

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

ElasticPoolListResult the result of an elastic pool list request.

func (ElasticPoolListResult) IsEmpty

func (eplr ElasticPoolListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (ElasticPoolListResult) MarshalJSON

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

MarshalJSON is the custom marshaler for ElasticPoolListResult.

type ElasticPoolListResultIterator

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

ElasticPoolListResultIterator provides access to a complete listing of ElasticPool values.

func NewElasticPoolListResultIterator

func NewElasticPoolListResultIterator(page ElasticPoolListResultPage) ElasticPoolListResultIterator

Creates a new instance of the ElasticPoolListResultIterator type.

func (*ElasticPoolListResultIterator) Next

func (iter *ElasticPoolListResultIterator) Next() error

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

func (*ElasticPoolListResultIterator) NextWithContext

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

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

func (ElasticPoolListResultIterator) NotDone

func (iter ElasticPoolListResultIterator) NotDone() bool

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

func (ElasticPoolListResultIterator) Response

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

func (ElasticPoolListResultIterator) Value

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

type ElasticPoolListResultPage

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

ElasticPoolListResultPage contains a page of ElasticPool values.

func NewElasticPoolListResultPage

Creates a new instance of the ElasticPoolListResultPage type.

func (*ElasticPoolListResultPage) Next

func (page *ElasticPoolListResultPage) Next() error

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

func (*ElasticPoolListResultPage) NextWithContext

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

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

func (ElasticPoolListResultPage) NotDone

func (page ElasticPoolListResultPage) NotDone() bool

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

func (ElasticPoolListResultPage) Response

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

func (ElasticPoolListResultPage) Values

func (page ElasticPoolListResultPage) Values() []ElasticPool

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

type ElasticPoolOperation

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

ElasticPoolOperation a elastic pool operation.

func (ElasticPoolOperation) MarshalJSON

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

MarshalJSON is the custom marshaler for ElasticPoolOperation.

func (*ElasticPoolOperation) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for ElasticPoolOperation struct.

type ElasticPoolOperationListResult

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

ElasticPoolOperationListResult the response to a list elastic pool operations request

func (ElasticPoolOperationListResult) IsEmpty

func (epolr ElasticPoolOperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (ElasticPoolOperationListResult) MarshalJSON

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

MarshalJSON is the custom marshaler for ElasticPoolOperationListResult.

type ElasticPoolOperationListResultIterator

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

ElasticPoolOperationListResultIterator provides access to a complete listing of ElasticPoolOperation values.

func NewElasticPoolOperationListResultIterator

func NewElasticPoolOperationListResultIterator(page ElasticPoolOperationListResultPage) ElasticPoolOperationListResultIterator

Creates a new instance of the ElasticPoolOperationListResultIterator type.

func (*ElasticPoolOperationListResultIterator) Next

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

func (*ElasticPoolOperationListResultIterator) NextWithContext

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

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

func (ElasticPoolOperationListResultIterator) NotDone

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

func (ElasticPoolOperationListResultIterator) Response

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

func (ElasticPoolOperationListResultIterator) Value

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

type ElasticPoolOperationListResultPage

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

ElasticPoolOperationListResultPage contains a page of ElasticPoolOperation values.

func NewElasticPoolOperationListResultPage

Creates a new instance of the ElasticPoolOperationListResultPage type.

func (*ElasticPoolOperationListResultPage) Next

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

func (*ElasticPoolOperationListResultPage) NextWithContext

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

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

func (ElasticPoolOperationListResultPage) NotDone

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

func (ElasticPoolOperationListResultPage) Response

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

func (ElasticPoolOperationListResultPage) Values

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

type ElasticPoolOperationProperties

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

ElasticPoolOperationProperties the properties of a elastic pool operation.

func (ElasticPoolOperationProperties) MarshalJSON

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

MarshalJSON is the custom marshaler for ElasticPoolOperationProperties.

type ElasticPoolOperationsClient

type ElasticPoolOperationsClient struct {
	BaseClient
}

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

func NewElasticPoolOperationsClient

func NewElasticPoolOperationsClient(subscriptionID string) ElasticPoolOperationsClient

NewElasticPoolOperationsClient creates an instance of the ElasticPoolOperationsClient client.

func NewElasticPoolOperationsClientWithBaseURI

func NewElasticPoolOperationsClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolOperationsClient

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

func (ElasticPoolOperationsClient) Cancel

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

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

func (ElasticPoolOperationsClient) CancelPreparer

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

CancelPreparer prepares the Cancel request.

func (ElasticPoolOperationsClient) CancelResponder

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

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

func (ElasticPoolOperationsClient) CancelSender

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

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

func (ElasticPoolOperationsClient) ListByElasticPool

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

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

func (ElasticPoolOperationsClient) ListByElasticPoolComplete

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

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

func (ElasticPoolOperationsClient) ListByElasticPoolPreparer

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

ListByElasticPoolPreparer prepares the ListByElasticPool request.

func (ElasticPoolOperationsClient) ListByElasticPoolResponder

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

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

func (ElasticPoolOperationsClient) ListByElasticPoolSender

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

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

type ElasticPoolPerDatabaseMaxPerformanceLevelCapability

type ElasticPoolPerDatabaseMaxPerformanceLevelCapability struct {
	// Limit - READ-ONLY; The maximum performance level per database.
	Limit *float64 `json:"limit,omitempty"`
	// Unit - READ-ONLY; Unit type used to measure performance level. Possible values include: 'DTU', 'VCores'
	Unit PerformanceLevelUnit `json:"unit,omitempty"`
	// SupportedPerDatabaseMinPerformanceLevels - READ-ONLY; The list of supported min database performance levels.
	SupportedPerDatabaseMinPerformanceLevels *[]ElasticPoolPerDatabaseMinPerformanceLevelCapability `json:"supportedPerDatabaseMinPerformanceLevels,omitempty"`
	// Status - READ-ONLY; The status of the capability. Possible values include: '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.

func (ElasticPoolPerDatabaseMaxPerformanceLevelCapability) MarshalJSON

MarshalJSON is the custom marshaler for ElasticPoolPerDatabaseMaxPerformanceLevelCapability.

type ElasticPoolPerDatabaseMinPerformanceLevelCapability

type ElasticPoolPerDatabaseMinPerformanceLevelCapability struct {
	// Limit - READ-ONLY; The minimum performance level per database.
	Limit *float64 `json:"limit,omitempty"`
	// Unit - READ-ONLY; Unit type used to measure performance level. Possible values include: 'DTU', 'VCores'
	Unit PerformanceLevelUnit `json:"unit,omitempty"`
	// Status - READ-ONLY; 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.

func (ElasticPoolPerDatabaseMinPerformanceLevelCapability) MarshalJSON

MarshalJSON is the custom marshaler for ElasticPoolPerDatabaseMinPerformanceLevelCapability.

type ElasticPoolPerDatabaseSettings

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

ElasticPoolPerDatabaseSettings per database settings of an elastic pool.

type ElasticPoolPerformanceLevelCapability

type ElasticPoolPerformanceLevelCapability struct {
	// PerformanceLevel - READ-ONLY; The performance level for the pool.
	PerformanceLevel *PerformanceLevelCapability `json:"performanceLevel,omitempty"`
	// Sku - READ-ONLY; The sku.
	Sku *Sku `json:"sku,omitempty"`
	// SupportedLicenseTypes - READ-ONLY; List of supported license types.
	SupportedLicenseTypes *[]LicenseTypeCapability `json:"supportedLicenseTypes,omitempty"`
	// MaxDatabaseCount - READ-ONLY; The maximum number of databases supported.
	MaxDatabaseCount *int32 `json:"maxDatabaseCount,omitempty"`
	// IncludedMaxSize - READ-ONLY; The included (free) max size for this performance level.
	IncludedMaxSize *MaxSizeCapability `json:"includedMaxSize,omitempty"`
	// SupportedMaxSizes - READ-ONLY; The list of supported max sizes.
	SupportedMaxSizes *[]MaxSizeRangeCapability `json:"supportedMaxSizes,omitempty"`
	// SupportedPerDatabaseMaxSizes - READ-ONLY; The list of supported per database max sizes.
	SupportedPerDatabaseMaxSizes *[]MaxSizeRangeCapability `json:"supportedPerDatabaseMaxSizes,omitempty"`
	// SupportedPerDatabaseMaxPerformanceLevels - READ-ONLY; The list of supported per database max performance levels.
	SupportedPerDatabaseMaxPerformanceLevels *[]ElasticPoolPerDatabaseMaxPerformanceLevelCapability `json:"supportedPerDatabaseMaxPerformanceLevels,omitempty"`
	// Status - READ-ONLY; 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.

func (ElasticPoolPerformanceLevelCapability) MarshalJSON

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

MarshalJSON is the custom marshaler for ElasticPoolPerformanceLevelCapability.

type ElasticPoolProperties

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

ElasticPoolProperties properties of an elastic pool

func (ElasticPoolProperties) MarshalJSON

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

MarshalJSON is the custom marshaler for ElasticPoolProperties.

type ElasticPoolState

type ElasticPoolState string

ElasticPoolState enumerates the values for elastic pool state.

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

func PossibleElasticPoolStateValues

func PossibleElasticPoolStateValues() []ElasticPoolState

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

type ElasticPoolUpdate

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

ElasticPoolUpdate an elastic pool update.

func (ElasticPoolUpdate) MarshalJSON

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

MarshalJSON is the custom marshaler for ElasticPoolUpdate.

func (*ElasticPoolUpdate) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for ElasticPoolUpdate struct.

type ElasticPoolUpdateProperties

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

ElasticPoolUpdateProperties properties of an elastic pool

type ElasticPoolsClient

type ElasticPoolsClient struct {
	BaseClient
}

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

func NewElasticPoolsClient

func NewElasticPoolsClient(subscriptionID string) ElasticPoolsClient

NewElasticPoolsClient creates an instance of the ElasticPoolsClient client.

func NewElasticPoolsClientWithBaseURI

func NewElasticPoolsClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolsClient

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

func (ElasticPoolsClient) CreateOrUpdate

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

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

func (ElasticPoolsClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ElasticPoolsClient) CreateOrUpdateResponder

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

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

func (ElasticPoolsClient) CreateOrUpdateSender

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

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

func (ElasticPoolsClient) Delete

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

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

func (ElasticPoolsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ElasticPoolsClient) DeleteResponder

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

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

func (ElasticPoolsClient) DeleteSender

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

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

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

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

func (*ElasticPoolsCreateOrUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ElasticPoolsDeleteFuture

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

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

func (*ElasticPoolsDeleteFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ElasticPoolsUpdateFuture

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

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

func (*ElasticPoolsUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type InstanceFailoverGroup

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

InstanceFailoverGroup an instance failover group.

func (InstanceFailoverGroup) MarshalJSON

func (ifg InstanceFailoverGroup) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for InstanceFailoverGroup.

func (*InstanceFailoverGroup) UnmarshalJSON

func (ifg *InstanceFailoverGroup) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for InstanceFailoverGroup struct.

type InstanceFailoverGroupListResult

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

InstanceFailoverGroupListResult a list of instance failover groups.

func (InstanceFailoverGroupListResult) IsEmpty

func (ifglr InstanceFailoverGroupListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (InstanceFailoverGroupListResult) MarshalJSON

func (ifglr InstanceFailoverGroupListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for InstanceFailoverGroupListResult.

type InstanceFailoverGroupListResultIterator

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

InstanceFailoverGroupListResultIterator provides access to a complete listing of InstanceFailoverGroup values.

func NewInstanceFailoverGroupListResultIterator

func NewInstanceFailoverGroupListResultIterator(page InstanceFailoverGroupListResultPage) InstanceFailoverGroupListResultIterator

Creates a new instance of the InstanceFailoverGroupListResultIterator type.

func (*InstanceFailoverGroupListResultIterator) Next

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

func (*InstanceFailoverGroupListResultIterator) NextWithContext

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

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

func (InstanceFailoverGroupListResultIterator) NotDone

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

func (InstanceFailoverGroupListResultIterator) Response

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

func (InstanceFailoverGroupListResultIterator) Value

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

type InstanceFailoverGroupListResultPage

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

InstanceFailoverGroupListResultPage contains a page of InstanceFailoverGroup values.

func NewInstanceFailoverGroupListResultPage

Creates a new instance of the InstanceFailoverGroupListResultPage type.

func (*InstanceFailoverGroupListResultPage) Next

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

func (*InstanceFailoverGroupListResultPage) NextWithContext

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

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

func (InstanceFailoverGroupListResultPage) NotDone

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

func (InstanceFailoverGroupListResultPage) Response

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

func (InstanceFailoverGroupListResultPage) Values

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

type InstanceFailoverGroupProperties

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

InstanceFailoverGroupProperties properties of a instance failover group.

func (InstanceFailoverGroupProperties) MarshalJSON

func (ifgp InstanceFailoverGroupProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for InstanceFailoverGroupProperties.

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

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

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

func (*InstanceFailoverGroupsCreateOrUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type InstanceFailoverGroupsDeleteFuture

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

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

func (*InstanceFailoverGroupsDeleteFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type InstanceFailoverGroupsFailoverFuture

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

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

func (*InstanceFailoverGroupsFailoverFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type InstanceFailoverGroupsForceFailoverAllowDataLossFuture

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

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

func (*InstanceFailoverGroupsForceFailoverAllowDataLossFuture) UnmarshalJSON

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type LicenseTypeCapability

type LicenseTypeCapability struct {
	// Name - READ-ONLY; License type identifier.
	Name *string `json:"name,omitempty"`
	// Status - READ-ONLY; The status of the capability. Possible values include: '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

func (LicenseTypeCapability) MarshalJSON

func (ltc LicenseTypeCapability) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LicenseTypeCapability.

type LocationCapabilities

type LocationCapabilities struct {
	autorest.Response `json:"-"`
	// Name - READ-ONLY; The location name.
	Name *string `json:"name,omitempty"`
	// SupportedServerVersions - READ-ONLY; The list of supported server versions.
	SupportedServerVersions *[]ServerVersionCapability `json:"supportedServerVersions,omitempty"`
	// SupportedManagedInstanceVersions - READ-ONLY; The list of supported managed instance versions.
	SupportedManagedInstanceVersions *[]ManagedInstanceVersionCapability `json:"supportedManagedInstanceVersions,omitempty"`
	// Status - READ-ONLY; The status of the capability. Possible values include: '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.

func (LocationCapabilities) MarshalJSON

func (lc LocationCapabilities) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LocationCapabilities.

type LogSizeCapability

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

LogSizeCapability the log size capability.

func (LogSizeCapability) MarshalJSON

func (lsc LogSizeCapability) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LogSizeCapability.

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 ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient

type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient struct {
	BaseClient
}

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

func NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient

func NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient(subscriptionID string) ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient

NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient creates an instance of the ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient client.

func NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI

func NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient

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

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdate

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

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdateResponder

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

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdateSender

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

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) Delete

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

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

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) DeleteResponder

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

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) DeleteSender

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

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) Get

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

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

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) GetResponder

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

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) GetSender

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

type ManagedDatabaseVulnerabilityAssessmentScansClient

type ManagedDatabaseVulnerabilityAssessmentScansClient struct {
	BaseClient
}

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

func NewManagedDatabaseVulnerabilityAssessmentScansClient

func NewManagedDatabaseVulnerabilityAssessmentScansClient(subscriptionID string) ManagedDatabaseVulnerabilityAssessmentScansClient

NewManagedDatabaseVulnerabilityAssessmentScansClient creates an instance of the ManagedDatabaseVulnerabilityAssessmentScansClient client.

func NewManagedDatabaseVulnerabilityAssessmentScansClientWithBaseURI

func NewManagedDatabaseVulnerabilityAssessmentScansClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseVulnerabilityAssessmentScansClient

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

func (ManagedDatabaseVulnerabilityAssessmentScansClient) Export

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

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

func (ManagedDatabaseVulnerabilityAssessmentScansClient) ExportPreparer

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

ExportPreparer prepares the Export request.

func (ManagedDatabaseVulnerabilityAssessmentScansClient) ExportResponder

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

func (ManagedDatabaseVulnerabilityAssessmentScansClient) ExportSender

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

func (ManagedDatabaseVulnerabilityAssessmentScansClient) Get

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

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

func (ManagedDatabaseVulnerabilityAssessmentScansClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ManagedDatabaseVulnerabilityAssessmentScansClient) GetResponder

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

func (ManagedDatabaseVulnerabilityAssessmentScansClient) GetSender

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

func (ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScan

func (client ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScan(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, scanID string) (result ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture, err error)

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

func (ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScanPreparer

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

InitiateScanPreparer prepares the InitiateScan request.

func (ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScanResponder

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

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

func (ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScanSender

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

func (ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabase

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

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

func (ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabaseComplete

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

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

func (ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabasePreparer

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabaseResponder

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

func (ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabaseSender

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

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

type ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture

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

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

func (*ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture) UnmarshalJSON

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ManagedDatabaseVulnerabilityAssessmentsClient

type ManagedDatabaseVulnerabilityAssessmentsClient struct {
	BaseClient
}

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

func NewManagedDatabaseVulnerabilityAssessmentsClient

func NewManagedDatabaseVulnerabilityAssessmentsClient(subscriptionID string) ManagedDatabaseVulnerabilityAssessmentsClient

NewManagedDatabaseVulnerabilityAssessmentsClient creates an instance of the ManagedDatabaseVulnerabilityAssessmentsClient client.

func NewManagedDatabaseVulnerabilityAssessmentsClientWithBaseURI

func NewManagedDatabaseVulnerabilityAssessmentsClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseVulnerabilityAssessmentsClient

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

func (ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdate

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

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

func (ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdateResponder

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

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

func (ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdateSender

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

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

func (ManagedDatabaseVulnerabilityAssessmentsClient) Delete

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

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

func (ManagedDatabaseVulnerabilityAssessmentsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ManagedDatabaseVulnerabilityAssessmentsClient) DeleteResponder

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

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

func (ManagedDatabaseVulnerabilityAssessmentsClient) DeleteSender

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

func (ManagedDatabaseVulnerabilityAssessmentsClient) Get

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

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

func (ManagedDatabaseVulnerabilityAssessmentsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ManagedDatabaseVulnerabilityAssessmentsClient) GetResponder

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

func (ManagedDatabaseVulnerabilityAssessmentsClient) GetSender

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

func (ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabase

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

ListByDatabase lists the vulnerability assessments of a managed database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database for which the vulnerability assessment is defined.

func (ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabaseComplete

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

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

func (ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabasePreparer

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabaseResponder

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

func (ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabaseSender

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

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

type ManagedInstanceEditionCapability

type ManagedInstanceEditionCapability struct {
	// Name - READ-ONLY; The managed server version name.
	Name *string `json:"name,omitempty"`
	// SupportedFamilies - READ-ONLY; The supported families.
	SupportedFamilies *[]ManagedInstanceFamilyCapability `json:"supportedFamilies,omitempty"`
	// Status - READ-ONLY; The status of the capability. Possible values include: '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

func (ManagedInstanceEditionCapability) MarshalJSON

func (miec ManagedInstanceEditionCapability) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedInstanceEditionCapability.

type ManagedInstanceEncryptionProtector

type ManagedInstanceEncryptionProtector struct {
	autorest.Response `json:"-"`
	// Kind - READ-ONLY; Kind of encryption protector. This is metadata used for the Azure portal experience.
	Kind *string `json:"kind,omitempty"`
	// ManagedInstanceEncryptionProtectorProperties - Resource properties.
	*ManagedInstanceEncryptionProtectorProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

ManagedInstanceEncryptionProtector the managed instance encryption protector.

func (ManagedInstanceEncryptionProtector) MarshalJSON

func (miep ManagedInstanceEncryptionProtector) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedInstanceEncryptionProtector.

func (*ManagedInstanceEncryptionProtector) UnmarshalJSON

func (miep *ManagedInstanceEncryptionProtector) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ManagedInstanceEncryptionProtector struct.

type ManagedInstanceEncryptionProtectorListResult

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

ManagedInstanceEncryptionProtectorListResult a list of managed instance encryption protectors.

func (ManagedInstanceEncryptionProtectorListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

func (ManagedInstanceEncryptionProtectorListResult) MarshalJSON

func (mieplr ManagedInstanceEncryptionProtectorListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedInstanceEncryptionProtectorListResult.

type ManagedInstanceEncryptionProtectorListResultIterator

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

ManagedInstanceEncryptionProtectorListResultIterator provides access to a complete listing of ManagedInstanceEncryptionProtector values.

func NewManagedInstanceEncryptionProtectorListResultIterator

func NewManagedInstanceEncryptionProtectorListResultIterator(page ManagedInstanceEncryptionProtectorListResultPage) ManagedInstanceEncryptionProtectorListResultIterator

Creates a new instance of the ManagedInstanceEncryptionProtectorListResultIterator type.

func (*ManagedInstanceEncryptionProtectorListResultIterator) Next

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

func (*ManagedInstanceEncryptionProtectorListResultIterator) NextWithContext

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

func (ManagedInstanceEncryptionProtectorListResultIterator) NotDone

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

func (ManagedInstanceEncryptionProtectorListResultIterator) Response

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

func (ManagedInstanceEncryptionProtectorListResultIterator) Value

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

type ManagedInstanceEncryptionProtectorListResultPage

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

ManagedInstanceEncryptionProtectorListResultPage contains a page of ManagedInstanceEncryptionProtector values.

func NewManagedInstanceEncryptionProtectorListResultPage

Creates a new instance of the ManagedInstanceEncryptionProtectorListResultPage type.

func (*ManagedInstanceEncryptionProtectorListResultPage) Next

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

func (*ManagedInstanceEncryptionProtectorListResultPage) NextWithContext

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

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

func (ManagedInstanceEncryptionProtectorListResultPage) NotDone

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

func (ManagedInstanceEncryptionProtectorListResultPage) Response

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

func (ManagedInstanceEncryptionProtectorListResultPage) Values

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

type ManagedInstanceEncryptionProtectorProperties

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

ManagedInstanceEncryptionProtectorProperties properties for an encryption protector execution.

func (ManagedInstanceEncryptionProtectorProperties) MarshalJSON

func (miepp ManagedInstanceEncryptionProtectorProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedInstanceEncryptionProtectorProperties.

type ManagedInstanceEncryptionProtectorsClient

type ManagedInstanceEncryptionProtectorsClient struct {
	BaseClient
}

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

func NewManagedInstanceEncryptionProtectorsClient

func NewManagedInstanceEncryptionProtectorsClient(subscriptionID string) ManagedInstanceEncryptionProtectorsClient

NewManagedInstanceEncryptionProtectorsClient creates an instance of the ManagedInstanceEncryptionProtectorsClient client.

func NewManagedInstanceEncryptionProtectorsClientWithBaseURI

func NewManagedInstanceEncryptionProtectorsClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstanceEncryptionProtectorsClient

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

func (ManagedInstanceEncryptionProtectorsClient) CreateOrUpdate

func (client ManagedInstanceEncryptionProtectorsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters ManagedInstanceEncryptionProtector) (result ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture, err error)

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

func (ManagedInstanceEncryptionProtectorsClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ManagedInstanceEncryptionProtectorsClient) CreateOrUpdateResponder

func (client ManagedInstanceEncryptionProtectorsClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedInstanceEncryptionProtector, err error)

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

func (ManagedInstanceEncryptionProtectorsClient) CreateOrUpdateSender

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

func (ManagedInstanceEncryptionProtectorsClient) Get

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

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

func (ManagedInstanceEncryptionProtectorsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ManagedInstanceEncryptionProtectorsClient) GetResponder

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

func (ManagedInstanceEncryptionProtectorsClient) GetSender

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

func (ManagedInstanceEncryptionProtectorsClient) ListByInstance

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

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

func (ManagedInstanceEncryptionProtectorsClient) ListByInstanceComplete

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

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

func (ManagedInstanceEncryptionProtectorsClient) ListByInstancePreparer

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

ListByInstancePreparer prepares the ListByInstance request.

func (ManagedInstanceEncryptionProtectorsClient) ListByInstanceResponder

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

func (ManagedInstanceEncryptionProtectorsClient) ListByInstanceSender

func (client ManagedInstanceEncryptionProtectorsClient) ListByInstanceSender(req *http.Request) (*http.Response, error)

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

func (ManagedInstanceEncryptionProtectorsClient) Revalidate

func (client ManagedInstanceEncryptionProtectorsClient) Revalidate(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceEncryptionProtectorsRevalidateFuture, err error)

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

func (ManagedInstanceEncryptionProtectorsClient) RevalidatePreparer

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

RevalidatePreparer prepares the Revalidate request.

func (ManagedInstanceEncryptionProtectorsClient) RevalidateResponder

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

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

func (ManagedInstanceEncryptionProtectorsClient) RevalidateSender

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

type ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture

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

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

func (*ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture) UnmarshalJSON

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ManagedInstanceEncryptionProtectorsRevalidateFuture

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

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

func (*ManagedInstanceEncryptionProtectorsRevalidateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ManagedInstanceFamilyCapability

type ManagedInstanceFamilyCapability struct {
	// Name - READ-ONLY; Family name.
	Name *string `json:"name,omitempty"`
	// Sku - READ-ONLY; SKU name.
	Sku *string `json:"sku,omitempty"`
	// SupportedLicenseTypes - READ-ONLY; List of supported license types.
	SupportedLicenseTypes *[]LicenseTypeCapability `json:"supportedLicenseTypes,omitempty"`
	// SupportedVcoresValues - READ-ONLY; List of supported virtual cores values.
	SupportedVcoresValues *[]ManagedInstanceVcoresCapability `json:"supportedVcoresValues,omitempty"`
	// IncludedMaxSize - READ-ONLY; Included size.
	IncludedMaxSize *MaxSizeCapability `json:"includedMaxSize,omitempty"`
	// SupportedStorageSizes - READ-ONLY; Storage size ranges.
	SupportedStorageSizes *[]MaxSizeRangeCapability `json:"supportedStorageSizes,omitempty"`
	// Status - READ-ONLY; The status of the capability. Possible values include: '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.

func (ManagedInstanceFamilyCapability) MarshalJSON

func (mifc ManagedInstanceFamilyCapability) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedInstanceFamilyCapability.

type ManagedInstanceKey

type ManagedInstanceKey struct {
	autorest.Response `json:"-"`
	// Kind - READ-ONLY; Kind of encryption protector. This is metadata used for the Azure portal experience.
	Kind *string `json:"kind,omitempty"`
	// ManagedInstanceKeyProperties - Resource properties.
	*ManagedInstanceKeyProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

ManagedInstanceKey a managed instance key.

func (ManagedInstanceKey) MarshalJSON

func (mik ManagedInstanceKey) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedInstanceKey.

func (*ManagedInstanceKey) UnmarshalJSON

func (mik *ManagedInstanceKey) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ManagedInstanceKey struct.

type ManagedInstanceKeyListResult

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

ManagedInstanceKeyListResult a list of managed instance keys.

func (ManagedInstanceKeyListResult) IsEmpty

func (miklr ManagedInstanceKeyListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (ManagedInstanceKeyListResult) MarshalJSON

func (miklr ManagedInstanceKeyListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedInstanceKeyListResult.

type ManagedInstanceKeyListResultIterator

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

ManagedInstanceKeyListResultIterator provides access to a complete listing of ManagedInstanceKey values.

func NewManagedInstanceKeyListResultIterator

func NewManagedInstanceKeyListResultIterator(page ManagedInstanceKeyListResultPage) ManagedInstanceKeyListResultIterator

Creates a new instance of the ManagedInstanceKeyListResultIterator type.

func (*ManagedInstanceKeyListResultIterator) Next

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

func (*ManagedInstanceKeyListResultIterator) NextWithContext

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

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

func (ManagedInstanceKeyListResultIterator) NotDone

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

func (ManagedInstanceKeyListResultIterator) Response

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

func (ManagedInstanceKeyListResultIterator) Value

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

type ManagedInstanceKeyListResultPage

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

ManagedInstanceKeyListResultPage contains a page of ManagedInstanceKey values.

func NewManagedInstanceKeyListResultPage

Creates a new instance of the ManagedInstanceKeyListResultPage type.

func (*ManagedInstanceKeyListResultPage) Next

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

func (*ManagedInstanceKeyListResultPage) NextWithContext

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

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

func (ManagedInstanceKeyListResultPage) NotDone

func (page ManagedInstanceKeyListResultPage) NotDone() bool

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

func (ManagedInstanceKeyListResultPage) Response

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

func (ManagedInstanceKeyListResultPage) Values

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

type ManagedInstanceKeyProperties

type ManagedInstanceKeyProperties struct {
	// ServerKeyType - The key type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: 'ServiceManaged', 'AzureKeyVault'
	ServerKeyType ServerKeyType `json:"serverKeyType,omitempty"`
	// URI - The URI of the key. If the ServerKeyType is AzureKeyVault, then the URI is required.
	URI *string `json:"uri,omitempty"`
	// Thumbprint - READ-ONLY; Thumbprint of the key.
	Thumbprint *string `json:"thumbprint,omitempty"`
	// CreationDate - READ-ONLY; The key creation date.
	CreationDate *date.Time `json:"creationDate,omitempty"`
}

ManagedInstanceKeyProperties properties for a key execution.

func (ManagedInstanceKeyProperties) MarshalJSON

func (mikp ManagedInstanceKeyProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedInstanceKeyProperties.

type ManagedInstanceKeysClient

type ManagedInstanceKeysClient struct {
	BaseClient
}

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

func NewManagedInstanceKeysClient

func NewManagedInstanceKeysClient(subscriptionID string) ManagedInstanceKeysClient

NewManagedInstanceKeysClient creates an instance of the ManagedInstanceKeysClient client.

func NewManagedInstanceKeysClientWithBaseURI

func NewManagedInstanceKeysClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstanceKeysClient

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

func (ManagedInstanceKeysClient) CreateOrUpdate

func (client ManagedInstanceKeysClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, keyName string, parameters ManagedInstanceKey) (result ManagedInstanceKeysCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates a managed instance key. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. keyName - the name of the managed instance key to be operated on (updated or created). parameters - the requested managed instance key resource state.

func (ManagedInstanceKeysClient) CreateOrUpdatePreparer

func (client ManagedInstanceKeysClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, keyName string, parameters ManagedInstanceKey) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ManagedInstanceKeysClient) CreateOrUpdateResponder

func (client ManagedInstanceKeysClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedInstanceKey, err error)

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

func (ManagedInstanceKeysClient) CreateOrUpdateSender

func (client ManagedInstanceKeysClient) CreateOrUpdateSender(req *http.Request) (future ManagedInstanceKeysCreateOrUpdateFuture, err error)

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

func (ManagedInstanceKeysClient) Delete

func (client ManagedInstanceKeysClient) Delete(ctx context.Context, resourceGroupName string, managedInstanceName string, keyName string) (result ManagedInstanceKeysDeleteFuture, err error)

Delete deletes the managed instance key with the given name. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. keyName - the name of the managed instance key to be deleted.

func (ManagedInstanceKeysClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ManagedInstanceKeysClient) DeleteResponder

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

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

func (ManagedInstanceKeysClient) DeleteSender

func (client ManagedInstanceKeysClient) DeleteSender(req *http.Request) (future ManagedInstanceKeysDeleteFuture, err error)

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

func (ManagedInstanceKeysClient) Get

func (client ManagedInstanceKeysClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, keyName string) (result ManagedInstanceKey, err error)

Get gets a managed instance key. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. keyName - the name of the managed instance key to be retrieved.

func (ManagedInstanceKeysClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ManagedInstanceKeysClient) GetResponder

func (client ManagedInstanceKeysClient) GetResponder(resp *http.Response) (result ManagedInstanceKey, err error)

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

func (ManagedInstanceKeysClient) GetSender

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

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

func (ManagedInstanceKeysClient) ListByInstance

func (client ManagedInstanceKeysClient) ListByInstance(ctx context.Context, resourceGroupName string, managedInstanceName string, filter string) (result ManagedInstanceKeyListResultPage, err error)

ListByInstance gets a list of managed instance keys. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. filter - an OData filter expression that filters elements in the collection.

func (ManagedInstanceKeysClient) ListByInstanceComplete

func (client ManagedInstanceKeysClient) ListByInstanceComplete(ctx context.Context, resourceGroupName string, managedInstanceName string, filter string) (result ManagedInstanceKeyListResultIterator, err error)

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

func (ManagedInstanceKeysClient) ListByInstancePreparer

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

ListByInstancePreparer prepares the ListByInstance request.

func (ManagedInstanceKeysClient) ListByInstanceResponder

func (client ManagedInstanceKeysClient) ListByInstanceResponder(resp *http.Response) (result ManagedInstanceKeyListResult, err error)

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

func (ManagedInstanceKeysClient) ListByInstanceSender

func (client ManagedInstanceKeysClient) ListByInstanceSender(req *http.Request) (*http.Response, error)

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

type ManagedInstanceKeysCreateOrUpdateFuture

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

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

func (*ManagedInstanceKeysCreateOrUpdateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ManagedInstanceKeysDeleteFuture

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

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

func (*ManagedInstanceKeysDeleteFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

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 ManagedInstanceTdeCertificatesClient

type ManagedInstanceTdeCertificatesClient struct {
	BaseClient
}

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

func NewManagedInstanceTdeCertificatesClient

func NewManagedInstanceTdeCertificatesClient(subscriptionID string) ManagedInstanceTdeCertificatesClient

NewManagedInstanceTdeCertificatesClient creates an instance of the ManagedInstanceTdeCertificatesClient client.

func NewManagedInstanceTdeCertificatesClientWithBaseURI

func NewManagedInstanceTdeCertificatesClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstanceTdeCertificatesClient

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

func (ManagedInstanceTdeCertificatesClient) Create

func (client ManagedInstanceTdeCertificatesClient) Create(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters TdeCertificate) (result ManagedInstanceTdeCertificatesCreateFuture, err error)

Create creates a TDE certificate for a given server. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. parameters - the requested TDE certificate to be created or updated.

func (ManagedInstanceTdeCertificatesClient) CreatePreparer

func (client ManagedInstanceTdeCertificatesClient) CreatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters TdeCertificate) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ManagedInstanceTdeCertificatesClient) CreateResponder

func (client ManagedInstanceTdeCertificatesClient) CreateResponder(resp *http.Response) (result autorest.Response, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (ManagedInstanceTdeCertificatesClient) CreateSender

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

type ManagedInstanceTdeCertificatesCreateFuture

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

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

func (*ManagedInstanceTdeCertificatesCreateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ManagedInstanceVcoresCapability

type ManagedInstanceVcoresCapability struct {
	// Name - READ-ONLY; The virtual cores identifier.
	Name *string `json:"name,omitempty"`
	// Value - READ-ONLY; The virtual cores value.
	Value *int32 `json:"value,omitempty"`
	// Status - READ-ONLY; The status of the capability. Possible values include: '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.

func (ManagedInstanceVcoresCapability) MarshalJSON

func (mivc ManagedInstanceVcoresCapability) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedInstanceVcoresCapability.

type ManagedInstanceVersionCapability

type ManagedInstanceVersionCapability struct {
	// Name - READ-ONLY; The server version name.
	Name *string `json:"name,omitempty"`
	// SupportedEditions - READ-ONLY; The list of supported managed instance editions.
	SupportedEditions *[]ManagedInstanceEditionCapability `json:"supportedEditions,omitempty"`
	// Status - READ-ONLY; The status of the capability. Possible values include: '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

func (ManagedInstanceVersionCapability) MarshalJSON

func (mivc ManagedInstanceVersionCapability) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedInstanceVersionCapability.

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 - READ-ONLY; The maximum size limit (see 'unit' for the units).
	Limit *int32 `json:"limit,omitempty"`
	// Unit - READ-ONLY; The units that the limit is expressed in. Possible values include: 'MaxSizeUnitMegabytes', 'MaxSizeUnitGigabytes', 'MaxSizeUnitTerabytes', 'MaxSizeUnitPetabytes'
	Unit MaxSizeUnit `json:"unit,omitempty"`
}

MaxSizeCapability the maximum size capability.

func (MaxSizeCapability) MarshalJSON

func (msc MaxSizeCapability) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MaxSizeCapability.

type MaxSizeRangeCapability

type MaxSizeRangeCapability struct {
	// MinValue - READ-ONLY; Minimum value.
	MinValue *MaxSizeCapability `json:"minValue,omitempty"`
	// MaxValue - READ-ONLY; Maximum value.
	MaxValue *MaxSizeCapability `json:"maxValue,omitempty"`
	// ScaleSize - READ-ONLY; Scale/step size for discrete values between the minimum value and the maximum value.
	ScaleSize *MaxSizeCapability `json:"scaleSize,omitempty"`
	// LogSize - READ-ONLY; Size of transaction log.
	LogSize *LogSizeCapability `json:"logSize,omitempty"`
	// Status - READ-ONLY; The status of the capability. Possible values include: '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.

func (MaxSizeRangeCapability) MarshalJSON

func (msrc MaxSizeRangeCapability) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MaxSizeRangeCapability.

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 - READ-ONLY; 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.

func (PartnerRegionInfo) MarshalJSON

func (pri PartnerRegionInfo) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PartnerRegionInfo.

type PerformanceLevelCapability

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

PerformanceLevelCapability the performance level capability.

func (PerformanceLevelCapability) MarshalJSON

func (plc PerformanceLevelCapability) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PerformanceLevelCapability.

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 - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

ProxyResource ARM proxy resource.

func (ProxyResource) MarshalJSON

func (pr ProxyResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ProxyResource.

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 RecoverableManagedDatabase

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

RecoverableManagedDatabase a recoverable managed database resource.

func (RecoverableManagedDatabase) MarshalJSON

func (rmd RecoverableManagedDatabase) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RecoverableManagedDatabase.

func (*RecoverableManagedDatabase) UnmarshalJSON

func (rmd *RecoverableManagedDatabase) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RecoverableManagedDatabase struct.

type RecoverableManagedDatabaseListResult

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

RecoverableManagedDatabaseListResult a list of recoverable managed databases.

func (RecoverableManagedDatabaseListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

func (RecoverableManagedDatabaseListResult) MarshalJSON

func (rmdlr RecoverableManagedDatabaseListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RecoverableManagedDatabaseListResult.

type RecoverableManagedDatabaseListResultIterator

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

RecoverableManagedDatabaseListResultIterator provides access to a complete listing of RecoverableManagedDatabase values.

func NewRecoverableManagedDatabaseListResultIterator

func NewRecoverableManagedDatabaseListResultIterator(page RecoverableManagedDatabaseListResultPage) RecoverableManagedDatabaseListResultIterator

Creates a new instance of the RecoverableManagedDatabaseListResultIterator type.

func (*RecoverableManagedDatabaseListResultIterator) Next

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

func (*RecoverableManagedDatabaseListResultIterator) NextWithContext

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

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

func (RecoverableManagedDatabaseListResultIterator) NotDone

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

func (RecoverableManagedDatabaseListResultIterator) Response

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

func (RecoverableManagedDatabaseListResultIterator) Value

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

type RecoverableManagedDatabaseListResultPage

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

RecoverableManagedDatabaseListResultPage contains a page of RecoverableManagedDatabase values.

func NewRecoverableManagedDatabaseListResultPage

Creates a new instance of the RecoverableManagedDatabaseListResultPage type.

func (*RecoverableManagedDatabaseListResultPage) Next

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

func (*RecoverableManagedDatabaseListResultPage) NextWithContext

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

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

func (RecoverableManagedDatabaseListResultPage) NotDone

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

func (RecoverableManagedDatabaseListResultPage) Response

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

func (RecoverableManagedDatabaseListResultPage) Values

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

type RecoverableManagedDatabaseProperties

type RecoverableManagedDatabaseProperties struct {
	// LastAvailableBackupDate - READ-ONLY; The last available backup date.
	LastAvailableBackupDate *string `json:"lastAvailableBackupDate,omitempty"`
}

RecoverableManagedDatabaseProperties the recoverable managed database's properties.

func (RecoverableManagedDatabaseProperties) MarshalJSON

func (rmdp RecoverableManagedDatabaseProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RecoverableManagedDatabaseProperties.

type RecoverableManagedDatabasesClient

type RecoverableManagedDatabasesClient struct {
	BaseClient
}

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

func NewRecoverableManagedDatabasesClient

func NewRecoverableManagedDatabasesClient(subscriptionID string) RecoverableManagedDatabasesClient

NewRecoverableManagedDatabasesClient creates an instance of the RecoverableManagedDatabasesClient client.

func NewRecoverableManagedDatabasesClientWithBaseURI

func NewRecoverableManagedDatabasesClientWithBaseURI(baseURI string, subscriptionID string) RecoverableManagedDatabasesClient

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

func (RecoverableManagedDatabasesClient) Get

func (client RecoverableManagedDatabasesClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, recoverableDatabaseName string) (result RecoverableManagedDatabase, err error)

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

func (RecoverableManagedDatabasesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (RecoverableManagedDatabasesClient) GetResponder

func (client RecoverableManagedDatabasesClient) GetResponder(resp *http.Response) (result RecoverableManagedDatabase, err error)

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

func (RecoverableManagedDatabasesClient) GetSender

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

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

func (RecoverableManagedDatabasesClient) ListByInstance

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

ListByInstance gets a list of recoverable managed databases. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance.

func (RecoverableManagedDatabasesClient) ListByInstanceComplete

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

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

func (RecoverableManagedDatabasesClient) ListByInstancePreparer

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

ListByInstancePreparer prepares the ListByInstance request.

func (RecoverableManagedDatabasesClient) ListByInstanceResponder

func (client RecoverableManagedDatabasesClient) ListByInstanceResponder(resp *http.Response) (result RecoverableManagedDatabaseListResult, err error)

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

func (RecoverableManagedDatabasesClient) ListByInstanceSender

func (client RecoverableManagedDatabasesClient) ListByInstanceSender(req *http.Request) (*http.Response, error)

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

type Resource

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

Resource ARM resource.

func (Resource) MarshalJSON

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for 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 ServerKeyType

type ServerKeyType string

ServerKeyType enumerates the values for server key type.

const (
	// AzureKeyVault ...
	AzureKeyVault ServerKeyType = "AzureKeyVault"
	// ServiceManaged ...
	ServiceManaged ServerKeyType = "ServiceManaged"
)

func PossibleServerKeyTypeValues

func PossibleServerKeyTypeValues() []ServerKeyType

PossibleServerKeyTypeValues returns an array of possible values for the ServerKeyType const type.

type ServerVersionCapability

type ServerVersionCapability struct {
	// Name - READ-ONLY; The server version name.
	Name *string `json:"name,omitempty"`
	// SupportedEditions - READ-ONLY; The list of supported database editions.
	SupportedEditions *[]EditionCapability `json:"supportedEditions,omitempty"`
	// SupportedElasticPoolEditions - READ-ONLY; The list of supported elastic pool editions.
	SupportedElasticPoolEditions *[]ElasticPoolEditionCapability `json:"supportedElasticPoolEditions,omitempty"`
	// Status - READ-ONLY; The status of the capability. Possible values include: '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

func (ServerVersionCapability) MarshalJSON

func (svc ServerVersionCapability) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerVersionCapability.

type ServiceObjectiveCapability

type ServiceObjectiveCapability struct {
	// ID - READ-ONLY; The unique ID of the service objective.
	ID *uuid.UUID `json:"id,omitempty"`
	// Name - READ-ONLY; The service objective name.
	Name *string `json:"name,omitempty"`
	// SupportedMaxSizes - READ-ONLY; The list of supported maximum database sizes.
	SupportedMaxSizes *[]MaxSizeRangeCapability `json:"supportedMaxSizes,omitempty"`
	// PerformanceLevel - READ-ONLY; The performance level.
	PerformanceLevel *PerformanceLevelCapability `json:"performanceLevel,omitempty"`
	// Sku - READ-ONLY; The sku.
	Sku *Sku `json:"sku,omitempty"`
	// SupportedLicenseTypes - READ-ONLY; List of supported license types.
	SupportedLicenseTypes *[]LicenseTypeCapability `json:"supportedLicenseTypes,omitempty"`
	// IncludedMaxSize - READ-ONLY; The included (free) max size.
	IncludedMaxSize *MaxSizeCapability `json:"includedMaxSize,omitempty"`
	// Status - READ-ONLY; The status of the capability. Possible values include: '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.

func (ServiceObjectiveCapability) MarshalJSON

func (soc ServiceObjectiveCapability) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServiceObjectiveCapability.

type Sku

type Sku struct {
	// Name - The name of the SKU, typically, a letter + Number code, e.g. P3.
	Name *string `json:"name,omitempty"`
	// Tier - The tier or edition of the particular SKU, e.g. Basic, Premium.
	Tier *string `json:"tier,omitempty"`
	// Size - Size of the particular SKU
	Size *string `json:"size,omitempty"`
	// Family - If the service has different generations of hardware, for the same SKU, then that can be captured here.
	Family *string `json:"family,omitempty"`
	// Capacity - Capacity of the particular SKU.
	Capacity *int32 `json:"capacity,omitempty"`
}

Sku an ARM Resource SKU.

type TdeCertificate

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

TdeCertificate a TDE certificate that can be uploaded into a server.

func (TdeCertificate) MarshalJSON

func (tc TdeCertificate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TdeCertificate.

func (*TdeCertificate) UnmarshalJSON

func (tc *TdeCertificate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TdeCertificate struct.

type TdeCertificateProperties

type TdeCertificateProperties struct {
	// PrivateBlob - The base64 encoded certificate private blob.
	PrivateBlob *string `json:"privateBlob,omitempty"`
	// CertPassword - The certificate password.
	CertPassword *string `json:"certPassword,omitempty"`
}

TdeCertificateProperties properties of a TDE certificate.

type TdeCertificatesClient

type TdeCertificatesClient struct {
	BaseClient
}

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

func NewTdeCertificatesClient

func NewTdeCertificatesClient(subscriptionID string) TdeCertificatesClient

NewTdeCertificatesClient creates an instance of the TdeCertificatesClient client.

func NewTdeCertificatesClientWithBaseURI

func NewTdeCertificatesClientWithBaseURI(baseURI string, subscriptionID string) TdeCertificatesClient

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

func (TdeCertificatesClient) Create

func (client TdeCertificatesClient) Create(ctx context.Context, resourceGroupName string, serverName string, parameters TdeCertificate) (result TdeCertificatesCreateFuture, err error)

Create creates a TDE certificate for a given server. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. parameters - the requested TDE certificate to be created or updated.

func (TdeCertificatesClient) CreatePreparer

func (client TdeCertificatesClient) CreatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters TdeCertificate) (*http.Request, error)

CreatePreparer prepares the Create request.

func (TdeCertificatesClient) CreateResponder

func (client TdeCertificatesClient) CreateResponder(resp *http.Response) (result autorest.Response, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (TdeCertificatesClient) CreateSender

func (client TdeCertificatesClient) CreateSender(req *http.Request) (future TdeCertificatesCreateFuture, err error)

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

type TdeCertificatesCreateFuture

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

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

func (*TdeCertificatesCreateFuture) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type TrackedResource

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

TrackedResource ARM tracked top level resource.

func (TrackedResource) MarshalJSON

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

MarshalJSON is the custom marshaler for TrackedResource.

type VulnerabilityAssessmentPolicyBaselineName

type VulnerabilityAssessmentPolicyBaselineName string

VulnerabilityAssessmentPolicyBaselineName enumerates the values for vulnerability assessment policy baseline name.

const (
	// VulnerabilityAssessmentPolicyBaselineNameDefault ...
	VulnerabilityAssessmentPolicyBaselineNameDefault VulnerabilityAssessmentPolicyBaselineName = "default"
	// VulnerabilityAssessmentPolicyBaselineNameMaster ...
	VulnerabilityAssessmentPolicyBaselineNameMaster VulnerabilityAssessmentPolicyBaselineName = "master"
)

func PossibleVulnerabilityAssessmentPolicyBaselineNameValues

func PossibleVulnerabilityAssessmentPolicyBaselineNameValues() []VulnerabilityAssessmentPolicyBaselineName

PossibleVulnerabilityAssessmentPolicyBaselineNameValues returns an array of possible values for the VulnerabilityAssessmentPolicyBaselineName const type.

type VulnerabilityAssessmentRecurringScansProperties

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

VulnerabilityAssessmentRecurringScansProperties properties of a Vulnerability Assessment recurring scans.

type VulnerabilityAssessmentScanError

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

VulnerabilityAssessmentScanError properties of a vulnerability assessment scan error.

func (VulnerabilityAssessmentScanError) MarshalJSON

func (vase VulnerabilityAssessmentScanError) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VulnerabilityAssessmentScanError.

type VulnerabilityAssessmentScanRecord

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

VulnerabilityAssessmentScanRecord a vulnerability assessment scan record.

func (VulnerabilityAssessmentScanRecord) MarshalJSON

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

MarshalJSON is the custom marshaler for VulnerabilityAssessmentScanRecord.

func (*VulnerabilityAssessmentScanRecord) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for VulnerabilityAssessmentScanRecord struct.

type VulnerabilityAssessmentScanRecordListResult

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

VulnerabilityAssessmentScanRecordListResult a list of vulnerability assessment scan records.

func (VulnerabilityAssessmentScanRecordListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

func (VulnerabilityAssessmentScanRecordListResult) MarshalJSON

func (vasrlr VulnerabilityAssessmentScanRecordListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VulnerabilityAssessmentScanRecordListResult.

type VulnerabilityAssessmentScanRecordListResultIterator

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

VulnerabilityAssessmentScanRecordListResultIterator provides access to a complete listing of VulnerabilityAssessmentScanRecord values.

func NewVulnerabilityAssessmentScanRecordListResultIterator

func NewVulnerabilityAssessmentScanRecordListResultIterator(page VulnerabilityAssessmentScanRecordListResultPage) VulnerabilityAssessmentScanRecordListResultIterator

Creates a new instance of the VulnerabilityAssessmentScanRecordListResultIterator type.

func (*VulnerabilityAssessmentScanRecordListResultIterator) Next

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

func (*VulnerabilityAssessmentScanRecordListResultIterator) NextWithContext

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

func (VulnerabilityAssessmentScanRecordListResultIterator) NotDone

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

func (VulnerabilityAssessmentScanRecordListResultIterator) Response

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

func (VulnerabilityAssessmentScanRecordListResultIterator) Value

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

type VulnerabilityAssessmentScanRecordListResultPage

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

VulnerabilityAssessmentScanRecordListResultPage contains a page of VulnerabilityAssessmentScanRecord values.

func NewVulnerabilityAssessmentScanRecordListResultPage

Creates a new instance of the VulnerabilityAssessmentScanRecordListResultPage type.

func (*VulnerabilityAssessmentScanRecordListResultPage) Next

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

func (*VulnerabilityAssessmentScanRecordListResultPage) NextWithContext

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

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

func (VulnerabilityAssessmentScanRecordListResultPage) NotDone

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

func (VulnerabilityAssessmentScanRecordListResultPage) Response

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

func (VulnerabilityAssessmentScanRecordListResultPage) Values

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

type VulnerabilityAssessmentScanRecordProperties

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

VulnerabilityAssessmentScanRecordProperties properties of a vulnerability assessment scan record.

func (VulnerabilityAssessmentScanRecordProperties) MarshalJSON

func (vasrp VulnerabilityAssessmentScanRecordProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VulnerabilityAssessmentScanRecordProperties.

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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