sql

package
v8.0.0-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2017 License: Apache-2.0 Imports: 6 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 resources including servers, databases, elastic pools, recommendations, operations, and usage metrics.

Index

Constants

View Source
const (
	// APIVersion is the version of the Sql
	APIVersion = "2014-04-01"

	// 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 Column

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

Column is represents an Azure SQL Database table column.

type ColumnProperties

type ColumnProperties struct {
	ColumnType *string `json:"columnType,omitempty"`
}

ColumnProperties is represents the properties of an Azure SQL Database table column.

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

type Database

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

Database is represents an Azure SQL Database.

type DatabaseEditions

type DatabaseEditions string

DatabaseEditions enumerates the values for database editions.

const (
	// Basic specifies the basic state for database editions.
	Basic DatabaseEditions = "Basic"
	// Business specifies the business state for database editions.
	Business DatabaseEditions = "Business"
	// DataWarehouse specifies the data warehouse state for database editions.
	DataWarehouse DatabaseEditions = "DataWarehouse"
	// Free specifies the free state for database editions.
	Free DatabaseEditions = "Free"
	// Premium specifies the premium state for database editions.
	Premium DatabaseEditions = "Premium"
	// Standard specifies the standard state for database editions.
	Standard DatabaseEditions = "Standard"
	// Stretch specifies the stretch state for database editions.
	Stretch DatabaseEditions = "Stretch"
	// Web specifies the web state for database editions.
	Web DatabaseEditions = "Web"
)

type DatabaseListResult

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

DatabaseListResult is represents the response to a List Azure SQL Database request.

type DatabaseMetric

type DatabaseMetric struct {
	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 Azure SQL Database metrics.

type DatabaseMetricListResult

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

DatabaseMetricListResult is represents the response to a List Azure SQL 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"`
	Edition                       DatabaseEditions             `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"`
	UpgradeHint                   *UpgradeHint                 `json:"upgradeHint,omitempty"`
	Schemas                       *[]Schema                    `json:"schemas,omitempty"`
	TransparentDataEncryption     *[]TransparentDataEncryption `json:"transparentDataEncryption,omitempty"`
	RecommendedIndex              *[]RecommendedIndex          `json:"recommendedIndex,omitempty"`
}

DatabaseProperties is represents the properties of an Azure SQL Database.

type DatabasesClient

type DatabasesClient struct {
	ManagementClient
}

DatabasesClient is the provides create, read, update and delete functionality for Azure SQL 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 Azure SQL database or updates an existing Azure SQL 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 Azure SQL server. databaseName is the name of the Azure SQL 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 an Azure SQL Database Transparent Data Encryption Operation.

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 Azure SQL server. databaseName is the name of the Azure SQL 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 an Azure SQL 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 Azure SQL server. databaseName is the name of the Azure SQL 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 information about an Azure SQL 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 Azure SQL server. databaseName is the name of the Azure SQL database to be retrieved. expand is the comma separated list of child objects to expand in the response. Possible properties: serviceTierAdvisors, upgradeHint, 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 information about 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 Azure SQL 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 an Azure SQL Database Transparent Data Encryption Response.

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 Azure SQL server. databaseName is the name of the Azure SQL 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) (result DatabaseListResult, err error)

ListByServer returns information about an Azure SQL 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 Azure SQL server.

func (DatabasesClient) ListByServerPreparer

func (client DatabasesClient) ListByServerPreparer(resourceGroupName string, serverName 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 Azure SQL 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 Azure SQL server. databaseName is the name of the Azure SQL 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 information about 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 Azure SQL 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 an Azure SQL Database Transparent Data Encryption Activity Response.

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 Azure SQL server. databaseName is the name of the Azure SQL 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 information about Azure SQL 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 Azure SQL server. databaseName is the name of the Azure SQL 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) PauseDataWarehouse

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

PauseDataWarehouse pause an Azure SQL Data Warehouse database. 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 Azure SQL server. databaseName is the name of the Azure SQL Data Warehouse database to pause.

func (DatabasesClient) PauseDataWarehousePreparer

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

PauseDataWarehousePreparer prepares the PauseDataWarehouse request.

func (DatabasesClient) PauseDataWarehouseResponder

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

PauseDataWarehouseResponder handles the response to the PauseDataWarehouse request. The method always closes the http.Response Body.

func (DatabasesClient) PauseDataWarehouseSender

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

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

func (DatabasesClient) ResumeDataWarehouse

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

ResumeDataWarehouse resume an Azure SQL Data Warehouse database. 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 Azure SQL server. databaseName is the name of the Azure SQL Data Warehouse database to resume.

func (DatabasesClient) ResumeDataWarehousePreparer

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

ResumeDataWarehousePreparer prepares the ResumeDataWarehouse request.

func (DatabasesClient) ResumeDataWarehouseResponder

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

ResumeDataWarehouseResponder handles the response to the ResumeDataWarehouse request. The method always closes the http.Response Body.

func (DatabasesClient) ResumeDataWarehouseSender

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

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

type ElasticPool

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

ElasticPool is represents an Azure SQL Database elastic pool.

type ElasticPoolActivity

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

ElasticPoolActivity is represents the activity on an Azure SQL Elastic Pool.

type ElasticPoolActivityListResult

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

ElasticPoolActivityListResult is represents the response to a List Azure SQL 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"`
}

ElasticPoolActivityProperties is represents the properties of an Azure SQL Elastic Pool.

type ElasticPoolDatabaseActivity

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

ElasticPoolDatabaseActivity is represents the activity on an Azure SQL Elastic Pool.

type ElasticPoolDatabaseActivityListResult

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

ElasticPoolDatabaseActivityListResult is represents the response to a List Azure SQL 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               *string    `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 Azure SQL Elastic Pool Database Activity.

type ElasticPoolEditions

type ElasticPoolEditions string

ElasticPoolEditions enumerates the values for elastic pool editions.

const (
	// ElasticPoolEditionsBasic specifies the elastic pool editions basic
	// state for elastic pool editions.
	ElasticPoolEditionsBasic ElasticPoolEditions = "Basic"
	// ElasticPoolEditionsPremium specifies the elastic pool editions premium
	// state for elastic pool editions.
	ElasticPoolEditionsPremium ElasticPoolEditions = "Premium"
	// ElasticPoolEditionsStandard specifies the elastic pool editions
	// standard state for elastic pool editions.
	ElasticPoolEditionsStandard ElasticPoolEditions = "Standard"
)

type ElasticPoolListResult

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

ElasticPoolListResult is represents the response to a List Azure SQL Elastic Pool request.

type ElasticPoolProperties

type ElasticPoolProperties struct {
	CreationDate   *date.Time          `json:"creationDate,omitempty"`
	State          ElasticPoolState    `json:"state,omitempty"`
	Edition        ElasticPoolEditions `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 Azure SQL 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 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 Azure SQL elastic pool or updates an existing Azure SQL 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 Azure SQL server. elasticPoolName is the name of the Azure SQL 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 Azure SQL 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 Azure SQL server. elasticPoolName is the name of the Azure SQL 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 information about an Azure SQL 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 Azure SQL server. elasticPoolName is the name of the Azure SQL 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 information about an Azure SQL database inside of an Azure SQL 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 Azure SQL server. elasticPoolName is the name of the Azure SQL Elastic Pool to be retrieved. databaseName is the name of the Azure SQL 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 information about Azure SQL 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 Azure SQL server. elasticPoolName is the name of the Azure SQL 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 information about Azure SQL 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 Azure SQL 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(elasticPoolName string, resourceGroupName string, serverName string) (result ElasticPoolDatabaseActivityListResult, err error)

ListDatabaseActivity returns information about activity on Azure SQL databases inside of an Azure SQL elastic pool.

elasticPoolName is the name of the Azure SQL 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 Azure SQL server.

func (ElasticPoolsClient) ListDatabaseActivityPreparer

func (client ElasticPoolsClient) ListDatabaseActivityPreparer(elasticPoolName string, resourceGroupName string, serverName 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 information about an Azure SQL database inside of an Azure SQL 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 Azure SQL server. elasticPoolName is the name of the Azure SQL 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
	APIVersion     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.

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 RecommendedDatabaseProperties

type RecommendedDatabaseProperties struct {
	Name                        *string                `json:"Name,omitempty"`
	TargetEdition               TargetDatabaseEditions `json:"TargetEdition,omitempty"`
	TargetServiceLevelObjective *string                `json:"TargetServiceLevelObjective,omitempty"`
}

RecommendedDatabaseProperties is represents the properties of a recommended Azure SQL Database being upgraded.

type RecommendedElasticPool

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

RecommendedElasticPool is represents an Azure SQL Recommended Elastic Pool.

type RecommendedElasticPoolListMetricsResult

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

RecommendedElasticPoolListMetricsResult is represents the response to a List Azure SQL 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 Azure SQL 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 Azure SQL recommended elastic pool metric.

type RecommendedElasticPoolProperties

type RecommendedElasticPoolProperties struct {
	DatabaseEdition        ElasticPoolEditions             `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 an Azure SQL Recommended Elastic Pool.

type RecommendedElasticPoolsClient

type RecommendedElasticPoolsClient struct {
	ManagementClient
}

RecommendedElasticPoolsClient is the provides create, read, update and delete functionality for Azure SQL 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 information about an Azure SQL Recommended 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 Azure SQL server. recommendedElasticPoolName is the name of the Azure SQL 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 information about an Azure SQL database inside of an Azure SQL Recommended 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 Azure SQL server. recommendedElasticPoolName is the name of the Azure SQL Elastic Pool to be retrieved. databaseName is the name of the Azure SQL 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) List

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

List returns information about Azure SQL 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 Azure SQL server.

func (RecommendedElasticPoolsClient) ListDatabases

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

ListDatabases returns information about an Azure SQL database inside of an Azure SQL Recommended 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 Azure SQL server. recommendedElasticPoolName is the name of the Azure SQL 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 information about an recommended 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 Azure SQL server. recommendedElasticPoolName is the name of the Azure SQL 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.

func (RecommendedElasticPoolsClient) ListPreparer

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

ListPreparer prepares the List request.

func (RecommendedElasticPoolsClient) ListResponder

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

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

func (RecommendedElasticPoolsClient) ListSender

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

type RecommendedIndex

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

RecommendedIndex is represents an Azure SQL Database recommended index.

type RecommendedIndexActions

type RecommendedIndexActions string

RecommendedIndexActions enumerates the values for recommended index actions.

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

type RecommendedIndexProperties

type RecommendedIndexProperties struct {
	Action          RecommendedIndexActions `json:"action,omitempty"`
	State           RecommendedIndexStates  `json:"state,omitempty"`
	Created         *date.Time              `json:"created,omitempty"`
	LastModified    *date.Time              `json:"lastModified,omitempty"`
	IndexType       RecommendedIndexTypes   `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 an Azure SQL Database recommended index.

type RecommendedIndexStates

type RecommendedIndexStates string

RecommendedIndexStates enumerates the values for recommended index states.

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

type RecommendedIndexTypes

type RecommendedIndexTypes string

RecommendedIndexTypes enumerates the values for recommended index types.

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

type Resource

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

Resource is resource properties

type RestorePoint

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

RestorePoint is represents an Azure SQL Database restore point.

type RestorePointListResult

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

RestorePointListResult is represents the response to a List Azure SQL 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 an Azure SQL 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 Schema

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

Schema is represents an Azure SQL Database schema.

type SchemaProperties

type SchemaProperties struct {
	Tables *[]Table `json:"tables,omitempty"`
}

SchemaProperties is represents the properties of an Azure SQL Database schema.

type Server

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

Server is represents an Azure SQL server.

type ServerListResult

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

ServerListResult is represents the response to a Get Azure SQL server request.

type ServerMetric

type ServerMetric struct {
	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 Azure SQL server metrics.

type ServerMetricListResult

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

ServerMetricListResult is represents the response to a List Azure SQL 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"`
}

ServerProperties is represents the properties of an Azure SQL server.

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 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 a new Azure 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 Azure SQL 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 Azure SQL 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) GetByResourceGroup

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

GetByResourceGroup gets information about an Azure 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 Azure SQL server.

func (ServersClient) GetByResourceGroupPreparer

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

GetByResourceGroupPreparer prepares the GetByResourceGroup request.

func (ServersClient) GetByResourceGroupResponder

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

GetByResourceGroupResponder handles the response to the GetByResourceGroup request. The method always closes the http.Response Body.

func (ServersClient) GetByResourceGroupSender

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

GetByResourceGroupSender sends the GetByResourceGroup 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 information about an Azure SQL 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 Azure SQL 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 information about an Azure SQL server.

func (ServersClient) ListByResourceGroup

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

ListByResourceGroup returns information about an Azure 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.

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 information about Azure SQL 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 Azure SQL 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 information about Azure SQL server usage.

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 Azure SQL 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 an Azure SQL Database Service Objective.

type ServiceObjectiveListResult

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

ServiceObjectiveListResult is represents the response to a Get Azure SQL 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"
	// ServiceObjectiveNameP1 specifies the service objective name p1 state
	// for service objective name.
	ServiceObjectiveNameP1 ServiceObjectiveName = "P1"
	// 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"
	// 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"
)

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 an Azure SQL 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                           *uuid.UUID        `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 {
	Name                    *string              `json:"name,omitempty"`
	ID                      *string              `json:"id,omitempty"`
	Type                    *string              `json:"type,omitempty"`
	Location                *string              `json:"location,omitempty"`
	Tags                    *map[string]*string  `json:"tags,omitempty"`
	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 Table

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

Table is represents an Azure SQL Database table.

type TableProperties

type TableProperties struct {
	TableType          TableType           `json:"tableType,omitempty"`
	Columns            *[]Column           `json:"columns,omitempty"`
	RecommendedIndexes *[]RecommendedIndex `json:"recommendedIndexes,omitempty"`
}

TableProperties is represents the properties of an Azure SQL Database table.

type TableType

type TableType string

TableType enumerates the values for table type.

const (
	// BaseTable specifies the base table state for table type.
	BaseTable TableType = "BaseTable"
	// View specifies the view state for table type.
	View TableType = "View"
)

type TargetDatabaseEditions

type TargetDatabaseEditions string

TargetDatabaseEditions enumerates the values for target database editions.

const (
	// TargetDatabaseEditionsBasic specifies the target database editions
	// basic state for target database editions.
	TargetDatabaseEditionsBasic TargetDatabaseEditions = "Basic"
	// TargetDatabaseEditionsDataWarehouse specifies the target database
	// editions data warehouse state for target database editions.
	TargetDatabaseEditionsDataWarehouse TargetDatabaseEditions = "DataWarehouse"
	// TargetDatabaseEditionsFree specifies the target database editions free
	// state for target database editions.
	TargetDatabaseEditionsFree TargetDatabaseEditions = "Free"
	// TargetDatabaseEditionsPremium specifies the target database editions
	// premium state for target database editions.
	TargetDatabaseEditionsPremium TargetDatabaseEditions = "Premium"
	// TargetDatabaseEditionsStandard specifies the target database editions
	// standard state for target database editions.
	TargetDatabaseEditionsStandard TargetDatabaseEditions = "Standard"
	// TargetDatabaseEditionsStretch specifies the target database editions
	// stretch state for target database editions.
	TargetDatabaseEditionsStretch TargetDatabaseEditions = "Stretch"
)

type TargetElasticPoolEditions

type TargetElasticPoolEditions string

TargetElasticPoolEditions enumerates the values for target elastic pool editions.

const (
	// TargetElasticPoolEditionsBasic specifies the target elastic pool
	// editions basic state for target elastic pool editions.
	TargetElasticPoolEditionsBasic TargetElasticPoolEditions = "Basic"
	// TargetElasticPoolEditionsPremium specifies the target elastic pool
	// editions premium state for target elastic pool editions.
	TargetElasticPoolEditionsPremium TargetElasticPoolEditions = "Premium"
	// TargetElasticPoolEditionsStandard specifies the target elastic pool
	// editions standard state for target elastic pool editions.
	TargetElasticPoolEditionsStandard TargetElasticPoolEditions = "Standard"
)

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 an Azure SQL 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 an Azure SQL 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 Azure SQL Database Transparent Data Encryption Activity request.

type TransparentDataEncryptionActivityProperties

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

TransparentDataEncryptionActivityProperties is represents the properties of an Azure SQL Database Transparent Data Encryption Scan.

type TransparentDataEncryptionActivityStates

type TransparentDataEncryptionActivityStates string

TransparentDataEncryptionActivityStates enumerates the values for transparent data encryption activity states.

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

type TransparentDataEncryptionProperties

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

TransparentDataEncryptionProperties is represents the properties of an Azure SQL Database Transparent Data Encryption.

type TransparentDataEncryptionStates

type TransparentDataEncryptionStates string

TransparentDataEncryptionStates enumerates the values for transparent data encryption states.

const (
	// TransparentDataEncryptionStatesDisabled specifies the transparent data
	// encryption states disabled state for transparent data encryption
	// states.
	TransparentDataEncryptionStatesDisabled TransparentDataEncryptionStates = "Disabled"
	// TransparentDataEncryptionStatesEnabled specifies the transparent data
	// encryption states enabled state for transparent data encryption states.
	TransparentDataEncryptionStatesEnabled TransparentDataEncryptionStates = "Enabled"
)

type UpgradeHint

type UpgradeHint struct {
	Name                          *string             `json:"name,omitempty"`
	ID                            *string             `json:"id,omitempty"`
	Type                          *string             `json:"type,omitempty"`
	Location                      *string             `json:"location,omitempty"`
	Tags                          *map[string]*string `json:"tags,omitempty"`
	TargetServiceLevelObjective   *string             `json:"targetServiceLevelObjective,omitempty"`
	TargetServiceLevelObjectiveID *uuid.UUID          `json:"targetServiceLevelObjectiveId,omitempty"`
}

UpgradeHint is represents a Upgrade Hint.

type UpgradeRecommendedElasticPoolProperties

type UpgradeRecommendedElasticPoolProperties struct {
	Name                *string                   `json:"Name,omitempty"`
	Edition             TargetElasticPoolEditions `json:"Edition,omitempty"`
	Dtu                 *int32                    `json:"Dtu,omitempty"`
	StorageMb           *int32                    `json:"StorageMb,omitempty"`
	DatabaseDtuMin      *int32                    `json:"DatabaseDtuMin,omitempty"`
	DatabaseDtuMax      *int32                    `json:"DatabaseDtuMax,omitempty"`
	DatabaseCollection  *[]string                 `json:"DatabaseCollection,omitempty"`
	IncludeAllDatabases *bool                     `json:"IncludeAllDatabases,omitempty"`
}

UpgradeRecommendedElasticPoolProperties is represents the properties of a Azure SQL Recommended Elastic Pool being upgraded.

Jump to

Keyboard shortcuts

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