sql

package
v38.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package sql implements the Azure ARM Sql service API version 2018-06-01-preview.

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

Index

Constants

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

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

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

func Version

func Version() string

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

Types

type AdministratorListResult

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

AdministratorListResult a list of active directory administrators.

func (AdministratorListResult) IsEmpty

func (alr AdministratorListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AdministratorListResultIterator

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

AdministratorListResultIterator provides access to a complete listing of ServerAzureADAdministrator values.

func NewAdministratorListResultIterator

func NewAdministratorListResultIterator(page AdministratorListResultPage) AdministratorListResultIterator

Creates a new instance of the AdministratorListResultIterator type.

func (*AdministratorListResultIterator) Next

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

func (*AdministratorListResultIterator) NextWithContext

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

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

func (AdministratorListResultIterator) NotDone

func (iter AdministratorListResultIterator) NotDone() bool

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

func (AdministratorListResultIterator) Response

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

func (AdministratorListResultIterator) Value

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

type AdministratorListResultPage

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

AdministratorListResultPage contains a page of ServerAzureADAdministrator values.

func NewAdministratorListResultPage

func NewAdministratorListResultPage(getNextPage func(context.Context, AdministratorListResult) (AdministratorListResult, error)) AdministratorListResultPage

Creates a new instance of the AdministratorListResultPage type.

func (*AdministratorListResultPage) Next

func (page *AdministratorListResultPage) Next() error

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

func (*AdministratorListResultPage) NextWithContext

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

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

func (AdministratorListResultPage) NotDone

func (page AdministratorListResultPage) NotDone() bool

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

func (AdministratorListResultPage) Response

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

func (AdministratorListResultPage) Values

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

type AdministratorProperties

type AdministratorProperties struct {
	// AdministratorType - Type of the sever administrator.
	AdministratorType *string `json:"administratorType,omitempty"`
	// Login - Login name of the server administrator.
	Login *string `json:"login,omitempty"`
	// Sid - SID (object ID) of the server administrator.
	Sid *uuid.UUID `json:"sid,omitempty"`
	// TenantID - Tenant ID of the administrator.
	TenantID *uuid.UUID `json:"tenantId,omitempty"`
}

AdministratorProperties properties of a active directory administrator.

type BaseClient

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

BaseClient is the base client for Sql.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type CatalogCollationType

type CatalogCollationType string

CatalogCollationType enumerates the values for catalog collation type.

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

func PossibleCatalogCollationTypeValues

func PossibleCatalogCollationTypeValues() []CatalogCollationType

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

type CompleteDatabaseRestoreDefinition

type CompleteDatabaseRestoreDefinition struct {
	// LastBackupName - The last backup name to apply
	LastBackupName *string `json:"lastBackupName,omitempty"`
}

CompleteDatabaseRestoreDefinition contains the information necessary to perform a complete database restore operation.

type DatabaseSecurityAlertListResult

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

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

func (DatabaseSecurityAlertListResult) IsEmpty

func (dsalr DatabaseSecurityAlertListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DatabaseSecurityAlertListResultIterator

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

DatabaseSecurityAlertListResultIterator provides access to a complete listing of DatabaseSecurityAlertPolicy values.

func NewDatabaseSecurityAlertListResultIterator

func NewDatabaseSecurityAlertListResultIterator(page DatabaseSecurityAlertListResultPage) DatabaseSecurityAlertListResultIterator

Creates a new instance of the DatabaseSecurityAlertListResultIterator type.

func (*DatabaseSecurityAlertListResultIterator) Next

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

func (*DatabaseSecurityAlertListResultIterator) NextWithContext

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

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

func (DatabaseSecurityAlertListResultIterator) NotDone

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

func (DatabaseSecurityAlertListResultIterator) Response

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

func (DatabaseSecurityAlertListResultIterator) Value

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

type DatabaseSecurityAlertListResultPage

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

DatabaseSecurityAlertListResultPage contains a page of DatabaseSecurityAlertPolicy values.

func NewDatabaseSecurityAlertListResultPage

Creates a new instance of the DatabaseSecurityAlertListResultPage type.

func (*DatabaseSecurityAlertListResultPage) Next

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

func (*DatabaseSecurityAlertListResultPage) NextWithContext

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

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

func (DatabaseSecurityAlertListResultPage) NotDone

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

func (DatabaseSecurityAlertListResultPage) Response

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

func (DatabaseSecurityAlertListResultPage) Values

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

type DatabaseSecurityAlertPoliciesClient

type DatabaseSecurityAlertPoliciesClient struct {
	BaseClient
}

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

func NewDatabaseSecurityAlertPoliciesClient

func NewDatabaseSecurityAlertPoliciesClient(subscriptionID string) DatabaseSecurityAlertPoliciesClient

NewDatabaseSecurityAlertPoliciesClient creates an instance of the DatabaseSecurityAlertPoliciesClient client.

func NewDatabaseSecurityAlertPoliciesClientWithBaseURI

func NewDatabaseSecurityAlertPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseSecurityAlertPoliciesClient

NewDatabaseSecurityAlertPoliciesClientWithBaseURI creates an instance of the DatabaseSecurityAlertPoliciesClient client.

func (DatabaseSecurityAlertPoliciesClient) CreateOrUpdate

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

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

func (DatabaseSecurityAlertPoliciesClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DatabaseSecurityAlertPoliciesClient) CreateOrUpdateResponder

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

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

func (DatabaseSecurityAlertPoliciesClient) CreateOrUpdateSender

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

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

func (DatabaseSecurityAlertPoliciesClient) Get

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

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

func (DatabaseSecurityAlertPoliciesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (DatabaseSecurityAlertPoliciesClient) GetResponder

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

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

func (DatabaseSecurityAlertPoliciesClient) GetSender

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

func (DatabaseSecurityAlertPoliciesClient) ListByDatabase

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

ListByDatabase gets a list of database's security alert policies. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database for which the security alert policy is defined.

func (DatabaseSecurityAlertPoliciesClient) ListByDatabaseComplete

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

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

func (DatabaseSecurityAlertPoliciesClient) ListByDatabasePreparer

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (DatabaseSecurityAlertPoliciesClient) ListByDatabaseResponder

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

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

func (DatabaseSecurityAlertPoliciesClient) ListByDatabaseSender

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

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

type DatabaseSecurityAlertPolicy

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

DatabaseSecurityAlertPolicy a database security alert policy.

func (DatabaseSecurityAlertPolicy) MarshalJSON

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

MarshalJSON is the custom marshaler for DatabaseSecurityAlertPolicy.

func (*DatabaseSecurityAlertPolicy) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for DatabaseSecurityAlertPolicy struct.

type DatabasesClient

type DatabasesClient struct {
	BaseClient
}

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

func NewDatabasesClient

func NewDatabasesClient(subscriptionID string) DatabasesClient

NewDatabasesClient creates an instance of the DatabasesClient client.

func NewDatabasesClientWithBaseURI

func NewDatabasesClientWithBaseURI(baseURI string, subscriptionID string) DatabasesClient

NewDatabasesClientWithBaseURI creates an instance of the DatabasesClient client.

func (DatabasesClient) Failover

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

Failover failovers a database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database to failover. replicaType - the type of replica to be failed over.

func (DatabasesClient) FailoverPreparer

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

FailoverPreparer prepares the Failover request.

func (DatabasesClient) FailoverResponder

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

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

func (DatabasesClient) FailoverSender

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

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

type DatabasesFailoverFuture

type DatabasesFailoverFuture struct {
	azure.Future
}

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

func (*DatabasesFailoverFuture) Result

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

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

type ElasticPoolsClient

type ElasticPoolsClient struct {
	BaseClient
}

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

func NewElasticPoolsClient

func NewElasticPoolsClient(subscriptionID string) ElasticPoolsClient

NewElasticPoolsClient creates an instance of the ElasticPoolsClient client.

func NewElasticPoolsClientWithBaseURI

func NewElasticPoolsClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolsClient

NewElasticPoolsClientWithBaseURI creates an instance of the ElasticPoolsClient client.

func (ElasticPoolsClient) Failover

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

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

func (ElasticPoolsClient) FailoverPreparer

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

FailoverPreparer prepares the Failover request.

func (ElasticPoolsClient) FailoverResponder

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

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

func (ElasticPoolsClient) FailoverSender

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

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

type ElasticPoolsFailoverFuture

type ElasticPoolsFailoverFuture struct {
	azure.Future
}

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

func (*ElasticPoolsFailoverFuture) Result

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

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

type IdentityType

type IdentityType string

IdentityType enumerates the values for identity type.

const (
	// SystemAssigned ...
	SystemAssigned IdentityType = "SystemAssigned"
)

func PossibleIdentityTypeValues

func PossibleIdentityTypeValues() []IdentityType

PossibleIdentityTypeValues returns an array of possible values for the IdentityType const type.

type InstancePool

type InstancePool struct {
	autorest.Response `json:"-"`
	// Sku - The name and tier of the SKU.
	Sku *Sku `json:"sku,omitempty"`
	// InstancePoolProperties - Resource properties.
	*InstancePoolProperties `json:"properties,omitempty"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

InstancePool an Azure SQL instance pool.

func (InstancePool) MarshalJSON

func (IP InstancePool) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for InstancePool.

func (*InstancePool) UnmarshalJSON

func (IP *InstancePool) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for InstancePool struct.

type InstancePoolLicenseType

type InstancePoolLicenseType string

InstancePoolLicenseType enumerates the values for instance pool license type.

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

func PossibleInstancePoolLicenseTypeValues

func PossibleInstancePoolLicenseTypeValues() []InstancePoolLicenseType

PossibleInstancePoolLicenseTypeValues returns an array of possible values for the InstancePoolLicenseType const type.

type InstancePoolListResult

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

InstancePoolListResult a list of Azure SQL instance pools.

func (InstancePoolListResult) IsEmpty

func (iplr InstancePoolListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type InstancePoolListResultIterator

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

InstancePoolListResultIterator provides access to a complete listing of InstancePool values.

func NewInstancePoolListResultIterator

func NewInstancePoolListResultIterator(page InstancePoolListResultPage) InstancePoolListResultIterator

Creates a new instance of the InstancePoolListResultIterator type.

func (*InstancePoolListResultIterator) Next

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

func (*InstancePoolListResultIterator) NextWithContext

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

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

func (InstancePoolListResultIterator) NotDone

func (iter InstancePoolListResultIterator) NotDone() bool

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

func (InstancePoolListResultIterator) Response

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

func (InstancePoolListResultIterator) Value

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

type InstancePoolListResultPage

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

InstancePoolListResultPage contains a page of InstancePool values.

func NewInstancePoolListResultPage

func NewInstancePoolListResultPage(getNextPage func(context.Context, InstancePoolListResult) (InstancePoolListResult, error)) InstancePoolListResultPage

Creates a new instance of the InstancePoolListResultPage type.

func (*InstancePoolListResultPage) Next

func (page *InstancePoolListResultPage) Next() error

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

func (*InstancePoolListResultPage) NextWithContext

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

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

func (InstancePoolListResultPage) NotDone

func (page InstancePoolListResultPage) NotDone() bool

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

func (InstancePoolListResultPage) Response

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

func (InstancePoolListResultPage) Values

func (page InstancePoolListResultPage) Values() []InstancePool

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

type InstancePoolProperties

type InstancePoolProperties struct {
	// SubnetID - Resource ID of the subnet to place this instance pool in.
	SubnetID *string `json:"subnetId,omitempty"`
	// VCores - Count of vCores belonging to this instance pool.
	VCores *int32 `json:"vCores,omitempty"`
	// LicenseType - The license type. Possible values are 'LicenseIncluded' (price for SQL license is included) and 'BasePrice' (without SQL license price). Possible values include: 'LicenseIncluded', 'BasePrice'
	LicenseType InstancePoolLicenseType `json:"licenseType,omitempty"`
}

InstancePoolProperties properties of an instance pool.

type InstancePoolUpdate

type InstancePoolUpdate struct {
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
}

InstancePoolUpdate an update to an Instance pool.

func (InstancePoolUpdate) MarshalJSON

func (ipu InstancePoolUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for InstancePoolUpdate.

type InstancePoolsClient

type InstancePoolsClient struct {
	BaseClient
}

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

func NewInstancePoolsClient

func NewInstancePoolsClient(subscriptionID string) InstancePoolsClient

NewInstancePoolsClient creates an instance of the InstancePoolsClient client.

func NewInstancePoolsClientWithBaseURI

func NewInstancePoolsClientWithBaseURI(baseURI string, subscriptionID string) InstancePoolsClient

NewInstancePoolsClientWithBaseURI creates an instance of the InstancePoolsClient client.

func (InstancePoolsClient) CreateOrUpdate

func (client InstancePoolsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, instancePoolName string, parameters InstancePool) (result InstancePoolsCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates an instance pool. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. instancePoolName - the name of the instance pool to be created or updated. parameters - the requested instance pool resource state.

func (InstancePoolsClient) CreateOrUpdatePreparer

func (client InstancePoolsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, instancePoolName string, parameters InstancePool) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (InstancePoolsClient) CreateOrUpdateResponder

func (client InstancePoolsClient) CreateOrUpdateResponder(resp *http.Response) (result InstancePool, err error)

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

func (InstancePoolsClient) CreateOrUpdateSender

func (client InstancePoolsClient) CreateOrUpdateSender(req *http.Request) (future InstancePoolsCreateOrUpdateFuture, err error)

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

func (InstancePoolsClient) Delete

func (client InstancePoolsClient) Delete(ctx context.Context, resourceGroupName string, instancePoolName string) (result InstancePoolsDeleteFuture, err error)

Delete deletes an instance pool Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. instancePoolName - the name of the instance pool to be deleted

func (InstancePoolsClient) DeletePreparer

func (client InstancePoolsClient) DeletePreparer(ctx context.Context, resourceGroupName string, instancePoolName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (InstancePoolsClient) DeleteResponder

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

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

func (InstancePoolsClient) DeleteSender

func (client InstancePoolsClient) DeleteSender(req *http.Request) (future InstancePoolsDeleteFuture, err error)

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

func (InstancePoolsClient) Get

func (client InstancePoolsClient) Get(ctx context.Context, resourceGroupName string, instancePoolName string) (result InstancePool, err error)

Get gets an instance pool. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. instancePoolName - the name of the instance pool to be retrieved.

func (InstancePoolsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (InstancePoolsClient) GetResponder

func (client InstancePoolsClient) GetResponder(resp *http.Response) (result InstancePool, err error)

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

func (InstancePoolsClient) GetSender

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

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

func (InstancePoolsClient) List

func (client InstancePoolsClient) List(ctx context.Context) (result InstancePoolListResultPage, err error)

List gets a list of all instance pools in the subscription.

func (InstancePoolsClient) ListByResourceGroup

func (client InstancePoolsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result InstancePoolListResultPage, err error)

ListByResourceGroup gets a list of instance pools in the resource group Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

func (InstancePoolsClient) ListByResourceGroupComplete

func (client InstancePoolsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result InstancePoolListResultIterator, err error)

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

func (InstancePoolsClient) ListByResourceGroupPreparer

func (client InstancePoolsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (InstancePoolsClient) ListByResourceGroupResponder

func (client InstancePoolsClient) ListByResourceGroupResponder(resp *http.Response) (result InstancePoolListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (InstancePoolsClient) ListByResourceGroupSender

func (client InstancePoolsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

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

func (InstancePoolsClient) ListComplete

func (client InstancePoolsClient) ListComplete(ctx context.Context) (result InstancePoolListResultIterator, err error)

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

func (InstancePoolsClient) ListPreparer

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

ListPreparer prepares the List request.

func (InstancePoolsClient) ListResponder

func (client InstancePoolsClient) ListResponder(resp *http.Response) (result InstancePoolListResult, err error)

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

func (InstancePoolsClient) ListSender

func (client InstancePoolsClient) ListSender(req *http.Request) (*http.Response, error)

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

func (InstancePoolsClient) Update

func (client InstancePoolsClient) Update(ctx context.Context, resourceGroupName string, instancePoolName string, parameters InstancePoolUpdate) (result InstancePoolsUpdateFuture, err error)

Update updates an instance pool. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. instancePoolName - the name of the instance pool to be updated. parameters - the requested instance pool resource state.

func (InstancePoolsClient) UpdatePreparer

func (client InstancePoolsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, instancePoolName string, parameters InstancePoolUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (InstancePoolsClient) UpdateResponder

func (client InstancePoolsClient) UpdateResponder(resp *http.Response) (result InstancePool, err error)

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

func (InstancePoolsClient) UpdateSender

func (client InstancePoolsClient) UpdateSender(req *http.Request) (future InstancePoolsUpdateFuture, err error)

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

type InstancePoolsCreateOrUpdateFuture

type InstancePoolsCreateOrUpdateFuture struct {
	azure.Future
}

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

func (*InstancePoolsCreateOrUpdateFuture) Result

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

type InstancePoolsDeleteFuture

type InstancePoolsDeleteFuture struct {
	azure.Future
}

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

func (*InstancePoolsDeleteFuture) Result

func (future *InstancePoolsDeleteFuture) Result(client InstancePoolsClient) (ar autorest.Response, err error)

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

type InstancePoolsUpdateFuture

type InstancePoolsUpdateFuture struct {
	azure.Future
}

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

func (*InstancePoolsUpdateFuture) Result

func (future *InstancePoolsUpdateFuture) Result(client InstancePoolsClient) (IP InstancePool, err error)

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

type ManagedDatabase

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

ManagedDatabase a managed database resource.

func (ManagedDatabase) MarshalJSON

func (md ManagedDatabase) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedDatabase.

func (*ManagedDatabase) UnmarshalJSON

func (md *ManagedDatabase) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ManagedDatabase struct.

type ManagedDatabaseCreateMode

type ManagedDatabaseCreateMode string

ManagedDatabaseCreateMode enumerates the values for managed database create mode.

const (
	// Default ...
	Default ManagedDatabaseCreateMode = "Default"
	// PointInTimeRestore ...
	PointInTimeRestore ManagedDatabaseCreateMode = "PointInTimeRestore"
	// Recovery ...
	Recovery ManagedDatabaseCreateMode = "Recovery"
	// RestoreExternalBackup ...
	RestoreExternalBackup ManagedDatabaseCreateMode = "RestoreExternalBackup"
)

func PossibleManagedDatabaseCreateModeValues

func PossibleManagedDatabaseCreateModeValues() []ManagedDatabaseCreateMode

PossibleManagedDatabaseCreateModeValues returns an array of possible values for the ManagedDatabaseCreateMode const type.

type ManagedDatabaseListResult

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

ManagedDatabaseListResult a list of managed databases.

func (ManagedDatabaseListResult) IsEmpty

func (mdlr ManagedDatabaseListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ManagedDatabaseListResultIterator

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

ManagedDatabaseListResultIterator provides access to a complete listing of ManagedDatabase values.

func NewManagedDatabaseListResultIterator

func NewManagedDatabaseListResultIterator(page ManagedDatabaseListResultPage) ManagedDatabaseListResultIterator

Creates a new instance of the ManagedDatabaseListResultIterator type.

func (*ManagedDatabaseListResultIterator) Next

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

func (*ManagedDatabaseListResultIterator) NextWithContext

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

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

func (ManagedDatabaseListResultIterator) NotDone

func (iter ManagedDatabaseListResultIterator) NotDone() bool

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

func (ManagedDatabaseListResultIterator) Response

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

func (ManagedDatabaseListResultIterator) Value

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

type ManagedDatabaseListResultPage

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

ManagedDatabaseListResultPage contains a page of ManagedDatabase values.

func NewManagedDatabaseListResultPage

func NewManagedDatabaseListResultPage(getNextPage func(context.Context, ManagedDatabaseListResult) (ManagedDatabaseListResult, error)) ManagedDatabaseListResultPage

Creates a new instance of the ManagedDatabaseListResultPage type.

func (*ManagedDatabaseListResultPage) Next

func (page *ManagedDatabaseListResultPage) Next() error

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

func (*ManagedDatabaseListResultPage) NextWithContext

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

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

func (ManagedDatabaseListResultPage) NotDone

func (page ManagedDatabaseListResultPage) NotDone() bool

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

func (ManagedDatabaseListResultPage) Response

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

func (ManagedDatabaseListResultPage) Values

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

type ManagedDatabaseProperties

type ManagedDatabaseProperties struct {
	// Collation - Collation of the managed database.
	Collation *string `json:"collation,omitempty"`
	// Status - READ-ONLY; Status of the database. Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible', 'Restoring', 'Updating'
	Status ManagedDatabaseStatus `json:"status,omitempty"`
	// CreationDate - READ-ONLY; Creation date of the database.
	CreationDate *date.Time `json:"creationDate,omitempty"`
	// EarliestRestorePoint - READ-ONLY; Earliest restore point in time for point in time restore.
	EarliestRestorePoint *date.Time `json:"earliestRestorePoint,omitempty"`
	// RestorePointInTime - Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database.
	RestorePointInTime *date.Time `json:"restorePointInTime,omitempty"`
	// DefaultSecondaryLocation - READ-ONLY; Geo paired region.
	DefaultSecondaryLocation *string `json:"defaultSecondaryLocation,omitempty"`
	// CatalogCollation - Collation of the metadata catalog. Possible values include: 'DATABASEDEFAULT', 'SQLLatin1GeneralCP1CIAS'
	CatalogCollation CatalogCollationType `json:"catalogCollation,omitempty"`
	// CreateMode - Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery'
	CreateMode ManagedDatabaseCreateMode `json:"createMode,omitempty"`
	// StorageContainerURI - Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the storage container where backups for this restore are stored.
	StorageContainerURI *string `json:"storageContainerUri,omitempty"`
	// SourceDatabaseID - The resource identifier of the source database associated with create operation of this database.
	SourceDatabaseID *string `json:"sourceDatabaseId,omitempty"`
	// RestorableDroppedDatabaseID - The restorable dropped database resource id to restore when creating this database.
	RestorableDroppedDatabaseID *string `json:"restorableDroppedDatabaseId,omitempty"`
	// StorageContainerSasToken - Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the storage container sas token.
	StorageContainerSasToken *string `json:"storageContainerSasToken,omitempty"`
	// FailoverGroupID - READ-ONLY; Instance Failover Group resource identifier that this managed database belongs to.
	FailoverGroupID *string `json:"failoverGroupId,omitempty"`
	// RecoverableDatabaseID - The resource identifier of the recoverable database associated with create operation of this database.
	RecoverableDatabaseID *string `json:"recoverableDatabaseId,omitempty"`
}

ManagedDatabaseProperties the managed database's properties.

type ManagedDatabaseRestoreDetailsClient

type ManagedDatabaseRestoreDetailsClient struct {
	BaseClient
}

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

func NewManagedDatabaseRestoreDetailsClient

func NewManagedDatabaseRestoreDetailsClient(subscriptionID string) ManagedDatabaseRestoreDetailsClient

NewManagedDatabaseRestoreDetailsClient creates an instance of the ManagedDatabaseRestoreDetailsClient client.

func NewManagedDatabaseRestoreDetailsClientWithBaseURI

func NewManagedDatabaseRestoreDetailsClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseRestoreDetailsClient

NewManagedDatabaseRestoreDetailsClientWithBaseURI creates an instance of the ManagedDatabaseRestoreDetailsClient client.

func (ManagedDatabaseRestoreDetailsClient) Get

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

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

func (ManagedDatabaseRestoreDetailsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ManagedDatabaseRestoreDetailsClient) GetResponder

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

func (ManagedDatabaseRestoreDetailsClient) GetSender

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

type ManagedDatabaseRestoreDetailsProperties

type ManagedDatabaseRestoreDetailsProperties struct {
	// Status - READ-ONLY; Restore status.
	Status *string `json:"status,omitempty"`
	// CurrentRestoringFileName - READ-ONLY; Current restoring file name.
	CurrentRestoringFileName *string `json:"currentRestoringFileName,omitempty"`
	// LastRestoredFileName - READ-ONLY; Last restored file name.
	LastRestoredFileName *string `json:"lastRestoredFileName,omitempty"`
	// LastRestoredFileTime - READ-ONLY; Last restored file time.
	LastRestoredFileTime *date.Time `json:"lastRestoredFileTime,omitempty"`
	// PercentCompleted - READ-ONLY; Percent completed.
	PercentCompleted *float64 `json:"percentCompleted,omitempty"`
	// UnrestorableFiles - READ-ONLY; List of unrestorable files.
	UnrestorableFiles *[]string `json:"unrestorableFiles,omitempty"`
	// NumberOfFilesDetected - READ-ONLY; Number of files detected.
	NumberOfFilesDetected *int64 `json:"numberOfFilesDetected,omitempty"`
	// LastUploadedFileName - READ-ONLY; Last uploaded file name.
	LastUploadedFileName *string `json:"lastUploadedFileName,omitempty"`
	// LastUploadedFileTime - READ-ONLY; Last uploaded file time.
	LastUploadedFileTime *date.Time `json:"lastUploadedFileTime,omitempty"`
	// BlockReason - READ-ONLY; The reason why restore is in Blocked state.
	BlockReason *string `json:"blockReason,omitempty"`
}

ManagedDatabaseRestoreDetailsProperties the managed database's restore details properties.

type ManagedDatabaseRestoreDetailsResult

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

ManagedDatabaseRestoreDetailsResult a managed database restore details.

func (ManagedDatabaseRestoreDetailsResult) MarshalJSON

func (mdrdr ManagedDatabaseRestoreDetailsResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedDatabaseRestoreDetailsResult.

func (*ManagedDatabaseRestoreDetailsResult) UnmarshalJSON

func (mdrdr *ManagedDatabaseRestoreDetailsResult) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ManagedDatabaseRestoreDetailsResult struct.

type ManagedDatabaseSensitivityLabelsClient

type ManagedDatabaseSensitivityLabelsClient struct {
	BaseClient
}

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

func NewManagedDatabaseSensitivityLabelsClient

func NewManagedDatabaseSensitivityLabelsClient(subscriptionID string) ManagedDatabaseSensitivityLabelsClient

NewManagedDatabaseSensitivityLabelsClient creates an instance of the ManagedDatabaseSensitivityLabelsClient client.

func NewManagedDatabaseSensitivityLabelsClientWithBaseURI

func NewManagedDatabaseSensitivityLabelsClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseSensitivityLabelsClient

NewManagedDatabaseSensitivityLabelsClientWithBaseURI creates an instance of the ManagedDatabaseSensitivityLabelsClient client.

func (ManagedDatabaseSensitivityLabelsClient) CreateOrUpdate

func (client ManagedDatabaseSensitivityLabelsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string, parameters SensitivityLabel) (result SensitivityLabel, err error)

CreateOrUpdate creates or updates the sensitivity label of a given column Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database. schemaName - the name of the schema. tableName - the name of the table. columnName - the name of the column. parameters - the column sensitivity label resource.

func (ManagedDatabaseSensitivityLabelsClient) CreateOrUpdatePreparer

func (client ManagedDatabaseSensitivityLabelsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string, parameters SensitivityLabel) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ManagedDatabaseSensitivityLabelsClient) CreateOrUpdateResponder

func (client ManagedDatabaseSensitivityLabelsClient) CreateOrUpdateResponder(resp *http.Response) (result SensitivityLabel, err error)

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

func (ManagedDatabaseSensitivityLabelsClient) CreateOrUpdateSender

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

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

func (ManagedDatabaseSensitivityLabelsClient) Delete

func (client ManagedDatabaseSensitivityLabelsClient) Delete(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string) (result autorest.Response, err error)

Delete deletes the sensitivity label of a given column Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database. schemaName - the name of the schema. tableName - the name of the table. columnName - the name of the column.

func (ManagedDatabaseSensitivityLabelsClient) DeletePreparer

func (client ManagedDatabaseSensitivityLabelsClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ManagedDatabaseSensitivityLabelsClient) DeleteResponder

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

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

func (ManagedDatabaseSensitivityLabelsClient) DeleteSender

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

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

func (ManagedDatabaseSensitivityLabelsClient) DisableRecommendation

func (client ManagedDatabaseSensitivityLabelsClient) DisableRecommendation(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string) (result autorest.Response, err error)

DisableRecommendation disables sensitivity recommendations on a given column Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database. schemaName - the name of the schema. tableName - the name of the table. columnName - the name of the column.

func (ManagedDatabaseSensitivityLabelsClient) DisableRecommendationPreparer

func (client ManagedDatabaseSensitivityLabelsClient) DisableRecommendationPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string) (*http.Request, error)

DisableRecommendationPreparer prepares the DisableRecommendation request.

func (ManagedDatabaseSensitivityLabelsClient) DisableRecommendationResponder

func (client ManagedDatabaseSensitivityLabelsClient) DisableRecommendationResponder(resp *http.Response) (result autorest.Response, err error)

DisableRecommendationResponder handles the response to the DisableRecommendation request. The method always closes the http.Response Body.

func (ManagedDatabaseSensitivityLabelsClient) DisableRecommendationSender

func (client ManagedDatabaseSensitivityLabelsClient) DisableRecommendationSender(req *http.Request) (*http.Response, error)

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

func (ManagedDatabaseSensitivityLabelsClient) EnableRecommendation

func (client ManagedDatabaseSensitivityLabelsClient) EnableRecommendation(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string) (result autorest.Response, err error)

EnableRecommendation enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns) Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database. schemaName - the name of the schema. tableName - the name of the table. columnName - the name of the column.

func (ManagedDatabaseSensitivityLabelsClient) EnableRecommendationPreparer

func (client ManagedDatabaseSensitivityLabelsClient) EnableRecommendationPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string) (*http.Request, error)

EnableRecommendationPreparer prepares the EnableRecommendation request.

func (ManagedDatabaseSensitivityLabelsClient) EnableRecommendationResponder

func (client ManagedDatabaseSensitivityLabelsClient) EnableRecommendationResponder(resp *http.Response) (result autorest.Response, err error)

EnableRecommendationResponder handles the response to the EnableRecommendation request. The method always closes the http.Response Body.

func (ManagedDatabaseSensitivityLabelsClient) EnableRecommendationSender

func (client ManagedDatabaseSensitivityLabelsClient) EnableRecommendationSender(req *http.Request) (*http.Response, error)

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

func (ManagedDatabaseSensitivityLabelsClient) Get

func (client ManagedDatabaseSensitivityLabelsClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string, sensitivityLabelSource SensitivityLabelSource) (result SensitivityLabel, err error)

Get gets the sensitivity label of a given column Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database. schemaName - the name of the schema. tableName - the name of the table. columnName - the name of the column. sensitivityLabelSource - the source of the sensitivity label.

func (ManagedDatabaseSensitivityLabelsClient) GetPreparer

func (client ManagedDatabaseSensitivityLabelsClient) GetPreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, schemaName string, tableName string, columnName string, sensitivityLabelSource SensitivityLabelSource) (*http.Request, error)

GetPreparer prepares the Get request.

func (ManagedDatabaseSensitivityLabelsClient) GetResponder

func (client ManagedDatabaseSensitivityLabelsClient) GetResponder(resp *http.Response) (result SensitivityLabel, err error)

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

func (ManagedDatabaseSensitivityLabelsClient) GetSender

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

func (ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabase

func (client ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabase(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, filter string) (result SensitivityLabelListResultPage, err error)

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

func (ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabaseComplete

func (client ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabaseComplete(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, filter string) (result SensitivityLabelListResultIterator, err error)

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

func (ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabasePreparer

func (client ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabasePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, filter string) (*http.Request, error)

ListCurrentByDatabasePreparer prepares the ListCurrentByDatabase request.

func (ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabaseResponder

func (client ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabaseResponder(resp *http.Response) (result SensitivityLabelListResult, err error)

ListCurrentByDatabaseResponder handles the response to the ListCurrentByDatabase request. The method always closes the http.Response Body.

func (ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabaseSender

func (client ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabaseSender(req *http.Request) (*http.Response, error)

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

func (ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabase

func (client ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabase(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, includeDisabledRecommendations *bool, skipToken string, filter string) (result SensitivityLabelListResultPage, err error)

ListRecommendedByDatabase gets the sensitivity labels of a given database Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database. includeDisabledRecommendations - specifies whether to include disabled recommendations or not. filter - an OData filter expression that filters elements in the collection.

func (ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabaseComplete

func (client ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabaseComplete(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, includeDisabledRecommendations *bool, skipToken string, filter string) (result SensitivityLabelListResultIterator, err error)

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

func (ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabasePreparer

func (client ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabasePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, includeDisabledRecommendations *bool, skipToken string, filter string) (*http.Request, error)

ListRecommendedByDatabasePreparer prepares the ListRecommendedByDatabase request.

func (ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabaseResponder

func (client ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabaseResponder(resp *http.Response) (result SensitivityLabelListResult, err error)

ListRecommendedByDatabaseResponder handles the response to the ListRecommendedByDatabase request. The method always closes the http.Response Body.

func (ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabaseSender

func (client ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabaseSender(req *http.Request) (*http.Response, error)

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

type ManagedDatabaseStatus

type ManagedDatabaseStatus string

ManagedDatabaseStatus enumerates the values for managed database status.

const (
	// Creating ...
	Creating ManagedDatabaseStatus = "Creating"
	// Inaccessible ...
	Inaccessible ManagedDatabaseStatus = "Inaccessible"
	// Offline ...
	Offline ManagedDatabaseStatus = "Offline"
	// Online ...
	Online ManagedDatabaseStatus = "Online"
	// Restoring ...
	Restoring ManagedDatabaseStatus = "Restoring"
	// Shutdown ...
	Shutdown ManagedDatabaseStatus = "Shutdown"
	// Updating ...
	Updating ManagedDatabaseStatus = "Updating"
)

func PossibleManagedDatabaseStatusValues

func PossibleManagedDatabaseStatusValues() []ManagedDatabaseStatus

PossibleManagedDatabaseStatusValues returns an array of possible values for the ManagedDatabaseStatus const type.

type ManagedDatabaseUpdate

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

ManagedDatabaseUpdate an managed database update.

func (ManagedDatabaseUpdate) MarshalJSON

func (mdu ManagedDatabaseUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedDatabaseUpdate.

func (*ManagedDatabaseUpdate) UnmarshalJSON

func (mdu *ManagedDatabaseUpdate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ManagedDatabaseUpdate struct.

type ManagedDatabasesClient

type ManagedDatabasesClient struct {
	BaseClient
}

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

func NewManagedDatabasesClient

func NewManagedDatabasesClient(subscriptionID string) ManagedDatabasesClient

NewManagedDatabasesClient creates an instance of the ManagedDatabasesClient client.

func NewManagedDatabasesClientWithBaseURI

func NewManagedDatabasesClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabasesClient

NewManagedDatabasesClientWithBaseURI creates an instance of the ManagedDatabasesClient client.

func (ManagedDatabasesClient) CompleteRestore

func (client ManagedDatabasesClient) CompleteRestore(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters CompleteDatabaseRestoreDefinition) (result ManagedDatabasesCompleteRestoreFuture, err error)

CompleteRestore completes the restore operation on a managed database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. managedInstanceName - the name of the managed instance. databaseName - the name of the database. parameters - the definition for completing the restore of this managed database.

func (ManagedDatabasesClient) CompleteRestorePreparer

func (client ManagedDatabasesClient) CompleteRestorePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters CompleteDatabaseRestoreDefinition) (*http.Request, error)

CompleteRestorePreparer prepares the CompleteRestore request.

func (ManagedDatabasesClient) CompleteRestoreResponder

func (client ManagedDatabasesClient) CompleteRestoreResponder(resp *http.Response) (result autorest.Response, err error)

CompleteRestoreResponder handles the response to the CompleteRestore request. The method always closes the http.Response Body.

func (ManagedDatabasesClient) CompleteRestoreSender

func (client ManagedDatabasesClient) CompleteRestoreSender(req *http.Request) (future ManagedDatabasesCompleteRestoreFuture, err error)

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

func (ManagedDatabasesClient) CreateOrUpdate

func (client ManagedDatabasesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters ManagedDatabase) (result ManagedDatabasesCreateOrUpdateFuture, err error)

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

func (ManagedDatabasesClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ManagedDatabasesClient) CreateOrUpdateResponder

func (client ManagedDatabasesClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedDatabase, err error)

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

func (ManagedDatabasesClient) CreateOrUpdateSender

func (client ManagedDatabasesClient) CreateOrUpdateSender(req *http.Request) (future ManagedDatabasesCreateOrUpdateFuture, err error)

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

func (ManagedDatabasesClient) Delete

func (client ManagedDatabasesClient) Delete(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string) (result ManagedDatabasesDeleteFuture, err error)

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

func (ManagedDatabasesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ManagedDatabasesClient) DeleteResponder

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

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

func (ManagedDatabasesClient) DeleteSender

func (client ManagedDatabasesClient) DeleteSender(req *http.Request) (future ManagedDatabasesDeleteFuture, err error)

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

func (ManagedDatabasesClient) Get

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

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

func (ManagedDatabasesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ManagedDatabasesClient) GetResponder

func (client ManagedDatabasesClient) GetResponder(resp *http.Response) (result ManagedDatabase, err error)

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

func (ManagedDatabasesClient) GetSender

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

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

func (ManagedDatabasesClient) ListByInstance

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

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

func (ManagedDatabasesClient) ListByInstanceComplete

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

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

func (ManagedDatabasesClient) ListByInstancePreparer

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

ListByInstancePreparer prepares the ListByInstance request.

func (ManagedDatabasesClient) ListByInstanceResponder

func (client ManagedDatabasesClient) ListByInstanceResponder(resp *http.Response) (result ManagedDatabaseListResult, err error)

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

func (ManagedDatabasesClient) ListByInstanceSender

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

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

func (ManagedDatabasesClient) Update

func (client ManagedDatabasesClient) Update(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters ManagedDatabaseUpdate) (result ManagedDatabasesUpdateFuture, err error)

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

func (ManagedDatabasesClient) UpdatePreparer

func (client ManagedDatabasesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, databaseName string, parameters ManagedDatabaseUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ManagedDatabasesClient) UpdateResponder

func (client ManagedDatabasesClient) UpdateResponder(resp *http.Response) (result ManagedDatabase, err error)

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

func (ManagedDatabasesClient) UpdateSender

func (client ManagedDatabasesClient) UpdateSender(req *http.Request) (future ManagedDatabasesUpdateFuture, err error)

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

type ManagedDatabasesCompleteRestoreFuture

type ManagedDatabasesCompleteRestoreFuture struct {
	azure.Future
}

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

func (*ManagedDatabasesCompleteRestoreFuture) Result

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

type ManagedDatabasesCreateOrUpdateFuture

type ManagedDatabasesCreateOrUpdateFuture struct {
	azure.Future
}

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

func (*ManagedDatabasesCreateOrUpdateFuture) Result

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

type ManagedDatabasesDeleteFuture

type ManagedDatabasesDeleteFuture struct {
	azure.Future
}

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

func (*ManagedDatabasesDeleteFuture) Result

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

type ManagedDatabasesUpdateFuture

type ManagedDatabasesUpdateFuture struct {
	azure.Future
}

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

func (*ManagedDatabasesUpdateFuture) Result

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

type ManagedInstance

type ManagedInstance struct {
	autorest.Response `json:"-"`
	// Identity - The Azure Active Directory identity of the managed instance.
	Identity *ResourceIdentity `json:"identity,omitempty"`
	// Sku - Managed instance SKU. Allowed values for sku.name: GP_Gen4, GP_Gen5, BC_Gen4, BC_Gen5
	Sku *Sku `json:"sku,omitempty"`
	// ManagedInstanceProperties - Resource properties.
	*ManagedInstanceProperties `json:"properties,omitempty"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

ManagedInstance an Azure SQL managed instance.

func (ManagedInstance) MarshalJSON

func (mi ManagedInstance) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedInstance.

func (*ManagedInstance) UnmarshalJSON

func (mi *ManagedInstance) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ManagedInstance struct.

type ManagedInstanceLicenseType

type ManagedInstanceLicenseType string

ManagedInstanceLicenseType enumerates the values for managed instance license type.

const (
	// ManagedInstanceLicenseTypeBasePrice ...
	ManagedInstanceLicenseTypeBasePrice ManagedInstanceLicenseType = "BasePrice"
	// ManagedInstanceLicenseTypeLicenseIncluded ...
	ManagedInstanceLicenseTypeLicenseIncluded ManagedInstanceLicenseType = "LicenseIncluded"
)

func PossibleManagedInstanceLicenseTypeValues

func PossibleManagedInstanceLicenseTypeValues() []ManagedInstanceLicenseType

PossibleManagedInstanceLicenseTypeValues returns an array of possible values for the ManagedInstanceLicenseType const type.

type ManagedInstanceListResult

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

ManagedInstanceListResult a list of managed instances.

func (ManagedInstanceListResult) IsEmpty

func (milr ManagedInstanceListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ManagedInstanceListResultIterator

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

ManagedInstanceListResultIterator provides access to a complete listing of ManagedInstance values.

func NewManagedInstanceListResultIterator

func NewManagedInstanceListResultIterator(page ManagedInstanceListResultPage) ManagedInstanceListResultIterator

Creates a new instance of the ManagedInstanceListResultIterator type.

func (*ManagedInstanceListResultIterator) Next

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

func (*ManagedInstanceListResultIterator) NextWithContext

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

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

func (ManagedInstanceListResultIterator) NotDone

func (iter ManagedInstanceListResultIterator) NotDone() bool

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

func (ManagedInstanceListResultIterator) Response

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

func (ManagedInstanceListResultIterator) Value

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

type ManagedInstanceListResultPage

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

ManagedInstanceListResultPage contains a page of ManagedInstance values.

func NewManagedInstanceListResultPage

func NewManagedInstanceListResultPage(getNextPage func(context.Context, ManagedInstanceListResult) (ManagedInstanceListResult, error)) ManagedInstanceListResultPage

Creates a new instance of the ManagedInstanceListResultPage type.

func (*ManagedInstanceListResultPage) Next

func (page *ManagedInstanceListResultPage) Next() error

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

func (*ManagedInstanceListResultPage) NextWithContext

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

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

func (ManagedInstanceListResultPage) NotDone

func (page ManagedInstanceListResultPage) NotDone() bool

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

func (ManagedInstanceListResultPage) Response

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

func (ManagedInstanceListResultPage) Values

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

type ManagedInstanceOperation

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

ManagedInstanceOperation a managed instance operation.

func (ManagedInstanceOperation) MarshalJSON

func (mio ManagedInstanceOperation) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedInstanceOperation.

func (*ManagedInstanceOperation) UnmarshalJSON

func (mio *ManagedInstanceOperation) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ManagedInstanceOperation struct.

type ManagedInstanceOperationListResult

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

ManagedInstanceOperationListResult the response to a list managed instance operations request

func (ManagedInstanceOperationListResult) IsEmpty

func (miolr ManagedInstanceOperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ManagedInstanceOperationListResultIterator

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

ManagedInstanceOperationListResultIterator provides access to a complete listing of ManagedInstanceOperation values.

func NewManagedInstanceOperationListResultIterator

func NewManagedInstanceOperationListResultIterator(page ManagedInstanceOperationListResultPage) ManagedInstanceOperationListResultIterator

Creates a new instance of the ManagedInstanceOperationListResultIterator type.

func (*ManagedInstanceOperationListResultIterator) Next

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

func (*ManagedInstanceOperationListResultIterator) NextWithContext

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

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

func (ManagedInstanceOperationListResultIterator) Response

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

func (ManagedInstanceOperationListResultIterator) Value

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

type ManagedInstanceOperationListResultPage

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

ManagedInstanceOperationListResultPage contains a page of ManagedInstanceOperation values.

func NewManagedInstanceOperationListResultPage

Creates a new instance of the ManagedInstanceOperationListResultPage type.

func (*ManagedInstanceOperationListResultPage) Next

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

func (*ManagedInstanceOperationListResultPage) NextWithContext

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

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

func (ManagedInstanceOperationListResultPage) Response

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

func (ManagedInstanceOperationListResultPage) Values

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

type ManagedInstanceOperationProperties

type ManagedInstanceOperationProperties struct {
	// ManagedInstanceName - READ-ONLY; The name of the managed instance the operation is being performed on.
	ManagedInstanceName *string `json:"managedInstanceName,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"`
	// 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"`
}

ManagedInstanceOperationProperties the properties of a managed instance operation.

type ManagedInstanceOperationsClient

type ManagedInstanceOperationsClient struct {
	BaseClient
}

ManagedInstanceOperationsClient 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 NewManagedInstanceOperationsClient

func NewManagedInstanceOperationsClient(subscriptionID string) ManagedInstanceOperationsClient

NewManagedInstanceOperationsClient creates an instance of the ManagedInstanceOperationsClient client.

func NewManagedInstanceOperationsClientWithBaseURI

func NewManagedInstanceOperationsClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstanceOperationsClient

NewManagedInstanceOperationsClientWithBaseURI creates an instance of the ManagedInstanceOperationsClient client.

func (ManagedInstanceOperationsClient) ListByManagedInstance

func (client ManagedInstanceOperationsClient) ListByManagedInstance(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceOperationListResultPage, err error)

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

func (ManagedInstanceOperationsClient) ListByManagedInstanceComplete

func (client ManagedInstanceOperationsClient) ListByManagedInstanceComplete(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstanceOperationListResultIterator, err error)

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

func (ManagedInstanceOperationsClient) ListByManagedInstancePreparer

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

ListByManagedInstancePreparer prepares the ListByManagedInstance request.

func (ManagedInstanceOperationsClient) ListByManagedInstanceResponder

func (client ManagedInstanceOperationsClient) ListByManagedInstanceResponder(resp *http.Response) (result ManagedInstanceOperationListResult, err error)

ListByManagedInstanceResponder handles the response to the ListByManagedInstance request. The method always closes the http.Response Body.

func (ManagedInstanceOperationsClient) ListByManagedInstanceSender

func (client ManagedInstanceOperationsClient) ListByManagedInstanceSender(req *http.Request) (*http.Response, error)

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

type ManagedInstanceProperties

type ManagedInstanceProperties struct {
	// ManagedInstanceCreateMode - Specifies the mode of database creation.
	//
	// Default: Regular instance creation.
	//
	// Restore: Creates an instance by restoring a set of backups to specific point in time. RestorePointInTime and SourceManagedInstanceId must be specified. Possible values include: 'ManagedServerCreateModeDefault', 'ManagedServerCreateModePointInTimeRestore'
	ManagedInstanceCreateMode ManagedServerCreateMode `json:"managedInstanceCreateMode,omitempty"`
	// FullyQualifiedDomainName - READ-ONLY; The fully qualified domain name of the managed instance.
	FullyQualifiedDomainName *string `json:"fullyQualifiedDomainName,omitempty"`
	// AdministratorLogin - Administrator username for the managed instance. Can only be specified when the managed instance is being created (and is required for creation).
	AdministratorLogin *string `json:"administratorLogin,omitempty"`
	// AdministratorLoginPassword - The administrator login password (required for managed instance creation).
	AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"`
	// SubnetID - Subnet resource ID for the managed instance.
	SubnetID *string `json:"subnetId,omitempty"`
	// State - READ-ONLY; The state of the managed instance.
	State *string `json:"state,omitempty"`
	// LicenseType - The license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses). Possible values include: 'ManagedInstanceLicenseTypeLicenseIncluded', 'ManagedInstanceLicenseTypeBasePrice'
	LicenseType ManagedInstanceLicenseType `json:"licenseType,omitempty"`
	// VCores - The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80.
	VCores *int32 `json:"vCores,omitempty"`
	// StorageSizeInGB - Storage size in GB. Minimum value: 32. Maximum value: 8192. Increments of 32 GB allowed only.
	StorageSizeInGB *int32 `json:"storageSizeInGB,omitempty"`
	// Collation - Collation of the managed instance.
	Collation *string `json:"collation,omitempty"`
	// DNSZone - READ-ONLY; The Dns Zone that the managed instance is in.
	DNSZone *string `json:"dnsZone,omitempty"`
	// DNSZonePartner - The resource id of another managed instance whose DNS zone this managed instance will share after creation.
	DNSZonePartner *string `json:"dnsZonePartner,omitempty"`
	// PublicDataEndpointEnabled - Whether or not the public data endpoint is enabled.
	PublicDataEndpointEnabled *bool `json:"publicDataEndpointEnabled,omitempty"`
	// SourceManagedInstanceID - The resource identifier of the source managed instance associated with create operation of this instance.
	SourceManagedInstanceID *string `json:"sourceManagedInstanceId,omitempty"`
	// RestorePointInTime - Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database.
	RestorePointInTime *date.Time `json:"restorePointInTime,omitempty"`
	// ProxyOverride - Connection type used for connecting to the instance. Possible values include: 'ManagedInstanceProxyOverrideProxy', 'ManagedInstanceProxyOverrideRedirect', 'ManagedInstanceProxyOverrideDefault'
	ProxyOverride ManagedInstanceProxyOverride `json:"proxyOverride,omitempty"`
	// TimezoneID - Id of the timezone. Allowed values are timezones supported by Windows.
	// Windows keeps details on supported timezones, including the id, in registry under
	// KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones.
	// You can get those registry values via SQL Server by querying SELECT name AS timezone_id FROM sys.time_zone_info.
	// List of Ids can also be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell.
	// An example of valid timezone id is "Pacific Standard Time" or "W. Europe Standard Time".
	TimezoneID *string `json:"timezoneId,omitempty"`
	// InstancePoolID - The Id of the instance pool this managed server belongs to.
	InstancePoolID *string `json:"instancePoolId,omitempty"`
}

ManagedInstanceProperties the properties of a managed instance.

type ManagedInstanceProxyOverride

type ManagedInstanceProxyOverride string

ManagedInstanceProxyOverride enumerates the values for managed instance proxy override.

const (
	// ManagedInstanceProxyOverrideDefault ...
	ManagedInstanceProxyOverrideDefault ManagedInstanceProxyOverride = "Default"
	// ManagedInstanceProxyOverrideProxy ...
	ManagedInstanceProxyOverrideProxy ManagedInstanceProxyOverride = "Proxy"
	// ManagedInstanceProxyOverrideRedirect ...
	ManagedInstanceProxyOverrideRedirect ManagedInstanceProxyOverride = "Redirect"
)

func PossibleManagedInstanceProxyOverrideValues

func PossibleManagedInstanceProxyOverrideValues() []ManagedInstanceProxyOverride

PossibleManagedInstanceProxyOverrideValues returns an array of possible values for the ManagedInstanceProxyOverride const type.

type ManagedInstanceUpdate

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

ManagedInstanceUpdate an update request for an Azure SQL Database managed instance.

func (ManagedInstanceUpdate) MarshalJSON

func (miu ManagedInstanceUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedInstanceUpdate.

func (*ManagedInstanceUpdate) UnmarshalJSON

func (miu *ManagedInstanceUpdate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ManagedInstanceUpdate struct.

type ManagedInstanceVulnerabilityAssessment

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

ManagedInstanceVulnerabilityAssessment a managed instance vulnerability assessment.

func (ManagedInstanceVulnerabilityAssessment) MarshalJSON

func (miva ManagedInstanceVulnerabilityAssessment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagedInstanceVulnerabilityAssessment.

func (*ManagedInstanceVulnerabilityAssessment) UnmarshalJSON

func (miva *ManagedInstanceVulnerabilityAssessment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ManagedInstanceVulnerabilityAssessment struct.

type ManagedInstanceVulnerabilityAssessmentListResult

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

ManagedInstanceVulnerabilityAssessmentListResult a list of the ManagedInstance's vulnerability assessments.

func (ManagedInstanceVulnerabilityAssessmentListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type ManagedInstanceVulnerabilityAssessmentListResultIterator

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

ManagedInstanceVulnerabilityAssessmentListResultIterator provides access to a complete listing of ManagedInstanceVulnerabilityAssessment values.

func NewManagedInstanceVulnerabilityAssessmentListResultIterator

func NewManagedInstanceVulnerabilityAssessmentListResultIterator(page ManagedInstanceVulnerabilityAssessmentListResultPage) ManagedInstanceVulnerabilityAssessmentListResultIterator

Creates a new instance of the ManagedInstanceVulnerabilityAssessmentListResultIterator type.

func (*ManagedInstanceVulnerabilityAssessmentListResultIterator) Next

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

func (*ManagedInstanceVulnerabilityAssessmentListResultIterator) NextWithContext

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

func (ManagedInstanceVulnerabilityAssessmentListResultIterator) NotDone

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

func (ManagedInstanceVulnerabilityAssessmentListResultIterator) Response

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

func (ManagedInstanceVulnerabilityAssessmentListResultIterator) Value

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

type ManagedInstanceVulnerabilityAssessmentListResultPage

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

ManagedInstanceVulnerabilityAssessmentListResultPage contains a page of ManagedInstanceVulnerabilityAssessment values.

func NewManagedInstanceVulnerabilityAssessmentListResultPage

Creates a new instance of the ManagedInstanceVulnerabilityAssessmentListResultPage type.

func (*ManagedInstanceVulnerabilityAssessmentListResultPage) Next

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

func (*ManagedInstanceVulnerabilityAssessmentListResultPage) NextWithContext

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

func (ManagedInstanceVulnerabilityAssessmentListResultPage) NotDone

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

func (ManagedInstanceVulnerabilityAssessmentListResultPage) Response

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

func (ManagedInstanceVulnerabilityAssessmentListResultPage) Values

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

type ManagedInstanceVulnerabilityAssessmentProperties

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

ManagedInstanceVulnerabilityAssessmentProperties properties of a managed instance vulnerability assessment.

type ManagedInstanceVulnerabilityAssessmentsClient

type ManagedInstanceVulnerabilityAssessmentsClient struct {
	BaseClient
}

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

func NewManagedInstanceVulnerabilityAssessmentsClient

func NewManagedInstanceVulnerabilityAssessmentsClient(subscriptionID string) ManagedInstanceVulnerabilityAssessmentsClient

NewManagedInstanceVulnerabilityAssessmentsClient creates an instance of the ManagedInstanceVulnerabilityAssessmentsClient client.

func NewManagedInstanceVulnerabilityAssessmentsClientWithBaseURI

func NewManagedInstanceVulnerabilityAssessmentsClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstanceVulnerabilityAssessmentsClient

NewManagedInstanceVulnerabilityAssessmentsClientWithBaseURI creates an instance of the ManagedInstanceVulnerabilityAssessmentsClient client.

func (ManagedInstanceVulnerabilityAssessmentsClient) CreateOrUpdate

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

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

func (ManagedInstanceVulnerabilityAssessmentsClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ManagedInstanceVulnerabilityAssessmentsClient) CreateOrUpdateResponder

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

func (ManagedInstanceVulnerabilityAssessmentsClient) CreateOrUpdateSender

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

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

func (ManagedInstanceVulnerabilityAssessmentsClient) Delete

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

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

func (ManagedInstanceVulnerabilityAssessmentsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ManagedInstanceVulnerabilityAssessmentsClient) DeleteResponder

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

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

func (ManagedInstanceVulnerabilityAssessmentsClient) DeleteSender

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

func (ManagedInstanceVulnerabilityAssessmentsClient) Get

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

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

func (ManagedInstanceVulnerabilityAssessmentsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ManagedInstanceVulnerabilityAssessmentsClient) GetResponder

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

func (ManagedInstanceVulnerabilityAssessmentsClient) GetSender

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

func (ManagedInstanceVulnerabilityAssessmentsClient) ListByInstance

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

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

func (ManagedInstanceVulnerabilityAssessmentsClient) ListByInstanceComplete

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

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

func (ManagedInstanceVulnerabilityAssessmentsClient) ListByInstancePreparer

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

ListByInstancePreparer prepares the ListByInstance request.

func (ManagedInstanceVulnerabilityAssessmentsClient) ListByInstanceResponder

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

func (ManagedInstanceVulnerabilityAssessmentsClient) ListByInstanceSender

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

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

type ManagedInstancesClient

type ManagedInstancesClient struct {
	BaseClient
}

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

func NewManagedInstancesClient

func NewManagedInstancesClient(subscriptionID string) ManagedInstancesClient

NewManagedInstancesClient creates an instance of the ManagedInstancesClient client.

func NewManagedInstancesClientWithBaseURI

func NewManagedInstancesClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstancesClient

NewManagedInstancesClientWithBaseURI creates an instance of the ManagedInstancesClient client.

func (ManagedInstancesClient) CreateOrUpdate

func (client ManagedInstancesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters ManagedInstance) (result ManagedInstancesCreateOrUpdateFuture, err error)

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

func (ManagedInstancesClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ManagedInstancesClient) CreateOrUpdateResponder

func (client ManagedInstancesClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedInstance, err error)

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

func (ManagedInstancesClient) CreateOrUpdateSender

func (client ManagedInstancesClient) CreateOrUpdateSender(req *http.Request) (future ManagedInstancesCreateOrUpdateFuture, err error)

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

func (ManagedInstancesClient) Delete

func (client ManagedInstancesClient) Delete(ctx context.Context, resourceGroupName string, managedInstanceName string) (result ManagedInstancesDeleteFuture, err error)

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

func (ManagedInstancesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ManagedInstancesClient) DeleteResponder

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

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

func (ManagedInstancesClient) DeleteSender

func (client ManagedInstancesClient) DeleteSender(req *http.Request) (future ManagedInstancesDeleteFuture, err error)

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

func (ManagedInstancesClient) Get

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

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

func (ManagedInstancesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ManagedInstancesClient) GetResponder

func (client ManagedInstancesClient) GetResponder(resp *http.Response) (result ManagedInstance, err error)

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

func (ManagedInstancesClient) GetSender

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

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

func (ManagedInstancesClient) List

List gets a list of all managed instances in the subscription.

func (ManagedInstancesClient) ListByInstancePool

func (client ManagedInstancesClient) ListByInstancePool(ctx context.Context, resourceGroupName string, instancePoolName string) (result ManagedInstanceListResultPage, err error)

ListByInstancePool gets a list of all managed instances in an instance pool. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. instancePoolName - the instance pool name.

func (ManagedInstancesClient) ListByInstancePoolComplete

func (client ManagedInstancesClient) ListByInstancePoolComplete(ctx context.Context, resourceGroupName string, instancePoolName string) (result ManagedInstanceListResultIterator, err error)

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

func (ManagedInstancesClient) ListByInstancePoolPreparer

func (client ManagedInstancesClient) ListByInstancePoolPreparer(ctx context.Context, resourceGroupName string, instancePoolName string) (*http.Request, error)

ListByInstancePoolPreparer prepares the ListByInstancePool request.

func (ManagedInstancesClient) ListByInstancePoolResponder

func (client ManagedInstancesClient) ListByInstancePoolResponder(resp *http.Response) (result ManagedInstanceListResult, err error)

ListByInstancePoolResponder handles the response to the ListByInstancePool request. The method always closes the http.Response Body.

func (ManagedInstancesClient) ListByInstancePoolSender

func (client ManagedInstancesClient) ListByInstancePoolSender(req *http.Request) (*http.Response, error)

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

func (ManagedInstancesClient) ListByResourceGroup

func (client ManagedInstancesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ManagedInstanceListResultPage, err error)

ListByResourceGroup gets a list of managed instances in a resource group. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

func (ManagedInstancesClient) ListByResourceGroupComplete

func (client ManagedInstancesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ManagedInstanceListResultIterator, err error)

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

func (ManagedInstancesClient) ListByResourceGroupPreparer

func (client ManagedInstancesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ManagedInstancesClient) ListByResourceGroupResponder

func (client ManagedInstancesClient) ListByResourceGroupResponder(resp *http.Response) (result ManagedInstanceListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (ManagedInstancesClient) ListByResourceGroupSender

func (client ManagedInstancesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

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

func (ManagedInstancesClient) ListComplete

func (client ManagedInstancesClient) ListComplete(ctx context.Context) (result ManagedInstanceListResultIterator, err error)

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

func (ManagedInstancesClient) ListPreparer

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

ListPreparer prepares the List request.

func (ManagedInstancesClient) ListResponder

func (client ManagedInstancesClient) ListResponder(resp *http.Response) (result ManagedInstanceListResult, err error)

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

func (ManagedInstancesClient) ListSender

func (client ManagedInstancesClient) ListSender(req *http.Request) (*http.Response, error)

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

func (ManagedInstancesClient) Update

func (client ManagedInstancesClient) Update(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters ManagedInstanceUpdate) (result ManagedInstancesUpdateFuture, err error)

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

func (ManagedInstancesClient) UpdatePreparer

func (client ManagedInstancesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, managedInstanceName string, parameters ManagedInstanceUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ManagedInstancesClient) UpdateResponder

func (client ManagedInstancesClient) UpdateResponder(resp *http.Response) (result ManagedInstance, err error)

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

func (ManagedInstancesClient) UpdateSender

func (client ManagedInstancesClient) UpdateSender(req *http.Request) (future ManagedInstancesUpdateFuture, err error)

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

type ManagedInstancesCreateOrUpdateFuture

type ManagedInstancesCreateOrUpdateFuture struct {
	azure.Future
}

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

func (*ManagedInstancesCreateOrUpdateFuture) Result

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

type ManagedInstancesDeleteFuture

type ManagedInstancesDeleteFuture struct {
	azure.Future
}

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

func (*ManagedInstancesDeleteFuture) Result

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

type ManagedInstancesUpdateFuture

type ManagedInstancesUpdateFuture struct {
	azure.Future
}

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

func (*ManagedInstancesUpdateFuture) Result

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

type ManagedServerCreateMode

type ManagedServerCreateMode string

ManagedServerCreateMode enumerates the values for managed server create mode.

const (
	// ManagedServerCreateModeDefault ...
	ManagedServerCreateModeDefault ManagedServerCreateMode = "Default"
	// ManagedServerCreateModePointInTimeRestore ...
	ManagedServerCreateModePointInTimeRestore ManagedServerCreateMode = "PointInTimeRestore"
)

func PossibleManagedServerCreateModeValues

func PossibleManagedServerCreateModeValues() []ManagedServerCreateMode

PossibleManagedServerCreateModeValues returns an array of possible values for the ManagedServerCreateMode const type.

type ManagementOperationState

type ManagementOperationState string

ManagementOperationState enumerates the values for management operation state.

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

func PossibleManagementOperationStateValues

func PossibleManagementOperationStateValues() []ManagementOperationState

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

type Name

type Name struct {
	// Value - Usage name value
	Value *string `json:"value,omitempty"`
	// LocalizedValue - Usage name localized value.
	LocalizedValue *string `json:"localizedValue,omitempty"`
}

Name ARM Usage Name

type PrivateEndpointConnection

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

PrivateEndpointConnection a private endpoint connection

func (PrivateEndpointConnection) MarshalJSON

func (pec PrivateEndpointConnection) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PrivateEndpointConnection.

func (*PrivateEndpointConnection) UnmarshalJSON

func (pec *PrivateEndpointConnection) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PrivateEndpointConnection struct.

type PrivateEndpointConnectionListResult

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

PrivateEndpointConnectionListResult a list of private endpoint connections.

func (PrivateEndpointConnectionListResult) IsEmpty

func (peclr PrivateEndpointConnectionListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type PrivateEndpointConnectionListResultIterator

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

PrivateEndpointConnectionListResultIterator provides access to a complete listing of PrivateEndpointConnection values.

func NewPrivateEndpointConnectionListResultIterator

func NewPrivateEndpointConnectionListResultIterator(page PrivateEndpointConnectionListResultPage) PrivateEndpointConnectionListResultIterator

Creates a new instance of the PrivateEndpointConnectionListResultIterator type.

func (*PrivateEndpointConnectionListResultIterator) Next

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

func (*PrivateEndpointConnectionListResultIterator) NextWithContext

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

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

func (PrivateEndpointConnectionListResultIterator) NotDone

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

func (PrivateEndpointConnectionListResultIterator) Response

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

func (PrivateEndpointConnectionListResultIterator) Value

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

type PrivateEndpointConnectionListResultPage

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

PrivateEndpointConnectionListResultPage contains a page of PrivateEndpointConnection values.

func NewPrivateEndpointConnectionListResultPage

Creates a new instance of the PrivateEndpointConnectionListResultPage type.

func (*PrivateEndpointConnectionListResultPage) Next

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

func (*PrivateEndpointConnectionListResultPage) NextWithContext

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

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

func (PrivateEndpointConnectionListResultPage) NotDone

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

func (PrivateEndpointConnectionListResultPage) Response

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

func (PrivateEndpointConnectionListResultPage) Values

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

type PrivateEndpointConnectionProperties

type PrivateEndpointConnectionProperties struct {
	// PrivateEndpoint - Private endpoint which the connection belongs to.
	PrivateEndpoint *PrivateEndpointProperty `json:"privateEndpoint,omitempty"`
	// PrivateLinkServiceConnectionState - Connection state of the private endpoint connection.
	PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionStateProperty `json:"privateLinkServiceConnectionState,omitempty"`
	// ProvisioningState - READ-ONLY; State of the private endpoint connection.
	ProvisioningState *string `json:"provisioningState,omitempty"`
}

PrivateEndpointConnectionProperties properties of a private endpoint connection.

type PrivateEndpointConnectionsClient

type PrivateEndpointConnectionsClient struct {
	BaseClient
}

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

func NewPrivateEndpointConnectionsClient

func NewPrivateEndpointConnectionsClient(subscriptionID string) PrivateEndpointConnectionsClient

NewPrivateEndpointConnectionsClient creates an instance of the PrivateEndpointConnectionsClient client.

func NewPrivateEndpointConnectionsClientWithBaseURI

func NewPrivateEndpointConnectionsClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointConnectionsClient

NewPrivateEndpointConnectionsClientWithBaseURI creates an instance of the PrivateEndpointConnectionsClient client.

func (PrivateEndpointConnectionsClient) CreateOrUpdate

func (client PrivateEndpointConnectionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, privateEndpointConnectionName string, parameters PrivateEndpointConnection) (result PrivateEndpointConnectionsCreateOrUpdateFuture, err error)

CreateOrUpdate approve or reject a private endpoint connection with a given name. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.

func (PrivateEndpointConnectionsClient) CreateOrUpdatePreparer

func (client PrivateEndpointConnectionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, privateEndpointConnectionName string, parameters PrivateEndpointConnection) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (PrivateEndpointConnectionsClient) CreateOrUpdateResponder

func (client PrivateEndpointConnectionsClient) CreateOrUpdateResponder(resp *http.Response) (result PrivateEndpointConnection, err error)

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

func (PrivateEndpointConnectionsClient) CreateOrUpdateSender

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

func (PrivateEndpointConnectionsClient) Delete

func (client PrivateEndpointConnectionsClient) Delete(ctx context.Context, resourceGroupName string, serverName string, privateEndpointConnectionName string) (result PrivateEndpointConnectionsDeleteFuture, err error)

Delete deletes a private endpoint connection with a given name. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.

func (PrivateEndpointConnectionsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (PrivateEndpointConnectionsClient) DeleteResponder

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

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

func (PrivateEndpointConnectionsClient) DeleteSender

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

func (PrivateEndpointConnectionsClient) Get

func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, serverName string, privateEndpointConnectionName string) (result PrivateEndpointConnection, err error)

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

func (PrivateEndpointConnectionsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (PrivateEndpointConnectionsClient) GetResponder

func (client PrivateEndpointConnectionsClient) GetResponder(resp *http.Response) (result PrivateEndpointConnection, err error)

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

func (PrivateEndpointConnectionsClient) GetSender

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

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

func (PrivateEndpointConnectionsClient) ListByServer

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

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

func (PrivateEndpointConnectionsClient) ListByServerComplete

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

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

func (PrivateEndpointConnectionsClient) ListByServerPreparer

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

ListByServerPreparer prepares the ListByServer request.

func (PrivateEndpointConnectionsClient) ListByServerResponder

func (client PrivateEndpointConnectionsClient) ListByServerResponder(resp *http.Response) (result PrivateEndpointConnectionListResult, err error)

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

func (PrivateEndpointConnectionsClient) ListByServerSender

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

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

type PrivateEndpointConnectionsCreateOrUpdateFuture

type PrivateEndpointConnectionsCreateOrUpdateFuture struct {
	azure.Future
}

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

func (*PrivateEndpointConnectionsCreateOrUpdateFuture) Result

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

type PrivateEndpointConnectionsDeleteFuture

type PrivateEndpointConnectionsDeleteFuture struct {
	azure.Future
}

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

func (*PrivateEndpointConnectionsDeleteFuture) Result

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

type PrivateEndpointProperty

type PrivateEndpointProperty struct {
	// ID - Resource id of the private endpoint.
	ID *string `json:"id,omitempty"`
}

PrivateEndpointProperty ...

type PrivateLinkServiceConnectionStateProperty

type PrivateLinkServiceConnectionStateProperty struct {
	// Status - The private link service connection status.
	Status *string `json:"status,omitempty"`
	// Description - The private link service connection description.
	Description *string `json:"description,omitempty"`
	// ActionsRequired - READ-ONLY; The actions required for private link service connection.
	ActionsRequired *string `json:"actionsRequired,omitempty"`
}

PrivateLinkServiceConnectionStateProperty ...

type ProxyResource

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

ProxyResource ARM proxy resource.

type ReplicaType

type ReplicaType string

ReplicaType enumerates the values for replica type.

const (
	// Primary ...
	Primary ReplicaType = "Primary"
	// ReadableSecondary ...
	ReadableSecondary ReplicaType = "ReadableSecondary"
)

func PossibleReplicaTypeValues

func PossibleReplicaTypeValues() []ReplicaType

PossibleReplicaTypeValues returns an array of possible values for the ReplicaType const type.

type Resource

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

Resource ARM resource.

type ResourceIdentity

type ResourceIdentity struct {
	// PrincipalID - READ-ONLY; The Azure Active Directory principal id.
	PrincipalID *uuid.UUID `json:"principalId,omitempty"`
	// Type - The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. Possible values include: 'SystemAssigned'
	Type IdentityType `json:"type,omitempty"`
	// TenantID - READ-ONLY; The Azure Active Directory tenant id.
	TenantID *uuid.UUID `json:"tenantId,omitempty"`
}

ResourceIdentity azure Active Directory identity configuration for a resource.

type SecurityAlertPolicyProperties

type SecurityAlertPolicyProperties struct {
	// State - Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. Possible values include: 'SecurityAlertPolicyStateNew', 'SecurityAlertPolicyStateEnabled', 'SecurityAlertPolicyStateDisabled'
	State SecurityAlertPolicyState `json:"state,omitempty"`
	// DisabledAlerts - Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action
	DisabledAlerts *[]string `json:"disabledAlerts,omitempty"`
	// EmailAddresses - Specifies an array of e-mail addresses to which the alert is sent.
	EmailAddresses *[]string `json:"emailAddresses,omitempty"`
	// EmailAccountAdmins - Specifies that the alert is sent to the account administrators.
	EmailAccountAdmins *bool `json:"emailAccountAdmins,omitempty"`
	// StorageEndpoint - Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs.
	StorageEndpoint *string `json:"storageEndpoint,omitempty"`
	// StorageAccountAccessKey - Specifies the identifier key of the Threat Detection audit storage account.
	StorageAccountAccessKey *string `json:"storageAccountAccessKey,omitempty"`
	// RetentionDays - Specifies the number of days to keep in the Threat Detection audit logs.
	RetentionDays *int32 `json:"retentionDays,omitempty"`
	// CreationTime - READ-ONLY; Specifies the UTC creation time of the policy.
	CreationTime *date.Time `json:"creationTime,omitempty"`
}

SecurityAlertPolicyProperties properties of a security alert policy.

type SecurityAlertPolicyState

type SecurityAlertPolicyState string

SecurityAlertPolicyState enumerates the values for security alert policy state.

const (
	// SecurityAlertPolicyStateDisabled ...
	SecurityAlertPolicyStateDisabled SecurityAlertPolicyState = "Disabled"
	// SecurityAlertPolicyStateEnabled ...
	SecurityAlertPolicyStateEnabled SecurityAlertPolicyState = "Enabled"
	// SecurityAlertPolicyStateNew ...
	SecurityAlertPolicyStateNew SecurityAlertPolicyState = "New"
)

func PossibleSecurityAlertPolicyStateValues

func PossibleSecurityAlertPolicyStateValues() []SecurityAlertPolicyState

PossibleSecurityAlertPolicyStateValues returns an array of possible values for the SecurityAlertPolicyState const type.

type SensitivityLabel

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

SensitivityLabel a sensitivity label.

func (SensitivityLabel) MarshalJSON

func (sl SensitivityLabel) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SensitivityLabel.

func (*SensitivityLabel) UnmarshalJSON

func (sl *SensitivityLabel) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SensitivityLabel struct.

type SensitivityLabelListResult

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

SensitivityLabelListResult a list of sensitivity labels.

func (SensitivityLabelListResult) IsEmpty

func (sllr SensitivityLabelListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type SensitivityLabelListResultIterator

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

SensitivityLabelListResultIterator provides access to a complete listing of SensitivityLabel values.

func NewSensitivityLabelListResultIterator

func NewSensitivityLabelListResultIterator(page SensitivityLabelListResultPage) SensitivityLabelListResultIterator

Creates a new instance of the SensitivityLabelListResultIterator type.

func (*SensitivityLabelListResultIterator) Next

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

func (*SensitivityLabelListResultIterator) NextWithContext

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

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

func (SensitivityLabelListResultIterator) NotDone

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

func (SensitivityLabelListResultIterator) Response

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

func (SensitivityLabelListResultIterator) Value

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

type SensitivityLabelListResultPage

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

SensitivityLabelListResultPage contains a page of SensitivityLabel values.

func NewSensitivityLabelListResultPage

func NewSensitivityLabelListResultPage(getNextPage func(context.Context, SensitivityLabelListResult) (SensitivityLabelListResult, error)) SensitivityLabelListResultPage

Creates a new instance of the SensitivityLabelListResultPage type.

func (*SensitivityLabelListResultPage) Next

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

func (*SensitivityLabelListResultPage) NextWithContext

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

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

func (SensitivityLabelListResultPage) NotDone

func (page SensitivityLabelListResultPage) NotDone() bool

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

func (SensitivityLabelListResultPage) Response

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

func (SensitivityLabelListResultPage) Values

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

type SensitivityLabelProperties

type SensitivityLabelProperties struct {
	// LabelName - The label name.
	LabelName *string `json:"labelName,omitempty"`
	// LabelID - The label ID.
	LabelID *string `json:"labelId,omitempty"`
	// InformationType - The information type.
	InformationType *string `json:"informationType,omitempty"`
	// InformationTypeID - The information type ID.
	InformationTypeID *string `json:"informationTypeId,omitempty"`
	// IsDisabled - READ-ONLY; Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not.
	IsDisabled *bool `json:"isDisabled,omitempty"`
}

SensitivityLabelProperties properties of a sensitivity label.

type SensitivityLabelSource

type SensitivityLabelSource string

SensitivityLabelSource enumerates the values for sensitivity label source.

const (
	// Current ...
	Current SensitivityLabelSource = "current"
	// Recommended ...
	Recommended SensitivityLabelSource = "recommended"
)

func PossibleSensitivityLabelSourceValues

func PossibleSensitivityLabelSourceValues() []SensitivityLabelSource

PossibleSensitivityLabelSourceValues returns an array of possible values for the SensitivityLabelSource const type.

type ServerAzureADAdministrator

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

ServerAzureADAdministrator azure Active Directory administrator.

func (ServerAzureADAdministrator) MarshalJSON

func (saaa ServerAzureADAdministrator) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerAzureADAdministrator.

func (*ServerAzureADAdministrator) UnmarshalJSON

func (saaa *ServerAzureADAdministrator) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServerAzureADAdministrator struct.

type ServerAzureADAdministratorsClient

type ServerAzureADAdministratorsClient struct {
	BaseClient
}

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

func NewServerAzureADAdministratorsClient

func NewServerAzureADAdministratorsClient(subscriptionID string) ServerAzureADAdministratorsClient

NewServerAzureADAdministratorsClient creates an instance of the ServerAzureADAdministratorsClient client.

func NewServerAzureADAdministratorsClientWithBaseURI

func NewServerAzureADAdministratorsClientWithBaseURI(baseURI string, subscriptionID string) ServerAzureADAdministratorsClient

NewServerAzureADAdministratorsClientWithBaseURI creates an instance of the ServerAzureADAdministratorsClient client.

func (ServerAzureADAdministratorsClient) CreateOrUpdate

func (client ServerAzureADAdministratorsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, parameters ServerAzureADAdministrator) (result ServerAzureADAdministratorsCreateOrUpdateFuture, err error)

CreateOrUpdate creates a new Server Active Directory Administrator or updates an existing server Active Directory Administrator. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. parameters - the required parameters for creating or updating an Active Directory Administrator.

func (ServerAzureADAdministratorsClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ServerAzureADAdministratorsClient) CreateOrUpdateResponder

func (client ServerAzureADAdministratorsClient) CreateOrUpdateResponder(resp *http.Response) (result ServerAzureADAdministrator, err error)

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

func (ServerAzureADAdministratorsClient) CreateOrUpdateSender

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

func (ServerAzureADAdministratorsClient) Delete

func (client ServerAzureADAdministratorsClient) Delete(ctx context.Context, resourceGroupName string, serverName string) (result ServerAzureADAdministratorsDeleteFuture, err error)

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

func (ServerAzureADAdministratorsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ServerAzureADAdministratorsClient) DeleteResponder

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

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

func (ServerAzureADAdministratorsClient) DeleteSender

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

func (ServerAzureADAdministratorsClient) Get

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

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

func (ServerAzureADAdministratorsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ServerAzureADAdministratorsClient) GetResponder

func (client ServerAzureADAdministratorsClient) GetResponder(resp *http.Response) (result ServerAzureADAdministrator, err error)

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

func (ServerAzureADAdministratorsClient) GetSender

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

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

func (ServerAzureADAdministratorsClient) ListByServer

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

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

func (ServerAzureADAdministratorsClient) ListByServerComplete

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

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

func (ServerAzureADAdministratorsClient) ListByServerPreparer

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

ListByServerPreparer prepares the ListByServer request.

func (ServerAzureADAdministratorsClient) ListByServerResponder

func (client ServerAzureADAdministratorsClient) ListByServerResponder(resp *http.Response) (result AdministratorListResult, err error)

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

func (ServerAzureADAdministratorsClient) ListByServerSender

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

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

type ServerAzureADAdministratorsCreateOrUpdateFuture

type ServerAzureADAdministratorsCreateOrUpdateFuture struct {
	azure.Future
}

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

func (*ServerAzureADAdministratorsCreateOrUpdateFuture) Result

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

type ServerAzureADAdministratorsDeleteFuture

type ServerAzureADAdministratorsDeleteFuture struct {
	azure.Future
}

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

func (*ServerAzureADAdministratorsDeleteFuture) Result

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

type ServerVulnerabilityAssessment

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

ServerVulnerabilityAssessment a server vulnerability assessment.

func (ServerVulnerabilityAssessment) MarshalJSON

func (sva ServerVulnerabilityAssessment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerVulnerabilityAssessment.

func (*ServerVulnerabilityAssessment) UnmarshalJSON

func (sva *ServerVulnerabilityAssessment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServerVulnerabilityAssessment struct.

type ServerVulnerabilityAssessmentListResult

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

ServerVulnerabilityAssessmentListResult a list of the server's vulnerability assessments.

func (ServerVulnerabilityAssessmentListResult) IsEmpty

IsEmpty returns true if the ListResult contains no values.

type ServerVulnerabilityAssessmentListResultIterator

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

ServerVulnerabilityAssessmentListResultIterator provides access to a complete listing of ServerVulnerabilityAssessment values.

func NewServerVulnerabilityAssessmentListResultIterator

func NewServerVulnerabilityAssessmentListResultIterator(page ServerVulnerabilityAssessmentListResultPage) ServerVulnerabilityAssessmentListResultIterator

Creates a new instance of the ServerVulnerabilityAssessmentListResultIterator type.

func (*ServerVulnerabilityAssessmentListResultIterator) Next

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

func (*ServerVulnerabilityAssessmentListResultIterator) NextWithContext

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

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

func (ServerVulnerabilityAssessmentListResultIterator) NotDone

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

func (ServerVulnerabilityAssessmentListResultIterator) Response

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

func (ServerVulnerabilityAssessmentListResultIterator) Value

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

type ServerVulnerabilityAssessmentListResultPage

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

ServerVulnerabilityAssessmentListResultPage contains a page of ServerVulnerabilityAssessment values.

func NewServerVulnerabilityAssessmentListResultPage

Creates a new instance of the ServerVulnerabilityAssessmentListResultPage type.

func (*ServerVulnerabilityAssessmentListResultPage) Next

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

func (*ServerVulnerabilityAssessmentListResultPage) NextWithContext

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

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

func (ServerVulnerabilityAssessmentListResultPage) NotDone

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

func (ServerVulnerabilityAssessmentListResultPage) Response

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

func (ServerVulnerabilityAssessmentListResultPage) Values

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

type ServerVulnerabilityAssessmentProperties

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

ServerVulnerabilityAssessmentProperties properties of a server Vulnerability Assessment.

type ServerVulnerabilityAssessmentsClient

type ServerVulnerabilityAssessmentsClient struct {
	BaseClient
}

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

func NewServerVulnerabilityAssessmentsClient

func NewServerVulnerabilityAssessmentsClient(subscriptionID string) ServerVulnerabilityAssessmentsClient

NewServerVulnerabilityAssessmentsClient creates an instance of the ServerVulnerabilityAssessmentsClient client.

func NewServerVulnerabilityAssessmentsClientWithBaseURI

func NewServerVulnerabilityAssessmentsClientWithBaseURI(baseURI string, subscriptionID string) ServerVulnerabilityAssessmentsClient

NewServerVulnerabilityAssessmentsClientWithBaseURI creates an instance of the ServerVulnerabilityAssessmentsClient client.

func (ServerVulnerabilityAssessmentsClient) CreateOrUpdate

func (client ServerVulnerabilityAssessmentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, parameters ServerVulnerabilityAssessment) (result ServerVulnerabilityAssessment, err error)

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

func (ServerVulnerabilityAssessmentsClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ServerVulnerabilityAssessmentsClient) CreateOrUpdateResponder

func (client ServerVulnerabilityAssessmentsClient) CreateOrUpdateResponder(resp *http.Response) (result ServerVulnerabilityAssessment, err error)

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

func (ServerVulnerabilityAssessmentsClient) CreateOrUpdateSender

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

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

func (ServerVulnerabilityAssessmentsClient) Delete

func (client ServerVulnerabilityAssessmentsClient) Delete(ctx context.Context, resourceGroupName string, serverName string) (result autorest.Response, err error)

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

func (ServerVulnerabilityAssessmentsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ServerVulnerabilityAssessmentsClient) DeleteResponder

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

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

func (ServerVulnerabilityAssessmentsClient) DeleteSender

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

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

func (ServerVulnerabilityAssessmentsClient) Get

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

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

func (ServerVulnerabilityAssessmentsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ServerVulnerabilityAssessmentsClient) GetResponder

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

func (ServerVulnerabilityAssessmentsClient) GetSender

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

func (ServerVulnerabilityAssessmentsClient) ListByServer

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

ListByServer lists the vulnerability assessment policies associated with a server. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server.

func (ServerVulnerabilityAssessmentsClient) ListByServerComplete

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

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

func (ServerVulnerabilityAssessmentsClient) ListByServerPreparer

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

ListByServerPreparer prepares the ListByServer request.

func (ServerVulnerabilityAssessmentsClient) ListByServerResponder

func (client ServerVulnerabilityAssessmentsClient) ListByServerResponder(resp *http.Response) (result ServerVulnerabilityAssessmentListResult, err error)

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

func (ServerVulnerabilityAssessmentsClient) ListByServerSender

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

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

type Sku

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

Sku an ARM Resource SKU.

type TrackedResource

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

TrackedResource ARM tracked top level resource.

func (TrackedResource) MarshalJSON

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

MarshalJSON is the custom marshaler for TrackedResource.

type Usage

type Usage struct {
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *Name `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
	// Unit - READ-ONLY; Usage unit.
	Unit *string `json:"unit,omitempty"`
	// CurrentValue - READ-ONLY; Usage current value.
	CurrentValue *int32 `json:"currentValue,omitempty"`
	// Limit - READ-ONLY; Usage limit.
	Limit *int32 `json:"limit,omitempty"`
	// RequestedLimit - READ-ONLY; Usage requested limit.
	RequestedLimit *int32 `json:"requestedLimit,omitempty"`
}

Usage ARM usage.

type UsageListResult

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

UsageListResult a list of usages.

func (UsageListResult) IsEmpty

func (ulr UsageListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type UsageListResultIterator

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

UsageListResultIterator provides access to a complete listing of Usage values.

func NewUsageListResultIterator

func NewUsageListResultIterator(page UsageListResultPage) UsageListResultIterator

Creates a new instance of the UsageListResultIterator type.

func (*UsageListResultIterator) Next

func (iter *UsageListResultIterator) Next() error

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

func (*UsageListResultIterator) NextWithContext

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

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

func (UsageListResultIterator) NotDone

func (iter UsageListResultIterator) NotDone() bool

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

func (UsageListResultIterator) Response

func (iter UsageListResultIterator) Response() UsageListResult

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

func (UsageListResultIterator) Value

func (iter UsageListResultIterator) Value() Usage

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

type UsageListResultPage

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

UsageListResultPage contains a page of Usage values.

func NewUsageListResultPage

func NewUsageListResultPage(getNextPage func(context.Context, UsageListResult) (UsageListResult, error)) UsageListResultPage

Creates a new instance of the UsageListResultPage type.

func (*UsageListResultPage) Next

func (page *UsageListResultPage) Next() error

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

func (*UsageListResultPage) NextWithContext

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

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

func (UsageListResultPage) NotDone

func (page UsageListResultPage) NotDone() bool

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

func (UsageListResultPage) Response

func (page UsageListResultPage) Response() UsageListResult

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

func (UsageListResultPage) Values

func (page UsageListResultPage) Values() []Usage

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

type UsagesClient

type UsagesClient struct {
	BaseClient
}

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

func NewUsagesClient

func NewUsagesClient(subscriptionID string) UsagesClient

NewUsagesClient creates an instance of the UsagesClient client.

func NewUsagesClientWithBaseURI

func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient

NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.

func (UsagesClient) ListByInstancePool

func (client UsagesClient) ListByInstancePool(ctx context.Context, resourceGroupName string, instancePoolName string, expandChildren *bool) (result UsageListResultPage, err error)

ListByInstancePool gets all instance pool usage metrics Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. instancePoolName - the name of the instance pool to be retrieved. expandChildren - optional request parameter to include managed instance usages within the instance pool.

func (UsagesClient) ListByInstancePoolComplete

func (client UsagesClient) ListByInstancePoolComplete(ctx context.Context, resourceGroupName string, instancePoolName string, expandChildren *bool) (result UsageListResultIterator, err error)

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

func (UsagesClient) ListByInstancePoolPreparer

func (client UsagesClient) ListByInstancePoolPreparer(ctx context.Context, resourceGroupName string, instancePoolName string, expandChildren *bool) (*http.Request, error)

ListByInstancePoolPreparer prepares the ListByInstancePool request.

func (UsagesClient) ListByInstancePoolResponder

func (client UsagesClient) ListByInstancePoolResponder(resp *http.Response) (result UsageListResult, err error)

ListByInstancePoolResponder handles the response to the ListByInstancePool request. The method always closes the http.Response Body.

func (UsagesClient) ListByInstancePoolSender

func (client UsagesClient) ListByInstancePoolSender(req *http.Request) (*http.Response, error)

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

type VulnerabilityAssessmentRecurringScansProperties

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

VulnerabilityAssessmentRecurringScansProperties properties of a Vulnerability Assessment recurring scans.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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