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
- func UserAgent() string
- func Version() string
- type CheckNameAvailabilityClient
- func (client CheckNameAvailabilityClient) Execute(nameAvailabilityRequest NameAvailabilityRequest) (result NameAvailability, err error)
- func (client CheckNameAvailabilityClient) ExecutePreparer(nameAvailabilityRequest NameAvailabilityRequest) (*http.Request, error)
- func (client CheckNameAvailabilityClient) ExecuteResponder(resp *http.Response) (result NameAvailability, err error)
- func (client CheckNameAvailabilityClient) ExecuteSender(req *http.Request) (*http.Response, error)
- type Configuration
- type ConfigurationListResult
- type ConfigurationProperties
- type ConfigurationsClient
- func (client ConfigurationsClient) CreateOrUpdate(resourceGroupName string, serverName string, configurationName string, ...) (<-chan Configuration, <-chan error)
- func (client ConfigurationsClient) CreateOrUpdatePreparer(resourceGroupName string, serverName string, configurationName string, ...) (*http.Request, error)
- func (client ConfigurationsClient) CreateOrUpdateResponder(resp *http.Response) (result Configuration, err error)
- func (client ConfigurationsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client ConfigurationsClient) Get(resourceGroupName string, serverName string, configurationName string) (result Configuration, err error)
- func (client ConfigurationsClient) GetPreparer(resourceGroupName string, serverName string, configurationName string) (*http.Request, error)
- func (client ConfigurationsClient) GetResponder(resp *http.Response) (result Configuration, err error)
- func (client ConfigurationsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ConfigurationsClient) ListByServer(resourceGroupName string, serverName string) (result ConfigurationListResult, err error)
- func (client ConfigurationsClient) ListByServerPreparer(resourceGroupName string, serverName string) (*http.Request, error)
- func (client ConfigurationsClient) ListByServerResponder(resp *http.Response) (result ConfigurationListResult, err error)
- func (client ConfigurationsClient) ListByServerSender(req *http.Request) (*http.Response, error)
- type CreateMode
- type Database
- type DatabaseListResult
- type DatabaseProperties
- type DatabasesClient
- func (client DatabasesClient) CreateOrUpdate(resourceGroupName string, serverName string, databaseName string, ...) (<-chan Database, <-chan error)
- func (client DatabasesClient) CreateOrUpdatePreparer(resourceGroupName string, serverName string, databaseName string, ...) (*http.Request, error)
- func (client DatabasesClient) CreateOrUpdateResponder(resp *http.Response) (result Database, err error)
- func (client DatabasesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client DatabasesClient) Delete(resourceGroupName string, serverName string, databaseName string, ...) (<-chan autorest.Response, <-chan error)
- func (client DatabasesClient) DeletePreparer(resourceGroupName string, serverName string, databaseName string, ...) (*http.Request, error)
- func (client DatabasesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DatabasesClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client DatabasesClient) Get(resourceGroupName string, serverName string, databaseName string) (result Database, err error)
- func (client DatabasesClient) GetPreparer(resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
- func (client DatabasesClient) GetResponder(resp *http.Response) (result Database, err error)
- func (client DatabasesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client DatabasesClient) ListByServer(resourceGroupName string, serverName string) (result DatabaseListResult, err error)
- func (client DatabasesClient) ListByServerPreparer(resourceGroupName string, serverName string) (*http.Request, error)
- func (client DatabasesClient) ListByServerResponder(resp *http.Response) (result DatabaseListResult, err error)
- func (client DatabasesClient) ListByServerSender(req *http.Request) (*http.Response, error)
- type FirewallRule
- type FirewallRuleListResult
- type FirewallRuleProperties
- type FirewallRulesClient
- func (client FirewallRulesClient) CreateOrUpdate(resourceGroupName string, serverName string, firewallRuleName string, ...) (<-chan FirewallRule, <-chan error)
- func (client FirewallRulesClient) CreateOrUpdatePreparer(resourceGroupName string, serverName string, firewallRuleName string, ...) (*http.Request, error)
- func (client FirewallRulesClient) CreateOrUpdateResponder(resp *http.Response) (result FirewallRule, err error)
- func (client FirewallRulesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client FirewallRulesClient) Delete(resourceGroupName string, serverName string, firewallRuleName string, ...) (<-chan autorest.Response, <-chan error)
- func (client FirewallRulesClient) DeletePreparer(resourceGroupName string, serverName string, firewallRuleName string, ...) (*http.Request, error)
- func (client FirewallRulesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client FirewallRulesClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client FirewallRulesClient) Get(resourceGroupName string, serverName string, firewallRuleName string) (result FirewallRule, err error)
- func (client FirewallRulesClient) GetPreparer(resourceGroupName string, serverName string, firewallRuleName string) (*http.Request, error)
- func (client FirewallRulesClient) GetResponder(resp *http.Response) (result FirewallRule, err error)
- func (client FirewallRulesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client FirewallRulesClient) ListByServer(resourceGroupName string, serverName string) (result FirewallRuleListResult, err error)
- func (client FirewallRulesClient) ListByServerPreparer(resourceGroupName string, serverName string) (*http.Request, error)
- func (client FirewallRulesClient) ListByServerResponder(resp *http.Response) (result FirewallRuleListResult, err error)
- func (client FirewallRulesClient) ListByServerSender(req *http.Request) (*http.Response, error)
- type LocationBasedPerformanceTierClient
- func (client LocationBasedPerformanceTierClient) List(locationName string) (result PerformanceTierListResult, err error)
- func (client LocationBasedPerformanceTierClient) ListPreparer(locationName string) (*http.Request, error)
- func (client LocationBasedPerformanceTierClient) ListResponder(resp *http.Response) (result PerformanceTierListResult, err error)
- func (client LocationBasedPerformanceTierClient) ListSender(req *http.Request) (*http.Response, error)
- type LogFile
- type LogFileListResult
- type LogFileProperties
- type LogFilesClient
- func (client LogFilesClient) ListByServer(resourceGroupName string, serverName string) (result LogFileListResult, err error)
- func (client LogFilesClient) ListByServerPreparer(resourceGroupName string, serverName string) (*http.Request, error)
- func (client LogFilesClient) ListByServerResponder(resp *http.Response) (result LogFileListResult, err error)
- func (client LogFilesClient) ListByServerSender(req *http.Request) (*http.Response, error)
- type ManagementClient
- type NameAvailability
- type NameAvailabilityRequest
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationOrigin
- type OperationsClient
- func (client OperationsClient) List() (result OperationListResult, err error)
- func (client OperationsClient) ListPreparer() (*http.Request, error)
- func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
- func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
- type PerformanceTierListResult
- type PerformanceTierProperties
- type PerformanceTierServiceLevelObjectives
- type PerformanceTiersClient
- func (client PerformanceTiersClient) List() (result PerformanceTierListResult, err error)
- func (client PerformanceTiersClient) ListPreparer() (*http.Request, error)
- func (client PerformanceTiersClient) ListResponder(resp *http.Response) (result PerformanceTierListResult, err error)
- func (client PerformanceTiersClient) ListSender(req *http.Request) (*http.Response, error)
- type ProxyResource
- type Server
- type ServerForCreate
- type ServerListResult
- type ServerProperties
- type ServerPropertiesForCreate
- type ServerPropertiesForDefaultCreate
- func (spfdc ServerPropertiesForDefaultCreate) AsServerPropertiesForDefaultCreate() (*ServerPropertiesForDefaultCreate, bool)
- func (spfdc ServerPropertiesForDefaultCreate) AsServerPropertiesForRestore() (*ServerPropertiesForRestore, bool)
- func (spfdc ServerPropertiesForDefaultCreate) MarshalJSON() ([]byte, error)
- type ServerPropertiesForRestore
- type ServerState
- type ServerUpdateParameters
- type ServerUpdateParametersProperties
- type ServerVersion
- type ServersClient
- func (client ServersClient) CreateOrUpdate(resourceGroupName string, serverName string, parameters ServerForCreate, ...) (<-chan Server, <-chan error)
- func (client ServersClient) CreateOrUpdatePreparer(resourceGroupName string, serverName string, parameters ServerForCreate, ...) (*http.Request, error)
- func (client ServersClient) CreateOrUpdateResponder(resp *http.Response) (result Server, err error)
- func (client ServersClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client ServersClient) Delete(resourceGroupName string, serverName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)
- func (client ServersClient) DeletePreparer(resourceGroupName string, serverName string, cancel <-chan struct{}) (*http.Request, error)
- func (client ServersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ServersClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client ServersClient) Get(resourceGroupName string, serverName string) (result Server, err error)
- func (client ServersClient) GetPreparer(resourceGroupName string, serverName string) (*http.Request, error)
- func (client ServersClient) GetResponder(resp *http.Response) (result Server, err error)
- func (client ServersClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ServersClient) List() (result ServerListResult, err error)
- func (client ServersClient) ListByResourceGroup(resourceGroupName string) (result ServerListResult, err error)
- func (client ServersClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)
- func (client ServersClient) ListByResourceGroupResponder(resp *http.Response) (result ServerListResult, err error)
- func (client ServersClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client ServersClient) ListPreparer() (*http.Request, error)
- func (client ServersClient) ListResponder(resp *http.Response) (result ServerListResult, err error)
- func (client ServersClient) ListSender(req *http.Request) (*http.Response, error)
- func (client ServersClient) Update(resourceGroupName string, serverName string, parameters ServerUpdateParameters, ...) (<-chan Server, <-chan error)
- func (client ServersClient) UpdatePreparer(resourceGroupName string, serverName string, parameters ServerUpdateParameters, ...) (*http.Request, error)
- func (client ServersClient) UpdateResponder(resp *http.Response) (result Server, err error)
- func (client ServersClient) UpdateSender(req *http.Request) (*http.Response, error)
- type Sku
- type SkuTier
- type SslEnforcementEnum
- type TrackedResource
- type VirtualNetworkRule
- type VirtualNetworkRuleListResult
- type VirtualNetworkRuleProperties
- type VirtualNetworkRuleState
- type VirtualNetworkRulesClient
- func (client VirtualNetworkRulesClient) CreateOrUpdate(resourceGroupName string, serverName string, virtualNetworkRuleName string, ...) (<-chan VirtualNetworkRule, <-chan error)
- func (client VirtualNetworkRulesClient) CreateOrUpdatePreparer(resourceGroupName string, serverName string, virtualNetworkRuleName string, ...) (*http.Request, error)
- func (client VirtualNetworkRulesClient) CreateOrUpdateResponder(resp *http.Response) (result VirtualNetworkRule, err error)
- func (client VirtualNetworkRulesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client VirtualNetworkRulesClient) Delete(resourceGroupName string, serverName string, virtualNetworkRuleName string, ...) (<-chan autorest.Response, <-chan error)
- func (client VirtualNetworkRulesClient) DeletePreparer(resourceGroupName string, serverName string, virtualNetworkRuleName string, ...) (*http.Request, error)
- func (client VirtualNetworkRulesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client VirtualNetworkRulesClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client VirtualNetworkRulesClient) Get(resourceGroupName string, serverName string, virtualNetworkRuleName string) (result VirtualNetworkRule, err error)
- func (client VirtualNetworkRulesClient) GetPreparer(resourceGroupName string, serverName string, virtualNetworkRuleName string) (*http.Request, error)
- func (client VirtualNetworkRulesClient) GetResponder(resp *http.Response) (result VirtualNetworkRule, err error)
- func (client VirtualNetworkRulesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client VirtualNetworkRulesClient) ListByServer(resourceGroupName string, serverName string) (result VirtualNetworkRuleListResult, err error)
- func (client VirtualNetworkRulesClient) ListByServerComplete(resourceGroupName string, serverName string, cancel <-chan struct{}) (<-chan VirtualNetworkRule, <-chan error)
- func (client VirtualNetworkRulesClient) ListByServerNextResults(lastResults VirtualNetworkRuleListResult) (result VirtualNetworkRuleListResult, err error)
- func (client VirtualNetworkRulesClient) ListByServerPreparer(resourceGroupName string, serverName string) (*http.Request, error)
- func (client VirtualNetworkRulesClient) ListByServerResponder(resp *http.Response) (result VirtualNetworkRuleListResult, err error)
- func (client VirtualNetworkRulesClient) ListByServerSender(req *http.Request) (*http.Response, error)
Constants ¶
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 CheckNameAvailabilityClient ¶
type CheckNameAvailabilityClient struct {
ManagementClient
}
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(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(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 ¶
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 *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` *ConfigurationProperties `json:"properties,omitempty"` }
Configuration is represents a Configuration.
type ConfigurationListResult ¶
type ConfigurationListResult struct { autorest.Response `json:"-"` Value *[]Configuration `json:"value,omitempty"` }
ConfigurationListResult is a list of server configurations.
type ConfigurationProperties ¶
type ConfigurationProperties struct { Value *string `json:"value,omitempty"` Description *string `json:"description,omitempty"` DefaultValue *string `json:"defaultValue,omitempty"` DataType *string `json:"dataType,omitempty"` AllowedValues *string `json:"allowedValues,omitempty"` Source *string `json:"source,omitempty"` }
ConfigurationProperties is the properties of a configuration.
type ConfigurationsClient ¶
type ConfigurationsClient struct {
ManagementClient
}
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(resourceGroupName string, serverName string, configurationName string, parameters Configuration, cancel <-chan struct{}) (<-chan Configuration, <-chan error)
CreateOrUpdate updates a configuration of a server. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
resourceGroupName is the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName is the name of the server. 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(resourceGroupName string, serverName string, configurationName string, parameters Configuration, cancel <-chan struct{}) (*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 ¶
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(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(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 ¶
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(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(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 ¶
ListByServerSender sends the ListByServer request. The method will close the http.Response Body if it receives an error.
type CreateMode ¶
type CreateMode string
CreateMode enumerates the values for create mode.
const ( // CreateModeDefault specifies the create mode default state for create mode. CreateModeDefault CreateMode = "Default" // CreateModePointInTimeRestore specifies the create mode point in time restore state for create mode. CreateModePointInTimeRestore CreateMode = "PointInTimeRestore" )
type Database ¶
type Database struct { autorest.Response `json:"-"` ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` *DatabaseProperties `json:"properties,omitempty"` }
Database is represents a Database.
type DatabaseListResult ¶
type DatabaseListResult struct { autorest.Response `json:"-"` Value *[]Database `json:"value,omitempty"` }
DatabaseListResult is a List of databases.
type DatabaseProperties ¶
type DatabaseProperties struct { Charset *string `json:"charset,omitempty"` Collation *string `json:"collation,omitempty"` }
DatabaseProperties is the properties of a database.
type DatabasesClient ¶
type DatabasesClient struct {
ManagementClient
}
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(resourceGroupName string, serverName string, databaseName string, parameters Database, cancel <-chan struct{}) (<-chan Database, <-chan error)
CreateOrUpdate creates a new database or updates an existing 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 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(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 Database, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (DatabasesClient) CreateOrUpdateSender ¶
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(resourceGroupName string, serverName string, databaseName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)
Delete deletes a 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 server. databaseName is the name of the database.
func (DatabasesClient) DeletePreparer ¶
func (client DatabasesClient) DeletePreparer(resourceGroupName string, serverName string, databaseName string, cancel <-chan struct{}) (*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 ¶
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) (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(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 ¶
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(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(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 ¶
ListByServerSender sends the ListByServer request. The method will close the http.Response Body if it receives an error.
type FirewallRule ¶
type FirewallRule struct { autorest.Response `json:"-"` ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` *FirewallRuleProperties `json:"properties,omitempty"` }
FirewallRule is represents a server firewall rule.
type FirewallRuleListResult ¶
type FirewallRuleListResult struct { autorest.Response `json:"-"` Value *[]FirewallRule `json:"value,omitempty"` }
FirewallRuleListResult is a list of firewall rules.
type FirewallRuleProperties ¶
type FirewallRuleProperties struct { StartIPAddress *string `json:"startIpAddress,omitempty"` EndIPAddress *string `json:"endIpAddress,omitempty"` }
FirewallRuleProperties is the properties of a server firewall rule.
type FirewallRulesClient ¶
type FirewallRulesClient struct {
ManagementClient
}
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(resourceGroupName string, serverName string, firewallRuleName string, parameters FirewallRule, cancel <-chan struct{}) (<-chan FirewallRule, <-chan error)
CreateOrUpdate creates a new firewall rule or updates an existing firewall rule. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
resourceGroupName is the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName is the name of the server. 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(resourceGroupName string, serverName string, firewallRuleName string, parameters FirewallRule, cancel <-chan struct{}) (*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 ¶
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(resourceGroupName string, serverName string, firewallRuleName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)
Delete deletes a server firewall rule. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
resourceGroupName is the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName is the name of the server. firewallRuleName is the name of the server firewall rule.
func (FirewallRulesClient) DeletePreparer ¶
func (client FirewallRulesClient) DeletePreparer(resourceGroupName string, serverName string, firewallRuleName string, cancel <-chan struct{}) (*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 ¶
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(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(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 ¶
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(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(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 ¶
ListByServerSender sends the ListByServer request. The method will close the http.Response Body if it receives an error.
type LocationBasedPerformanceTierClient ¶
type LocationBasedPerformanceTierClient struct {
ManagementClient
}
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(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(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 *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` *LogFileProperties `json:"properties,omitempty"` }
LogFile is represents a log file.
type LogFileListResult ¶
type LogFileListResult struct { autorest.Response `json:"-"` Value *[]LogFile `json:"value,omitempty"` }
LogFileListResult is a list of log files.
type LogFileProperties ¶
type LogFileProperties struct { Name *string `json:"name,omitempty"` SizeInKB *int64 `json:"sizeInKB,omitempty"` CreatedTime *date.Time `json:"createdTime,omitempty"` LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"` Type *string `json:"type,omitempty"` URL *string `json:"url,omitempty"` }
LogFileProperties is the properties of a log file.
type LogFilesClient ¶
type LogFilesClient struct {
ManagementClient
}
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(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(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 ¶
ListByServerSender sends the ListByServer request. The method will close the http.Response Body if it receives an error.
type ManagementClient ¶
ManagementClient is the base client for Mysql.
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 NameAvailability ¶
type NameAvailability struct { autorest.Response `json:"-"` Message *string `json:"message,omitempty"` NameAvailable *bool `json:"nameAvailable,omitempty"` Reason *string `json:"reason,omitempty"` }
NameAvailability is represents a resource name availability.
type NameAvailabilityRequest ¶
type NameAvailabilityRequest struct { Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` }
NameAvailabilityRequest is request from client to check resource name availability.
type Operation ¶
type Operation struct { Name *string `json:"name,omitempty"` Display *OperationDisplay `json:"display,omitempty"` Origin OperationOrigin `json:"origin,omitempty"` Properties *map[string]*map[string]interface{} `json:"properties,omitempty"` }
Operation is REST API operation definition.
type OperationDisplay ¶
type OperationDisplay struct { Provider *string `json:"provider,omitempty"` Resource *string `json:"resource,omitempty"` Operation *string `json:"operation,omitempty"` Description *string `json:"description,omitempty"` }
OperationDisplay is display metadata associated with the operation.
type OperationListResult ¶
type OperationListResult struct { autorest.Response `json:"-"` Value *[]Operation `json:"value,omitempty"` }
OperationListResult is a list of resource provider operations.
type OperationOrigin ¶
type OperationOrigin string
OperationOrigin enumerates the values for operation origin.
const ( // NotSpecified specifies the not specified state for operation origin. NotSpecified OperationOrigin = "NotSpecified" // System specifies the system state for operation origin. System OperationOrigin = "system" // User specifies the user state for operation origin. User OperationOrigin = "user" )
type OperationsClient ¶
type OperationsClient struct {
ManagementClient
}
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() (result OperationListResult, err error)
List lists all of the available REST API operations.
func (OperationsClient) ListPreparer ¶
func (client OperationsClient) ListPreparer() (*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 ¶
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 *[]PerformanceTierProperties `json:"value,omitempty"` }
PerformanceTierListResult is a list of performance tiers.
type PerformanceTierProperties ¶
type PerformanceTierProperties struct { ID *string `json:"id,omitempty"` BackupRetentionDays *int32 `json:"backupRetentionDays,omitempty"` ServiceLevelObjectives *[]PerformanceTierServiceLevelObjectives `json:"serviceLevelObjectives,omitempty"` }
PerformanceTierProperties is performance tier properties
type PerformanceTierServiceLevelObjectives ¶
type PerformanceTierServiceLevelObjectives struct { ID *string `json:"id,omitempty"` Edition *string `json:"edition,omitempty"` Dtu *int32 `json:"dtu,omitempty"` StorageMB *int32 `json:"storageMB,omitempty"` }
PerformanceTierServiceLevelObjectives is service level objectives for performance tier.
type PerformanceTiersClient ¶
type PerformanceTiersClient struct {
ManagementClient
}
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() (result PerformanceTierListResult, err error)
List list all the performance tiers in a given subscription.
func (PerformanceTiersClient) ListPreparer ¶
func (client PerformanceTiersClient) ListPreparer() (*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 ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type ProxyResource ¶
type ProxyResource struct { ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` }
ProxyResource is resource properties.
type Server ¶
type Server struct { autorest.Response `json:"-"` ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` Location *string `json:"location,omitempty"` Tags *map[string]*string `json:"tags,omitempty"` Sku *Sku `json:"sku,omitempty"` *ServerProperties `json:"properties,omitempty"` }
Server is represents a server.
type ServerForCreate ¶
type ServerForCreate struct { Sku *Sku `json:"sku,omitempty"` Properties ServerPropertiesForCreate `json:"properties,omitempty"` Location *string `json:"location,omitempty"` Tags *map[string]*string `json:"tags,omitempty"` }
ServerForCreate is 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 *[]Server `json:"value,omitempty"` }
ServerListResult is a list of servers.
type ServerProperties ¶
type ServerProperties struct { AdministratorLogin *string `json:"administratorLogin,omitempty"` StorageMB *int64 `json:"storageMB,omitempty"` Version ServerVersion `json:"version,omitempty"` SslEnforcement SslEnforcementEnum `json:"sslEnforcement,omitempty"` UserVisibleState ServerState `json:"userVisibleState,omitempty"` FullyQualifiedDomainName *string `json:"fullyQualifiedDomainName,omitempty"` }
ServerProperties is the properties of a server.
type ServerPropertiesForCreate ¶
type ServerPropertiesForCreate interface { AsServerPropertiesForDefaultCreate() (*ServerPropertiesForDefaultCreate, bool) AsServerPropertiesForRestore() (*ServerPropertiesForRestore, bool) }
ServerPropertiesForCreate is the properties used to create a new server.
type ServerPropertiesForDefaultCreate ¶
type ServerPropertiesForDefaultCreate struct { StorageMB *int64 `json:"storageMB,omitempty"` Version ServerVersion `json:"version,omitempty"` SslEnforcement SslEnforcementEnum `json:"sslEnforcement,omitempty"` CreateMode CreateMode `json:"createMode,omitempty"` AdministratorLogin *string `json:"administratorLogin,omitempty"` AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"` }
ServerPropertiesForDefaultCreate is the properties used to create a new server.
func (ServerPropertiesForDefaultCreate) AsServerPropertiesForDefaultCreate ¶
func (spfdc ServerPropertiesForDefaultCreate) AsServerPropertiesForDefaultCreate() (*ServerPropertiesForDefaultCreate, bool)
AsServerPropertiesForDefaultCreate is the ServerPropertiesForCreate implementation for ServerPropertiesForDefaultCreate.
func (ServerPropertiesForDefaultCreate) AsServerPropertiesForRestore ¶
func (spfdc ServerPropertiesForDefaultCreate) AsServerPropertiesForRestore() (*ServerPropertiesForRestore, bool)
AsServerPropertiesForRestore is the ServerPropertiesForCreate 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 *int64 `json:"storageMB,omitempty"` Version ServerVersion `json:"version,omitempty"` SslEnforcement SslEnforcementEnum `json:"sslEnforcement,omitempty"` CreateMode CreateMode `json:"createMode,omitempty"` SourceServerID *string `json:"sourceServerId,omitempty"` RestorePointInTime *date.Time `json:"restorePointInTime,omitempty"` }
ServerPropertiesForRestore is the properties to a new server by restoring from a backup.
func (ServerPropertiesForRestore) AsServerPropertiesForDefaultCreate ¶
func (spfr ServerPropertiesForRestore) AsServerPropertiesForDefaultCreate() (*ServerPropertiesForDefaultCreate, bool)
AsServerPropertiesForDefaultCreate is the ServerPropertiesForCreate implementation for ServerPropertiesForRestore.
func (ServerPropertiesForRestore) AsServerPropertiesForRestore ¶
func (spfr ServerPropertiesForRestore) AsServerPropertiesForRestore() (*ServerPropertiesForRestore, bool)
AsServerPropertiesForRestore is the ServerPropertiesForCreate 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 specifies the disabled state for server state. Disabled ServerState = "Disabled" // Dropping specifies the dropping state for server state. Dropping ServerState = "Dropping" // Ready specifies the ready state for server state. Ready ServerState = "Ready" )
type ServerUpdateParameters ¶
type ServerUpdateParameters struct { Sku *Sku `json:"sku,omitempty"` *ServerUpdateParametersProperties `json:"properties,omitempty"` Tags *map[string]*string `json:"tags,omitempty"` }
ServerUpdateParameters is parameters allowd to update for a server.
type ServerUpdateParametersProperties ¶
type ServerUpdateParametersProperties struct { StorageMB *int64 `json:"storageMB,omitempty"` AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"` Version ServerVersion `json:"version,omitempty"` SslEnforcement SslEnforcementEnum `json:"sslEnforcement,omitempty"` }
ServerUpdateParametersProperties is the properties that can be updated for a server.
type ServerVersion ¶
type ServerVersion string
ServerVersion enumerates the values for server version.
const ( // FiveFullStopSeven specifies the five full stop seven state for server version. FiveFullStopSeven ServerVersion = "5.7" // FiveFullStopSix specifies the five full stop six state for server version. FiveFullStopSix ServerVersion = "5.6" )
type ServersClient ¶
type ServersClient struct {
ManagementClient
}
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(resourceGroupName string, serverName string, parameters ServerForCreate, cancel <-chan struct{}) (<-chan Server, <-chan error)
CreateOrUpdate creates a new server or updates an existing server. The update action will overwrite the existing server. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
resourceGroupName is the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName is the name of the server. parameters is the required parameters for creating or updating a server.
func (ServersClient) CreateOrUpdatePreparer ¶
func (client ServersClient) CreateOrUpdatePreparer(resourceGroupName string, serverName string, parameters ServerForCreate, cancel <-chan struct{}) (*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 ¶
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, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)
Delete deletes a server. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
resourceGroupName is the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName is the name of the server.
func (ServersClient) DeletePreparer ¶
func (client ServersClient) DeletePreparer(resourceGroupName string, serverName string, cancel <-chan struct{}) (*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 ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (ServersClient) Get ¶
func (client ServersClient) Get(resourceGroupName string, serverName string) (result Server, err error)
Get gets 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(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 ¶
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() (result ServerListResult, err error)
List list all the servers in a given subscription.
func (ServersClient) ListByResourceGroup ¶
func (client ServersClient) ListByResourceGroup(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(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 ¶
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 ¶
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(resourceGroupName string, serverName string, parameters ServerUpdateParameters, cancel <-chan struct{}) (<-chan Server, <-chan error)
Update updates an existing server. The request body can contain one to many of the properties present in the normal server definition. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
resourceGroupName is the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName is the name of the server. parameters is the required parameters for updating a server.
func (ServersClient) UpdatePreparer ¶
func (client ServersClient) UpdatePreparer(resourceGroupName string, serverName string, parameters ServerUpdateParameters, cancel <-chan struct{}) (*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 ¶
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type Sku ¶
type Sku struct { Name *string `json:"name,omitempty"` Tier SkuTier `json:"tier,omitempty"` Capacity *int32 `json:"capacity,omitempty"` Size *string `json:"size,omitempty"` Family *string `json:"family,omitempty"` }
Sku is billing information related properties of a server.
type SslEnforcementEnum ¶
type SslEnforcementEnum string
SslEnforcementEnum enumerates the values for ssl enforcement enum.
const ( // SslEnforcementEnumDisabled specifies the ssl enforcement enum disabled state for ssl enforcement enum. SslEnforcementEnumDisabled SslEnforcementEnum = "Disabled" // SslEnforcementEnumEnabled specifies the ssl enforcement enum enabled state for ssl enforcement enum. SslEnforcementEnumEnabled SslEnforcementEnum = "Enabled" )
type TrackedResource ¶
type TrackedResource struct { ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` Location *string `json:"location,omitempty"` Tags *map[string]*string `json:"tags,omitempty"` }
TrackedResource is resource properties including location and tags for track resources.
type VirtualNetworkRule ¶
type VirtualNetworkRule struct { autorest.Response `json:"-"` ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` *VirtualNetworkRuleProperties `json:"properties,omitempty"` }
VirtualNetworkRule is a virtual network rule.
type VirtualNetworkRuleListResult ¶
type VirtualNetworkRuleListResult struct { autorest.Response `json:"-"` Value *[]VirtualNetworkRule `json:"value,omitempty"` NextLink *string `json:"nextLink,omitempty"` }
VirtualNetworkRuleListResult is a list of virtual network rules.
func (VirtualNetworkRuleListResult) VirtualNetworkRuleListResultPreparer ¶
func (client VirtualNetworkRuleListResult) VirtualNetworkRuleListResultPreparer() (*http.Request, error)
VirtualNetworkRuleListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.
type VirtualNetworkRuleProperties ¶
type VirtualNetworkRuleProperties struct { VirtualNetworkSubnetID *string `json:"virtualNetworkSubnetId,omitempty"` IgnoreMissingVnetServiceEndpoint *bool `json:"ignoreMissingVnetServiceEndpoint,omitempty"` State VirtualNetworkRuleState `json:"state,omitempty"` }
VirtualNetworkRuleProperties is properties of a virtual network rule.
type VirtualNetworkRuleState ¶
type VirtualNetworkRuleState string
VirtualNetworkRuleState enumerates the values for virtual network rule state.
const ( // VirtualNetworkRuleStateDeleting specifies the virtual network rule state deleting state for virtual network rule // state. VirtualNetworkRuleStateDeleting VirtualNetworkRuleState = "Deleting" // VirtualNetworkRuleStateInitializing specifies the virtual network rule state initializing state for virtual network // rule state. VirtualNetworkRuleStateInitializing VirtualNetworkRuleState = "Initializing" // VirtualNetworkRuleStateInProgress specifies the virtual network rule state in progress state for virtual network // rule state. VirtualNetworkRuleStateInProgress VirtualNetworkRuleState = "InProgress" // VirtualNetworkRuleStateReady specifies the virtual network rule state ready state for virtual network rule state. VirtualNetworkRuleStateReady VirtualNetworkRuleState = "Ready" // VirtualNetworkRuleStateUnknown specifies the virtual network rule state unknown state for virtual network rule // state. VirtualNetworkRuleStateUnknown VirtualNetworkRuleState = "Unknown" )
type VirtualNetworkRulesClient ¶
type VirtualNetworkRulesClient struct {
ManagementClient
}
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(resourceGroupName string, serverName string, virtualNetworkRuleName string, parameters VirtualNetworkRule, cancel <-chan struct{}) (<-chan VirtualNetworkRule, <-chan error)
CreateOrUpdate creates or updates an existing virtual network rule. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
resourceGroupName is the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName is the name of the server. 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(resourceGroupName string, serverName string, virtualNetworkRuleName string, parameters VirtualNetworkRule, cancel <-chan struct{}) (*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) (*http.Response, 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(resourceGroupName string, serverName string, virtualNetworkRuleName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)
Delete deletes the virtual network rule with the given name. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
resourceGroupName is the name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. serverName is the name of the server. virtualNetworkRuleName is the name of the virtual network rule.
func (VirtualNetworkRulesClient) DeletePreparer ¶
func (client VirtualNetworkRulesClient) DeletePreparer(resourceGroupName string, serverName string, virtualNetworkRuleName string, cancel <-chan struct{}) (*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 ¶
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(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(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 ¶
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(resourceGroupName string, serverName string) (result VirtualNetworkRuleListResult, 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(resourceGroupName string, serverName string, cancel <-chan struct{}) (<-chan VirtualNetworkRule, <-chan error)
ListByServerComplete gets all elements from the list without paging.
func (VirtualNetworkRulesClient) ListByServerNextResults ¶
func (client VirtualNetworkRulesClient) ListByServerNextResults(lastResults VirtualNetworkRuleListResult) (result VirtualNetworkRuleListResult, err error)
ListByServerNextResults retrieves the next set of results, if any.
func (VirtualNetworkRulesClient) ListByServerPreparer ¶
func (client VirtualNetworkRulesClient) ListByServerPreparer(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.