azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/sql/mgmt/2014-04-01/sql Index | Files | Directories

package sql

import "github.com/Azure/azure-sdk-for-go/services/sql/mgmt/2014-04-01/sql"

Package sql implements the Azure ARM Sql service API version 2014-04-01.

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 databasethreatdetectionpolicies.go elasticpoolactivities.go elasticpooldatabaseactivities.go elasticpools.go firewallrules.go models.go recommendedelasticpools.go replicationlinks.go servers.go servicetieradvisors.go transparentdataencryptionactivities.go transparentdataencryptions.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 AuthenticationType Uses

type AuthenticationType string

AuthenticationType enumerates the values for authentication type.

const (
    // ADPassword ...
    ADPassword AuthenticationType = "ADPassword"
    // SQL ...
    SQL AuthenticationType = "SQL"
)

func PossibleAuthenticationTypeValues Uses

func PossibleAuthenticationTypeValues() []AuthenticationType

PossibleAuthenticationTypeValues returns an array of possible values for the AuthenticationType const type.

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

type CheckNameAvailabilityReason string

CheckNameAvailabilityReason enumerates the values for check name availability reason.

const (
    // AlreadyExists ...
    AlreadyExists CheckNameAvailabilityReason = "AlreadyExists"
    // Invalid ...
    Invalid CheckNameAvailabilityReason = "Invalid"
)

func PossibleCheckNameAvailabilityReasonValues Uses

func PossibleCheckNameAvailabilityReasonValues() []CheckNameAvailabilityReason

PossibleCheckNameAvailabilityReasonValues returns an array of possible values for the CheckNameAvailabilityReason const type.

type CheckNameAvailabilityRequest Uses

type CheckNameAvailabilityRequest struct {
    // Name - The name whose availability is to be checked.
    Name *string `json:"name,omitempty"`
    // Type - The type of resource that is used as the scope of the availability check.
    Type *string `json:"type,omitempty"`
}

CheckNameAvailabilityRequest a request to check whether the specified name for a resource is available.

type CheckNameAvailabilityResponse Uses

type CheckNameAvailabilityResponse struct {
    autorest.Response `json:"-"`
    // Available - READ-ONLY; True if the name is available, otherwise false.
    Available *bool `json:"available,omitempty"`
    // Message - READ-ONLY; A message explaining why the name is unavailable. Will be null if the name is available.
    Message *string `json:"message,omitempty"`
    // Name - READ-ONLY; The name whose availability was checked.
    Name *string `json:"name,omitempty"`
    // Reason - READ-ONLY; The reason code explaining why the name is unavailable. Will be null if the name is available. Possible values include: 'Invalid', 'AlreadyExists'
    Reason CheckNameAvailabilityReason `json:"reason,omitempty"`
}

CheckNameAvailabilityResponse a response indicating whether the specified name for a resource is available.

type CreateMode Uses

type CreateMode string

CreateMode enumerates the values for create mode.

const (
    // Copy ...
    Copy CreateMode = "Copy"
    // Default ...
    Default CreateMode = "Default"
    // NonReadableSecondary ...
    NonReadableSecondary CreateMode = "NonReadableSecondary"
    // OnlineSecondary ...
    OnlineSecondary CreateMode = "OnlineSecondary"
    // PointInTimeRestore ...
    PointInTimeRestore CreateMode = "PointInTimeRestore"
    // Recovery ...
    Recovery CreateMode = "Recovery"
    // Restore ...
    Restore CreateMode = "Restore"
    // RestoreLongTermRetentionBackup ...
    RestoreLongTermRetentionBackup CreateMode = "RestoreLongTermRetentionBackup"
)

func PossibleCreateModeValues Uses

func PossibleCreateModeValues() []CreateMode

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

type Database Uses

type Database struct {
    autorest.Response `json:"-"`
    // Kind - READ-ONLY; Kind of database.  This is metadata used for the Azure portal experience.
    Kind *string `json:"kind,omitempty"`
    // DatabaseProperties - The properties representing the resource.
    *DatabaseProperties `json:"properties,omitempty"`
    // Location - Resource location.
    Location *string `json:"location,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // ID - READ-ONLY; Resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

Database represents a database.

func (Database) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Database.

func (*Database) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Database struct.

type DatabaseEdition Uses

type DatabaseEdition string

DatabaseEdition enumerates the values for database edition.

const (
    // Basic ...
    Basic DatabaseEdition = "Basic"
    // Business ...
    Business DatabaseEdition = "Business"
    // BusinessCritical ...
    BusinessCritical DatabaseEdition = "BusinessCritical"
    // DataWarehouse ...
    DataWarehouse DatabaseEdition = "DataWarehouse"
    // Free ...
    Free DatabaseEdition = "Free"
    // GeneralPurpose ...
    GeneralPurpose DatabaseEdition = "GeneralPurpose"
    // Hyperscale ...
    Hyperscale DatabaseEdition = "Hyperscale"
    // Premium ...
    Premium DatabaseEdition = "Premium"
    // PremiumRS ...
    PremiumRS DatabaseEdition = "PremiumRS"
    // Standard ...
    Standard DatabaseEdition = "Standard"
    // Stretch ...
    Stretch DatabaseEdition = "Stretch"
    // System ...
    System DatabaseEdition = "System"
    // System2 ...
    System2 DatabaseEdition = "System2"
    // Web ...
    Web DatabaseEdition = "Web"
)

func PossibleDatabaseEditionValues Uses

func PossibleDatabaseEditionValues() []DatabaseEdition

PossibleDatabaseEditionValues returns an array of possible values for the DatabaseEdition const type.

type DatabaseListResult Uses

type DatabaseListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of databases housed in the server.
    Value *[]Database `json:"value,omitempty"`
}

DatabaseListResult represents the response to a list database request.

type DatabaseProperties Uses

type DatabaseProperties struct {
    // Collation - The collation of the database. If createMode is not Default, this value is ignored.
    Collation *string `json:"collation,omitempty"`
    // CreationDate - READ-ONLY; The creation date of the database (ISO8601 format).
    CreationDate *date.Time `json:"creationDate,omitempty"`
    // ContainmentState - READ-ONLY; The containment state of the database.
    ContainmentState *int64 `json:"containmentState,omitempty"`
    // CurrentServiceObjectiveID - READ-ONLY; The current service level objective ID of the database. This is the ID of the service level objective that is currently active.
    CurrentServiceObjectiveID *uuid.UUID `json:"currentServiceObjectiveId,omitempty"`
    // DatabaseID - READ-ONLY; The ID of the database.
    DatabaseID *uuid.UUID `json:"databaseId,omitempty"`
    // EarliestRestoreDate - READ-ONLY; This records the earliest start date and time that restore is available for this database (ISO8601 format).
    EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"`
    // CreateMode - Specifies the mode of database creation.
    // Default: regular database creation.
    // Copy: creates a database as a copy of an existing database. sourceDatabaseId must be specified as the resource ID of the source database.
    // OnlineSecondary/NonReadableSecondary: creates a database as a (readable or nonreadable) secondary replica of an existing database. sourceDatabaseId must be specified as the resource ID of the existing primary database.
    // PointInTimeRestore: Creates a database by restoring a point in time backup of an existing database. sourceDatabaseId must be specified as the resource ID of the existing database, and restorePointInTime must be specified.
    // Recovery: Creates a database by restoring a geo-replicated backup. sourceDatabaseId must be specified as the recoverable database resource ID to restore.
    // Restore: Creates a database by restoring a backup of a deleted database. sourceDatabaseId must be specified. If sourceDatabaseId is the database's original resource ID, then sourceDatabaseDeletionDate must be specified. Otherwise sourceDatabaseId must be the restorable dropped database resource ID and sourceDatabaseDeletionDate is ignored. restorePointInTime may also be specified to restore from an earlier point in time.
    // RestoreLongTermRetentionBackup: Creates a database by restoring from a long term retention vault. recoveryServicesRecoveryPointResourceId must be specified as the recovery point resource ID.
    // Copy, NonReadableSecondary, OnlineSecondary and RestoreLongTermRetentionBackup are not supported for DataWarehouse edition. Possible values include: 'Copy', 'Default', 'NonReadableSecondary', 'OnlineSecondary', 'PointInTimeRestore', 'Recovery', 'Restore', 'RestoreLongTermRetentionBackup'
    CreateMode CreateMode `json:"createMode,omitempty"`
    // SourceDatabaseID - Conditional. If createMode is Copy, NonReadableSecondary, OnlineSecondary, PointInTimeRestore, Recovery, or Restore, then this value is required. Specifies the resource ID of the source database. If createMode is NonReadableSecondary or OnlineSecondary, the name of the source database must be the same as the new database being created.
    SourceDatabaseID *string `json:"sourceDatabaseId,omitempty"`
    // SourceDatabaseDeletionDate - Conditional. If createMode is Restore and sourceDatabaseId is the deleted database's original resource id when it existed (as opposed to its current restorable dropped database id), then this value is required. Specifies the time that the database was deleted.
    SourceDatabaseDeletionDate *date.Time `json:"sourceDatabaseDeletionDate,omitempty"`
    // RestorePointInTime - Conditional. If createMode is PointInTimeRestore, this value is required. If createMode is Restore, this value is optional. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. Must be greater than or equal to the source database's earliestRestoreDate value.
    RestorePointInTime *date.Time `json:"restorePointInTime,omitempty"`
    // RecoveryServicesRecoveryPointResourceID - Conditional. If createMode is RestoreLongTermRetentionBackup, then this value is required. Specifies the resource ID of the recovery point to restore from.
    RecoveryServicesRecoveryPointResourceID *string `json:"recoveryServicesRecoveryPointResourceId,omitempty"`
    // Edition - The edition of the database. The DatabaseEditions enumeration contains all the valid editions. If createMode is NonReadableSecondary or OnlineSecondary, this value is ignored.
    //
    // The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands:
    //
    // ```azurecli
    // az sql db list-editions -l <location> -o table
    // ````
    //
    // ```powershell
    // Get-AzSqlServerServiceObjective -Location <location>
    // ````
    // . Possible values include: 'Web', 'Business', 'Basic', 'Standard', 'Premium', 'PremiumRS', 'Free', 'Stretch', 'DataWarehouse', 'System', 'System2', 'GeneralPurpose', 'BusinessCritical', 'Hyperscale'
    Edition DatabaseEdition `json:"edition,omitempty"`
    // MaxSizeBytes - The max size of the database expressed in bytes. If createMode is not Default, this value is ignored. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: "Capabilities_ListByLocation."
    MaxSizeBytes *string `json:"maxSizeBytes,omitempty"`
    // RequestedServiceObjectiveID - The configured service level objective ID of the database. This is the service level objective that is in the process of being applied to the database. Once successfully updated, it will match the value of currentServiceObjectiveId property. If requestedServiceObjectiveId and requestedServiceObjectiveName are both updated, the value of requestedServiceObjectiveId overrides the value of requestedServiceObjectiveName.
    //
    // The list of SKUs may vary by region and support offer. To determine the service objective ids that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API.
    RequestedServiceObjectiveID *uuid.UUID `json:"requestedServiceObjectiveId,omitempty"`
    // RequestedServiceObjectiveName - The name of the configured service level objective of the database. This is the service level objective that is in the process of being applied to the database. Once successfully updated, it will match the value of serviceLevelObjective property.
    //
    // The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands:
    //
    // ```azurecli
    // az sql db list-editions -l <location> -o table
    // ````
    //
    // ```powershell
    // Get-AzSqlServerServiceObjective -Location <location>
    // ````
    // . Possible values include: 'ServiceObjectiveNameSystem', 'ServiceObjectiveNameSystem0', 'ServiceObjectiveNameSystem1', 'ServiceObjectiveNameSystem2', 'ServiceObjectiveNameSystem3', 'ServiceObjectiveNameSystem4', 'ServiceObjectiveNameSystem2L', 'ServiceObjectiveNameSystem3L', 'ServiceObjectiveNameSystem4L', 'ServiceObjectiveNameFree', 'ServiceObjectiveNameBasic', 'ServiceObjectiveNameS0', 'ServiceObjectiveNameS1', 'ServiceObjectiveNameS2', 'ServiceObjectiveNameS3', 'ServiceObjectiveNameS4', 'ServiceObjectiveNameS6', 'ServiceObjectiveNameS7', 'ServiceObjectiveNameS9', 'ServiceObjectiveNameS12', 'ServiceObjectiveNameP1', 'ServiceObjectiveNameP2', 'ServiceObjectiveNameP3', 'ServiceObjectiveNameP4', 'ServiceObjectiveNameP6', 'ServiceObjectiveNameP11', 'ServiceObjectiveNameP15', 'ServiceObjectiveNamePRS1', 'ServiceObjectiveNamePRS2', 'ServiceObjectiveNamePRS4', 'ServiceObjectiveNamePRS6', 'ServiceObjectiveNameDW100', 'ServiceObjectiveNameDW200', 'ServiceObjectiveNameDW300', 'ServiceObjectiveNameDW400', 'ServiceObjectiveNameDW500', 'ServiceObjectiveNameDW600', 'ServiceObjectiveNameDW1000', 'ServiceObjectiveNameDW1200', 'ServiceObjectiveNameDW1000c', 'ServiceObjectiveNameDW1500', 'ServiceObjectiveNameDW1500c', 'ServiceObjectiveNameDW2000', 'ServiceObjectiveNameDW2000c', 'ServiceObjectiveNameDW3000', 'ServiceObjectiveNameDW2500c', 'ServiceObjectiveNameDW3000c', 'ServiceObjectiveNameDW6000', 'ServiceObjectiveNameDW5000c', 'ServiceObjectiveNameDW6000c', 'ServiceObjectiveNameDW7500c', 'ServiceObjectiveNameDW10000c', 'ServiceObjectiveNameDW15000c', 'ServiceObjectiveNameDW30000c', 'ServiceObjectiveNameDS100', 'ServiceObjectiveNameDS200', 'ServiceObjectiveNameDS300', 'ServiceObjectiveNameDS400', 'ServiceObjectiveNameDS500', 'ServiceObjectiveNameDS600', 'ServiceObjectiveNameDS1000', 'ServiceObjectiveNameDS1200', 'ServiceObjectiveNameDS1500', 'ServiceObjectiveNameDS2000', 'ServiceObjectiveNameElasticPool'
    RequestedServiceObjectiveName ServiceObjectiveName `json:"requestedServiceObjectiveName,omitempty"`
    // ServiceLevelObjective - READ-ONLY; The current service level objective of the database. Possible values include: 'ServiceObjectiveNameSystem', 'ServiceObjectiveNameSystem0', 'ServiceObjectiveNameSystem1', 'ServiceObjectiveNameSystem2', 'ServiceObjectiveNameSystem3', 'ServiceObjectiveNameSystem4', 'ServiceObjectiveNameSystem2L', 'ServiceObjectiveNameSystem3L', 'ServiceObjectiveNameSystem4L', 'ServiceObjectiveNameFree', 'ServiceObjectiveNameBasic', 'ServiceObjectiveNameS0', 'ServiceObjectiveNameS1', 'ServiceObjectiveNameS2', 'ServiceObjectiveNameS3', 'ServiceObjectiveNameS4', 'ServiceObjectiveNameS6', 'ServiceObjectiveNameS7', 'ServiceObjectiveNameS9', 'ServiceObjectiveNameS12', 'ServiceObjectiveNameP1', 'ServiceObjectiveNameP2', 'ServiceObjectiveNameP3', 'ServiceObjectiveNameP4', 'ServiceObjectiveNameP6', 'ServiceObjectiveNameP11', 'ServiceObjectiveNameP15', 'ServiceObjectiveNamePRS1', 'ServiceObjectiveNamePRS2', 'ServiceObjectiveNamePRS4', 'ServiceObjectiveNamePRS6', 'ServiceObjectiveNameDW100', 'ServiceObjectiveNameDW200', 'ServiceObjectiveNameDW300', 'ServiceObjectiveNameDW400', 'ServiceObjectiveNameDW500', 'ServiceObjectiveNameDW600', 'ServiceObjectiveNameDW1000', 'ServiceObjectiveNameDW1200', 'ServiceObjectiveNameDW1000c', 'ServiceObjectiveNameDW1500', 'ServiceObjectiveNameDW1500c', 'ServiceObjectiveNameDW2000', 'ServiceObjectiveNameDW2000c', 'ServiceObjectiveNameDW3000', 'ServiceObjectiveNameDW2500c', 'ServiceObjectiveNameDW3000c', 'ServiceObjectiveNameDW6000', 'ServiceObjectiveNameDW5000c', 'ServiceObjectiveNameDW6000c', 'ServiceObjectiveNameDW7500c', 'ServiceObjectiveNameDW10000c', 'ServiceObjectiveNameDW15000c', 'ServiceObjectiveNameDW30000c', 'ServiceObjectiveNameDS100', 'ServiceObjectiveNameDS200', 'ServiceObjectiveNameDS300', 'ServiceObjectiveNameDS400', 'ServiceObjectiveNameDS500', 'ServiceObjectiveNameDS600', 'ServiceObjectiveNameDS1000', 'ServiceObjectiveNameDS1200', 'ServiceObjectiveNameDS1500', 'ServiceObjectiveNameDS2000', 'ServiceObjectiveNameElasticPool'
    ServiceLevelObjective ServiceObjectiveName `json:"serviceLevelObjective,omitempty"`
    // Status - READ-ONLY; The status of the database.
    Status *string `json:"status,omitempty"`
    // ElasticPoolName - The name of the elastic pool the database is in. If elasticPoolName and requestedServiceObjectiveName are both updated, the value of requestedServiceObjectiveName is ignored. Not supported for DataWarehouse edition.
    ElasticPoolName *string `json:"elasticPoolName,omitempty"`
    // DefaultSecondaryLocation - READ-ONLY; The default secondary region for this database.
    DefaultSecondaryLocation *string `json:"defaultSecondaryLocation,omitempty"`
    // ServiceTierAdvisors - READ-ONLY; The list of service tier advisors for this database. Expanded property
    ServiceTierAdvisors *[]ServiceTierAdvisor `json:"serviceTierAdvisors,omitempty"`
    // TransparentDataEncryption - READ-ONLY; The transparent data encryption info for this database.
    TransparentDataEncryption *[]TransparentDataEncryption `json:"transparentDataEncryption,omitempty"`
    // RecommendedIndex - READ-ONLY; The recommended indices for this database.
    RecommendedIndex *[]RecommendedIndex `json:"recommendedIndex,omitempty"`
    // FailoverGroupID - READ-ONLY; The resource identifier of the failover group containing this database.
    FailoverGroupID *string `json:"failoverGroupId,omitempty"`
    // ReadScale - Conditional. If the database is a geo-secondary, readScale indicates whether read-only connections are allowed to this database or not. Not supported for DataWarehouse edition. Possible values include: 'ReadScaleEnabled', 'ReadScaleDisabled'
    ReadScale ReadScale `json:"readScale,omitempty"`
    // SampleName - Indicates the name of the sample schema to apply when creating this database. If createMode is not Default, this value is ignored. Not supported for DataWarehouse edition. Possible values include: 'AdventureWorksLT'
    SampleName SampleName `json:"sampleName,omitempty"`
    // ZoneRedundant - Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones.
    ZoneRedundant *bool `json:"zoneRedundant,omitempty"`
}

DatabaseProperties represents the properties of a database.

type DatabaseSecurityAlertPolicy Uses

type DatabaseSecurityAlertPolicy struct {
    autorest.Response `json:"-"`
    // Location - The geo-location where the resource lives
    Location *string `json:"location,omitempty"`
    // Kind - READ-ONLY; Resource kind.
    Kind *string `json:"kind,omitempty"`
    // DatabaseSecurityAlertPolicyProperties - Properties of the security alert policy.
    *DatabaseSecurityAlertPolicyProperties `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 contains information about a database Threat Detection 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 DatabaseSecurityAlertPolicyProperties Uses

type DatabaseSecurityAlertPolicyProperties struct {
    // State - Specifies the state of the policy. If state is Enabled, storageEndpoint and storageAccountAccessKey are required. Possible values include: 'SecurityAlertPolicyStateNew', 'SecurityAlertPolicyStateEnabled', 'SecurityAlertPolicyStateDisabled'
    State SecurityAlertPolicyState `json:"state,omitempty"`
    // DisabledAlerts - Specifies the semicolon-separated list of alerts that are disabled, or empty string to disable no alerts. Possible values: Sql_Injection; Sql_Injection_Vulnerability; Access_Anomaly; Data_Exfiltration; Unsafe_Action.
    DisabledAlerts *string `json:"disabledAlerts,omitempty"`
    // EmailAddresses - Specifies the semicolon-separated list 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. Possible values include: 'SecurityAlertPolicyEmailAccountAdminsEnabled', 'SecurityAlertPolicyEmailAccountAdminsDisabled'
    EmailAccountAdmins SecurityAlertPolicyEmailAccountAdmins `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. If state is Enabled, storageEndpoint is required.
    StorageEndpoint *string `json:"storageEndpoint,omitempty"`
    // StorageAccountAccessKey - Specifies the identifier key of the Threat Detection audit storage account. If state is Enabled, storageAccountAccessKey is required.
    StorageAccountAccessKey *string `json:"storageAccountAccessKey,omitempty"`
    // RetentionDays - Specifies the number of days to keep in the Threat Detection audit logs.
    RetentionDays *int32 `json:"retentionDays,omitempty"`
    // UseServerDefault - Specifies whether to use the default server policy. Possible values include: 'SecurityAlertPolicyUseServerDefaultEnabled', 'SecurityAlertPolicyUseServerDefaultDisabled'
    UseServerDefault SecurityAlertPolicyUseServerDefault `json:"useServerDefault,omitempty"`
}

DatabaseSecurityAlertPolicyProperties properties for a database Threat Detection policy.

type DatabaseThreatDetectionPoliciesClient Uses

type DatabaseThreatDetectionPoliciesClient struct {
    BaseClient
}

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

func NewDatabaseThreatDetectionPoliciesClient(subscriptionID string) DatabaseThreatDetectionPoliciesClient

NewDatabaseThreatDetectionPoliciesClient creates an instance of the DatabaseThreatDetectionPoliciesClient client.

func NewDatabaseThreatDetectionPoliciesClientWithBaseURI Uses

func NewDatabaseThreatDetectionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) DatabaseThreatDetectionPoliciesClient

NewDatabaseThreatDetectionPoliciesClientWithBaseURI creates an instance of the DatabaseThreatDetectionPoliciesClient client.

func (DatabaseThreatDetectionPoliciesClient) CreateOrUpdate Uses

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

CreateOrUpdate creates or updates a database's threat detection 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 database Threat Detection policy is defined. parameters - the database Threat Detection policy.

func (DatabaseThreatDetectionPoliciesClient) CreateOrUpdatePreparer Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DatabaseThreatDetectionPoliciesClient) CreateOrUpdateResponder Uses

func (client DatabaseThreatDetectionPoliciesClient) 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 (DatabaseThreatDetectionPoliciesClient) CreateOrUpdateSender Uses

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

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

Get gets a database's threat detection 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 database Threat Detection policy is defined.

func (DatabaseThreatDetectionPoliciesClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (DatabaseThreatDetectionPoliciesClient) GetResponder Uses

func (client DatabaseThreatDetectionPoliciesClient) 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 (DatabaseThreatDetectionPoliciesClient) GetSender Uses

func (client DatabaseThreatDetectionPoliciesClient) 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 DatabaseUpdate Uses

type DatabaseUpdate struct {
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // DatabaseProperties - The properties representing the resource.
    *DatabaseProperties `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"`
}

DatabaseUpdate represents a database update.

func (DatabaseUpdate) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for DatabaseUpdate.

func (*DatabaseUpdate) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for DatabaseUpdate struct.

type 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) CreateImportOperation Uses

func (client DatabasesClient) CreateImportOperation(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters ImportExtensionRequest) (result DatabasesCreateImportOperationFuture, err error)

CreateImportOperation creates an import operation that imports a bacpac into an existing database. The existing database must be empty. 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 import into parameters - the required parameters for importing a Bacpac into a database.

func (DatabasesClient) CreateImportOperationPreparer Uses

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

CreateImportOperationPreparer prepares the CreateImportOperation request.

func (DatabasesClient) CreateImportOperationResponder Uses

func (client DatabasesClient) CreateImportOperationResponder(resp *http.Response) (result ImportExportResponse, err error)

CreateImportOperationResponder handles the response to the CreateImportOperation request. The method always closes the http.Response Body.

func (DatabasesClient) CreateImportOperationSender Uses

func (client DatabasesClient) CreateImportOperationSender(req *http.Request) (future DatabasesCreateImportOperationFuture, err error)

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

func (DatabasesClient) CreateOrUpdate Uses

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

CreateOrUpdate creates a new database or updates an existing database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database to be operated on (updated or created). parameters - the required parameters for creating or updating a database.

func (DatabasesClient) CreateOrUpdatePreparer Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DatabasesClient) CreateOrUpdateResponder Uses

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

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

func (DatabasesClient) CreateOrUpdateSender Uses

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

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

func (DatabasesClient) Delete Uses

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

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

func (DatabasesClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (DatabasesClient) DeleteResponder Uses

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

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

func (DatabasesClient) DeleteSender Uses

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

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

func (DatabasesClient) Export Uses

func (client DatabasesClient) Export(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters ExportRequest) (result DatabasesExportFuture, err error)

Export exports a database to a bacpac. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database to be exported. parameters - the required parameters for exporting a database.

func (DatabasesClient) ExportPreparer Uses

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

ExportPreparer prepares the Export request.

func (DatabasesClient) ExportResponder Uses

func (client DatabasesClient) ExportResponder(resp *http.Response) (result ImportExportResponse, err error)

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

func (DatabasesClient) ExportSender Uses

func (client DatabasesClient) ExportSender(req *http.Request) (future DatabasesExportFuture, err error)

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

func (DatabasesClient) Get Uses

func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string, expand string) (result Database, err error)

Get gets a database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database to be retrieved. expand - a comma separated list of child objects to expand in the response. Possible properties: serviceTierAdvisors, transparentDataEncryption.

func (DatabasesClient) GetByElasticPool Uses

func (client DatabasesClient) GetByElasticPool(ctx context.Context, resourceGroupName string, serverName string, elasticPoolName string, databaseName string) (result Database, err error)

GetByElasticPool gets a database inside of 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 be retrieved. databaseName - the name of the database to be retrieved.

func (DatabasesClient) GetByElasticPoolPreparer Uses

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

GetByElasticPoolPreparer prepares the GetByElasticPool request.

func (DatabasesClient) GetByElasticPoolResponder Uses

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

GetByElasticPoolResponder handles the response to the GetByElasticPool request. The method always closes the http.Response Body.

func (DatabasesClient) GetByElasticPoolSender Uses

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

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

func (DatabasesClient) GetByRecommendedElasticPool Uses

func (client DatabasesClient) GetByRecommendedElasticPool(ctx context.Context, resourceGroupName string, serverName string, recommendedElasticPoolName string, databaseName string) (result Database, err error)

GetByRecommendedElasticPool gets a database inside of a recommended 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. recommendedElasticPoolName - the name of the elastic pool to be retrieved. databaseName - the name of the database to be retrieved.

func (DatabasesClient) GetByRecommendedElasticPoolPreparer Uses

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

GetByRecommendedElasticPoolPreparer prepares the GetByRecommendedElasticPool request.

func (DatabasesClient) GetByRecommendedElasticPoolResponder Uses

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

GetByRecommendedElasticPoolResponder handles the response to the GetByRecommendedElasticPool request. The method always closes the http.Response Body.

func (DatabasesClient) GetByRecommendedElasticPoolSender Uses

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

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

func (DatabasesClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (DatabasesClient) GetResponder Uses

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

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

func (DatabasesClient) GetSender Uses

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

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

func (DatabasesClient) Import Uses

func (client DatabasesClient) Import(ctx context.Context, resourceGroupName string, serverName string, parameters ImportRequest) (result DatabasesImportFuture, err error)

Import imports a bacpac into a new 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. parameters - the required parameters for importing a Bacpac into a database.

func (DatabasesClient) ImportPreparer Uses

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

ImportPreparer prepares the Import request.

func (DatabasesClient) ImportResponder Uses

func (client DatabasesClient) ImportResponder(resp *http.Response) (result ImportExportResponse, err error)

ImportResponder handles the response to the Import request. The method always closes the http.Response Body.

func (DatabasesClient) ImportSender Uses

func (client DatabasesClient) ImportSender(req *http.Request) (future DatabasesImportFuture, err error)

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

func (DatabasesClient) ListByElasticPool Uses

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

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

func (DatabasesClient) ListByElasticPoolPreparer Uses

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

ListByElasticPoolPreparer prepares the ListByElasticPool request.

func (DatabasesClient) ListByElasticPoolResponder Uses

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

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

func (DatabasesClient) ListByElasticPoolSender Uses

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

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

func (DatabasesClient) ListByRecommendedElasticPool Uses

func (client DatabasesClient) ListByRecommendedElasticPool(ctx context.Context, resourceGroupName string, serverName string, recommendedElasticPoolName string) (result DatabaseListResult, err error)

ListByRecommendedElasticPool returns a list of databases inside a recommended 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. recommendedElasticPoolName - the name of the recommended elastic pool to be retrieved.

func (DatabasesClient) ListByRecommendedElasticPoolPreparer Uses

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

ListByRecommendedElasticPoolPreparer prepares the ListByRecommendedElasticPool request.

func (DatabasesClient) ListByRecommendedElasticPoolResponder Uses

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

ListByRecommendedElasticPoolResponder handles the response to the ListByRecommendedElasticPool request. The method always closes the http.Response Body.

func (DatabasesClient) ListByRecommendedElasticPoolSender Uses

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

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

func (DatabasesClient) ListByServer Uses

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

ListByServer returns a list of databases in a server. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. expand - a comma separated list of child objects to expand in the response. Possible properties: serviceTierAdvisors, transparentDataEncryption. filter - an OData filter expression that describes a subset of databases to return.

func (DatabasesClient) ListByServerPreparer Uses

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

ListByServerPreparer prepares the ListByServer request.

func (DatabasesClient) ListByServerResponder Uses

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

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

func (DatabasesClient) ListByServerSender Uses

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

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

func (DatabasesClient) Pause Uses

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

Pause pauses a data warehouse. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the data warehouse to pause.

func (DatabasesClient) PausePreparer Uses

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

PausePreparer prepares the Pause request.

func (DatabasesClient) PauseResponder Uses

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

PauseResponder handles the response to the Pause request. The method always closes the http.Response Body.

func (DatabasesClient) PauseSender Uses

func (client DatabasesClient) PauseSender(req *http.Request) (future DatabasesPauseFuture, err error)

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

func (DatabasesClient) Resume Uses

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

Resume resumes a data warehouse. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the data warehouse to resume.

func (DatabasesClient) ResumePreparer Uses

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

ResumePreparer prepares the Resume request.

func (DatabasesClient) ResumeResponder Uses

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

ResumeResponder handles the response to the Resume request. The method always closes the http.Response Body.

func (DatabasesClient) ResumeSender Uses

func (client DatabasesClient) ResumeSender(req *http.Request) (future DatabasesResumeFuture, err error)

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

func (DatabasesClient) Update Uses

func (client DatabasesClient) Update(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters DatabaseUpdate) (result DatabasesUpdateFuture, err error)

Update updates an existing database. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database to be updated. parameters - the required parameters for updating a database.

func (DatabasesClient) UpdatePreparer Uses

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

UpdatePreparer prepares the Update request.

func (DatabasesClient) UpdateResponder Uses

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

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

func (DatabasesClient) UpdateSender Uses

func (client DatabasesClient) UpdateSender(req *http.Request) (future DatabasesUpdateFuture, err error)

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

type DatabasesCreateImportOperationFuture Uses

type DatabasesCreateImportOperationFuture struct {
    azure.Future
}

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

func (*DatabasesCreateImportOperationFuture) Result Uses

func (future *DatabasesCreateImportOperationFuture) Result(client DatabasesClient) (ier ImportExportResponse, err error)

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

type DatabasesCreateOrUpdateFuture Uses

type DatabasesCreateOrUpdateFuture struct {
    azure.Future
}

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

func (*DatabasesCreateOrUpdateFuture) Result Uses

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

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

type DatabasesExportFuture Uses

type DatabasesExportFuture struct {
    azure.Future
}

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

func (*DatabasesExportFuture) Result Uses

func (future *DatabasesExportFuture) Result(client DatabasesClient) (ier ImportExportResponse, err error)

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

type DatabasesImportFuture Uses

type DatabasesImportFuture struct {
    azure.Future
}

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

func (*DatabasesImportFuture) Result Uses

func (future *DatabasesImportFuture) Result(client DatabasesClient) (ier ImportExportResponse, err error)

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

type DatabasesPauseFuture Uses

type DatabasesPauseFuture struct {
    azure.Future
}

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

func (*DatabasesPauseFuture) Result Uses

func (future *DatabasesPauseFuture) Result(client DatabasesClient) (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 DatabasesResumeFuture Uses

type DatabasesResumeFuture struct {
    azure.Future
}

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

func (*DatabasesResumeFuture) Result Uses

func (future *DatabasesResumeFuture) Result(client DatabasesClient) (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 DatabasesUpdateFuture Uses

type DatabasesUpdateFuture struct {
    azure.Future
}

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

func (*DatabasesUpdateFuture) Result Uses

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

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

type ElasticPool Uses

type ElasticPool struct {
    autorest.Response `json:"-"`
    // ElasticPoolProperties - The properties representing the resource.
    *ElasticPoolProperties `json:"properties,omitempty"`
    // Kind - READ-ONLY; Kind of elastic pool.  This is metadata used for the Azure portal experience.
    Kind *string `json:"kind,omitempty"`
    // Location - Resource location.
    Location *string `json:"location,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // ID - READ-ONLY; Resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
}

ElasticPool represents a database elastic pool.

func (ElasticPool) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ElasticPool.

func (*ElasticPool) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ElasticPool struct.

type ElasticPoolActivitiesClient Uses

type ElasticPoolActivitiesClient struct {
    BaseClient
}

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

func NewElasticPoolActivitiesClient(subscriptionID string) ElasticPoolActivitiesClient

NewElasticPoolActivitiesClient creates an instance of the ElasticPoolActivitiesClient client.

func NewElasticPoolActivitiesClientWithBaseURI Uses

func NewElasticPoolActivitiesClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolActivitiesClient

NewElasticPoolActivitiesClientWithBaseURI creates an instance of the ElasticPoolActivitiesClient client.

func (ElasticPoolActivitiesClient) ListByElasticPool Uses

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

ListByElasticPool returns elastic pool activities. 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 for which to get the current activity.

func (ElasticPoolActivitiesClient) ListByElasticPoolPreparer Uses

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

ListByElasticPoolPreparer prepares the ListByElasticPool request.

func (ElasticPoolActivitiesClient) ListByElasticPoolResponder Uses

func (client ElasticPoolActivitiesClient) ListByElasticPoolResponder(resp *http.Response) (result ElasticPoolActivityListResult, err error)

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

func (ElasticPoolActivitiesClient) ListByElasticPoolSender Uses

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

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

type ElasticPoolActivity Uses

type ElasticPoolActivity struct {
    // Location - The geo-location where the resource lives
    Location *string `json:"location,omitempty"`
    // ElasticPoolActivityProperties - The properties representing the resource.
    *ElasticPoolActivityProperties `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"`
}

ElasticPoolActivity represents the activity on an elastic pool.

func (ElasticPoolActivity) MarshalJSON Uses

func (epa ElasticPoolActivity) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ElasticPoolActivity.

func (*ElasticPoolActivity) UnmarshalJSON Uses

func (epa *ElasticPoolActivity) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ElasticPoolActivity struct.

type ElasticPoolActivityListResult Uses

type ElasticPoolActivityListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of elastic pool activities.
    Value *[]ElasticPoolActivity `json:"value,omitempty"`
}

ElasticPoolActivityListResult represents the response to a list elastic pool activity request.

type ElasticPoolActivityProperties Uses

type ElasticPoolActivityProperties struct {
    // EndTime - READ-ONLY; The time the operation finished (ISO8601 format).
    EndTime *date.Time `json:"endTime,omitempty"`
    // ErrorCode - READ-ONLY; The error code if available.
    ErrorCode *int32 `json:"errorCode,omitempty"`
    // ErrorMessage - READ-ONLY; The error message if available.
    ErrorMessage *string `json:"errorMessage,omitempty"`
    // ErrorSeverity - READ-ONLY; The error severity if available.
    ErrorSeverity *int32 `json:"errorSeverity,omitempty"`
    // Operation - READ-ONLY; The operation name.
    Operation *string `json:"operation,omitempty"`
    // OperationID - READ-ONLY; The unique operation ID.
    OperationID *uuid.UUID `json:"operationId,omitempty"`
    // PercentComplete - READ-ONLY; The percentage complete if available.
    PercentComplete *int32 `json:"percentComplete,omitempty"`
    // RequestedDatabaseDtuMax - READ-ONLY; The requested max DTU per database if available.
    RequestedDatabaseDtuMax *int32 `json:"requestedDatabaseDtuMax,omitempty"`
    // RequestedDatabaseDtuMin - READ-ONLY; The requested min DTU per database if available.
    RequestedDatabaseDtuMin *int32 `json:"requestedDatabaseDtuMin,omitempty"`
    // RequestedDtu - READ-ONLY; The requested DTU for the pool if available.
    RequestedDtu *int32 `json:"requestedDtu,omitempty"`
    // RequestedElasticPoolName - READ-ONLY; The requested name for the elastic pool if available.
    RequestedElasticPoolName *string `json:"requestedElasticPoolName,omitempty"`
    // RequestedStorageLimitInGB - READ-ONLY; The requested storage limit for the pool in GB if available.
    RequestedStorageLimitInGB *int64 `json:"requestedStorageLimitInGB,omitempty"`
    // ElasticPoolName - READ-ONLY; The name of the elastic pool.
    ElasticPoolName *string `json:"elasticPoolName,omitempty"`
    // ServerName - READ-ONLY; The name of the server the elastic pool is in.
    ServerName *string `json:"serverName,omitempty"`
    // StartTime - READ-ONLY; The time the operation started (ISO8601 format).
    StartTime *date.Time `json:"startTime,omitempty"`
    // State - READ-ONLY; The current state of the operation.
    State *string `json:"state,omitempty"`
    // RequestedStorageLimitInMB - READ-ONLY; The requested storage limit in MB.
    RequestedStorageLimitInMB *int32 `json:"requestedStorageLimitInMB,omitempty"`
    // RequestedDatabaseDtuGuarantee - READ-ONLY; The requested per database DTU guarantee.
    RequestedDatabaseDtuGuarantee *int32 `json:"requestedDatabaseDtuGuarantee,omitempty"`
    // RequestedDatabaseDtuCap - READ-ONLY; The requested per database DTU cap.
    RequestedDatabaseDtuCap *int32 `json:"requestedDatabaseDtuCap,omitempty"`
    // RequestedDtuGuarantee - READ-ONLY; The requested DTU guarantee.
    RequestedDtuGuarantee *int32 `json:"requestedDtuGuarantee,omitempty"`
}

ElasticPoolActivityProperties represents the properties of an elastic pool.

type ElasticPoolDatabaseActivitiesClient Uses

type ElasticPoolDatabaseActivitiesClient struct {
    BaseClient
}

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

func NewElasticPoolDatabaseActivitiesClient(subscriptionID string) ElasticPoolDatabaseActivitiesClient

NewElasticPoolDatabaseActivitiesClient creates an instance of the ElasticPoolDatabaseActivitiesClient client.

func NewElasticPoolDatabaseActivitiesClientWithBaseURI Uses

func NewElasticPoolDatabaseActivitiesClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolDatabaseActivitiesClient

NewElasticPoolDatabaseActivitiesClientWithBaseURI creates an instance of the ElasticPoolDatabaseActivitiesClient client.

func (ElasticPoolDatabaseActivitiesClient) ListByElasticPool Uses

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

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

func (ElasticPoolDatabaseActivitiesClient) ListByElasticPoolPreparer Uses

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

ListByElasticPoolPreparer prepares the ListByElasticPool request.

func (ElasticPoolDatabaseActivitiesClient) ListByElasticPoolResponder Uses

func (client ElasticPoolDatabaseActivitiesClient) ListByElasticPoolResponder(resp *http.Response) (result ElasticPoolDatabaseActivityListResult, err error)

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

func (ElasticPoolDatabaseActivitiesClient) ListByElasticPoolSender Uses

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

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

type ElasticPoolDatabaseActivity Uses

type ElasticPoolDatabaseActivity struct {
    // Location - The geo-location where the resource lives
    Location *string `json:"location,omitempty"`
    // ElasticPoolDatabaseActivityProperties - The properties representing the resource.
    *ElasticPoolDatabaseActivityProperties `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"`
}

ElasticPoolDatabaseActivity represents the activity on an elastic pool.

func (ElasticPoolDatabaseActivity) MarshalJSON Uses

func (epda ElasticPoolDatabaseActivity) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ElasticPoolDatabaseActivity.

func (*ElasticPoolDatabaseActivity) UnmarshalJSON Uses

func (epda *ElasticPoolDatabaseActivity) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ElasticPoolDatabaseActivity struct.

type ElasticPoolDatabaseActivityListResult Uses

type ElasticPoolDatabaseActivityListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of elastic pool database activities.
    Value *[]ElasticPoolDatabaseActivity `json:"value,omitempty"`
}

ElasticPoolDatabaseActivityListResult represents the response to a list elastic pool database activity request.

type ElasticPoolDatabaseActivityProperties Uses

type ElasticPoolDatabaseActivityProperties struct {
    // DatabaseName - READ-ONLY; The database name.
    DatabaseName *string `json:"databaseName,omitempty"`
    // EndTime - READ-ONLY; The time the operation finished (ISO8601 format).
    EndTime *date.Time `json:"endTime,omitempty"`
    // ErrorCode - READ-ONLY; The error code if available.
    ErrorCode *int32 `json:"errorCode,omitempty"`
    // ErrorMessage - READ-ONLY; The error message if available.
    ErrorMessage *string `json:"errorMessage,omitempty"`
    // ErrorSeverity - READ-ONLY; The error severity if available.
    ErrorSeverity *int32 `json:"errorSeverity,omitempty"`
    // Operation - READ-ONLY; The operation name.
    Operation *string `json:"operation,omitempty"`
    // OperationID - READ-ONLY; The unique operation ID.
    OperationID *uuid.UUID `json:"operationId,omitempty"`
    // PercentComplete - READ-ONLY; The percentage complete if available.
    PercentComplete *int32 `json:"percentComplete,omitempty"`
    // RequestedElasticPoolName - READ-ONLY; The name for the elastic pool the database is moving into if available.
    RequestedElasticPoolName *string `json:"requestedElasticPoolName,omitempty"`
    // CurrentElasticPoolName - READ-ONLY; The name of the current elastic pool the database is in if available.
    CurrentElasticPoolName *string `json:"currentElasticPoolName,omitempty"`
    // CurrentServiceObjective - READ-ONLY; The name of the current service objective if available.
    CurrentServiceObjective *string `json:"currentServiceObjective,omitempty"`
    // RequestedServiceObjective - READ-ONLY; The name of the requested service objective if available.
    RequestedServiceObjective *string `json:"requestedServiceObjective,omitempty"`
    // ServerName - READ-ONLY; The name of the server the elastic pool is in.
    ServerName *string `json:"serverName,omitempty"`
    // StartTime - READ-ONLY; The time the operation started (ISO8601 format).
    StartTime *date.Time `json:"startTime,omitempty"`
    // State - READ-ONLY; The current state of the operation.
    State *string `json:"state,omitempty"`
}

ElasticPoolDatabaseActivityProperties represents the properties of an elastic pool database activity.

type ElasticPoolEdition Uses

type ElasticPoolEdition string

ElasticPoolEdition enumerates the values for elastic pool edition.

const (
    // ElasticPoolEditionBasic ...
    ElasticPoolEditionBasic ElasticPoolEdition = "Basic"
    // ElasticPoolEditionBusinessCritical ...
    ElasticPoolEditionBusinessCritical ElasticPoolEdition = "BusinessCritical"
    // ElasticPoolEditionGeneralPurpose ...
    ElasticPoolEditionGeneralPurpose ElasticPoolEdition = "GeneralPurpose"
    // ElasticPoolEditionPremium ...
    ElasticPoolEditionPremium ElasticPoolEdition = "Premium"
    // ElasticPoolEditionStandard ...
    ElasticPoolEditionStandard ElasticPoolEdition = "Standard"
)

func PossibleElasticPoolEditionValues Uses

func PossibleElasticPoolEditionValues() []ElasticPoolEdition

PossibleElasticPoolEditionValues returns an array of possible values for the ElasticPoolEdition const type.

type ElasticPoolListResult Uses

type ElasticPoolListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of elastic pools hosted in the server.
    Value *[]ElasticPool `json:"value,omitempty"`
}

ElasticPoolListResult represents the response to a list elastic pool request.

type ElasticPoolProperties Uses

type ElasticPoolProperties struct {
    // CreationDate - READ-ONLY; The creation date of the elastic pool (ISO8601 format).
    CreationDate *date.Time `json:"creationDate,omitempty"`
    // State - READ-ONLY; The state of the elastic pool. Possible values include: 'Creating', 'Ready', 'Disabled'
    State ElasticPoolState `json:"state,omitempty"`
    // Edition - The edition of the elastic pool. Possible values include: 'ElasticPoolEditionBasic', 'ElasticPoolEditionStandard', 'ElasticPoolEditionPremium', 'ElasticPoolEditionGeneralPurpose', 'ElasticPoolEditionBusinessCritical'
    Edition ElasticPoolEdition `json:"edition,omitempty"`
    // Dtu - The total shared DTU for the database elastic pool.
    Dtu *int32 `json:"dtu,omitempty"`
    // DatabaseDtuMax - The maximum DTU any one database can consume.
    DatabaseDtuMax *int32 `json:"databaseDtuMax,omitempty"`
    // DatabaseDtuMin - The minimum DTU all databases are guaranteed.
    DatabaseDtuMin *int32 `json:"databaseDtuMin,omitempty"`
    // StorageMB - Gets storage limit for the database elastic pool in MB.
    StorageMB *int32 `json:"storageMB,omitempty"`
    // ZoneRedundant - Whether or not this database elastic pool is zone redundant, which means the replicas of this database will be spread across multiple availability zones.
    ZoneRedundant *bool `json:"zoneRedundant,omitempty"`
}

ElasticPoolProperties represents the properties of an elastic pool.

type ElasticPoolState Uses

type ElasticPoolState string

ElasticPoolState enumerates the values for elastic pool state.

const (
    // Creating ...
    Creating ElasticPoolState = "Creating"
    // Disabled ...
    Disabled ElasticPoolState = "Disabled"
    // Ready ...
    Ready ElasticPoolState = "Ready"
)

func PossibleElasticPoolStateValues Uses

func PossibleElasticPoolStateValues() []ElasticPoolState

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

type ElasticPoolUpdate Uses

type ElasticPoolUpdate struct {
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // ElasticPoolProperties - The properties representing the resource.
    *ElasticPoolProperties `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"`
}

ElasticPoolUpdate represents an elastic pool update.

func (ElasticPoolUpdate) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ElasticPoolUpdate.

func (*ElasticPoolUpdate) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ElasticPoolUpdate struct.

type ElasticPoolsClient Uses

type ElasticPoolsClient struct {
    BaseClient
}

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

func NewElasticPoolsClient Uses

func NewElasticPoolsClient(subscriptionID string) ElasticPoolsClient

NewElasticPoolsClient creates an instance of the ElasticPoolsClient client.

func NewElasticPoolsClientWithBaseURI Uses

func NewElasticPoolsClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolsClient

NewElasticPoolsClientWithBaseURI creates an instance of the ElasticPoolsClient client.

func (ElasticPoolsClient) CreateOrUpdate Uses

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

CreateOrUpdate creates a new elastic pool or updates an existing 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 be operated on (updated or created). parameters - the required parameters for creating or updating an elastic pool.

func (ElasticPoolsClient) CreateOrUpdatePreparer Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ElasticPoolsClient) CreateOrUpdateResponder Uses

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

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

func (ElasticPoolsClient) CreateOrUpdateSender Uses

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

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

func (ElasticPoolsClient) Delete Uses

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

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

func (ElasticPoolsClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (ElasticPoolsClient) DeleteResponder Uses

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

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

func (ElasticPoolsClient) DeleteSender Uses

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

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

func (ElasticPoolsClient) Get Uses

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

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

func (ElasticPoolsClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (ElasticPoolsClient) GetResponder Uses

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

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

func (ElasticPoolsClient) GetSender Uses

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

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

func (ElasticPoolsClient) ListByServer Uses

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

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

func (ElasticPoolsClient) ListByServerPreparer Uses

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

ListByServerPreparer prepares the ListByServer request.

func (ElasticPoolsClient) ListByServerResponder Uses

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

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

func (ElasticPoolsClient) ListByServerSender Uses

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

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

func (ElasticPoolsClient) Update Uses

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

Update updates an existing 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 be updated. parameters - the required parameters for updating an elastic pool.

func (ElasticPoolsClient) UpdatePreparer Uses

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

UpdatePreparer prepares the Update request.

func (ElasticPoolsClient) UpdateResponder Uses

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

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

func (ElasticPoolsClient) UpdateSender Uses

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

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

type ElasticPoolsCreateOrUpdateFuture Uses

type ElasticPoolsCreateOrUpdateFuture struct {
    azure.Future
}

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

func (*ElasticPoolsCreateOrUpdateFuture) Result Uses

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

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

type ElasticPoolsUpdateFuture Uses

type ElasticPoolsUpdateFuture struct {
    azure.Future
}

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

func (*ElasticPoolsUpdateFuture) Result Uses

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

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

type ExportRequest Uses

type ExportRequest struct {
    // StorageKeyType - The type of the storage key to use. Possible values include: 'StorageAccessKey', 'SharedAccessKey'
    StorageKeyType StorageKeyType `json:"storageKeyType,omitempty"`
    // StorageKey - The storage key to use.  If storage key type is SharedAccessKey, it must be preceded with a "?."
    StorageKey *string `json:"storageKey,omitempty"`
    // StorageURI - The storage uri to use.
    StorageURI *string `json:"storageUri,omitempty"`
    // AdministratorLogin - The name of the SQL administrator.
    AdministratorLogin *string `json:"administratorLogin,omitempty"`
    // AdministratorLoginPassword - The password of the SQL administrator.
    AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"`
    // AuthenticationType - The authentication type. Possible values include: 'SQL', 'ADPassword'
    AuthenticationType AuthenticationType `json:"authenticationType,omitempty"`
}

ExportRequest export database parameters.

type FirewallRule Uses

type FirewallRule struct {
    autorest.Response `json:"-"`
    // Kind - READ-ONLY; Kind of server that contains this firewall rule.
    Kind *string `json:"kind,omitempty"`
    // Location - READ-ONLY; Location of the server that contains this firewall rule.
    Location *string `json:"location,omitempty"`
    // FirewallRuleProperties - The properties representing the resource.
    *FirewallRuleProperties `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"`
}

FirewallRule represents a server firewall rule.

func (FirewallRule) MarshalJSON Uses

func (fr FirewallRule) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for FirewallRule.

func (*FirewallRule) UnmarshalJSON Uses

func (fr *FirewallRule) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for FirewallRule struct.

type FirewallRuleListResult Uses

type FirewallRuleListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of server firewall rules.
    Value *[]FirewallRule `json:"value,omitempty"`
}

FirewallRuleListResult represents the response to a List Firewall Rules request.

type FirewallRuleProperties Uses

type FirewallRuleProperties struct {
    // StartIPAddress - The start IP address of the firewall rule. Must be IPv4 format. Use value '0.0.0.0' to represent all Azure-internal IP addresses.
    StartIPAddress *string `json:"startIpAddress,omitempty"`
    // EndIPAddress - The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to startIpAddress. Use value '0.0.0.0' to represent all Azure-internal IP addresses.
    EndIPAddress *string `json:"endIpAddress,omitempty"`
}

FirewallRuleProperties represents the properties of a server firewall rule.

type FirewallRulesClient Uses

type FirewallRulesClient struct {
    BaseClient
}

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

func NewFirewallRulesClient(subscriptionID string) FirewallRulesClient

NewFirewallRulesClient creates an instance of the FirewallRulesClient client.

func NewFirewallRulesClientWithBaseURI Uses

func NewFirewallRulesClientWithBaseURI(baseURI string, subscriptionID string) FirewallRulesClient

NewFirewallRulesClientWithBaseURI creates an instance of the FirewallRulesClient client.

func (FirewallRulesClient) CreateOrUpdate Uses

func (client FirewallRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string, parameters FirewallRule) (result FirewallRule, err error)

CreateOrUpdate creates or updates a firewall rule. 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. firewallRuleName - the name of the firewall rule. parameters - the required parameters for creating or updating a firewall rule.

func (FirewallRulesClient) CreateOrUpdatePreparer Uses

func (client FirewallRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string, parameters FirewallRule) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (FirewallRulesClient) CreateOrUpdateResponder Uses

func (client FirewallRulesClient) CreateOrUpdateResponder(resp *http.Response) (result FirewallRule, err error)

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

func (FirewallRulesClient) CreateOrUpdateSender Uses

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

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

Delete deletes a firewall rule. 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. firewallRuleName - the name of the firewall rule.

func (FirewallRulesClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (FirewallRulesClient) DeleteResponder Uses

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

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

func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (result FirewallRule, err error)

Get gets a firewall rule. 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. firewallRuleName - the name of the firewall rule.

func (FirewallRulesClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (FirewallRulesClient) GetResponder Uses

func (client FirewallRulesClient) GetResponder(resp *http.Response) (result FirewallRule, err error)

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

func (FirewallRulesClient) GetSender Uses

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

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

ListByServer returns a list of firewall rules. 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 (FirewallRulesClient) ListByServerPreparer Uses

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

ListByServerPreparer prepares the ListByServer request.

func (FirewallRulesClient) ListByServerResponder Uses

func (client FirewallRulesClient) ListByServerResponder(resp *http.Response) (result FirewallRuleListResult, err error)

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

func (FirewallRulesClient) ListByServerSender Uses

func (client FirewallRulesClient) 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 ImportExportResponse Uses

type ImportExportResponse struct {
    autorest.Response `json:"-"`
    // ImportExportResponseProperties - The import/export operation properties.
    *ImportExportResponseProperties `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"`
}

ImportExportResponse response for Import/Export Get operation.

func (ImportExportResponse) MarshalJSON Uses

func (ier ImportExportResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImportExportResponse.

func (*ImportExportResponse) UnmarshalJSON Uses

func (ier *ImportExportResponse) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ImportExportResponse struct.

type ImportExportResponseProperties Uses

type ImportExportResponseProperties struct {
    // RequestType - READ-ONLY; The request type of the operation.
    RequestType *string `json:"requestType,omitempty"`
    // RequestID - READ-ONLY; The request type of the operation.
    RequestID *uuid.UUID `json:"requestId,omitempty"`
    // ServerName - READ-ONLY; The name of the server.
    ServerName *string `json:"serverName,omitempty"`
    // DatabaseName - READ-ONLY; The name of the database.
    DatabaseName *string `json:"databaseName,omitempty"`
    // Status - READ-ONLY; The status message returned from the server.
    Status *string `json:"status,omitempty"`
    // LastModifiedTime - READ-ONLY; The operation status last modified time.
    LastModifiedTime *string `json:"lastModifiedTime,omitempty"`
    // QueuedTime - READ-ONLY; The operation queued time.
    QueuedTime *string `json:"queuedTime,omitempty"`
    // BlobURI - READ-ONLY; The blob uri.
    BlobURI *string `json:"blobUri,omitempty"`
    // ErrorMessage - READ-ONLY; The error message returned from the server.
    ErrorMessage *string `json:"errorMessage,omitempty"`
}

ImportExportResponseProperties response for Import/Export Status operation.

type ImportExtensionProperties Uses

type ImportExtensionProperties struct {
    // OperationMode - The type of import operation being performed. This is always Import.
    OperationMode *string `json:"operationMode,omitempty"`
    // StorageKeyType - The type of the storage key to use. Possible values include: 'StorageAccessKey', 'SharedAccessKey'
    StorageKeyType StorageKeyType `json:"storageKeyType,omitempty"`
    // StorageKey - The storage key to use.  If storage key type is SharedAccessKey, it must be preceded with a "?."
    StorageKey *string `json:"storageKey,omitempty"`
    // StorageURI - The storage uri to use.
    StorageURI *string `json:"storageUri,omitempty"`
    // AdministratorLogin - The name of the SQL administrator.
    AdministratorLogin *string `json:"administratorLogin,omitempty"`
    // AdministratorLoginPassword - The password of the SQL administrator.
    AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"`
    // AuthenticationType - The authentication type. Possible values include: 'SQL', 'ADPassword'
    AuthenticationType AuthenticationType `json:"authenticationType,omitempty"`
}

ImportExtensionProperties represents the properties for an import operation

type ImportExtensionRequest Uses

type ImportExtensionRequest struct {
    // Name - The name of the extension.
    Name *string `json:"name,omitempty"`
    // Type - The type of the extension.
    Type *string `json:"type,omitempty"`
    // ImportExtensionProperties - Represents the properties of the resource.
    *ImportExtensionProperties `json:"properties,omitempty"`
}

ImportExtensionRequest import database parameters.

func (ImportExtensionRequest) MarshalJSON Uses

func (ier ImportExtensionRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImportExtensionRequest.

func (*ImportExtensionRequest) UnmarshalJSON Uses

func (ier *ImportExtensionRequest) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ImportExtensionRequest struct.

type ImportRequest Uses

type ImportRequest struct {
    // DatabaseName - The name of the database to import.
    DatabaseName *string `json:"databaseName,omitempty"`
    // Edition - The edition for the database being created.
    //
    // The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands:
    //
    // ```azurecli
    // az sql db list-editions -l <location> -o table
    // ````
    //
    // ```powershell
    // Get-AzSqlServerServiceObjective -Location <location>
    // ````
    // . Possible values include: 'Web', 'Business', 'Basic', 'Standard', 'Premium', 'PremiumRS', 'Free', 'Stretch', 'DataWarehouse', 'System', 'System2', 'GeneralPurpose', 'BusinessCritical', 'Hyperscale'
    Edition DatabaseEdition `json:"edition,omitempty"`
    // ServiceObjectiveName - The name of the service objective to assign to the database. Possible values include: 'ServiceObjectiveNameSystem', 'ServiceObjectiveNameSystem0', 'ServiceObjectiveNameSystem1', 'ServiceObjectiveNameSystem2', 'ServiceObjectiveNameSystem3', 'ServiceObjectiveNameSystem4', 'ServiceObjectiveNameSystem2L', 'ServiceObjectiveNameSystem3L', 'ServiceObjectiveNameSystem4L', 'ServiceObjectiveNameFree', 'ServiceObjectiveNameBasic', 'ServiceObjectiveNameS0', 'ServiceObjectiveNameS1', 'ServiceObjectiveNameS2', 'ServiceObjectiveNameS3', 'ServiceObjectiveNameS4', 'ServiceObjectiveNameS6', 'ServiceObjectiveNameS7', 'ServiceObjectiveNameS9', 'ServiceObjectiveNameS12', 'ServiceObjectiveNameP1', 'ServiceObjectiveNameP2', 'ServiceObjectiveNameP3', 'ServiceObjectiveNameP4', 'ServiceObjectiveNameP6', 'ServiceObjectiveNameP11', 'ServiceObjectiveNameP15', 'ServiceObjectiveNamePRS1', 'ServiceObjectiveNamePRS2', 'ServiceObjectiveNamePRS4', 'ServiceObjectiveNamePRS6', 'ServiceObjectiveNameDW100', 'ServiceObjectiveNameDW200', 'ServiceObjectiveNameDW300', 'ServiceObjectiveNameDW400', 'ServiceObjectiveNameDW500', 'ServiceObjectiveNameDW600', 'ServiceObjectiveNameDW1000', 'ServiceObjectiveNameDW1200', 'ServiceObjectiveNameDW1000c', 'ServiceObjectiveNameDW1500', 'ServiceObjectiveNameDW1500c', 'ServiceObjectiveNameDW2000', 'ServiceObjectiveNameDW2000c', 'ServiceObjectiveNameDW3000', 'ServiceObjectiveNameDW2500c', 'ServiceObjectiveNameDW3000c', 'ServiceObjectiveNameDW6000', 'ServiceObjectiveNameDW5000c', 'ServiceObjectiveNameDW6000c', 'ServiceObjectiveNameDW7500c', 'ServiceObjectiveNameDW10000c', 'ServiceObjectiveNameDW15000c', 'ServiceObjectiveNameDW30000c', 'ServiceObjectiveNameDS100', 'ServiceObjectiveNameDS200', 'ServiceObjectiveNameDS300', 'ServiceObjectiveNameDS400', 'ServiceObjectiveNameDS500', 'ServiceObjectiveNameDS600', 'ServiceObjectiveNameDS1000', 'ServiceObjectiveNameDS1200', 'ServiceObjectiveNameDS1500', 'ServiceObjectiveNameDS2000', 'ServiceObjectiveNameElasticPool'
    ServiceObjectiveName ServiceObjectiveName `json:"serviceObjectiveName,omitempty"`
    // MaxSizeBytes - The maximum size for the newly imported database.
    MaxSizeBytes *string `json:"maxSizeBytes,omitempty"`
    // StorageKeyType - The type of the storage key to use. Possible values include: 'StorageAccessKey', 'SharedAccessKey'
    StorageKeyType StorageKeyType `json:"storageKeyType,omitempty"`
    // StorageKey - The storage key to use.  If storage key type is SharedAccessKey, it must be preceded with a "?."
    StorageKey *string `json:"storageKey,omitempty"`
    // StorageURI - The storage uri to use.
    StorageURI *string `json:"storageUri,omitempty"`
    // AdministratorLogin - The name of the SQL administrator.
    AdministratorLogin *string `json:"administratorLogin,omitempty"`
    // AdministratorLoginPassword - The password of the SQL administrator.
    AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"`
    // AuthenticationType - The authentication type. Possible values include: 'SQL', 'ADPassword'
    AuthenticationType AuthenticationType `json:"authenticationType,omitempty"`
}

ImportRequest import database parameters.

type OperationImpact Uses

type OperationImpact struct {
    // Name - READ-ONLY; The name of the impact dimension.
    Name *string `json:"name,omitempty"`
    // Unit - READ-ONLY; The unit in which estimated impact to dimension is measured.
    Unit *string `json:"unit,omitempty"`
    // ChangeValueAbsolute - READ-ONLY; The absolute impact to dimension.
    ChangeValueAbsolute *float64 `json:"changeValueAbsolute,omitempty"`
    // ChangeValueRelative - READ-ONLY; The relative impact to dimension (null if not applicable)
    ChangeValueRelative *float64 `json:"changeValueRelative,omitempty"`
}

OperationImpact the impact of an operation, both in absolute and relative terms.

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

type ReadScale string

ReadScale enumerates the values for read scale.

const (
    // ReadScaleDisabled ...
    ReadScaleDisabled ReadScale = "Disabled"
    // ReadScaleEnabled ...
    ReadScaleEnabled ReadScale = "Enabled"
)

func PossibleReadScaleValues Uses

func PossibleReadScaleValues() []ReadScale

PossibleReadScaleValues returns an array of possible values for the ReadScale const type.

type RecommendedElasticPool Uses

type RecommendedElasticPool struct {
    autorest.Response `json:"-"`
    // RecommendedElasticPoolProperties - The properties representing the resource.
    *RecommendedElasticPoolProperties `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"`
}

RecommendedElasticPool represents a recommended elastic pool.

func (RecommendedElasticPool) MarshalJSON Uses

func (rep RecommendedElasticPool) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RecommendedElasticPool.

func (*RecommendedElasticPool) UnmarshalJSON Uses

func (rep *RecommendedElasticPool) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RecommendedElasticPool struct.

type RecommendedElasticPoolListMetricsResult Uses

type RecommendedElasticPoolListMetricsResult struct {
    autorest.Response `json:"-"`
    // Value - The list of recommended elastic pools metrics.
    Value *[]RecommendedElasticPoolMetric `json:"value,omitempty"`
}

RecommendedElasticPoolListMetricsResult represents the response to a list recommended elastic pool metrics request.

type RecommendedElasticPoolListResult Uses

type RecommendedElasticPoolListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of recommended elastic pools hosted in the server.
    Value *[]RecommendedElasticPool `json:"value,omitempty"`
}

RecommendedElasticPoolListResult represents the response to a list recommended elastic pool request.

type RecommendedElasticPoolMetric Uses

type RecommendedElasticPoolMetric struct {
    // DateTime - The time of metric (ISO8601 format).
    DateTime *date.Time `json:"dateTime,omitempty"`
    // Dtu - Gets or sets the DTUs (Database Transaction Units). See https://azure.microsoft.com/documentation/articles/sql-database-what-is-a-dtu/
    Dtu *float64 `json:"dtu,omitempty"`
    // SizeGB - Gets or sets size in gigabytes.
    SizeGB *float64 `json:"sizeGB,omitempty"`
}

RecommendedElasticPoolMetric represents recommended elastic pool metric.

type RecommendedElasticPoolProperties Uses

type RecommendedElasticPoolProperties struct {
    // DatabaseEdition - READ-ONLY; The edition of the recommended elastic pool. The ElasticPoolEdition enumeration contains all the valid editions. Possible values include: 'ElasticPoolEditionBasic', 'ElasticPoolEditionStandard', 'ElasticPoolEditionPremium', 'ElasticPoolEditionGeneralPurpose', 'ElasticPoolEditionBusinessCritical'
    DatabaseEdition ElasticPoolEdition `json:"databaseEdition,omitempty"`
    // Dtu - The DTU for the recommended elastic pool.
    Dtu *float64 `json:"dtu,omitempty"`
    // DatabaseDtuMin - The minimum DTU for the database.
    DatabaseDtuMin *float64 `json:"databaseDtuMin,omitempty"`
    // DatabaseDtuMax - The maximum DTU for the database.
    DatabaseDtuMax *float64 `json:"databaseDtuMax,omitempty"`
    // StorageMB - Gets storage size in megabytes.
    StorageMB *float64 `json:"storageMB,omitempty"`
    // ObservationPeriodStart - READ-ONLY; The observation period start (ISO8601 format).
    ObservationPeriodStart *date.Time `json:"observationPeriodStart,omitempty"`
    // ObservationPeriodEnd - READ-ONLY; The observation period start (ISO8601 format).
    ObservationPeriodEnd *date.Time `json:"observationPeriodEnd,omitempty"`
    // MaxObservedDtu - READ-ONLY; Gets maximum observed DTU.
    MaxObservedDtu *float64 `json:"maxObservedDtu,omitempty"`
    // MaxObservedStorageMB - READ-ONLY; Gets maximum observed storage in megabytes.
    MaxObservedStorageMB *float64 `json:"maxObservedStorageMB,omitempty"`
    // Databases - READ-ONLY; The list of databases in this pool. Expanded property
    Databases *[]Database `json:"databases,omitempty"`
    // Metrics - READ-ONLY; The list of databases housed in the server. Expanded property
    Metrics *[]RecommendedElasticPoolMetric `json:"metrics,omitempty"`
}

RecommendedElasticPoolProperties represents the properties of a recommended elastic pool.

type RecommendedElasticPoolsClient Uses

type RecommendedElasticPoolsClient struct {
    BaseClient
}

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

func NewRecommendedElasticPoolsClient(subscriptionID string) RecommendedElasticPoolsClient

NewRecommendedElasticPoolsClient creates an instance of the RecommendedElasticPoolsClient client.

func NewRecommendedElasticPoolsClientWithBaseURI Uses

func NewRecommendedElasticPoolsClientWithBaseURI(baseURI string, subscriptionID string) RecommendedElasticPoolsClient

NewRecommendedElasticPoolsClientWithBaseURI creates an instance of the RecommendedElasticPoolsClient client.

func (RecommendedElasticPoolsClient) Get Uses

func (client RecommendedElasticPoolsClient) Get(ctx context.Context, resourceGroupName string, serverName string, recommendedElasticPoolName string) (result RecommendedElasticPool, err error)

Get gets a recommended 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. recommendedElasticPoolName - the name of the recommended elastic pool to be retrieved.

func (RecommendedElasticPoolsClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (RecommendedElasticPoolsClient) GetResponder Uses

func (client RecommendedElasticPoolsClient) GetResponder(resp *http.Response) (result RecommendedElasticPool, err error)

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

func (RecommendedElasticPoolsClient) GetSender Uses

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

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

ListByServer returns recommended elastic pools. 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 (RecommendedElasticPoolsClient) ListByServerPreparer Uses

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

ListByServerPreparer prepares the ListByServer request.

func (RecommendedElasticPoolsClient) ListByServerResponder Uses

func (client RecommendedElasticPoolsClient) ListByServerResponder(resp *http.Response) (result RecommendedElasticPoolListResult, err error)

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

func (RecommendedElasticPoolsClient) ListByServerSender Uses

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

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

func (RecommendedElasticPoolsClient) ListMetrics Uses

func (client RecommendedElasticPoolsClient) ListMetrics(ctx context.Context, resourceGroupName string, serverName string, recommendedElasticPoolName string) (result RecommendedElasticPoolListMetricsResult, err error)

ListMetrics returns recommended elastic pool 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. serverName - the name of the server. recommendedElasticPoolName - the name of the recommended elastic pool to be retrieved.

func (RecommendedElasticPoolsClient) ListMetricsPreparer Uses

func (client RecommendedElasticPoolsClient) ListMetricsPreparer(ctx context.Context, resourceGroupName string, serverName string, recommendedElasticPoolName string) (*http.Request, error)

ListMetricsPreparer prepares the ListMetrics request.

func (RecommendedElasticPoolsClient) ListMetricsResponder Uses

func (client RecommendedElasticPoolsClient) ListMetricsResponder(resp *http.Response) (result RecommendedElasticPoolListMetricsResult, err error)

ListMetricsResponder handles the response to the ListMetrics request. The method always closes the http.Response Body.

func (RecommendedElasticPoolsClient) ListMetricsSender Uses

func (client RecommendedElasticPoolsClient) ListMetricsSender(req *http.Request) (*http.Response, error)

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

type RecommendedIndex Uses

type RecommendedIndex struct {
    // RecommendedIndexProperties - READ-ONLY; The properties representing the resource.
    *RecommendedIndexProperties `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"`
}

RecommendedIndex represents a database recommended index.

func (RecommendedIndex) MarshalJSON Uses

func (ri RecommendedIndex) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RecommendedIndex.

func (*RecommendedIndex) UnmarshalJSON Uses

func (ri *RecommendedIndex) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RecommendedIndex struct.

type RecommendedIndexAction Uses

type RecommendedIndexAction string

RecommendedIndexAction enumerates the values for recommended index action.

const (
    // Create ...
    Create RecommendedIndexAction = "Create"
    // Drop ...
    Drop RecommendedIndexAction = "Drop"
    // Rebuild ...
    Rebuild RecommendedIndexAction = "Rebuild"
)

func PossibleRecommendedIndexActionValues Uses

func PossibleRecommendedIndexActionValues() []RecommendedIndexAction

PossibleRecommendedIndexActionValues returns an array of possible values for the RecommendedIndexAction const type.

type RecommendedIndexProperties Uses

type RecommendedIndexProperties struct {
    // Action - READ-ONLY; The proposed index action. You can create a missing index, drop an unused index, or rebuild an existing index to improve its performance. Possible values include: 'Create', 'Drop', 'Rebuild'
    Action RecommendedIndexAction `json:"action,omitempty"`
    // State - READ-ONLY; The current recommendation state. Possible values include: 'Active', 'Pending', 'Executing', 'Verifying', 'PendingRevert', 'Reverting', 'Reverted', 'Ignored', 'Expired', 'Blocked', 'Success'
    State RecommendedIndexState `json:"state,omitempty"`
    // Created - READ-ONLY; The UTC datetime showing when this resource was created (ISO8601 format).
    Created *date.Time `json:"created,omitempty"`
    // LastModified - READ-ONLY; The UTC datetime of when was this resource last changed (ISO8601 format).
    LastModified *date.Time `json:"lastModified,omitempty"`
    // IndexType - READ-ONLY; The type of index (CLUSTERED, NONCLUSTERED, COLUMNSTORE, CLUSTERED COLUMNSTORE). Possible values include: 'CLUSTERED', 'NONCLUSTERED', 'COLUMNSTORE', 'CLUSTEREDCOLUMNSTORE'
    IndexType RecommendedIndexType `json:"indexType,omitempty"`
    // Schema - READ-ONLY; The schema where table to build index over resides
    Schema *string `json:"schema,omitempty"`
    // Table - READ-ONLY; The table on which to build index.
    Table *string `json:"table,omitempty"`
    // Columns - READ-ONLY; Columns over which to build index
    Columns *[]string `json:"columns,omitempty"`
    // IncludedColumns - READ-ONLY; The list of column names to be included in the index
    IncludedColumns *[]string `json:"includedColumns,omitempty"`
    // IndexScript - READ-ONLY; The full build index script
    IndexScript *string `json:"indexScript,omitempty"`
    // EstimatedImpact - READ-ONLY; The estimated impact of doing recommended index action.
    EstimatedImpact *[]OperationImpact `json:"estimatedImpact,omitempty"`
    // ReportedImpact - READ-ONLY; The values reported after index action is complete.
    ReportedImpact *[]OperationImpact `json:"reportedImpact,omitempty"`
}

RecommendedIndexProperties represents the properties of a database recommended index.

type RecommendedIndexState Uses

type RecommendedIndexState string

RecommendedIndexState enumerates the values for recommended index state.

const (
    // Active ...
    Active RecommendedIndexState = "Active"
    // Blocked ...
    Blocked RecommendedIndexState = "Blocked"
    // Executing ...
    Executing RecommendedIndexState = "Executing"
    // Expired ...
    Expired RecommendedIndexState = "Expired"
    // Ignored ...
    Ignored RecommendedIndexState = "Ignored"
    // Pending ...
    Pending RecommendedIndexState = "Pending"
    // PendingRevert ...
    PendingRevert RecommendedIndexState = "Pending Revert"
    // Reverted ...
    Reverted RecommendedIndexState = "Reverted"
    // Reverting ...
    Reverting RecommendedIndexState = "Reverting"
    // Success ...
    Success RecommendedIndexState = "Success"
    // Verifying ...
    Verifying RecommendedIndexState = "Verifying"
)

func PossibleRecommendedIndexStateValues Uses

func PossibleRecommendedIndexStateValues() []RecommendedIndexState

PossibleRecommendedIndexStateValues returns an array of possible values for the RecommendedIndexState const type.

type RecommendedIndexType Uses

type RecommendedIndexType string

RecommendedIndexType enumerates the values for recommended index type.

const (
    // CLUSTERED ...
    CLUSTERED RecommendedIndexType = "CLUSTERED"
    // CLUSTEREDCOLUMNSTORE ...
    CLUSTEREDCOLUMNSTORE RecommendedIndexType = "CLUSTERED COLUMNSTORE"
    // COLUMNSTORE ...
    COLUMNSTORE RecommendedIndexType = "COLUMNSTORE"
    // NONCLUSTERED ...
    NONCLUSTERED RecommendedIndexType = "NONCLUSTERED"
)

func PossibleRecommendedIndexTypeValues Uses

func PossibleRecommendedIndexTypeValues() []RecommendedIndexType

PossibleRecommendedIndexTypeValues returns an array of possible values for the RecommendedIndexType const type.

type ReplicationLink struct {
    autorest.Response `json:"-"`
    // Location - READ-ONLY; Location of the server that contains this firewall rule.
    Location *string `json:"location,omitempty"`
    // ReplicationLinkProperties - The properties representing the resource.
    *ReplicationLinkProperties `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"`
}

ReplicationLink represents a database replication link.

func (ReplicationLink) MarshalJSON Uses

func (rl ReplicationLink) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ReplicationLink.

func (*ReplicationLink) UnmarshalJSON Uses

func (rl *ReplicationLink) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ReplicationLink struct.

type ReplicationLinkListResult Uses

type ReplicationLinkListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of database replication links housed in the database.
    Value *[]ReplicationLink `json:"value,omitempty"`
}

ReplicationLinkListResult represents the response to a List database replication link request.

type ReplicationLinkProperties Uses

type ReplicationLinkProperties struct {
    // IsTerminationAllowed - READ-ONLY; Legacy value indicating whether termination is allowed.  Currently always returns true.
    IsTerminationAllowed *bool `json:"isTerminationAllowed,omitempty"`
    // ReplicationMode - READ-ONLY; Replication mode of this replication link.
    ReplicationMode *string `json:"replicationMode,omitempty"`
    // PartnerServer - READ-ONLY; The name of the server hosting the partner database.
    PartnerServer *string `json:"partnerServer,omitempty"`
    // PartnerDatabase - READ-ONLY; The name of the partner database.
    PartnerDatabase *string `json:"partnerDatabase,omitempty"`
    // PartnerLocation - READ-ONLY; The Azure Region of the partner database.
    PartnerLocation *string `json:"partnerLocation,omitempty"`
    // Role - READ-ONLY; The role of the database in the replication link. Possible values include: 'ReplicationRolePrimary', 'ReplicationRoleSecondary', 'ReplicationRoleNonReadableSecondary', 'ReplicationRoleSource', 'ReplicationRoleCopy'
    Role ReplicationRole `json:"role,omitempty"`
    // PartnerRole - READ-ONLY; The role of the partner database in the replication link. Possible values include: 'ReplicationRolePrimary', 'ReplicationRoleSecondary', 'ReplicationRoleNonReadableSecondary', 'ReplicationRoleSource', 'ReplicationRoleCopy'
    PartnerRole ReplicationRole `json:"partnerRole,omitempty"`
    // StartTime - READ-ONLY; The start time for the replication link.
    StartTime *date.Time `json:"startTime,omitempty"`
    // PercentComplete - READ-ONLY; The percentage of seeding complete for the replication link.
    PercentComplete *int32 `json:"percentComplete,omitempty"`
    // ReplicationState - READ-ONLY; The replication state for the replication link. Possible values include: 'PENDING', 'SEEDING', 'CATCHUP', 'SUSPENDED'
    ReplicationState ReplicationState `json:"replicationState,omitempty"`
}

ReplicationLinkProperties represents the properties of a database replication link.

type ReplicationLinksClient Uses

type ReplicationLinksClient struct {
    BaseClient
}

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

func NewReplicationLinksClient(subscriptionID string) ReplicationLinksClient

NewReplicationLinksClient creates an instance of the ReplicationLinksClient client.

func NewReplicationLinksClientWithBaseURI Uses

func NewReplicationLinksClientWithBaseURI(baseURI string, subscriptionID string) ReplicationLinksClient

NewReplicationLinksClientWithBaseURI creates an instance of the ReplicationLinksClient client.

func (ReplicationLinksClient) Delete Uses

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

Delete deletes a database replication link. Cannot be done during failover. 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 that has the replication link to be dropped. linkID - the ID of the replication link to be deleted.

func (ReplicationLinksClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (ReplicationLinksClient) DeleteResponder Uses

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

func (client ReplicationLinksClient) 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 (ReplicationLinksClient) Failover Uses

func (client ReplicationLinksClient) Failover(ctx context.Context, resourceGroupName string, serverName string, databaseName string, linkID string) (result ReplicationLinksFailoverFuture, err error)

Failover sets which replica database is primary by failing over from the current primary replica 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 that has the replication link to be failed over. linkID - the ID of the replication link to be failed over.

func (ReplicationLinksClient) FailoverAllowDataLoss Uses

func (client ReplicationLinksClient) FailoverAllowDataLoss(ctx context.Context, resourceGroupName string, serverName string, databaseName string, linkID string) (result ReplicationLinksFailoverAllowDataLossFuture, err error)

FailoverAllowDataLoss sets which replica database is primary by failing over from the current primary replica database. This operation might result in data loss. Parameters: resourceGroupName - the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName - the name of the server. databaseName - the name of the database that has the replication link to be failed over. linkID - the ID of the replication link to be failed over.

func (ReplicationLinksClient) FailoverAllowDataLossPreparer Uses

func (client ReplicationLinksClient) FailoverAllowDataLossPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, linkID string) (*http.Request, error)

FailoverAllowDataLossPreparer prepares the FailoverAllowDataLoss request.

func (ReplicationLinksClient) FailoverAllowDataLossResponder Uses

func (client ReplicationLinksClient) FailoverAllowDataLossResponder(resp *http.Response) (result autorest.Response, err error)

FailoverAllowDataLossResponder handles the response to the FailoverAllowDataLoss request. The method always closes the http.Response Body.

func (ReplicationLinksClient) FailoverAllowDataLossSender Uses

func (client ReplicationLinksClient) FailoverAllowDataLossSender(req *http.Request) (future ReplicationLinksFailoverAllowDataLossFuture, err error)

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

func (ReplicationLinksClient) FailoverPreparer Uses

func (client ReplicationLinksClient) FailoverPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, linkID string) (*http.Request, error)

FailoverPreparer prepares the Failover request.

func (ReplicationLinksClient) FailoverResponder Uses

func (client ReplicationLinksClient) 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 (ReplicationLinksClient) FailoverSender Uses

func (client ReplicationLinksClient) FailoverSender(req *http.Request) (future ReplicationLinksFailoverFuture, err error)

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

func (ReplicationLinksClient) Get Uses

func (client ReplicationLinksClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string, linkID string) (result ReplicationLink, err error)

Get gets a database replication link. 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 get the link for. linkID - the replication link ID to be retrieved.

func (ReplicationLinksClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (ReplicationLinksClient) GetResponder Uses

func (client ReplicationLinksClient) GetResponder(resp *http.Response) (result ReplicationLink, err error)

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

func (ReplicationLinksClient) GetSender Uses

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

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

ListByDatabase lists a database's replication links. 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 retrieve links for.

func (ReplicationLinksClient) ListByDatabasePreparer Uses

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (ReplicationLinksClient) ListByDatabaseResponder Uses

func (client ReplicationLinksClient) ListByDatabaseResponder(resp *http.Response) (result ReplicationLinkListResult, err error)

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

func (ReplicationLinksClient) ListByDatabaseSender Uses

func (client ReplicationLinksClient) 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 ReplicationLinksFailoverAllowDataLossFuture Uses

type ReplicationLinksFailoverAllowDataLossFuture struct {
    azure.Future
}

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

func (*ReplicationLinksFailoverAllowDataLossFuture) Result Uses

func (future *ReplicationLinksFailoverAllowDataLossFuture) Result(client ReplicationLinksClient) (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 ReplicationLinksFailoverFuture Uses

type ReplicationLinksFailoverFuture struct {
    azure.Future
}

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

func (*ReplicationLinksFailoverFuture) Result Uses

func (future *ReplicationLinksFailoverFuture) Result(client ReplicationLinksClient) (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 ReplicationRole Uses

type ReplicationRole string

ReplicationRole enumerates the values for replication role.

const (
    // ReplicationRoleCopy ...
    ReplicationRoleCopy ReplicationRole = "Copy"
    // ReplicationRoleNonReadableSecondary ...
    ReplicationRoleNonReadableSecondary ReplicationRole = "NonReadableSecondary"
    // ReplicationRolePrimary ...
    ReplicationRolePrimary ReplicationRole = "Primary"
    // ReplicationRoleSecondary ...
    ReplicationRoleSecondary ReplicationRole = "Secondary"
    // ReplicationRoleSource ...
    ReplicationRoleSource ReplicationRole = "Source"
)

func PossibleReplicationRoleValues Uses

func PossibleReplicationRoleValues() []ReplicationRole

PossibleReplicationRoleValues returns an array of possible values for the ReplicationRole const type.

type ReplicationState Uses

type ReplicationState string

ReplicationState enumerates the values for replication state.

const (
    // CATCHUP ...
    CATCHUP ReplicationState = "CATCH_UP"
    // PENDING ...
    PENDING ReplicationState = "PENDING"
    // SEEDING ...
    SEEDING ReplicationState = "SEEDING"
    // SUSPENDED ...
    SUSPENDED ReplicationState = "SUSPENDED"
)

func PossibleReplicationStateValues Uses

func PossibleReplicationStateValues() []ReplicationState

PossibleReplicationStateValues returns an array of possible values for the ReplicationState 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 SampleName Uses

type SampleName string

SampleName enumerates the values for sample name.

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

func PossibleSampleNameValues Uses

func PossibleSampleNameValues() []SampleName

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

type SecurityAlertPolicyEmailAccountAdmins Uses

type SecurityAlertPolicyEmailAccountAdmins string

SecurityAlertPolicyEmailAccountAdmins enumerates the values for security alert policy email account admins.

const (
    // SecurityAlertPolicyEmailAccountAdminsDisabled ...
    SecurityAlertPolicyEmailAccountAdminsDisabled SecurityAlertPolicyEmailAccountAdmins = "Disabled"
    // SecurityAlertPolicyEmailAccountAdminsEnabled ...
    SecurityAlertPolicyEmailAccountAdminsEnabled SecurityAlertPolicyEmailAccountAdmins = "Enabled"
)

func PossibleSecurityAlertPolicyEmailAccountAdminsValues Uses

func PossibleSecurityAlertPolicyEmailAccountAdminsValues() []SecurityAlertPolicyEmailAccountAdmins

PossibleSecurityAlertPolicyEmailAccountAdminsValues returns an array of possible values for the SecurityAlertPolicyEmailAccountAdmins const type.

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

type SecurityAlertPolicyUseServerDefault string

SecurityAlertPolicyUseServerDefault enumerates the values for security alert policy use server default.

const (
    // SecurityAlertPolicyUseServerDefaultDisabled ...
    SecurityAlertPolicyUseServerDefaultDisabled SecurityAlertPolicyUseServerDefault = "Disabled"
    // SecurityAlertPolicyUseServerDefaultEnabled ...
    SecurityAlertPolicyUseServerDefaultEnabled SecurityAlertPolicyUseServerDefault = "Enabled"
)

func PossibleSecurityAlertPolicyUseServerDefaultValues Uses

func PossibleSecurityAlertPolicyUseServerDefaultValues() []SecurityAlertPolicyUseServerDefault

PossibleSecurityAlertPolicyUseServerDefaultValues returns an array of possible values for the SecurityAlertPolicyUseServerDefault const type.

type ServersClient Uses

type ServersClient struct {
    BaseClient
}

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

func NewServersClient(subscriptionID string) ServersClient

NewServersClient creates an instance of the ServersClient client.

func NewServersClientWithBaseURI Uses

func NewServersClientWithBaseURI(baseURI string, subscriptionID string) ServersClient

NewServersClientWithBaseURI creates an instance of the ServersClient client.

func (ServersClient) CheckNameAvailability Uses

func (client ServersClient) CheckNameAvailability(ctx context.Context, parameters CheckNameAvailabilityRequest) (result CheckNameAvailabilityResponse, err error)

CheckNameAvailability determines whether a resource can be created with the specified name. Parameters: parameters - the parameters to request for name availability.

func (ServersClient) CheckNameAvailabilityPreparer Uses

func (client ServersClient) CheckNameAvailabilityPreparer(ctx context.Context, parameters CheckNameAvailabilityRequest) (*http.Request, error)

CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.

func (ServersClient) CheckNameAvailabilityResponder Uses

func (client ServersClient) CheckNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityResponse, err error)

CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always closes the http.Response Body.

func (ServersClient) CheckNameAvailabilitySender Uses

func (client ServersClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error)

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

type ServiceObjectiveName Uses

type ServiceObjectiveName string

ServiceObjectiveName enumerates the values for service objective name.

const (
    // ServiceObjectiveNameBasic ...
    ServiceObjectiveNameBasic ServiceObjectiveName = "Basic"
    // ServiceObjectiveNameDS100 ...
    ServiceObjectiveNameDS100 ServiceObjectiveName = "DS100"
    // ServiceObjectiveNameDS1000 ...
    ServiceObjectiveNameDS1000 ServiceObjectiveName = "DS1000"
    // ServiceObjectiveNameDS1200 ...
    ServiceObjectiveNameDS1200 ServiceObjectiveName = "DS1200"
    // ServiceObjectiveNameDS1500 ...
    ServiceObjectiveNameDS1500 ServiceObjectiveName = "DS1500"
    // ServiceObjectiveNameDS200 ...
    ServiceObjectiveNameDS200 ServiceObjectiveName = "DS200"
    // ServiceObjectiveNameDS2000 ...
    ServiceObjectiveNameDS2000 ServiceObjectiveName = "DS2000"
    // ServiceObjectiveNameDS300 ...
    ServiceObjectiveNameDS300 ServiceObjectiveName = "DS300"
    // ServiceObjectiveNameDS400 ...
    ServiceObjectiveNameDS400 ServiceObjectiveName = "DS400"
    // ServiceObjectiveNameDS500 ...
    ServiceObjectiveNameDS500 ServiceObjectiveName = "DS500"
    // ServiceObjectiveNameDS600 ...
    ServiceObjectiveNameDS600 ServiceObjectiveName = "DS600"
    // ServiceObjectiveNameDW100 ...
    ServiceObjectiveNameDW100 ServiceObjectiveName = "DW100"
    // ServiceObjectiveNameDW1000 ...
    ServiceObjectiveNameDW1000 ServiceObjectiveName = "DW1000"
    // ServiceObjectiveNameDW10000c ...
    ServiceObjectiveNameDW10000c ServiceObjectiveName = "DW10000c"
    // ServiceObjectiveNameDW1000c ...
    ServiceObjectiveNameDW1000c ServiceObjectiveName = "DW1000c"
    // ServiceObjectiveNameDW1200 ...
    ServiceObjectiveNameDW1200 ServiceObjectiveName = "DW1200"
    // ServiceObjectiveNameDW1500 ...
    ServiceObjectiveNameDW1500 ServiceObjectiveName = "DW1500"
    // ServiceObjectiveNameDW15000c ...
    ServiceObjectiveNameDW15000c ServiceObjectiveName = "DW15000c"
    // ServiceObjectiveNameDW1500c ...
    ServiceObjectiveNameDW1500c ServiceObjectiveName = "DW1500c"
    // ServiceObjectiveNameDW200 ...
    ServiceObjectiveNameDW200 ServiceObjectiveName = "DW200"
    // ServiceObjectiveNameDW2000 ...
    ServiceObjectiveNameDW2000 ServiceObjectiveName = "DW2000"
    // ServiceObjectiveNameDW2000c ...
    ServiceObjectiveNameDW2000c ServiceObjectiveName = "DW2000c"
    // ServiceObjectiveNameDW2500c ...
    ServiceObjectiveNameDW2500c ServiceObjectiveName = "DW2500c"
    // ServiceObjectiveNameDW300 ...
    ServiceObjectiveNameDW300 ServiceObjectiveName = "DW300"
    // ServiceObjectiveNameDW3000 ...
    ServiceObjectiveNameDW3000 ServiceObjectiveName = "DW3000"
    // ServiceObjectiveNameDW30000c ...
    ServiceObjectiveNameDW30000c ServiceObjectiveName = "DW30000c"
    // ServiceObjectiveNameDW3000c ...
    ServiceObjectiveNameDW3000c ServiceObjectiveName = "DW3000c"
    // ServiceObjectiveNameDW400 ...
    ServiceObjectiveNameDW400 ServiceObjectiveName = "DW400"
    // ServiceObjectiveNameDW500 ...
    ServiceObjectiveNameDW500 ServiceObjectiveName = "DW500"
    // ServiceObjectiveNameDW5000c ...
    ServiceObjectiveNameDW5000c ServiceObjectiveName = "DW5000c"
    // ServiceObjectiveNameDW600 ...
    ServiceObjectiveNameDW600 ServiceObjectiveName = "DW600"
    // ServiceObjectiveNameDW6000 ...
    ServiceObjectiveNameDW6000 ServiceObjectiveName = "DW6000"
    // ServiceObjectiveNameDW6000c ...
    ServiceObjectiveNameDW6000c ServiceObjectiveName = "DW6000c"
    // ServiceObjectiveNameDW7500c ...
    ServiceObjectiveNameDW7500c ServiceObjectiveName = "DW7500c"
    // ServiceObjectiveNameElasticPool ...
    ServiceObjectiveNameElasticPool ServiceObjectiveName = "ElasticPool"
    // ServiceObjectiveNameFree ...
    ServiceObjectiveNameFree ServiceObjectiveName = "Free"
    // ServiceObjectiveNameP1 ...
    ServiceObjectiveNameP1 ServiceObjectiveName = "P1"
    // ServiceObjectiveNameP11 ...
    ServiceObjectiveNameP11 ServiceObjectiveName = "P11"
    // ServiceObjectiveNameP15 ...
    ServiceObjectiveNameP15 ServiceObjectiveName = "P15"
    // ServiceObjectiveNameP2 ...
    ServiceObjectiveNameP2 ServiceObjectiveName = "P2"
    // ServiceObjectiveNameP3 ...
    ServiceObjectiveNameP3 ServiceObjectiveName = "P3"
    // ServiceObjectiveNameP4 ...
    ServiceObjectiveNameP4 ServiceObjectiveName = "P4"
    // ServiceObjectiveNameP6 ...
    ServiceObjectiveNameP6 ServiceObjectiveName = "P6"
    // ServiceObjectiveNamePRS1 ...
    ServiceObjectiveNamePRS1 ServiceObjectiveName = "PRS1"
    // ServiceObjectiveNamePRS2 ...
    ServiceObjectiveNamePRS2 ServiceObjectiveName = "PRS2"
    // ServiceObjectiveNamePRS4 ...
    ServiceObjectiveNamePRS4 ServiceObjectiveName = "PRS4"
    // ServiceObjectiveNamePRS6 ...
    ServiceObjectiveNamePRS6 ServiceObjectiveName = "PRS6"
    // ServiceObjectiveNameS0 ...
    ServiceObjectiveNameS0 ServiceObjectiveName = "S0"
    // ServiceObjectiveNameS1 ...
    ServiceObjectiveNameS1 ServiceObjectiveName = "S1"
    // ServiceObjectiveNameS12 ...
    ServiceObjectiveNameS12 ServiceObjectiveName = "S12"
    // ServiceObjectiveNameS2 ...
    ServiceObjectiveNameS2 ServiceObjectiveName = "S2"
    // ServiceObjectiveNameS3 ...
    ServiceObjectiveNameS3 ServiceObjectiveName = "S3"
    // ServiceObjectiveNameS4 ...
    ServiceObjectiveNameS4 ServiceObjectiveName = "S4"
    // ServiceObjectiveNameS6 ...
    ServiceObjectiveNameS6 ServiceObjectiveName = "S6"
    // ServiceObjectiveNameS7 ...
    ServiceObjectiveNameS7 ServiceObjectiveName = "S7"
    // ServiceObjectiveNameS9 ...
    ServiceObjectiveNameS9 ServiceObjectiveName = "S9"
    // ServiceObjectiveNameSystem ...
    ServiceObjectiveNameSystem ServiceObjectiveName = "System"
    // ServiceObjectiveNameSystem0 ...
    ServiceObjectiveNameSystem0 ServiceObjectiveName = "System0"
    // ServiceObjectiveNameSystem1 ...
    ServiceObjectiveNameSystem1 ServiceObjectiveName = "System1"
    // ServiceObjectiveNameSystem2 ...
    ServiceObjectiveNameSystem2 ServiceObjectiveName = "System2"
    // ServiceObjectiveNameSystem2L ...
    ServiceObjectiveNameSystem2L ServiceObjectiveName = "System2L"
    // ServiceObjectiveNameSystem3 ...
    ServiceObjectiveNameSystem3 ServiceObjectiveName = "System3"
    // ServiceObjectiveNameSystem3L ...
    ServiceObjectiveNameSystem3L ServiceObjectiveName = "System3L"
    // ServiceObjectiveNameSystem4 ...
    ServiceObjectiveNameSystem4 ServiceObjectiveName = "System4"
    // ServiceObjectiveNameSystem4L ...
    ServiceObjectiveNameSystem4L ServiceObjectiveName = "System4L"
)

func PossibleServiceObjectiveNameValues Uses

func PossibleServiceObjectiveNameValues() []ServiceObjectiveName

PossibleServiceObjectiveNameValues returns an array of possible values for the ServiceObjectiveName const type.

type ServiceTierAdvisor Uses

type ServiceTierAdvisor struct {
    autorest.Response `json:"-"`
    // ServiceTierAdvisorProperties - READ-ONLY; The properties representing the resource.
    *ServiceTierAdvisorProperties `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"`
}

ServiceTierAdvisor represents a Service Tier Advisor.

func (ServiceTierAdvisor) MarshalJSON Uses

func (sta ServiceTierAdvisor) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServiceTierAdvisor.

func (*ServiceTierAdvisor) UnmarshalJSON Uses

func (sta *ServiceTierAdvisor) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServiceTierAdvisor struct.

type ServiceTierAdvisorListResult Uses

type ServiceTierAdvisorListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of service tier advisors for specified database.
    Value *[]ServiceTierAdvisor `json:"value,omitempty"`
}

ServiceTierAdvisorListResult represents the response to a list service tier advisor request.

type ServiceTierAdvisorProperties Uses

type ServiceTierAdvisorProperties struct {
    // ObservationPeriodStart - READ-ONLY; The observation period start (ISO8601 format).
    ObservationPeriodStart *date.Time `json:"observationPeriodStart,omitempty"`
    // ObservationPeriodEnd - READ-ONLY; The observation period start (ISO8601 format).
    ObservationPeriodEnd *date.Time `json:"observationPeriodEnd,omitempty"`
    // ActiveTimeRatio - READ-ONLY; The activeTimeRatio for service tier advisor.
    ActiveTimeRatio *float64 `json:"activeTimeRatio,omitempty"`
    // MinDtu - READ-ONLY; Gets or sets minDtu for service tier advisor.
    MinDtu *float64 `json:"minDtu,omitempty"`
    // AvgDtu - READ-ONLY; Gets or sets avgDtu for service tier advisor.
    AvgDtu *float64 `json:"avgDtu,omitempty"`
    // MaxDtu - READ-ONLY; Gets or sets maxDtu for service tier advisor.
    MaxDtu *float64 `json:"maxDtu,omitempty"`
    // MaxSizeInGB - READ-ONLY; Gets or sets maxSizeInGB for service tier advisor.
    MaxSizeInGB *float64 `json:"maxSizeInGB,omitempty"`
    // ServiceLevelObjectiveUsageMetrics - READ-ONLY; Gets or sets serviceLevelObjectiveUsageMetrics for the service tier advisor.
    ServiceLevelObjectiveUsageMetrics *[]SloUsageMetric `json:"serviceLevelObjectiveUsageMetrics,omitempty"`
    // CurrentServiceLevelObjective - READ-ONLY; Gets or sets currentServiceLevelObjective for service tier advisor.
    CurrentServiceLevelObjective *string `json:"currentServiceLevelObjective,omitempty"`
    // CurrentServiceLevelObjectiveID - READ-ONLY; Gets or sets currentServiceLevelObjectiveId for service tier advisor.
    CurrentServiceLevelObjectiveID *uuid.UUID `json:"currentServiceLevelObjectiveId,omitempty"`
    // UsageBasedRecommendationServiceLevelObjective - READ-ONLY; Gets or sets usageBasedRecommendationServiceLevelObjective for service tier advisor.
    UsageBasedRecommendationServiceLevelObjective *string `json:"usageBasedRecommendationServiceLevelObjective,omitempty"`
    // UsageBasedRecommendationServiceLevelObjectiveID - READ-ONLY; Gets or sets usageBasedRecommendationServiceLevelObjectiveId for service tier advisor.
    UsageBasedRecommendationServiceLevelObjectiveID *uuid.UUID `json:"usageBasedRecommendationServiceLevelObjectiveId,omitempty"`
    // DatabaseSizeBasedRecommendationServiceLevelObjective - READ-ONLY; Gets or sets databaseSizeBasedRecommendationServiceLevelObjective for service tier advisor.
    DatabaseSizeBasedRecommendationServiceLevelObjective *string `json:"databaseSizeBasedRecommendationServiceLevelObjective,omitempty"`
    // DatabaseSizeBasedRecommendationServiceLevelObjectiveID - READ-ONLY; Gets or sets databaseSizeBasedRecommendationServiceLevelObjectiveId for service tier advisor.
    DatabaseSizeBasedRecommendationServiceLevelObjectiveID *uuid.UUID `json:"databaseSizeBasedRecommendationServiceLevelObjectiveId,omitempty"`
    // DisasterPlanBasedRecommendationServiceLevelObjective - READ-ONLY; Gets or sets disasterPlanBasedRecommendationServiceLevelObjective for service tier advisor.
    DisasterPlanBasedRecommendationServiceLevelObjective *string `json:"disasterPlanBasedRecommendationServiceLevelObjective,omitempty"`
    // DisasterPlanBasedRecommendationServiceLevelObjectiveID - READ-ONLY; Gets or sets disasterPlanBasedRecommendationServiceLevelObjectiveId for service tier advisor.
    DisasterPlanBasedRecommendationServiceLevelObjectiveID *uuid.UUID `json:"disasterPlanBasedRecommendationServiceLevelObjectiveId,omitempty"`
    // OverallRecommendationServiceLevelObjective - READ-ONLY; Gets or sets overallRecommendationServiceLevelObjective for service tier advisor.
    OverallRecommendationServiceLevelObjective *string `json:"overallRecommendationServiceLevelObjective,omitempty"`
    // OverallRecommendationServiceLevelObjectiveID - READ-ONLY; Gets or sets overallRecommendationServiceLevelObjectiveId for service tier advisor.
    OverallRecommendationServiceLevelObjectiveID *uuid.UUID `json:"overallRecommendationServiceLevelObjectiveId,omitempty"`
    // Confidence - READ-ONLY; Gets or sets confidence for service tier advisor.
    Confidence *float64 `json:"confidence,omitempty"`
}

ServiceTierAdvisorProperties represents the properties of a Service Tier Advisor.

type ServiceTierAdvisorsClient Uses

type ServiceTierAdvisorsClient struct {
    BaseClient
}

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

func NewServiceTierAdvisorsClient(subscriptionID string) ServiceTierAdvisorsClient

NewServiceTierAdvisorsClient creates an instance of the ServiceTierAdvisorsClient client.

func NewServiceTierAdvisorsClientWithBaseURI Uses

func NewServiceTierAdvisorsClientWithBaseURI(baseURI string, subscriptionID string) ServiceTierAdvisorsClient

NewServiceTierAdvisorsClientWithBaseURI creates an instance of the ServiceTierAdvisorsClient client.

func (ServiceTierAdvisorsClient) Get Uses

func (client ServiceTierAdvisorsClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string, serviceTierAdvisorName string) (result ServiceTierAdvisor, err error)

Get gets a service tier advisor. 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 database. serviceTierAdvisorName - the name of service tier advisor.

func (ServiceTierAdvisorsClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (ServiceTierAdvisorsClient) GetResponder Uses

func (client ServiceTierAdvisorsClient) GetResponder(resp *http.Response) (result ServiceTierAdvisor, err error)

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

func (ServiceTierAdvisorsClient) GetSender Uses

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

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

ListByDatabase returns service tier advisors for specified 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 database.

func (ServiceTierAdvisorsClient) ListByDatabasePreparer Uses

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

ListByDatabasePreparer prepares the ListByDatabase request.

func (ServiceTierAdvisorsClient) ListByDatabaseResponder Uses

func (client ServiceTierAdvisorsClient) ListByDatabaseResponder(resp *http.Response) (result ServiceTierAdvisorListResult, err error)

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

func (ServiceTierAdvisorsClient) ListByDatabaseSender Uses

func (client ServiceTierAdvisorsClient) 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 SloUsageMetric Uses

type SloUsageMetric struct {
    // ServiceLevelObjective - READ-ONLY; The serviceLevelObjective for SLO usage metric. Possible values include: 'ServiceObjectiveNameSystem', 'ServiceObjectiveNameSystem0', 'ServiceObjectiveNameSystem1', 'ServiceObjectiveNameSystem2', 'ServiceObjectiveNameSystem3', 'ServiceObjectiveNameSystem4', 'ServiceObjectiveNameSystem2L', 'ServiceObjectiveNameSystem3L', 'ServiceObjectiveNameSystem4L', 'ServiceObjectiveNameFree', 'ServiceObjectiveNameBasic', 'ServiceObjectiveNameS0', 'ServiceObjectiveNameS1', 'ServiceObjectiveNameS2', 'ServiceObjectiveNameS3', 'ServiceObjectiveNameS4', 'ServiceObjectiveNameS6', 'ServiceObjectiveNameS7', 'ServiceObjectiveNameS9', 'ServiceObjectiveNameS12', 'ServiceObjectiveNameP1', 'ServiceObjectiveNameP2', 'ServiceObjectiveNameP3', 'ServiceObjectiveNameP4', 'ServiceObjectiveNameP6', 'ServiceObjectiveNameP11', 'ServiceObjectiveNameP15', 'ServiceObjectiveNamePRS1', 'ServiceObjectiveNamePRS2', 'ServiceObjectiveNamePRS4', 'ServiceObjectiveNamePRS6', 'ServiceObjectiveNameDW100', 'ServiceObjectiveNameDW200', 'ServiceObjectiveNameDW300', 'ServiceObjectiveNameDW400', 'ServiceObjectiveNameDW500', 'ServiceObjectiveNameDW600', 'ServiceObjectiveNameDW1000', 'ServiceObjectiveNameDW1200', 'ServiceObjectiveNameDW1000c', 'ServiceObjectiveNameDW1500', 'ServiceObjectiveNameDW1500c', 'ServiceObjectiveNameDW2000', 'ServiceObjectiveNameDW2000c', 'ServiceObjectiveNameDW3000', 'ServiceObjectiveNameDW2500c', 'ServiceObjectiveNameDW3000c', 'ServiceObjectiveNameDW6000', 'ServiceObjectiveNameDW5000c', 'ServiceObjectiveNameDW6000c', 'ServiceObjectiveNameDW7500c', 'ServiceObjectiveNameDW10000c', 'ServiceObjectiveNameDW15000c', 'ServiceObjectiveNameDW30000c', 'ServiceObjectiveNameDS100', 'ServiceObjectiveNameDS200', 'ServiceObjectiveNameDS300', 'ServiceObjectiveNameDS400', 'ServiceObjectiveNameDS500', 'ServiceObjectiveNameDS600', 'ServiceObjectiveNameDS1000', 'ServiceObjectiveNameDS1200', 'ServiceObjectiveNameDS1500', 'ServiceObjectiveNameDS2000', 'ServiceObjectiveNameElasticPool'
    ServiceLevelObjective ServiceObjectiveName `json:"serviceLevelObjective,omitempty"`
    // ServiceLevelObjectiveID - READ-ONLY; The serviceLevelObjectiveId for SLO usage metric.
    ServiceLevelObjectiveID *uuid.UUID `json:"serviceLevelObjectiveId,omitempty"`
    // InRangeTimeRatio - READ-ONLY; Gets or sets inRangeTimeRatio for SLO usage metric.
    InRangeTimeRatio *float64 `json:"inRangeTimeRatio,omitempty"`
}

SloUsageMetric a Slo Usage Metric.

type StorageKeyType Uses

type StorageKeyType string

StorageKeyType enumerates the values for storage key type.

const (
    // SharedAccessKey ...
    SharedAccessKey StorageKeyType = "SharedAccessKey"
    // StorageAccessKey ...
    StorageAccessKey StorageKeyType = "StorageAccessKey"
)

func PossibleStorageKeyTypeValues Uses

func PossibleStorageKeyTypeValues() []StorageKeyType

PossibleStorageKeyTypeValues returns an array of possible values for the StorageKeyType const type.

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

type TransparentDataEncryption struct {
    autorest.Response `json:"-"`
    // Location - READ-ONLY; Resource location.
    Location *string `json:"location,omitempty"`
    // TransparentDataEncryptionProperties - Represents the properties of the resource.
    *TransparentDataEncryptionProperties `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"`
}

TransparentDataEncryption represents a database transparent data encryption configuration.

func (TransparentDataEncryption) MarshalJSON Uses

func (tde TransparentDataEncryption) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TransparentDataEncryption.

func (*TransparentDataEncryption) UnmarshalJSON Uses

func (tde *TransparentDataEncryption) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TransparentDataEncryption struct.

type TransparentDataEncryptionActivitiesClient Uses

type TransparentDataEncryptionActivitiesClient struct {
    BaseClient
}

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

func NewTransparentDataEncryptionActivitiesClient(subscriptionID string) TransparentDataEncryptionActivitiesClient

NewTransparentDataEncryptionActivitiesClient creates an instance of the TransparentDataEncryptionActivitiesClient client.

func NewTransparentDataEncryptionActivitiesClientWithBaseURI Uses

func NewTransparentDataEncryptionActivitiesClientWithBaseURI(baseURI string, subscriptionID string) TransparentDataEncryptionActivitiesClient

NewTransparentDataEncryptionActivitiesClientWithBaseURI creates an instance of the TransparentDataEncryptionActivitiesClient client.

func (TransparentDataEncryptionActivitiesClient) ListByConfiguration Uses

func (client TransparentDataEncryptionActivitiesClient) ListByConfiguration(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result TransparentDataEncryptionActivityListResult, err error)

ListByConfiguration returns a database's transparent data encryption operation result. 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 transparent data encryption applies.

func (TransparentDataEncryptionActivitiesClient) ListByConfigurationPreparer Uses

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

ListByConfigurationPreparer prepares the ListByConfiguration request.

func (TransparentDataEncryptionActivitiesClient) ListByConfigurationResponder Uses

func (client TransparentDataEncryptionActivitiesClient) ListByConfigurationResponder(resp *http.Response) (result TransparentDataEncryptionActivityListResult, err error)

ListByConfigurationResponder handles the response to the ListByConfiguration request. The method always closes the http.Response Body.

func (TransparentDataEncryptionActivitiesClient) ListByConfigurationSender Uses

func (client TransparentDataEncryptionActivitiesClient) ListByConfigurationSender(req *http.Request) (*http.Response, error)

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

type TransparentDataEncryptionActivity Uses

type TransparentDataEncryptionActivity struct {
    // Location - READ-ONLY; Resource location.
    Location *string `json:"location,omitempty"`
    // TransparentDataEncryptionActivityProperties - Represents the properties of the resource.
    *TransparentDataEncryptionActivityProperties `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"`
}

TransparentDataEncryptionActivity represents a database transparent data encryption Scan.

func (TransparentDataEncryptionActivity) MarshalJSON Uses

func (tdea TransparentDataEncryptionActivity) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TransparentDataEncryptionActivity.

func (*TransparentDataEncryptionActivity) UnmarshalJSON Uses

func (tdea *TransparentDataEncryptionActivity) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TransparentDataEncryptionActivity struct.

type TransparentDataEncryptionActivityListResult Uses

type TransparentDataEncryptionActivityListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of database transparent data encryption activities.
    Value *[]TransparentDataEncryptionActivity `json:"value,omitempty"`
}

TransparentDataEncryptionActivityListResult represents the response to a list database transparent data encryption activity request.

type TransparentDataEncryptionActivityProperties Uses

type TransparentDataEncryptionActivityProperties struct {
    // Status - READ-ONLY; The status of the database. Possible values include: 'Encrypting', 'Decrypting'
    Status TransparentDataEncryptionActivityStatus `json:"status,omitempty"`
    // PercentComplete - READ-ONLY; The percent complete of the transparent data encryption scan for a database.
    PercentComplete *float64 `json:"percentComplete,omitempty"`
}

TransparentDataEncryptionActivityProperties represents the properties of a database transparent data encryption Scan.

type TransparentDataEncryptionActivityStatus Uses

type TransparentDataEncryptionActivityStatus string

TransparentDataEncryptionActivityStatus enumerates the values for transparent data encryption activity status.

const (
    // Decrypting ...
    Decrypting TransparentDataEncryptionActivityStatus = "Decrypting"
    // Encrypting ...
    Encrypting TransparentDataEncryptionActivityStatus = "Encrypting"
)

func PossibleTransparentDataEncryptionActivityStatusValues Uses

func PossibleTransparentDataEncryptionActivityStatusValues() []TransparentDataEncryptionActivityStatus

PossibleTransparentDataEncryptionActivityStatusValues returns an array of possible values for the TransparentDataEncryptionActivityStatus const type.

type TransparentDataEncryptionProperties Uses

type TransparentDataEncryptionProperties struct {
    // Status - The status of the database transparent data encryption. Possible values include: 'TransparentDataEncryptionStatusEnabled', 'TransparentDataEncryptionStatusDisabled'
    Status TransparentDataEncryptionStatus `json:"status,omitempty"`
}

TransparentDataEncryptionProperties represents the properties of a database transparent data encryption.

type TransparentDataEncryptionStatus Uses

type TransparentDataEncryptionStatus string

TransparentDataEncryptionStatus enumerates the values for transparent data encryption status.

const (
    // TransparentDataEncryptionStatusDisabled ...
    TransparentDataEncryptionStatusDisabled TransparentDataEncryptionStatus = "Disabled"
    // TransparentDataEncryptionStatusEnabled ...
    TransparentDataEncryptionStatusEnabled TransparentDataEncryptionStatus = "Enabled"
)

func PossibleTransparentDataEncryptionStatusValues Uses

func PossibleTransparentDataEncryptionStatusValues() []TransparentDataEncryptionStatus

PossibleTransparentDataEncryptionStatusValues returns an array of possible values for the TransparentDataEncryptionStatus const type.

type TransparentDataEncryptionsClient Uses

type TransparentDataEncryptionsClient struct {
    BaseClient
}

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

func NewTransparentDataEncryptionsClient(subscriptionID string) TransparentDataEncryptionsClient

NewTransparentDataEncryptionsClient creates an instance of the TransparentDataEncryptionsClient client.

func NewTransparentDataEncryptionsClientWithBaseURI Uses

func NewTransparentDataEncryptionsClientWithBaseURI(baseURI string, subscriptionID string) TransparentDataEncryptionsClient

NewTransparentDataEncryptionsClientWithBaseURI creates an instance of the TransparentDataEncryptionsClient client.

func (TransparentDataEncryptionsClient) CreateOrUpdate Uses

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

CreateOrUpdate creates or updates a database's transparent data encryption configuration. 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 setting the transparent data encryption applies. parameters - the required parameters for creating or updating transparent data encryption.

func (TransparentDataEncryptionsClient) CreateOrUpdatePreparer Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (TransparentDataEncryptionsClient) CreateOrUpdateResponder Uses

func (client TransparentDataEncryptionsClient) CreateOrUpdateResponder(resp *http.Response) (result TransparentDataEncryption, err error)

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

func (TransparentDataEncryptionsClient) CreateOrUpdateSender Uses

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

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

Get gets a database's transparent data encryption configuration. 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 transparent data encryption applies.

func (TransparentDataEncryptionsClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (TransparentDataEncryptionsClient) GetResponder Uses

func (client TransparentDataEncryptionsClient) GetResponder(resp *http.Response) (result TransparentDataEncryption, err error)

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

func (TransparentDataEncryptionsClient) GetSender Uses

func (client TransparentDataEncryptionsClient) 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.

Directories

PathSynopsis
sqlapi

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