Documentation ¶
Index ¶
- func PossibleValuesForAccessRights() []string
- func PossibleValuesForProvisioningStateDR() []string
- func PossibleValuesForRoleDisasterRecovery() []string
- func PossibleValuesForUnavailableReason() []string
- func ValidateDisasterRecoveryConfigAuthorizationRuleID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateDisasterRecoveryConfigID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateNamespaceID(input interface{}, key string) (warnings []string, errors []error)
- type AccessKeys
- type AccessRights
- type ArmDisasterRecovery
- type ArmDisasterRecoveryOperationPredicate
- type ArmDisasterRecoveryProperties
- type BreakPairingOperationResponse
- type CheckNameAvailability
- type CheckNameAvailabilityOperationResponse
- type CheckNameAvailabilityResult
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type DisasterRecoveryConfigAuthorizationRuleId
- func NewDisasterRecoveryConfigAuthorizationRuleID(subscriptionId string, resourceGroupName string, namespaceName string, ...) DisasterRecoveryConfigAuthorizationRuleId
- func ParseDisasterRecoveryConfigAuthorizationRuleID(input string) (*DisasterRecoveryConfigAuthorizationRuleId, error)
- func ParseDisasterRecoveryConfigAuthorizationRuleIDInsensitively(input string) (*DisasterRecoveryConfigAuthorizationRuleId, error)
- type DisasterRecoveryConfigId
- func NewDisasterRecoveryConfigID(subscriptionId string, resourceGroupName string, namespaceName string, ...) DisasterRecoveryConfigId
- func ParseDisasterRecoveryConfigID(input string) (*DisasterRecoveryConfigId, error)
- func ParseDisasterRecoveryConfigIDInsensitively(input string) (*DisasterRecoveryConfigId, error)
- type DisasterRecoveryConfigsClient
- func (c DisasterRecoveryConfigsClient) BreakPairing(ctx context.Context, id DisasterRecoveryConfigId) (result BreakPairingOperationResponse, err error)
- func (c DisasterRecoveryConfigsClient) CheckNameAvailability(ctx context.Context, id NamespaceId, input CheckNameAvailability) (result CheckNameAvailabilityOperationResponse, err error)
- func (c DisasterRecoveryConfigsClient) CreateOrUpdate(ctx context.Context, id DisasterRecoveryConfigId, input ArmDisasterRecovery) (result CreateOrUpdateOperationResponse, err error)
- func (c DisasterRecoveryConfigsClient) Delete(ctx context.Context, id DisasterRecoveryConfigId) (result DeleteOperationResponse, err error)
- func (c DisasterRecoveryConfigsClient) FailOver(ctx context.Context, id DisasterRecoveryConfigId, input FailoverProperties) (result FailOverOperationResponse, err error)
- func (c DisasterRecoveryConfigsClient) Get(ctx context.Context, id DisasterRecoveryConfigId) (result GetOperationResponse, err error)
- func (c DisasterRecoveryConfigsClient) GetAuthorizationRule(ctx context.Context, id DisasterRecoveryConfigAuthorizationRuleId) (result GetAuthorizationRuleOperationResponse, err error)
- func (c DisasterRecoveryConfigsClient) List(ctx context.Context, id NamespaceId) (result ListOperationResponse, err error)
- func (c DisasterRecoveryConfigsClient) ListAuthorizationRules(ctx context.Context, id DisasterRecoveryConfigId) (result ListAuthorizationRulesOperationResponse, err error)
- func (c DisasterRecoveryConfigsClient) ListAuthorizationRulesComplete(ctx context.Context, id DisasterRecoveryConfigId) (ListAuthorizationRulesCompleteResult, error)
- func (c DisasterRecoveryConfigsClient) ListAuthorizationRulesCompleteMatchingPredicate(ctx context.Context, id DisasterRecoveryConfigId, ...) (result ListAuthorizationRulesCompleteResult, err error)
- func (c DisasterRecoveryConfigsClient) ListComplete(ctx context.Context, id NamespaceId) (ListCompleteResult, error)
- func (c DisasterRecoveryConfigsClient) ListCompleteMatchingPredicate(ctx context.Context, id NamespaceId, ...) (result ListCompleteResult, err error)
- func (c DisasterRecoveryConfigsClient) ListKeys(ctx context.Context, id DisasterRecoveryConfigAuthorizationRuleId) (result ListKeysOperationResponse, err error)
- type FailOverOperationResponse
- type FailoverProperties
- type FailoverPropertiesProperties
- type GetAuthorizationRuleOperationResponse
- type GetOperationResponse
- type ListAuthorizationRulesCompleteResult
- type ListAuthorizationRulesOperationResponse
- type ListCompleteResult
- type ListKeysOperationResponse
- type ListOperationResponse
- type NamespaceId
- type ProvisioningStateDR
- type RoleDisasterRecovery
- type SBAuthorizationRule
- type SBAuthorizationRuleOperationPredicate
- type SBAuthorizationRuleProperties
- type UnavailableReason
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAccessRights ¶
func PossibleValuesForAccessRights() []string
func PossibleValuesForProvisioningStateDR ¶
func PossibleValuesForProvisioningStateDR() []string
func PossibleValuesForRoleDisasterRecovery ¶
func PossibleValuesForRoleDisasterRecovery() []string
func PossibleValuesForUnavailableReason ¶
func PossibleValuesForUnavailableReason() []string
func ValidateDisasterRecoveryConfigAuthorizationRuleID ¶
func ValidateDisasterRecoveryConfigAuthorizationRuleID(input interface{}, key string) (warnings []string, errors []error)
ValidateDisasterRecoveryConfigAuthorizationRuleID checks that 'input' can be parsed as a Disaster Recovery Config Authorization Rule ID
func ValidateDisasterRecoveryConfigID ¶
func ValidateDisasterRecoveryConfigID(input interface{}, key string) (warnings []string, errors []error)
ValidateDisasterRecoveryConfigID checks that 'input' can be parsed as a Disaster Recovery Config ID
func ValidateNamespaceID ¶
ValidateNamespaceID checks that 'input' can be parsed as a Namespace ID
Types ¶
type AccessKeys ¶
type AccessKeys struct { AliasPrimaryConnectionString *string `json:"aliasPrimaryConnectionString,omitempty"` AliasSecondaryConnectionString *string `json:"aliasSecondaryConnectionString,omitempty"` KeyName *string `json:"keyName,omitempty"` PrimaryConnectionString *string `json:"primaryConnectionString,omitempty"` PrimaryKey *string `json:"primaryKey,omitempty"` SecondaryConnectionString *string `json:"secondaryConnectionString,omitempty"` SecondaryKey *string `json:"secondaryKey,omitempty"` }
type AccessRights ¶
type AccessRights string
const ( AccessRightsListen AccessRights = "Listen" AccessRightsManage AccessRights = "Manage" AccessRightsSend AccessRights = "Send" )
func (*AccessRights) UnmarshalJSON ¶ added in v0.20230406.1124617
func (s *AccessRights) UnmarshalJSON(bytes []byte) error
type ArmDisasterRecovery ¶
type ArmDisasterRecovery struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *ArmDisasterRecoveryProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type ArmDisasterRecoveryOperationPredicate ¶
func (ArmDisasterRecoveryOperationPredicate) Matches ¶
func (p ArmDisasterRecoveryOperationPredicate) Matches(input ArmDisasterRecovery) bool
type ArmDisasterRecoveryProperties ¶
type ArmDisasterRecoveryProperties struct { AlternateName *string `json:"alternateName,omitempty"` PartnerNamespace *string `json:"partnerNamespace,omitempty"` PendingReplicationOperationsCount *int64 `json:"pendingReplicationOperationsCount,omitempty"` ProvisioningState *ProvisioningStateDR `json:"provisioningState,omitempty"` Role *RoleDisasterRecovery `json:"role,omitempty"` }
type CheckNameAvailability ¶
type CheckNameAvailability struct {
Name string `json:"name"`
}
type CheckNameAvailabilityOperationResponse ¶
type CheckNameAvailabilityOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *CheckNameAvailabilityResult }
type CheckNameAvailabilityResult ¶
type CheckNameAvailabilityResult struct { Message *string `json:"message,omitempty"` NameAvailable *bool `json:"nameAvailable,omitempty"` Reason *UnavailableReason `json:"reason,omitempty"` }
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ArmDisasterRecovery }
type DeleteOperationResponse ¶
type DisasterRecoveryConfigAuthorizationRuleId ¶
type DisasterRecoveryConfigAuthorizationRuleId struct { SubscriptionId string ResourceGroupName string NamespaceName string DisasterRecoveryConfigName string AuthorizationRuleName string }
DisasterRecoveryConfigAuthorizationRuleId is a struct representing the Resource ID for a Disaster Recovery Config Authorization Rule
func NewDisasterRecoveryConfigAuthorizationRuleID ¶
func NewDisasterRecoveryConfigAuthorizationRuleID(subscriptionId string, resourceGroupName string, namespaceName string, disasterRecoveryConfigName string, authorizationRuleName string) DisasterRecoveryConfigAuthorizationRuleId
NewDisasterRecoveryConfigAuthorizationRuleID returns a new DisasterRecoveryConfigAuthorizationRuleId struct
func ParseDisasterRecoveryConfigAuthorizationRuleID ¶
func ParseDisasterRecoveryConfigAuthorizationRuleID(input string) (*DisasterRecoveryConfigAuthorizationRuleId, error)
ParseDisasterRecoveryConfigAuthorizationRuleID parses 'input' into a DisasterRecoveryConfigAuthorizationRuleId
func ParseDisasterRecoveryConfigAuthorizationRuleIDInsensitively ¶
func ParseDisasterRecoveryConfigAuthorizationRuleIDInsensitively(input string) (*DisasterRecoveryConfigAuthorizationRuleId, error)
ParseDisasterRecoveryConfigAuthorizationRuleIDInsensitively parses 'input' case-insensitively into a DisasterRecoveryConfigAuthorizationRuleId note: this method should only be used for API response data and not user input
func (DisasterRecoveryConfigAuthorizationRuleId) ID ¶
func (id DisasterRecoveryConfigAuthorizationRuleId) ID() string
ID returns the formatted Disaster Recovery Config Authorization Rule ID
func (DisasterRecoveryConfigAuthorizationRuleId) Segments ¶
func (id DisasterRecoveryConfigAuthorizationRuleId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Disaster Recovery Config Authorization Rule ID
func (DisasterRecoveryConfigAuthorizationRuleId) String ¶
func (id DisasterRecoveryConfigAuthorizationRuleId) String() string
String returns a human-readable description of this Disaster Recovery Config Authorization Rule ID
type DisasterRecoveryConfigId ¶
type DisasterRecoveryConfigId struct { SubscriptionId string ResourceGroupName string NamespaceName string DisasterRecoveryConfigName string }
DisasterRecoveryConfigId is a struct representing the Resource ID for a Disaster Recovery Config
func NewDisasterRecoveryConfigID ¶
func NewDisasterRecoveryConfigID(subscriptionId string, resourceGroupName string, namespaceName string, disasterRecoveryConfigName string) DisasterRecoveryConfigId
NewDisasterRecoveryConfigID returns a new DisasterRecoveryConfigId struct
func ParseDisasterRecoveryConfigID ¶
func ParseDisasterRecoveryConfigID(input string) (*DisasterRecoveryConfigId, error)
ParseDisasterRecoveryConfigID parses 'input' into a DisasterRecoveryConfigId
func ParseDisasterRecoveryConfigIDInsensitively ¶
func ParseDisasterRecoveryConfigIDInsensitively(input string) (*DisasterRecoveryConfigId, error)
ParseDisasterRecoveryConfigIDInsensitively parses 'input' case-insensitively into a DisasterRecoveryConfigId note: this method should only be used for API response data and not user input
func (DisasterRecoveryConfigId) ID ¶
func (id DisasterRecoveryConfigId) ID() string
ID returns the formatted Disaster Recovery Config ID
func (DisasterRecoveryConfigId) Segments ¶
func (id DisasterRecoveryConfigId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Disaster Recovery Config ID
func (DisasterRecoveryConfigId) String ¶
func (id DisasterRecoveryConfigId) String() string
String returns a human-readable description of this Disaster Recovery Config ID
type DisasterRecoveryConfigsClient ¶
type DisasterRecoveryConfigsClient struct {
Client *resourcemanager.Client
}
func NewDisasterRecoveryConfigsClientWithBaseURI ¶
func NewDisasterRecoveryConfigsClientWithBaseURI(api environments.Api) (*DisasterRecoveryConfigsClient, error)
func (DisasterRecoveryConfigsClient) BreakPairing ¶
func (c DisasterRecoveryConfigsClient) BreakPairing(ctx context.Context, id DisasterRecoveryConfigId) (result BreakPairingOperationResponse, err error)
BreakPairing ...
func (DisasterRecoveryConfigsClient) CheckNameAvailability ¶
func (c DisasterRecoveryConfigsClient) CheckNameAvailability(ctx context.Context, id NamespaceId, input CheckNameAvailability) (result CheckNameAvailabilityOperationResponse, err error)
CheckNameAvailability ...
func (DisasterRecoveryConfigsClient) CreateOrUpdate ¶
func (c DisasterRecoveryConfigsClient) CreateOrUpdate(ctx context.Context, id DisasterRecoveryConfigId, input ArmDisasterRecovery) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (DisasterRecoveryConfigsClient) Delete ¶
func (c DisasterRecoveryConfigsClient) Delete(ctx context.Context, id DisasterRecoveryConfigId) (result DeleteOperationResponse, err error)
Delete ...
func (DisasterRecoveryConfigsClient) FailOver ¶
func (c DisasterRecoveryConfigsClient) FailOver(ctx context.Context, id DisasterRecoveryConfigId, input FailoverProperties) (result FailOverOperationResponse, err error)
FailOver ...
func (DisasterRecoveryConfigsClient) Get ¶
func (c DisasterRecoveryConfigsClient) Get(ctx context.Context, id DisasterRecoveryConfigId) (result GetOperationResponse, err error)
Get ...
func (DisasterRecoveryConfigsClient) GetAuthorizationRule ¶
func (c DisasterRecoveryConfigsClient) GetAuthorizationRule(ctx context.Context, id DisasterRecoveryConfigAuthorizationRuleId) (result GetAuthorizationRuleOperationResponse, err error)
GetAuthorizationRule ...
func (DisasterRecoveryConfigsClient) List ¶
func (c DisasterRecoveryConfigsClient) List(ctx context.Context, id NamespaceId) (result ListOperationResponse, err error)
List ...
func (DisasterRecoveryConfigsClient) ListAuthorizationRules ¶
func (c DisasterRecoveryConfigsClient) ListAuthorizationRules(ctx context.Context, id DisasterRecoveryConfigId) (result ListAuthorizationRulesOperationResponse, err error)
ListAuthorizationRules ...
func (DisasterRecoveryConfigsClient) ListAuthorizationRulesComplete ¶
func (c DisasterRecoveryConfigsClient) ListAuthorizationRulesComplete(ctx context.Context, id DisasterRecoveryConfigId) (ListAuthorizationRulesCompleteResult, error)
ListAuthorizationRulesComplete retrieves all the results into a single object
func (DisasterRecoveryConfigsClient) ListAuthorizationRulesCompleteMatchingPredicate ¶
func (c DisasterRecoveryConfigsClient) ListAuthorizationRulesCompleteMatchingPredicate(ctx context.Context, id DisasterRecoveryConfigId, predicate SBAuthorizationRuleOperationPredicate) (result ListAuthorizationRulesCompleteResult, err error)
ListAuthorizationRulesCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (DisasterRecoveryConfigsClient) ListComplete ¶
func (c DisasterRecoveryConfigsClient) ListComplete(ctx context.Context, id NamespaceId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (DisasterRecoveryConfigsClient) ListCompleteMatchingPredicate ¶
func (c DisasterRecoveryConfigsClient) ListCompleteMatchingPredicate(ctx context.Context, id NamespaceId, predicate ArmDisasterRecoveryOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (DisasterRecoveryConfigsClient) ListKeys ¶
func (c DisasterRecoveryConfigsClient) ListKeys(ctx context.Context, id DisasterRecoveryConfigAuthorizationRuleId) (result ListKeysOperationResponse, err error)
ListKeys ...
type FailoverProperties ¶
type FailoverProperties struct {
Properties *FailoverPropertiesProperties `json:"properties,omitempty"`
}
type FailoverPropertiesProperties ¶
type FailoverPropertiesProperties struct {
IsSafeFailover *bool `json:"IsSafeFailover,omitempty"`
}
type GetAuthorizationRuleOperationResponse ¶
type GetAuthorizationRuleOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *SBAuthorizationRule }
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ArmDisasterRecovery }
type ListAuthorizationRulesCompleteResult ¶
type ListAuthorizationRulesCompleteResult struct {
Items []SBAuthorizationRule
}
type ListAuthorizationRulesOperationResponse ¶
type ListAuthorizationRulesOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]SBAuthorizationRule }
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []ArmDisasterRecovery
}
type ListKeysOperationResponse ¶
type ListKeysOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *AccessKeys }
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ArmDisasterRecovery }
type NamespaceId ¶
NamespaceId is a struct representing the Resource ID for a Namespace
func NewNamespaceID ¶
func NewNamespaceID(subscriptionId string, resourceGroupName string, namespaceName string) NamespaceId
NewNamespaceID returns a new NamespaceId struct
func ParseNamespaceID ¶
func ParseNamespaceID(input string) (*NamespaceId, error)
ParseNamespaceID parses 'input' into a NamespaceId
func ParseNamespaceIDInsensitively ¶
func ParseNamespaceIDInsensitively(input string) (*NamespaceId, error)
ParseNamespaceIDInsensitively parses 'input' case-insensitively into a NamespaceId note: this method should only be used for API response data and not user input
func (NamespaceId) Segments ¶
func (id NamespaceId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Namespace ID
func (NamespaceId) String ¶
func (id NamespaceId) String() string
String returns a human-readable description of this Namespace ID
type ProvisioningStateDR ¶
type ProvisioningStateDR string
const ( ProvisioningStateDRAccepted ProvisioningStateDR = "Accepted" ProvisioningStateDRFailed ProvisioningStateDR = "Failed" ProvisioningStateDRSucceeded ProvisioningStateDR = "Succeeded" )
func (*ProvisioningStateDR) UnmarshalJSON ¶ added in v0.20230406.1124617
func (s *ProvisioningStateDR) UnmarshalJSON(bytes []byte) error
type RoleDisasterRecovery ¶
type RoleDisasterRecovery string
const ( RoleDisasterRecoveryPrimary RoleDisasterRecovery = "Primary" RoleDisasterRecoveryPrimaryNotReplicating RoleDisasterRecovery = "PrimaryNotReplicating" RoleDisasterRecoverySecondary RoleDisasterRecovery = "Secondary" )
func (*RoleDisasterRecovery) UnmarshalJSON ¶ added in v0.20230406.1124617
func (s *RoleDisasterRecovery) UnmarshalJSON(bytes []byte) error
type SBAuthorizationRule ¶
type SBAuthorizationRule struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *SBAuthorizationRuleProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type SBAuthorizationRuleOperationPredicate ¶
func (SBAuthorizationRuleOperationPredicate) Matches ¶
func (p SBAuthorizationRuleOperationPredicate) Matches(input SBAuthorizationRule) bool
type SBAuthorizationRuleProperties ¶
type SBAuthorizationRuleProperties struct {
Rights []AccessRights `json:"rights"`
}
type UnavailableReason ¶
type UnavailableReason string
const ()
func (*UnavailableReason) UnmarshalJSON ¶ added in v0.20230406.1124617
func (s *UnavailableReason) UnmarshalJSON(bytes []byte) error
Source Files ¶
- client.go
- constants.go
- id_disasterrecoveryconfig.go
- id_disasterrecoveryconfigauthorizationrule.go
- id_namespace.go
- method_breakpairing.go
- method_checknameavailability.go
- method_createorupdate.go
- method_delete.go
- method_failover.go
- method_get.go
- method_getauthorizationrule.go
- method_list.go
- method_listauthorizationrules.go
- method_listkeys.go
- model_accesskeys.go
- model_armdisasterrecovery.go
- model_armdisasterrecoveryproperties.go
- model_checknameavailability.go
- model_checknameavailabilityresult.go
- model_failoverproperties.go
- model_failoverpropertiesproperties.go
- model_sbauthorizationrule.go
- model_sbauthorizationruleproperties.go
- predicates.go
- version.go