Documentation ¶
Overview ¶
Package mysqlflexibleservers implements the Azure ARM Mysqlflexibleservers service API version 2020-07-01-privatepreview.
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.
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type AzureEntityResource
- type BaseClient
- type CheckNameAvailabilityClient
- func (client CheckNameAvailabilityClient) Execute(ctx context.Context, nameAvailabilityRequest NameAvailabilityRequest) (result NameAvailability, err error)
- func (client CheckNameAvailabilityClient) ExecutePreparer(ctx context.Context, nameAvailabilityRequest NameAvailabilityRequest) (*http.Request, error)
- func (client CheckNameAvailabilityClient) ExecuteResponder(resp *http.Response) (result NameAvailability, err error)
- func (client CheckNameAvailabilityClient) ExecuteSender(req *http.Request) (*http.Response, error)
- type CloudError
- type Configuration
- type ConfigurationListResult
- type ConfigurationListResultIterator
- func (iter *ConfigurationListResultIterator) Next() error
- func (iter *ConfigurationListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter ConfigurationListResultIterator) NotDone() bool
- func (iter ConfigurationListResultIterator) Response() ConfigurationListResult
- func (iter ConfigurationListResultIterator) Value() Configuration
- type ConfigurationListResultPage
- func (page *ConfigurationListResultPage) Next() error
- func (page *ConfigurationListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page ConfigurationListResultPage) NotDone() bool
- func (page ConfigurationListResultPage) Response() ConfigurationListResult
- func (page ConfigurationListResultPage) Values() []Configuration
- type ConfigurationProperties
- type ConfigurationsClient
- func (client ConfigurationsClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (result Configuration, err error)
- func (client ConfigurationsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ConfigurationsClient) GetResponder(resp *http.Response) (result Configuration, err error)
- func (client ConfigurationsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ConfigurationsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ConfigurationListResultPage, err error)
- func (client ConfigurationsClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result ConfigurationListResultIterator, err error)
- func (client ConfigurationsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client ConfigurationsClient) ListByServerResponder(resp *http.Response) (result ConfigurationListResult, err error)
- func (client ConfigurationsClient) ListByServerSender(req *http.Request) (*http.Response, error)
- func (client ConfigurationsClient) Update(ctx context.Context, resourceGroupName string, serverName string, ...) (result ConfigurationsUpdateFuture, err error)
- func (client ConfigurationsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ConfigurationsClient) UpdateResponder(resp *http.Response) (result Configuration, err error)
- func (client ConfigurationsClient) UpdateSender(req *http.Request) (future ConfigurationsUpdateFuture, err error)
- type ConfigurationsUpdateFuture
- type CreateMode
- type Database
- type DatabaseListResult
- type DatabaseListResultIterator
- func (iter *DatabaseListResultIterator) Next() error
- func (iter *DatabaseListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter DatabaseListResultIterator) NotDone() bool
- func (iter DatabaseListResultIterator) Response() DatabaseListResult
- func (iter DatabaseListResultIterator) Value() Database
- type DatabaseListResultPage
- func (page *DatabaseListResultPage) Next() error
- func (page *DatabaseListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page DatabaseListResultPage) NotDone() bool
- func (page DatabaseListResultPage) Response() DatabaseListResult
- func (page DatabaseListResultPage) Values() []Database
- type DatabaseProperties
- type DatabasesClient
- func (client DatabasesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (result DatabasesCreateOrUpdateFuture, err error)
- func (client DatabasesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabasesClient) CreateOrUpdateResponder(resp *http.Response) (result Database, err error)
- func (client DatabasesClient) CreateOrUpdateSender(req *http.Request) (future DatabasesCreateOrUpdateFuture, err error)
- func (client DatabasesClient) Delete(ctx context.Context, resourceGroupName string, serverName string, ...) (result DatabasesDeleteFuture, err error)
- func (client DatabasesClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabasesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client DatabasesClient) DeleteSender(req *http.Request) (future DatabasesDeleteFuture, err error)
- func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (result Database, err error)
- func (client DatabasesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client DatabasesClient) GetResponder(resp *http.Response) (result Database, err error)
- func (client DatabasesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client DatabasesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result DatabaseListResultPage, err error)
- func (client DatabasesClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result DatabaseListResultIterator, err error)
- func (client DatabasesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client DatabasesClient) ListByServerResponder(resp *http.Response) (result DatabaseListResult, err error)
- func (client DatabasesClient) ListByServerSender(req *http.Request) (*http.Response, error)
- type DatabasesCreateOrUpdateFuture
- type DatabasesDeleteFuture
- type ErrorAdditionalInfo
- type ErrorResponse
- type FirewallRule
- type FirewallRuleListResult
- type FirewallRuleListResultIterator
- func (iter *FirewallRuleListResultIterator) Next() error
- func (iter *FirewallRuleListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter FirewallRuleListResultIterator) NotDone() bool
- func (iter FirewallRuleListResultIterator) Response() FirewallRuleListResult
- func (iter FirewallRuleListResultIterator) Value() FirewallRule
- type FirewallRuleListResultPage
- func (page *FirewallRuleListResultPage) Next() error
- func (page *FirewallRuleListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page FirewallRuleListResultPage) NotDone() bool
- func (page FirewallRuleListResultPage) Response() FirewallRuleListResult
- func (page FirewallRuleListResultPage) Values() []FirewallRule
- type FirewallRuleProperties
- type FirewallRulesClient
- func (client FirewallRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (result FirewallRulesCreateOrUpdateFuture, err error)
- func (client FirewallRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client FirewallRulesClient) CreateOrUpdateResponder(resp *http.Response) (result FirewallRule, err error)
- func (client FirewallRulesClient) CreateOrUpdateSender(req *http.Request) (future FirewallRulesCreateOrUpdateFuture, err error)
- func (client FirewallRulesClient) Delete(ctx context.Context, resourceGroupName string, serverName string, ...) (result FirewallRulesDeleteFuture, err error)
- func (client FirewallRulesClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client FirewallRulesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client FirewallRulesClient) DeleteSender(req *http.Request) (future FirewallRulesDeleteFuture, err error)
- func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (result FirewallRule, err error)
- func (client FirewallRulesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client FirewallRulesClient) GetResponder(resp *http.Response) (result FirewallRule, err error)
- func (client FirewallRulesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client FirewallRulesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result FirewallRuleListResultPage, err error)
- func (client FirewallRulesClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result FirewallRuleListResultIterator, err error)
- func (client FirewallRulesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client FirewallRulesClient) ListByServerResponder(resp *http.Response) (result FirewallRuleListResult, err error)
- func (client FirewallRulesClient) ListByServerSender(req *http.Request) (*http.Response, error)
- type FirewallRulesCreateOrUpdateFuture
- type FirewallRulesDeleteFuture
- type Identity
- type InfrastructureEncryptionEnum
- type IsConfigPendingRestart
- type IsDynamicConfig
- type IsReadOnly
- type MaintenanceWindow
- type MaintenanceWindowListResult
- type MaintenanceWindowListResultIterator
- func (iter *MaintenanceWindowListResultIterator) Next() error
- func (iter *MaintenanceWindowListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter MaintenanceWindowListResultIterator) NotDone() bool
- func (iter MaintenanceWindowListResultIterator) Response() MaintenanceWindowListResult
- func (iter MaintenanceWindowListResultIterator) Value() MaintenanceWindow
- type MaintenanceWindowListResultPage
- func (page *MaintenanceWindowListResultPage) Next() error
- func (page *MaintenanceWindowListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page MaintenanceWindowListResultPage) NotDone() bool
- func (page MaintenanceWindowListResultPage) Response() MaintenanceWindowListResult
- func (page MaintenanceWindowListResultPage) Values() []MaintenanceWindow
- type MaintenanceWindowProperties
- type MaintenanceWindowsClient
- func (client MaintenanceWindowsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, ...) (result MaintenanceWindowsCreateOrUpdateFuture, err error)
- func (client MaintenanceWindowsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client MaintenanceWindowsClient) CreateOrUpdateResponder(resp *http.Response) (result MaintenanceWindow, err error)
- func (client MaintenanceWindowsClient) CreateOrUpdateSender(req *http.Request) (future MaintenanceWindowsCreateOrUpdateFuture, err error)
- func (client MaintenanceWindowsClient) Delete(ctx context.Context, resourceGroupName string, serverName string, ...) (result MaintenanceWindowsDeleteFuture, err error)
- func (client MaintenanceWindowsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client MaintenanceWindowsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client MaintenanceWindowsClient) DeleteSender(req *http.Request) (future MaintenanceWindowsDeleteFuture, err error)
- func (client MaintenanceWindowsClient) Get(ctx context.Context, resourceGroupName string, serverName string, ...) (result MaintenanceWindow, err error)
- func (client MaintenanceWindowsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client MaintenanceWindowsClient) GetResponder(resp *http.Response) (result MaintenanceWindow, err error)
- func (client MaintenanceWindowsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client MaintenanceWindowsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result MaintenanceWindowListResultPage, err error)
- func (client MaintenanceWindowsClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result MaintenanceWindowListResultIterator, err error)
- func (client MaintenanceWindowsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client MaintenanceWindowsClient) ListByServerResponder(resp *http.Response) (result MaintenanceWindowListResult, err error)
- func (client MaintenanceWindowsClient) ListByServerSender(req *http.Request) (*http.Response, error)
- type MaintenanceWindowsCreateOrUpdateFuture
- type MaintenanceWindowsDeleteFuture
- type NameAvailability
- type NameAvailabilityRequest
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationOrigin
- type OperationsClient
- func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error)
- func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
- func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
- type Plan
- type ProxyResource
- type PublicNetworkAccessEnum
- type ReplicasClient
- func (client ReplicasClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result ServerListResultPage, err error)
- func (client ReplicasClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result ServerListResultIterator, err error)
- func (client ReplicasClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client ReplicasClient) ListByServerResponder(resp *http.Response) (result ServerListResult, err error)
- func (client ReplicasClient) ListByServerSender(req *http.Request) (*http.Response, error)
- type Resource
- type ResourceIdentityType
- type ResourceModelWithAllowedPropertySet
- type ResourceModelWithAllowedPropertySetIdentity
- type ResourceModelWithAllowedPropertySetPlan
- type ResourceModelWithAllowedPropertySetSku
- type Server
- type ServerForUpdate
- type ServerHAState
- type ServerListResult
- type ServerListResultIterator
- func (iter *ServerListResultIterator) Next() error
- func (iter *ServerListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter ServerListResultIterator) NotDone() bool
- func (iter ServerListResultIterator) Response() ServerListResult
- func (iter ServerListResultIterator) Value() Server
- type ServerListResultPage
- type ServerProperties
- type ServerPropertiesForUpdate
- type ServerState
- type ServerVersion
- type ServersClient
- func (client ServersClient) Create(ctx context.Context, resourceGroupName string, serverName string, ...) (result ServersCreateFuture, err error)
- func (client ServersClient) CreatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ServersClient) CreateResponder(resp *http.Response) (result Server, err error)
- func (client ServersClient) CreateSender(req *http.Request) (future ServersCreateFuture, err error)
- func (client ServersClient) Delete(ctx context.Context, resourceGroupName string, serverName string) (result ServersDeleteFuture, err error)
- func (client ServersClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client ServersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ServersClient) DeleteSender(req *http.Request) (future ServersDeleteFuture, err error)
- func (client ServersClient) Get(ctx context.Context, resourceGroupName string, serverName string) (result Server, err error)
- func (client ServersClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client ServersClient) GetResponder(resp *http.Response) (result Server, err error)
- func (client ServersClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ServersClient) List(ctx context.Context) (result ServerListResultPage, err error)
- func (client ServersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ServerListResultPage, err error)
- func (client ServersClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ServerListResultIterator, err error)
- func (client ServersClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
- func (client ServersClient) ListByResourceGroupResponder(resp *http.Response) (result ServerListResult, err error)
- func (client ServersClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client ServersClient) ListComplete(ctx context.Context) (result ServerListResultIterator, err error)
- func (client ServersClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client ServersClient) ListResponder(resp *http.Response) (result ServerListResult, err error)
- func (client ServersClient) ListSender(req *http.Request) (*http.Response, error)
- func (client ServersClient) Restart(ctx context.Context, resourceGroupName string, serverName string) (result ServersRestartFuture, err error)
- func (client ServersClient) RestartPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client ServersClient) RestartResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ServersClient) RestartSender(req *http.Request) (future ServersRestartFuture, err error)
- func (client ServersClient) Start(ctx context.Context, resourceGroupName string, serverName string) (result ServersStartFuture, err error)
- func (client ServersClient) StartPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client ServersClient) StartResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ServersClient) StartSender(req *http.Request) (future ServersStartFuture, err error)
- func (client ServersClient) Stop(ctx context.Context, resourceGroupName string, serverName string) (result ServersStopFuture, err error)
- func (client ServersClient) StopPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
- func (client ServersClient) StopResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ServersClient) StopSender(req *http.Request) (future ServersStopFuture, err error)
- func (client ServersClient) Update(ctx context.Context, resourceGroupName string, serverName string, ...) (result ServersUpdateFuture, err error)
- func (client ServersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, ...) (*http.Request, error)
- func (client ServersClient) UpdateResponder(resp *http.Response) (result Server, err error)
- func (client ServersClient) UpdateSender(req *http.Request) (future ServersUpdateFuture, err error)
- type ServersCreateFuture
- type ServersDeleteFuture
- type ServersRestartFuture
- type ServersStartFuture
- type ServersStopFuture
- type ServersUpdateFuture
- type Sku
- type SkuTier
- type SslEnforcementEnum
- type StorageAutogrow
- type StorageProfile
- type TrackedResource
- type VnetInjArgs
Constants ¶
const (
// DefaultBaseURI is the default URI used for the service Mysqlflexibleservers
DefaultBaseURI = "https://management.azure.com"
)
Variables ¶
This section is empty.
Functions ¶
func UserAgent ¶
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version ¶
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
Types ¶
type AzureEntityResource ¶
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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` }
AzureEntityResource the resource model definition for a Azure Resource Manager resource with an etag.
type BaseClient ¶
BaseClient is the base client for Mysqlflexibleservers.
func New ¶
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
func NewWithBaseURI ¶
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
type CheckNameAvailabilityClient ¶
type CheckNameAvailabilityClient struct {
BaseClient
}
CheckNameAvailabilityClient is the the Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model.
func NewCheckNameAvailabilityClient ¶
func NewCheckNameAvailabilityClient(subscriptionID string) CheckNameAvailabilityClient
NewCheckNameAvailabilityClient creates an instance of the CheckNameAvailabilityClient client.
func NewCheckNameAvailabilityClientWithBaseURI ¶
func NewCheckNameAvailabilityClientWithBaseURI(baseURI string, subscriptionID string) CheckNameAvailabilityClient
NewCheckNameAvailabilityClientWithBaseURI creates an instance of the CheckNameAvailabilityClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (CheckNameAvailabilityClient) Execute ¶
func (client CheckNameAvailabilityClient) Execute(ctx context.Context, nameAvailabilityRequest NameAvailabilityRequest) (result NameAvailability, err error)
Execute check the availability of name for server Parameters: nameAvailabilityRequest - the required parameters for checking if server name is available.
func (CheckNameAvailabilityClient) ExecutePreparer ¶
func (client CheckNameAvailabilityClient) ExecutePreparer(ctx context.Context, nameAvailabilityRequest NameAvailabilityRequest) (*http.Request, error)
ExecutePreparer prepares the Execute request.
func (CheckNameAvailabilityClient) ExecuteResponder ¶
func (client CheckNameAvailabilityClient) ExecuteResponder(resp *http.Response) (result NameAvailability, err error)
ExecuteResponder handles the response to the Execute request. The method always closes the http.Response Body.
func (CheckNameAvailabilityClient) ExecuteSender ¶
ExecuteSender sends the Execute request. The method will close the http.Response Body if it receives an error.
type CloudError ¶
type CloudError struct { // Error - The resource management error response. Error *ErrorResponse `json:"error,omitempty"` }
CloudError an error response from the Batch service.
type Configuration ¶
type Configuration struct { autorest.Response `json:"-"` // ConfigurationProperties - The properties of a configuration. *ConfigurationProperties `json:"properties,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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` }
Configuration represents a Configuration.
func (Configuration) MarshalJSON ¶
func (c Configuration) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Configuration.
func (*Configuration) UnmarshalJSON ¶
func (c *Configuration) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for Configuration struct.
type ConfigurationListResult ¶
type ConfigurationListResult struct { autorest.Response `json:"-"` // Value - The list of server configurations. Value *[]Configuration `json:"value,omitempty"` // NextLink - The link used to get the next page of operations. NextLink *string `json:"nextLink,omitempty"` }
ConfigurationListResult a list of server configurations.
func (ConfigurationListResult) IsEmpty ¶
func (clr ConfigurationListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type ConfigurationListResultIterator ¶
type ConfigurationListResultIterator struct {
// contains filtered or unexported fields
}
ConfigurationListResultIterator provides access to a complete listing of Configuration values.
func NewConfigurationListResultIterator ¶
func NewConfigurationListResultIterator(page ConfigurationListResultPage) ConfigurationListResultIterator
Creates a new instance of the ConfigurationListResultIterator type.
func (*ConfigurationListResultIterator) Next ¶
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 (*ConfigurationListResultIterator) NextWithContext ¶
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 (ConfigurationListResultIterator) NotDone ¶
func (iter ConfigurationListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (ConfigurationListResultIterator) Response ¶
func (iter ConfigurationListResultIterator) Response() ConfigurationListResult
Response returns the raw server response from the last page request.
func (ConfigurationListResultIterator) Value ¶
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.
type ConfigurationListResultPage ¶
type ConfigurationListResultPage struct {
// contains filtered or unexported fields
}
ConfigurationListResultPage contains a page of Configuration values.
func NewConfigurationListResultPage ¶
func NewConfigurationListResultPage(getNextPage func(context.Context, ConfigurationListResult) (ConfigurationListResult, error)) ConfigurationListResultPage
Creates a new instance of the ConfigurationListResultPage type.
func (*ConfigurationListResultPage) Next ¶
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 (*ConfigurationListResultPage) NextWithContext ¶
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 (ConfigurationListResultPage) NotDone ¶
func (page ConfigurationListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (ConfigurationListResultPage) Response ¶
func (page ConfigurationListResultPage) Response() ConfigurationListResult
Response returns the raw server response from the last page request.
func (ConfigurationListResultPage) Values ¶
func (page ConfigurationListResultPage) Values() []Configuration
Values returns the slice of values for the current page or nil if there are no values.
type ConfigurationProperties ¶
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. Source *string `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: 'True', 'False' IsConfigPendingRestart IsConfigPendingRestart `json:"isConfigPendingRestart,omitempty"` // IsDynamicConfig - READ-ONLY; If is the configuration dynamic. Possible values include: 'IsDynamicConfigTrue', 'IsDynamicConfigFalse' IsDynamicConfig IsDynamicConfig `json:"isDynamicConfig,omitempty"` }
ConfigurationProperties the properties of a configuration.
func (ConfigurationProperties) MarshalJSON ¶
func (cp ConfigurationProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ConfigurationProperties.
type ConfigurationsClient ¶
type ConfigurationsClient struct {
BaseClient
}
ConfigurationsClient is the the Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model.
func NewConfigurationsClient ¶
func NewConfigurationsClient(subscriptionID string) ConfigurationsClient
NewConfigurationsClient creates an instance of the ConfigurationsClient client.
func NewConfigurationsClientWithBaseURI ¶
func NewConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) ConfigurationsClient
NewConfigurationsClientWithBaseURI creates an instance of the ConfigurationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (ConfigurationsClient) Get ¶
func (client ConfigurationsClient) Get(ctx context.Context, resourceGroupName string, serverName string, configurationName string) (result Configuration, err error)
Get gets information about a configuration of server. 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 (ConfigurationsClient) GetPreparer ¶
func (client ConfigurationsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, configurationName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ConfigurationsClient) GetResponder ¶
func (client ConfigurationsClient) GetResponder(resp *http.Response) (result Configuration, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ConfigurationsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ConfigurationsClient) ListByServer ¶
func (client ConfigurationsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result 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 (ConfigurationsClient) ListByServerComplete ¶
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 (ConfigurationsClient) ListByServerPreparer ¶
func (client ConfigurationsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
ListByServerPreparer prepares the ListByServer request.
func (ConfigurationsClient) ListByServerResponder ¶
func (client ConfigurationsClient) ListByServerResponder(resp *http.Response) (result ConfigurationListResult, err error)
ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.
func (ConfigurationsClient) ListByServerSender ¶
ListByServerSender sends the ListByServer request. The method will close the http.Response Body if it receives an error.
func (ConfigurationsClient) Update ¶
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 (ConfigurationsClient) UpdatePreparer ¶
func (client ConfigurationsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, configurationName string, parameters Configuration) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (ConfigurationsClient) UpdateResponder ¶
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 (ConfigurationsClient) UpdateSender ¶
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.
type ConfigurationsUpdateFuture ¶
ConfigurationsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ConfigurationsUpdateFuture) Result ¶
func (future *ConfigurationsUpdateFuture) Result(client ConfigurationsClient) (c Configuration, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type CreateMode ¶
type CreateMode string
CreateMode enumerates the values for create mode.
const ( // Default ... Default CreateMode = "Default" // PointInTimeRestore ... PointInTimeRestore CreateMode = "PointInTimeRestore" // Replica ... Replica CreateMode = "Replica" )
func PossibleCreateModeValues ¶
func PossibleCreateModeValues() []CreateMode
PossibleCreateModeValues returns an array of possible values for the CreateMode const type.
type Database ¶
type Database struct { autorest.Response `json:"-"` // DatabaseProperties - The properties of a database. *DatabaseProperties `json:"properties,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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` }
Database represents a Database.
func (Database) MarshalJSON ¶
MarshalJSON is the custom marshaler for Database.
func (*Database) UnmarshalJSON ¶
UnmarshalJSON is the custom unmarshaler for Database struct.
type DatabaseListResult ¶
type DatabaseListResult struct { autorest.Response `json:"-"` // Value - The list of databases housed in a server Value *[]Database `json:"value,omitempty"` // NextLink - The link used to get the next page of operations. NextLink *string `json:"nextLink,omitempty"` }
DatabaseListResult a List of databases.
func (DatabaseListResult) IsEmpty ¶
func (dlr DatabaseListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type DatabaseListResultIterator ¶
type DatabaseListResultIterator struct {
// contains filtered or unexported fields
}
DatabaseListResultIterator provides access to a complete listing of Database values.
func NewDatabaseListResultIterator ¶
func NewDatabaseListResultIterator(page DatabaseListResultPage) DatabaseListResultIterator
Creates a new instance of the DatabaseListResultIterator type.
func (*DatabaseListResultIterator) Next ¶
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 (*DatabaseListResultIterator) NextWithContext ¶
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 (DatabaseListResultIterator) NotDone ¶
func (iter DatabaseListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (DatabaseListResultIterator) Response ¶
func (iter DatabaseListResultIterator) Response() DatabaseListResult
Response returns the raw server response from the last page request.
func (DatabaseListResultIterator) Value ¶
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.
type DatabaseListResultPage ¶
type DatabaseListResultPage struct {
// contains filtered or unexported fields
}
DatabaseListResultPage contains a page of Database values.
func NewDatabaseListResultPage ¶
func NewDatabaseListResultPage(getNextPage func(context.Context, DatabaseListResult) (DatabaseListResult, error)) DatabaseListResultPage
Creates a new instance of the DatabaseListResultPage type.
func (*DatabaseListResultPage) Next ¶
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 (*DatabaseListResultPage) NextWithContext ¶
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 (DatabaseListResultPage) NotDone ¶
func (page DatabaseListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (DatabaseListResultPage) Response ¶
func (page DatabaseListResultPage) Response() DatabaseListResult
Response returns the raw server response from the last page request.
func (DatabaseListResultPage) Values ¶
func (page DatabaseListResultPage) Values() []Database
Values returns the slice of values for the current page or nil if there are no values.
type DatabaseProperties ¶
type DatabaseProperties struct { // Charset - The charset of the database. Charset *string `json:"charset,omitempty"` // Collation - The collation of the database. Collation *string `json:"collation,omitempty"` }
DatabaseProperties the properties of a database.
type DatabasesClient ¶
type DatabasesClient struct {
BaseClient
}
DatabasesClient is the the Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model.
func NewDatabasesClient ¶
func NewDatabasesClient(subscriptionID string) DatabasesClient
NewDatabasesClient creates an instance of the DatabasesClient client.
func NewDatabasesClientWithBaseURI ¶
func NewDatabasesClientWithBaseURI(baseURI string, subscriptionID string) DatabasesClient
NewDatabasesClientWithBaseURI creates an instance of the DatabasesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (DatabasesClient) CreateOrUpdate ¶
func (client DatabasesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters Database) (result DatabasesCreateOrUpdateFuture, err error)
CreateOrUpdate creates a new database or updates an existing database. 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 (DatabasesClient) CreateOrUpdatePreparer ¶
func (client DatabasesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string, parameters Database) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (DatabasesClient) CreateOrUpdateResponder ¶
func (client DatabasesClient) CreateOrUpdateResponder(resp *http.Response) (result Database, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (DatabasesClient) CreateOrUpdateSender ¶
func (client DatabasesClient) CreateOrUpdateSender(req *http.Request) (future DatabasesCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (DatabasesClient) Delete ¶
func (client DatabasesClient) Delete(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result DatabasesDeleteFuture, err error)
Delete deletes a database. 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 (DatabasesClient) DeletePreparer ¶
func (client DatabasesClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (DatabasesClient) DeleteResponder ¶
func (client DatabasesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (DatabasesClient) DeleteSender ¶
func (client DatabasesClient) DeleteSender(req *http.Request) (future DatabasesDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (DatabasesClient) Get ¶
func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (result Database, err error)
Get gets information about a database. 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 (DatabasesClient) GetPreparer ¶
func (client DatabasesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, databaseName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (DatabasesClient) GetResponder ¶
func (client DatabasesClient) GetResponder(resp *http.Response) (result Database, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (DatabasesClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (DatabasesClient) ListByServer ¶
func (client DatabasesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result 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 (DatabasesClient) ListByServerComplete ¶
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 (DatabasesClient) ListByServerPreparer ¶
func (client DatabasesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
ListByServerPreparer prepares the ListByServer request.
func (DatabasesClient) ListByServerResponder ¶
func (client DatabasesClient) ListByServerResponder(resp *http.Response) (result DatabaseListResult, err error)
ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.
func (DatabasesClient) ListByServerSender ¶
ListByServerSender sends the ListByServer request. The method will close the http.Response Body if it receives an error.
type DatabasesCreateOrUpdateFuture ¶
DatabasesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabasesCreateOrUpdateFuture) Result ¶
func (future *DatabasesCreateOrUpdateFuture) Result(client DatabasesClient) (d Database, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type DatabasesDeleteFuture ¶
DatabasesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*DatabasesDeleteFuture) Result ¶
func (future *DatabasesDeleteFuture) Result(client DatabasesClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type ErrorAdditionalInfo ¶
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"` }
ErrorAdditionalInfo the resource management error additional info.
type ErrorResponse ¶
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"` }
ErrorResponse the resource management error response.
type FirewallRule ¶
type FirewallRule struct { autorest.Response `json:"-"` // FirewallRuleProperties - The properties of a firewall rule. *FirewallRuleProperties `json:"properties,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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` }
FirewallRule represents a server firewall rule.
func (FirewallRule) MarshalJSON ¶
func (fr FirewallRule) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for FirewallRule.
func (*FirewallRule) UnmarshalJSON ¶
func (fr *FirewallRule) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for FirewallRule struct.
type FirewallRuleListResult ¶
type FirewallRuleListResult struct { autorest.Response `json:"-"` // Value - The list of firewall rules in a server. Value *[]FirewallRule `json:"value,omitempty"` // NextLink - The link used to get the next page of operations. NextLink *string `json:"nextLink,omitempty"` }
FirewallRuleListResult a list of firewall rules.
func (FirewallRuleListResult) IsEmpty ¶
func (frlr FirewallRuleListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type FirewallRuleListResultIterator ¶
type FirewallRuleListResultIterator struct {
// contains filtered or unexported fields
}
FirewallRuleListResultIterator provides access to a complete listing of FirewallRule values.
func NewFirewallRuleListResultIterator ¶
func NewFirewallRuleListResultIterator(page FirewallRuleListResultPage) FirewallRuleListResultIterator
Creates a new instance of the FirewallRuleListResultIterator type.
func (*FirewallRuleListResultIterator) Next ¶
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 (*FirewallRuleListResultIterator) NextWithContext ¶
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 (FirewallRuleListResultIterator) NotDone ¶
func (iter FirewallRuleListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (FirewallRuleListResultIterator) Response ¶
func (iter FirewallRuleListResultIterator) Response() FirewallRuleListResult
Response returns the raw server response from the last page request.
func (FirewallRuleListResultIterator) Value ¶
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.
type FirewallRuleListResultPage ¶
type FirewallRuleListResultPage struct {
// contains filtered or unexported fields
}
FirewallRuleListResultPage contains a page of FirewallRule values.
func NewFirewallRuleListResultPage ¶
func NewFirewallRuleListResultPage(getNextPage func(context.Context, FirewallRuleListResult) (FirewallRuleListResult, error)) FirewallRuleListResultPage
Creates a new instance of the FirewallRuleListResultPage type.
func (*FirewallRuleListResultPage) Next ¶
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 (*FirewallRuleListResultPage) NextWithContext ¶
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 (FirewallRuleListResultPage) NotDone ¶
func (page FirewallRuleListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (FirewallRuleListResultPage) Response ¶
func (page FirewallRuleListResultPage) Response() FirewallRuleListResult
Response returns the raw server response from the last page request.
func (FirewallRuleListResultPage) Values ¶
func (page FirewallRuleListResultPage) Values() []FirewallRule
Values returns the slice of values for the current page or nil if there are no values.
type FirewallRuleProperties ¶
type FirewallRuleProperties struct { // StartIPAddress - The start IP address of the server firewall rule. Must be IPv4 format. StartIPAddress *string `json:"startIpAddress,omitempty"` // EndIPAddress - The end IP address of the server firewall rule. Must be IPv4 format. EndIPAddress *string `json:"endIpAddress,omitempty"` }
FirewallRuleProperties the properties of a server firewall rule.
type FirewallRulesClient ¶
type FirewallRulesClient struct {
BaseClient
}
FirewallRulesClient is the the Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model.
func NewFirewallRulesClient ¶
func NewFirewallRulesClient(subscriptionID string) FirewallRulesClient
NewFirewallRulesClient creates an instance of the FirewallRulesClient client.
func NewFirewallRulesClientWithBaseURI ¶
func NewFirewallRulesClientWithBaseURI(baseURI string, subscriptionID string) FirewallRulesClient
NewFirewallRulesClientWithBaseURI creates an instance of the FirewallRulesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (FirewallRulesClient) CreateOrUpdate ¶
func (client FirewallRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string, parameters FirewallRule) (result FirewallRulesCreateOrUpdateFuture, err error)
CreateOrUpdate creates a new firewall rule or updates an existing firewall rule. 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 (FirewallRulesClient) CreateOrUpdatePreparer ¶
func (client FirewallRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string, parameters FirewallRule) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (FirewallRulesClient) CreateOrUpdateResponder ¶
func (client FirewallRulesClient) CreateOrUpdateResponder(resp *http.Response) (result FirewallRule, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (FirewallRulesClient) CreateOrUpdateSender ¶
func (client FirewallRulesClient) CreateOrUpdateSender(req *http.Request) (future FirewallRulesCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (FirewallRulesClient) Delete ¶
func (client FirewallRulesClient) Delete(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (result FirewallRulesDeleteFuture, err error)
Delete deletes a 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 (FirewallRulesClient) DeletePreparer ¶
func (client FirewallRulesClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (FirewallRulesClient) DeleteResponder ¶
func (client FirewallRulesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (FirewallRulesClient) DeleteSender ¶
func (client FirewallRulesClient) DeleteSender(req *http.Request) (future FirewallRulesDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (FirewallRulesClient) Get ¶
func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (result FirewallRule, err error)
Get gets information about a server firewall rule. 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 (FirewallRulesClient) GetPreparer ¶
func (client FirewallRulesClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (FirewallRulesClient) GetResponder ¶
func (client FirewallRulesClient) GetResponder(resp *http.Response) (result FirewallRule, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (FirewallRulesClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (FirewallRulesClient) ListByServer ¶
func (client FirewallRulesClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result 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 (FirewallRulesClient) ListByServerComplete ¶
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 (FirewallRulesClient) ListByServerPreparer ¶
func (client FirewallRulesClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
ListByServerPreparer prepares the ListByServer request.
func (FirewallRulesClient) ListByServerResponder ¶
func (client FirewallRulesClient) ListByServerResponder(resp *http.Response) (result FirewallRuleListResult, err error)
ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.
func (FirewallRulesClient) ListByServerSender ¶
ListByServerSender sends the ListByServer request. The method will close the http.Response Body if it receives an error.
type FirewallRulesCreateOrUpdateFuture ¶
FirewallRulesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*FirewallRulesCreateOrUpdateFuture) Result ¶
func (future *FirewallRulesCreateOrUpdateFuture) Result(client FirewallRulesClient) (fr FirewallRule, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type FirewallRulesDeleteFuture ¶
FirewallRulesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*FirewallRulesDeleteFuture) Result ¶
func (future *FirewallRulesDeleteFuture) Result(client FirewallRulesClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type Identity ¶
type Identity struct { // PrincipalID - READ-ONLY; The principal ID of resource identity. PrincipalID *string `json:"principalId,omitempty"` // TenantID - READ-ONLY; The tenant ID of resource. TenantID *string `json:"tenantId,omitempty"` // Type - The identity type. Possible values include: 'SystemAssigned' Type ResourceIdentityType `json:"type,omitempty"` }
Identity identity for the resource.
func (Identity) MarshalJSON ¶
MarshalJSON is the custom marshaler for Identity.
type InfrastructureEncryptionEnum ¶
type InfrastructureEncryptionEnum string
InfrastructureEncryptionEnum enumerates the values for infrastructure encryption enum.
const ( // Disabled ... Disabled InfrastructureEncryptionEnum = "Disabled" // Enabled ... Enabled InfrastructureEncryptionEnum = "Enabled" )
func PossibleInfrastructureEncryptionEnumValues ¶
func PossibleInfrastructureEncryptionEnumValues() []InfrastructureEncryptionEnum
PossibleInfrastructureEncryptionEnumValues returns an array of possible values for the InfrastructureEncryptionEnum const type.
type IsConfigPendingRestart ¶
type IsConfigPendingRestart string
IsConfigPendingRestart enumerates the values for is config pending restart.
const ( // False ... False IsConfigPendingRestart = "False" // True ... True IsConfigPendingRestart = "True" )
func PossibleIsConfigPendingRestartValues ¶
func PossibleIsConfigPendingRestartValues() []IsConfigPendingRestart
PossibleIsConfigPendingRestartValues returns an array of possible values for the IsConfigPendingRestart const type.
type IsDynamicConfig ¶
type IsDynamicConfig string
IsDynamicConfig enumerates the values for is dynamic config.
const ( // IsDynamicConfigFalse ... IsDynamicConfigFalse IsDynamicConfig = "False" // IsDynamicConfigTrue ... IsDynamicConfigTrue IsDynamicConfig = "True" )
func PossibleIsDynamicConfigValues ¶
func PossibleIsDynamicConfigValues() []IsDynamicConfig
PossibleIsDynamicConfigValues returns an array of possible values for the IsDynamicConfig const type.
type IsReadOnly ¶
type IsReadOnly string
IsReadOnly enumerates the values for is read only.
const ( // IsReadOnlyFalse ... IsReadOnlyFalse IsReadOnly = "False" // IsReadOnlyTrue ... IsReadOnlyTrue IsReadOnly = "True" )
func PossibleIsReadOnlyValues ¶
func PossibleIsReadOnlyValues() []IsReadOnly
PossibleIsReadOnlyValues returns an array of possible values for the IsReadOnly const type.
type MaintenanceWindow ¶
type MaintenanceWindow struct { autorest.Response `json:"-"` // MaintenanceWindowProperties - The properties of a customer maintenance window. *MaintenanceWindowProperties `json:"properties,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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` }
MaintenanceWindow represents a server maintenance window.
func (MaintenanceWindow) MarshalJSON ¶
func (mw MaintenanceWindow) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MaintenanceWindow.
func (*MaintenanceWindow) UnmarshalJSON ¶
func (mw *MaintenanceWindow) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for MaintenanceWindow struct.
type MaintenanceWindowListResult ¶
type MaintenanceWindowListResult struct { autorest.Response `json:"-"` // Value - The list of server maintenance window. Value *[]MaintenanceWindow `json:"value,omitempty"` // NextLink - The link used to get the next page of operations. NextLink *string `json:"nextLink,omitempty"` }
MaintenanceWindowListResult a list of maintenance windows for a MySQL server.
func (MaintenanceWindowListResult) IsEmpty ¶
func (mwlr MaintenanceWindowListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type MaintenanceWindowListResultIterator ¶
type MaintenanceWindowListResultIterator struct {
// contains filtered or unexported fields
}
MaintenanceWindowListResultIterator provides access to a complete listing of MaintenanceWindow values.
func NewMaintenanceWindowListResultIterator ¶
func NewMaintenanceWindowListResultIterator(page MaintenanceWindowListResultPage) MaintenanceWindowListResultIterator
Creates a new instance of the MaintenanceWindowListResultIterator type.
func (*MaintenanceWindowListResultIterator) Next ¶
func (iter *MaintenanceWindowListResultIterator) 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 (*MaintenanceWindowListResultIterator) NextWithContext ¶
func (iter *MaintenanceWindowListResultIterator) 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 (MaintenanceWindowListResultIterator) NotDone ¶
func (iter MaintenanceWindowListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (MaintenanceWindowListResultIterator) Response ¶
func (iter MaintenanceWindowListResultIterator) Response() MaintenanceWindowListResult
Response returns the raw server response from the last page request.
func (MaintenanceWindowListResultIterator) Value ¶
func (iter MaintenanceWindowListResultIterator) Value() MaintenanceWindow
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type MaintenanceWindowListResultPage ¶
type MaintenanceWindowListResultPage struct {
// contains filtered or unexported fields
}
MaintenanceWindowListResultPage contains a page of MaintenanceWindow values.
func NewMaintenanceWindowListResultPage ¶
func NewMaintenanceWindowListResultPage(getNextPage func(context.Context, MaintenanceWindowListResult) (MaintenanceWindowListResult, error)) MaintenanceWindowListResultPage
Creates a new instance of the MaintenanceWindowListResultPage type.
func (*MaintenanceWindowListResultPage) Next ¶
func (page *MaintenanceWindowListResultPage) 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 (*MaintenanceWindowListResultPage) NextWithContext ¶
func (page *MaintenanceWindowListResultPage) 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 (MaintenanceWindowListResultPage) NotDone ¶
func (page MaintenanceWindowListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (MaintenanceWindowListResultPage) Response ¶
func (page MaintenanceWindowListResultPage) Response() MaintenanceWindowListResult
Response returns the raw server response from the last page request.
func (MaintenanceWindowListResultPage) Values ¶
func (page MaintenanceWindowListResultPage) Values() []MaintenanceWindow
Values returns the slice of values for the current page or nil if there are no values.
type MaintenanceWindowProperties ¶
type MaintenanceWindowProperties struct { // DayOfWeek - The day of week of the maintenance window to start DayOfWeek *int32 `json:"dayOfWeek,omitempty"` // DurationInMinutes - The duration of the maintenance window to run. DurationInMinutes *int32 `json:"durationInMinutes,omitempty"` // StartHour - The starting hour of the maintenance window. StartHour *int32 `json:"startHour,omitempty"` // StartMinute - The starting minutes of the maintenance window. StartMinute *int32 `json:"startMinute,omitempty"` }
MaintenanceWindowProperties the properties of a server maintenance window.
type MaintenanceWindowsClient ¶
type MaintenanceWindowsClient struct {
BaseClient
}
MaintenanceWindowsClient 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.
func NewMaintenanceWindowsClient ¶
func NewMaintenanceWindowsClient(subscriptionID string) MaintenanceWindowsClient
NewMaintenanceWindowsClient creates an instance of the MaintenanceWindowsClient client.
func NewMaintenanceWindowsClientWithBaseURI ¶
func NewMaintenanceWindowsClientWithBaseURI(baseURI string, subscriptionID string) MaintenanceWindowsClient
NewMaintenanceWindowsClientWithBaseURI creates an instance of the MaintenanceWindowsClient 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 (MaintenanceWindowsClient) CreateOrUpdate ¶
func (client MaintenanceWindowsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, maintenanceWindowName string, parameters MaintenanceWindow) (result MaintenanceWindowsCreateOrUpdateFuture, err error)
CreateOrUpdate creates a new maintenance window. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server. maintenanceWindowName - the name of the maintenance window. parameters - the required parameters for creating or updating a customer maintenance window.
func (MaintenanceWindowsClient) CreateOrUpdatePreparer ¶
func (client MaintenanceWindowsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, maintenanceWindowName string, parameters MaintenanceWindow) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (MaintenanceWindowsClient) CreateOrUpdateResponder ¶
func (client MaintenanceWindowsClient) CreateOrUpdateResponder(resp *http.Response) (result MaintenanceWindow, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (MaintenanceWindowsClient) CreateOrUpdateSender ¶
func (client MaintenanceWindowsClient) CreateOrUpdateSender(req *http.Request) (future MaintenanceWindowsCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (MaintenanceWindowsClient) Delete ¶
func (client MaintenanceWindowsClient) Delete(ctx context.Context, resourceGroupName string, serverName string, maintenanceWindowName string) (result MaintenanceWindowsDeleteFuture, err error)
Delete deletes a maintenance window. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server. maintenanceWindowName - the name of the maintenance window.
func (MaintenanceWindowsClient) DeletePreparer ¶
func (client MaintenanceWindowsClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string, maintenanceWindowName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (MaintenanceWindowsClient) DeleteResponder ¶
func (client MaintenanceWindowsClient) 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 (MaintenanceWindowsClient) DeleteSender ¶
func (client MaintenanceWindowsClient) DeleteSender(req *http.Request) (future MaintenanceWindowsDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (MaintenanceWindowsClient) Get ¶
func (client MaintenanceWindowsClient) Get(ctx context.Context, resourceGroupName string, serverName string, maintenanceWindowName string) (result MaintenanceWindow, err error)
Get get the maintenance windows of a given server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server. maintenanceWindowName - the name of the maintenance window.
func (MaintenanceWindowsClient) GetPreparer ¶
func (client MaintenanceWindowsClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string, maintenanceWindowName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (MaintenanceWindowsClient) GetResponder ¶
func (client MaintenanceWindowsClient) GetResponder(resp *http.Response) (result MaintenanceWindow, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (MaintenanceWindowsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (MaintenanceWindowsClient) ListByServer ¶
func (client MaintenanceWindowsClient) ListByServer(ctx context.Context, resourceGroupName string, serverName string) (result MaintenanceWindowListResultPage, err error)
ListByServer list all the maintenance windows in a given server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server.
func (MaintenanceWindowsClient) ListByServerComplete ¶
func (client MaintenanceWindowsClient) ListByServerComplete(ctx context.Context, resourceGroupName string, serverName string) (result MaintenanceWindowListResultIterator, err error)
ListByServerComplete enumerates all values, automatically crossing page boundaries as required.
func (MaintenanceWindowsClient) ListByServerPreparer ¶
func (client MaintenanceWindowsClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
ListByServerPreparer prepares the ListByServer request.
func (MaintenanceWindowsClient) ListByServerResponder ¶
func (client MaintenanceWindowsClient) ListByServerResponder(resp *http.Response) (result MaintenanceWindowListResult, err error)
ListByServerResponder handles the response to the ListByServer request. The method always closes the http.Response Body.
func (MaintenanceWindowsClient) ListByServerSender ¶
func (client MaintenanceWindowsClient) ListByServerSender(req *http.Request) (*http.Response, error)
ListByServerSender sends the ListByServer request. The method will close the http.Response Body if it receives an error.
type MaintenanceWindowsCreateOrUpdateFuture ¶
MaintenanceWindowsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*MaintenanceWindowsCreateOrUpdateFuture) Result ¶
func (future *MaintenanceWindowsCreateOrUpdateFuture) Result(client MaintenanceWindowsClient) (mw MaintenanceWindow, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type MaintenanceWindowsDeleteFuture ¶
MaintenanceWindowsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*MaintenanceWindowsDeleteFuture) Result ¶
func (future *MaintenanceWindowsDeleteFuture) Result(client MaintenanceWindowsClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type NameAvailability ¶
type NameAvailability struct { autorest.Response `json:"-"` // Message - Error Message. Message *string `json:"message,omitempty"` // NameAvailable - Indicates whether the resource name is available. NameAvailable *bool `json:"nameAvailable,omitempty"` // Reason - Reason for name being unavailable. Reason *string `json:"reason,omitempty"` }
NameAvailability represents a resource name availability.
type NameAvailabilityRequest ¶
type NameAvailabilityRequest struct { // Name - Resource name to verify. Name *string `json:"name,omitempty"` // Type - Resource type used for verification. Type *string `json:"type,omitempty"` }
NameAvailabilityRequest request from client to check resource name availability.
type Operation ¶
type Operation struct { // Name - READ-ONLY; The name of the operation being performed on this particular object. Name *string `json:"name,omitempty"` // Display - READ-ONLY; The localized display information for this particular operation or action. Display *OperationDisplay `json:"display,omitempty"` // Origin - READ-ONLY; The intended executor of the operation. Possible values include: 'NotSpecified', 'User', 'System' Origin OperationOrigin `json:"origin,omitempty"` // Properties - READ-ONLY; Additional descriptions for the operation. Properties map[string]interface{} `json:"properties"` }
Operation REST API operation definition.
func (Operation) MarshalJSON ¶
MarshalJSON is the custom marshaler for Operation.
type OperationDisplay ¶
type OperationDisplay struct { // Provider - READ-ONLY; Operation resource provider name. Provider *string `json:"provider,omitempty"` // Resource - READ-ONLY; Resource on which the operation is performed. Resource *string `json:"resource,omitempty"` // Operation - READ-ONLY; Localized friendly name for the operation. Operation *string `json:"operation,omitempty"` // Description - READ-ONLY; Operation description. Description *string `json:"description,omitempty"` }
OperationDisplay display metadata associated with the operation.
type OperationListResult ¶
type OperationListResult struct { autorest.Response `json:"-"` // Value - The list of resource provider operations. Value *[]Operation `json:"value,omitempty"` }
OperationListResult a list of resource provider operations.
type OperationOrigin ¶
type OperationOrigin string
OperationOrigin enumerates the values for operation origin.
const ( // NotSpecified ... NotSpecified OperationOrigin = "NotSpecified" // System ... System OperationOrigin = "system" // User ... User OperationOrigin = "user" )
func PossibleOperationOriginValues ¶
func PossibleOperationOriginValues() []OperationOrigin
PossibleOperationOriginValues returns an array of possible values for the OperationOrigin const type.
type OperationsClient ¶
type OperationsClient struct {
BaseClient
}
OperationsClient is the the Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model.
func NewOperationsClient ¶
func NewOperationsClient(subscriptionID string) OperationsClient
NewOperationsClient creates an instance of the OperationsClient client.
func NewOperationsClientWithBaseURI ¶
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient
NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (OperationsClient) List ¶
func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error)
List lists all of the available REST API operations.
func (OperationsClient) ListPreparer ¶
ListPreparer prepares the List request.
func (OperationsClient) ListResponder ¶
func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (OperationsClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type Plan ¶
type Plan struct { // Name - A user defined name of the 3rd Party Artifact that is being procured. Name *string `json:"name,omitempty"` // Publisher - The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic Publisher *string `json:"publisher,omitempty"` // Product - The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding. Product *string `json:"product,omitempty"` // PromotionCode - A publisher provided promotion code as provisioned in Data Market for the said product/artifact. PromotionCode *string `json:"promotionCode,omitempty"` // Version - The version of the desired product/artifact. Version *string `json:"version,omitempty"` }
Plan plan for the resource.
type ProxyResource ¶
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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` }
ProxyResource the resource model definition for a ARM proxy resource. It will have everything other than required location and tags
type PublicNetworkAccessEnum ¶
type PublicNetworkAccessEnum string
PublicNetworkAccessEnum enumerates the values for public network access enum.
const ( // PublicNetworkAccessEnumDisabled ... PublicNetworkAccessEnumDisabled PublicNetworkAccessEnum = "Disabled" // PublicNetworkAccessEnumEnabled ... PublicNetworkAccessEnumEnabled PublicNetworkAccessEnum = "Enabled" )
func PossiblePublicNetworkAccessEnumValues ¶
func PossiblePublicNetworkAccessEnumValues() []PublicNetworkAccessEnum
PossiblePublicNetworkAccessEnumValues returns an array of possible values for the PublicNetworkAccessEnum const type.
type ReplicasClient ¶
type ReplicasClient struct {
BaseClient
}
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.
func NewReplicasClient ¶
func NewReplicasClient(subscriptionID string) ReplicasClient
NewReplicasClient creates an instance of the ReplicasClient client.
func NewReplicasClientWithBaseURI ¶
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 (ReplicasClient) ListByServer ¶
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 (ReplicasClient) ListByServerComplete ¶
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 (ReplicasClient) ListByServerPreparer ¶
func (client ReplicasClient) ListByServerPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
ListByServerPreparer prepares the ListByServer request.
func (ReplicasClient) ListByServerResponder ¶
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 (ReplicasClient) ListByServerSender ¶
ListByServerSender sends the ListByServer request. The method will close the http.Response Body if it receives an error.
type Resource ¶
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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` }
Resource ...
type ResourceIdentityType ¶
type ResourceIdentityType string
ResourceIdentityType enumerates the values for resource identity type.
const ( // SystemAssigned ... SystemAssigned ResourceIdentityType = "SystemAssigned" )
func PossibleResourceIdentityTypeValues ¶
func PossibleResourceIdentityTypeValues() []ResourceIdentityType
PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.
type ResourceModelWithAllowedPropertySet ¶
type ResourceModelWithAllowedPropertySet 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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.. Type *string `json:"type,omitempty"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` // ManagedBy - The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource. ManagedBy *string `json:"managedBy,omitempty"` // Kind - Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. Kind *string `json:"kind,omitempty"` // Etag - READ-ONLY; The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. Etag *string `json:"etag,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` Identity *ResourceModelWithAllowedPropertySetIdentity `json:"identity,omitempty"` Sku *ResourceModelWithAllowedPropertySetSku `json:"sku,omitempty"` Plan *ResourceModelWithAllowedPropertySetPlan `json:"plan,omitempty"` }
ResourceModelWithAllowedPropertySet the resource model definition containing the full set of allowed properties for a resource. Except properties bag, there cannot be a top level property outside of this set.
func (ResourceModelWithAllowedPropertySet) MarshalJSON ¶
func (rmwaps ResourceModelWithAllowedPropertySet) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ResourceModelWithAllowedPropertySet.
type ResourceModelWithAllowedPropertySetIdentity ¶
type ResourceModelWithAllowedPropertySetIdentity struct { // PrincipalID - READ-ONLY; The principal ID of resource identity. PrincipalID *string `json:"principalId,omitempty"` // TenantID - READ-ONLY; The tenant ID of resource. TenantID *string `json:"tenantId,omitempty"` // Type - The identity type. Possible values include: 'SystemAssigned' Type ResourceIdentityType `json:"type,omitempty"` }
ResourceModelWithAllowedPropertySetIdentity ...
func (ResourceModelWithAllowedPropertySetIdentity) MarshalJSON ¶
func (rmwaps ResourceModelWithAllowedPropertySetIdentity) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ResourceModelWithAllowedPropertySetIdentity.
type ResourceModelWithAllowedPropertySetPlan ¶
type ResourceModelWithAllowedPropertySetPlan struct { // Name - A user defined name of the 3rd Party Artifact that is being procured. Name *string `json:"name,omitempty"` // Publisher - The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic Publisher *string `json:"publisher,omitempty"` // Product - The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding. Product *string `json:"product,omitempty"` // PromotionCode - A publisher provided promotion code as provisioned in Data Market for the said product/artifact. PromotionCode *string `json:"promotionCode,omitempty"` // Version - The version of the desired product/artifact. Version *string `json:"version,omitempty"` }
ResourceModelWithAllowedPropertySetPlan ...
type ResourceModelWithAllowedPropertySetSku ¶
type ResourceModelWithAllowedPropertySetSku 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: 'Burstable', 'GeneralPurpose', 'MemoryOptimized' Tier SkuTier `json:"tier,omitempty"` }
ResourceModelWithAllowedPropertySetSku ...
type Server ¶
type Server struct { autorest.Response `json:"-"` // Identity - The Azure Active Directory identity of the server. Identity *Identity `json:"identity,omitempty"` // Sku - The SKU (pricing tier) of the server. Sku *Sku `json:"sku,omitempty"` // ServerProperties - Properties of the server. *ServerProperties `json:"properties,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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` }
Server represents a server.
func (Server) MarshalJSON ¶
MarshalJSON is the custom marshaler for Server.
func (*Server) UnmarshalJSON ¶
UnmarshalJSON is the custom unmarshaler for Server struct.
type ServerForUpdate ¶
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"` }
ServerForUpdate parameters allowed to update for a server.
func (ServerForUpdate) MarshalJSON ¶
func (sfu ServerForUpdate) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ServerForUpdate.
func (*ServerForUpdate) UnmarshalJSON ¶
func (sfu *ServerForUpdate) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ServerForUpdate struct.
type ServerHAState ¶
type ServerHAState string
ServerHAState enumerates the values for server ha state.
const ( // CreatingStandby ... CreatingStandby ServerHAState = "CreatingStandby" // FailingOver ... FailingOver ServerHAState = "FailingOver" // Healthy ... Healthy ServerHAState = "Healthy" // NotEnabled ... NotEnabled ServerHAState = "NotEnabled" // RemovingStandby ... RemovingStandby ServerHAState = "RemovingStandby" // ReplicatingData ... ReplicatingData ServerHAState = "ReplicatingData" )
func PossibleServerHAStateValues ¶
func PossibleServerHAStateValues() []ServerHAState
PossibleServerHAStateValues returns an array of possible values for the ServerHAState const type.
type ServerListResult ¶
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"` }
ServerListResult a list of servers.
func (ServerListResult) IsEmpty ¶
func (slr ServerListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type ServerListResultIterator ¶
type ServerListResultIterator struct {
// contains filtered or unexported fields
}
ServerListResultIterator provides access to a complete listing of Server values.
func NewServerListResultIterator ¶
func NewServerListResultIterator(page ServerListResultPage) ServerListResultIterator
Creates a new instance of the ServerListResultIterator type.
func (*ServerListResultIterator) Next ¶
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 (*ServerListResultIterator) NextWithContext ¶
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 (ServerListResultIterator) NotDone ¶
func (iter ServerListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (ServerListResultIterator) Response ¶
func (iter ServerListResultIterator) Response() ServerListResult
Response returns the raw server response from the last page request.
func (ServerListResultIterator) Value ¶
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.
type ServerListResultPage ¶
type ServerListResultPage struct {
// contains filtered or unexported fields
}
ServerListResultPage contains a page of Server values.
func NewServerListResultPage ¶
func NewServerListResultPage(getNextPage func(context.Context, ServerListResult) (ServerListResult, error)) ServerListResultPage
Creates a new instance of the ServerListResultPage type.
func (*ServerListResultPage) Next ¶
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 (*ServerListResultPage) NextWithContext ¶
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 (ServerListResultPage) NotDone ¶
func (page ServerListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (ServerListResultPage) Response ¶
func (page ServerListResultPage) Response() ServerListResult
Response returns the raw server response from the last page request.
func (ServerListResultPage) Values ¶
func (page ServerListResultPage) Values() []Server
Values returns the slice of values for the current page or nil if there are no values.
type ServerProperties ¶
type ServerProperties struct { // AdministratorLogin - The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). AdministratorLogin *string `json:"administratorLogin,omitempty"` // AdministratorLoginPassword - The password of the administrator login (required for server creation). AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"` // Version - Server version. Possible values include: 'FiveFullStopSeven' Version ServerVersion `json:"version,omitempty"` // SslEnforcement - Enable ssl enforcement or not when connect to server. Possible values include: 'SslEnforcementEnumEnabled', 'SslEnforcementEnumDisabled' SslEnforcement SslEnforcementEnum `json:"sslEnforcement,omitempty"` // InfrastructureEncryption - Status showing whether the server enabled infrastructure encryption. Possible values include: 'Enabled', 'Disabled' InfrastructureEncryption InfrastructureEncryptionEnum `json:"infrastructureEncryption,omitempty"` // State - READ-ONLY; The state of a server. Possible values include: 'ServerStateReady', 'ServerStateDropping', 'ServerStateDisabled', 'ServerStateStarting', 'ServerStateStopping', 'ServerStateStopped', 'ServerStateUpdating' State ServerState `json:"state,omitempty"` // HaState - READ-ONLY; The state of a HA server. Possible values include: 'NotEnabled', 'CreatingStandby', 'ReplicatingData', 'FailingOver', 'Healthy', 'RemovingStandby' HaState ServerHAState `json:"haState,omitempty"` // StandbyCount - stand by count value can be either 0 or 1 StandbyCount *int32 `json:"standbyCount,omitempty"` // FullyQualifiedDomainName - READ-ONLY; The fully qualified domain name of a server. FullyQualifiedDomainName *string `json:"fullyQualifiedDomainName,omitempty"` // EarliestRestoreDate - Earliest restore point creation time (ISO8601 format) EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"` // StorageProfile - Storage profile of a server. StorageProfile *StorageProfile `json:"storageProfile,omitempty"` // ReplicationRole - The replication role. ReplicationRole *string `json:"replicationRole,omitempty"` // PrimaryServerID - READ-ONLY; The primary server id of a replica server. PrimaryServerID *string `json:"primaryServerId,omitempty"` // ReplicaCapacity - The maximum number of replicas that a primary server can have. ReplicaCapacity *int32 `json:"replicaCapacity,omitempty"` // PublicNetworkAccess - Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible values include: 'PublicNetworkAccessEnumEnabled', 'PublicNetworkAccessEnumDisabled' PublicNetworkAccess PublicNetworkAccessEnum `json:"publicNetworkAccess,omitempty"` // SourceServerID - The source MySQL server name to restore from. SourceServerID *string `json:"sourceServerId,omitempty"` // RestorePointInTime - Restore point creation time (ISO8601 format), specifying the time to restore from. RestorePointInTime *date.Time `json:"restorePointInTime,omitempty"` // VnetInjArgs - Vnet arguments. VnetInjArgs *VnetInjArgs `json:"vnetInjArgs,omitempty"` // CreateMode - The mode to create a new MySQL server. Possible values include: 'Default', 'PointInTimeRestore', 'Replica' CreateMode CreateMode `json:"createMode,omitempty"` // Tags - Application-specific metadata in the form of key-value pairs. Tags map[string]*string `json:"tags"` }
ServerProperties the properties of a server.
func (ServerProperties) MarshalJSON ¶
func (sp ServerProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ServerProperties.
type ServerPropertiesForUpdate ¶
type ServerPropertiesForUpdate struct { // StorageProfile - Storage profile of a server. StorageProfile *StorageProfile `json:"storageProfile,omitempty"` // AdministratorLoginPassword - The password of the administrator login. AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"` // SslEnforcement - Enable ssl enforcement or not when connect to server. Possible values include: 'SslEnforcementEnumEnabled', 'SslEnforcementEnumDisabled' SslEnforcement SslEnforcementEnum `json:"sslEnforcement,omitempty"` // VnetInjArgs - Vnet arguments. VnetInjArgs *VnetInjArgs `json:"vnetInjArgs,omitempty"` // StandbyCount - stand by count value can be either 0 or 1 StandbyCount *int32 `json:"standbyCount,omitempty"` // PublicNetworkAccess - Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible values include: 'PublicNetworkAccessEnumEnabled', 'PublicNetworkAccessEnumDisabled' PublicNetworkAccess PublicNetworkAccessEnum `json:"publicNetworkAccess,omitempty"` // ReplicationRole - The replication role of the server. ReplicationRole *string `json:"replicationRole,omitempty"` }
ServerPropertiesForUpdate the properties that can be updated for a server.
type ServerState ¶
type ServerState string
ServerState enumerates the values for server state.
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 ¶
func PossibleServerStateValues() []ServerState
PossibleServerStateValues returns an array of possible values for the ServerState const type.
type ServerVersion ¶
type ServerVersion string
ServerVersion enumerates the values for server version.
const ( // FiveFullStopSeven ... FiveFullStopSeven ServerVersion = "5.7" )
func PossibleServerVersionValues ¶
func PossibleServerVersionValues() []ServerVersion
PossibleServerVersionValues returns an array of possible values for the ServerVersion const type.
type ServersClient ¶
type ServersClient struct {
BaseClient
}
ServersClient is the the Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model.
func NewServersClient ¶
func NewServersClient(subscriptionID string) ServersClient
NewServersClient creates an instance of the ServersClient client.
func NewServersClientWithBaseURI ¶
func NewServersClientWithBaseURI(baseURI string, subscriptionID string) ServersClient
NewServersClientWithBaseURI creates an instance of the ServersClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (ServersClient) Create ¶
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 (ServersClient) CreatePreparer ¶
func (client ServersClient) CreatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters Server) (*http.Request, error)
CreatePreparer prepares the Create request.
func (ServersClient) CreateResponder ¶
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 (ServersClient) CreateSender ¶
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 (ServersClient) Delete ¶
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 (ServersClient) DeletePreparer ¶
func (client ServersClient) DeletePreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (ServersClient) DeleteResponder ¶
func (client ServersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (ServersClient) DeleteSender ¶
func (client ServersClient) DeleteSender(req *http.Request) (future ServersDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (ServersClient) Get ¶
func (client ServersClient) Get(ctx context.Context, resourceGroupName string, serverName string) (result Server, err error)
Get gets information about a server. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. serverName - the name of the server.
func (ServersClient) GetPreparer ¶
func (client ServersClient) GetPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ServersClient) GetResponder ¶
func (client ServersClient) GetResponder(resp *http.Response) (result Server, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ServersClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ServersClient) List ¶
func (client ServersClient) List(ctx context.Context) (result ServerListResultPage, err error)
List list all the servers in a given subscription.
func (ServersClient) ListByResourceGroup ¶
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 (ServersClient) ListByResourceGroupComplete ¶
func (client ServersClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ServerListResultIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (ServersClient) ListByResourceGroupPreparer ¶
func (client ServersClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (ServersClient) ListByResourceGroupResponder ¶
func (client ServersClient) ListByResourceGroupResponder(resp *http.Response) (result ServerListResult, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (ServersClient) ListByResourceGroupSender ¶
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (ServersClient) ListComplete ¶
func (client ServersClient) ListComplete(ctx context.Context) (result ServerListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (ServersClient) ListPreparer ¶
ListPreparer prepares the List request.
func (ServersClient) ListResponder ¶
func (client ServersClient) ListResponder(resp *http.Response) (result ServerListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (ServersClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (ServersClient) Restart ¶
func (client ServersClient) Restart(ctx context.Context, resourceGroupName string, serverName string) (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.
func (ServersClient) RestartPreparer ¶
func (client ServersClient) RestartPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
RestartPreparer prepares the Restart request.
func (ServersClient) RestartResponder ¶
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 (ServersClient) RestartSender ¶
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 (ServersClient) Start ¶
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 (ServersClient) StartPreparer ¶
func (client ServersClient) StartPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
StartPreparer prepares the Start request.
func (ServersClient) StartResponder ¶
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 (ServersClient) StartSender ¶
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 (ServersClient) Stop ¶
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 (ServersClient) StopPreparer ¶
func (client ServersClient) StopPreparer(ctx context.Context, resourceGroupName string, serverName string) (*http.Request, error)
StopPreparer prepares the Stop request.
func (ServersClient) StopResponder ¶
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 (ServersClient) StopSender ¶
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 (ServersClient) Update ¶
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 (ServersClient) UpdatePreparer ¶
func (client ServersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serverName string, parameters ServerForUpdate) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (ServersClient) UpdateResponder ¶
func (client ServersClient) UpdateResponder(resp *http.Response) (result Server, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (ServersClient) UpdateSender ¶
func (client ServersClient) UpdateSender(req *http.Request) (future ServersUpdateFuture, err error)
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type ServersCreateFuture ¶
ServersCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ServersCreateFuture) Result ¶
func (future *ServersCreateFuture) Result(client ServersClient) (s Server, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type ServersDeleteFuture ¶
ServersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ServersDeleteFuture) Result ¶
func (future *ServersDeleteFuture) Result(client ServersClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type ServersRestartFuture ¶
ServersRestartFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ServersRestartFuture) Result ¶
func (future *ServersRestartFuture) Result(client ServersClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type ServersStartFuture ¶
ServersStartFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ServersStartFuture) Result ¶
func (future *ServersStartFuture) Result(client ServersClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type ServersStopFuture ¶
ServersStopFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ServersStopFuture) Result ¶
func (future *ServersStopFuture) Result(client ServersClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type ServersUpdateFuture ¶
ServersUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ServersUpdateFuture) Result ¶
func (future *ServersUpdateFuture) Result(client ServersClient) (s Server, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type Sku ¶
type Sku struct { // Name - The name of the sku, e.g. Standard_D32s_v3. Name *string `json:"name,omitempty"` // Tier - The tier of the particular SKU, e.g. GeneralPurpose. Possible values include: 'Burstable', 'GeneralPurpose', 'MemoryOptimized' Tier SkuTier `json:"tier,omitempty"` }
Sku billing information related properties of a server.
type SkuTier ¶
type SkuTier string
SkuTier enumerates the values for sku tier.
func PossibleSkuTierValues ¶
func PossibleSkuTierValues() []SkuTier
PossibleSkuTierValues returns an array of possible values for the SkuTier const type.
type SslEnforcementEnum ¶
type SslEnforcementEnum string
SslEnforcementEnum enumerates the values for ssl enforcement enum.
const ( // SslEnforcementEnumDisabled ... SslEnforcementEnumDisabled SslEnforcementEnum = "Disabled" // SslEnforcementEnumEnabled ... SslEnforcementEnumEnabled SslEnforcementEnum = "Enabled" )
func PossibleSslEnforcementEnumValues ¶
func PossibleSslEnforcementEnumValues() []SslEnforcementEnum
PossibleSslEnforcementEnumValues returns an array of possible values for the SslEnforcementEnum const type.
type StorageAutogrow ¶
type StorageAutogrow string
StorageAutogrow enumerates the values for storage autogrow.
const ( // StorageAutogrowDisabled ... StorageAutogrowDisabled StorageAutogrow = "Disabled" // StorageAutogrowEnabled ... StorageAutogrowEnabled StorageAutogrow = "Enabled" )
func PossibleStorageAutogrowValues ¶
func PossibleStorageAutogrowValues() []StorageAutogrow
PossibleStorageAutogrowValues returns an array of possible values for the StorageAutogrow const type.
type StorageProfile ¶
type StorageProfile struct { // BackupRetentionDays - Backup retention days for the server. BackupRetentionDays *int32 `json:"backupRetentionDays,omitempty"` // StorageMB - Max storage allowed for a server. StorageMB *int32 `json:"storageMB,omitempty"` // StorageIops - Storage IOPS for a server. StorageIops *int32 `json:"storageIops,omitempty"` // StorageAutogrow - Enable Storage Auto Grow. Possible values include: 'StorageAutogrowEnabled', 'StorageAutogrowDisabled' StorageAutogrow StorageAutogrow `json:"storageAutogrow,omitempty"` }
StorageProfile storage Profile properties of a server
type TrackedResource ¶
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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` }
TrackedResource the resource model definition for a ARM tracked top level resource
func (TrackedResource) MarshalJSON ¶
func (tr TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TrackedResource.
type VnetInjArgs ¶
type VnetInjArgs struct { // DelegatedVnetID - delegated vNet ID DelegatedVnetID *string `json:"delegatedVnetID,omitempty"` // DelegatedSubnetName - delegated subnet name DelegatedSubnetName *string `json:"delegatedSubnetName,omitempty"` // DelegatedVnetName - delegated vNet name DelegatedVnetName *string `json:"delegatedVnetName,omitempty"` }
VnetInjArgs vnet properties of a server