Documentation ¶
Index ¶
- func PossibleValuesForInstanceFailoverGroupReplicationRole() []string
- func PossibleValuesForReadOnlyEndpointFailoverPolicy() []string
- func PossibleValuesForReadWriteEndpointFailoverPolicy() []string
- func ValidateInstanceFailoverGroupID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateProviderLocationID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type FailoverOperationResponse
- type ForceFailoverAllowDataLossOperationResponse
- type GetOperationResponse
- type InstanceFailoverGroup
- type InstanceFailoverGroupId
- func NewInstanceFailoverGroupID(subscriptionId string, resourceGroupName string, locationName string, ...) InstanceFailoverGroupId
- func ParseInstanceFailoverGroupID(input string) (*InstanceFailoverGroupId, error)
- func ParseInstanceFailoverGroupIDInsensitively(input string) (*InstanceFailoverGroupId, error)
- type InstanceFailoverGroupOperationPredicate
- type InstanceFailoverGroupProperties
- type InstanceFailoverGroupReadOnlyEndpoint
- type InstanceFailoverGroupReadWriteEndpoint
- type InstanceFailoverGroupReplicationRole
- type InstanceFailoverGroupsClient
- func (c InstanceFailoverGroupsClient) CreateOrUpdate(ctx context.Context, id InstanceFailoverGroupId, input InstanceFailoverGroup) (result CreateOrUpdateOperationResponse, err error)
- func (c InstanceFailoverGroupsClient) CreateOrUpdateThenPoll(ctx context.Context, id InstanceFailoverGroupId, input InstanceFailoverGroup) error
- func (c InstanceFailoverGroupsClient) Delete(ctx context.Context, id InstanceFailoverGroupId) (result DeleteOperationResponse, err error)
- func (c InstanceFailoverGroupsClient) DeleteThenPoll(ctx context.Context, id InstanceFailoverGroupId) error
- func (c InstanceFailoverGroupsClient) Failover(ctx context.Context, id InstanceFailoverGroupId) (result FailoverOperationResponse, err error)
- func (c InstanceFailoverGroupsClient) FailoverThenPoll(ctx context.Context, id InstanceFailoverGroupId) error
- func (c InstanceFailoverGroupsClient) ForceFailoverAllowDataLoss(ctx context.Context, id InstanceFailoverGroupId) (result ForceFailoverAllowDataLossOperationResponse, err error)
- func (c InstanceFailoverGroupsClient) ForceFailoverAllowDataLossThenPoll(ctx context.Context, id InstanceFailoverGroupId) error
- func (c InstanceFailoverGroupsClient) Get(ctx context.Context, id InstanceFailoverGroupId) (result GetOperationResponse, err error)
- func (c InstanceFailoverGroupsClient) ListByLocation(ctx context.Context, id ProviderLocationId) (result ListByLocationOperationResponse, err error)
- func (c InstanceFailoverGroupsClient) ListByLocationComplete(ctx context.Context, id ProviderLocationId) (ListByLocationCompleteResult, error)
- func (c InstanceFailoverGroupsClient) ListByLocationCompleteMatchingPredicate(ctx context.Context, id ProviderLocationId, ...) (result ListByLocationCompleteResult, err error)
- type ListByLocationCompleteResult
- type ListByLocationOperationResponse
- type ManagedInstancePairInfo
- type PartnerRegionInfo
- type ProviderLocationId
- type ReadOnlyEndpointFailoverPolicy
- type ReadWriteEndpointFailoverPolicy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForInstanceFailoverGroupReplicationRole ¶
func PossibleValuesForInstanceFailoverGroupReplicationRole() []string
func PossibleValuesForReadOnlyEndpointFailoverPolicy ¶
func PossibleValuesForReadOnlyEndpointFailoverPolicy() []string
func PossibleValuesForReadWriteEndpointFailoverPolicy ¶
func PossibleValuesForReadWriteEndpointFailoverPolicy() []string
func ValidateInstanceFailoverGroupID ¶
func ValidateInstanceFailoverGroupID(input interface{}, key string) (warnings []string, errors []error)
ValidateInstanceFailoverGroupID checks that 'input' can be parsed as a Instance Failover Group ID
func ValidateProviderLocationID ¶
ValidateProviderLocationID checks that 'input' can be parsed as a Provider Location ID
Types ¶
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *InstanceFailoverGroup }
type InstanceFailoverGroup ¶
type InstanceFailoverGroup struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *InstanceFailoverGroupProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type InstanceFailoverGroupId ¶
type InstanceFailoverGroupId struct { SubscriptionId string ResourceGroupName string LocationName string InstanceFailoverGroupName string }
InstanceFailoverGroupId is a struct representing the Resource ID for a Instance Failover Group
func NewInstanceFailoverGroupID ¶
func NewInstanceFailoverGroupID(subscriptionId string, resourceGroupName string, locationName string, instanceFailoverGroupName string) InstanceFailoverGroupId
NewInstanceFailoverGroupID returns a new InstanceFailoverGroupId struct
func ParseInstanceFailoverGroupID ¶
func ParseInstanceFailoverGroupID(input string) (*InstanceFailoverGroupId, error)
ParseInstanceFailoverGroupID parses 'input' into a InstanceFailoverGroupId
func ParseInstanceFailoverGroupIDInsensitively ¶
func ParseInstanceFailoverGroupIDInsensitively(input string) (*InstanceFailoverGroupId, error)
ParseInstanceFailoverGroupIDInsensitively parses 'input' case-insensitively into a InstanceFailoverGroupId note: this method should only be used for API response data and not user input
func (*InstanceFailoverGroupId) FromParseResult ¶ added in v0.20231127.1171502
func (id *InstanceFailoverGroupId) FromParseResult(input resourceids.ParseResult) error
func (InstanceFailoverGroupId) ID ¶
func (id InstanceFailoverGroupId) ID() string
ID returns the formatted Instance Failover Group ID
func (InstanceFailoverGroupId) Segments ¶
func (id InstanceFailoverGroupId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Instance Failover Group ID
func (InstanceFailoverGroupId) String ¶
func (id InstanceFailoverGroupId) String() string
String returns a human-readable description of this Instance Failover Group ID
type InstanceFailoverGroupOperationPredicate ¶
func (InstanceFailoverGroupOperationPredicate) Matches ¶
func (p InstanceFailoverGroupOperationPredicate) Matches(input InstanceFailoverGroup) bool
type InstanceFailoverGroupProperties ¶
type InstanceFailoverGroupProperties struct { ManagedInstancePairs []ManagedInstancePairInfo `json:"managedInstancePairs"` PartnerRegions []PartnerRegionInfo `json:"partnerRegions"` ReadOnlyEndpoint *InstanceFailoverGroupReadOnlyEndpoint `json:"readOnlyEndpoint,omitempty"` ReadWriteEndpoint InstanceFailoverGroupReadWriteEndpoint `json:"readWriteEndpoint"` ReplicationRole *InstanceFailoverGroupReplicationRole `json:"replicationRole,omitempty"` ReplicationState *string `json:"replicationState,omitempty"` }
type InstanceFailoverGroupReadOnlyEndpoint ¶
type InstanceFailoverGroupReadOnlyEndpoint struct {
FailoverPolicy *ReadOnlyEndpointFailoverPolicy `json:"failoverPolicy,omitempty"`
}
type InstanceFailoverGroupReadWriteEndpoint ¶
type InstanceFailoverGroupReadWriteEndpoint struct { FailoverPolicy ReadWriteEndpointFailoverPolicy `json:"failoverPolicy"` FailoverWithDataLossGracePeriodMinutes *int64 `json:"failoverWithDataLossGracePeriodMinutes,omitempty"` }
type InstanceFailoverGroupReplicationRole ¶
type InstanceFailoverGroupReplicationRole string
const ( InstanceFailoverGroupReplicationRolePrimary InstanceFailoverGroupReplicationRole = "Primary" InstanceFailoverGroupReplicationRoleSecondary InstanceFailoverGroupReplicationRole = "Secondary" )
func (*InstanceFailoverGroupReplicationRole) UnmarshalJSON ¶
func (s *InstanceFailoverGroupReplicationRole) UnmarshalJSON(bytes []byte) error
type InstanceFailoverGroupsClient ¶
type InstanceFailoverGroupsClient struct {
Client *resourcemanager.Client
}
func NewInstanceFailoverGroupsClientWithBaseURI ¶
func NewInstanceFailoverGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*InstanceFailoverGroupsClient, error)
func (InstanceFailoverGroupsClient) CreateOrUpdate ¶
func (c InstanceFailoverGroupsClient) CreateOrUpdate(ctx context.Context, id InstanceFailoverGroupId, input InstanceFailoverGroup) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (InstanceFailoverGroupsClient) CreateOrUpdateThenPoll ¶
func (c InstanceFailoverGroupsClient) CreateOrUpdateThenPoll(ctx context.Context, id InstanceFailoverGroupId, input InstanceFailoverGroup) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (InstanceFailoverGroupsClient) Delete ¶
func (c InstanceFailoverGroupsClient) Delete(ctx context.Context, id InstanceFailoverGroupId) (result DeleteOperationResponse, err error)
Delete ...
func (InstanceFailoverGroupsClient) DeleteThenPoll ¶
func (c InstanceFailoverGroupsClient) DeleteThenPoll(ctx context.Context, id InstanceFailoverGroupId) error
DeleteThenPoll performs Delete then polls until it's completed
func (InstanceFailoverGroupsClient) Failover ¶
func (c InstanceFailoverGroupsClient) Failover(ctx context.Context, id InstanceFailoverGroupId) (result FailoverOperationResponse, err error)
Failover ...
func (InstanceFailoverGroupsClient) FailoverThenPoll ¶
func (c InstanceFailoverGroupsClient) FailoverThenPoll(ctx context.Context, id InstanceFailoverGroupId) error
FailoverThenPoll performs Failover then polls until it's completed
func (InstanceFailoverGroupsClient) ForceFailoverAllowDataLoss ¶
func (c InstanceFailoverGroupsClient) ForceFailoverAllowDataLoss(ctx context.Context, id InstanceFailoverGroupId) (result ForceFailoverAllowDataLossOperationResponse, err error)
ForceFailoverAllowDataLoss ...
func (InstanceFailoverGroupsClient) ForceFailoverAllowDataLossThenPoll ¶
func (c InstanceFailoverGroupsClient) ForceFailoverAllowDataLossThenPoll(ctx context.Context, id InstanceFailoverGroupId) error
ForceFailoverAllowDataLossThenPoll performs ForceFailoverAllowDataLoss then polls until it's completed
func (InstanceFailoverGroupsClient) Get ¶
func (c InstanceFailoverGroupsClient) Get(ctx context.Context, id InstanceFailoverGroupId) (result GetOperationResponse, err error)
Get ...
func (InstanceFailoverGroupsClient) ListByLocation ¶
func (c InstanceFailoverGroupsClient) ListByLocation(ctx context.Context, id ProviderLocationId) (result ListByLocationOperationResponse, err error)
ListByLocation ...
func (InstanceFailoverGroupsClient) ListByLocationComplete ¶
func (c InstanceFailoverGroupsClient) ListByLocationComplete(ctx context.Context, id ProviderLocationId) (ListByLocationCompleteResult, error)
ListByLocationComplete retrieves all the results into a single object
func (InstanceFailoverGroupsClient) ListByLocationCompleteMatchingPredicate ¶
func (c InstanceFailoverGroupsClient) ListByLocationCompleteMatchingPredicate(ctx context.Context, id ProviderLocationId, predicate InstanceFailoverGroupOperationPredicate) (result ListByLocationCompleteResult, err error)
ListByLocationCompleteMatchingPredicate retrieves all the results and then applies the predicate
type ListByLocationCompleteResult ¶
type ListByLocationCompleteResult struct {
Items []InstanceFailoverGroup
}
type ListByLocationOperationResponse ¶
type ListByLocationOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]InstanceFailoverGroup }
type ManagedInstancePairInfo ¶
type PartnerRegionInfo ¶
type PartnerRegionInfo struct { Location *string `json:"location,omitempty"` ReplicationRole *InstanceFailoverGroupReplicationRole `json:"replicationRole,omitempty"` }
type ProviderLocationId ¶
type ProviderLocationId struct { SubscriptionId string ResourceGroupName string LocationName string }
ProviderLocationId is a struct representing the Resource ID for a Provider Location
func NewProviderLocationID ¶
func NewProviderLocationID(subscriptionId string, resourceGroupName string, locationName string) ProviderLocationId
NewProviderLocationID returns a new ProviderLocationId struct
func ParseProviderLocationID ¶
func ParseProviderLocationID(input string) (*ProviderLocationId, error)
ParseProviderLocationID parses 'input' into a ProviderLocationId
func ParseProviderLocationIDInsensitively ¶
func ParseProviderLocationIDInsensitively(input string) (*ProviderLocationId, error)
ParseProviderLocationIDInsensitively parses 'input' case-insensitively into a ProviderLocationId note: this method should only be used for API response data and not user input
func (*ProviderLocationId) FromParseResult ¶ added in v0.20231127.1171502
func (id *ProviderLocationId) FromParseResult(input resourceids.ParseResult) error
func (ProviderLocationId) ID ¶
func (id ProviderLocationId) ID() string
ID returns the formatted Provider Location ID
func (ProviderLocationId) Segments ¶
func (id ProviderLocationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Provider Location ID
func (ProviderLocationId) String ¶
func (id ProviderLocationId) String() string
String returns a human-readable description of this Provider Location ID
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_instancefailovergroup.go
- id_providerlocation.go
- method_createorupdate.go
- method_delete.go
- method_failover.go
- method_forcefailoverallowdataloss.go
- method_get.go
- method_listbylocation.go
- model_instancefailovergroup.go
- model_instancefailovergroupproperties.go
- model_instancefailovergroupreadonlyendpoint.go
- model_instancefailovergroupreadwriteendpoint.go
- model_managedinstancepairinfo.go
- model_partnerregioninfo.go
- predicates.go
- version.go