mysql

package
v12.4.0-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mysql implements the Azure ARM Mysql service API version 2017-04-30-preview.

The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations.

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Mysql
	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 BaseClient

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

BaseClient is the base client for Mysql.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type BasicServerPropertiesForCreate

type BasicServerPropertiesForCreate interface {
	AsServerPropertiesForDefaultCreate() (*ServerPropertiesForDefaultCreate, bool)
	AsServerPropertiesForRestore() (*ServerPropertiesForRestore, bool)
	AsServerPropertiesForCreate() (*ServerPropertiesForCreate, bool)
}

BasicServerPropertiesForCreate the properties used to create a new server.

type CheckNameAvailabilityClient

type CheckNameAvailabilityClient struct {
	BaseClient
}

CheckNameAvailabilityClient is the the Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations.

func NewCheckNameAvailabilityClient

func NewCheckNameAvailabilityClient(subscriptionID string) CheckNameAvailabilityClient

NewCheckNameAvailabilityClient creates an instance of the CheckNameAvailabilityClient client.

func NewCheckNameAvailabilityClientWithBaseURI

func NewCheckNameAvailabilityClientWithBaseURI(baseURI string, subscriptionID string) CheckNameAvailabilityClient

NewCheckNameAvailabilityClientWithBaseURI creates an instance of the CheckNameAvailabilityClient client.

func (CheckNameAvailabilityClient) Execute

func (client CheckNameAvailabilityClient) Execute(ctx context.Context, nameAvailabilityRequest NameAvailabilityRequest) (result NameAvailability, err error)

Execute check the availability of name for resource

nameAvailabilityRequest is the required parameters for checking if resource name is available.

func (CheckNameAvailabilityClient) ExecutePreparer

func (client CheckNameAvailabilityClient) ExecutePreparer(ctx context.Context, nameAvailabilityRequest NameAvailabilityRequest) (*http.Request, error)

ExecutePreparer prepares the Execute request.

func (CheckNameAvailabilityClient) ExecuteResponder

func (client CheckNameAvailabilityClient) ExecuteResponder(resp *http.Response) (result NameAvailability, err error)

ExecuteResponder handles the response to the Execute request. The method always closes the http.Response Body.

func (CheckNameAvailabilityClient) ExecuteSender

func (client CheckNameAvailabilityClient) ExecuteSender(req *http.Request) (*http.Response, error)

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

type Configuration

type Configuration struct {
	autorest.Response `json:"-"`
	// ID - Resource ID
	ID *string `json:"id,omitempty"`
	// Name - Resource name.
	Name *string `json:"name,omitempty"`
	// Type - Resource type.
	Type *string `json:"type,omitempty"`
	// ConfigurationProperties - The properties of a configuration.
	*ConfigurationProperties `json:"properties,omitempty"`
}

Configuration represents a Configuration.

func (*Configuration) UnmarshalJSON

func (c *Configuration) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Configuration struct.

type ConfigurationListResult

type ConfigurationListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of server configurations.
	Value *[]Configuration `json:"value,omitempty"`
}

ConfigurationListResult a list of server configurations.

type ConfigurationProperties

type ConfigurationProperties struct {
	// Value - Value of the configuration.
	Value *string `json:"value,omitempty"`
	// Description - Description of the configuration.
	Description *string `json:"description,omitempty"`
	// DefaultValue - Default value of the configuration.
	DefaultValue *string `json:"defaultValue,omitempty"`
	// DataType - Data type of the configuration.
	DataType *string `json:"dataType,omitempty"`
	// AllowedValues - Allowed values of the configuration.
	AllowedValues *string `json:"allowedValues,omitempty"`
	// Source - Source of the configuration.
	Source *string `json:"source,omitempty"`
}

ConfigurationProperties the properties of a configuration.

type ConfigurationsClient

type ConfigurationsClient struct {
	BaseClient
}

ConfigurationsClient is the the Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations.

func NewConfigurationsClient

func NewConfigurationsClient(subscriptionID string) ConfigurationsClient

NewConfigurationsClient creates an instance of the ConfigurationsClient client.

func NewConfigurationsClientWithBaseURI

func NewConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) ConfigurationsClient

NewConfigurationsClientWithBaseURI creates an instance of the ConfigurationsClient client.

func (ConfigurationsClient) CreateOrUpdate

func (client ConfigurationsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, configurationName string, parameters Configuration) (result ConfigurationsCreateOrUpdateFuture, err error)

CreateOrUpdate updates a configuration of a server.

resourceGroupName is the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName is the name of the server. configurationName is the name of the server configuration. parameters is the required parameters for updating a server configuration.

func (ConfigurationsClient) CreateOrUpdatePreparer

func (client ConfigurationsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, configurationName string, parameters Configuration) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ConfigurationsClient) CreateOrUpdateResponder

func (client ConfigurationsClient) CreateOrUpdateResponder(resp *http.Response) (result Configuration, err error)

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

func (ConfigurationsClient) CreateOrUpdateSender

func (client ConfigurationsClient) CreateOrUpdateSender(req *http.Request) (future ConfigurationsCreateOrUpdateFuture, err error)

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

func (ConfigurationsClient) Get

func (client ConfigurationsClient) Get(ctx context.Context, resourceGroupName string, serverName string, configurationName string) (result Configuration, err error)

Get gets information about a configuration of server.

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

func (ConfigurationsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ConfigurationsClient) GetResponder

func (client ConfigurationsClient) GetResponder(resp *http.Response) (result Configuration, err error)

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

func (ConfigurationsClient) GetSender

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

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

ListByServer list all the configurations in a given server.

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

func (ConfigurationsClient) ListByServerPreparer

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

ListByServerPreparer prepares the ListByServer request.

func (ConfigurationsClient) ListByServerResponder

func (client ConfigurationsClient) ListByServerResponder(resp *http.Response) (result ConfigurationListResult, err error)

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

func (ConfigurationsClient) ListByServerSender

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

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

type ConfigurationsCreateOrUpdateFuture

type ConfigurationsCreateOrUpdateFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (ConfigurationsCreateOrUpdateFuture) Result

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

type CreateMode

type CreateMode string

CreateMode enumerates the values for create mode.

const (
	// CreateModeDefault ...
	CreateModeDefault CreateMode = "Default"
	// CreateModePointInTimeRestore ...
	CreateModePointInTimeRestore CreateMode = "PointInTimeRestore"
	// CreateModeServerPropertiesForCreate ...
	CreateModeServerPropertiesForCreate CreateMode = "ServerPropertiesForCreate"
)

type Database

type Database struct {
	autorest.Response `json:"-"`
	// ID - Resource ID
	ID *string `json:"id,omitempty"`
	// Name - Resource name.
	Name *string `json:"name,omitempty"`
	// Type - Resource type.
	Type *string `json:"type,omitempty"`
	// DatabaseProperties - The properties of a database.
	*DatabaseProperties `json:"properties,omitempty"`
}

Database represents a Database.

func (*Database) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Database struct.

type DatabaseListResult

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

DatabaseListResult a List of databases.

type DatabaseProperties

type DatabaseProperties struct {
	// Charset - The charset of the database.
	Charset *string `json:"charset,omitempty"`
	// Collation - The collation of the database.
	Collation *string `json:"collation,omitempty"`
}

DatabaseProperties the properties of a database.

type DatabasesClient

type DatabasesClient struct {
	BaseClient
}

DatabasesClient is the the Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations.

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(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters Database) (result DatabasesCreateOrUpdateFuture, err error)

CreateOrUpdate creates a new database or updates an existing database.

resourceGroupName is the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName is the name of the server. databaseName is the name of the database. parameters is the required parameters for creating or updating a database.

func (DatabasesClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DatabasesClient) CreateOrUpdateResponder

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

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

func (DatabasesClient) CreateOrUpdateSender

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

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

func (DatabasesClient) Delete

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

Delete deletes a database.

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

func (DatabasesClient) DeletePreparer

func (client DatabasesClient) DeletePreparer(ctx context.Context, 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) (future DatabasesDeleteFuture, err 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(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result Database, err error)

Get gets information about a database.

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

func (DatabasesClient) GetPreparer

func (client DatabasesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName 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) ListByServer

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

ListByServer list all the databases in a given server.

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

func (DatabasesClient) ListByServerPreparer

func (client DatabasesClient) ListByServerPreparer(ctx context.Context, 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.

type DatabasesCreateOrUpdateFuture

type DatabasesCreateOrUpdateFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (DatabasesCreateOrUpdateFuture) Result

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

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

type DatabasesDeleteFuture

type DatabasesDeleteFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (DatabasesDeleteFuture) Result

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

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

type FirewallRule

type FirewallRule struct {
	autorest.Response `json:"-"`
	// ID - Resource ID
	ID *string `json:"id,omitempty"`
	// Name - Resource name.
	Name *string `json:"name,omitempty"`
	// Type - Resource type.
	Type *string `json:"type,omitempty"`
	// FirewallRuleProperties - The properties of a firewall rule.
	*FirewallRuleProperties `json:"properties,omitempty"`
}

FirewallRule represents a server firewall rule.

func (*FirewallRule) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for FirewallRule struct.

type FirewallRuleListResult

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

FirewallRuleListResult a list of firewall rules.

type FirewallRuleProperties

type FirewallRuleProperties struct {
	// StartIPAddress - The start IP address of the server firewall rule. Must be IPv4 format.
	StartIPAddress *string `json:"startIpAddress,omitempty"`
	// EndIPAddress - The end IP address of the server firewall rule. Must be IPv4 format.
	EndIPAddress *string `json:"endIpAddress,omitempty"`
}

FirewallRuleProperties the properties of a server firewall rule.

type FirewallRulesClient

type FirewallRulesClient struct {
	BaseClient
}

FirewallRulesClient is the the Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations.

func NewFirewallRulesClient

func NewFirewallRulesClient(subscriptionID string) FirewallRulesClient

NewFirewallRulesClient creates an instance of the FirewallRulesClient client.

func NewFirewallRulesClientWithBaseURI

func NewFirewallRulesClientWithBaseURI(baseURI string, subscriptionID string) FirewallRulesClient

NewFirewallRulesClientWithBaseURI creates an instance of the FirewallRulesClient client.

func (FirewallRulesClient) CreateOrUpdate

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

CreateOrUpdate creates a new firewall rule or updates an existing firewall rule.

resourceGroupName is the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName is the name of the server. firewallRuleName is the name of the server firewall rule. parameters is the required parameters for creating or updating a firewall rule.

func (FirewallRulesClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (FirewallRulesClient) CreateOrUpdateResponder

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

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

func (FirewallRulesClient) CreateOrUpdateSender

func (client FirewallRulesClient) CreateOrUpdateSender(req *http.Request) (future FirewallRulesCreateOrUpdateFuture, err error)

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

func (FirewallRulesClient) Delete

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

Delete deletes a server firewall rule.

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

func (FirewallRulesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (FirewallRulesClient) DeleteResponder

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

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

func (FirewallRulesClient) DeleteSender

func (client FirewallRulesClient) DeleteSender(req *http.Request) (future FirewallRulesDeleteFuture, err error)

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

func (FirewallRulesClient) Get

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

Get gets information about a server firewall rule.

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

func (FirewallRulesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (FirewallRulesClient) GetResponder

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

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

func (FirewallRulesClient) GetSender

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

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

func (FirewallRulesClient) ListByServer

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

ListByServer list all the firewall rules in a given server.

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

func (FirewallRulesClient) ListByServerPreparer

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

ListByServerPreparer prepares the ListByServer request.

func (FirewallRulesClient) ListByServerResponder

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

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

func (FirewallRulesClient) ListByServerSender

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

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

type FirewallRulesCreateOrUpdateFuture

type FirewallRulesCreateOrUpdateFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (FirewallRulesCreateOrUpdateFuture) Result

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

type FirewallRulesDeleteFuture

type FirewallRulesDeleteFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (FirewallRulesDeleteFuture) Result

func (future FirewallRulesDeleteFuture) Result(client FirewallRulesClient) (ar autorest.Response, err error)

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

type LocationBasedPerformanceTierClient

type LocationBasedPerformanceTierClient struct {
	BaseClient
}

LocationBasedPerformanceTierClient is the the Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations.

func NewLocationBasedPerformanceTierClient

func NewLocationBasedPerformanceTierClient(subscriptionID string) LocationBasedPerformanceTierClient

NewLocationBasedPerformanceTierClient creates an instance of the LocationBasedPerformanceTierClient client.

func NewLocationBasedPerformanceTierClientWithBaseURI

func NewLocationBasedPerformanceTierClientWithBaseURI(baseURI string, subscriptionID string) LocationBasedPerformanceTierClient

NewLocationBasedPerformanceTierClientWithBaseURI creates an instance of the LocationBasedPerformanceTierClient client.

func (LocationBasedPerformanceTierClient) List

func (client LocationBasedPerformanceTierClient) List(ctx context.Context, locationName string) (result PerformanceTierListResult, err error)

List list all the performance tiers at specified location in a given subscription.

locationName is the name of the location.

func (LocationBasedPerformanceTierClient) ListPreparer

func (client LocationBasedPerformanceTierClient) ListPreparer(ctx context.Context, locationName string) (*http.Request, error)

ListPreparer prepares the List request.

func (LocationBasedPerformanceTierClient) ListResponder

func (client LocationBasedPerformanceTierClient) ListResponder(resp *http.Response) (result PerformanceTierListResult, err error)

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

func (LocationBasedPerformanceTierClient) ListSender

func (client LocationBasedPerformanceTierClient) 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 LogFile

type LogFile struct {
	// ID - Resource ID
	ID *string `json:"id,omitempty"`
	// Name - Resource name.
	Name *string `json:"name,omitempty"`
	// Type - Resource type.
	Type *string `json:"type,omitempty"`
	// LogFileProperties - The properties of the log file.
	*LogFileProperties `json:"properties,omitempty"`
}

LogFile represents a log file.

func (*LogFile) UnmarshalJSON

func (lf *LogFile) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for LogFile struct.

type LogFileListResult

type LogFileListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of log files.
	Value *[]LogFile `json:"value,omitempty"`
}

LogFileListResult a list of log files.

type LogFileProperties

type LogFileProperties struct {
	// Name - Log file name.
	Name *string `json:"name,omitempty"`
	// SizeInKB - Size of the log file.
	SizeInKB *int64 `json:"sizeInKB,omitempty"`
	// CreatedTime - Creation timestamp of the log file.
	CreatedTime *date.Time `json:"createdTime,omitempty"`
	// LastModifiedTime - Last modified timestamp of the log file.
	LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"`
	// Type - Type of the log file.
	Type *string `json:"type,omitempty"`
	// URL - The url to download the log file from.
	URL *string `json:"url,omitempty"`
}

LogFileProperties the properties of a log file.

type LogFilesClient

type LogFilesClient struct {
	BaseClient
}

LogFilesClient is the the Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations.

func NewLogFilesClient

func NewLogFilesClient(subscriptionID string) LogFilesClient

NewLogFilesClient creates an instance of the LogFilesClient client.

func NewLogFilesClientWithBaseURI

func NewLogFilesClientWithBaseURI(baseURI string, subscriptionID string) LogFilesClient

NewLogFilesClientWithBaseURI creates an instance of the LogFilesClient client.

func (LogFilesClient) ListByServer

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

ListByServer list all the log files in a given server.

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

func (LogFilesClient) ListByServerPreparer

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

ListByServerPreparer prepares the ListByServer request.

func (LogFilesClient) ListByServerResponder

func (client LogFilesClient) ListByServerResponder(resp *http.Response) (result LogFileListResult, err error)

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

func (LogFilesClient) ListByServerSender

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

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

type NameAvailability

type NameAvailability struct {
	autorest.Response `json:"-"`
	// Message - Error Message.
	Message *string `json:"message,omitempty"`
	// NameAvailable - Indicates whether the resource name is available.
	NameAvailable *bool `json:"nameAvailable,omitempty"`
	// Reason - Reason for name being unavailable.
	Reason *string `json:"reason,omitempty"`
}

NameAvailability represents a resource name availability.

type NameAvailabilityRequest

type NameAvailabilityRequest struct {
	// Name - Resource name to verify.
	Name *string `json:"name,omitempty"`
	// Type - Resource type used for verification.
	Type *string `json:"type,omitempty"`
}

NameAvailabilityRequest request from client to check resource name availability.

type Operation

type Operation struct {
	// Name - The name of the operation being performed on this particular object.
	Name *string `json:"name,omitempty"`
	// Display - The localized display information for this particular operation or action.
	Display *OperationDisplay `json:"display,omitempty"`
	// Origin - The intended executor of the operation. Possible values include: 'NotSpecified', 'User', 'System'
	Origin OperationOrigin `json:"origin,omitempty"`
	// Properties - Additional descriptions for the operation.
	Properties *map[string]*map[string]interface{} `json:"properties,omitempty"`
}

Operation REST API operation definition.

type OperationDisplay

type OperationDisplay struct {
	// Provider - Operation resource provider name.
	Provider *string `json:"provider,omitempty"`
	// Resource - Resource on which the operation is performed.
	Resource *string `json:"resource,omitempty"`
	// Operation - Localized friendly name for the operation.
	Operation *string `json:"operation,omitempty"`
	// Description - Operation description.
	Description *string `json:"description,omitempty"`
}

OperationDisplay display metadata associated with the operation.

type OperationListResult

type OperationListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of resource provider operations.
	Value *[]Operation `json:"value,omitempty"`
}

OperationListResult a list of resource provider operations.

type OperationOrigin

type OperationOrigin string

OperationOrigin enumerates the values for operation origin.

const (
	// NotSpecified ...
	NotSpecified OperationOrigin = "NotSpecified"
	// System ...
	System OperationOrigin = "system"
	// User ...
	User OperationOrigin = "user"
)

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the the Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations.

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List

func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error)

List lists all of the available REST API operations.

func (OperationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)

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

func (OperationsClient) ListSender

func (client OperationsClient) 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 PerformanceTierListResult

type PerformanceTierListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of performance tiers
	Value *[]PerformanceTierProperties `json:"value,omitempty"`
}

PerformanceTierListResult a list of performance tiers.

type PerformanceTierProperties

type PerformanceTierProperties struct {
	// ID - ID of the performance tier.
	ID *string `json:"id,omitempty"`
	// BackupRetentionDays - Backup retention in days for the performance tier edition
	BackupRetentionDays *int32 `json:"backupRetentionDays,omitempty"`
	// ServiceLevelObjectives - Service level objectives associated with the performance tier
	ServiceLevelObjectives *[]PerformanceTierServiceLevelObjectives `json:"serviceLevelObjectives,omitempty"`
}

PerformanceTierProperties performance tier properties

type PerformanceTierServiceLevelObjectives

type PerformanceTierServiceLevelObjectives struct {
	// ID - ID for the service level objective.
	ID *string `json:"id,omitempty"`
	// Edition - Edition of the performance tier.
	Edition *string `json:"edition,omitempty"`
	// Dtu - Database throughput unit associated with the service level objective
	Dtu *int32 `json:"dtu,omitempty"`
	// StorageMB - Maximum storage in MB associated with the service level objective
	StorageMB *int32 `json:"storageMB,omitempty"`
}

PerformanceTierServiceLevelObjectives service level objectives for performance tier.

type PerformanceTiersClient

type PerformanceTiersClient struct {
	BaseClient
}

PerformanceTiersClient is the the Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations.

func NewPerformanceTiersClient

func NewPerformanceTiersClient(subscriptionID string) PerformanceTiersClient

NewPerformanceTiersClient creates an instance of the PerformanceTiersClient client.

func NewPerformanceTiersClientWithBaseURI

func NewPerformanceTiersClientWithBaseURI(baseURI string, subscriptionID string) PerformanceTiersClient

NewPerformanceTiersClientWithBaseURI creates an instance of the PerformanceTiersClient client.

func (PerformanceTiersClient) List

func (client PerformanceTiersClient) List(ctx context.Context) (result PerformanceTierListResult, err error)

List list all the performance tiers in a given subscription.

func (PerformanceTiersClient) ListPreparer

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

ListPreparer prepares the List request.

func (PerformanceTiersClient) ListResponder

func (client PerformanceTiersClient) ListResponder(resp *http.Response) (result PerformanceTierListResult, err error)

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

func (PerformanceTiersClient) ListSender

func (client PerformanceTiersClient) 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 ProxyResource

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

ProxyResource resource properties.

type Server

type Server struct {
	autorest.Response `json:"-"`
	// ID - Resource ID
	ID *string `json:"id,omitempty"`
	// Name - Resource name.
	Name *string `json:"name,omitempty"`
	// Type - Resource type.
	Type *string `json:"type,omitempty"`
	// Location - The location the resource resides in.
	Location *string `json:"location,omitempty"`
	// Tags - Application-specific metadata in the form of key-value pairs.
	Tags *map[string]*string `json:"tags,omitempty"`
	// Sku - The SKU (pricing tier) of the server.
	Sku *Sku `json:"sku,omitempty"`
	// ServerProperties - Properties of the server.
	*ServerProperties `json:"properties,omitempty"`
}

Server represents a server.

func (*Server) UnmarshalJSON

func (s *Server) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Server struct.

type ServerForCreate

type ServerForCreate struct {
	// Sku - The SKU (pricing tier) of the server.
	Sku *Sku `json:"sku,omitempty"`
	// Properties - Properties of the server.
	Properties BasicServerPropertiesForCreate `json:"properties,omitempty"`
	// Location - The location the resource resides in.
	Location *string `json:"location,omitempty"`
	// Tags - Application-specific metadata in the form of key-value pairs.
	Tags *map[string]*string `json:"tags,omitempty"`
}

ServerForCreate represents a server to be created.

func (*ServerForCreate) UnmarshalJSON

func (sfc *ServerForCreate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServerForCreate struct.

type ServerListResult

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

ServerListResult a list of servers.

type ServerProperties

type ServerProperties struct {
	// AdministratorLogin - The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
	AdministratorLogin *string `json:"administratorLogin,omitempty"`
	// StorageMB - The maximum storage allowed for a server.
	StorageMB *int64 `json:"storageMB,omitempty"`
	// Version - Server version. Possible values include: 'FiveFullStopSix', 'FiveFullStopSeven'
	Version ServerVersion `json:"version,omitempty"`
	// SslEnforcement - Enable ssl enforcement or not when connect to server. Possible values include: 'SslEnforcementEnumEnabled', 'SslEnforcementEnumDisabled'
	SslEnforcement SslEnforcementEnum `json:"sslEnforcement,omitempty"`
	// UserVisibleState - A state of a server that is visible to user. Possible values include: 'Ready', 'Dropping', 'Disabled'
	UserVisibleState ServerState `json:"userVisibleState,omitempty"`
	// FullyQualifiedDomainName - The fully qualified domain name of a server.
	FullyQualifiedDomainName *string `json:"fullyQualifiedDomainName,omitempty"`
}

ServerProperties the properties of a server.

type ServerPropertiesForCreate

type ServerPropertiesForCreate struct {
	// StorageMB - The maximum storage allowed for a server.
	StorageMB *int64 `json:"storageMB,omitempty"`
	// Version - Server version. Possible values include: 'FiveFullStopSix', 'FiveFullStopSeven'
	Version ServerVersion `json:"version,omitempty"`
	// SslEnforcement - Enable ssl enforcement or not when connect to server. Possible values include: 'SslEnforcementEnumEnabled', 'SslEnforcementEnumDisabled'
	SslEnforcement SslEnforcementEnum `json:"sslEnforcement,omitempty"`
	// CreateMode - Possible values include: 'CreateModeServerPropertiesForCreate', 'CreateModeDefault', 'CreateModePointInTimeRestore'
	CreateMode CreateMode `json:"createMode,omitempty"`
}

ServerPropertiesForCreate the properties used to create a new server.

func (ServerPropertiesForCreate) AsBasicServerPropertiesForCreate

func (spfc ServerPropertiesForCreate) AsBasicServerPropertiesForCreate() (BasicServerPropertiesForCreate, bool)

AsBasicServerPropertiesForCreate is the BasicServerPropertiesForCreate implementation for ServerPropertiesForCreate.

func (ServerPropertiesForCreate) AsServerPropertiesForCreate

func (spfc ServerPropertiesForCreate) AsServerPropertiesForCreate() (*ServerPropertiesForCreate, bool)

AsServerPropertiesForCreate is the BasicServerPropertiesForCreate implementation for ServerPropertiesForCreate.

func (ServerPropertiesForCreate) AsServerPropertiesForDefaultCreate

func (spfc ServerPropertiesForCreate) AsServerPropertiesForDefaultCreate() (*ServerPropertiesForDefaultCreate, bool)

AsServerPropertiesForDefaultCreate is the BasicServerPropertiesForCreate implementation for ServerPropertiesForCreate.

func (ServerPropertiesForCreate) AsServerPropertiesForRestore

func (spfc ServerPropertiesForCreate) AsServerPropertiesForRestore() (*ServerPropertiesForRestore, bool)

AsServerPropertiesForRestore is the BasicServerPropertiesForCreate implementation for ServerPropertiesForCreate.

func (ServerPropertiesForCreate) MarshalJSON

func (spfc ServerPropertiesForCreate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerPropertiesForCreate.

type ServerPropertiesForDefaultCreate

type ServerPropertiesForDefaultCreate struct {
	// StorageMB - The maximum storage allowed for a server.
	StorageMB *int64 `json:"storageMB,omitempty"`
	// Version - Server version. Possible values include: 'FiveFullStopSix', 'FiveFullStopSeven'
	Version ServerVersion `json:"version,omitempty"`
	// SslEnforcement - Enable ssl enforcement or not when connect to server. Possible values include: 'SslEnforcementEnumEnabled', 'SslEnforcementEnumDisabled'
	SslEnforcement SslEnforcementEnum `json:"sslEnforcement,omitempty"`
	// CreateMode - Possible values include: 'CreateModeServerPropertiesForCreate', 'CreateModeDefault', 'CreateModePointInTimeRestore'
	CreateMode CreateMode `json:"createMode,omitempty"`
	// AdministratorLogin - The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
	AdministratorLogin *string `json:"administratorLogin,omitempty"`
	// AdministratorLoginPassword - The password of the administrator login.
	AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"`
}

ServerPropertiesForDefaultCreate the properties used to create a new server.

func (ServerPropertiesForDefaultCreate) AsBasicServerPropertiesForCreate

func (spfdc ServerPropertiesForDefaultCreate) AsBasicServerPropertiesForCreate() (BasicServerPropertiesForCreate, bool)

AsBasicServerPropertiesForCreate is the BasicServerPropertiesForCreate implementation for ServerPropertiesForDefaultCreate.

func (ServerPropertiesForDefaultCreate) AsServerPropertiesForCreate

func (spfdc ServerPropertiesForDefaultCreate) AsServerPropertiesForCreate() (*ServerPropertiesForCreate, bool)

AsServerPropertiesForCreate is the BasicServerPropertiesForCreate implementation for ServerPropertiesForDefaultCreate.

func (ServerPropertiesForDefaultCreate) AsServerPropertiesForDefaultCreate

func (spfdc ServerPropertiesForDefaultCreate) AsServerPropertiesForDefaultCreate() (*ServerPropertiesForDefaultCreate, bool)

AsServerPropertiesForDefaultCreate is the BasicServerPropertiesForCreate implementation for ServerPropertiesForDefaultCreate.

func (ServerPropertiesForDefaultCreate) AsServerPropertiesForRestore

func (spfdc ServerPropertiesForDefaultCreate) AsServerPropertiesForRestore() (*ServerPropertiesForRestore, bool)

AsServerPropertiesForRestore is the BasicServerPropertiesForCreate implementation for ServerPropertiesForDefaultCreate.

func (ServerPropertiesForDefaultCreate) MarshalJSON

func (spfdc ServerPropertiesForDefaultCreate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerPropertiesForDefaultCreate.

type ServerPropertiesForRestore

type ServerPropertiesForRestore struct {
	// StorageMB - The maximum storage allowed for a server.
	StorageMB *int64 `json:"storageMB,omitempty"`
	// Version - Server version. Possible values include: 'FiveFullStopSix', 'FiveFullStopSeven'
	Version ServerVersion `json:"version,omitempty"`
	// SslEnforcement - Enable ssl enforcement or not when connect to server. Possible values include: 'SslEnforcementEnumEnabled', 'SslEnforcementEnumDisabled'
	SslEnforcement SslEnforcementEnum `json:"sslEnforcement,omitempty"`
	// CreateMode - Possible values include: 'CreateModeServerPropertiesForCreate', 'CreateModeDefault', 'CreateModePointInTimeRestore'
	CreateMode CreateMode `json:"createMode,omitempty"`
	// SourceServerID - The source server id to restore from.
	SourceServerID *string `json:"sourceServerId,omitempty"`
	// RestorePointInTime - Restore point creation time (ISO8601 format), specifying the time to restore from.
	RestorePointInTime *date.Time `json:"restorePointInTime,omitempty"`
}

ServerPropertiesForRestore the properties to a new server by restoring from a backup.

func (ServerPropertiesForRestore) AsBasicServerPropertiesForCreate

func (spfr ServerPropertiesForRestore) AsBasicServerPropertiesForCreate() (BasicServerPropertiesForCreate, bool)

AsBasicServerPropertiesForCreate is the BasicServerPropertiesForCreate implementation for ServerPropertiesForRestore.

func (ServerPropertiesForRestore) AsServerPropertiesForCreate

func (spfr ServerPropertiesForRestore) AsServerPropertiesForCreate() (*ServerPropertiesForCreate, bool)

AsServerPropertiesForCreate is the BasicServerPropertiesForCreate implementation for ServerPropertiesForRestore.

func (ServerPropertiesForRestore) AsServerPropertiesForDefaultCreate

func (spfr ServerPropertiesForRestore) AsServerPropertiesForDefaultCreate() (*ServerPropertiesForDefaultCreate, bool)

AsServerPropertiesForDefaultCreate is the BasicServerPropertiesForCreate implementation for ServerPropertiesForRestore.

func (ServerPropertiesForRestore) AsServerPropertiesForRestore

func (spfr ServerPropertiesForRestore) AsServerPropertiesForRestore() (*ServerPropertiesForRestore, bool)

AsServerPropertiesForRestore is the BasicServerPropertiesForCreate implementation for ServerPropertiesForRestore.

func (ServerPropertiesForRestore) MarshalJSON

func (spfr ServerPropertiesForRestore) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServerPropertiesForRestore.

type ServerState

type ServerState string

ServerState enumerates the values for server state.

const (
	// Disabled ...
	Disabled ServerState = "Disabled"
	// Dropping ...
	Dropping ServerState = "Dropping"
	// Ready ...
	Ready ServerState = "Ready"
)

type ServerUpdateParameters

type ServerUpdateParameters struct {
	// Sku - The SKU (pricing tier) of the server.
	Sku *Sku `json:"sku,omitempty"`
	// ServerUpdateParametersProperties - The properties that can be updated for a server.
	*ServerUpdateParametersProperties `json:"properties,omitempty"`
	// Tags - Application-specific metadata in the form of key-value pairs.
	Tags *map[string]*string `json:"tags,omitempty"`
}

ServerUpdateParameters parameters allowd to update for a server.

func (*ServerUpdateParameters) UnmarshalJSON

func (sup *ServerUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServerUpdateParameters struct.

type ServerUpdateParametersProperties

type ServerUpdateParametersProperties struct {
	// StorageMB - The max storage allowed for a server.
	StorageMB *int64 `json:"storageMB,omitempty"`
	// AdministratorLoginPassword - The password of the administrator login.
	AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"`
	// Version - The version of a server. Possible values include: 'FiveFullStopSix', 'FiveFullStopSeven'
	Version ServerVersion `json:"version,omitempty"`
	// SslEnforcement - Enable ssl enforcement or not when connect to server. Possible values include: 'SslEnforcementEnumEnabled', 'SslEnforcementEnumDisabled'
	SslEnforcement SslEnforcementEnum `json:"sslEnforcement,omitempty"`
}

ServerUpdateParametersProperties the properties that can be updated for a server.

type ServerVersion

type ServerVersion string

ServerVersion enumerates the values for server version.

const (
	// FiveFullStopSeven ...
	FiveFullStopSeven ServerVersion = "5.7"
	// FiveFullStopSix ...
	FiveFullStopSix ServerVersion = "5.6"
)

type ServersClient

type ServersClient struct {
	BaseClient
}

ServersClient is the the Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations.

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(ctx context.Context, resourceGroupName string, serverName string, parameters ServerForCreate) (result ServersCreateOrUpdateFuture, err error)

CreateOrUpdate creates a new server or updates an existing server. The update action will overwrite the existing server.

resourceGroupName is the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName is the name of the server. parameters is the required parameters for creating or updating a server.

func (ServersClient) CreateOrUpdatePreparer

func (client ServersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters ServerForCreate) (*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) (future ServersCreateOrUpdateFuture, err 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(ctx context.Context, resourceGroupName string, serverName string) (result ServersDeleteFuture, err error)

Delete deletes a server.

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

func (ServersClient) DeletePreparer

func (client ServersClient) DeletePreparer(ctx context.Context, 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) (future ServersDeleteFuture, err error)

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

func (ServersClient) Get

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

Get gets information about a server.

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

func (ServersClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ServersClient) GetResponder

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

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

func (ServersClient) GetSender

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

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

func (ServersClient) List

func (client ServersClient) List(ctx context.Context) (result ServerListResult, err error)

List list all the servers in a given subscription.

func (ServersClient) ListByResourceGroup

func (client ServersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ServerListResult, err error)

ListByResourceGroup list all the servers in a given resource group.

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

func (ServersClient) ListByResourceGroupPreparer

func (client ServersClient) ListByResourceGroupPreparer(ctx context.Context, 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(ctx context.Context) (*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) Update

func (client ServersClient) Update(ctx context.Context, resourceGroupName string, serverName string, parameters ServerUpdateParameters) (result ServersUpdateFuture, err error)

Update updates an existing server. The request body can contain one to many of the properties present in the normal server definition.

resourceGroupName is the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName is the name of the server. parameters is the required parameters for updating a server.

func (ServersClient) UpdatePreparer

func (client ServersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters ServerUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ServersClient) UpdateResponder

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

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

func (ServersClient) UpdateSender

func (client ServersClient) UpdateSender(req *http.Request) (future ServersUpdateFuture, err error)

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

type ServersCreateOrUpdateFuture

type ServersCreateOrUpdateFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (ServersCreateOrUpdateFuture) Result

func (future ServersCreateOrUpdateFuture) Result(client ServersClient) (s Server, err error)

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

type ServersDeleteFuture

type ServersDeleteFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (ServersDeleteFuture) Result

func (future ServersDeleteFuture) Result(client ServersClient) (ar autorest.Response, err error)

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

type ServersUpdateFuture

type ServersUpdateFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (ServersUpdateFuture) Result

func (future ServersUpdateFuture) Result(client ServersClient) (s Server, err error)

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

type Sku

type Sku struct {
	// Name - The name of the sku, typically, a letter + Number code, e.g. P3.
	Name *string `json:"name,omitempty"`
	// Tier - The tier of the particular SKU, e.g. Basic. Possible values include: 'Basic', 'Standard'
	Tier SkuTier `json:"tier,omitempty"`
	// Capacity - The scale up/out capacity, representing server's compute units.
	Capacity *int32 `json:"capacity,omitempty"`
	// Size - The size code, to be interpreted by resource as appropriate.
	Size *string `json:"size,omitempty"`
	// Family - The family of hardware.
	Family *string `json:"family,omitempty"`
}

Sku billing information related properties of a server.

type SkuTier

type SkuTier string

SkuTier enumerates the values for sku tier.

const (
	// Basic ...
	Basic SkuTier = "Basic"
	// Standard ...
	Standard SkuTier = "Standard"
)

type SslEnforcementEnum

type SslEnforcementEnum string

SslEnforcementEnum enumerates the values for ssl enforcement enum.

const (
	// SslEnforcementEnumDisabled ...
	SslEnforcementEnumDisabled SslEnforcementEnum = "Disabled"
	// SslEnforcementEnumEnabled ...
	SslEnforcementEnumEnabled SslEnforcementEnum = "Enabled"
)

type TrackedResource

type TrackedResource struct {
	// ID - Resource ID
	ID *string `json:"id,omitempty"`
	// Name - Resource name.
	Name *string `json:"name,omitempty"`
	// Type - Resource type.
	Type *string `json:"type,omitempty"`
	// Location - The location the resource resides in.
	Location *string `json:"location,omitempty"`
	// Tags - Application-specific metadata in the form of key-value pairs.
	Tags *map[string]*string `json:"tags,omitempty"`
}

TrackedResource resource properties including location and tags for track resources.

type VirtualNetworkRule

type VirtualNetworkRule struct {
	autorest.Response `json:"-"`
	// ID - Resource ID
	ID *string `json:"id,omitempty"`
	// Name - Resource name.
	Name *string `json:"name,omitempty"`
	// Type - Resource type.
	Type *string `json:"type,omitempty"`
	// VirtualNetworkRuleProperties - Resource properties.
	*VirtualNetworkRuleProperties `json:"properties,omitempty"`
}

VirtualNetworkRule a virtual network rule.

func (*VirtualNetworkRule) UnmarshalJSON

func (vnr *VirtualNetworkRule) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for VirtualNetworkRule struct.

type VirtualNetworkRuleListResult

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

VirtualNetworkRuleListResult a list of virtual network rules.

func (VirtualNetworkRuleListResult) IsEmpty

func (vnrlr VirtualNetworkRuleListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type VirtualNetworkRuleListResultIterator

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

VirtualNetworkRuleListResultIterator provides access to a complete listing of VirtualNetworkRule values.

func (*VirtualNetworkRuleListResultIterator) Next

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

func (VirtualNetworkRuleListResultIterator) NotDone

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

func (VirtualNetworkRuleListResultIterator) Response

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

func (VirtualNetworkRuleListResultIterator) Value

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

type VirtualNetworkRuleListResultPage

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

VirtualNetworkRuleListResultPage contains a page of VirtualNetworkRule values.

func (*VirtualNetworkRuleListResultPage) Next

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

func (VirtualNetworkRuleListResultPage) NotDone

func (page VirtualNetworkRuleListResultPage) NotDone() bool

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

func (VirtualNetworkRuleListResultPage) Response

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

func (VirtualNetworkRuleListResultPage) Values

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

type VirtualNetworkRuleProperties

type VirtualNetworkRuleProperties struct {
	// VirtualNetworkSubnetID - The ARM resource id of the virtual network subnet.
	VirtualNetworkSubnetID *string `json:"virtualNetworkSubnetId,omitempty"`
	// IgnoreMissingVnetServiceEndpoint - Create firewall rule before the virtual network has vnet service endpoint enabled.
	IgnoreMissingVnetServiceEndpoint *bool `json:"ignoreMissingVnetServiceEndpoint,omitempty"`
	// State - Virtual Network Rule State. Possible values include: 'VirtualNetworkRuleStateInitializing', 'VirtualNetworkRuleStateInProgress', 'VirtualNetworkRuleStateReady', 'VirtualNetworkRuleStateDeleting', 'VirtualNetworkRuleStateUnknown'
	State VirtualNetworkRuleState `json:"state,omitempty"`
}

VirtualNetworkRuleProperties properties of a virtual network rule.

type VirtualNetworkRuleState

type VirtualNetworkRuleState string

VirtualNetworkRuleState enumerates the values for virtual network rule state.

const (
	// VirtualNetworkRuleStateDeleting ...
	VirtualNetworkRuleStateDeleting VirtualNetworkRuleState = "Deleting"
	// VirtualNetworkRuleStateInitializing ...
	VirtualNetworkRuleStateInitializing VirtualNetworkRuleState = "Initializing"
	// VirtualNetworkRuleStateInProgress ...
	VirtualNetworkRuleStateInProgress VirtualNetworkRuleState = "InProgress"
	// VirtualNetworkRuleStateReady ...
	VirtualNetworkRuleStateReady VirtualNetworkRuleState = "Ready"
	// VirtualNetworkRuleStateUnknown ...
	VirtualNetworkRuleStateUnknown VirtualNetworkRuleState = "Unknown"
)

type VirtualNetworkRulesClient

type VirtualNetworkRulesClient struct {
	BaseClient
}

VirtualNetworkRulesClient is the the Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations.

func NewVirtualNetworkRulesClient

func NewVirtualNetworkRulesClient(subscriptionID string) VirtualNetworkRulesClient

NewVirtualNetworkRulesClient creates an instance of the VirtualNetworkRulesClient client.

func NewVirtualNetworkRulesClientWithBaseURI

func NewVirtualNetworkRulesClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworkRulesClient

NewVirtualNetworkRulesClientWithBaseURI creates an instance of the VirtualNetworkRulesClient client.

func (VirtualNetworkRulesClient) CreateOrUpdate

func (client VirtualNetworkRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, virtualNetworkRuleName string, parameters VirtualNetworkRule) (result VirtualNetworkRulesCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates an existing virtual network rule.

resourceGroupName is the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName is the name of the server. virtualNetworkRuleName is the name of the virtual network rule. parameters is the requested virtual Network Rule Resource state.

func (VirtualNetworkRulesClient) CreateOrUpdatePreparer

func (client VirtualNetworkRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, virtualNetworkRuleName string, parameters VirtualNetworkRule) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (VirtualNetworkRulesClient) CreateOrUpdateResponder

func (client VirtualNetworkRulesClient) CreateOrUpdateResponder(resp *http.Response) (result VirtualNetworkRule, err error)

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

func (VirtualNetworkRulesClient) CreateOrUpdateSender

func (client VirtualNetworkRulesClient) CreateOrUpdateSender(req *http.Request) (future VirtualNetworkRulesCreateOrUpdateFuture, err error)

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

func (VirtualNetworkRulesClient) Delete

func (client VirtualNetworkRulesClient) Delete(ctx context.Context, resourceGroupName string, serverName string, virtualNetworkRuleName string) (result VirtualNetworkRulesDeleteFuture, err error)

Delete deletes the virtual network rule with the given name.

resourceGroupName is the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName is the name of the server. virtualNetworkRuleName is the name of the virtual network rule.

func (VirtualNetworkRulesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (VirtualNetworkRulesClient) DeleteResponder

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

func (client VirtualNetworkRulesClient) DeleteSender(req *http.Request) (future VirtualNetworkRulesDeleteFuture, err error)

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

func (VirtualNetworkRulesClient) Get

func (client VirtualNetworkRulesClient) Get(ctx context.Context, resourceGroupName string, serverName string, virtualNetworkRuleName string) (result VirtualNetworkRule, err error)

Get gets a virtual network rule.

resourceGroupName is the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName is the name of the server. virtualNetworkRuleName is the name of the virtual network rule.

func (VirtualNetworkRulesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (VirtualNetworkRulesClient) GetResponder

func (client VirtualNetworkRulesClient) GetResponder(resp *http.Response) (result VirtualNetworkRule, err error)

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

func (VirtualNetworkRulesClient) GetSender

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

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

ListByServer gets a list of virtual network rules in a server.

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

func (VirtualNetworkRulesClient) ListByServerComplete

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

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

func (VirtualNetworkRulesClient) ListByServerPreparer

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

ListByServerPreparer prepares the ListByServer request.

func (VirtualNetworkRulesClient) ListByServerResponder

func (client VirtualNetworkRulesClient) ListByServerResponder(resp *http.Response) (result VirtualNetworkRuleListResult, err error)

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

func (VirtualNetworkRulesClient) ListByServerSender

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

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

type VirtualNetworkRulesCreateOrUpdateFuture

type VirtualNetworkRulesCreateOrUpdateFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (VirtualNetworkRulesCreateOrUpdateFuture) Result

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

type VirtualNetworkRulesDeleteFuture

type VirtualNetworkRulesDeleteFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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

func (VirtualNetworkRulesDeleteFuture) Result

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

Jump to

Keyboard shortcuts

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