Documentation ¶
Index ¶
- func PossibleValuesForFailoverGroupReplicationRole() []string
- func PossibleValuesForReadOnlyEndpointFailoverPolicy() []string
- func PossibleValuesForReadWriteEndpointFailoverPolicy() []string
- func ValidateFailoverGroupID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type FailoverGroup
- type FailoverGroupId
- type FailoverGroupOperationPredicate
- type FailoverGroupProperties
- type FailoverGroupReadOnlyEndpoint
- type FailoverGroupReadWriteEndpoint
- type FailoverGroupReplicationRole
- type FailoverGroupUpdate
- type FailoverGroupUpdateProperties
- type FailoverGroupsClient
- func (c FailoverGroupsClient) CreateOrUpdate(ctx context.Context, id FailoverGroupId, input FailoverGroup) (result CreateOrUpdateOperationResponse, err error)
- func (c FailoverGroupsClient) CreateOrUpdateThenPoll(ctx context.Context, id FailoverGroupId, input FailoverGroup) error
- func (c FailoverGroupsClient) Delete(ctx context.Context, id FailoverGroupId) (result DeleteOperationResponse, err error)
- func (c FailoverGroupsClient) DeleteThenPoll(ctx context.Context, id FailoverGroupId) error
- func (c FailoverGroupsClient) Failover(ctx context.Context, id FailoverGroupId) (result FailoverOperationResponse, err error)
- func (c FailoverGroupsClient) FailoverThenPoll(ctx context.Context, id FailoverGroupId) error
- func (c FailoverGroupsClient) ForceFailoverAllowDataLoss(ctx context.Context, id FailoverGroupId) (result ForceFailoverAllowDataLossOperationResponse, err error)
- func (c FailoverGroupsClient) ForceFailoverAllowDataLossThenPoll(ctx context.Context, id FailoverGroupId) error
- func (c FailoverGroupsClient) Get(ctx context.Context, id FailoverGroupId) (result GetOperationResponse, err error)
- func (c FailoverGroupsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error)
- func (c FailoverGroupsClient) ListByServerComplete(ctx context.Context, id commonids.SqlServerId) (ListByServerCompleteResult, error)
- func (c FailoverGroupsClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id commonids.SqlServerId, ...) (result ListByServerCompleteResult, err error)
- func (c FailoverGroupsClient) TryPlannedBeforeForcedFailover(ctx context.Context, id FailoverGroupId) (result TryPlannedBeforeForcedFailoverOperationResponse, err error)
- func (c FailoverGroupsClient) TryPlannedBeforeForcedFailoverThenPoll(ctx context.Context, id FailoverGroupId) error
- func (c FailoverGroupsClient) Update(ctx context.Context, id FailoverGroupId, input FailoverGroupUpdate) (result UpdateOperationResponse, err error)
- func (c FailoverGroupsClient) UpdateThenPoll(ctx context.Context, id FailoverGroupId, input FailoverGroupUpdate) error
- type FailoverOperationResponse
- type ForceFailoverAllowDataLossOperationResponse
- type GetOperationResponse
- type ListByServerCompleteResult
- type ListByServerOperationResponse
- type PartnerInfo
- type ReadOnlyEndpointFailoverPolicy
- type ReadWriteEndpointFailoverPolicy
- type TryPlannedBeforeForcedFailoverOperationResponse
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForFailoverGroupReplicationRole ¶
func PossibleValuesForFailoverGroupReplicationRole() []string
func PossibleValuesForReadOnlyEndpointFailoverPolicy ¶
func PossibleValuesForReadOnlyEndpointFailoverPolicy() []string
func PossibleValuesForReadWriteEndpointFailoverPolicy ¶
func PossibleValuesForReadWriteEndpointFailoverPolicy() []string
func ValidateFailoverGroupID ¶
ValidateFailoverGroupID checks that 'input' can be parsed as a Failover Group ID
Types ¶
type DeleteOperationResponse ¶
type FailoverGroup ¶
type FailoverGroupId ¶
type FailoverGroupId struct { SubscriptionId string ResourceGroupName string ServerName string FailoverGroupName string }
FailoverGroupId is a struct representing the Resource ID for a Failover Group
func NewFailoverGroupID ¶
func NewFailoverGroupID(subscriptionId string, resourceGroupName string, serverName string, failoverGroupName string) FailoverGroupId
NewFailoverGroupID returns a new FailoverGroupId struct
func ParseFailoverGroupID ¶
func ParseFailoverGroupID(input string) (*FailoverGroupId, error)
ParseFailoverGroupID parses 'input' into a FailoverGroupId
func ParseFailoverGroupIDInsensitively ¶
func ParseFailoverGroupIDInsensitively(input string) (*FailoverGroupId, error)
ParseFailoverGroupIDInsensitively parses 'input' case-insensitively into a FailoverGroupId note: this method should only be used for API response data and not user input
func (FailoverGroupId) ID ¶
func (id FailoverGroupId) ID() string
ID returns the formatted Failover Group ID
func (FailoverGroupId) Segments ¶
func (id FailoverGroupId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Failover Group ID
func (FailoverGroupId) String ¶
func (id FailoverGroupId) String() string
String returns a human-readable description of this Failover Group ID
type FailoverGroupOperationPredicate ¶
type FailoverGroupOperationPredicate struct { Id *string Location *string Name *string Type *string }
func (FailoverGroupOperationPredicate) Matches ¶
func (p FailoverGroupOperationPredicate) Matches(input FailoverGroup) bool
type FailoverGroupProperties ¶
type FailoverGroupProperties struct { Databases *[]string `json:"databases,omitempty"` PartnerServers []PartnerInfo `json:"partnerServers"` ReadOnlyEndpoint *FailoverGroupReadOnlyEndpoint `json:"readOnlyEndpoint,omitempty"` ReadWriteEndpoint FailoverGroupReadWriteEndpoint `json:"readWriteEndpoint"` ReplicationRole *FailoverGroupReplicationRole `json:"replicationRole,omitempty"` ReplicationState *string `json:"replicationState,omitempty"` }
type FailoverGroupReadOnlyEndpoint ¶
type FailoverGroupReadOnlyEndpoint struct { FailoverPolicy *ReadOnlyEndpointFailoverPolicy `json:"failoverPolicy,omitempty"` TargetServer *string `json:"targetServer,omitempty"` }
type FailoverGroupReadWriteEndpoint ¶
type FailoverGroupReadWriteEndpoint struct { FailoverPolicy ReadWriteEndpointFailoverPolicy `json:"failoverPolicy"` FailoverWithDataLossGracePeriodMinutes *int64 `json:"failoverWithDataLossGracePeriodMinutes,omitempty"` }
type FailoverGroupReplicationRole ¶
type FailoverGroupReplicationRole string
const ( FailoverGroupReplicationRolePrimary FailoverGroupReplicationRole = "Primary" FailoverGroupReplicationRoleSecondary FailoverGroupReplicationRole = "Secondary" )
func (*FailoverGroupReplicationRole) UnmarshalJSON ¶
func (s *FailoverGroupReplicationRole) UnmarshalJSON(bytes []byte) error
type FailoverGroupUpdate ¶
type FailoverGroupUpdate struct { Properties *FailoverGroupUpdateProperties `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type FailoverGroupUpdateProperties ¶
type FailoverGroupUpdateProperties struct { Databases *[]string `json:"databases,omitempty"` PartnerServers *[]PartnerInfo `json:"partnerServers,omitempty"` ReadOnlyEndpoint *FailoverGroupReadOnlyEndpoint `json:"readOnlyEndpoint,omitempty"` ReadWriteEndpoint *FailoverGroupReadWriteEndpoint `json:"readWriteEndpoint,omitempty"` }
type FailoverGroupsClient ¶
type FailoverGroupsClient struct {
Client *resourcemanager.Client
}
func NewFailoverGroupsClientWithBaseURI ¶
func NewFailoverGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*FailoverGroupsClient, error)
func (FailoverGroupsClient) CreateOrUpdate ¶
func (c FailoverGroupsClient) CreateOrUpdate(ctx context.Context, id FailoverGroupId, input FailoverGroup) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (FailoverGroupsClient) CreateOrUpdateThenPoll ¶
func (c FailoverGroupsClient) CreateOrUpdateThenPoll(ctx context.Context, id FailoverGroupId, input FailoverGroup) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (FailoverGroupsClient) Delete ¶
func (c FailoverGroupsClient) Delete(ctx context.Context, id FailoverGroupId) (result DeleteOperationResponse, err error)
Delete ...
func (FailoverGroupsClient) DeleteThenPoll ¶
func (c FailoverGroupsClient) DeleteThenPoll(ctx context.Context, id FailoverGroupId) error
DeleteThenPoll performs Delete then polls until it's completed
func (FailoverGroupsClient) Failover ¶
func (c FailoverGroupsClient) Failover(ctx context.Context, id FailoverGroupId) (result FailoverOperationResponse, err error)
Failover ...
func (FailoverGroupsClient) FailoverThenPoll ¶
func (c FailoverGroupsClient) FailoverThenPoll(ctx context.Context, id FailoverGroupId) error
FailoverThenPoll performs Failover then polls until it's completed
func (FailoverGroupsClient) ForceFailoverAllowDataLoss ¶
func (c FailoverGroupsClient) ForceFailoverAllowDataLoss(ctx context.Context, id FailoverGroupId) (result ForceFailoverAllowDataLossOperationResponse, err error)
ForceFailoverAllowDataLoss ...
func (FailoverGroupsClient) ForceFailoverAllowDataLossThenPoll ¶
func (c FailoverGroupsClient) ForceFailoverAllowDataLossThenPoll(ctx context.Context, id FailoverGroupId) error
ForceFailoverAllowDataLossThenPoll performs ForceFailoverAllowDataLoss then polls until it's completed
func (FailoverGroupsClient) Get ¶
func (c FailoverGroupsClient) Get(ctx context.Context, id FailoverGroupId) (result GetOperationResponse, err error)
Get ...
func (FailoverGroupsClient) ListByServer ¶
func (c FailoverGroupsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error)
ListByServer ...
func (FailoverGroupsClient) ListByServerComplete ¶
func (c FailoverGroupsClient) ListByServerComplete(ctx context.Context, id commonids.SqlServerId) (ListByServerCompleteResult, error)
ListByServerComplete retrieves all the results into a single object
func (FailoverGroupsClient) ListByServerCompleteMatchingPredicate ¶
func (c FailoverGroupsClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id commonids.SqlServerId, predicate FailoverGroupOperationPredicate) (result ListByServerCompleteResult, err error)
ListByServerCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (FailoverGroupsClient) TryPlannedBeforeForcedFailover ¶
func (c FailoverGroupsClient) TryPlannedBeforeForcedFailover(ctx context.Context, id FailoverGroupId) (result TryPlannedBeforeForcedFailoverOperationResponse, err error)
TryPlannedBeforeForcedFailover ...
func (FailoverGroupsClient) TryPlannedBeforeForcedFailoverThenPoll ¶
func (c FailoverGroupsClient) TryPlannedBeforeForcedFailoverThenPoll(ctx context.Context, id FailoverGroupId) error
TryPlannedBeforeForcedFailoverThenPoll performs TryPlannedBeforeForcedFailover then polls until it's completed
func (FailoverGroupsClient) Update ¶
func (c FailoverGroupsClient) Update(ctx context.Context, id FailoverGroupId, input FailoverGroupUpdate) (result UpdateOperationResponse, err error)
Update ...
func (FailoverGroupsClient) UpdateThenPoll ¶
func (c FailoverGroupsClient) UpdateThenPoll(ctx context.Context, id FailoverGroupId, input FailoverGroupUpdate) error
UpdateThenPoll performs Update then polls until it's completed
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *FailoverGroup }
type ListByServerCompleteResult ¶
type ListByServerCompleteResult struct {
Items []FailoverGroup
}
type ListByServerOperationResponse ¶
type ListByServerOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]FailoverGroup }
type PartnerInfo ¶
type PartnerInfo struct { Id string `json:"id"` Location *string `json:"location,omitempty"` ReplicationRole *FailoverGroupReplicationRole `json:"replicationRole,omitempty"` }
type ReadOnlyEndpointFailoverPolicy ¶
type ReadOnlyEndpointFailoverPolicy string
const ( ReadOnlyEndpointFailoverPolicyDisabled ReadOnlyEndpointFailoverPolicy = "Disabled" ReadOnlyEndpointFailoverPolicyEnabled ReadOnlyEndpointFailoverPolicy = "Enabled" )
func (*ReadOnlyEndpointFailoverPolicy) UnmarshalJSON ¶
func (s *ReadOnlyEndpointFailoverPolicy) UnmarshalJSON(bytes []byte) error
type ReadWriteEndpointFailoverPolicy ¶
type ReadWriteEndpointFailoverPolicy string
const ( ReadWriteEndpointFailoverPolicyAutomatic ReadWriteEndpointFailoverPolicy = "Automatic" ReadWriteEndpointFailoverPolicyManual ReadWriteEndpointFailoverPolicy = "Manual" )
func (*ReadWriteEndpointFailoverPolicy) UnmarshalJSON ¶
func (s *ReadWriteEndpointFailoverPolicy) UnmarshalJSON(bytes []byte) error
Source Files ¶
- client.go
- constants.go
- id_failovergroup.go
- method_createorupdate.go
- method_delete.go
- method_failover.go
- method_forcefailoverallowdataloss.go
- method_get.go
- method_listbyserver.go
- method_tryplannedbeforeforcedfailover.go
- method_update.go
- model_failovergroup.go
- model_failovergroupproperties.go
- model_failovergroupreadonlyendpoint.go
- model_failovergroupreadwriteendpoint.go
- model_failovergroupupdate.go
- model_failovergroupupdateproperties.go
- model_partnerinfo.go
- predicates.go
- version.go