const ( // DefaultBaseURI is the default URI used for the service Mysqlflexibleservers DefaultBaseURI = "https://management.azure.com" )
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
AzureEntityResource the resource model definition for an Azure Resource Manager resource with an etag.
type AzureEntityResource struct { // Etag - READ-ONLY; Resource Etag. Etag *string `json:"etag,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
func (aer AzureEntityResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureEntityResource.
Backup storage Profile properties of a server
type Backup struct { // BackupRetentionDays - Backup retention days for the server. BackupRetentionDays *int32 `json:"backupRetentionDays,omitempty"` // GeoRedundantBackup - Whether or not geo redundant backup is enabled. Possible values include: 'EnableStatusEnumEnabled', 'EnableStatusEnumDisabled' GeoRedundantBackup EnableStatusEnum `json:"geoRedundantBackup,omitempty"` // EarliestRestoreDate - READ-ONLY; Earliest restore point creation time (ISO8601 format) EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"` }
func (b Backup) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Backup.
BackupsClient 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 with new business model.
type BackupsClient struct { BaseClient }
func NewBackupsClient(subscriptionID string) BackupsClient
NewBackupsClient creates an instance of the BackupsClient client.
func NewBackupsClientWithBaseURI(baseURI string, subscriptionID string) BackupsClient
NewBackupsClientWithBaseURI creates an instance of the BackupsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client BackupsClient) Get(ctx context.Context, resourceGroupName string, serverName string, backupName string) (result ServerBackup, err error)
Get list all the backups for a given server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server. backupName - the name of the backup.
func (client BackupsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, backupName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client BackupsClient) GetResponder(resp *http.Response) (result ServerBackup, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client BackupsClient) 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 (client BackupsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ServerBackupListResultPage, err error)
ListByServer list all the backups for a given server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server.
func (client BackupsClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result ServerBackupListResultIterator, err error)
ListByServerComplete enumerates all values, automatically crossing page boundaries as required.
func (client BackupsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
ListByServerPreparer prepares the ListByServer request.
func (client BackupsClient) ListByServerResponder(resp *http.Response) (result ServerBackupListResult, err error)
ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.
func (client BackupsClient) 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.
BaseClient is the base client for Mysqlflexibleservers.
type BaseClient struct { autorest.Client BaseURI string SubscriptionID string }
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
CapabilitiesListResult location capability
type CapabilitiesListResult struct { autorest.Response `json:"-"` // Value - READ-ONLY; A list of supported capabilities. Value *[]CapabilityProperties `json:"value,omitempty"` // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` }
func (clr CapabilitiesListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
func (clr CapabilitiesListResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CapabilitiesListResult.
CapabilitiesListResultIterator provides access to a complete listing of CapabilityProperties values.
type CapabilitiesListResultIterator struct {
// contains filtered or unexported fields
}
func NewCapabilitiesListResultIterator(page CapabilitiesListResultPage) CapabilitiesListResultIterator
Creates a new instance of the CapabilitiesListResultIterator type.
func (iter *CapabilitiesListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (iter *CapabilitiesListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter CapabilitiesListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter CapabilitiesListResultIterator) Response() CapabilitiesListResult
Response returns the raw server response from the last page request.
func (iter CapabilitiesListResultIterator) Value() CapabilityProperties
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
CapabilitiesListResultPage contains a page of CapabilityProperties values.
type CapabilitiesListResultPage struct {
// contains filtered or unexported fields
}
func NewCapabilitiesListResultPage(cur CapabilitiesListResult, getNextPage func(context.Context, CapabilitiesListResult) (CapabilitiesListResult, error)) CapabilitiesListResultPage
Creates a new instance of the CapabilitiesListResultPage type.
func (page *CapabilitiesListResultPage) Next() error
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. Deprecated: Use NextWithContext() instead.
func (page *CapabilitiesListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext 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 (page CapabilitiesListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page CapabilitiesListResultPage) Response() CapabilitiesListResult
Response returns the raw server response from the last page request.
func (page CapabilitiesListResultPage) Values() []CapabilityProperties
Values returns the slice of values for the current page or nil if there are no values.
CapabilityProperties location capabilities.
type CapabilityProperties struct { // Zone - READ-ONLY; zone name Zone *string `json:"zone,omitempty"` // SupportedHAMode - READ-ONLY; Supported high availability mode SupportedHAMode *[]string `json:"supportedHAMode,omitempty"` // SupportedGeoBackupRegions - READ-ONLY; supported geo backup regions SupportedGeoBackupRegions *[]string `json:"supportedGeoBackupRegions,omitempty"` // SupportedFlexibleServerEditions - READ-ONLY; A list of supported flexible server editions. SupportedFlexibleServerEditions *[]ServerEditionCapability `json:"supportedFlexibleServerEditions,omitempty"` }
func (cp CapabilityProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CapabilityProperties.
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 with new business model.
type CheckNameAvailabilityClient struct { BaseClient }
func NewCheckNameAvailabilityClient(subscriptionID string) CheckNameAvailabilityClient
NewCheckNameAvailabilityClient creates an instance of the CheckNameAvailabilityClient client.
func NewCheckNameAvailabilityClientWithBaseURI(baseURI string, subscriptionID string) CheckNameAvailabilityClient
NewCheckNameAvailabilityClientWithBaseURI creates an instance of the CheckNameAvailabilityClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client CheckNameAvailabilityClient) Execute(ctx context.Context, locationName string, nameAvailabilityRequest NameAvailabilityRequest) (result NameAvailability, err error)
Execute check the availability of name for server Parameters: locationName - the name of the location. nameAvailabilityRequest - the required parameters for checking if server name is available.
func (client CheckNameAvailabilityClient) ExecutePreparer(ctx context.Context, locationName string, nameAvailabilityRequest NameAvailabilityRequest) (*http.Request, error)
ExecutePreparer prepares the Execute request.
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 (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.
CheckVirtualNetworkSubnetUsageClient 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 with new business model.
type CheckVirtualNetworkSubnetUsageClient struct { BaseClient }
func NewCheckVirtualNetworkSubnetUsageClient(subscriptionID string) CheckVirtualNetworkSubnetUsageClient
NewCheckVirtualNetworkSubnetUsageClient creates an instance of the CheckVirtualNetworkSubnetUsageClient client.
func NewCheckVirtualNetworkSubnetUsageClientWithBaseURI(baseURI string, subscriptionID string) CheckVirtualNetworkSubnetUsageClient
NewCheckVirtualNetworkSubnetUsageClientWithBaseURI creates an instance of the CheckVirtualNetworkSubnetUsageClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client CheckVirtualNetworkSubnetUsageClient) Execute(ctx context.Context, locationName string, parameters VirtualNetworkSubnetUsageParameter) (result VirtualNetworkSubnetUsageResult, err error)
Execute get virtual network subnet usage for a given vNet resource id. Parameters: locationName - the name of the location. parameters - the required parameters for creating or updating a server.
func (client CheckVirtualNetworkSubnetUsageClient) ExecutePreparer(ctx context.Context, locationName string, parameters VirtualNetworkSubnetUsageParameter) (*http.Request, error)
ExecutePreparer prepares the Execute request.
func (client CheckVirtualNetworkSubnetUsageClient) ExecuteResponder(resp *http.Response) (result VirtualNetworkSubnetUsageResult, err error)
ExecuteResponder handles the response to the Execute request. The method always closes the http.Response Body.
func (client CheckVirtualNetworkSubnetUsageClient) 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.
CloudError an error response from the Batch service.
type CloudError struct { // Error - The resource management error response. Error *ErrorResponse `json:"error,omitempty"` }
Configuration represents a Configuration.
type Configuration struct { autorest.Response `json:"-"` // ConfigurationProperties - The properties of a configuration. *ConfigurationProperties `json:"properties,omitempty"` // SystemData - READ-ONLY; The system metadata relating to this resource. SystemData *SystemData `json:"systemData,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
func (c Configuration) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Configuration.
func (c *Configuration) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Configuration struct.
ConfigurationForBatchUpdate represents a Configuration.
type ConfigurationForBatchUpdate struct { // Name - Name of the configuration. Name *string `json:"name,omitempty"` // ConfigurationForBatchUpdateProperties - The properties can be updated for a configuration. *ConfigurationForBatchUpdateProperties `json:"properties,omitempty"` }
func (cfbu ConfigurationForBatchUpdate) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ConfigurationForBatchUpdate.
func (cfbu *ConfigurationForBatchUpdate) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ConfigurationForBatchUpdate struct.
ConfigurationForBatchUpdateProperties the properties can be updated for a configuration.
type ConfigurationForBatchUpdateProperties struct { // Value - Value of the configuration. Value *string `json:"value,omitempty"` // Source - Source of the configuration. Source *string `json:"source,omitempty"` }
ConfigurationListForBatchUpdate a list of server configurations to update.
type ConfigurationListForBatchUpdate struct { // Value - The list of server configurations. Value *[]ConfigurationForBatchUpdate `json:"value,omitempty"` }
ConfigurationListResult a list of server configurations.
type ConfigurationListResult struct { autorest.Response `json:"-"` // Value - The list of server configurations. Value *[]Configuration `json:"value,omitempty"` // NextLink - The link used to get the next page of operations. NextLink *string `json:"nextLink,omitempty"` }
func (clr ConfigurationListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
ConfigurationListResultIterator provides access to a complete listing of Configuration values.
type ConfigurationListResultIterator struct {
// contains filtered or unexported fields
}
func NewConfigurationListResultIterator(page ConfigurationListResultPage) ConfigurationListResultIterator
Creates a new instance of the ConfigurationListResultIterator type.
func (iter *ConfigurationListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (iter *ConfigurationListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter ConfigurationListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ConfigurationListResultIterator) Response() ConfigurationListResult
Response returns the raw server response from the last page request.
func (iter ConfigurationListResultIterator) Value() Configuration
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
ConfigurationListResultPage contains a page of Configuration values.
type ConfigurationListResultPage struct {
// contains filtered or unexported fields
}
func NewConfigurationListResultPage(cur ConfigurationListResult, getNextPage func(context.Context, ConfigurationListResult) (ConfigurationListResult, error)) ConfigurationListResultPage
Creates a new instance of the ConfigurationListResultPage type.
func (page *ConfigurationListResultPage) Next() error
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. Deprecated: Use NextWithContext() instead.
func (page *ConfigurationListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext 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 (page ConfigurationListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ConfigurationListResultPage) Response() ConfigurationListResult
Response returns the raw server response from the last page request.
func (page ConfigurationListResultPage) Values() []Configuration
Values returns the slice of values for the current page or nil if there are no values.
ConfigurationProperties the properties of a configuration.
type ConfigurationProperties struct { // Value - Value of the configuration. Value *string `json:"value,omitempty"` // Description - READ-ONLY; Description of the configuration. Description *string `json:"description,omitempty"` // DefaultValue - READ-ONLY; Default value of the configuration. DefaultValue *string `json:"defaultValue,omitempty"` // DataType - READ-ONLY; Data type of the configuration. DataType *string `json:"dataType,omitempty"` // AllowedValues - READ-ONLY; Allowed values of the configuration. AllowedValues *string `json:"allowedValues,omitempty"` // Source - Source of the configuration. Possible values include: 'ConfigurationSourceSystemDefault', 'ConfigurationSourceUserOverride' Source ConfigurationSource `json:"source,omitempty"` // IsReadOnly - READ-ONLY; If is the configuration read only. Possible values include: 'IsReadOnlyTrue', 'IsReadOnlyFalse' IsReadOnly IsReadOnly `json:"isReadOnly,omitempty"` // IsConfigPendingRestart - READ-ONLY; If is the configuration pending restart or not. Possible values include: 'IsConfigPendingRestartTrue', 'IsConfigPendingRestartFalse' IsConfigPendingRestart IsConfigPendingRestart `json:"isConfigPendingRestart,omitempty"` // IsDynamicConfig - READ-ONLY; If is the configuration dynamic. Possible values include: 'IsDynamicConfigTrue', 'IsDynamicConfigFalse' IsDynamicConfig IsDynamicConfig `json:"isDynamicConfig,omitempty"` }
func (cp ConfigurationProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ConfigurationProperties.
ConfigurationSource enumerates the values for configuration source.
type ConfigurationSource string
const ( // ConfigurationSourceSystemDefault ... ConfigurationSourceSystemDefault ConfigurationSource = "system-default" // ConfigurationSourceUserOverride ... ConfigurationSourceUserOverride ConfigurationSource = "user-override" )
func PossibleConfigurationSourceValues() []ConfigurationSource
PossibleConfigurationSourceValues returns an array of possible values for the ConfigurationSource const type.
ConfigurationsBatchUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type ConfigurationsBatchUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ConfigurationsClient) (ConfigurationListResult, error) }
func (future *ConfigurationsBatchUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
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 with new business model.
type ConfigurationsClient struct { BaseClient }
func NewConfigurationsClient(subscriptionID string) ConfigurationsClient
NewConfigurationsClient creates an instance of the ConfigurationsClient client.
func NewConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) ConfigurationsClient
NewConfigurationsClientWithBaseURI creates an instance of the ConfigurationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client ConfigurationsClient) BatchUpdate(ctx context.Context, resourceGroupName string, serverName string, parameters ConfigurationListForBatchUpdate) (result ConfigurationsBatchUpdateFuture, err error)
BatchUpdate update a list of configurations in a given server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server. parameters - the parameters for updating a list of server configuration.
func (client ConfigurationsClient) BatchUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters ConfigurationListForBatchUpdate) (*http.Request, error)
BatchUpdatePreparer prepares the BatchUpdate request.
func (client ConfigurationsClient) BatchUpdateResponder(resp *http.Response) (result ConfigurationListResult, err error)
BatchUpdateResponder handles the response to the BatchUpdate request. The method always closes the http.Response Body.
func (client ConfigurationsClient) BatchUpdateSender(req *http.Request) (future ConfigurationsBatchUpdateFuture, err error)
BatchUpdateSender sends the BatchUpdate request. The method will close the http.Response Body if it receives an error.
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. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server. configurationName - the name of the server configuration.
func (client ConfigurationsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, configurationName string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (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 (client ConfigurationsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ConfigurationListResultPage, err error)
ListByServer list all the configurations in a given server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server.
func (client ConfigurationsClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result ConfigurationListResultIterator, err error)
ListByServerComplete enumerates all values, automatically crossing page boundaries as required.
func (client ConfigurationsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
ListByServerPreparer prepares the ListByServer request.
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 (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.
func (client ConfigurationsClient) Update(ctx context.Context, resourceGroupName string, serverName string, configurationName string, parameters Configuration) (result ConfigurationsUpdateFuture, err error)
Update updates a configuration of a server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server. configurationName - the name of the server configuration. parameters - the required parameters for updating a server configuration.
func (client ConfigurationsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, configurationName string, parameters Configuration) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (client ConfigurationsClient) UpdateResponder(resp *http.Response) (result Configuration, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (client ConfigurationsClient) UpdateSender(req *http.Request) (future ConfigurationsUpdateFuture, err error)
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
ConfigurationsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type ConfigurationsUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ConfigurationsClient) (Configuration, error) }
func (future *ConfigurationsUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
CreateMode enumerates the values for create mode.
type CreateMode string
const ( // CreateModeDefault ... CreateModeDefault CreateMode = "Default" // CreateModeGeoRestore ... CreateModeGeoRestore CreateMode = "GeoRestore" // CreateModePointInTimeRestore ... CreateModePointInTimeRestore CreateMode = "PointInTimeRestore" // CreateModeReplica ... CreateModeReplica CreateMode = "Replica" )
func PossibleCreateModeValues() []CreateMode
PossibleCreateModeValues returns an array of possible values for the CreateMode const type.
CreatedByType enumerates the values for created by type.
type CreatedByType string
const ( // CreatedByTypeApplication ... CreatedByTypeApplication CreatedByType = "Application" // CreatedByTypeKey ... CreatedByTypeKey CreatedByType = "Key" // CreatedByTypeManagedIdentity ... CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" // CreatedByTypeUser ... CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.
Database represents a Database.
type Database struct { autorest.Response `json:"-"` // DatabaseProperties - The properties of a database. *DatabaseProperties `json:"properties,omitempty"` // SystemData - READ-ONLY; The system metadata relating to this resource. SystemData *SystemData `json:"systemData,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
func (d Database) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Database.
func (d *Database) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Database struct.
DatabaseListResult a List of databases.
type DatabaseListResult struct { autorest.Response `json:"-"` // Value - The list of databases housed in a server Value *[]Database `json:"value,omitempty"` // NextLink - The link used to get the next page of operations. NextLink *string `json:"nextLink,omitempty"` }
func (dlr DatabaseListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
DatabaseListResultIterator provides access to a complete listing of Database values.
type DatabaseListResultIterator struct {
// contains filtered or unexported fields
}
func NewDatabaseListResultIterator(page DatabaseListResultPage) DatabaseListResultIterator
Creates a new instance of the DatabaseListResultIterator type.
func (iter *DatabaseListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (iter *DatabaseListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter DatabaseListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter DatabaseListResultIterator) Response() DatabaseListResult
Response returns the raw server response from the last page request.
func (iter DatabaseListResultIterator) Value() Database
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
DatabaseListResultPage contains a page of Database values.
type DatabaseListResultPage struct {
// contains filtered or unexported fields
}
func NewDatabaseListResultPage(cur DatabaseListResult, getNextPage func(context.Context, DatabaseListResult) (DatabaseListResult, error)) DatabaseListResultPage
Creates a new instance of the DatabaseListResultPage type.
func (page *DatabaseListResultPage) Next() error
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. Deprecated: Use NextWithContext() instead.
func (page *DatabaseListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext 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 (page DatabaseListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page DatabaseListResultPage) Response() DatabaseListResult
Response returns the raw server response from the last page request.
func (page DatabaseListResultPage) Values() []Database
Values returns the slice of values for the current page or nil if there are no values.
DatabaseProperties the properties of a database.
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"` }
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 with new business model.
type DatabasesClient struct { BaseClient }
func NewDatabasesClient(subscriptionID string) DatabasesClient
NewDatabasesClient creates an instance of the DatabasesClient client.
func NewDatabasesClientWithBaseURI(baseURI string, subscriptionID string) DatabasesClient
NewDatabasesClientWithBaseURI creates an instance of the DatabasesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client DatabasesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters Database) (result DatabasesCreateOrUpdateFuture, err error)
CreateOrUpdate creates a new database or updates an existing database. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server. databaseName - the name of the database. parameters - the required parameters for creating or updating a database.
func (client DatabasesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters Database) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
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 (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 (client DatabasesClient) Delete(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabasesDeleteFuture, err error)
Delete deletes a database. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server. databaseName - the name of the database.
func (client DatabasesClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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 (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 (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result Database, err error)
Get gets information about a database. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server. databaseName - the name of the database.
func (client DatabasesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (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 (client DatabasesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result DatabaseListResultPage, err error)
ListByServer list all the databases in a given server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server.
func (client DatabasesClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result DatabaseListResultIterator, err error)
ListByServerComplete enumerates all values, automatically crossing page boundaries as required.
func (client DatabasesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
ListByServerPreparer prepares the ListByServer request.
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 (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.
DatabasesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type DatabasesCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(DatabasesClient) (Database, error) }
func (future *DatabasesCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
DatabasesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type DatabasesDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(DatabasesClient) (autorest.Response, error) }
func (future *DatabasesDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
DelegatedSubnetUsage delegated subnet usage data.
type DelegatedSubnetUsage struct { // SubnetName - READ-ONLY; name of the subnet SubnetName *string `json:"subnetName,omitempty"` // Usage - READ-ONLY; Number of used delegated subnets Usage *int64 `json:"usage,omitempty"` }
func (dsu DelegatedSubnetUsage) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DelegatedSubnetUsage.
EnableStatusEnum enumerates the values for enable status enum.
type EnableStatusEnum string
const ( // EnableStatusEnumDisabled ... EnableStatusEnumDisabled EnableStatusEnum = "Disabled" // EnableStatusEnumEnabled ... EnableStatusEnumEnabled EnableStatusEnum = "Enabled" )
func PossibleEnableStatusEnumValues() []EnableStatusEnum
PossibleEnableStatusEnumValues returns an array of possible values for the EnableStatusEnum const type.
ErrorAdditionalInfo the resource management error additional info.
type ErrorAdditionalInfo struct { // Type - READ-ONLY; The additional info type. Type *string `json:"type,omitempty"` // Info - READ-ONLY; The additional info. Info interface{} `json:"info,omitempty"` }
func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ErrorAdditionalInfo.
ErrorResponse common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.)
type ErrorResponse struct { // Code - READ-ONLY; The error code. Code *string `json:"code,omitempty"` // Message - READ-ONLY; The error message. Message *string `json:"message,omitempty"` // Target - READ-ONLY; The error target. Target *string `json:"target,omitempty"` // Details - READ-ONLY; The error details. Details *[]ErrorResponse `json:"details,omitempty"` // AdditionalInfo - READ-ONLY; The error additional info. AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` }
func (er ErrorResponse) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ErrorResponse.
FirewallRule represents a server firewall rule.
type FirewallRule struct { autorest.Response `json:"-"` // FirewallRuleProperties - The properties of a firewall rule. *FirewallRuleProperties `json:"properties,omitempty"` // SystemData - READ-ONLY; The system metadata relating to this resource. SystemData *SystemData `json:"systemData,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
func (fr FirewallRule) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for FirewallRule.
func (fr *FirewallRule) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for FirewallRule struct.
FirewallRuleListResult a list of firewall rules.
type FirewallRuleListResult struct { autorest.Response `json:"-"` // Value - The list of firewall rules in a server. Value *[]FirewallRule `json:"value,omitempty"` // NextLink - The link used to get the next page of operations. NextLink *string `json:"nextLink,omitempty"` }
func (frlr FirewallRuleListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
FirewallRuleListResultIterator provides access to a complete listing of FirewallRule values.
type FirewallRuleListResultIterator struct {
// contains filtered or unexported fields
}
func NewFirewallRuleListResultIterator(page FirewallRuleListResultPage) FirewallRuleListResultIterator
Creates a new instance of the FirewallRuleListResultIterator type.
func (iter *FirewallRuleListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (iter *FirewallRuleListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter FirewallRuleListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter FirewallRuleListResultIterator) Response() FirewallRuleListResult
Response returns the raw server response from the last page request.
func (iter FirewallRuleListResultIterator) Value() FirewallRule
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
FirewallRuleListResultPage contains a page of FirewallRule values.
type FirewallRuleListResultPage struct {
// contains filtered or unexported fields
}
func NewFirewallRuleListResultPage(cur FirewallRuleListResult, getNextPage func(context.Context, FirewallRuleListResult) (FirewallRuleListResult, error)) FirewallRuleListResultPage
Creates a new instance of the FirewallRuleListResultPage type.
func (page *FirewallRuleListResultPage) Next() error
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. Deprecated: Use NextWithContext() instead.
func (page *FirewallRuleListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext 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 (page FirewallRuleListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page FirewallRuleListResultPage) Response() FirewallRuleListResult
Response returns the raw server response from the last page request.
func (page FirewallRuleListResultPage) Values() []FirewallRule
Values returns the slice of values for the current page or nil if there are no values.
FirewallRuleProperties the properties of a server firewall rule.
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"` }
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 with new business model.
type FirewallRulesClient struct { BaseClient }
func NewFirewallRulesClient(subscriptionID string) FirewallRulesClient
NewFirewallRulesClient creates an instance of the FirewallRulesClient client.
func NewFirewallRulesClientWithBaseURI(baseURI string, subscriptionID string) FirewallRulesClient
NewFirewallRulesClientWithBaseURI creates an instance of the FirewallRulesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
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. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server. firewallRuleName - the name of the server firewall rule. parameters - the required parameters for creating or updating a firewall rule.
func (client FirewallRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string, parameters FirewallRule) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
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 (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 (client FirewallRulesClient) Delete(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (result FirewallRulesDeleteFuture, err error)
Delete deletes a firewall rule. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server. firewallRuleName - the name of the server firewall rule.
func (client FirewallRulesClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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 (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 (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (result FirewallRule, err error)
Get gets information about a server firewall rule. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server. firewallRuleName - the name of the server firewall rule.
func (client FirewallRulesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (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 (client FirewallRulesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result FirewallRuleListResultPage, err error)
ListByServer list all the firewall rules in a given server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server.
func (client FirewallRulesClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result FirewallRuleListResultIterator, err error)
ListByServerComplete enumerates all values, automatically crossing page boundaries as required.
func (client FirewallRulesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
ListByServerPreparer prepares the ListByServer request.
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 (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.
FirewallRulesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type FirewallRulesCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(FirewallRulesClient) (FirewallRule, error) }
func (future *FirewallRulesCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
FirewallRulesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type FirewallRulesDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(FirewallRulesClient) (autorest.Response, error) }
func (future *FirewallRulesDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
GetPrivateDNSZoneSuffixClient 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 with new business model.
type GetPrivateDNSZoneSuffixClient struct { BaseClient }
func NewGetPrivateDNSZoneSuffixClient(subscriptionID string) GetPrivateDNSZoneSuffixClient
NewGetPrivateDNSZoneSuffixClient creates an instance of the GetPrivateDNSZoneSuffixClient client.
func NewGetPrivateDNSZoneSuffixClientWithBaseURI(baseURI string, subscriptionID string) GetPrivateDNSZoneSuffixClient
NewGetPrivateDNSZoneSuffixClientWithBaseURI creates an instance of the GetPrivateDNSZoneSuffixClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client GetPrivateDNSZoneSuffixClient) Execute(ctx context.Context) (result GetPrivateDNSZoneSuffixResponse, err error)
Execute get private DNS zone suffix in the cloud.
func (client GetPrivateDNSZoneSuffixClient) ExecutePreparer(ctx context.Context) (*http.Request, error)
ExecutePreparer prepares the Execute request.
func (client GetPrivateDNSZoneSuffixClient) ExecuteResponder(resp *http.Response) (result GetPrivateDNSZoneSuffixResponse, err error)
ExecuteResponder handles the response to the Execute request. The method always closes the http.Response Body.
func (client GetPrivateDNSZoneSuffixClient) 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.
GetPrivateDNSZoneSuffixResponse the response of get private dns zone suffix.
type GetPrivateDNSZoneSuffixResponse struct { autorest.Response `json:"-"` // PrivateDNSZoneSuffix - Represents the private DNS zone suffix. PrivateDNSZoneSuffix *string `json:"privateDnsZoneSuffix,omitempty"` }
HighAvailability network related properties of a server
type HighAvailability struct { // Mode - High availability mode for a server. Possible values include: 'HighAvailabilityModeDisabled', 'HighAvailabilityModeZoneRedundant', 'HighAvailabilityModeSameZone' Mode HighAvailabilityMode `json:"mode,omitempty"` // State - READ-ONLY; The state of server high availability. Possible values include: 'HighAvailabilityStateNotEnabled', 'HighAvailabilityStateCreatingStandby', 'HighAvailabilityStateHealthy', 'HighAvailabilityStateFailingOver', 'HighAvailabilityStateRemovingStandby' State HighAvailabilityState `json:"state,omitempty"` // StandbyAvailabilityZone - Availability zone of the standby server. StandbyAvailabilityZone *string `json:"standbyAvailabilityZone,omitempty"` }
func (ha HighAvailability) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for HighAvailability.
HighAvailabilityMode enumerates the values for high availability mode.
type HighAvailabilityMode string
const ( // HighAvailabilityModeDisabled ... HighAvailabilityModeDisabled HighAvailabilityMode = "Disabled" // HighAvailabilityModeSameZone ... HighAvailabilityModeSameZone HighAvailabilityMode = "SameZone" // HighAvailabilityModeZoneRedundant ... HighAvailabilityModeZoneRedundant HighAvailabilityMode = "ZoneRedundant" )
func PossibleHighAvailabilityModeValues() []HighAvailabilityMode
PossibleHighAvailabilityModeValues returns an array of possible values for the HighAvailabilityMode const type.
HighAvailabilityState enumerates the values for high availability state.
type HighAvailabilityState string
const ( // HighAvailabilityStateCreatingStandby ... HighAvailabilityStateCreatingStandby HighAvailabilityState = "CreatingStandby" // HighAvailabilityStateFailingOver ... HighAvailabilityStateFailingOver HighAvailabilityState = "FailingOver" // HighAvailabilityStateHealthy ... HighAvailabilityStateHealthy HighAvailabilityState = "Healthy" // HighAvailabilityStateNotEnabled ... HighAvailabilityStateNotEnabled HighAvailabilityState = "NotEnabled" // HighAvailabilityStateRemovingStandby ... HighAvailabilityStateRemovingStandby HighAvailabilityState = "RemovingStandby" )
func PossibleHighAvailabilityStateValues() []HighAvailabilityState
PossibleHighAvailabilityStateValues returns an array of possible values for the HighAvailabilityState const type.
IsConfigPendingRestart enumerates the values for is config pending restart.
type IsConfigPendingRestart string
const ( // IsConfigPendingRestartFalse ... IsConfigPendingRestartFalse IsConfigPendingRestart = "False" // IsConfigPendingRestartTrue ... IsConfigPendingRestartTrue IsConfigPendingRestart = "True" )
func PossibleIsConfigPendingRestartValues() []IsConfigPendingRestart
PossibleIsConfigPendingRestartValues returns an array of possible values for the IsConfigPendingRestart const type.
IsDynamicConfig enumerates the values for is dynamic config.
type IsDynamicConfig string
const ( // IsDynamicConfigFalse ... IsDynamicConfigFalse IsDynamicConfig = "False" // IsDynamicConfigTrue ... IsDynamicConfigTrue IsDynamicConfig = "True" )
func PossibleIsDynamicConfigValues() []IsDynamicConfig
PossibleIsDynamicConfigValues returns an array of possible values for the IsDynamicConfig const type.
IsReadOnly enumerates the values for is read only.
type IsReadOnly string
const ( // IsReadOnlyFalse ... IsReadOnlyFalse IsReadOnly = "False" // IsReadOnlyTrue ... IsReadOnlyTrue IsReadOnly = "True" )
func PossibleIsReadOnlyValues() []IsReadOnly
PossibleIsReadOnlyValues returns an array of possible values for the IsReadOnly const type.
LocationBasedCapabilitiesClient 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 with new business model.
type LocationBasedCapabilitiesClient struct { BaseClient }
func NewLocationBasedCapabilitiesClient(subscriptionID string) LocationBasedCapabilitiesClient
NewLocationBasedCapabilitiesClient creates an instance of the LocationBasedCapabilitiesClient client.
func NewLocationBasedCapabilitiesClientWithBaseURI(baseURI string, subscriptionID string) LocationBasedCapabilitiesClient
NewLocationBasedCapabilitiesClientWithBaseURI creates an instance of the LocationBasedCapabilitiesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client LocationBasedCapabilitiesClient) List(ctx context.Context, locationName string) (result CapabilitiesListResultPage, err error)
List get capabilities at specified location in a given subscription. Parameters: locationName - the name of the location.
func (client LocationBasedCapabilitiesClient) ListComplete(ctx context.Context, locationName string) (result CapabilitiesListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client LocationBasedCapabilitiesClient) ListPreparer(ctx context.Context, locationName string) (*http.Request, error)
ListPreparer prepares the List request.
func (client LocationBasedCapabilitiesClient) ListResponder(resp *http.Response) (result CapabilitiesListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client LocationBasedCapabilitiesClient) 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.
MaintenanceWindow maintenance window of a server.
type MaintenanceWindow struct { // CustomWindow - indicates whether custom window is enabled or disabled CustomWindow *string `json:"customWindow,omitempty"` // StartHour - start hour for maintenance window StartHour *int32 `json:"startHour,omitempty"` // StartMinute - start minute for maintenance window StartMinute *int32 `json:"startMinute,omitempty"` // DayOfWeek - day of week for maintenance window DayOfWeek *int32 `json:"dayOfWeek,omitempty"` }
NameAvailability represents a resource name availability.
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"` }
NameAvailabilityRequest request from client to check resource name availability.
type NameAvailabilityRequest struct { // Name - Resource name to verify. Name *string `json:"name,omitempty"` // Type - Resource type used for verification. Type *string `json:"type,omitempty"` }
Network network related properties of a server
type Network struct { // PublicNetworkAccess - READ-ONLY; Whether or not public network access is allowed for this server. Value is 'Disabled' when server has VNet integration. Possible values include: 'EnableStatusEnumEnabled', 'EnableStatusEnumDisabled' PublicNetworkAccess EnableStatusEnum `json:"publicNetworkAccess,omitempty"` // DelegatedSubnetResourceID - Delegated subnet resource id used to setup vnet for a server. DelegatedSubnetResourceID *string `json:"delegatedSubnetResourceId,omitempty"` // PrivateDNSZoneResourceID - Private DNS zone resource id. PrivateDNSZoneResourceID *string `json:"privateDnsZoneResourceId,omitempty"` }
func (n Network) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Network.
Operation REST API operation definition.
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. Origin *string `json:"origin,omitempty"` // Properties - Additional descriptions for the operation. Properties map[string]interface{} `json:"properties"` }
func (o Operation) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Operation.
OperationDisplay display metadata associated with the operation.
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"` }
OperationListResult a list of resource provider operations.
type OperationListResult struct { autorest.Response `json:"-"` // Value - Collection of available operation details Value *[]Operation `json:"value,omitempty"` // NextLink - URL client should use to fetch the next page (per server side paging). NextLink *string `json:"nextLink,omitempty"` }
func (olr OperationListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
OperationListResultIterator provides access to a complete listing of Operation values.
type OperationListResultIterator struct {
// contains filtered or unexported fields
}
func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator
Creates a new instance of the OperationListResultIterator type.
func (iter *OperationListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter OperationListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter OperationListResultIterator) Response() OperationListResult
Response returns the raw server response from the last page request.
func (iter OperationListResultIterator) Value() Operation
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
OperationListResultPage contains a page of Operation values.
type OperationListResultPage struct {
// contains filtered or unexported fields
}
func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage
Creates a new instance of the OperationListResultPage type.
func (page *OperationListResultPage) Next() error
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. Deprecated: Use NextWithContext() instead.
func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext 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 (page OperationListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page OperationListResultPage) Response() OperationListResult
Response returns the raw server response from the last page request.
func (page OperationListResultPage) Values() []Operation
Values returns the slice of values for the current page or nil if there are no values.
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 with new business model.
type OperationsClient struct { BaseClient }
func NewOperationsClient(subscriptionID string) OperationsClient
NewOperationsClient creates an instance of the OperationsClient client.
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient
NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)
List lists all of the available REST API operations.
func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
ListPreparer prepares the List request.
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 (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.
ProxyResource the resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
type ProxyResource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
func (pr ProxyResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ProxyResource.
ReplicasClient 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 with new business model.
type ReplicasClient struct { BaseClient }
func NewReplicasClient(subscriptionID string) ReplicasClient
NewReplicasClient creates an instance of the ReplicasClient client.
func NewReplicasClientWithBaseURI(baseURI string, subscriptionID string) ReplicasClient
NewReplicasClientWithBaseURI creates an instance of the ReplicasClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client ReplicasClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ServerListResultPage, err error)
ListByServer list all the replicas for a given server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server.
func (client ReplicasClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result ServerListResultIterator, err error)
ListByServerComplete enumerates all values, automatically crossing page boundaries as required.
func (client ReplicasClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
ListByServerPreparer prepares the ListByServer request.
func (client ReplicasClient) ListByServerResponder(resp *http.Response) (result ServerListResult, err error)
ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.
func (client ReplicasClient) 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.
ReplicationRole enumerates the values for replication role.
type ReplicationRole string
const ( // ReplicationRoleNone ... ReplicationRoleNone ReplicationRole = "None" // ReplicationRoleReplica ... ReplicationRoleReplica ReplicationRole = "Replica" // ReplicationRoleSource ... ReplicationRoleSource ReplicationRole = "Source" )
func PossibleReplicationRoleValues() []ReplicationRole
PossibleReplicationRoleValues returns an array of possible values for the ReplicationRole const type.
Resource common fields that are returned in the response for all Azure Resource Manager resources
type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
func (r Resource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Resource.
Server represents a server.
type Server struct { autorest.Response `json:"-"` // Sku - The SKU (pricing tier) of the server. Sku *Sku `json:"sku,omitempty"` // ServerProperties - Properties of the server. *ServerProperties `json:"properties,omitempty"` // SystemData - READ-ONLY; The system metadata relating to this resource. SystemData *SystemData `json:"systemData,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
func (s Server) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Server.
func (s *Server) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Server struct.
ServerBackup server backup properties
type ServerBackup struct { autorest.Response `json:"-"` // ServerBackupProperties - The properties of a server backup. *ServerBackupProperties `json:"properties,omitempty"` // SystemData - READ-ONLY; The system metadata relating to this resource. SystemData *SystemData `json:"systemData,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
func (sb ServerBackup) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ServerBackup.
func (sb *ServerBackup) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ServerBackup struct.
ServerBackupListResult a list of server backups.
type ServerBackupListResult struct { autorest.Response `json:"-"` // Value - The list of backups of a server. Value *[]ServerBackup `json:"value,omitempty"` // NextLink - The link used to get the next page of operations. NextLink *string `json:"nextLink,omitempty"` }
func (sblr ServerBackupListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
ServerBackupListResultIterator provides access to a complete listing of ServerBackup values.
type ServerBackupListResultIterator struct {
// contains filtered or unexported fields
}
func NewServerBackupListResultIterator(page ServerBackupListResultPage) ServerBackupListResultIterator
Creates a new instance of the ServerBackupListResultIterator type.
func (iter *ServerBackupListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (iter *ServerBackupListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter ServerBackupListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ServerBackupListResultIterator) Response() ServerBackupListResult
Response returns the raw server response from the last page request.
func (iter ServerBackupListResultIterator) Value() ServerBackup
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
ServerBackupListResultPage contains a page of ServerBackup values.
type ServerBackupListResultPage struct {
// contains filtered or unexported fields
}
func NewServerBackupListResultPage(cur ServerBackupListResult, getNextPage func(context.Context, ServerBackupListResult) (ServerBackupListResult, error)) ServerBackupListResultPage
Creates a new instance of the ServerBackupListResultPage type.
func (page *ServerBackupListResultPage) Next() error
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. Deprecated: Use NextWithContext() instead.
func (page *ServerBackupListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext 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 (page ServerBackupListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ServerBackupListResultPage) Response() ServerBackupListResult
Response returns the raw server response from the last page request.
func (page ServerBackupListResultPage) Values() []ServerBackup
Values returns the slice of values for the current page or nil if there are no values.
ServerBackupProperties the properties of a server backup.
type ServerBackupProperties struct { // BackupType - Backup type. BackupType *string `json:"backupType,omitempty"` // CompletedTime - Backup completed time (ISO8601 format). CompletedTime *date.Time `json:"completedTime,omitempty"` // Source - Backup source Source *string `json:"source,omitempty"` }
ServerEditionCapability server edition capabilities.
type ServerEditionCapability struct { // Name - READ-ONLY; Server edition name Name *string `json:"name,omitempty"` // SupportedStorageEditions - READ-ONLY; A list of supported storage editions SupportedStorageEditions *[]StorageEditionCapability `json:"supportedStorageEditions,omitempty"` // SupportedServerVersions - READ-ONLY; A list of supported server versions. SupportedServerVersions *[]ServerVersionCapability `json:"supportedServerVersions,omitempty"` }
func (sec ServerEditionCapability) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ServerEditionCapability.
ServerForUpdate parameters allowed to update for a server.
type ServerForUpdate struct { // Sku - The SKU (pricing tier) of the server. Sku *Sku `json:"sku,omitempty"` // ServerPropertiesForUpdate - The properties that can be updated for a server. *ServerPropertiesForUpdate `json:"properties,omitempty"` // Tags - Application-specific metadata in the form of key-value pairs. Tags map[string]*string `json:"tags"` }
func (sfu ServerForUpdate) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ServerForUpdate.
func (sfu *ServerForUpdate) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ServerForUpdate struct.
ServerListResult a list of servers.
type ServerListResult struct { autorest.Response `json:"-"` // Value - The list of servers Value *[]Server `json:"value,omitempty"` // NextLink - The link used to get the next page of operations. NextLink *string `json:"nextLink,omitempty"` }
func (slr ServerListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
ServerListResultIterator provides access to a complete listing of Server values.
type ServerListResultIterator struct {
// contains filtered or unexported fields
}
func NewServerListResultIterator(page ServerListResultPage) ServerListResultIterator
Creates a new instance of the ServerListResultIterator type.
func (iter *ServerListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (iter *ServerListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (iter ServerListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ServerListResultIterator) Response() ServerListResult
Response returns the raw server response from the last page request.
func (iter ServerListResultIterator) Value() Server
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
ServerListResultPage contains a page of Server values.
type ServerListResultPage struct {
// contains filtered or unexported fields
}
func NewServerListResultPage(cur ServerListResult, getNextPage func(context.Context, ServerListResult) (ServerListResult, error)) ServerListResultPage
Creates a new instance of the ServerListResultPage type.
func (page *ServerListResultPage) Next() error
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. Deprecated: Use NextWithContext() instead.
func (page *ServerListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext 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 (page ServerListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ServerListResultPage) Response() ServerListResult
Response returns the raw server response from the last page request.
func (page ServerListResultPage) Values() []Server
Values returns the slice of values for the current page or nil if there are no values.
ServerProperties the properties of a server.
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"` // AdministratorLoginPassword - The password of the administrator login (required for server creation). AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"` // Version - Server version. Possible values include: 'ServerVersionFiveFullStopSeven', 'ServerVersionEightFullStopZeroFullStopTwoOne' Version ServerVersion `json:"version,omitempty"` // AvailabilityZone - availability Zone information of the server. AvailabilityZone *string `json:"availabilityZone,omitempty"` // CreateMode - The mode to create a new MySQL server. Possible values include: 'CreateModeDefault', 'CreateModePointInTimeRestore', 'CreateModeReplica', 'CreateModeGeoRestore' CreateMode CreateMode `json:"createMode,omitempty"` // SourceServerResourceID - The source MySQL server id. SourceServerResourceID *string `json:"sourceServerResourceId,omitempty"` // RestorePointInTime - Restore point creation time (ISO8601 format), specifying the time to restore from. RestorePointInTime *date.Time `json:"restorePointInTime,omitempty"` // ReplicationRole - The replication role. Possible values include: 'ReplicationRoleNone', 'ReplicationRoleSource', 'ReplicationRoleReplica' ReplicationRole ReplicationRole `json:"replicationRole,omitempty"` // ReplicaCapacity - READ-ONLY; The maximum number of replicas that a primary server can have. ReplicaCapacity *int32 `json:"replicaCapacity,omitempty"` // State - READ-ONLY; The state of a server. Possible values include: 'ServerStateReady', 'ServerStateDropping', 'ServerStateDisabled', 'ServerStateStarting', 'ServerStateStopping', 'ServerStateStopped', 'ServerStateUpdating' State ServerState `json:"state,omitempty"` // FullyQualifiedDomainName - READ-ONLY; The fully qualified domain name of a server. FullyQualifiedDomainName *string `json:"fullyQualifiedDomainName,omitempty"` // Storage - Storage related properties of a server. Storage *Storage `json:"storage,omitempty"` // Backup - Backup related properties of a server. Backup *Backup `json:"backup,omitempty"` // HighAvailability - High availability related properties of a server. HighAvailability *HighAvailability `json:"highAvailability,omitempty"` // Network - Network related properties of a server. Network *Network `json:"network,omitempty"` // MaintenanceWindow - Maintenance window of a server. MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"` }
func (sp ServerProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ServerProperties.
ServerPropertiesForUpdate the properties that can be updated for a server.
type ServerPropertiesForUpdate struct { // AdministratorLoginPassword - The password of the administrator login. AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"` // Storage - Storage related properties of a server. Storage *Storage `json:"storage,omitempty"` // Backup - Backup related properties of a server. Backup *Backup `json:"backup,omitempty"` // HighAvailability - High availability related properties of a server. HighAvailability *HighAvailability `json:"highAvailability,omitempty"` // MaintenanceWindow - Maintenance window of a server. MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"` // ReplicationRole - The replication role of the server. Possible values include: 'ReplicationRoleNone', 'ReplicationRoleSource', 'ReplicationRoleReplica' ReplicationRole ReplicationRole `json:"replicationRole,omitempty"` }
ServerRestartParameter server restart parameters.
type ServerRestartParameter struct { // RestartWithFailover - Whether or not failover to standby server when restarting a server with high availability enabled. Possible values include: 'EnableStatusEnumEnabled', 'EnableStatusEnumDisabled' RestartWithFailover EnableStatusEnum `json:"restartWithFailover,omitempty"` // MaxFailoverSeconds - The maximum allowed failover time in seconds. MaxFailoverSeconds *int32 `json:"maxFailoverSeconds,omitempty"` }
ServerState enumerates the values for server state.
type ServerState string
const ( // ServerStateDisabled ... ServerStateDisabled ServerState = "Disabled" // ServerStateDropping ... ServerStateDropping ServerState = "Dropping" // ServerStateReady ... ServerStateReady ServerState = "Ready" // ServerStateStarting ... ServerStateStarting ServerState = "Starting" // ServerStateStopped ... ServerStateStopped ServerState = "Stopped" // ServerStateStopping ... ServerStateStopping ServerState = "Stopping" // ServerStateUpdating ... ServerStateUpdating ServerState = "Updating" )
func PossibleServerStateValues() []ServerState
PossibleServerStateValues returns an array of possible values for the ServerState const type.
ServerVersion enumerates the values for server version.
type ServerVersion string
const ( // ServerVersionEightFullStopZeroFullStopTwoOne ... ServerVersionEightFullStopZeroFullStopTwoOne ServerVersion = "8.0.21" // ServerVersionFiveFullStopSeven ... ServerVersionFiveFullStopSeven ServerVersion = "5.7" )
func PossibleServerVersionValues() []ServerVersion
PossibleServerVersionValues returns an array of possible values for the ServerVersion const type.
ServerVersionCapability server version capabilities.
type ServerVersionCapability struct { // Name - READ-ONLY; server version Name *string `json:"name,omitempty"` // SupportedSkus - READ-ONLY; A list of supported Skus SupportedSkus *[]SkuCapability `json:"supportedSkus,omitempty"` }
func (svc ServerVersionCapability) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ServerVersionCapability.
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 with new business model.
type ServersClient struct { BaseClient }
func NewServersClient(subscriptionID string) ServersClient
NewServersClient creates an instance of the ServersClient client.
func NewServersClientWithBaseURI(baseURI string, subscriptionID string) ServersClient
NewServersClientWithBaseURI creates an instance of the ServersClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client ServersClient) Create(ctx context.Context, resourceGroupName string, serverName string, parameters Server) (result ServersCreateFuture, err error)
Create creates a new server or updates an existing server. The update action will overwrite the existing server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server. parameters - the required parameters for creating or updating a server.
func (client ServersClient) CreatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters Server) (*http.Request, error)
CreatePreparer prepares the Create request.
func (client ServersClient) CreateResponder(resp *http.Response) (result Server, err error)
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (client ServersClient) CreateSender(req *http.Request) (future ServersCreateFuture, err error)
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (client ServersClient) Delete(ctx context.Context, resourceGroupName string, serverName string) (result ServersDeleteFuture, err error)
Delete deletes a server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server.
func (client ServersClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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 (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 (client ServersClient) Failover(ctx context.Context, resourceGroupName string, serverName string) (result ServersFailoverFuture, err error)
Failover manual failover a server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server.
func (client ServersClient) FailoverPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
FailoverPreparer prepares the Failover request.
func (client ServersClient) FailoverResponder(resp *http.Response) (result autorest.Response, err error)
FailoverResponder handles the response to the Failover request. The method always closes the http.Response Body.
func (client ServersClient) FailoverSender(req *http.Request) (future ServersFailoverFuture, err error)
FailoverSender sends the Failover request. The method will close the http.Response Body if it receives an error.
func (client ServersClient) Get(ctx context.Context, resourceGroupName string, serverName string) (result Server, err error)
Get gets information about a server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server.
func (client ServersClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (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 (client ServersClient) List(ctx context.Context) (result ServerListResultPage, err error)
List list all the servers in a given subscription.
func (client ServersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ServerListResultPage, err error)
ListByResourceGroup list all the servers in a given resource group. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive.
func (client ServersClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ServerListResultIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (client ServersClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
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 (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 (client ServersClient) ListComplete(ctx context.Context) (result ServerListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client ServersClient) ListPreparer(ctx context.Context) (*http.Request, error)
ListPreparer prepares the List request.
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 (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 (client ServersClient) Restart(ctx context.Context, resourceGroupName string, serverName string, parameters ServerRestartParameter) (result ServersRestartFuture, err error)
Restart restarts a server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server. parameters - the required parameters for restarting a server.
func (client ServersClient) RestartPreparer(ctx context.Context, resourceGroupName string, serverName string, parameters ServerRestartParameter) (*http.Request, error)
RestartPreparer prepares the Restart request.
func (client ServersClient) RestartResponder(resp *http.Response) (result autorest.Response, err error)
RestartResponder handles the response to the Restart request. The method always closes the http.Response Body.
func (client ServersClient) RestartSender(req *http.Request) (future ServersRestartFuture, err error)
RestartSender sends the Restart request. The method will close the http.Response Body if it receives an error.
func (client ServersClient) Start(ctx context.Context, resourceGroupName string, serverName string) (result ServersStartFuture, err error)
Start starts a server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server.
func (client ServersClient) StartPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
StartPreparer prepares the Start request.
func (client ServersClient) StartResponder(resp *http.Response) (result autorest.Response, err error)
StartResponder handles the response to the Start request. The method always closes the http.Response Body.
func (client ServersClient) StartSender(req *http.Request) (future ServersStartFuture, err error)
StartSender sends the Start request. The method will close the http.Response Body if it receives an error.
func (client ServersClient) Stop(ctx context.Context, resourceGroupName string, serverName string) (result ServersStopFuture, err error)
Stop stops a server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server.
func (client ServersClient) StopPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
StopPreparer prepares the Stop request.
func (client ServersClient) StopResponder(resp *http.Response) (result autorest.Response, err error)
StopResponder handles the response to the Stop request. The method always closes the http.Response Body.
func (client ServersClient) StopSender(req *http.Request) (future ServersStopFuture, err error)
StopSender sends the Stop request. The method will close the http.Response Body if it receives an error.
func (client ServersClient) Update(ctx context.Context, resourceGroupName string, serverName string, parameters ServerForUpdate) (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. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server. parameters - the required parameters for updating a server.
func (client ServersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters ServerForUpdate) (*http.Request, error)
UpdatePreparer prepares the Update request.
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 (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.
ServersCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type ServersCreateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ServersClient) (Server, error) }
func (future *ServersCreateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
ServersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type ServersDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ServersClient) (autorest.Response, error) }
func (future *ServersDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
ServersFailoverFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type ServersFailoverFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ServersClient) (autorest.Response, error) }
func (future *ServersFailoverFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
ServersRestartFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type ServersRestartFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ServersClient) (autorest.Response, error) }
func (future *ServersRestartFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
ServersStartFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type ServersStartFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ServersClient) (autorest.Response, error) }
func (future *ServersStartFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
ServersStopFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type ServersStopFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ServersClient) (autorest.Response, error) }
func (future *ServersStopFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
ServersUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type ServersUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ServersClient) (Server, error) }
func (future *ServersUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
Sku billing information related properties of a server.
type Sku struct { // Name - The name of the sku, e.g. Standard_D32s_v3. Name *string `json:"name,omitempty"` // Tier - The tier of the particular SKU, e.g. GeneralPurpose. Possible values include: 'SkuTierBurstable', 'SkuTierGeneralPurpose', 'SkuTierMemoryOptimized' Tier SkuTier `json:"tier,omitempty"` }
SkuCapability sku capability
type SkuCapability struct { // Name - READ-ONLY; vCore name Name *string `json:"name,omitempty"` // VCores - READ-ONLY; supported vCores VCores *int64 `json:"vCores,omitempty"` // SupportedIops - READ-ONLY; supported IOPS SupportedIops *int64 `json:"supportedIops,omitempty"` // SupportedMemoryPerVCoreMB - READ-ONLY; supported memory per vCore in MB SupportedMemoryPerVCoreMB *int64 `json:"supportedMemoryPerVCoreMB,omitempty"` }
func (sc SkuCapability) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SkuCapability.
SkuTier enumerates the values for sku tier.
type SkuTier string
const ( // SkuTierBurstable ... SkuTierBurstable SkuTier = "Burstable" // SkuTierGeneralPurpose ... SkuTierGeneralPurpose SkuTier = "GeneralPurpose" // SkuTierMemoryOptimized ... SkuTierMemoryOptimized SkuTier = "MemoryOptimized" )
func PossibleSkuTierValues() []SkuTier
PossibleSkuTierValues returns an array of possible values for the SkuTier const type.
Storage storage Profile properties of a server
type Storage struct { // StorageSizeGB - Max storage size allowed for a server. StorageSizeGB *int32 `json:"storageSizeGB,omitempty"` // Iops - Storage IOPS for a server. Iops *int32 `json:"iops,omitempty"` // AutoGrow - Enable Storage Auto Grow or not. Possible values include: 'EnableStatusEnumEnabled', 'EnableStatusEnumDisabled' AutoGrow EnableStatusEnum `json:"autoGrow,omitempty"` // StorageSku - READ-ONLY; The sku name of the server storage. StorageSku *string `json:"storageSku,omitempty"` }
func (s Storage) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Storage.
StorageEditionCapability storage edition capability
type StorageEditionCapability struct { // Name - READ-ONLY; storage edition name Name *string `json:"name,omitempty"` // MinStorageSize - READ-ONLY; The minimal supported storage size. MinStorageSize *int64 `json:"minStorageSize,omitempty"` // MaxStorageSize - READ-ONLY; The maximum supported storage size. MaxStorageSize *int64 `json:"maxStorageSize,omitempty"` // MinBackupRetentionDays - READ-ONLY; Minimal backup retention days MinBackupRetentionDays *int64 `json:"minBackupRetentionDays,omitempty"` // MaxBackupRetentionDays - READ-ONLY; Maximum backup retention days MaxBackupRetentionDays *int64 `json:"maxBackupRetentionDays,omitempty"` }
func (sec StorageEditionCapability) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for StorageEditionCapability.
SystemData metadata pertaining to creation and last modification of the resource.
type SystemData struct { // CreatedBy - The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` // CreatedByType - The type of identity that created the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' CreatedByType CreatedByType `json:"createdByType,omitempty"` // CreatedAt - The timestamp of resource creation (UTC). CreatedAt *date.Time `json:"createdAt,omitempty"` // LastModifiedBy - The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"` // LastModifiedAt - The timestamp of resource last modification (UTC) LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"` }
TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
type TrackedResource struct { // Tags - Resource tags. Tags map[string]*string `json:"tags"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
func (tr TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TrackedResource.
VirtualNetworkSubnetUsageParameter virtual network subnet usage parameter
type VirtualNetworkSubnetUsageParameter struct { // VirtualNetworkResourceID - Virtual network resource id. VirtualNetworkResourceID *string `json:"virtualNetworkResourceId,omitempty"` }
VirtualNetworkSubnetUsageResult virtual network subnet usage data.
type VirtualNetworkSubnetUsageResult struct { autorest.Response `json:"-"` // DelegatedSubnetsUsage - READ-ONLY; A list of delegated subnet usage DelegatedSubnetsUsage *[]DelegatedSubnetUsage `json:"delegatedSubnetsUsage,omitempty"` }
func (vnsur VirtualNetworkSubnetUsageResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for VirtualNetworkSubnetUsageResult.
Name | Synopsis |
---|---|
.. | |
mysqlflexibleserversapi | Deprecated: Please note, this package has been deprecated. |