azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-10-01-preview/sql Index | Files | Directories

package sql

import "github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2017-10-01-preview/sql"

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

Package Files

backupshorttermretentionpolicies.go capabilities.go client.go databaseoperations.go databases.go databasevulnerabilityassessmentscans.go elasticpooloperations.go elasticpools.go instancefailovergroups.go manageddatabasevulnerabilityassessmentrulebaselines.go manageddatabasevulnerabilityassessments.go manageddatabasevulnerabilityassessmentscans.go managedinstanceencryptionprotectors.go managedinstancekeys.go managedinstancetdecertificates.go models.go recoverablemanageddatabases.go tdecertificates.go version.go

Constants

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

func UserAgent Uses

func UserAgent() string

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

func Version Uses

func Version() string

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

type BackupShortTermRetentionPoliciesClient Uses

type BackupShortTermRetentionPoliciesClient struct {
    BaseClient
}

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

func NewBackupShortTermRetentionPoliciesClient Uses

func NewBackupShortTermRetentionPoliciesClient(subscriptionID string) BackupShortTermRetentionPoliciesClient

NewBackupShortTermRetentionPoliciesClient creates an instance of the BackupShortTermRetentionPoliciesClient client.

func NewBackupShortTermRetentionPoliciesClientWithBaseURI Uses

func NewBackupShortTermRetentionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) BackupShortTermRetentionPoliciesClient

NewBackupShortTermRetentionPoliciesClientWithBaseURI creates an instance of the BackupShortTermRetentionPoliciesClient client.

func (BackupShortTermRetentionPoliciesClient) CreateOrUpdate Uses

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

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

func (BackupShortTermRetentionPoliciesClient) CreateOrUpdatePreparer Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (BackupShortTermRetentionPoliciesClient) CreateOrUpdateResponder Uses

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

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

func (BackupShortTermRetentionPoliciesClient) CreateOrUpdateSender Uses

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

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

func (BackupShortTermRetentionPoliciesClient) Get Uses

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

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

func (BackupShortTermRetentionPoliciesClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (BackupShortTermRetentionPoliciesClient) GetResponder Uses

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

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

func (BackupShortTermRetentionPoliciesClient) GetSender Uses

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

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

func (BackupShortTermRetentionPoliciesClient) ListByDatabase Uses

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

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

func (BackupShortTermRetentionPoliciesClient) ListByDatabaseComplete Uses

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

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

func (BackupShortTermRetentionPoliciesClient) ListByDatabasePreparer Uses

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (BackupShortTermRetentionPoliciesClient) ListByDatabaseResponder Uses

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

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

func (BackupShortTermRetentionPoliciesClient) ListByDatabaseSender Uses

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

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

func (BackupShortTermRetentionPoliciesClient) Update Uses

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

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

func (BackupShortTermRetentionPoliciesClient) UpdatePreparer Uses

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

UpdatePreparer prepares the Update request.

func (BackupShortTermRetentionPoliciesClient) UpdateResponder Uses

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

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

func (BackupShortTermRetentionPoliciesClient) UpdateSender Uses

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

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

type BackupShortTermRetentionPoliciesCreateOrUpdateFuture Uses

type BackupShortTermRetentionPoliciesCreateOrUpdateFuture struct {
    azure.Future
}

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

func (*BackupShortTermRetentionPoliciesCreateOrUpdateFuture) Result Uses

func (future *BackupShortTermRetentionPoliciesCreateOrUpdateFuture) Result(client BackupShortTermRetentionPoliciesClient) (bstrp BackupShortTermRetentionPolicy, err error)

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

type BackupShortTermRetentionPoliciesUpdateFuture Uses

type BackupShortTermRetentionPoliciesUpdateFuture struct {
    azure.Future
}

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

func (*BackupShortTermRetentionPoliciesUpdateFuture) Result Uses

func (future *BackupShortTermRetentionPoliciesUpdateFuture) Result(client BackupShortTermRetentionPoliciesClient) (bstrp BackupShortTermRetentionPolicy, err error)

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

type BackupShortTermRetentionPolicy Uses

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

BackupShortTermRetentionPolicy a short term retention policy.

func (BackupShortTermRetentionPolicy) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for BackupShortTermRetentionPolicy.

func (*BackupShortTermRetentionPolicy) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for BackupShortTermRetentionPolicy struct.

type BackupShortTermRetentionPolicyListResult Uses

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

BackupShortTermRetentionPolicyListResult a list of short term retention policies.

func (BackupShortTermRetentionPolicyListResult) IsEmpty Uses

func (bstrplr BackupShortTermRetentionPolicyListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type BackupShortTermRetentionPolicyListResultIterator Uses

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

BackupShortTermRetentionPolicyListResultIterator provides access to a complete listing of BackupShortTermRetentionPolicy values.

func NewBackupShortTermRetentionPolicyListResultIterator Uses

func NewBackupShortTermRetentionPolicyListResultIterator(page BackupShortTermRetentionPolicyListResultPage) BackupShortTermRetentionPolicyListResultIterator

Creates a new instance of the BackupShortTermRetentionPolicyListResultIterator type.

func (*BackupShortTermRetentionPolicyListResultIterator) Next Uses

func (iter *BackupShortTermRetentionPolicyListResultIterator) Next() error

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

func (*BackupShortTermRetentionPolicyListResultIterator) NextWithContext Uses

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

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

func (BackupShortTermRetentionPolicyListResultIterator) NotDone Uses

func (iter BackupShortTermRetentionPolicyListResultIterator) NotDone() bool

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

func (BackupShortTermRetentionPolicyListResultIterator) Response Uses

func (iter BackupShortTermRetentionPolicyListResultIterator) Response() BackupShortTermRetentionPolicyListResult

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

func (BackupShortTermRetentionPolicyListResultIterator) Value Uses

func (iter BackupShortTermRetentionPolicyListResultIterator) Value() BackupShortTermRetentionPolicy

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

type BackupShortTermRetentionPolicyListResultPage Uses

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

BackupShortTermRetentionPolicyListResultPage contains a page of BackupShortTermRetentionPolicy values.

func NewBackupShortTermRetentionPolicyListResultPage Uses

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

Creates a new instance of the BackupShortTermRetentionPolicyListResultPage type.

func (*BackupShortTermRetentionPolicyListResultPage) Next Uses

func (page *BackupShortTermRetentionPolicyListResultPage) Next() error

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

func (*BackupShortTermRetentionPolicyListResultPage) NextWithContext Uses

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

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

func (BackupShortTermRetentionPolicyListResultPage) NotDone Uses

func (page BackupShortTermRetentionPolicyListResultPage) NotDone() bool

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

func (BackupShortTermRetentionPolicyListResultPage) Response Uses

func (page BackupShortTermRetentionPolicyListResultPage) Response() BackupShortTermRetentionPolicyListResult

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

func (BackupShortTermRetentionPolicyListResultPage) Values Uses

func (page BackupShortTermRetentionPolicyListResultPage) Values() []BackupShortTermRetentionPolicy

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

type BackupShortTermRetentionPolicyProperties Uses

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

BackupShortTermRetentionPolicyProperties properties of a short term retention policy

type BaseClient Uses

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

BaseClient is the base client for Sql.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type CapabilitiesClient Uses

type CapabilitiesClient struct {
    BaseClient
}

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

func NewCapabilitiesClient Uses

func NewCapabilitiesClient(subscriptionID string) CapabilitiesClient

NewCapabilitiesClient creates an instance of the CapabilitiesClient client.

func NewCapabilitiesClientWithBaseURI Uses

func NewCapabilitiesClientWithBaseURI(baseURI string, subscriptionID string) CapabilitiesClient

NewCapabilitiesClientWithBaseURI creates an instance of the CapabilitiesClient client.

func (CapabilitiesClient) ListByLocation Uses

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

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

func (CapabilitiesClient) ListByLocationPreparer Uses

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

ListByLocationPreparer prepares the ListByLocation request.

func (CapabilitiesClient) ListByLocationResponder Uses

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

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

func (CapabilitiesClient) ListByLocationSender Uses

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

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

type CapabilityGroup Uses

type CapabilityGroup string

CapabilityGroup enumerates the values for capability group.

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

func PossibleCapabilityGroupValues Uses

func PossibleCapabilityGroupValues() []CapabilityGroup

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

type CapabilityStatus Uses

type CapabilityStatus string

CapabilityStatus enumerates the values for capability status.

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

func PossibleCapabilityStatusValues Uses

func PossibleCapabilityStatusValues() []CapabilityStatus

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

type CatalogCollationType Uses

type CatalogCollationType string

CatalogCollationType enumerates the values for catalog collation type.

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

func PossibleCatalogCollationTypeValues Uses

func PossibleCatalogCollationTypeValues() []CatalogCollationType

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

type CreateMode Uses

type CreateMode string

CreateMode enumerates the values for create mode.

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

func PossibleCreateModeValues Uses

func PossibleCreateModeValues() []CreateMode

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

type Database Uses

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

Database a database resource.

func (Database) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Database.

func (*Database) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Database struct.

type DatabaseLicenseType Uses

type DatabaseLicenseType string

DatabaseLicenseType enumerates the values for database license type.

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

func PossibleDatabaseLicenseTypeValues Uses

func PossibleDatabaseLicenseTypeValues() []DatabaseLicenseType

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

type DatabaseListResult Uses

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 Uses

func (dlr DatabaseListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DatabaseListResultIterator Uses

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

DatabaseListResultIterator provides access to a complete listing of Database values.

func NewDatabaseListResultIterator Uses

func NewDatabaseListResultIterator(page DatabaseListResultPage) DatabaseListResultIterator

Creates a new instance of the DatabaseListResultIterator type.

func (*DatabaseListResultIterator) Next Uses

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 Uses

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 Uses

func (iter DatabaseListResultIterator) NotDone() bool

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

func (DatabaseListResultIterator) Response Uses

func (iter DatabaseListResultIterator) Response() DatabaseListResult

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

func (DatabaseListResultIterator) Value Uses

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 Uses

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

DatabaseListResultPage contains a page of Database values.

func NewDatabaseListResultPage Uses

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

Creates a new instance of the DatabaseListResultPage type.

func (*DatabaseListResultPage) Next Uses

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 Uses

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 Uses

func (page DatabaseListResultPage) NotDone() bool

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

func (DatabaseListResultPage) Response Uses

func (page DatabaseListResultPage) Response() DatabaseListResult

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

func (DatabaseListResultPage) Values Uses

func (page DatabaseListResultPage) Values() []Database

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

type DatabaseOperation Uses

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 Uses

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

MarshalJSON is the custom marshaler for DatabaseOperation.

func (*DatabaseOperation) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for DatabaseOperation struct.

type DatabaseOperationListResult Uses

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 Uses

func (dolr DatabaseOperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DatabaseOperationListResultIterator Uses

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

DatabaseOperationListResultIterator provides access to a complete listing of DatabaseOperation values.

func NewDatabaseOperationListResultIterator Uses

func NewDatabaseOperationListResultIterator(page DatabaseOperationListResultPage) DatabaseOperationListResultIterator

Creates a new instance of the DatabaseOperationListResultIterator type.

func (*DatabaseOperationListResultIterator) Next Uses

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

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 Uses

func (iter DatabaseOperationListResultIterator) NotDone() bool

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

func (DatabaseOperationListResultIterator) Response Uses

func (iter DatabaseOperationListResultIterator) Response() DatabaseOperationListResult

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

func (DatabaseOperationListResultIterator) Value Uses

func (iter DatabaseOperationListResultIterator) Value() DatabaseOperation

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

type DatabaseOperationListResultPage Uses

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

DatabaseOperationListResultPage contains a page of DatabaseOperation values.

func NewDatabaseOperationListResultPage Uses

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

Creates a new instance of the DatabaseOperationListResultPage type.

func (*DatabaseOperationListResultPage) Next Uses

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

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 Uses

func (page DatabaseOperationListResultPage) NotDone() bool

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

func (DatabaseOperationListResultPage) Response Uses

func (page DatabaseOperationListResultPage) Response() DatabaseOperationListResult

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

func (DatabaseOperationListResultPage) Values Uses

func (page DatabaseOperationListResultPage) Values() []DatabaseOperation

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

type DatabaseOperationProperties Uses

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.

type DatabaseOperationsClient Uses

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 Uses

func NewDatabaseOperationsClient(subscriptionID string) DatabaseOperationsClient

NewDatabaseOperationsClient creates an instance of the DatabaseOperationsClient client.

func NewDatabaseOperationsClientWithBaseURI Uses

func NewDatabaseOperationsClientWithBaseURI(baseURI string, subscriptionID string) DatabaseOperationsClient

NewDatabaseOperationsClientWithBaseURI creates an instance of the DatabaseOperationsClient client.

func (DatabaseOperationsClient) Cancel Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (DatabaseOperationsClient) ListByDatabaseResponder Uses

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 Uses

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 Uses

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: 'Online', 'Restoring', 'RecoveryPending', 'Recovering', 'Suspect', 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', 'Copying', 'Creating', 'Inaccessible', 'OfflineSecondary', 'Pausing', 'Paused', 'Resuming', 'Scaling', 'OfflineChangingDwPerformanceTiers', 'OnlineChangingDwPerformanceTiers'
    Status DatabaseStatus `json:"status,omitempty"`
    // DatabaseID - READ-ONLY; The ID of the database.
    DatabaseID *uuid.UUID `json:"databaseId,omitempty"`
    // CreationDate - READ-ONLY; The creation date of the database (ISO8601 format).
    CreationDate *date.Time `json:"creationDate,omitempty"`
    // CurrentServiceObjectiveName - READ-ONLY; The current service level objective name of the database.
    CurrentServiceObjectiveName *string `json:"currentServiceObjectiveName,omitempty"`
    // RequestedServiceObjectiveName - READ-ONLY; The requested service level objective name of the database.
    RequestedServiceObjectiveName *string `json:"requestedServiceObjectiveName,omitempty"`
    // DefaultSecondaryLocation - READ-ONLY; The default secondary region for this database.
    DefaultSecondaryLocation *string `json:"defaultSecondaryLocation,omitempty"`
    // FailoverGroupID - READ-ONLY; Failover Group resource identifier that this database belongs to.
    FailoverGroupID *string `json:"failoverGroupId,omitempty"`
    // RestorePointInTime - Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database.
    RestorePointInTime *date.Time `json:"restorePointInTime,omitempty"`
    // SourceDatabaseDeletionDate - Specifies the time that the database was deleted.
    SourceDatabaseDeletionDate *date.Time `json:"sourceDatabaseDeletionDate,omitempty"`
    // RecoveryServicesRecoveryPointID - The resource identifier of the recovery point associated with create operation of this database.
    RecoveryServicesRecoveryPointID *string `json:"recoveryServicesRecoveryPointId,omitempty"`
    // LongTermRetentionBackupResourceID - The resource identifier of the long term retention backup associated with create operation of this database.
    LongTermRetentionBackupResourceID *string `json:"longTermRetentionBackupResourceId,omitempty"`
    // RecoverableDatabaseID - The resource identifier of the recoverable database associated with create operation of this database.
    RecoverableDatabaseID *string `json:"recoverableDatabaseId,omitempty"`
    // RestorableDroppedDatabaseID - The resource identifier of the restorable dropped database associated with create operation of this database.
    RestorableDroppedDatabaseID *string `json:"restorableDroppedDatabaseId,omitempty"`
    // CatalogCollation - Collation of the metadata catalog. Possible values include: 'DATABASEDEFAULT', 'SQLLatin1GeneralCP1CIAS'
    CatalogCollation CatalogCollationType `json:"catalogCollation,omitempty"`
    // ZoneRedundant - Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones.
    ZoneRedundant *bool `json:"zoneRedundant,omitempty"`
    // LicenseType - The license type to apply for this database. Possible values include: 'LicenseIncluded', 'BasePrice'
    LicenseType DatabaseLicenseType `json:"licenseType,omitempty"`
    // MaxLogSizeBytes - READ-ONLY; The max log size for this database.
    MaxLogSizeBytes *int64 `json:"maxLogSizeBytes,omitempty"`
    // EarliestRestoreDate - READ-ONLY; This records the earliest start date and time that restore is available for this database (ISO8601 format).
    EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"`
    // ReadScale - The state of read-only routing. If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica in the same region. Possible values include: 'DatabaseReadScaleEnabled', 'DatabaseReadScaleDisabled'
    ReadScale DatabaseReadScale `json:"readScale,omitempty"`
    // CurrentSku - 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"`
}

DatabaseProperties the database's properties.

type DatabaseReadScale Uses

type DatabaseReadScale string

DatabaseReadScale enumerates the values for database read scale.

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

func PossibleDatabaseReadScaleValues Uses

func PossibleDatabaseReadScaleValues() []DatabaseReadScale

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

type DatabaseStatus Uses

type DatabaseStatus string

DatabaseStatus enumerates the values for database status.

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

func PossibleDatabaseStatusValues Uses

func PossibleDatabaseStatusValues() []DatabaseStatus

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

type DatabaseUpdate Uses

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 Uses

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

MarshalJSON is the custom marshaler for DatabaseUpdate.

func (*DatabaseUpdate) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for DatabaseUpdate struct.

type DatabaseVulnerabilityAssessment Uses

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 Uses

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

MarshalJSON is the custom marshaler for DatabaseVulnerabilityAssessment.

func (*DatabaseVulnerabilityAssessment) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for DatabaseVulnerabilityAssessment struct.

type DatabaseVulnerabilityAssessmentListResult Uses

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 Uses

func (dvalr DatabaseVulnerabilityAssessmentListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DatabaseVulnerabilityAssessmentListResultIterator Uses

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

DatabaseVulnerabilityAssessmentListResultIterator provides access to a complete listing of DatabaseVulnerabilityAssessment values.

func NewDatabaseVulnerabilityAssessmentListResultIterator Uses

func NewDatabaseVulnerabilityAssessmentListResultIterator(page DatabaseVulnerabilityAssessmentListResultPage) DatabaseVulnerabilityAssessmentListResultIterator

Creates a new instance of the DatabaseVulnerabilityAssessmentListResultIterator type.

func (*DatabaseVulnerabilityAssessmentListResultIterator) Next Uses

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

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

func (iter DatabaseVulnerabilityAssessmentListResultIterator) NotDone() bool

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

func (DatabaseVulnerabilityAssessmentListResultIterator) Response Uses

func (iter DatabaseVulnerabilityAssessmentListResultIterator) Response() DatabaseVulnerabilityAssessmentListResult

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

func (DatabaseVulnerabilityAssessmentListResultIterator) Value Uses

func (iter DatabaseVulnerabilityAssessmentListResultIterator) Value() DatabaseVulnerabilityAssessment

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

type DatabaseVulnerabilityAssessmentListResultPage Uses

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

DatabaseVulnerabilityAssessmentListResultPage contains a page of DatabaseVulnerabilityAssessment values.

func NewDatabaseVulnerabilityAssessmentListResultPage Uses

func NewDatabaseVulnerabilityAssessmentListResultPage(getNextPage func(context.Context, DatabaseVulnerabilityAssessmentListResult) (DatabaseVulnerabilityAssessmentListResult, error)) DatabaseVulnerabilityAssessmentListResultPage

Creates a new instance of the DatabaseVulnerabilityAssessmentListResultPage type.

func (*DatabaseVulnerabilityAssessmentListResultPage) Next Uses

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

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 Uses

func (page DatabaseVulnerabilityAssessmentListResultPage) NotDone() bool

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

func (DatabaseVulnerabilityAssessmentListResultPage) Response Uses

func (page DatabaseVulnerabilityAssessmentListResultPage) Response() DatabaseVulnerabilityAssessmentListResult

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

func (DatabaseVulnerabilityAssessmentListResultPage) Values Uses

func (page DatabaseVulnerabilityAssessmentListResultPage) Values() []DatabaseVulnerabilityAssessment

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

type DatabaseVulnerabilityAssessmentProperties Uses

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

DatabaseVulnerabilityAssessmentProperties properties of a database Vulnerability Assessment.

type DatabaseVulnerabilityAssessmentRuleBaseline Uses

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 Uses

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

MarshalJSON is the custom marshaler for DatabaseVulnerabilityAssessmentRuleBaseline.

func (*DatabaseVulnerabilityAssessmentRuleBaseline) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for DatabaseVulnerabilityAssessmentRuleBaseline struct.

type DatabaseVulnerabilityAssessmentRuleBaselineItem Uses

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 Uses

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

DatabaseVulnerabilityAssessmentRuleBaselineProperties properties of a database Vulnerability Assessment rule baseline.

type DatabaseVulnerabilityAssessmentScanExportProperties Uses

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

DatabaseVulnerabilityAssessmentScanExportProperties properties of the export operation's result.

type DatabaseVulnerabilityAssessmentScansClient Uses

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 Uses

func NewDatabaseVulnerabilityAssessmentScansClient(subscriptionID string) DatabaseVulnerabilityAssessmentScansClient

NewDatabaseVulnerabilityAssessmentScansClient creates an instance of the DatabaseVulnerabilityAssessmentScansClient client.

func NewDatabaseVulnerabilityAssessmentScansClientWithBaseURI Uses

func NewDatabaseVulnerabilityAssessmentScansClientWithBaseURI(baseURI string, subscriptionID string) DatabaseVulnerabilityAssessmentScansClient

NewDatabaseVulnerabilityAssessmentScansClientWithBaseURI creates an instance of the DatabaseVulnerabilityAssessmentScansClient client.

func (DatabaseVulnerabilityAssessmentScansClient) Export Uses

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 Uses

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 Uses

func (client DatabaseVulnerabilityAssessmentScansClient) ExportResponder(resp *http.Response) (result DatabaseVulnerabilityAssessmentScansExport, err error)

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

func (DatabaseVulnerabilityAssessmentScansClient) ExportSender Uses

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

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

func (DatabaseVulnerabilityAssessmentScansClient) Get Uses

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 Uses

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 Uses

func (client DatabaseVulnerabilityAssessmentScansClient) GetResponder(resp *http.Response) (result VulnerabilityAssessmentScanRecord, err error)

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

func (DatabaseVulnerabilityAssessmentScansClient) GetSender Uses

func (client DatabaseVulnerabilityAssessmentScansClient) 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 (DatabaseVulnerabilityAssessmentScansClient) InitiateScan Uses

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 Uses

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 Uses

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 Uses

func (client DatabaseVulnerabilityAssessmentScansClient) InitiateScanSender(req *http.Request) (future DatabaseVulnerabilityAssessmentScansInitiateScanFuture, err error)

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

func (DatabaseVulnerabilityAssessmentScansClient) ListByDatabase Uses

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 Uses

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 Uses

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (DatabaseVulnerabilityAssessmentScansClient) ListByDatabaseResponder Uses

func (client DatabaseVulnerabilityAssessmentScansClient) ListByDatabaseResponder(resp *http.Response) (result VulnerabilityAssessmentScanRecordListResult, err error)

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

func (DatabaseVulnerabilityAssessmentScansClient) ListByDatabaseSender Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for DatabaseVulnerabilityAssessmentScansExport.

func (*DatabaseVulnerabilityAssessmentScansExport) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for DatabaseVulnerabilityAssessmentScansExport struct.

type DatabaseVulnerabilityAssessmentScansInitiateScanFuture Uses

type DatabaseVulnerabilityAssessmentScansInitiateScanFuture struct {
    azure.Future
}

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

func (*DatabaseVulnerabilityAssessmentScansInitiateScanFuture) Result Uses

func (future *DatabaseVulnerabilityAssessmentScansInitiateScanFuture) Result(client DatabaseVulnerabilityAssessmentScansClient) (ar autorest.Response, err error)

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

type DatabasesClient Uses

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 Uses

func NewDatabasesClient(subscriptionID string) DatabasesClient

NewDatabasesClient creates an instance of the DatabasesClient client.

func NewDatabasesClientWithBaseURI Uses

func NewDatabasesClientWithBaseURI(baseURI string, subscriptionID string) DatabasesClient

NewDatabasesClientWithBaseURI creates an instance of the DatabasesClient client.

func (DatabasesClient) CreateOrUpdate Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (DatabasesClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (DatabasesClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByElasticPoolPreparer prepares the ListByElasticPool request.

func (DatabasesClient) ListByElasticPoolResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByServerPreparer prepares the ListByServer request.

func (DatabasesClient) ListByServerResponder Uses

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 Uses

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 Uses

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 Uses

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

PausePreparer prepares the Pause request.

func (DatabasesClient) PauseResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ResumePreparer prepares the Resume request.

func (DatabasesClient) ResumeResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

UpgradeDataWarehousePreparer prepares the UpgradeDataWarehouse request.

func (DatabasesClient) UpgradeDataWarehouseResponder Uses

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 Uses

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 Uses

type DatabasesCreateOrUpdateFuture struct {
    azure.Future
}

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

func (*DatabasesCreateOrUpdateFuture) Result Uses

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

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

type DatabasesDeleteFuture Uses

type DatabasesDeleteFuture struct {
    azure.Future
}

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

func (*DatabasesDeleteFuture) Result Uses

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

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

type DatabasesPauseFuture Uses

type DatabasesPauseFuture struct {
    azure.Future
}

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

func (*DatabasesPauseFuture) Result Uses

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

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

type DatabasesResumeFuture Uses

type DatabasesResumeFuture struct {
    azure.Future
}

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

func (*DatabasesResumeFuture) Result Uses

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

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

type DatabasesUpdateFuture Uses

type DatabasesUpdateFuture struct {
    azure.Future
}

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

func (*DatabasesUpdateFuture) Result Uses

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

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

type DatabasesUpgradeDataWarehouseFuture Uses

type DatabasesUpgradeDataWarehouseFuture struct {
    azure.Future
}

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

func (*DatabasesUpgradeDataWarehouseFuture) Result Uses

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

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

type EditionCapability Uses

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.

type ElasticPool Uses

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 Uses

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

MarshalJSON is the custom marshaler for ElasticPool.

func (*ElasticPool) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ElasticPool struct.

type ElasticPoolEditionCapability Uses

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.

type ElasticPoolLicenseType Uses

type ElasticPoolLicenseType string

ElasticPoolLicenseType enumerates the values for elastic pool license type.

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

func PossibleElasticPoolLicenseTypeValues Uses

func PossibleElasticPoolLicenseTypeValues() []ElasticPoolLicenseType

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

type ElasticPoolListResult Uses

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 Uses

func (eplr ElasticPoolListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ElasticPoolListResultIterator Uses

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

ElasticPoolListResultIterator provides access to a complete listing of ElasticPool values.

func NewElasticPoolListResultIterator Uses

func NewElasticPoolListResultIterator(page ElasticPoolListResultPage) ElasticPoolListResultIterator

Creates a new instance of the ElasticPoolListResultIterator type.

func (*ElasticPoolListResultIterator) Next Uses

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 Uses

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 Uses

func (iter ElasticPoolListResultIterator) NotDone() bool

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

func (ElasticPoolListResultIterator) Response Uses

func (iter ElasticPoolListResultIterator) Response() ElasticPoolListResult

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

func (ElasticPoolListResultIterator) Value Uses

func (iter ElasticPoolListResultIterator) Value() ElasticPool

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

type ElasticPoolListResultPage Uses

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

ElasticPoolListResultPage contains a page of ElasticPool values.

func NewElasticPoolListResultPage Uses

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

Creates a new instance of the ElasticPoolListResultPage type.

func (*ElasticPoolListResultPage) Next Uses

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 Uses

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 Uses

func (page ElasticPoolListResultPage) NotDone() bool

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

func (ElasticPoolListResultPage) Response Uses

func (page ElasticPoolListResultPage) Response() ElasticPoolListResult

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

func (ElasticPoolListResultPage) Values Uses

func (page ElasticPoolListResultPage) Values() []ElasticPool

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

type ElasticPoolOperation Uses

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 Uses

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

MarshalJSON is the custom marshaler for ElasticPoolOperation.

func (*ElasticPoolOperation) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ElasticPoolOperation struct.

type ElasticPoolOperationListResult Uses

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 Uses

func (epolr ElasticPoolOperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ElasticPoolOperationListResultIterator Uses

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

ElasticPoolOperationListResultIterator provides access to a complete listing of ElasticPoolOperation values.

func NewElasticPoolOperationListResultIterator Uses

func NewElasticPoolOperationListResultIterator(page ElasticPoolOperationListResultPage) ElasticPoolOperationListResultIterator

Creates a new instance of the ElasticPoolOperationListResultIterator type.

func (*ElasticPoolOperationListResultIterator) Next Uses

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

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 Uses

func (iter ElasticPoolOperationListResultIterator) NotDone() bool

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

func (ElasticPoolOperationListResultIterator) Response Uses

func (iter ElasticPoolOperationListResultIterator) Response() ElasticPoolOperationListResult

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

func (ElasticPoolOperationListResultIterator) Value Uses

func (iter ElasticPoolOperationListResultIterator) Value() ElasticPoolOperation

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

type ElasticPoolOperationListResultPage Uses

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

ElasticPoolOperationListResultPage contains a page of ElasticPoolOperation values.

func NewElasticPoolOperationListResultPage Uses

func NewElasticPoolOperationListResultPage(getNextPage func(context.Context, ElasticPoolOperationListResult) (ElasticPoolOperationListResult, error)) ElasticPoolOperationListResultPage

Creates a new instance of the ElasticPoolOperationListResultPage type.

func (*ElasticPoolOperationListResultPage) Next Uses

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

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 Uses

func (page ElasticPoolOperationListResultPage) NotDone() bool

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

func (ElasticPoolOperationListResultPage) Response Uses

func (page ElasticPoolOperationListResultPage) Response() ElasticPoolOperationListResult

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

func (ElasticPoolOperationListResultPage) Values Uses

func (page ElasticPoolOperationListResultPage) Values() []ElasticPoolOperation

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

type ElasticPoolOperationProperties Uses

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

ElasticPoolOperationProperties the properties of a elastic pool operation.

type ElasticPoolOperationsClient Uses

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 Uses

func NewElasticPoolOperationsClient(subscriptionID string) ElasticPoolOperationsClient

NewElasticPoolOperationsClient creates an instance of the ElasticPoolOperationsClient client.

func NewElasticPoolOperationsClientWithBaseURI Uses

func NewElasticPoolOperationsClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolOperationsClient

NewElasticPoolOperationsClientWithBaseURI creates an instance of the ElasticPoolOperationsClient client.

func (ElasticPoolOperationsClient) Cancel Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByElasticPoolPreparer prepares the ListByElasticPool request.

func (ElasticPoolOperationsClient) ListByElasticPoolResponder Uses

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 Uses

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 Uses

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.

type ElasticPoolPerDatabaseMinPerformanceLevelCapability Uses

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.

type ElasticPoolPerDatabaseSettings Uses

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 Uses

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.

type ElasticPoolProperties Uses

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

ElasticPoolProperties properties of an elastic pool

type ElasticPoolState Uses

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 Uses

func PossibleElasticPoolStateValues() []ElasticPoolState

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

type ElasticPoolUpdate Uses

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 Uses

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

MarshalJSON is the custom marshaler for ElasticPoolUpdate.

func (*ElasticPoolUpdate) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ElasticPoolUpdate struct.

type ElasticPoolUpdateProperties Uses

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 Uses

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 Uses

func NewElasticPoolsClient(subscriptionID string) ElasticPoolsClient

NewElasticPoolsClient creates an instance of the ElasticPoolsClient client.

func NewElasticPoolsClientWithBaseURI Uses

func NewElasticPoolsClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolsClient

NewElasticPoolsClientWithBaseURI creates an instance of the ElasticPoolsClient client.

func (ElasticPoolsClient) CreateOrUpdate Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (ElasticPoolsClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (ElasticPoolsClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByServerPreparer prepares the ListByServer request.

func (ElasticPoolsClient) ListByServerResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

type ElasticPoolsCreateOrUpdateFuture struct {
    azure.Future
}

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

func (*ElasticPoolsCreateOrUpdateFuture) Result Uses

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

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

type ElasticPoolsDeleteFuture Uses

type ElasticPoolsDeleteFuture struct {
    azure.Future
}

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

func (*ElasticPoolsDeleteFuture) Result Uses

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

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

type ElasticPoolsUpdateFuture Uses

type ElasticPoolsUpdateFuture struct {
    azure.Future
}

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

func (*ElasticPoolsUpdateFuture) Result Uses

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

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

type InstanceFailoverGroup Uses

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 Uses

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

MarshalJSON is the custom marshaler for InstanceFailoverGroup.

func (*InstanceFailoverGroup) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for InstanceFailoverGroup struct.

type InstanceFailoverGroupListResult Uses

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 Uses

func (ifglr InstanceFailoverGroupListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type InstanceFailoverGroupListResultIterator Uses

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

InstanceFailoverGroupListResultIterator provides access to a complete listing of InstanceFailoverGroup values.

func NewInstanceFailoverGroupListResultIterator Uses

func NewInstanceFailoverGroupListResultIterator(page InstanceFailoverGroupListResultPage) InstanceFailoverGroupListResultIterator

Creates a new instance of the InstanceFailoverGroupListResultIterator type.

func (*InstanceFailoverGroupListResultIterator) Next Uses

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

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 Uses

func (iter InstanceFailoverGroupListResultIterator) NotDone() bool

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

func (InstanceFailoverGroupListResultIterator) Response Uses

func (iter InstanceFailoverGroupListResultIterator) Response() InstanceFailoverGroupListResult

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

func (InstanceFailoverGroupListResultIterator) Value Uses

func (iter InstanceFailoverGroupListResultIterator) Value() InstanceFailoverGroup

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

type InstanceFailoverGroupListResultPage Uses

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

InstanceFailoverGroupListResultPage contains a page of InstanceFailoverGroup values.

func NewInstanceFailoverGroupListResultPage Uses

func NewInstanceFailoverGroupListResultPage(getNextPage func(context.Context, InstanceFailoverGroupListResult) (InstanceFailoverGroupListResult, error)) InstanceFailoverGroupListResultPage

Creates a new instance of the InstanceFailoverGroupListResultPage type.

func (*InstanceFailoverGroupListResultPage) Next Uses

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

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 Uses

func (page InstanceFailoverGroupListResultPage) NotDone() bool

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

func (InstanceFailoverGroupListResultPage) Response Uses

func (page InstanceFailoverGroupListResultPage) Response() InstanceFailoverGroupListResult

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

func (InstanceFailoverGroupListResultPage) Values Uses

func (page InstanceFailoverGroupListResultPage) Values() []InstanceFailoverGroup

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

type InstanceFailoverGroupProperties Uses

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.

type InstanceFailoverGroupReadOnlyEndpoint Uses

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 Uses

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 Uses

type InstanceFailoverGroupReplicationRole string

InstanceFailoverGroupReplicationRole enumerates the values for instance failover group replication role.

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

func PossibleInstanceFailoverGroupReplicationRoleValues Uses

func PossibleInstanceFailoverGroupReplicationRoleValues() []InstanceFailoverGroupReplicationRole

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

type InstanceFailoverGroupsClient Uses

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 Uses

func NewInstanceFailoverGroupsClient(subscriptionID string) InstanceFailoverGroupsClient

NewInstanceFailoverGroupsClient creates an instance of the InstanceFailoverGroupsClient client.

func NewInstanceFailoverGroupsClientWithBaseURI Uses

func NewInstanceFailoverGroupsClientWithBaseURI(baseURI string, subscriptionID string) InstanceFailoverGroupsClient

NewInstanceFailoverGroupsClientWithBaseURI creates an instance of the InstanceFailoverGroupsClient client.

func (InstanceFailoverGroupsClient) CreateOrUpdate Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (InstanceFailoverGroupsClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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

FailoverPreparer prepares the Failover request.

func (InstanceFailoverGroupsClient) FailoverResponder Uses

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 Uses

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 Uses

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 Uses

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

ForceFailoverAllowDataLossPreparer prepares the ForceFailoverAllowDataLoss request.

func (InstanceFailoverGroupsClient) ForceFailoverAllowDataLossResponder Uses

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 Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (InstanceFailoverGroupsClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByLocationPreparer prepares the ListByLocation request.

func (InstanceFailoverGroupsClient) ListByLocationResponder Uses

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 Uses

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 Uses

type InstanceFailoverGroupsCreateOrUpdateFuture struct {
    azure.Future
}

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

func (*InstanceFailoverGroupsCreateOrUpdateFuture) Result Uses

func (future *InstanceFailoverGroupsCreateOrUpdateFuture) Result(client InstanceFailoverGroupsClient) (ifg InstanceFailoverGroup, err error)

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

type InstanceFailoverGroupsDeleteFuture Uses

type InstanceFailoverGroupsDeleteFuture struct {
    azure.Future
}

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

func (*InstanceFailoverGroupsDeleteFuture) Result Uses

func (future *InstanceFailoverGroupsDeleteFuture) Result(client InstanceFailoverGroupsClient) (ar autorest.Response, err error)

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

type InstanceFailoverGroupsFailoverFuture Uses

type InstanceFailoverGroupsFailoverFuture struct {
    azure.Future
}

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

func (*InstanceFailoverGroupsFailoverFuture) Result Uses

func (future *InstanceFailoverGroupsFailoverFuture) Result(client InstanceFailoverGroupsClient) (ifg InstanceFailoverGroup, err error)

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

type InstanceFailoverGroupsForceFailoverAllowDataLossFuture Uses

type InstanceFailoverGroupsForceFailoverAllowDataLossFuture struct {
    azure.Future
}

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

func (*InstanceFailoverGroupsForceFailoverAllowDataLossFuture) Result Uses

func (future *InstanceFailoverGroupsForceFailoverAllowDataLossFuture) Result(client InstanceFailoverGroupsClient) (ifg InstanceFailoverGroup, err error)

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

type LicenseTypeCapability Uses

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

type LocationCapabilities Uses

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.

type LogSizeCapability Uses

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

LogSizeCapability the log size capability.

type LogSizeUnit Uses

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 Uses

func PossibleLogSizeUnitValues() []LogSizeUnit

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

type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient Uses

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 Uses

func NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient(subscriptionID string) ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient

NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient creates an instance of the ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient client.

func NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI Uses

func NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient

NewManagedDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI creates an instance of the ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient client.

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdate Uses

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

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 Uses

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 Uses

func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdateResponder(resp *http.Response) (result DatabaseVulnerabilityAssessmentRuleBaseline, err error)

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

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdateSender Uses

func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) 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 (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) Delete Uses

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 Uses

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 Uses

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

func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) DeleteSender(req *http.Request) (*http.Response, error)

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

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) Get Uses

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 Uses

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 Uses

func (client ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) GetResponder(resp *http.Response) (result DatabaseVulnerabilityAssessmentRuleBaseline, err error)

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

func (ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClient) GetSender Uses

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

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

type ManagedDatabaseVulnerabilityAssessmentScansClient Uses

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 Uses

func NewManagedDatabaseVulnerabilityAssessmentScansClient(subscriptionID string) ManagedDatabaseVulnerabilityAssessmentScansClient

NewManagedDatabaseVulnerabilityAssessmentScansClient creates an instance of the ManagedDatabaseVulnerabilityAssessmentScansClient client.

func NewManagedDatabaseVulnerabilityAssessmentScansClientWithBaseURI Uses

func NewManagedDatabaseVulnerabilityAssessmentScansClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseVulnerabilityAssessmentScansClient

NewManagedDatabaseVulnerabilityAssessmentScansClientWithBaseURI creates an instance of the ManagedDatabaseVulnerabilityAssessmentScansClient client.

func (ManagedDatabaseVulnerabilityAssessmentScansClient) Export Uses

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 Uses

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 Uses

func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ExportResponder(resp *http.Response) (result DatabaseVulnerabilityAssessmentScansExport, err error)

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

func (ManagedDatabaseVulnerabilityAssessmentScansClient) ExportSender Uses

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

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

func (ManagedDatabaseVulnerabilityAssessmentScansClient) Get Uses

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 Uses

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 Uses

func (client ManagedDatabaseVulnerabilityAssessmentScansClient) GetResponder(resp *http.Response) (result VulnerabilityAssessmentScanRecord, err error)

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

func (ManagedDatabaseVulnerabilityAssessmentScansClient) GetSender Uses

func (client ManagedDatabaseVulnerabilityAssessmentScansClient) 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 (ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScan Uses

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 Uses

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 Uses

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 Uses

func (client ManagedDatabaseVulnerabilityAssessmentScansClient) InitiateScanSender(req *http.Request) (future ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture, err error)

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

func (ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabase Uses

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 Uses

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 Uses

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabaseResponder Uses

func (client ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabaseResponder(resp *http.Response) (result VulnerabilityAssessmentScanRecordListResult, err error)

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

func (ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabaseSender Uses

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 Uses

type ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture struct {
    azure.Future
}

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

func (*ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture) Result Uses

func (future *ManagedDatabaseVulnerabilityAssessmentScansInitiateScanFuture) Result(client ManagedDatabaseVulnerabilityAssessmentScansClient) (ar autorest.Response, err error)

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

type ManagedDatabaseVulnerabilityAssessmentsClient Uses

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 Uses

func NewManagedDatabaseVulnerabilityAssessmentsClient(subscriptionID string) ManagedDatabaseVulnerabilityAssessmentsClient

NewManagedDatabaseVulnerabilityAssessmentsClient creates an instance of the ManagedDatabaseVulnerabilityAssessmentsClient client.

func NewManagedDatabaseVulnerabilityAssessmentsClientWithBaseURI Uses

func NewManagedDatabaseVulnerabilityAssessmentsClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseVulnerabilityAssessmentsClient

NewManagedDatabaseVulnerabilityAssessmentsClientWithBaseURI creates an instance of the ManagedDatabaseVulnerabilityAssessmentsClient client.

func (ManagedDatabaseVulnerabilityAssessmentsClient) CreateOrUpdate Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (ManagedDatabaseVulnerabilityAssessmentsClient) DeleteResponder Uses

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 Uses

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

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

func (ManagedDatabaseVulnerabilityAssessmentsClient) Get Uses

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 Uses

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

GetPreparer prepares the Get request.

func (ManagedDatabaseVulnerabilityAssessmentsClient) GetResponder Uses

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

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

func (ManagedDatabaseVulnerabilityAssessmentsClient) GetSender Uses

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

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 Uses

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 Uses

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabaseResponder Uses

func (client ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabaseResponder(resp *http.Response) (result DatabaseVulnerabilityAssessmentListResult, err error)

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

func (ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabaseSender Uses

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 Uses

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

type ManagedInstanceEncryptionProtector Uses

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 Uses

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

MarshalJSON is the custom marshaler for ManagedInstanceEncryptionProtector.

func (*ManagedInstanceEncryptionProtector) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ManagedInstanceEncryptionProtector struct.

type ManagedInstanceEncryptionProtectorListResult Uses

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 Uses

func (mieplr ManagedInstanceEncryptionProtectorListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ManagedInstanceEncryptionProtectorListResultIterator Uses

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

ManagedInstanceEncryptionProtectorListResultIterator provides access to a complete listing of ManagedInstanceEncryptionProtector values.

func NewManagedInstanceEncryptionProtectorListResultIterator Uses

func NewManagedInstanceEncryptionProtectorListResultIterator(page ManagedInstanceEncryptionProtectorListResultPage) ManagedInstanceEncryptionProtectorListResultIterator

Creates a new instance of the ManagedInstanceEncryptionProtectorListResultIterator type.

func (*ManagedInstanceEncryptionProtectorListResultIterator) Next Uses

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

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

func (iter ManagedInstanceEncryptionProtectorListResultIterator) NotDone() bool

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

func (ManagedInstanceEncryptionProtectorListResultIterator) Response Uses

func (iter ManagedInstanceEncryptionProtectorListResultIterator) Response() ManagedInstanceEncryptionProtectorListResult

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

func (ManagedInstanceEncryptionProtectorListResultIterator) Value Uses

func (iter ManagedInstanceEncryptionProtectorListResultIterator) Value() ManagedInstanceEncryptionProtector

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

type ManagedInstanceEncryptionProtectorListResultPage Uses

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

ManagedInstanceEncryptionProtectorListResultPage contains a page of ManagedInstanceEncryptionProtector values.

func NewManagedInstanceEncryptionProtectorListResultPage Uses

func NewManagedInstanceEncryptionProtectorListResultPage(getNextPage func(context.Context, ManagedInstanceEncryptionProtectorListResult) (ManagedInstanceEncryptionProtectorListResult, error)) ManagedInstanceEncryptionProtectorListResultPage

Creates a new instance of the ManagedInstanceEncryptionProtectorListResultPage type.

func (*ManagedInstanceEncryptionProtectorListResultPage) Next Uses

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

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 Uses

func (page ManagedInstanceEncryptionProtectorListResultPage) NotDone() bool

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

func (ManagedInstanceEncryptionProtectorListResultPage) Response Uses

func (page ManagedInstanceEncryptionProtectorListResultPage) Response() ManagedInstanceEncryptionProtectorListResult

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

func (ManagedInstanceEncryptionProtectorListResultPage) Values Uses

func (page ManagedInstanceEncryptionProtectorListResultPage) Values() []ManagedInstanceEncryptionProtector

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

type ManagedInstanceEncryptionProtectorProperties Uses

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

ManagedInstanceEncryptionProtectorProperties properties for an encryption protector execution.

type ManagedInstanceEncryptionProtectorsClient Uses

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 Uses

func NewManagedInstanceEncryptionProtectorsClient(subscriptionID string) ManagedInstanceEncryptionProtectorsClient

NewManagedInstanceEncryptionProtectorsClient creates an instance of the ManagedInstanceEncryptionProtectorsClient client.

func NewManagedInstanceEncryptionProtectorsClientWithBaseURI Uses

func NewManagedInstanceEncryptionProtectorsClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstanceEncryptionProtectorsClient

NewManagedInstanceEncryptionProtectorsClientWithBaseURI creates an instance of the ManagedInstanceEncryptionProtectorsClient client.

func (ManagedInstanceEncryptionProtectorsClient) CreateOrUpdate Uses

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 Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ManagedInstanceEncryptionProtectorsClient) CreateOrUpdateResponder Uses

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 Uses

func (client ManagedInstanceEncryptionProtectorsClient) CreateOrUpdateSender(req *http.Request) (future ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture, err error)

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

func (ManagedInstanceEncryptionProtectorsClient) Get Uses

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 Uses

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

GetPreparer prepares the Get request.

func (ManagedInstanceEncryptionProtectorsClient) GetResponder Uses

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

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

func (ManagedInstanceEncryptionProtectorsClient) GetSender Uses

func (client ManagedInstanceEncryptionProtectorsClient) 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 (ManagedInstanceEncryptionProtectorsClient) ListByInstance Uses

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 Uses

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 Uses

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

ListByInstancePreparer prepares the ListByInstance request.

func (ManagedInstanceEncryptionProtectorsClient) ListByInstanceResponder Uses

func (client ManagedInstanceEncryptionProtectorsClient) ListByInstanceResponder(resp *http.Response) (result ManagedInstanceEncryptionProtectorListResult, err error)

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

func (ManagedInstanceEncryptionProtectorsClient) ListByInstanceSender Uses

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 Uses

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 Uses

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

RevalidatePreparer prepares the Revalidate request.

func (ManagedInstanceEncryptionProtectorsClient) RevalidateResponder Uses

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 Uses

func (client ManagedInstanceEncryptionProtectorsClient) RevalidateSender(req *http.Request) (future ManagedInstanceEncryptionProtectorsRevalidateFuture, err error)

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

type ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture Uses

type ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture struct {
    azure.Future
}

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

func (*ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture) Result Uses

func (future *ManagedInstanceEncryptionProtectorsCreateOrUpdateFuture) Result(client ManagedInstanceEncryptionProtectorsClient) (miep ManagedInstanceEncryptionProtector, err error)

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

type ManagedInstanceEncryptionProtectorsRevalidateFuture Uses

type ManagedInstanceEncryptionProtectorsRevalidateFuture struct {
    azure.Future
}

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

func (*ManagedInstanceEncryptionProtectorsRevalidateFuture) Result Uses

func (future *ManagedInstanceEncryptionProtectorsRevalidateFuture) Result(client ManagedInstanceEncryptionProtectorsClient) (ar autorest.Response, err error)

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

type ManagedInstanceFamilyCapability Uses

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.

type ManagedInstanceKey Uses

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 Uses

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

MarshalJSON is the custom marshaler for ManagedInstanceKey.

func (*ManagedInstanceKey) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ManagedInstanceKey struct.

type ManagedInstanceKeyListResult Uses

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 Uses

func (miklr ManagedInstanceKeyListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ManagedInstanceKeyListResultIterator Uses

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

ManagedInstanceKeyListResultIterator provides access to a complete listing of ManagedInstanceKey values.

func NewManagedInstanceKeyListResultIterator Uses

func NewManagedInstanceKeyListResultIterator(page ManagedInstanceKeyListResultPage) ManagedInstanceKeyListResultIterator

Creates a new instance of the ManagedInstanceKeyListResultIterator type.

func (*ManagedInstanceKeyListResultIterator) Next Uses

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

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 Uses

func (iter ManagedInstanceKeyListResultIterator) NotDone() bool

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

func (ManagedInstanceKeyListResultIterator) Response Uses

func (iter ManagedInstanceKeyListResultIterator) Response() ManagedInstanceKeyListResult

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

func (ManagedInstanceKeyListResultIterator) Value Uses

func (iter ManagedInstanceKeyListResultIterator) Value() ManagedInstanceKey

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

type ManagedInstanceKeyListResultPage Uses

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

ManagedInstanceKeyListResultPage contains a page of ManagedInstanceKey values.

func NewManagedInstanceKeyListResultPage Uses

func NewManagedInstanceKeyListResultPage(getNextPage func(context.Context, ManagedInstanceKeyListResult) (ManagedInstanceKeyListResult, error)) ManagedInstanceKeyListResultPage

Creates a new instance of the ManagedInstanceKeyListResultPage type.

func (*ManagedInstanceKeyListResultPage) Next Uses

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

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 Uses

func (page ManagedInstanceKeyListResultPage) NotDone() bool

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

func (ManagedInstanceKeyListResultPage) Response Uses

func (page ManagedInstanceKeyListResultPage) Response() ManagedInstanceKeyListResult

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

func (ManagedInstanceKeyListResultPage) Values Uses

func (page ManagedInstanceKeyListResultPage) Values() []ManagedInstanceKey

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

type ManagedInstanceKeyProperties Uses

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

ManagedInstanceKeyProperties properties for a key execution.

type ManagedInstanceKeysClient Uses

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 Uses

func NewManagedInstanceKeysClient(subscriptionID string) ManagedInstanceKeysClient

NewManagedInstanceKeysClient creates an instance of the ManagedInstanceKeysClient client.

func NewManagedInstanceKeysClientWithBaseURI Uses

func NewManagedInstanceKeysClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstanceKeysClient

NewManagedInstanceKeysClientWithBaseURI creates an instance of the ManagedInstanceKeysClient client.

func (ManagedInstanceKeysClient) CreateOrUpdate Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (ManagedInstanceKeysClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (ManagedInstanceKeysClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByInstancePreparer prepares the ListByInstance request.

func (ManagedInstanceKeysClient) ListByInstanceResponder Uses

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 Uses

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 Uses

type ManagedInstanceKeysCreateOrUpdateFuture struct {
    azure.Future
}

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

func (*ManagedInstanceKeysCreateOrUpdateFuture) Result Uses

func (future *ManagedInstanceKeysCreateOrUpdateFuture) Result(client ManagedInstanceKeysClient) (mik ManagedInstanceKey, err error)

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

type ManagedInstanceKeysDeleteFuture Uses

type ManagedInstanceKeysDeleteFuture struct {
    azure.Future
}

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

func (*ManagedInstanceKeysDeleteFuture) Result Uses

func (future *ManagedInstanceKeysDeleteFuture) Result(client ManagedInstanceKeysClient) (ar autorest.Response, err error)

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

type ManagedInstancePairInfo Uses

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 Uses

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 Uses

func NewManagedInstanceTdeCertificatesClient(subscriptionID string) ManagedInstanceTdeCertificatesClient

NewManagedInstanceTdeCertificatesClient creates an instance of the ManagedInstanceTdeCertificatesClient client.

func NewManagedInstanceTdeCertificatesClientWithBaseURI Uses

func NewManagedInstanceTdeCertificatesClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstanceTdeCertificatesClient

NewManagedInstanceTdeCertificatesClientWithBaseURI creates an instance of the ManagedInstanceTdeCertificatesClient client.

func (ManagedInstanceTdeCertificatesClient) Create Uses

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 Uses

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

CreatePreparer prepares the Create request.

func (ManagedInstanceTdeCertificatesClient) CreateResponder Uses

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 Uses

func (client ManagedInstanceTdeCertificatesClient) CreateSender(req *http.Request) (future ManagedInstanceTdeCertificatesCreateFuture, err error)

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

type ManagedInstanceTdeCertificatesCreateFuture Uses

type ManagedInstanceTdeCertificatesCreateFuture struct {
    azure.Future
}

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

func (*ManagedInstanceTdeCertificatesCreateFuture) Result Uses

func (future *ManagedInstanceTdeCertificatesCreateFuture) Result(client ManagedInstanceTdeCertificatesClient) (ar autorest.Response, err error)

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

type ManagedInstanceVcoresCapability Uses

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.

type ManagedInstanceVersionCapability Uses

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

type ManagementOperationState Uses

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 Uses

func PossibleManagementOperationStateValues() []ManagementOperationState

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

type MaxSizeCapability Uses

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

MaxSizeCapability the maximum size capability.

type MaxSizeRangeCapability Uses

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.

type MaxSizeUnit Uses

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 Uses

func PossibleMaxSizeUnitValues() []MaxSizeUnit

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

type PartnerRegionInfo Uses

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.

type PerformanceLevelCapability Uses

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

PerformanceLevelCapability the performance level capability.

type PerformanceLevelUnit Uses

type PerformanceLevelUnit string

PerformanceLevelUnit enumerates the values for performance level unit.

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

func PossiblePerformanceLevelUnitValues Uses

func PossiblePerformanceLevelUnitValues() []PerformanceLevelUnit

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

type ProxyResource Uses

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

ProxyResource ARM proxy resource.

type ReadOnlyEndpointFailoverPolicy Uses

type ReadOnlyEndpointFailoverPolicy string

ReadOnlyEndpointFailoverPolicy enumerates the values for read only endpoint failover policy.

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

func PossibleReadOnlyEndpointFailoverPolicyValues Uses

func PossibleReadOnlyEndpointFailoverPolicyValues() []ReadOnlyEndpointFailoverPolicy

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

type ReadWriteEndpointFailoverPolicy Uses

type ReadWriteEndpointFailoverPolicy string

ReadWriteEndpointFailoverPolicy enumerates the values for read write endpoint failover policy.

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

func PossibleReadWriteEndpointFailoverPolicyValues Uses

func PossibleReadWriteEndpointFailoverPolicyValues() []ReadWriteEndpointFailoverPolicy

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

type RecoverableManagedDatabase Uses

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 Uses

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

MarshalJSON is the custom marshaler for RecoverableManagedDatabase.

func (*RecoverableManagedDatabase) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for RecoverableManagedDatabase struct.

type RecoverableManagedDatabaseListResult Uses

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 Uses

func (rmdlr RecoverableManagedDatabaseListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type RecoverableManagedDatabaseListResultIterator Uses

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

RecoverableManagedDatabaseListResultIterator provides access to a complete listing of RecoverableManagedDatabase values.

func NewRecoverableManagedDatabaseListResultIterator Uses

func NewRecoverableManagedDatabaseListResultIterator(page RecoverableManagedDatabaseListResultPage) RecoverableManagedDatabaseListResultIterator

Creates a new instance of the RecoverableManagedDatabaseListResultIterator type.

func (*RecoverableManagedDatabaseListResultIterator) Next Uses

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

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 Uses

func (iter RecoverableManagedDatabaseListResultIterator) NotDone() bool

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

func (RecoverableManagedDatabaseListResultIterator) Response Uses

func (iter RecoverableManagedDatabaseListResultIterator) Response() RecoverableManagedDatabaseListResult

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

func (RecoverableManagedDatabaseListResultIterator) Value Uses

func (iter RecoverableManagedDatabaseListResultIterator) Value() RecoverableManagedDatabase

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

type RecoverableManagedDatabaseListResultPage Uses

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

RecoverableManagedDatabaseListResultPage contains a page of RecoverableManagedDatabase values.

func NewRecoverableManagedDatabaseListResultPage Uses

func NewRecoverableManagedDatabaseListResultPage(getNextPage func(context.Context, RecoverableManagedDatabaseListResult) (RecoverableManagedDatabaseListResult, error)) RecoverableManagedDatabaseListResultPage

Creates a new instance of the RecoverableManagedDatabaseListResultPage type.

func (*RecoverableManagedDatabaseListResultPage) Next Uses

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

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 Uses

func (page RecoverableManagedDatabaseListResultPage) NotDone() bool

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

func (RecoverableManagedDatabaseListResultPage) Response Uses

func (page RecoverableManagedDatabaseListResultPage) Response() RecoverableManagedDatabaseListResult

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

func (RecoverableManagedDatabaseListResultPage) Values Uses

func (page RecoverableManagedDatabaseListResultPage) Values() []RecoverableManagedDatabase

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

type RecoverableManagedDatabaseProperties Uses

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

RecoverableManagedDatabaseProperties the recoverable managed database's properties.

type RecoverableManagedDatabasesClient Uses

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 Uses

func NewRecoverableManagedDatabasesClient(subscriptionID string) RecoverableManagedDatabasesClient

NewRecoverableManagedDatabasesClient creates an instance of the RecoverableManagedDatabasesClient client.

func NewRecoverableManagedDatabasesClientWithBaseURI Uses

func NewRecoverableManagedDatabasesClientWithBaseURI(baseURI string, subscriptionID string) RecoverableManagedDatabasesClient

NewRecoverableManagedDatabasesClientWithBaseURI creates an instance of the RecoverableManagedDatabasesClient client.

func (RecoverableManagedDatabasesClient) Get Uses

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 Uses

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

GetPreparer prepares the Get request.

func (RecoverableManagedDatabasesClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByInstancePreparer prepares the ListByInstance request.

func (RecoverableManagedDatabasesClient) ListByInstanceResponder Uses

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 Uses

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 Uses

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

Resource ARM resource.

type ResourceMoveDefinition Uses

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 Uses

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 Uses

func PossibleSampleNameValues() []SampleName

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

type ServerKeyType Uses

type ServerKeyType string

ServerKeyType enumerates the values for server key type.

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

func PossibleServerKeyTypeValues Uses

func PossibleServerKeyTypeValues() []ServerKeyType

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

type ServerVersionCapability Uses

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

type ServiceObjectiveCapability Uses

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.

type Sku Uses

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

Sku the resource model definition representing SKU

type TdeCertificate Uses

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 Uses

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

MarshalJSON is the custom marshaler for TdeCertificate.

func (*TdeCertificate) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for TdeCertificate struct.

type TdeCertificateProperties Uses

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 Uses

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 Uses

func NewTdeCertificatesClient(subscriptionID string) TdeCertificatesClient

NewTdeCertificatesClient creates an instance of the TdeCertificatesClient client.

func NewTdeCertificatesClientWithBaseURI Uses

func NewTdeCertificatesClientWithBaseURI(baseURI string, subscriptionID string) TdeCertificatesClient

NewTdeCertificatesClientWithBaseURI creates an instance of the TdeCertificatesClient client.

func (TdeCertificatesClient) Create Uses

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 Uses

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

CreatePreparer prepares the Create request.

func (TdeCertificatesClient) CreateResponder Uses

func (client TdeCertificatesClient) CreateResponder(resp *http.Response) (result