sql

package
v9.0.0-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

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

Provides create, read, update and delete functionality for Azure SQL Database resources including servers, databases, elastic pools, recommendations, operations, and usage metrics.

Index

Constants

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

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

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

func Version

func Version() string

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

Types

type CreateMode

type CreateMode string

CreateMode enumerates the values for create mode.

const (
	// Copy specifies the copy state for create mode.
	Copy CreateMode = "Copy"
	// Default specifies the default state for create mode.
	Default CreateMode = "Default"
	// NonReadableSecondary specifies the non readable secondary state for
	// create mode.
	NonReadableSecondary CreateMode = "NonReadableSecondary"
	// OnlineSecondary specifies the online secondary state for create mode.
	OnlineSecondary CreateMode = "OnlineSecondary"
	// PointInTimeRestore specifies the point in time restore state for create
	// mode.
	PointInTimeRestore CreateMode = "PointInTimeRestore"
	// Recovery specifies the recovery state for create mode.
	Recovery CreateMode = "Recovery"
	// Restore specifies the restore state for create mode.
	Restore CreateMode = "Restore"
	// RestoreLongTermRetentionBackup specifies the restore long term retention
	// backup state for create mode.
	RestoreLongTermRetentionBackup CreateMode = "RestoreLongTermRetentionBackup"
)

type Database

type Database struct {
	autorest.Response   `json:"-"`
	ID                  *string             `json:"id,omitempty"`
	Name                *string             `json:"name,omitempty"`
	Type                *string             `json:"type,omitempty"`
	Tags                *map[string]*string `json:"tags,omitempty"`
	Location            *string             `json:"location,omitempty"`
	Kind                *string             `json:"kind,omitempty"`
	*DatabaseProperties `json:"properties,omitempty"`
}

Database is represents a database.

type DatabaseEdition

type DatabaseEdition string

DatabaseEdition enumerates the values for database edition.

const (
	// Basic specifies the basic state for database edition.
	Basic DatabaseEdition = "Basic"
	// Business specifies the business state for database edition.
	Business DatabaseEdition = "Business"
	// DataWarehouse specifies the data warehouse state for database edition.
	DataWarehouse DatabaseEdition = "DataWarehouse"
	// Free specifies the free state for database edition.
	Free DatabaseEdition = "Free"
	// Premium specifies the premium state for database edition.
	Premium DatabaseEdition = "Premium"
	// Standard specifies the standard state for database edition.
	Standard DatabaseEdition = "Standard"
	// Stretch specifies the stretch state for database edition.
	Stretch DatabaseEdition = "Stretch"
	// System specifies the system state for database edition.
	System DatabaseEdition = "System"
	// System2 specifies the system 2 state for database edition.
	System2 DatabaseEdition = "System2"
	// Web specifies the web state for database edition.
	Web DatabaseEdition = "Web"
)

type DatabaseListResult

type DatabaseListResult struct {
	autorest.Response `json:"-"`
	Value             *[]Database `json:"value,omitempty"`
}

DatabaseListResult is represents the response to a list database request.

type DatabaseMetric

type DatabaseMetric struct {
	Name          *string    `json:"name,omitempty"`
	ID            *string    `json:"id,omitempty"`
	ResourceName  *string    `json:"resourceName,omitempty"`
	DisplayName   *string    `json:"displayName,omitempty"`
	CurrentValue  *float64   `json:"currentValue,omitempty"`
	Limit         *float64   `json:"limit,omitempty"`
	Unit          *string    `json:"unit,omitempty"`
	NextResetTime *date.Time `json:"nextResetTime,omitempty"`
}

DatabaseMetric is represents database metrics.

type DatabaseMetricListResult

type DatabaseMetricListResult struct {
	autorest.Response `json:"-"`
	Value             *[]DatabaseMetric `json:"value,omitempty"`
}

DatabaseMetricListResult is represents the response to a list database metrics request.

type DatabaseProperties

type DatabaseProperties struct {
	Collation                               *string                      `json:"collation,omitempty"`
	CreationDate                            *date.Time                   `json:"creationDate,omitempty"`
	ContainmentState                        *int64                       `json:"containmentState,omitempty"`
	CurrentServiceObjectiveID               *uuid.UUID                   `json:"currentServiceObjectiveId,omitempty"`
	DatabaseID                              *string                      `json:"databaseId,omitempty"`
	EarliestRestoreDate                     *date.Time                   `json:"earliestRestoreDate,omitempty"`
	CreateMode                              CreateMode                   `json:"createMode,omitempty"`
	SourceDatabaseID                        *string                      `json:"sourceDatabaseId,omitempty"`
	SourceDatabaseDeletionDate              *date.Time                   `json:"sourceDatabaseDeletionDate,omitempty"`
	RestorePointInTime                      *date.Time                   `json:"restorePointInTime,omitempty"`
	RecoveryServicesRecoveryPointResourceID *date.Time                   `json:"recoveryServicesRecoveryPointResourceId,omitempty"`
	Edition                                 DatabaseEdition              `json:"edition,omitempty"`
	MaxSizeBytes                            *string                      `json:"maxSizeBytes,omitempty"`
	RequestedServiceObjectiveID             *uuid.UUID                   `json:"requestedServiceObjectiveId,omitempty"`
	RequestedServiceObjectiveName           ServiceObjectiveName         `json:"requestedServiceObjectiveName,omitempty"`
	ServiceLevelObjective                   ServiceObjectiveName         `json:"serviceLevelObjective,omitempty"`
	Status                                  *string                      `json:"status,omitempty"`
	ElasticPoolName                         *string                      `json:"elasticPoolName,omitempty"`
	DefaultSecondaryLocation                *string                      `json:"defaultSecondaryLocation,omitempty"`
	ServiceTierAdvisors                     *[]ServiceTierAdvisor        `json:"serviceTierAdvisors,omitempty"`
	TransparentDataEncryption               *[]TransparentDataEncryption `json:"transparentDataEncryption,omitempty"`
	RecommendedIndex                        *[]RecommendedIndex          `json:"recommendedIndex,omitempty"`
	FailoverGroupID                         *uuid.UUID                   `json:"failoverGroupId,omitempty"`
	ReadScale                               ReadScale                    `json:"readScale,omitempty"`
	SampleName                              SampleName                   `json:"sampleName,omitempty"`
}

DatabaseProperties is represents the properties of a database.

type DatabasesClient

type DatabasesClient struct {
	ManagementClient
}

DatabasesClient is the provides create, read, update and delete functionality for Azure SQL Database resources including servers, databases, elastic pools, recommendations, operations, and usage metrics.

func NewDatabasesClient

func NewDatabasesClient(subscriptionID string) DatabasesClient

NewDatabasesClient creates an instance of the DatabasesClient client.

func NewDatabasesClientWithBaseURI

func NewDatabasesClientWithBaseURI(baseURI string, subscriptionID string) DatabasesClient

NewDatabasesClientWithBaseURI creates an instance of the DatabasesClient client.

func (DatabasesClient) CreateOrUpdate

func (client DatabasesClient) CreateOrUpdate(resourceGroupName string, serverName string, databaseName string, parameters Database, cancel <-chan struct{}) (result autorest.Response, err error)

CreateOrUpdate creates a new database or updates an existing database. Location is a required property in the request body, and it must be the same as the location of the SQL server. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is 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 is the name of the server. databaseName is the name of the database to be operated on (updated or created). parameters is the required parameters for creating or updating a database.

func (DatabasesClient) CreateOrUpdatePreparer

func (client DatabasesClient) CreateOrUpdatePreparer(resourceGroupName string, serverName string, databaseName string, parameters Database, cancel <-chan struct{}) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DatabasesClient) CreateOrUpdateResponder

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

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

func (DatabasesClient) CreateOrUpdateSender

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

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

func (DatabasesClient) CreateOrUpdateTransparentDataEncryptionConfiguration

func (client DatabasesClient) CreateOrUpdateTransparentDataEncryptionConfiguration(resourceGroupName string, serverName string, databaseName string, parameters TransparentDataEncryption) (result TransparentDataEncryption, err error)

CreateOrUpdateTransparentDataEncryptionConfiguration creates or updates a database's transparent data encryption configuration.

resourceGroupName is 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 is the name of the server. databaseName is the name of the database for which setting the transparent data encryption applies. parameters is the required parameters for creating or updating transparent data encryption.

func (DatabasesClient) CreateOrUpdateTransparentDataEncryptionConfigurationPreparer

func (client DatabasesClient) CreateOrUpdateTransparentDataEncryptionConfigurationPreparer(resourceGroupName string, serverName string, databaseName string, parameters TransparentDataEncryption) (*http.Request, error)

CreateOrUpdateTransparentDataEncryptionConfigurationPreparer prepares the CreateOrUpdateTransparentDataEncryptionConfiguration request.

func (DatabasesClient) CreateOrUpdateTransparentDataEncryptionConfigurationResponder

func (client DatabasesClient) CreateOrUpdateTransparentDataEncryptionConfigurationResponder(resp *http.Response) (result TransparentDataEncryption, err error)

CreateOrUpdateTransparentDataEncryptionConfigurationResponder handles the response to the CreateOrUpdateTransparentDataEncryptionConfiguration request. The method always closes the http.Response Body.

func (DatabasesClient) CreateOrUpdateTransparentDataEncryptionConfigurationSender

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

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

func (DatabasesClient) Delete

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

Delete deletes a database.

resourceGroupName is 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 is the name of the server. databaseName is the name of the database to be deleted.

func (DatabasesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (DatabasesClient) DeleteResponder

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

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

func (DatabasesClient) DeleteSender

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

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

func (DatabasesClient) Get

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

Get gets a database.

resourceGroupName is 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 is the name of the server. databaseName is the name of the database to be retrieved. expand is a comma separated list of child objects to expand in the response. Possible properties: serviceTierAdvisors, transparentDataEncryption.

func (DatabasesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (DatabasesClient) GetResponder

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

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

func (DatabasesClient) GetSender

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

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

func (DatabasesClient) GetServiceTierAdvisor

func (client DatabasesClient) GetServiceTierAdvisor(resourceGroupName string, serverName string, databaseName string, serviceTierAdvisorName string) (result ServiceTierAdvisor, err error)

GetServiceTierAdvisor gets a service tier advisor.

resourceGroupName is 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 is the name of the server. databaseName is the name of database. serviceTierAdvisorName is the name of service tier advisor.

func (DatabasesClient) GetServiceTierAdvisorPreparer

func (client DatabasesClient) GetServiceTierAdvisorPreparer(resourceGroupName string, serverName string, databaseName string, serviceTierAdvisorName string) (*http.Request, error)

GetServiceTierAdvisorPreparer prepares the GetServiceTierAdvisor request.

func (DatabasesClient) GetServiceTierAdvisorResponder

func (client DatabasesClient) GetServiceTierAdvisorResponder(resp *http.Response) (result ServiceTierAdvisor, err error)

GetServiceTierAdvisorResponder handles the response to the GetServiceTierAdvisor request. The method always closes the http.Response Body.

func (DatabasesClient) GetServiceTierAdvisorSender

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

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

func (DatabasesClient) GetTransparentDataEncryptionConfiguration

func (client DatabasesClient) GetTransparentDataEncryptionConfiguration(resourceGroupName string, serverName string, databaseName string) (result TransparentDataEncryption, err error)

GetTransparentDataEncryptionConfiguration gets a database's transparent data encryption configuration.

resourceGroupName is 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 is the name of the server. databaseName is the name of the database for which the transparent data encryption applies.

func (DatabasesClient) GetTransparentDataEncryptionConfigurationPreparer

func (client DatabasesClient) GetTransparentDataEncryptionConfigurationPreparer(resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

GetTransparentDataEncryptionConfigurationPreparer prepares the GetTransparentDataEncryptionConfiguration request.

func (DatabasesClient) GetTransparentDataEncryptionConfigurationResponder

func (client DatabasesClient) GetTransparentDataEncryptionConfigurationResponder(resp *http.Response) (result TransparentDataEncryption, err error)

GetTransparentDataEncryptionConfigurationResponder handles the response to the GetTransparentDataEncryptionConfiguration request. The method always closes the http.Response Body.

func (DatabasesClient) GetTransparentDataEncryptionConfigurationSender

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

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

func (DatabasesClient) ListByServer

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

ListByServer returns a list of databases in a server.

resourceGroupName is 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 is the name of the server. expand is a comma separated list of child objects to expand in the response. Possible properties: serviceTierAdvisors, transparentDataEncryption. filter is an OData filter expression that describes a subset of databases to return.

func (DatabasesClient) ListByServerPreparer

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

ListByServerPreparer prepares the ListByServer request.

func (DatabasesClient) ListByServerResponder

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

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

func (DatabasesClient) ListByServerSender

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

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

func (DatabasesClient) ListRestorePoints

func (client DatabasesClient) ListRestorePoints(resourceGroupName string, serverName string, databaseName string) (result RestorePointListResult, err error)

ListRestorePoints returns a list of database restore points.

resourceGroupName is 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 is the name of the server. databaseName is the name of the database from which to retrieve available restore points.

func (DatabasesClient) ListRestorePointsPreparer

func (client DatabasesClient) ListRestorePointsPreparer(resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

ListRestorePointsPreparer prepares the ListRestorePoints request.

func (DatabasesClient) ListRestorePointsResponder

func (client DatabasesClient) ListRestorePointsResponder(resp *http.Response) (result RestorePointListResult, err error)

ListRestorePointsResponder handles the response to the ListRestorePoints request. The method always closes the http.Response Body.

func (DatabasesClient) ListRestorePointsSender

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

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

func (DatabasesClient) ListServiceTierAdvisors

func (client DatabasesClient) ListServiceTierAdvisors(resourceGroupName string, serverName string, databaseName string) (result ServiceTierAdvisorListResult, err error)

ListServiceTierAdvisors returns service tier advisors for specified database.

resourceGroupName is 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 is the name of the server. databaseName is the name of database.

func (DatabasesClient) ListServiceTierAdvisorsPreparer

func (client DatabasesClient) ListServiceTierAdvisorsPreparer(resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

ListServiceTierAdvisorsPreparer prepares the ListServiceTierAdvisors request.

func (DatabasesClient) ListServiceTierAdvisorsResponder

func (client DatabasesClient) ListServiceTierAdvisorsResponder(resp *http.Response) (result ServiceTierAdvisorListResult, err error)

ListServiceTierAdvisorsResponder handles the response to the ListServiceTierAdvisors request. The method always closes the http.Response Body.

func (DatabasesClient) ListServiceTierAdvisorsSender

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

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

func (DatabasesClient) ListTransparentDataEncryptionActivity

func (client DatabasesClient) ListTransparentDataEncryptionActivity(resourceGroupName string, serverName string, databaseName string) (result TransparentDataEncryptionActivityListResult, err error)

ListTransparentDataEncryptionActivity returns a database's transparent data encryption operation result.

resourceGroupName is 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 is the name of the server. databaseName is the name of the database for which the transparent data encryption applies.

func (DatabasesClient) ListTransparentDataEncryptionActivityPreparer

func (client DatabasesClient) ListTransparentDataEncryptionActivityPreparer(resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

ListTransparentDataEncryptionActivityPreparer prepares the ListTransparentDataEncryptionActivity request.

func (DatabasesClient) ListTransparentDataEncryptionActivityResponder

func (client DatabasesClient) ListTransparentDataEncryptionActivityResponder(resp *http.Response) (result TransparentDataEncryptionActivityListResult, err error)

ListTransparentDataEncryptionActivityResponder handles the response to the ListTransparentDataEncryptionActivity request. The method always closes the http.Response Body.

func (DatabasesClient) ListTransparentDataEncryptionActivitySender

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

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

func (DatabasesClient) ListUsages

func (client DatabasesClient) ListUsages(resourceGroupName string, serverName string, databaseName string) (result DatabaseMetricListResult, err error)

ListUsages returns database usages.

resourceGroupName is 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 is the name of the server. databaseName is the name of the database.

func (DatabasesClient) ListUsagesPreparer

func (client DatabasesClient) ListUsagesPreparer(resourceGroupName string, serverName string, databaseName string) (*http.Request, error)

ListUsagesPreparer prepares the ListUsages request.

func (DatabasesClient) ListUsagesResponder

func (client DatabasesClient) ListUsagesResponder(resp *http.Response) (result DatabaseMetricListResult, err error)

ListUsagesResponder handles the response to the ListUsages request. The method always closes the http.Response Body.

func (DatabasesClient) ListUsagesSender

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

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

func (DatabasesClient) Pause

func (client DatabasesClient) Pause(resourceGroupName string, serverName string, databaseName string, cancel <-chan struct{}) (result autorest.Response, err error)

Pause pauses a data warehouse. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is 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 is the name of the server. databaseName is the name of the data warehouse to pause.

func (DatabasesClient) PausePreparer

func (client DatabasesClient) PausePreparer(resourceGroupName string, serverName string, databaseName string, cancel <-chan struct{}) (*http.Request, error)

PausePreparer prepares the Pause request.

func (DatabasesClient) PauseResponder

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

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

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

func (DatabasesClient) Resume

func (client DatabasesClient) Resume(resourceGroupName string, serverName string, databaseName string, cancel <-chan struct{}) (result autorest.Response, err error)

Resume resumes a data warehouse. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is 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 is the name of the server. databaseName is the name of the data warehouse to resume.

func (DatabasesClient) ResumePreparer

func (client DatabasesClient) ResumePreparer(resourceGroupName string, serverName string, databaseName string, cancel <-chan struct{}) (*http.Request, error)

ResumePreparer prepares the Resume request.

func (DatabasesClient) ResumeResponder

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

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

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

type ElasticPool

type ElasticPool struct {
	autorest.Response      `json:"-"`
	ID                     *string             `json:"id,omitempty"`
	Name                   *string             `json:"name,omitempty"`
	Type                   *string             `json:"type,omitempty"`
	Tags                   *map[string]*string `json:"tags,omitempty"`
	Location               *string             `json:"location,omitempty"`
	*ElasticPoolProperties `json:"properties,omitempty"`
	Kind                   *string `json:"kind,omitempty"`
}

ElasticPool is represents a database elastic pool.

type ElasticPoolActivity

type ElasticPoolActivity struct {
	ID                             *string `json:"id,omitempty"`
	Name                           *string `json:"name,omitempty"`
	Type                           *string `json:"type,omitempty"`
	Location                       *string `json:"location,omitempty"`
	*ElasticPoolActivityProperties `json:"properties,omitempty"`
}

ElasticPoolActivity is represents the activity on an elastic pool.

type ElasticPoolActivityListResult

type ElasticPoolActivityListResult struct {
	autorest.Response `json:"-"`
	Value             *[]ElasticPoolActivity `json:"value,omitempty"`
}

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

type ElasticPoolActivityProperties

type ElasticPoolActivityProperties struct {
	EndTime                       *date.Time `json:"endTime,omitempty"`
	ErrorCode                     *int32     `json:"errorCode,omitempty"`
	ErrorMessage                  *string    `json:"errorMessage,omitempty"`
	ErrorSeverity                 *int32     `json:"errorSeverity,omitempty"`
	Operation                     *string    `json:"operation,omitempty"`
	OperationID                   *string    `json:"operationId,omitempty"`
	PercentComplete               *int32     `json:"percentComplete,omitempty"`
	RequestedDatabaseDtuMax       *int32     `json:"requestedDatabaseDtuMax,omitempty"`
	RequestedDatabaseDtuMin       *int32     `json:"requestedDatabaseDtuMin,omitempty"`
	RequestedDtu                  *int32     `json:"requestedDtu,omitempty"`
	RequestedElasticPoolName      *string    `json:"requestedElasticPoolName,omitempty"`
	RequestedStorageLimitInGB     *int64     `json:"requestedStorageLimitInGB,omitempty"`
	ElasticPoolName               *string    `json:"elasticPoolName,omitempty"`
	ServerName                    *string    `json:"serverName,omitempty"`
	StartTime                     *date.Time `json:"startTime,omitempty"`
	State                         *string    `json:"state,omitempty"`
	RequestedStorageLimitInMB     *int32     `json:"requestedStorageLimitInMB,omitempty"`
	RequestedDatabaseDtuGuarantee *int32     `json:"requestedDatabaseDtuGuarantee,omitempty"`
	RequestedDatabaseDtuCap       *int32     `json:"requestedDatabaseDtuCap,omitempty"`
	RequestedDtuGuarantee         *int32     `json:"requestedDtuGuarantee,omitempty"`
}

ElasticPoolActivityProperties is represents the properties of an elastic pool.

type ElasticPoolDatabaseActivity

type ElasticPoolDatabaseActivity struct {
	ID                                     *string `json:"id,omitempty"`
	Name                                   *string `json:"name,omitempty"`
	Type                                   *string `json:"type,omitempty"`
	Location                               *string `json:"location,omitempty"`
	*ElasticPoolDatabaseActivityProperties `json:"properties,omitempty"`
}

ElasticPoolDatabaseActivity is represents the activity on an elastic pool.

type ElasticPoolDatabaseActivityListResult

type ElasticPoolDatabaseActivityListResult struct {
	autorest.Response `json:"-"`
	Value             *[]ElasticPoolDatabaseActivity `json:"value,omitempty"`
}

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

type ElasticPoolDatabaseActivityProperties

type ElasticPoolDatabaseActivityProperties struct {
	DatabaseName              *string    `json:"databaseName,omitempty"`
	EndTime                   *date.Time `json:"endTime,omitempty"`
	ErrorCode                 *int32     `json:"errorCode,omitempty"`
	ErrorMessage              *string    `json:"errorMessage,omitempty"`
	ErrorSeverity             *int32     `json:"errorSeverity,omitempty"`
	Operation                 *string    `json:"operation,omitempty"`
	OperationID               *uuid.UUID `json:"operationId,omitempty"`
	PercentComplete           *int32     `json:"percentComplete,omitempty"`
	RequestedElasticPoolName  *string    `json:"requestedElasticPoolName,omitempty"`
	CurrentElasticPoolName    *string    `json:"currentElasticPoolName,omitempty"`
	CurrentServiceObjective   *string    `json:"currentServiceObjective,omitempty"`
	RequestedServiceObjective *string    `json:"requestedServiceObjective,omitempty"`
	ServerName                *string    `json:"serverName,omitempty"`
	StartTime                 *date.Time `json:"startTime,omitempty"`
	State                     *string    `json:"state,omitempty"`
}

ElasticPoolDatabaseActivityProperties is represents the properties of an elastic pool database activity.

type ElasticPoolEdition

type ElasticPoolEdition string

ElasticPoolEdition enumerates the values for elastic pool edition.

const (
	// ElasticPoolEditionBasic specifies the elastic pool edition basic state
	// for elastic pool edition.
	ElasticPoolEditionBasic ElasticPoolEdition = "Basic"
	// ElasticPoolEditionPremium specifies the elastic pool edition premium
	// state for elastic pool edition.
	ElasticPoolEditionPremium ElasticPoolEdition = "Premium"
	// ElasticPoolEditionStandard specifies the elastic pool edition standard
	// state for elastic pool edition.
	ElasticPoolEditionStandard ElasticPoolEdition = "Standard"
)

type ElasticPoolListResult

type ElasticPoolListResult struct {
	autorest.Response `json:"-"`
	Value             *[]ElasticPool `json:"value,omitempty"`
}

ElasticPoolListResult is represents the response to a list elastic pool request.

type ElasticPoolProperties

type ElasticPoolProperties struct {
	CreationDate   *date.Time         `json:"creationDate,omitempty"`
	State          ElasticPoolState   `json:"state,omitempty"`
	Edition        ElasticPoolEdition `json:"edition,omitempty"`
	Dtu            *int32             `json:"dtu,omitempty"`
	DatabaseDtuMax *int32             `json:"databaseDtuMax,omitempty"`
	DatabaseDtuMin *int32             `json:"databaseDtuMin,omitempty"`
	StorageMB      *int32             `json:"storageMB,omitempty"`
}

ElasticPoolProperties is represents the properties of an elastic pool.

type ElasticPoolState

type ElasticPoolState string

ElasticPoolState enumerates the values for elastic pool state.

const (
	// Creating specifies the creating state for elastic pool state.
	Creating ElasticPoolState = "Creating"
	// Disabled specifies the disabled state for elastic pool state.
	Disabled ElasticPoolState = "Disabled"
	// Ready specifies the ready state for elastic pool state.
	Ready ElasticPoolState = "Ready"
)

type ElasticPoolsClient

type ElasticPoolsClient struct {
	ManagementClient
}

ElasticPoolsClient is the provides create, read, update and delete functionality for Azure SQL Database resources including servers, databases, elastic pools, recommendations, operations, and usage metrics.

func NewElasticPoolsClient

func NewElasticPoolsClient(subscriptionID string) ElasticPoolsClient

NewElasticPoolsClient creates an instance of the ElasticPoolsClient client.

func NewElasticPoolsClientWithBaseURI

func NewElasticPoolsClientWithBaseURI(baseURI string, subscriptionID string) ElasticPoolsClient

NewElasticPoolsClientWithBaseURI creates an instance of the ElasticPoolsClient client.

func (ElasticPoolsClient) CreateOrUpdate

func (client ElasticPoolsClient) CreateOrUpdate(resourceGroupName string, serverName string, elasticPoolName string, parameters ElasticPool, cancel <-chan struct{}) (result autorest.Response, err error)

CreateOrUpdate creates a new elastic pool or updates an existing elastic pool. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is 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 is the name of the server. elasticPoolName is the name of the elastic pool to be operated on (updated or created). parameters is the required parameters for creating or updating an elastic pool.

func (ElasticPoolsClient) CreateOrUpdatePreparer

func (client ElasticPoolsClient) CreateOrUpdatePreparer(resourceGroupName string, serverName string, elasticPoolName string, parameters ElasticPool, cancel <-chan struct{}) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ElasticPoolsClient) CreateOrUpdateResponder

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

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

func (ElasticPoolsClient) CreateOrUpdateSender

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

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

func (ElasticPoolsClient) Delete

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

Delete deletes the elastic pool.

resourceGroupName is 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 is the name of the server. elasticPoolName is the name of the elastic pool to be deleted.

func (ElasticPoolsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ElasticPoolsClient) DeleteResponder

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

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

func (ElasticPoolsClient) DeleteSender

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

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

func (ElasticPoolsClient) Get

func (client ElasticPoolsClient) Get(resourceGroupName string, serverName string, elasticPoolName string) (result ElasticPool, err error)

Get gets an elastic pool.

resourceGroupName is 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 is the name of the server. elasticPoolName is the name of the elastic pool to be retrieved.

func (ElasticPoolsClient) GetDatabase

func (client ElasticPoolsClient) GetDatabase(resourceGroupName string, serverName string, elasticPoolName string, databaseName string) (result Database, err error)

GetDatabase gets a database inside of an elastic pool.

resourceGroupName is 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 is the name of the server. elasticPoolName is the name of the elastic pool to be retrieved. databaseName is the name of the database to be retrieved.

func (ElasticPoolsClient) GetDatabasePreparer

func (client ElasticPoolsClient) GetDatabasePreparer(resourceGroupName string, serverName string, elasticPoolName string, databaseName string) (*http.Request, error)

GetDatabasePreparer prepares the GetDatabase request.

func (ElasticPoolsClient) GetDatabaseResponder

func (client ElasticPoolsClient) GetDatabaseResponder(resp *http.Response) (result Database, err error)

GetDatabaseResponder handles the response to the GetDatabase request. The method always closes the http.Response Body.

func (ElasticPoolsClient) GetDatabaseSender

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

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

func (ElasticPoolsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ElasticPoolsClient) GetResponder

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

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

func (ElasticPoolsClient) GetSender

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

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

func (ElasticPoolsClient) ListActivity

func (client ElasticPoolsClient) ListActivity(resourceGroupName string, serverName string, elasticPoolName string) (result ElasticPoolActivityListResult, err error)

ListActivity returns elastic pool activities.

resourceGroupName is 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 is the name of the server. elasticPoolName is the name of the elastic pool for which to get the current activity.

func (ElasticPoolsClient) ListActivityPreparer

func (client ElasticPoolsClient) ListActivityPreparer(resourceGroupName string, serverName string, elasticPoolName string) (*http.Request, error)

ListActivityPreparer prepares the ListActivity request.

func (ElasticPoolsClient) ListActivityResponder

func (client ElasticPoolsClient) ListActivityResponder(resp *http.Response) (result ElasticPoolActivityListResult, err error)

ListActivityResponder handles the response to the ListActivity request. The method always closes the http.Response Body.

func (ElasticPoolsClient) ListActivitySender

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

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

func (ElasticPoolsClient) ListByServer

func (client ElasticPoolsClient) ListByServer(resourceGroupName string, serverName string) (result ElasticPoolListResult, err error)

ListByServer returns a list of elastic pools in a server.

resourceGroupName is 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 is the name of the server.

func (ElasticPoolsClient) ListByServerPreparer

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

ListByServerPreparer prepares the ListByServer request.

func (ElasticPoolsClient) ListByServerResponder

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

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

func (ElasticPoolsClient) ListByServerSender

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

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

func (ElasticPoolsClient) ListDatabaseActivity

func (client ElasticPoolsClient) ListDatabaseActivity(resourceGroupName string, serverName string, elasticPoolName string) (result ElasticPoolDatabaseActivityListResult, err error)

ListDatabaseActivity returns activity on databases inside of an elastic pool.

resourceGroupName is 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 is the name of the server. elasticPoolName is the name of the elastic pool.

func (ElasticPoolsClient) ListDatabaseActivityPreparer

func (client ElasticPoolsClient) ListDatabaseActivityPreparer(resourceGroupName string, serverName string, elasticPoolName string) (*http.Request, error)

ListDatabaseActivityPreparer prepares the ListDatabaseActivity request.

func (ElasticPoolsClient) ListDatabaseActivityResponder

func (client ElasticPoolsClient) ListDatabaseActivityResponder(resp *http.Response) (result ElasticPoolDatabaseActivityListResult, err error)

ListDatabaseActivityResponder handles the response to the ListDatabaseActivity request. The method always closes the http.Response Body.

func (ElasticPoolsClient) ListDatabaseActivitySender

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

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

func (ElasticPoolsClient) ListDatabases

func (client ElasticPoolsClient) ListDatabases(resourceGroupName string, serverName string, elasticPoolName string) (result DatabaseListResult, err error)

ListDatabases returns a list of databases in an elastic pool.

resourceGroupName is 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 is the name of the server. elasticPoolName is the name of the elastic pool to be retrieved.

func (ElasticPoolsClient) ListDatabasesPreparer

func (client ElasticPoolsClient) ListDatabasesPreparer(resourceGroupName string, serverName string, elasticPoolName string) (*http.Request, error)

ListDatabasesPreparer prepares the ListDatabases request.

func (ElasticPoolsClient) ListDatabasesResponder

func (client ElasticPoolsClient) ListDatabasesResponder(resp *http.Response) (result DatabaseListResult, err error)

ListDatabasesResponder handles the response to the ListDatabases request. The method always closes the http.Response Body.

func (ElasticPoolsClient) ListDatabasesSender

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

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

type ManagementClient

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

ManagementClient is the base client for Sql.

func New

func New(subscriptionID string) ManagementClient

New creates an instance of the ManagementClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) ManagementClient

NewWithBaseURI creates an instance of the ManagementClient client.

func (ManagementClient) ListOperations

func (client ManagementClient) ListOperations() (result OperationListResult, err error)

ListOperations lists all of the available SQL Rest API operations.

func (ManagementClient) ListOperationsPreparer

func (client ManagementClient) ListOperationsPreparer() (*http.Request, error)

ListOperationsPreparer prepares the ListOperations request.

func (ManagementClient) ListOperationsResponder

func (client ManagementClient) ListOperationsResponder(resp *http.Response) (result OperationListResult, err error)

ListOperationsResponder handles the response to the ListOperations request. The method always closes the http.Response Body.

func (ManagementClient) ListOperationsSender

func (client ManagementClient) ListOperationsSender(req *http.Request) (*http.Response, error)

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

type Operation

type Operation struct {
	Name    *string           `json:"name,omitempty"`
	Display *OperationDisplay `json:"display,omitempty"`
}

Operation is sQL REST API operation definition.

type OperationDisplay

type OperationDisplay struct {
	Provider  *string `json:"provider,omitempty"`
	Resource  *string `json:"resource,omitempty"`
	Operation *string `json:"operation,omitempty"`
}

OperationDisplay is display metadata associated with the operation.

type OperationImpact

type OperationImpact struct {
	Name                *string  `json:"name,omitempty"`
	Unit                *string  `json:"unit,omitempty"`
	ChangeValueAbsolute *float64 `json:"changeValueAbsolute,omitempty"`
	ChangeValueRelative *float64 `json:"changeValueRelative,omitempty"`
}

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

type OperationListResult

type OperationListResult struct {
	autorest.Response `json:"-"`
	Value             *[]Operation `json:"value,omitempty"`
	NextLink          *string      `json:"nextLink,omitempty"`
}

OperationListResult is result of the request to list SQL operations. It contains a list of operations and a URL link to get the next set of results.

type ProxyResource

type ProxyResource struct {
	ID   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
	Type *string `json:"type,omitempty"`
}

ProxyResource is aRM proxy resource.

type ReadScale

type ReadScale string

ReadScale enumerates the values for read scale.

const (
	// ReadScaleDisabled specifies the read scale disabled state for read
	// scale.
	ReadScaleDisabled ReadScale = "Disabled"
	// ReadScaleEnabled specifies the read scale enabled state for read scale.
	ReadScaleEnabled ReadScale = "Enabled"
)

type RecommendedElasticPool

type RecommendedElasticPool struct {
	autorest.Response                 `json:"-"`
	ID                                *string `json:"id,omitempty"`
	Name                              *string `json:"name,omitempty"`
	Type                              *string `json:"type,omitempty"`
	*RecommendedElasticPoolProperties `json:"properties,omitempty"`
}

RecommendedElasticPool is represents a recommented elastic pool.

type RecommendedElasticPoolListMetricsResult

type RecommendedElasticPoolListMetricsResult struct {
	autorest.Response `json:"-"`
	Value             *[]RecommendedElasticPoolMetric `json:"value,omitempty"`
}

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

type RecommendedElasticPoolListResult

type RecommendedElasticPoolListResult struct {
	autorest.Response `json:"-"`
	Value             *[]RecommendedElasticPool `json:"value,omitempty"`
}

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

type RecommendedElasticPoolMetric

type RecommendedElasticPoolMetric struct {
	DateTime *date.Time `json:"dateTime,omitempty"`
	Dtu      *float64   `json:"dtu,omitempty"`
	SizeGB   *float64   `json:"sizeGB,omitempty"`
}

RecommendedElasticPoolMetric is represents recommended elastic pool metric.

type RecommendedElasticPoolProperties

type RecommendedElasticPoolProperties struct {
	DatabaseEdition        ElasticPoolEdition              `json:"databaseEdition,omitempty"`
	Dtu                    *float64                        `json:"dtu,omitempty"`
	DatabaseDtuMin         *float64                        `json:"databaseDtuMin,omitempty"`
	DatabaseDtuMax         *float64                        `json:"databaseDtuMax,omitempty"`
	StorageMB              *float64                        `json:"storageMB,omitempty"`
	ObservationPeriodStart *date.Time                      `json:"observationPeriodStart,omitempty"`
	ObservationPeriodEnd   *date.Time                      `json:"observationPeriodEnd,omitempty"`
	MaxObservedDtu         *float64                        `json:"maxObservedDtu,omitempty"`
	MaxObservedStorageMB   *float64                        `json:"maxObservedStorageMB,omitempty"`
	Databases              *[]Database                     `json:"databases,omitempty"`
	Metrics                *[]RecommendedElasticPoolMetric `json:"metrics,omitempty"`
}

RecommendedElasticPoolProperties is represents the properties of a recommented elastic pool.

type RecommendedElasticPoolsClient

type RecommendedElasticPoolsClient struct {
	ManagementClient
}

RecommendedElasticPoolsClient is the provides create, read, update and delete functionality for Azure SQL Database resources including servers, databases, elastic pools, recommendations, operations, and usage metrics.

func NewRecommendedElasticPoolsClient

func NewRecommendedElasticPoolsClient(subscriptionID string) RecommendedElasticPoolsClient

NewRecommendedElasticPoolsClient creates an instance of the RecommendedElasticPoolsClient client.

func NewRecommendedElasticPoolsClientWithBaseURI

func NewRecommendedElasticPoolsClientWithBaseURI(baseURI string, subscriptionID string) RecommendedElasticPoolsClient

NewRecommendedElasticPoolsClientWithBaseURI creates an instance of the RecommendedElasticPoolsClient client.

func (RecommendedElasticPoolsClient) Get

func (client RecommendedElasticPoolsClient) Get(resourceGroupName string, serverName string, recommendedElasticPoolName string) (result RecommendedElasticPool, err error)

Get gets a recommented elastic pool.

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

func (RecommendedElasticPoolsClient) GetDatabases

func (client RecommendedElasticPoolsClient) GetDatabases(resourceGroupName string, serverName string, recommendedElasticPoolName string, databaseName string) (result Database, err error)

GetDatabases gets a database inside of a recommented elastic pool.

resourceGroupName is 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 is the name of the server. recommendedElasticPoolName is the name of the elastic pool to be retrieved. databaseName is the name of the database to be retrieved.

func (RecommendedElasticPoolsClient) GetDatabasesPreparer

func (client RecommendedElasticPoolsClient) GetDatabasesPreparer(resourceGroupName string, serverName string, recommendedElasticPoolName string, databaseName string) (*http.Request, error)

GetDatabasesPreparer prepares the GetDatabases request.

func (RecommendedElasticPoolsClient) GetDatabasesResponder

func (client RecommendedElasticPoolsClient) GetDatabasesResponder(resp *http.Response) (result Database, err error)

GetDatabasesResponder handles the response to the GetDatabases request. The method always closes the http.Response Body.

func (RecommendedElasticPoolsClient) GetDatabasesSender

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

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

func (RecommendedElasticPoolsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (RecommendedElasticPoolsClient) GetResponder

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

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

func (client RecommendedElasticPoolsClient) ListByServer(resourceGroupName string, serverName string) (result RecommendedElasticPoolListResult, err error)

ListByServer returns recommended elastic pools.

resourceGroupName is 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 is the name of the server.

func (RecommendedElasticPoolsClient) ListByServerPreparer

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

ListByServerPreparer prepares the ListByServer request.

func (RecommendedElasticPoolsClient) ListByServerResponder

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

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) ListDatabases

func (client RecommendedElasticPoolsClient) ListDatabases(resourceGroupName string, serverName string, recommendedElasticPoolName string) (result DatabaseListResult, err error)

ListDatabases returns a list of databases inside a recommented elastic pool.

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

func (RecommendedElasticPoolsClient) ListDatabasesPreparer

func (client RecommendedElasticPoolsClient) ListDatabasesPreparer(resourceGroupName string, serverName string, recommendedElasticPoolName string) (*http.Request, error)

ListDatabasesPreparer prepares the ListDatabases request.

func (RecommendedElasticPoolsClient) ListDatabasesResponder

func (client RecommendedElasticPoolsClient) ListDatabasesResponder(resp *http.Response) (result DatabaseListResult, err error)

ListDatabasesResponder handles the response to the ListDatabases request. The method always closes the http.Response Body.

func (RecommendedElasticPoolsClient) ListDatabasesSender

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

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

func (RecommendedElasticPoolsClient) ListMetrics

func (client RecommendedElasticPoolsClient) ListMetrics(resourceGroupName string, serverName string, recommendedElasticPoolName string) (result RecommendedElasticPoolListMetricsResult, err error)

ListMetrics returns a recommented elastic pool metrics.

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

func (RecommendedElasticPoolsClient) ListMetricsPreparer

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

ListMetricsPreparer prepares the ListMetrics request.

func (RecommendedElasticPoolsClient) ListMetricsResponder

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

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

type RecommendedIndex struct {
	ID                          *string `json:"id,omitempty"`
	Name                        *string `json:"name,omitempty"`
	Type                        *string `json:"type,omitempty"`
	*RecommendedIndexProperties `json:"properties,omitempty"`
}

RecommendedIndex is represents a database recommended index.

type RecommendedIndexAction

type RecommendedIndexAction string

RecommendedIndexAction enumerates the values for recommended index action.

const (
	// Create specifies the create state for recommended index action.
	Create RecommendedIndexAction = "Create"
	// Drop specifies the drop state for recommended index action.
	Drop RecommendedIndexAction = "Drop"
	// Rebuild specifies the rebuild state for recommended index action.
	Rebuild RecommendedIndexAction = "Rebuild"
)

type RecommendedIndexProperties

type RecommendedIndexProperties struct {
	Action          RecommendedIndexAction `json:"action,omitempty"`
	State           RecommendedIndexState  `json:"state,omitempty"`
	Created         *date.Time             `json:"created,omitempty"`
	LastModified    *date.Time             `json:"lastModified,omitempty"`
	IndexType       RecommendedIndexType   `json:"indexType,omitempty"`
	Schema          *string                `json:"schema,omitempty"`
	Table           *string                `json:"table,omitempty"`
	Columns         *[]string              `json:"columns,omitempty"`
	IncludedColumns *[]string              `json:"includedColumns,omitempty"`
	IndexScript     *string                `json:"indexScript,omitempty"`
	EstimatedImpact *[]OperationImpact     `json:"estimatedImpact,omitempty"`
	ReportedImpact  *[]OperationImpact     `json:"reportedImpact,omitempty"`
}

RecommendedIndexProperties is represents the properties of a database recommended index.

type RecommendedIndexState

type RecommendedIndexState string

RecommendedIndexState enumerates the values for recommended index state.

const (
	// Active specifies the active state for recommended index state.
	Active RecommendedIndexState = "Active"
	// Blocked specifies the blocked state for recommended index state.
	Blocked RecommendedIndexState = "Blocked"
	// Executing specifies the executing state for recommended index state.
	Executing RecommendedIndexState = "Executing"
	// Expired specifies the expired state for recommended index state.
	Expired RecommendedIndexState = "Expired"
	// Ignored specifies the ignored state for recommended index state.
	Ignored RecommendedIndexState = "Ignored"
	// Pending specifies the pending state for recommended index state.
	Pending RecommendedIndexState = "Pending"
	// PendingRevert specifies the pending revert state for recommended index
	// state.
	PendingRevert RecommendedIndexState = "Pending Revert"
	// Reverted specifies the reverted state for recommended index state.
	Reverted RecommendedIndexState = "Reverted"
	// Reverting specifies the reverting state for recommended index state.
	Reverting RecommendedIndexState = "Reverting"
	// Success specifies the success state for recommended index state.
	Success RecommendedIndexState = "Success"
	// Verifying specifies the verifying state for recommended index state.
	Verifying RecommendedIndexState = "Verifying"
)

type RecommendedIndexType

type RecommendedIndexType string

RecommendedIndexType enumerates the values for recommended index type.

const (
	// CLUSTERED specifies the clustered state for recommended index type.
	CLUSTERED RecommendedIndexType = "CLUSTERED"
	// CLUSTEREDCOLUMNSTORE specifies the clusteredcolumnstore state for
	// recommended index type.
	CLUSTEREDCOLUMNSTORE RecommendedIndexType = "CLUSTERED COLUMNSTORE"
	// COLUMNSTORE specifies the columnstore state for recommended index type.
	COLUMNSTORE RecommendedIndexType = "COLUMNSTORE"
	// NONCLUSTERED specifies the nonclustered state for recommended index
	// type.
	NONCLUSTERED RecommendedIndexType = "NONCLUSTERED"
)

type Resource

type Resource struct {
	ID   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
	Type *string `json:"type,omitempty"`
}

Resource is aRM resource.

type RestorePoint

type RestorePoint struct {
	ID                      *string `json:"id,omitempty"`
	Name                    *string `json:"name,omitempty"`
	Type                    *string `json:"type,omitempty"`
	*RestorePointProperties `json:"properties,omitempty"`
}

RestorePoint is represents a database restore point.

type RestorePointListResult

type RestorePointListResult struct {
	autorest.Response `json:"-"`
	Value             *[]RestorePoint `json:"value,omitempty"`
}

RestorePointListResult is represents the response to a list database restore points request.

type RestorePointProperties

type RestorePointProperties struct {
	RestorePointType         RestorePointTypes `json:"restorePointType,omitempty"`
	RestorePointCreationDate *date.Time        `json:"restorePointCreationDate,omitempty"`
	EarliestRestoreDate      *date.Time        `json:"earliestRestoreDate,omitempty"`
}

RestorePointProperties is represents the properties of a database restore point.

type RestorePointTypes

type RestorePointTypes string

RestorePointTypes enumerates the values for restore point types.

const (
	// CONTINUOUS specifies the continuous state for restore point types.
	CONTINUOUS RestorePointTypes = "CONTINUOUS"
	// DISCRETE specifies the discrete state for restore point types.
	DISCRETE RestorePointTypes = "DISCRETE"
)

type SampleName

type SampleName string

SampleName enumerates the values for sample name.

const (
	// AdventureWorksLT specifies the adventure works lt state for sample name.
	AdventureWorksLT SampleName = "AdventureWorksLT"
)

type Server

type Server struct {
	autorest.Response `json:"-"`
	ID                *string             `json:"id,omitempty"`
	Name              *string             `json:"name,omitempty"`
	Type              *string             `json:"type,omitempty"`
	Tags              *map[string]*string `json:"tags,omitempty"`
	Location          *string             `json:"location,omitempty"`
	Kind              *string             `json:"kind,omitempty"`
	*ServerProperties `json:"properties,omitempty"`
}

Server is represents a server.

type ServerListResult

type ServerListResult struct {
	autorest.Response `json:"-"`
	Value             *[]Server `json:"value,omitempty"`
}

ServerListResult is represents the response to a get server request.

type ServerMetric

type ServerMetric struct {
	Name          *string    `json:"name,omitempty"`
	ResourceName  *string    `json:"resourceName,omitempty"`
	DisplayName   *string    `json:"displayName,omitempty"`
	CurrentValue  *float64   `json:"currentValue,omitempty"`
	Limit         *float64   `json:"limit,omitempty"`
	Unit          *string    `json:"unit,omitempty"`
	NextResetTime *date.Time `json:"nextResetTime,omitempty"`
}

ServerMetric is represents server metrics.

type ServerMetricListResult

type ServerMetricListResult struct {
	autorest.Response `json:"-"`
	Value             *[]ServerMetric `json:"value,omitempty"`
}

ServerMetricListResult is represents the response to a list server metrics request.

type ServerProperties

type ServerProperties struct {
	FullyQualifiedDomainName   *string       `json:"fullyQualifiedDomainName,omitempty"`
	Version                    ServerVersion `json:"version,omitempty"`
	AdministratorLogin         *string       `json:"administratorLogin,omitempty"`
	AdministratorLoginPassword *string       `json:"administratorLoginPassword,omitempty"`
	ExternalAdministratorSid   *uuid.UUID    `json:"externalAdministratorSid,omitempty"`
	ExternalAdministratorLogin *string       `json:"externalAdministratorLogin,omitempty"`
	State                      ServerState   `json:"state,omitempty"`
}

ServerProperties is represents the properties of a server.

type ServerState

type ServerState string

ServerState enumerates the values for server state.

const (
	// ServerStateDisabled specifies the server state disabled state for server
	// state.
	ServerStateDisabled ServerState = "Disabled"
	// ServerStateReady specifies the server state ready state for server
	// state.
	ServerStateReady ServerState = "Ready"
)

type ServerVersion

type ServerVersion string

ServerVersion enumerates the values for server version.

const (
	// OneTwoFullStopZero specifies the one two full stop zero state for server
	// version.
	OneTwoFullStopZero ServerVersion = "12.0"
	// TwoFullStopZero specifies the two full stop zero state for server
	// version.
	TwoFullStopZero ServerVersion = "2.0"
)

type ServersClient

type ServersClient struct {
	ManagementClient
}

ServersClient is the provides create, read, update and delete functionality for Azure SQL Database resources including servers, databases, elastic pools, recommendations, operations, and usage metrics.

func NewServersClient

func NewServersClient(subscriptionID string) ServersClient

NewServersClient creates an instance of the ServersClient client.

func NewServersClientWithBaseURI

func NewServersClientWithBaseURI(baseURI string, subscriptionID string) ServersClient

NewServersClientWithBaseURI creates an instance of the ServersClient client.

func (ServersClient) CreateOrUpdate

func (client ServersClient) CreateOrUpdate(resourceGroupName string, serverName string, parameters Server) (result Server, err error)

CreateOrUpdate creates or updates a new server.

resourceGroupName is 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 is the name of the server. parameters is the required parameters for creating or updating a server.

func (ServersClient) CreateOrUpdatePreparer

func (client ServersClient) CreateOrUpdatePreparer(resourceGroupName string, serverName string, parameters Server) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ServersClient) CreateOrUpdateResponder

func (client ServersClient) CreateOrUpdateResponder(resp *http.Response) (result Server, err error)

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

func (ServersClient) CreateOrUpdateSender

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

func (client ServersClient) Delete(resourceGroupName string, serverName string) (result autorest.Response, err error)

Delete deletes a SQL server.

resourceGroupName is 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 is the name of the server.

func (ServersClient) DeletePreparer

func (client ServersClient) DeletePreparer(resourceGroupName string, serverName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ServersClient) DeleteResponder

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

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

func (client ServersClient) Get(resourceGroupName string, serverName string) (result Server, err error)

Get gets a server.

resourceGroupName is 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 is the name of the server.

func (ServersClient) GetPreparer

func (client ServersClient) GetPreparer(resourceGroupName string, serverName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ServersClient) GetResponder

func (client ServersClient) GetResponder(resp *http.Response) (result Server, err error)

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

func (ServersClient) GetSender

func (client ServersClient) 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 (ServersClient) GetServiceObjective

func (client ServersClient) GetServiceObjective(resourceGroupName string, serverName string, serviceObjectiveName string) (result ServiceObjective, err error)

GetServiceObjective gets a database service objective.

resourceGroupName is 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 is the name of the server. serviceObjectiveName is the name of the service objective to retrieve.

func (ServersClient) GetServiceObjectivePreparer

func (client ServersClient) GetServiceObjectivePreparer(resourceGroupName string, serverName string, serviceObjectiveName string) (*http.Request, error)

GetServiceObjectivePreparer prepares the GetServiceObjective request.

func (ServersClient) GetServiceObjectiveResponder

func (client ServersClient) GetServiceObjectiveResponder(resp *http.Response) (result ServiceObjective, err error)

GetServiceObjectiveResponder handles the response to the GetServiceObjective request. The method always closes the http.Response Body.

func (ServersClient) GetServiceObjectiveSender

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

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

func (ServersClient) List

func (client ServersClient) List() (result ServerListResult, err error)

List returns a list of servers.

func (ServersClient) ListByResourceGroup

func (client ServersClient) ListByResourceGroup(resourceGroupName string) (result ServerListResult, err error)

ListByResourceGroup returns a list of servers in a resource group.

resourceGroupName is the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

func (ServersClient) ListByResourceGroupPreparer

func (client ServersClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ServersClient) ListByResourceGroupResponder

func (client ServersClient) ListByResourceGroupResponder(resp *http.Response) (result ServerListResult, err error)

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

func (ServersClient) ListByResourceGroupSender

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

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

func (ServersClient) ListPreparer

func (client ServersClient) ListPreparer() (*http.Request, error)

ListPreparer prepares the List request.

func (ServersClient) ListResponder

func (client ServersClient) ListResponder(resp *http.Response) (result ServerListResult, err error)

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

func (ServersClient) ListSender

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

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

func (ServersClient) ListServiceObjectives

func (client ServersClient) ListServiceObjectives(resourceGroupName string, serverName string) (result ServiceObjectiveListResult, err error)

ListServiceObjectives returns database service objectives.

resourceGroupName is 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 is the name of the server.

func (ServersClient) ListServiceObjectivesPreparer

func (client ServersClient) ListServiceObjectivesPreparer(resourceGroupName string, serverName string) (*http.Request, error)

ListServiceObjectivesPreparer prepares the ListServiceObjectives request.

func (ServersClient) ListServiceObjectivesResponder

func (client ServersClient) ListServiceObjectivesResponder(resp *http.Response) (result ServiceObjectiveListResult, err error)

ListServiceObjectivesResponder handles the response to the ListServiceObjectives request. The method always closes the http.Response Body.

func (ServersClient) ListServiceObjectivesSender

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

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

func (ServersClient) ListUsages

func (client ServersClient) ListUsages(resourceGroupName string, serverName string) (result ServerMetricListResult, err error)

ListUsages returns server usages.

resourceGroupName is 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 is the name of the server.

func (ServersClient) ListUsagesPreparer

func (client ServersClient) ListUsagesPreparer(resourceGroupName string, serverName string) (*http.Request, error)

ListUsagesPreparer prepares the ListUsages request.

func (ServersClient) ListUsagesResponder

func (client ServersClient) ListUsagesResponder(resp *http.Response) (result ServerMetricListResult, err error)

ListUsagesResponder handles the response to the ListUsages request. The method always closes the http.Response Body.

func (ServersClient) ListUsagesSender

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

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

type ServiceObjective

type ServiceObjective struct {
	autorest.Response           `json:"-"`
	Name                        *string `json:"name,omitempty"`
	ID                          *string `json:"id,omitempty"`
	*ServiceObjectiveProperties `json:"properties,omitempty"`
}

ServiceObjective is represents a database service objective.

type ServiceObjectiveListResult

type ServiceObjectiveListResult struct {
	autorest.Response `json:"-"`
	Value             *[]ServiceObjective `json:"value,omitempty"`
}

ServiceObjectiveListResult is represents the response to a get database service objectives request.

type ServiceObjectiveName

type ServiceObjectiveName string

ServiceObjectiveName enumerates the values for service objective name.

const (
	// ServiceObjectiveNameBasic specifies the service objective name basic
	// state for service objective name.
	ServiceObjectiveNameBasic ServiceObjectiveName = "Basic"
	// ServiceObjectiveNameElasticPool specifies the service objective name
	// elastic pool state for service objective name.
	ServiceObjectiveNameElasticPool ServiceObjectiveName = "ElasticPool"
	// ServiceObjectiveNameP1 specifies the service objective name p1 state for
	// service objective name.
	ServiceObjectiveNameP1 ServiceObjectiveName = "P1"
	// ServiceObjectiveNameP11 specifies the service objective name p11 state
	// for service objective name.
	ServiceObjectiveNameP11 ServiceObjectiveName = "P11"
	// ServiceObjectiveNameP15 specifies the service objective name p15 state
	// for service objective name.
	ServiceObjectiveNameP15 ServiceObjectiveName = "P15"
	// ServiceObjectiveNameP2 specifies the service objective name p2 state for
	// service objective name.
	ServiceObjectiveNameP2 ServiceObjectiveName = "P2"
	// ServiceObjectiveNameP3 specifies the service objective name p3 state for
	// service objective name.
	ServiceObjectiveNameP3 ServiceObjectiveName = "P3"
	// ServiceObjectiveNameP4 specifies the service objective name p4 state for
	// service objective name.
	ServiceObjectiveNameP4 ServiceObjectiveName = "P4"
	// ServiceObjectiveNameP6 specifies the service objective name p6 state for
	// service objective name.
	ServiceObjectiveNameP6 ServiceObjectiveName = "P6"
	// ServiceObjectiveNameS0 specifies the service objective name s0 state for
	// service objective name.
	ServiceObjectiveNameS0 ServiceObjectiveName = "S0"
	// ServiceObjectiveNameS1 specifies the service objective name s1 state for
	// service objective name.
	ServiceObjectiveNameS1 ServiceObjectiveName = "S1"
	// ServiceObjectiveNameS2 specifies the service objective name s2 state for
	// service objective name.
	ServiceObjectiveNameS2 ServiceObjectiveName = "S2"
	// ServiceObjectiveNameS3 specifies the service objective name s3 state for
	// service objective name.
	ServiceObjectiveNameS3 ServiceObjectiveName = "S3"
	// ServiceObjectiveNameSystem specifies the service objective name system
	// state for service objective name.
	ServiceObjectiveNameSystem ServiceObjectiveName = "System"
	// ServiceObjectiveNameSystem2 specifies the service objective name system
	// 2 state for service objective name.
	ServiceObjectiveNameSystem2 ServiceObjectiveName = "System2"
)

type ServiceObjectiveProperties

type ServiceObjectiveProperties struct {
	ServiceObjectiveName *string `json:"serviceObjectiveName,omitempty"`
	IsDefault            *bool   `json:"isDefault,omitempty"`
	IsSystem             *bool   `json:"isSystem,omitempty"`
	Description          *string `json:"description,omitempty"`
	Enabled              *bool   `json:"enabled,omitempty"`
}

ServiceObjectiveProperties is represents the properties of a database service objective.

type ServiceTierAdvisor

type ServiceTierAdvisor struct {
	autorest.Response             `json:"-"`
	Name                          *string `json:"name,omitempty"`
	ID                            *string `json:"id,omitempty"`
	*ServiceTierAdvisorProperties `json:"properties,omitempty"`
}

ServiceTierAdvisor is represents a Service Tier Advisor.

type ServiceTierAdvisorListResult

type ServiceTierAdvisorListResult struct {
	autorest.Response `json:"-"`
	Value             *[]ServiceTierAdvisor `json:"value,omitempty"`
}

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

type ServiceTierAdvisorProperties

type ServiceTierAdvisorProperties struct {
	ObservationPeriodStart                                 *date.Time        `json:"observationPeriodStart,omitempty"`
	ObservationPeriodEnd                                   *date.Time        `json:"observationPeriodEnd,omitempty"`
	ActiveTimeRatio                                        *float64          `json:"activeTimeRatio,omitempty"`
	MinDtu                                                 *float64          `json:"minDtu,omitempty"`
	AvgDtu                                                 *float64          `json:"avgDtu,omitempty"`
	MaxDtu                                                 *float64          `json:"maxDtu,omitempty"`
	MaxSizeInGB                                            *float64          `json:"maxSizeInGB,omitempty"`
	ServiceLevelObjectiveUsageMetrics                      *[]SloUsageMetric `json:"serviceLevelObjectiveUsageMetrics,omitempty"`
	CurrentServiceLevelObjective                           *string           `json:"currentServiceLevelObjective,omitempty"`
	CurrentServiceLevelObjectiveID                         *uuid.UUID        `json:"currentServiceLevelObjectiveId,omitempty"`
	UsageBasedRecommendationServiceLevelObjective          *string           `json:"usageBasedRecommendationServiceLevelObjective,omitempty"`
	UsageBasedRecommendationServiceLevelObjectiveID        *uuid.UUID        `json:"usageBasedRecommendationServiceLevelObjectiveId,omitempty"`
	DatabaseSizeBasedRecommendationServiceLevelObjective   *string           `json:"databaseSizeBasedRecommendationServiceLevelObjective,omitempty"`
	DatabaseSizeBasedRecommendationServiceLevelObjectiveID *uuid.UUID        `json:"databaseSizeBasedRecommendationServiceLevelObjectiveId,omitempty"`
	DisasterPlanBasedRecommendationServiceLevelObjective   *string           `json:"disasterPlanBasedRecommendationServiceLevelObjective,omitempty"`
	DisasterPlanBasedRecommendationServiceLevelObjectiveID *uuid.UUID        `json:"disasterPlanBasedRecommendationServiceLevelObjectiveId,omitempty"`
	OverallRecommendationServiceLevelObjective             *string           `json:"overallRecommendationServiceLevelObjective,omitempty"`
	OverallRecommendationServiceLevelObjectiveID           *uuid.UUID        `json:"overallRecommendationServiceLevelObjectiveId,omitempty"`
	Confidence                                             *float64          `json:"confidence,omitempty"`
}

ServiceTierAdvisorProperties is represents the properties of a Service Tier Advisor.

type SloUsageMetric

type SloUsageMetric struct {
	ServiceLevelObjective   ServiceObjectiveName `json:"serviceLevelObjective,omitempty"`
	ServiceLevelObjectiveID *uuid.UUID           `json:"serviceLevelObjectiveId,omitempty"`
	InRangeTimeRatio        *float64             `json:"inRangeTimeRatio,omitempty"`
}

SloUsageMetric is represents a Slo Usage Metric.

type SubResource

type SubResource struct {
	Name *string `json:"name,omitempty"`
	ID   *string `json:"id,omitempty"`
}

SubResource is subresource properties

type TrackedResource

type TrackedResource struct {
	ID       *string             `json:"id,omitempty"`
	Name     *string             `json:"name,omitempty"`
	Type     *string             `json:"type,omitempty"`
	Tags     *map[string]*string `json:"tags,omitempty"`
	Location *string             `json:"location,omitempty"`
}

TrackedResource is aRM tracked top level resource.

type TransparentDataEncryption

type TransparentDataEncryption struct {
	autorest.Response                    `json:"-"`
	Name                                 *string `json:"name,omitempty"`
	ID                                   *string `json:"id,omitempty"`
	*TransparentDataEncryptionProperties `json:"properties,omitempty"`
}

TransparentDataEncryption is represents a database transparent data encryption .

type TransparentDataEncryptionActivity

type TransparentDataEncryptionActivity struct {
	Name                                         *string `json:"name,omitempty"`
	ID                                           *string `json:"id,omitempty"`
	*TransparentDataEncryptionActivityProperties `json:"properties,omitempty"`
}

TransparentDataEncryptionActivity is represents a database transparent data encryption Scan.

type TransparentDataEncryptionActivityListResult

type TransparentDataEncryptionActivityListResult struct {
	autorest.Response `json:"-"`
	Value             *[]TransparentDataEncryptionActivity `json:"value,omitempty"`
}

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

type TransparentDataEncryptionActivityProperties

type TransparentDataEncryptionActivityProperties struct {
	Status          TransparentDataEncryptionActivityStatus `json:"status,omitempty"`
	PercentComplete *float64                                `json:"percentComplete,omitempty"`
}

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

type TransparentDataEncryptionActivityStatus

type TransparentDataEncryptionActivityStatus string

TransparentDataEncryptionActivityStatus enumerates the values for transparent data encryption activity status.

const (
	// Decrypting specifies the decrypting state for transparent data
	// encryption activity status.
	Decrypting TransparentDataEncryptionActivityStatus = "Decrypting"
	// Encrypting specifies the encrypting state for transparent data
	// encryption activity status.
	Encrypting TransparentDataEncryptionActivityStatus = "Encrypting"
)

type TransparentDataEncryptionProperties

type TransparentDataEncryptionProperties struct {
	Status TransparentDataEncryptionStatus `json:"status,omitempty"`
}

TransparentDataEncryptionProperties is represents the properties of a database transparent data encryption.

type TransparentDataEncryptionStatus

type TransparentDataEncryptionStatus string

TransparentDataEncryptionStatus enumerates the values for transparent data encryption status.

const (
	// TransparentDataEncryptionStatusDisabled specifies the transparent data
	// encryption status disabled state for transparent data encryption status.
	TransparentDataEncryptionStatusDisabled TransparentDataEncryptionStatus = "Disabled"
	// TransparentDataEncryptionStatusEnabled specifies the transparent data
	// encryption status enabled state for transparent data encryption status.
	TransparentDataEncryptionStatusEnabled TransparentDataEncryptionStatus = "Enabled"
)

Jump to

Keyboard shortcuts

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