Documentation ¶
Index ¶
- func PossibleValuesForReplicaType() []string
- func ValidateDatabaseID(input interface{}, key string) (warnings []string, errors []error)
- type DatabaseId
- type DatabasesFailoverOperationOptions
- type DatabasesFailoverOperationResponse
- type FailoverDatabasesClient
- func (c FailoverDatabasesClient) DatabasesFailover(ctx context.Context, id DatabaseId, options DatabasesFailoverOperationOptions) (result DatabasesFailoverOperationResponse, err error)
- func (c FailoverDatabasesClient) DatabasesFailoverThenPoll(ctx context.Context, id DatabaseId, options DatabasesFailoverOperationOptions) error
- type ReplicaType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForReplicaType ¶
func PossibleValuesForReplicaType() []string
func ValidateDatabaseID ¶
ValidateDatabaseID checks that 'input' can be parsed as a Database ID
Types ¶
type DatabaseId ¶
type DatabaseId struct { SubscriptionId string ResourceGroupName string ServerName string DatabaseName string }
DatabaseId is a struct representing the Resource ID for a Database
func NewDatabaseID ¶
func NewDatabaseID(subscriptionId string, resourceGroupName string, serverName string, databaseName string) DatabaseId
NewDatabaseID returns a new DatabaseId struct
func ParseDatabaseID ¶
func ParseDatabaseID(input string) (*DatabaseId, error)
ParseDatabaseID parses 'input' into a DatabaseId
func ParseDatabaseIDInsensitively ¶
func ParseDatabaseIDInsensitively(input string) (*DatabaseId, error)
ParseDatabaseIDInsensitively parses 'input' case-insensitively into a DatabaseId note: this method should only be used for API response data and not user input
func (DatabaseId) Segments ¶
func (id DatabaseId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Database ID
func (DatabaseId) String ¶
func (id DatabaseId) String() string
String returns a human-readable description of this Database ID
type DatabasesFailoverOperationOptions ¶
type DatabasesFailoverOperationOptions struct {
ReplicaType *ReplicaType
}
func DefaultDatabasesFailoverOperationOptions ¶
func DefaultDatabasesFailoverOperationOptions() DatabasesFailoverOperationOptions
func (DatabasesFailoverOperationOptions) ToHeaders ¶
func (o DatabasesFailoverOperationOptions) ToHeaders() *client.Headers
func (DatabasesFailoverOperationOptions) ToOData ¶
func (o DatabasesFailoverOperationOptions) ToOData() *odata.Query
func (DatabasesFailoverOperationOptions) ToQuery ¶
func (o DatabasesFailoverOperationOptions) ToQuery() *client.QueryParams
type FailoverDatabasesClient ¶
type FailoverDatabasesClient struct {
Client *resourcemanager.Client
}
func NewFailoverDatabasesClientWithBaseURI ¶
func NewFailoverDatabasesClientWithBaseURI(api environments.Api) (*FailoverDatabasesClient, error)
func (FailoverDatabasesClient) DatabasesFailover ¶
func (c FailoverDatabasesClient) DatabasesFailover(ctx context.Context, id DatabaseId, options DatabasesFailoverOperationOptions) (result DatabasesFailoverOperationResponse, err error)
DatabasesFailover ...
func (FailoverDatabasesClient) DatabasesFailoverThenPoll ¶
func (c FailoverDatabasesClient) DatabasesFailoverThenPoll(ctx context.Context, id DatabaseId, options DatabasesFailoverOperationOptions) error
DatabasesFailoverThenPoll performs DatabasesFailover then polls until it's completed
type ReplicaType ¶
type ReplicaType string
const ( ReplicaTypePrimary ReplicaType = "Primary" ReplicaTypeReadableSecondary ReplicaType = "ReadableSecondary" )
func (*ReplicaType) UnmarshalJSON ¶
func (s *ReplicaType) UnmarshalJSON(bytes []byte) error
Click to show internal directories.
Click to hide internal directories.