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

package sql

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

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

Package Files

client.go databases.go databasesecurityalertpolicies.go elasticpools.go instancepools.go manageddatabaserestoredetails.go manageddatabases.go manageddatabasesensitivitylabels.go managedinstances.go managedinstancevulnerabilityassessments.go models.go privateendpointconnections.go servervulnerabilityassessments.go usages.go version.go

Constants

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

func UserAgent Uses

func UserAgent() string

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

func Version Uses

func Version() string

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

type BaseClient Uses

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

BaseClient is the base client for Sql.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type CatalogCollationType Uses

type CatalogCollationType string

CatalogCollationType enumerates the values for catalog collation type.

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

func PossibleCatalogCollationTypeValues Uses

func PossibleCatalogCollationTypeValues() []CatalogCollationType

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

type CompleteDatabaseRestoreDefinition Uses

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 Uses

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 Uses

func (dsalr DatabaseSecurityAlertListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DatabaseSecurityAlertListResultIterator Uses

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

DatabaseSecurityAlertListResultIterator provides access to a complete listing of DatabaseSecurityAlertPolicy values.

func NewDatabaseSecurityAlertListResultIterator Uses

func NewDatabaseSecurityAlertListResultIterator(page DatabaseSecurityAlertListResultPage) DatabaseSecurityAlertListResultIterator

Creates a new instance of the DatabaseSecurityAlertListResultIterator type.

func (*DatabaseSecurityAlertListResultIterator) Next Uses

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

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 Uses

func (iter DatabaseSecurityAlertListResultIterator) NotDone() bool

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

func (DatabaseSecurityAlertListResultIterator) Response Uses

func (iter DatabaseSecurityAlertListResultIterator) Response() DatabaseSecurityAlertListResult

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

func (DatabaseSecurityAlertListResultIterator) Value Uses

func (iter DatabaseSecurityAlertListResultIterator) Value() DatabaseSecurityAlertPolicy

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

type DatabaseSecurityAlertListResultPage Uses

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

DatabaseSecurityAlertListResultPage contains a page of DatabaseSecurityAlertPolicy values.

func NewDatabaseSecurityAlertListResultPage Uses

func NewDatabaseSecurityAlertListResultPage(getNextPage func(context.Context, DatabaseSecurityAlertListResult) (DatabaseSecurityAlertListResult, error)) DatabaseSecurityAlertListResultPage

Creates a new instance of the DatabaseSecurityAlertListResultPage type.

func (*DatabaseSecurityAlertListResultPage) Next Uses

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

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 Uses

func (page DatabaseSecurityAlertListResultPage) NotDone() bool

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

func (DatabaseSecurityAlertListResultPage) Response Uses

func (page DatabaseSecurityAlertListResultPage) Response() DatabaseSecurityAlertListResult

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

func (DatabaseSecurityAlertListResultPage) Values Uses

func (page DatabaseSecurityAlertListResultPage) Values() []DatabaseSecurityAlertPolicy

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

type DatabaseSecurityAlertPoliciesClient Uses

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 Uses

func NewDatabaseSecurityAlertPoliciesClient(subscriptionID string) DatabaseSecurityAlertPoliciesClient

NewDatabaseSecurityAlertPoliciesClient creates an instance of the DatabaseSecurityAlertPoliciesClient client.

func NewDatabaseSecurityAlertPoliciesClientWithBaseURI Uses

func NewDatabaseSecurityAlertPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseSecurityAlertPoliciesClient

NewDatabaseSecurityAlertPoliciesClientWithBaseURI creates an instance of the DatabaseSecurityAlertPoliciesClient client.

func (DatabaseSecurityAlertPoliciesClient) CreateOrUpdate Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (DatabaseSecurityAlertPoliciesClient) GetResponder Uses

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 Uses

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

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 Uses

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 Uses

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (DatabaseSecurityAlertPoliciesClient) ListByDatabaseResponder Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for DatabaseSecurityAlertPolicy.

func (*DatabaseSecurityAlertPolicy) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for DatabaseSecurityAlertPolicy struct.

type DatabasesClient Uses

type DatabasesClient struct {
    BaseClient
}

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

func NewDatabasesClient Uses

func NewDatabasesClient(subscriptionID string) DatabasesClient

NewDatabasesClient creates an instance of the DatabasesClient client.

func NewDatabasesClientWithBaseURI Uses

func NewDatabasesClientWithBaseURI(baseURI string, subscriptionID string) DatabasesClient

NewDatabasesClientWithBaseURI creates an instance of the DatabasesClient client.

func (DatabasesClient) Failover Uses

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 Uses

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 Uses

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 Uses

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 Uses

type DatabasesFailoverFuture struct {
    azure.Future
}

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

func (*DatabasesFailoverFuture) Result Uses

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 Uses

type ElasticPoolsClient struct {
    BaseClient
}

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

func NewElasticPoolsClient Uses

func NewElasticPoolsClient(subscriptionID string) ElasticPoolsClient

NewElasticPoolsClient creates an instance of the ElasticPoolsClient client.

func NewElasticPoolsClientWithBaseURI Uses

func NewElasticPoolsClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolsClient

NewElasticPoolsClientWithBaseURI creates an instance of the ElasticPoolsClient client.

func (ElasticPoolsClient) Failover Uses

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 Uses

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

FailoverPreparer prepares the Failover request.

func (ElasticPoolsClient) FailoverResponder Uses

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 Uses

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 Uses

type ElasticPoolsFailoverFuture struct {
    azure.Future
}

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

func (*ElasticPoolsFailoverFuture) Result Uses

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 Uses

type IdentityType string

IdentityType enumerates the values for identity type.

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

func PossibleIdentityTypeValues Uses

func PossibleIdentityTypeValues() []IdentityType

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

type InstancePool Uses

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 Uses

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

MarshalJSON is the custom marshaler for InstancePool.

func (*InstancePool) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for InstancePool struct.

type InstancePoolLicenseType Uses

type InstancePoolLicenseType string

InstancePoolLicenseType enumerates the values for instance pool license type.

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

func PossibleInstancePoolLicenseTypeValues Uses

func PossibleInstancePoolLicenseTypeValues() []InstancePoolLicenseType

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

type InstancePoolListResult Uses

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 Uses

func (iplr InstancePoolListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type InstancePoolListResultIterator Uses

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

InstancePoolListResultIterator provides access to a complete listing of InstancePool values.

func NewInstancePoolListResultIterator Uses

func NewInstancePoolListResultIterator(page InstancePoolListResultPage) InstancePoolListResultIterator

Creates a new instance of the InstancePoolListResultIterator type.

func (*InstancePoolListResultIterator) Next Uses

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

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 Uses

func (iter InstancePoolListResultIterator) NotDone() bool

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

func (InstancePoolListResultIterator) Response Uses

func (iter InstancePoolListResultIterator) Response() InstancePoolListResult

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

func (InstancePoolListResultIterator) Value Uses

func (iter InstancePoolListResultIterator) Value() InstancePool

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

type InstancePoolListResultPage Uses

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

InstancePoolListResultPage contains a page of InstancePool values.

func NewInstancePoolListResultPage Uses

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

Creates a new instance of the InstancePoolListResultPage type.

func (*InstancePoolListResultPage) Next Uses

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 Uses

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 Uses

func (page InstancePoolListResultPage) NotDone() bool

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

func (InstancePoolListResultPage) Response Uses

func (page InstancePoolListResultPage) Response() InstancePoolListResult

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

func (InstancePoolListResultPage) Values Uses

func (page InstancePoolListResultPage) Values() []InstancePool

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

type InstancePoolProperties Uses

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 Uses

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

InstancePoolUpdate an update to an Instance pool.

func (InstancePoolUpdate) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for InstancePoolUpdate.

type InstancePoolsClient Uses

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 Uses

func NewInstancePoolsClient(subscriptionID string) InstancePoolsClient

NewInstancePoolsClient creates an instance of the InstancePoolsClient client.

func NewInstancePoolsClientWithBaseURI Uses

func NewInstancePoolsClientWithBaseURI(baseURI string, subscriptionID string) InstancePoolsClient

NewInstancePoolsClientWithBaseURI creates an instance of the InstancePoolsClient client.

func (InstancePoolsClient) CreateOrUpdate Uses

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 Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (InstancePoolsClient) CreateOrUpdateResponder Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (InstancePoolsClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (InstancePoolsClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (InstancePoolsClient) ListByResourceGroupResponder Uses

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 Uses

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 Uses

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

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

func (InstancePoolsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (InstancePoolsClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

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

UpdatePreparer prepares the Update request.

func (InstancePoolsClient) UpdateResponder Uses

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 Uses

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 Uses

type InstancePoolsCreateOrUpdateFuture struct {
    azure.Future
}

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

func (*InstancePoolsCreateOrUpdateFuture) Result Uses

func (future *InstancePoolsCreateOrUpdateFuture) 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 InstancePoolsDeleteFuture Uses

type InstancePoolsDeleteFuture struct {
    azure.Future
}

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

func (*InstancePoolsDeleteFuture) Result Uses

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 Uses

type InstancePoolsUpdateFuture struct {
    azure.Future
}

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

func (*InstancePoolsUpdateFuture) Result Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for ManagedDatabase.

func (*ManagedDatabase) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ManagedDatabase struct.

type ManagedDatabaseCreateMode Uses

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 Uses

func PossibleManagedDatabaseCreateModeValues() []ManagedDatabaseCreateMode

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

type ManagedDatabaseListResult Uses

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 Uses

func (mdlr ManagedDatabaseListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ManagedDatabaseListResultIterator Uses

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

ManagedDatabaseListResultIterator provides access to a complete listing of ManagedDatabase values.

func NewManagedDatabaseListResultIterator Uses

func NewManagedDatabaseListResultIterator(page ManagedDatabaseListResultPage) ManagedDatabaseListResultIterator

Creates a new instance of the ManagedDatabaseListResultIterator type.

func (*ManagedDatabaseListResultIterator) Next Uses

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

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 Uses

func (iter ManagedDatabaseListResultIterator) NotDone() bool

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

func (ManagedDatabaseListResultIterator) Response Uses

func (iter ManagedDatabaseListResultIterator) Response() ManagedDatabaseListResult

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

func (ManagedDatabaseListResultIterator) Value Uses

func (iter ManagedDatabaseListResultIterator) Value() ManagedDatabase

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

type ManagedDatabaseListResultPage Uses

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

ManagedDatabaseListResultPage contains a page of ManagedDatabase values.

func NewManagedDatabaseListResultPage Uses

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

Creates a new instance of the ManagedDatabaseListResultPage type.

func (*ManagedDatabaseListResultPage) Next Uses

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 Uses

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 Uses

func (page ManagedDatabaseListResultPage) NotDone() bool

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

func (ManagedDatabaseListResultPage) Response Uses

func (page ManagedDatabaseListResultPage) Response() ManagedDatabaseListResult

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

func (ManagedDatabaseListResultPage) Values Uses

func (page ManagedDatabaseListResultPage) Values() []ManagedDatabase

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

type ManagedDatabaseProperties Uses

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 Uses

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 Uses

func NewManagedDatabaseRestoreDetailsClient(subscriptionID string) ManagedDatabaseRestoreDetailsClient

NewManagedDatabaseRestoreDetailsClient creates an instance of the ManagedDatabaseRestoreDetailsClient client.

func NewManagedDatabaseRestoreDetailsClientWithBaseURI Uses

func NewManagedDatabaseRestoreDetailsClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseRestoreDetailsClient

NewManagedDatabaseRestoreDetailsClientWithBaseURI creates an instance of the ManagedDatabaseRestoreDetailsClient client.

func (ManagedDatabaseRestoreDetailsClient) Get Uses

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 Uses

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

GetPreparer prepares the Get request.

func (ManagedDatabaseRestoreDetailsClient) GetResponder Uses

func (client ManagedDatabaseRestoreDetailsClient) GetResponder(resp *http.Response) (result ManagedDatabaseRestoreDetailsResult, err error)

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

func (ManagedDatabaseRestoreDetailsClient) GetSender Uses

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

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

type ManagedDatabaseRestoreDetailsProperties Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for ManagedDatabaseRestoreDetailsResult.

func (*ManagedDatabaseRestoreDetailsResult) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ManagedDatabaseRestoreDetailsResult struct.

type ManagedDatabaseSensitivityLabelsClient Uses

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 Uses

func NewManagedDatabaseSensitivityLabelsClient(subscriptionID string) ManagedDatabaseSensitivityLabelsClient

NewManagedDatabaseSensitivityLabelsClient creates an instance of the ManagedDatabaseSensitivityLabelsClient client.

func NewManagedDatabaseSensitivityLabelsClientWithBaseURI Uses

func NewManagedDatabaseSensitivityLabelsClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabaseSensitivityLabelsClient

NewManagedDatabaseSensitivityLabelsClientWithBaseURI creates an instance of the ManagedDatabaseSensitivityLabelsClient client.

func (ManagedDatabaseSensitivityLabelsClient) CreateOrUpdate Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

func (client ManagedDatabaseSensitivityLabelsClient) 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 (ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabase Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

func PossibleManagedDatabaseStatusValues() []ManagedDatabaseStatus

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

type ManagedDatabaseUpdate Uses

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 Uses

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

MarshalJSON is the custom marshaler for ManagedDatabaseUpdate.

func (*ManagedDatabaseUpdate) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ManagedDatabaseUpdate struct.

type ManagedDatabasesClient Uses

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 Uses

func NewManagedDatabasesClient(subscriptionID string) ManagedDatabasesClient

NewManagedDatabasesClient creates an instance of the ManagedDatabasesClient client.

func NewManagedDatabasesClientWithBaseURI Uses

func NewManagedDatabasesClientWithBaseURI(baseURI string, subscriptionID string) ManagedDatabasesClient

NewManagedDatabasesClientWithBaseURI creates an instance of the ManagedDatabasesClient client.

func (ManagedDatabasesClient) CompleteRestore Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (ManagedDatabasesClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (ManagedDatabasesClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByInstancePreparer prepares the ListByInstance request.

func (ManagedDatabasesClient) ListByInstanceResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

type ManagedDatabasesCompleteRestoreFuture struct {
    azure.Future
}

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

func (*ManagedDatabasesCompleteRestoreFuture) Result Uses

func (future *ManagedDatabasesCompleteRestoreFuture) Result(client ManagedDatabasesClient) (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 ManagedDatabasesCreateOrUpdateFuture Uses

type ManagedDatabasesCreateOrUpdateFuture struct {
    azure.Future
}

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

func (*ManagedDatabasesCreateOrUpdateFuture) Result Uses

func (future *ManagedDatabasesCreateOrUpdateFuture) Result(client ManagedDatabasesClient) (md ManagedDatabase, err error)

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

type ManagedDatabasesDeleteFuture Uses

type ManagedDatabasesDeleteFuture struct {
    azure.Future
}

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

func (*ManagedDatabasesDeleteFuture) Result Uses

func (future *ManagedDatabasesDeleteFuture) Result(client ManagedDatabasesClient) (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 ManagedDatabasesUpdateFuture Uses

type ManagedDatabasesUpdateFuture struct {
    azure.Future
}

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

func (*ManagedDatabasesUpdateFuture) Result Uses

func (future *ManagedDatabasesUpdateFuture) Result(client ManagedDatabasesClient) (md ManagedDatabase, err error)

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

type ManagedInstance Uses

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 Uses

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

MarshalJSON is the custom marshaler for ManagedInstance.

func (*ManagedInstance) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ManagedInstance struct.

type ManagedInstanceLicenseType Uses

type ManagedInstanceLicenseType string

ManagedInstanceLicenseType enumerates the values for managed instance license type.

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

func PossibleManagedInstanceLicenseTypeValues Uses

func PossibleManagedInstanceLicenseTypeValues() []ManagedInstanceLicenseType

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

type ManagedInstanceListResult Uses

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 Uses

func (milr ManagedInstanceListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ManagedInstanceListResultIterator Uses

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

ManagedInstanceListResultIterator provides access to a complete listing of ManagedInstance values.

func NewManagedInstanceListResultIterator Uses

func NewManagedInstanceListResultIterator(page ManagedInstanceListResultPage) ManagedInstanceListResultIterator

Creates a new instance of the ManagedInstanceListResultIterator type.

func (*ManagedInstanceListResultIterator) Next Uses

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

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 Uses

func (iter ManagedInstanceListResultIterator) NotDone() bool

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

func (ManagedInstanceListResultIterator) Response Uses

func (iter ManagedInstanceListResultIterator) Response() ManagedInstanceListResult

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

func (ManagedInstanceListResultIterator) Value Uses

func (iter ManagedInstanceListResultIterator) Value() ManagedInstance

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

type ManagedInstanceListResultPage Uses

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

ManagedInstanceListResultPage contains a page of ManagedInstance values.

func NewManagedInstanceListResultPage Uses

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

Creates a new instance of the ManagedInstanceListResultPage type.

func (*ManagedInstanceListResultPage) Next Uses

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 Uses

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 Uses

func (page ManagedInstanceListResultPage) NotDone() bool

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

func (ManagedInstanceListResultPage) Response Uses

func (page ManagedInstanceListResultPage) Response() ManagedInstanceListResult

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

func (ManagedInstanceListResultPage) Values Uses

func (page ManagedInstanceListResultPage) Values() []ManagedInstance

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

type ManagedInstanceProperties Uses

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 Uses

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 Uses

func PossibleManagedInstanceProxyOverrideValues() []ManagedInstanceProxyOverride

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

type ManagedInstanceUpdate Uses

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 Uses

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

MarshalJSON is the custom marshaler for ManagedInstanceUpdate.

func (*ManagedInstanceUpdate) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ManagedInstanceUpdate struct.

type ManagedInstanceVulnerabilityAssessment Uses

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 Uses

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

MarshalJSON is the custom marshaler for ManagedInstanceVulnerabilityAssessment.

func (*ManagedInstanceVulnerabilityAssessment) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ManagedInstanceVulnerabilityAssessment struct.

type ManagedInstanceVulnerabilityAssessmentListResult Uses

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 Uses

func (mivalr ManagedInstanceVulnerabilityAssessmentListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ManagedInstanceVulnerabilityAssessmentListResultIterator Uses

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

ManagedInstanceVulnerabilityAssessmentListResultIterator provides access to a complete listing of ManagedInstanceVulnerabilityAssessment values.

func NewManagedInstanceVulnerabilityAssessmentListResultIterator Uses

func NewManagedInstanceVulnerabilityAssessmentListResultIterator(page ManagedInstanceVulnerabilityAssessmentListResultPage) ManagedInstanceVulnerabilityAssessmentListResultIterator

Creates a new instance of the ManagedInstanceVulnerabilityAssessmentListResultIterator type.

func (*ManagedInstanceVulnerabilityAssessmentListResultIterator) Next Uses

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

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

func (iter ManagedInstanceVulnerabilityAssessmentListResultIterator) NotDone() bool

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

func (ManagedInstanceVulnerabilityAssessmentListResultIterator) Response Uses

func (iter ManagedInstanceVulnerabilityAssessmentListResultIterator) Response() ManagedInstanceVulnerabilityAssessmentListResult

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

func (ManagedInstanceVulnerabilityAssessmentListResultIterator) Value Uses

func (iter ManagedInstanceVulnerabilityAssessmentListResultIterator) Value() ManagedInstanceVulnerabilityAssessment

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

type ManagedInstanceVulnerabilityAssessmentListResultPage Uses

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

ManagedInstanceVulnerabilityAssessmentListResultPage contains a page of ManagedInstanceVulnerabilityAssessment values.

func NewManagedInstanceVulnerabilityAssessmentListResultPage Uses

func NewManagedInstanceVulnerabilityAssessmentListResultPage(getNextPage func(context.Context, ManagedInstanceVulnerabilityAssessmentListResult) (ManagedInstanceVulnerabilityAssessmentListResult, error)) ManagedInstanceVulnerabilityAssessmentListResultPage

Creates a new instance of the ManagedInstanceVulnerabilityAssessmentListResultPage type.

func (*ManagedInstanceVulnerabilityAssessmentListResultPage) Next Uses

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

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

func (page ManagedInstanceVulnerabilityAssessmentListResultPage) NotDone() bool

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

func (ManagedInstanceVulnerabilityAssessmentListResultPage) Response Uses

func (page ManagedInstanceVulnerabilityAssessmentListResultPage) Response() ManagedInstanceVulnerabilityAssessmentListResult

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

func (ManagedInstanceVulnerabilityAssessmentListResultPage) Values Uses

func (page ManagedInstanceVulnerabilityAssessmentListResultPage) Values() []ManagedInstanceVulnerabilityAssessment

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

type ManagedInstanceVulnerabilityAssessmentProperties Uses

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 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 Uses

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 Uses

func NewManagedInstanceVulnerabilityAssessmentsClient(subscriptionID string) ManagedInstanceVulnerabilityAssessmentsClient

NewManagedInstanceVulnerabilityAssessmentsClient creates an instance of the ManagedInstanceVulnerabilityAssessmentsClient client.

func NewManagedInstanceVulnerabilityAssessmentsClientWithBaseURI Uses

func NewManagedInstanceVulnerabilityAssessmentsClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstanceVulnerabilityAssessmentsClient

NewManagedInstanceVulnerabilityAssessmentsClientWithBaseURI creates an instance of the ManagedInstanceVulnerabilityAssessmentsClient client.

func (ManagedInstanceVulnerabilityAssessmentsClient) CreateOrUpdate Uses

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 Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ManagedInstanceVulnerabilityAssessmentsClient) CreateOrUpdateResponder Uses

func (client ManagedInstanceVulnerabilityAssessmentsClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedInstanceVulnerabilityAssessment, err error)

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

func (ManagedInstanceVulnerabilityAssessmentsClient) CreateOrUpdateSender Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (ManagedInstanceVulnerabilityAssessmentsClient) DeleteResponder Uses

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 Uses

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

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 Uses

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

GetPreparer prepares the Get request.

func (ManagedInstanceVulnerabilityAssessmentsClient) GetResponder Uses

func (client ManagedInstanceVulnerabilityAssessmentsClient) GetResponder(resp *http.Response) (result ManagedInstanceVulnerabilityAssessment, err error)

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

func (ManagedInstanceVulnerabilityAssessmentsClient) GetSender Uses

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

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 Uses

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 Uses

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

ListByInstancePreparer prepares the ListByInstance request.

func (ManagedInstanceVulnerabilityAssessmentsClient) ListByInstanceResponder Uses

func (client ManagedInstanceVulnerabilityAssessmentsClient) ListByInstanceResponder(resp *http.Response) (result ManagedInstanceVulnerabilityAssessmentListResult, err error)

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

func (ManagedInstanceVulnerabilityAssessmentsClient) ListByInstanceSender Uses

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 Uses

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 Uses

func NewManagedInstancesClient(subscriptionID string) ManagedInstancesClient

NewManagedInstancesClient creates an instance of the ManagedInstancesClient client.

func NewManagedInstancesClientWithBaseURI Uses

func NewManagedInstancesClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstancesClient

NewManagedInstancesClientWithBaseURI creates an instance of the ManagedInstancesClient client.

func (ManagedInstancesClient) CreateOrUpdate Uses

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 Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ManagedInstancesClient) CreateOrUpdateResponder Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (ManagedInstancesClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (ManagedInstancesClient) GetResponder Uses

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 Uses

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 Uses

func (client ManagedInstancesClient) List(ctx context.Context) (result ManagedInstanceListResultPage, err error)

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

func (ManagedInstancesClient) ListByInstancePool Uses

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 Uses

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 Uses

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

ListByInstancePoolPreparer prepares the ListByInstancePool request.

func (ManagedInstancesClient) ListByInstancePoolResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ManagedInstancesClient) ListByResourceGroupResponder Uses

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 Uses

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 Uses

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

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

func (ManagedInstancesClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (ManagedInstancesClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

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

UpdatePreparer prepares the Update request.

func (ManagedInstancesClient) UpdateResponder Uses

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 Uses

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 Uses

type ManagedInstancesCreateOrUpdateFuture struct {
    azure.Future
}

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

func (*ManagedInstancesCreateOrUpdateFuture) Result Uses

func (future *ManagedInstancesCreateOrUpdateFuture) Result(client ManagedInstancesClient) (mi ManagedInstance, err error)

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

type ManagedInstancesDeleteFuture Uses

type ManagedInstancesDeleteFuture struct {
    azure.Future
}

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

func (*ManagedInstancesDeleteFuture) Result Uses

func (future *ManagedInstancesDeleteFuture) Result(client ManagedInstancesClient) (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 ManagedInstancesUpdateFuture Uses

type ManagedInstancesUpdateFuture struct {
    azure.Future
}

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

func (*ManagedInstancesUpdateFuture) Result Uses

func (future *ManagedInstancesUpdateFuture) Result(client ManagedInstancesClient) (mi ManagedInstance, err error)

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

type ManagedServerCreateMode Uses

type ManagedServerCreateMode string

ManagedServerCreateMode enumerates the values for managed server create mode.

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

func PossibleManagedServerCreateModeValues Uses

func PossibleManagedServerCreateModeValues() []ManagedServerCreateMode

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

type Name Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for PrivateEndpointConnection.

func (*PrivateEndpointConnection) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for PrivateEndpointConnection struct.

type PrivateEndpointConnectionListResult Uses

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 Uses

func (peclr PrivateEndpointConnectionListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type PrivateEndpointConnectionListResultIterator Uses

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

PrivateEndpointConnectionListResultIterator provides access to a complete listing of PrivateEndpointConnection values.

func NewPrivateEndpointConnectionListResultIterator Uses

func NewPrivateEndpointConnectionListResultIterator(page PrivateEndpointConnectionListResultPage) PrivateEndpointConnectionListResultIterator

Creates a new instance of the PrivateEndpointConnectionListResultIterator type.

func (*PrivateEndpointConnectionListResultIterator) Next Uses

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

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 Uses

func (iter PrivateEndpointConnectionListResultIterator) NotDone() bool

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

func (PrivateEndpointConnectionListResultIterator) Response Uses

func (iter PrivateEndpointConnectionListResultIterator) Response() PrivateEndpointConnectionListResult

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

func (PrivateEndpointConnectionListResultIterator) Value Uses

func (iter PrivateEndpointConnectionListResultIterator) Value() PrivateEndpointConnection

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

type PrivateEndpointConnectionListResultPage Uses

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

PrivateEndpointConnectionListResultPage contains a page of PrivateEndpointConnection values.

func NewPrivateEndpointConnectionListResultPage Uses

func NewPrivateEndpointConnectionListResultPage(getNextPage func(context.Context, PrivateEndpointConnectionListResult) (PrivateEndpointConnectionListResult, error)) PrivateEndpointConnectionListResultPage

Creates a new instance of the PrivateEndpointConnectionListResultPage type.

func (*PrivateEndpointConnectionListResultPage) Next Uses

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

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 Uses

func (page PrivateEndpointConnectionListResultPage) NotDone() bool

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

func (PrivateEndpointConnectionListResultPage) Response Uses

func (page PrivateEndpointConnectionListResultPage) Response() PrivateEndpointConnectionListResult

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

func (PrivateEndpointConnectionListResultPage) Values Uses

func (page PrivateEndpointConnectionListResultPage) Values() []PrivateEndpointConnection

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

type PrivateEndpointConnectionProperties Uses

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 Uses

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 Uses

func NewPrivateEndpointConnectionsClient(subscriptionID string) PrivateEndpointConnectionsClient

NewPrivateEndpointConnectionsClient creates an instance of the PrivateEndpointConnectionsClient client.

func NewPrivateEndpointConnectionsClientWithBaseURI Uses

func NewPrivateEndpointConnectionsClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointConnectionsClient

NewPrivateEndpointConnectionsClientWithBaseURI creates an instance of the PrivateEndpointConnectionsClient client.

func (PrivateEndpointConnectionsClient) CreateOrUpdate Uses

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 Uses

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 Uses

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 Uses

func (client PrivateEndpointConnectionsClient) CreateOrUpdateSender(req *http.Request) (future PrivateEndpointConnectionsCreateOrUpdateFuture, err error)

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

func (PrivateEndpointConnectionsClient) Delete Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (PrivateEndpointConnectionsClient) DeleteResponder Uses

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 Uses

func (client PrivateEndpointConnectionsClient) DeleteSender(req *http.Request) (future PrivateEndpointConnectionsDeleteFuture, err error)

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

func (PrivateEndpointConnectionsClient) Get Uses

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 Uses

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

GetPreparer prepares the Get request.

func (PrivateEndpointConnectionsClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByServerPreparer prepares the ListByServer request.

func (PrivateEndpointConnectionsClient) ListByServerResponder Uses

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 Uses

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 Uses

type PrivateEndpointConnectionsCreateOrUpdateFuture struct {
    azure.Future
}

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

func (*PrivateEndpointConnectionsCreateOrUpdateFuture) Result Uses

func (future *PrivateEndpointConnectionsCreateOrUpdateFuture) Result(client PrivateEndpointConnectionsClient) (pec PrivateEndpointConnection, err error)

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

type PrivateEndpointConnectionsDeleteFuture Uses

type PrivateEndpointConnectionsDeleteFuture struct {
    azure.Future
}

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

func (*PrivateEndpointConnectionsDeleteFuture) Result Uses

func (future *PrivateEndpointConnectionsDeleteFuture) Result(client PrivateEndpointConnectionsClient) (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 PrivateEndpointProperty Uses

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

PrivateEndpointProperty ...

type PrivateLinkServiceConnectionStateProperty Uses

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 Uses

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

ProxyResource ARM proxy resource.

type ReplicaType Uses

type ReplicaType string

ReplicaType enumerates the values for replica type.

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

func PossibleReplicaTypeValues Uses

func PossibleReplicaTypeValues() []ReplicaType

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

type Resource Uses

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

Resource ARM resource.

type ResourceIdentity Uses

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 Uses

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 Uses

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 Uses

func PossibleSecurityAlertPolicyStateValues() []SecurityAlertPolicyState

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

type SensitivityLabel Uses

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 Uses

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

MarshalJSON is the custom marshaler for SensitivityLabel.

func (*SensitivityLabel) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for SensitivityLabel struct.

type SensitivityLabelListResult Uses

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 Uses

func (sllr SensitivityLabelListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type SensitivityLabelListResultIterator Uses

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

SensitivityLabelListResultIterator provides access to a complete listing of SensitivityLabel values.

func NewSensitivityLabelListResultIterator Uses

func NewSensitivityLabelListResultIterator(page SensitivityLabelListResultPage) SensitivityLabelListResultIterator

Creates a new instance of the SensitivityLabelListResultIterator type.

func (*SensitivityLabelListResultIterator) Next Uses

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

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 Uses

func (iter SensitivityLabelListResultIterator) NotDone() bool

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

func (SensitivityLabelListResultIterator) Response Uses

func (iter SensitivityLabelListResultIterator) Response() SensitivityLabelListResult

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

func (SensitivityLabelListResultIterator) Value Uses

func (iter SensitivityLabelListResultIterator) Value() SensitivityLabel

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

type SensitivityLabelListResultPage Uses

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

SensitivityLabelListResultPage contains a page of SensitivityLabel values.

func NewSensitivityLabelListResultPage Uses

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

Creates a new instance of the SensitivityLabelListResultPage type.

func (*SensitivityLabelListResultPage) Next Uses

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

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 Uses

func (page SensitivityLabelListResultPage) NotDone() bool

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

func (SensitivityLabelListResultPage) Response Uses

func (page SensitivityLabelListResultPage) Response() SensitivityLabelListResult

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

func (SensitivityLabelListResultPage) Values Uses

func (page SensitivityLabelListResultPage) Values() []SensitivityLabel

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

type SensitivityLabelProperties Uses

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 Uses

type SensitivityLabelSource string

SensitivityLabelSource enumerates the values for sensitivity label source.

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

func PossibleSensitivityLabelSourceValues Uses

func PossibleSensitivityLabelSourceValues() []SensitivityLabelSource

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

type ServerVulnerabilityAssessment Uses

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 Uses

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

MarshalJSON is the custom marshaler for ServerVulnerabilityAssessment.

func (*ServerVulnerabilityAssessment) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ServerVulnerabilityAssessment struct.

type ServerVulnerabilityAssessmentListResult Uses

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 Uses

func (svalr ServerVulnerabilityAssessmentListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ServerVulnerabilityAssessmentListResultIterator Uses

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

ServerVulnerabilityAssessmentListResultIterator provides access to a complete listing of ServerVulnerabilityAssessment values.

func NewServerVulnerabilityAssessmentListResultIterator Uses

func NewServerVulnerabilityAssessmentListResultIterator(page ServerVulnerabilityAssessmentListResultPage) ServerVulnerabilityAssessmentListResultIterator

Creates a new instance of the ServerVulnerabilityAssessmentListResultIterator type.

func (*ServerVulnerabilityAssessmentListResultIterator) Next Uses

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

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 Uses

func (iter ServerVulnerabilityAssessmentListResultIterator) NotDone() bool

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

func (ServerVulnerabilityAssessmentListResultIterator) Response Uses

func (iter ServerVulnerabilityAssessmentListResultIterator) Response() ServerVulnerabilityAssessmentListResult

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

func (ServerVulnerabilityAssessmentListResultIterator) Value Uses

func (iter ServerVulnerabilityAssessmentListResultIterator) Value() ServerVulnerabilityAssessment

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

type ServerVulnerabilityAssessmentListResultPage Uses

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

ServerVulnerabilityAssessmentListResultPage contains a page of ServerVulnerabilityAssessment values.

func NewServerVulnerabilityAssessmentListResultPage Uses

func NewServerVulnerabilityAssessmentListResultPage(getNextPage func(context.Context, ServerVulnerabilityAssessmentListResult) (ServerVulnerabilityAssessmentListResult, error)) ServerVulnerabilityAssessmentListResultPage

Creates a new instance of the ServerVulnerabilityAssessmentListResultPage type.

func (*ServerVulnerabilityAssessmentListResultPage) Next Uses

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

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 Uses

func (page ServerVulnerabilityAssessmentListResultPage) NotDone() bool

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

func (ServerVulnerabilityAssessmentListResultPage) Response Uses

func (page ServerVulnerabilityAssessmentListResultPage) Response() ServerVulnerabilityAssessmentListResult

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

func (ServerVulnerabilityAssessmentListResultPage) Values Uses

func (page ServerVulnerabilityAssessmentListResultPage) Values() []ServerVulnerabilityAssessment

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

type ServerVulnerabilityAssessmentProperties Uses

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 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 Uses

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 Uses

func NewServerVulnerabilityAssessmentsClient(subscriptionID string) ServerVulnerabilityAssessmentsClient

NewServerVulnerabilityAssessmentsClient creates an instance of the ServerVulnerabilityAssessmentsClient client.

func NewServerVulnerabilityAssessmentsClientWithBaseURI Uses

func NewServerVulnerabilityAssessmentsClientWithBaseURI(baseURI string, subscriptionID string) ServerVulnerabilityAssessmentsClient

NewServerVulnerabilityAssessmentsClientWithBaseURI creates an instance of the ServerVulnerabilityAssessmentsClient client.

func (ServerVulnerabilityAssessmentsClient) CreateOrUpdate Uses

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 Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ServerVulnerabilityAssessmentsClient) CreateOrUpdateResponder Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (ServerVulnerabilityAssessmentsClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (ServerVulnerabilityAssessmentsClient) GetResponder Uses

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

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

func (ServerVulnerabilityAssessmentsClient) GetSender Uses

func (client ServerVulnerabilityAssessmentsClient) 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 (ServerVulnerabilityAssessmentsClient) ListByServer Uses

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 Uses

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 Uses

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

ListByServerPreparer prepares the ListByServer request.

func (ServerVulnerabilityAssessmentsClient) ListByServerResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for TrackedResource.

type Usage Uses

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 Uses

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 Uses

func (ulr UsageListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type UsageListResultIterator Uses

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

UsageListResultIterator provides access to a complete listing of Usage values.

func NewUsageListResultIterator Uses

func NewUsageListResultIterator(page UsageListResultPage) UsageListResultIterator

Creates a new instance of the UsageListResultIterator type.

func (*UsageListResultIterator) Next Uses

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 Uses

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 Uses

func (iter UsageListResultIterator) NotDone() bool

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

func (UsageListResultIterator) Response Uses

func (iter UsageListResultIterator) Response() UsageListResult

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

func (UsageListResultIterator) Value Uses

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 Uses

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

UsageListResultPage contains a page of Usage values.

func NewUsageListResultPage Uses

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

Creates a new instance of the UsageListResultPage type.

func (*UsageListResultPage) Next Uses

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 Uses

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 Uses

func (page UsageListResultPage) NotDone() bool

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

func (UsageListResultPage) Response Uses

func (page UsageListResultPage) Response() UsageListResult

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

func (UsageListResultPage) Values Uses

func (page UsageListResultPage) Values() []Usage

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

type UsagesClient Uses

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 Uses

func NewUsagesClient(subscriptionID string) UsagesClient

NewUsagesClient creates an instance of the UsagesClient client.

func NewUsagesClientWithBaseURI Uses

func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient

NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.

func (UsagesClient) ListByInstancePool Uses

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 Uses

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 Uses

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

ListByInstancePoolPreparer prepares the ListByInstancePool request.

func (UsagesClient) ListByInstancePoolResponder Uses

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 Uses

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 Uses

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

PathSynopsis
sqlapi

Package sql imports 11 packages (graph) and is imported by 3 packages. Updated 2019-11-04. Refresh now. Tools for package owners.