failoverdatabases

package
v0.20230825.1130400 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForReplicaType

func PossibleValuesForReplicaType() []string

func ValidateDatabaseID

func ValidateDatabaseID(input interface{}, key string) (warnings []string, errors []error)

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) ID

func (id DatabaseId) ID() string

ID returns the formatted Database ID

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 (DatabasesFailoverOperationOptions) ToOData

func (DatabasesFailoverOperationOptions) ToQuery

type DatabasesFailoverOperationResponse

type DatabasesFailoverOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type FailoverDatabasesClient

type FailoverDatabasesClient struct {
	Client *resourcemanager.Client
}

func NewFailoverDatabasesClientWithBaseURI

func NewFailoverDatabasesClientWithBaseURI(sdkApi sdkEnv.Api) (*FailoverDatabasesClient, error)

func (FailoverDatabasesClient) DatabasesFailover

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

Jump to

Keyboard shortcuts

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