replicationprotectionclusters

package
v0.20240712.1173055 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MPL-2.0 Imports: 15 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectionclusters Documentation

The replicationprotectionclusters SDK allows for interaction with the Azure Resource Manager Service recoveryservicessiterecovery (API Version 2024-02-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectionclusters"

Client Initialization

client := replicationprotectionclusters.NewReplicationProtectionClustersClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ReplicationProtectionClustersClient.ApplyRecoveryPoint

ctx := context.TODO()
id := replicationprotectionclusters.NewReplicationProtectionClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectionClusterValue")

payload := replicationprotectionclusters.ApplyClusterRecoveryPointInput{
	// ...
}


if err := client.ApplyRecoveryPointThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: ReplicationProtectionClustersClient.Create

ctx := context.TODO()
id := replicationprotectionclusters.NewReplicationProtectionClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectionClusterValue")

payload := replicationprotectionclusters.ReplicationProtectionCluster{
	// ...
}


if err := client.CreateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: ReplicationProtectionClustersClient.FailoverCommit

ctx := context.TODO()
id := replicationprotectionclusters.NewReplicationProtectionClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectionClusterValue")

if err := client.FailoverCommitThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: ReplicationProtectionClustersClient.Get

ctx := context.TODO()
id := replicationprotectionclusters.NewReplicationProtectionClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectionClusterValue")

read, err := client.Get(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ReplicationProtectionClustersClient.List

ctx := context.TODO()
id := replicationprotectionclusters.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue")

// alternatively `client.List(ctx, id, replicationprotectionclusters.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, replicationprotectionclusters.DefaultListOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: ReplicationProtectionClustersClient.ListByReplicationProtectionContainers

ctx := context.TODO()
id := replicationprotectionclusters.NewReplicationProtectionContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue")

// alternatively `client.ListByReplicationProtectionContainers(ctx, id)` can be used to do batched pagination
items, err := client.ListByReplicationProtectionContainersComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: ReplicationProtectionClustersClient.Purge

ctx := context.TODO()
id := replicationprotectionclusters.NewReplicationProtectionClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectionClusterValue")

if err := client.PurgeThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: ReplicationProtectionClustersClient.RepairReplication

ctx := context.TODO()
id := replicationprotectionclusters.NewReplicationProtectionClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectionClusterValue")

if err := client.RepairReplicationThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: ReplicationProtectionClustersClient.TestFailover

ctx := context.TODO()
id := replicationprotectionclusters.NewReplicationProtectionClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectionClusterValue")

payload := replicationprotectionclusters.ClusterTestFailoverInput{
	// ...
}


if err := client.TestFailoverThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: ReplicationProtectionClustersClient.TestFailoverCleanup

ctx := context.TODO()
id := replicationprotectionclusters.NewReplicationProtectionClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectionClusterValue")

payload := replicationprotectionclusters.ClusterTestFailoverCleanupInput{
	// ...
}


if err := client.TestFailoverCleanupThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: ReplicationProtectionClustersClient.UnplannedFailover

ctx := context.TODO()
id := replicationprotectionclusters.NewReplicationProtectionClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectionClusterValue")

payload := replicationprotectionclusters.ClusterUnplannedFailoverInput{
	// ...
}


if err := client.UnplannedFailoverThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAutoProtectionOfDataDisk

func PossibleValuesForAutoProtectionOfDataDisk() []string

func PossibleValuesForFailoverDirection

func PossibleValuesForFailoverDirection() []string

func PossibleValuesForHealthErrorCustomerResolvability

func PossibleValuesForHealthErrorCustomerResolvability() []string

func PossibleValuesForMultiVMGroupCreateOption

func PossibleValuesForMultiVMGroupCreateOption() []string

func ValidateReplicationProtectionClusterID

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

ValidateReplicationProtectionClusterID checks that 'input' can be parsed as a Replication Protection Cluster ID

func ValidateReplicationProtectionContainerID

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

ValidateReplicationProtectionContainerID checks that 'input' can be parsed as a Replication Protection Container ID

func ValidateVaultID

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

ValidateVaultID checks that 'input' can be parsed as a Vault ID

Types

type A2AApplyClusterRecoveryPointInput

type A2AApplyClusterRecoveryPointInput struct {
}

func (A2AApplyClusterRecoveryPointInput) MarshalJSON

func (s A2AApplyClusterRecoveryPointInput) MarshalJSON() ([]byte, error)

type A2AClusterTestFailoverInput

type A2AClusterTestFailoverInput struct {
	ClusterRecoveryPointId       *string   `json:"clusterRecoveryPointId,omitempty"`
	IndividualNodeRecoveryPoints *[]string `json:"individualNodeRecoveryPoints,omitempty"`
}

func (A2AClusterTestFailoverInput) MarshalJSON

func (s A2AClusterTestFailoverInput) MarshalJSON() ([]byte, error)

type A2AClusterUnplannedFailoverInput

type A2AClusterUnplannedFailoverInput struct {
	ClusterRecoveryPointId       *string   `json:"clusterRecoveryPointId,omitempty"`
	IndividualNodeRecoveryPoints *[]string `json:"individualNodeRecoveryPoints,omitempty"`
}

func (A2AClusterUnplannedFailoverInput) MarshalJSON

func (s A2AClusterUnplannedFailoverInput) MarshalJSON() ([]byte, error)

type A2AProtectedManagedDiskDetails

type A2AProtectedManagedDiskDetails struct {
	AllowedDiskLevelOperation              *[]string `json:"allowedDiskLevelOperation,omitempty"`
	DataPendingAtSourceAgentInMB           *float64  `json:"dataPendingAtSourceAgentInMB,omitempty"`
	DataPendingInStagingStorageAccountInMB *float64  `json:"dataPendingInStagingStorageAccountInMB,omitempty"`
	DekKeyVaultArmId                       *string   `json:"dekKeyVaultArmId,omitempty"`
	DiskCapacityInBytes                    *int64    `json:"diskCapacityInBytes,omitempty"`
	DiskId                                 *string   `json:"diskId,omitempty"`
	DiskName                               *string   `json:"diskName,omitempty"`
	DiskState                              *string   `json:"diskState,omitempty"`
	DiskType                               *string   `json:"diskType,omitempty"`
	FailoverDiskName                       *string   `json:"failoverDiskName,omitempty"`
	IsDiskEncrypted                        *bool     `json:"isDiskEncrypted,omitempty"`
	IsDiskKeyEncrypted                     *bool     `json:"isDiskKeyEncrypted,omitempty"`
	KekKeyVaultArmId                       *string   `json:"kekKeyVaultArmId,omitempty"`
	KeyIdentifier                          *string   `json:"keyIdentifier,omitempty"`
	MonitoringJobType                      *string   `json:"monitoringJobType,omitempty"`
	MonitoringPercentageCompletion         *int64    `json:"monitoringPercentageCompletion,omitempty"`
	PrimaryDiskEncryptionSetId             *string   `json:"primaryDiskEncryptionSetId,omitempty"`
	PrimaryStagingAzureStorageAccountId    *string   `json:"primaryStagingAzureStorageAccountId,omitempty"`
	RecoveryDiskEncryptionSetId            *string   `json:"recoveryDiskEncryptionSetId,omitempty"`
	RecoveryOrignalTargetDiskId            *string   `json:"recoveryOrignalTargetDiskId,omitempty"`
	RecoveryReplicaDiskAccountType         *string   `json:"recoveryReplicaDiskAccountType,omitempty"`
	RecoveryReplicaDiskId                  *string   `json:"recoveryReplicaDiskId,omitempty"`
	RecoveryResourceGroupId                *string   `json:"recoveryResourceGroupId,omitempty"`
	RecoveryTargetDiskAccountType          *string   `json:"recoveryTargetDiskAccountType,omitempty"`
	RecoveryTargetDiskId                   *string   `json:"recoveryTargetDiskId,omitempty"`
	ResyncRequired                         *bool     `json:"resyncRequired,omitempty"`
	SecretIdentifier                       *string   `json:"secretIdentifier,omitempty"`
	TfoDiskName                            *string   `json:"tfoDiskName,omitempty"`
}

type A2AReplicationProtectionClusterDetails

type A2AReplicationProtectionClusterDetails struct {
	ClusterManagementId             *string                   `json:"clusterManagementId,omitempty"`
	FailoverRecoveryPointId         *string                   `json:"failoverRecoveryPointId,omitempty"`
	InitialPrimaryExtendedLocation  *edgezones.Model          `json:"initialPrimaryExtendedLocation,omitempty"`
	InitialPrimaryFabricLocation    *string                   `json:"initialPrimaryFabricLocation,omitempty"`
	InitialPrimaryZone              *string                   `json:"initialPrimaryZone,omitempty"`
	InitialRecoveryExtendedLocation *edgezones.Model          `json:"initialRecoveryExtendedLocation,omitempty"`
	InitialRecoveryFabricLocation   *string                   `json:"initialRecoveryFabricLocation,omitempty"`
	InitialRecoveryZone             *string                   `json:"initialRecoveryZone,omitempty"`
	LastRpoCalculatedTime           *string                   `json:"lastRpoCalculatedTime,omitempty"`
	LifecycleId                     *string                   `json:"lifecycleId,omitempty"`
	MultiVMGroupCreateOption        *MultiVMGroupCreateOption `json:"multiVmGroupCreateOption,omitempty"`
	MultiVMGroupId                  *string                   `json:"multiVmGroupId,omitempty"`
	MultiVMGroupName                *string                   `json:"multiVmGroupName,omitempty"`
	PrimaryAvailabilityZone         *string                   `json:"primaryAvailabilityZone,omitempty"`
	PrimaryExtendedLocation         *edgezones.Model          `json:"primaryExtendedLocation,omitempty"`
	PrimaryFabricLocation           *string                   `json:"primaryFabricLocation,omitempty"`
	RecoveryAvailabilityZone        *string                   `json:"recoveryAvailabilityZone,omitempty"`
	RecoveryExtendedLocation        *edgezones.Model          `json:"recoveryExtendedLocation,omitempty"`
	RecoveryFabricLocation          *string                   `json:"recoveryFabricLocation,omitempty"`
	RpoInSeconds                    *int64                    `json:"rpoInSeconds,omitempty"`
}

func (A2AReplicationProtectionClusterDetails) MarshalJSON

func (s A2AReplicationProtectionClusterDetails) MarshalJSON() ([]byte, error)

type A2ASharedDiskIRErrorDetails

type A2ASharedDiskIRErrorDetails struct {
	ErrorCode         *string `json:"errorCode,omitempty"`
	ErrorCodeEnum     *string `json:"errorCodeEnum,omitempty"`
	ErrorMessage      *string `json:"errorMessage,omitempty"`
	PossibleCauses    *string `json:"possibleCauses,omitempty"`
	RecommendedAction *string `json:"recommendedAction,omitempty"`
}

type A2ASharedDiskReplicationDetails

type A2ASharedDiskReplicationDetails struct {
	FailoverRecoveryPointId        *string                           `json:"failoverRecoveryPointId,omitempty"`
	LastRpoCalculatedTime          *string                           `json:"lastRpoCalculatedTime,omitempty"`
	ManagementId                   *string                           `json:"managementId,omitempty"`
	MonitoringJobType              *string                           `json:"monitoringJobType,omitempty"`
	MonitoringPercentageCompletion *int64                            `json:"monitoringPercentageCompletion,omitempty"`
	PrimaryFabricLocation          *string                           `json:"primaryFabricLocation,omitempty"`
	ProtectedManagedDisks          *[]A2AProtectedManagedDiskDetails `json:"protectedManagedDisks,omitempty"`
	RecoveryFabricLocation         *string                           `json:"recoveryFabricLocation,omitempty"`
	RpoInSeconds                   *int64                            `json:"rpoInSeconds,omitempty"`
	SharedDiskIRErrors             *[]A2ASharedDiskIRErrorDetails    `json:"sharedDiskIRErrors,omitempty"`
	UnprotectedDisks               *[]A2AUnprotectedDiskDetails      `json:"unprotectedDisks,omitempty"`
}

func (A2ASharedDiskReplicationDetails) MarshalJSON

func (s A2ASharedDiskReplicationDetails) MarshalJSON() ([]byte, error)

type A2AUnprotectedDiskDetails

type A2AUnprotectedDiskDetails struct {
	DiskAutoProtectionStatus *AutoProtectionOfDataDisk `json:"diskAutoProtectionStatus,omitempty"`
	DiskLunId                *int64                    `json:"diskLunId,omitempty"`
}

type ApplyClusterRecoveryPointInput

type ApplyClusterRecoveryPointInput struct {
	Properties ApplyClusterRecoveryPointInputProperties `json:"properties"`
}

type ApplyClusterRecoveryPointInputProperties

type ApplyClusterRecoveryPointInputProperties struct {
	ClusterRecoveryPointId       *string                                        `json:"clusterRecoveryPointId,omitempty"`
	IndividualNodeRecoveryPoints *[]string                                      `json:"individualNodeRecoveryPoints,omitempty"`
	ProviderSpecificDetails      ApplyClusterRecoveryPointProviderSpecificInput `json:"providerSpecificDetails"`
}

func (*ApplyClusterRecoveryPointInputProperties) UnmarshalJSON

func (s *ApplyClusterRecoveryPointInputProperties) UnmarshalJSON(bytes []byte) error

type ApplyClusterRecoveryPointProviderSpecificInput

type ApplyClusterRecoveryPointProviderSpecificInput interface {
}

type ApplyRecoveryPointOperationResponse

type ApplyRecoveryPointOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ReplicationProtectionCluster
}

type AutoProtectionOfDataDisk

type AutoProtectionOfDataDisk string
const (
	AutoProtectionOfDataDiskDisabled AutoProtectionOfDataDisk = "Disabled"
	AutoProtectionOfDataDiskEnabled  AutoProtectionOfDataDisk = "Enabled"
)

func (*AutoProtectionOfDataDisk) UnmarshalJSON

func (s *AutoProtectionOfDataDisk) UnmarshalJSON(bytes []byte) error

type ClusterTestFailoverCleanupInput

type ClusterTestFailoverCleanupInput struct {
	Properties ClusterTestFailoverCleanupInputProperties `json:"properties"`
}

type ClusterTestFailoverCleanupInputProperties

type ClusterTestFailoverCleanupInputProperties struct {
	Comments *string `json:"comments,omitempty"`
}

type ClusterTestFailoverInput

type ClusterTestFailoverInput struct {
	Properties ClusterTestFailoverInputProperties `json:"properties"`
}

type ClusterTestFailoverInputProperties

type ClusterTestFailoverInputProperties struct {
	FailoverDirection       *FailoverDirection                       `json:"failoverDirection,omitempty"`
	NetworkId               *string                                  `json:"networkId,omitempty"`
	NetworkType             *string                                  `json:"networkType,omitempty"`
	ProviderSpecificDetails ClusterTestFailoverProviderSpecificInput `json:"providerSpecificDetails"`
}

func (*ClusterTestFailoverInputProperties) UnmarshalJSON

func (s *ClusterTestFailoverInputProperties) UnmarshalJSON(bytes []byte) error

type ClusterTestFailoverProviderSpecificInput

type ClusterTestFailoverProviderSpecificInput interface {
}

type ClusterUnplannedFailoverInput

type ClusterUnplannedFailoverInput struct {
	Properties ClusterUnplannedFailoverInputProperties `json:"properties"`
}

type ClusterUnplannedFailoverInputProperties

type ClusterUnplannedFailoverInputProperties struct {
	FailoverDirection       *string                                       `json:"failoverDirection,omitempty"`
	ProviderSpecificDetails ClusterUnplannedFailoverProviderSpecificInput `json:"providerSpecificDetails"`
	SourceSiteOperations    *string                                       `json:"sourceSiteOperations,omitempty"`
}

func (*ClusterUnplannedFailoverInputProperties) UnmarshalJSON

func (s *ClusterUnplannedFailoverInputProperties) UnmarshalJSON(bytes []byte) error

type ClusterUnplannedFailoverProviderSpecificInput

type ClusterUnplannedFailoverProviderSpecificInput interface {
}

type CreateOperationResponse

type CreateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ReplicationProtectionCluster
}

type CurrentScenarioDetails

type CurrentScenarioDetails struct {
	JobId        *string `json:"jobId,omitempty"`
	ScenarioName *string `json:"scenarioName,omitempty"`
	StartTime    *string `json:"startTime,omitempty"`
}

func (*CurrentScenarioDetails) GetStartTimeAsTime

func (o *CurrentScenarioDetails) GetStartTimeAsTime() (*time.Time, error)

func (*CurrentScenarioDetails) SetStartTimeAsTime

func (o *CurrentScenarioDetails) SetStartTimeAsTime(input time.Time)

type FailoverCommitOperationResponse

type FailoverCommitOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ReplicationProtectionCluster
}

type FailoverDirection

type FailoverDirection string
const (
	FailoverDirectionPrimaryToRecovery FailoverDirection = "PrimaryToRecovery"
	FailoverDirectionRecoveryToPrimary FailoverDirection = "RecoveryToPrimary"
)

func (*FailoverDirection) UnmarshalJSON

func (s *FailoverDirection) UnmarshalJSON(bytes []byte) error

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ReplicationProtectionCluster
}

type HealthError

type HealthError struct {
	CreationTimeUtc              *string                           `json:"creationTimeUtc,omitempty"`
	CustomerResolvability        *HealthErrorCustomerResolvability `json:"customerResolvability,omitempty"`
	EntityId                     *string                           `json:"entityId,omitempty"`
	ErrorCategory                *string                           `json:"errorCategory,omitempty"`
	ErrorCode                    *string                           `json:"errorCode,omitempty"`
	ErrorId                      *string                           `json:"errorId,omitempty"`
	ErrorLevel                   *string                           `json:"errorLevel,omitempty"`
	ErrorMessage                 *string                           `json:"errorMessage,omitempty"`
	ErrorSource                  *string                           `json:"errorSource,omitempty"`
	ErrorType                    *string                           `json:"errorType,omitempty"`
	InnerHealthErrors            *[]InnerHealthError               `json:"innerHealthErrors,omitempty"`
	PossibleCauses               *string                           `json:"possibleCauses,omitempty"`
	RecommendedAction            *string                           `json:"recommendedAction,omitempty"`
	RecoveryProviderErrorMessage *string                           `json:"recoveryProviderErrorMessage,omitempty"`
	SummaryMessage               *string                           `json:"summaryMessage,omitempty"`
}

func (*HealthError) GetCreationTimeUtcAsTime

func (o *HealthError) GetCreationTimeUtcAsTime() (*time.Time, error)

func (*HealthError) SetCreationTimeUtcAsTime

func (o *HealthError) SetCreationTimeUtcAsTime(input time.Time)

type HealthErrorCustomerResolvability

type HealthErrorCustomerResolvability string
const (
	HealthErrorCustomerResolvabilityAllowed    HealthErrorCustomerResolvability = "Allowed"
	HealthErrorCustomerResolvabilityNotAllowed HealthErrorCustomerResolvability = "NotAllowed"
)

func (*HealthErrorCustomerResolvability) UnmarshalJSON

func (s *HealthErrorCustomerResolvability) UnmarshalJSON(bytes []byte) error

type InnerHealthError

type InnerHealthError struct {
	CreationTimeUtc              *string                           `json:"creationTimeUtc,omitempty"`
	CustomerResolvability        *HealthErrorCustomerResolvability `json:"customerResolvability,omitempty"`
	EntityId                     *string                           `json:"entityId,omitempty"`
	ErrorCategory                *string                           `json:"errorCategory,omitempty"`
	ErrorCode                    *string                           `json:"errorCode,omitempty"`
	ErrorId                      *string                           `json:"errorId,omitempty"`
	ErrorLevel                   *string                           `json:"errorLevel,omitempty"`
	ErrorMessage                 *string                           `json:"errorMessage,omitempty"`
	ErrorSource                  *string                           `json:"errorSource,omitempty"`
	ErrorType                    *string                           `json:"errorType,omitempty"`
	PossibleCauses               *string                           `json:"possibleCauses,omitempty"`
	RecommendedAction            *string                           `json:"recommendedAction,omitempty"`
	RecoveryProviderErrorMessage *string                           `json:"recoveryProviderErrorMessage,omitempty"`
	SummaryMessage               *string                           `json:"summaryMessage,omitempty"`
}

func (*InnerHealthError) GetCreationTimeUtcAsTime

func (o *InnerHealthError) GetCreationTimeUtcAsTime() (*time.Time, error)

func (*InnerHealthError) SetCreationTimeUtcAsTime

func (o *InnerHealthError) SetCreationTimeUtcAsTime(input time.Time)

type ListByReplicationProtectionContainersCompleteResult

type ListByReplicationProtectionContainersCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ReplicationProtectionCluster
}

type ListByReplicationProtectionContainersCustomPager added in v0.20240628.1153531

type ListByReplicationProtectionContainersCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}

type ListByReplicationProtectionContainersOperationResponse

type ListByReplicationProtectionContainersOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ReplicationProtectionCluster
}

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ReplicationProtectionCluster
}

type ListCustomPager added in v0.20240628.1153531

type ListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListCustomPager) NextPageLink() *odata.Link

type ListOperationOptions

type ListOperationOptions struct {
	Filter    *string
	SkipToken *string
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

func (ListOperationOptions) ToHeaders

func (o ListOperationOptions) ToHeaders() *client.Headers

func (ListOperationOptions) ToOData

func (o ListOperationOptions) ToOData() *odata.Query

func (ListOperationOptions) ToQuery

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ReplicationProtectionCluster
}

type MultiVMGroupCreateOption

type MultiVMGroupCreateOption string
const (
	MultiVMGroupCreateOptionAutoCreated   MultiVMGroupCreateOption = "AutoCreated"
	MultiVMGroupCreateOptionUserSpecified MultiVMGroupCreateOption = "UserSpecified"
)

func (*MultiVMGroupCreateOption) UnmarshalJSON

func (s *MultiVMGroupCreateOption) UnmarshalJSON(bytes []byte) error

type PurgeOperationResponse

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

type RawApplyClusterRecoveryPointProviderSpecificInputImpl

type RawApplyClusterRecoveryPointProviderSpecificInputImpl struct {
	Type   string
	Values map[string]interface{}
}

RawApplyClusterRecoveryPointProviderSpecificInputImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

type RawClusterTestFailoverProviderSpecificInputImpl

type RawClusterTestFailoverProviderSpecificInputImpl struct {
	Type   string
	Values map[string]interface{}
}

RawClusterTestFailoverProviderSpecificInputImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

type RawClusterUnplannedFailoverProviderSpecificInputImpl

type RawClusterUnplannedFailoverProviderSpecificInputImpl struct {
	Type   string
	Values map[string]interface{}
}

RawClusterUnplannedFailoverProviderSpecificInputImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

type RawReplicationClusterProviderSpecificSettingsImpl

type RawReplicationClusterProviderSpecificSettingsImpl struct {
	Type   string
	Values map[string]interface{}
}

RawReplicationClusterProviderSpecificSettingsImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

type RawSharedDiskReplicationProviderSpecificSettingsImpl

type RawSharedDiskReplicationProviderSpecificSettingsImpl struct {
	Type   string
	Values map[string]interface{}
}

RawSharedDiskReplicationProviderSpecificSettingsImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

type RegisteredClusterNodes

type RegisteredClusterNodes struct {
	BiosId                  *string `json:"biosId,omitempty"`
	ClusterNodeFqdn         *string `json:"clusterNodeFqdn,omitempty"`
	IsSharedDiskVirtualNode *bool   `json:"isSharedDiskVirtualNode,omitempty"`
	MachineId               *string `json:"machineId,omitempty"`
}

type RepairReplicationOperationResponse

type RepairReplicationOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ReplicationProtectionCluster
}

type ReplicationClusterProviderSpecificSettings

type ReplicationClusterProviderSpecificSettings interface {
}

type ReplicationProtectionCluster

type ReplicationProtectionCluster struct {
	Id         *string                                 `json:"id,omitempty"`
	Name       *string                                 `json:"name,omitempty"`
	Properties *ReplicationProtectionClusterProperties `json:"properties,omitempty"`
	Type       *string                                 `json:"type,omitempty"`
}

type ReplicationProtectionClusterId

type ReplicationProtectionClusterId struct {
	SubscriptionId                     string
	ResourceGroupName                  string
	VaultName                          string
	ReplicationFabricName              string
	ReplicationProtectionContainerName string
	ReplicationProtectionClusterName   string
}

ReplicationProtectionClusterId is a struct representing the Resource ID for a Replication Protection Cluster

func NewReplicationProtectionClusterID

func NewReplicationProtectionClusterID(subscriptionId string, resourceGroupName string, vaultName string, replicationFabricName string, replicationProtectionContainerName string, replicationProtectionClusterName string) ReplicationProtectionClusterId

NewReplicationProtectionClusterID returns a new ReplicationProtectionClusterId struct

func ParseReplicationProtectionClusterID

func ParseReplicationProtectionClusterID(input string) (*ReplicationProtectionClusterId, error)

ParseReplicationProtectionClusterID parses 'input' into a ReplicationProtectionClusterId

func ParseReplicationProtectionClusterIDInsensitively

func ParseReplicationProtectionClusterIDInsensitively(input string) (*ReplicationProtectionClusterId, error)

ParseReplicationProtectionClusterIDInsensitively parses 'input' case-insensitively into a ReplicationProtectionClusterId note: this method should only be used for API response data and not user input

func (*ReplicationProtectionClusterId) FromParseResult

func (id *ReplicationProtectionClusterId) FromParseResult(input resourceids.ParseResult) error

func (ReplicationProtectionClusterId) ID

ID returns the formatted Replication Protection Cluster ID

func (ReplicationProtectionClusterId) Segments

Segments returns a slice of Resource ID Segments which comprise this Replication Protection Cluster ID

func (ReplicationProtectionClusterId) String

String returns a human-readable description of this Replication Protection Cluster ID

type ReplicationProtectionClusterOperationPredicate

type ReplicationProtectionClusterOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (ReplicationProtectionClusterOperationPredicate) Matches

type ReplicationProtectionClusterProperties

type ReplicationProtectionClusterProperties struct {
	ActiveLocation                          *string                                    `json:"activeLocation,omitempty"`
	AgentClusterId                          *string                                    `json:"agentClusterId,omitempty"`
	AllowedOperations                       *[]string                                  `json:"allowedOperations,omitempty"`
	AreAllClusterNodesRegistered            *bool                                      `json:"areAllClusterNodesRegistered,omitempty"`
	ClusterFqdn                             *string                                    `json:"clusterFqdn,omitempty"`
	ClusterNodeFqdns                        *[]string                                  `json:"clusterNodeFqdns,omitempty"`
	ClusterProtectedItemIds                 *[]string                                  `json:"clusterProtectedItemIds,omitempty"`
	ClusterRegisteredNodes                  *[]RegisteredClusterNodes                  `json:"clusterRegisteredNodes,omitempty"`
	CurrentScenario                         *CurrentScenarioDetails                    `json:"currentScenario,omitempty"`
	HealthErrors                            *[]HealthError                             `json:"healthErrors,omitempty"`
	LastSuccessfulFailoverTime              *string                                    `json:"lastSuccessfulFailoverTime,omitempty"`
	LastSuccessfulTestFailoverTime          *string                                    `json:"lastSuccessfulTestFailoverTime,omitempty"`
	PolicyFriendlyName                      *string                                    `json:"policyFriendlyName,omitempty"`
	PolicyId                                *string                                    `json:"policyId,omitempty"`
	PrimaryFabricFriendlyName               *string                                    `json:"primaryFabricFriendlyName,omitempty"`
	PrimaryFabricProvider                   *string                                    `json:"primaryFabricProvider,omitempty"`
	PrimaryProtectionContainerFriendlyName  *string                                    `json:"primaryProtectionContainerFriendlyName,omitempty"`
	ProtectionClusterType                   *string                                    `json:"protectionClusterType,omitempty"`
	ProtectionState                         *string                                    `json:"protectionState,omitempty"`
	ProtectionStateDescription              *string                                    `json:"protectionStateDescription,omitempty"`
	ProviderSpecificDetails                 ReplicationClusterProviderSpecificSettings `json:"providerSpecificDetails"`
	ProvisioningState                       *string                                    `json:"provisioningState,omitempty"`
	RecoveryContainerId                     *string                                    `json:"recoveryContainerId,omitempty"`
	RecoveryFabricFriendlyName              *string                                    `json:"recoveryFabricFriendlyName,omitempty"`
	RecoveryFabricId                        *string                                    `json:"recoveryFabricId,omitempty"`
	RecoveryProtectionContainerFriendlyName *string                                    `json:"recoveryProtectionContainerFriendlyName,omitempty"`
	ReplicationHealth                       *string                                    `json:"replicationHealth,omitempty"`
	SharedDiskProperties                    *SharedDiskReplicationItemProperties       `json:"sharedDiskProperties,omitempty"`
	TestFailoverState                       *string                                    `json:"testFailoverState,omitempty"`
	TestFailoverStateDescription            *string                                    `json:"testFailoverStateDescription,omitempty"`
}

func (*ReplicationProtectionClusterProperties) GetLastSuccessfulFailoverTimeAsTime

func (o *ReplicationProtectionClusterProperties) GetLastSuccessfulFailoverTimeAsTime() (*time.Time, error)

func (*ReplicationProtectionClusterProperties) GetLastSuccessfulTestFailoverTimeAsTime

func (o *ReplicationProtectionClusterProperties) GetLastSuccessfulTestFailoverTimeAsTime() (*time.Time, error)

func (*ReplicationProtectionClusterProperties) SetLastSuccessfulFailoverTimeAsTime

func (o *ReplicationProtectionClusterProperties) SetLastSuccessfulFailoverTimeAsTime(input time.Time)

func (*ReplicationProtectionClusterProperties) SetLastSuccessfulTestFailoverTimeAsTime

func (o *ReplicationProtectionClusterProperties) SetLastSuccessfulTestFailoverTimeAsTime(input time.Time)

func (*ReplicationProtectionClusterProperties) UnmarshalJSON

func (s *ReplicationProtectionClusterProperties) UnmarshalJSON(bytes []byte) error

type ReplicationProtectionClustersClient

type ReplicationProtectionClustersClient struct {
	Client *resourcemanager.Client
}

func NewReplicationProtectionClustersClientWithBaseURI

func NewReplicationProtectionClustersClientWithBaseURI(sdkApi sdkEnv.Api) (*ReplicationProtectionClustersClient, error)

func (ReplicationProtectionClustersClient) ApplyRecoveryPoint

ApplyRecoveryPoint ...

func (ReplicationProtectionClustersClient) ApplyRecoveryPointThenPoll

ApplyRecoveryPointThenPoll performs ApplyRecoveryPoint then polls until it's completed

func (ReplicationProtectionClustersClient) Create

Create ...

func (ReplicationProtectionClustersClient) CreateThenPoll

CreateThenPoll performs Create then polls until it's completed

func (ReplicationProtectionClustersClient) FailoverCommit

FailoverCommit ...

func (ReplicationProtectionClustersClient) FailoverCommitThenPoll

FailoverCommitThenPoll performs FailoverCommit then polls until it's completed

func (ReplicationProtectionClustersClient) Get

Get ...

func (ReplicationProtectionClustersClient) List

List ...

func (ReplicationProtectionClustersClient) ListByReplicationProtectionContainers

ListByReplicationProtectionContainers ...

func (ReplicationProtectionClustersClient) ListByReplicationProtectionContainersComplete

ListByReplicationProtectionContainersComplete retrieves all the results into a single object

func (ReplicationProtectionClustersClient) ListByReplicationProtectionContainersCompleteMatchingPredicate

ListByReplicationProtectionContainersCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ReplicationProtectionClustersClient) ListComplete

ListComplete retrieves all the results into a single object

func (ReplicationProtectionClustersClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ReplicationProtectionClustersClient) Purge

Purge ...

func (ReplicationProtectionClustersClient) PurgeThenPoll

PurgeThenPoll performs Purge then polls until it's completed

func (ReplicationProtectionClustersClient) RepairReplication

RepairReplication ...

func (ReplicationProtectionClustersClient) RepairReplicationThenPoll

RepairReplicationThenPoll performs RepairReplication then polls until it's completed

func (ReplicationProtectionClustersClient) TestFailover

TestFailover ...

func (ReplicationProtectionClustersClient) TestFailoverCleanup

TestFailoverCleanup ...

func (ReplicationProtectionClustersClient) TestFailoverCleanupThenPoll

TestFailoverCleanupThenPoll performs TestFailoverCleanup then polls until it's completed

func (ReplicationProtectionClustersClient) TestFailoverThenPoll

TestFailoverThenPoll performs TestFailover then polls until it's completed

func (ReplicationProtectionClustersClient) UnplannedFailover

UnplannedFailover ...

func (ReplicationProtectionClustersClient) UnplannedFailoverThenPoll

UnplannedFailoverThenPoll performs UnplannedFailover then polls until it's completed

type ReplicationProtectionContainerId

type ReplicationProtectionContainerId struct {
	SubscriptionId                     string
	ResourceGroupName                  string
	VaultName                          string
	ReplicationFabricName              string
	ReplicationProtectionContainerName string
}

ReplicationProtectionContainerId is a struct representing the Resource ID for a Replication Protection Container

func NewReplicationProtectionContainerID

func NewReplicationProtectionContainerID(subscriptionId string, resourceGroupName string, vaultName string, replicationFabricName string, replicationProtectionContainerName string) ReplicationProtectionContainerId

NewReplicationProtectionContainerID returns a new ReplicationProtectionContainerId struct

func ParseReplicationProtectionContainerID

func ParseReplicationProtectionContainerID(input string) (*ReplicationProtectionContainerId, error)

ParseReplicationProtectionContainerID parses 'input' into a ReplicationProtectionContainerId

func ParseReplicationProtectionContainerIDInsensitively

func ParseReplicationProtectionContainerIDInsensitively(input string) (*ReplicationProtectionContainerId, error)

ParseReplicationProtectionContainerIDInsensitively parses 'input' case-insensitively into a ReplicationProtectionContainerId note: this method should only be used for API response data and not user input

func (*ReplicationProtectionContainerId) FromParseResult

func (ReplicationProtectionContainerId) ID

ID returns the formatted Replication Protection Container ID

func (ReplicationProtectionContainerId) Segments

Segments returns a slice of Resource ID Segments which comprise this Replication Protection Container ID

func (ReplicationProtectionContainerId) String

String returns a human-readable description of this Replication Protection Container ID

type SharedDiskReplicationItemProperties

type SharedDiskReplicationItemProperties struct {
	ActiveLocation                    *string                                       `json:"activeLocation,omitempty"`
	AllowedOperations                 *[]string                                     `json:"allowedOperations,omitempty"`
	CurrentScenario                   *CurrentScenarioDetails                       `json:"currentScenario,omitempty"`
	HealthErrors                      *[]HealthError                                `json:"healthErrors,omitempty"`
	ProtectionState                   *string                                       `json:"protectionState,omitempty"`
	ReplicationHealth                 *string                                       `json:"replicationHealth,omitempty"`
	SharedDiskProviderSpecificDetails SharedDiskReplicationProviderSpecificSettings `json:"sharedDiskProviderSpecificDetails"`
	TestFailoverState                 *string                                       `json:"testFailoverState,omitempty"`
}

func (*SharedDiskReplicationItemProperties) UnmarshalJSON

func (s *SharedDiskReplicationItemProperties) UnmarshalJSON(bytes []byte) error

type SharedDiskReplicationProviderSpecificSettings

type SharedDiskReplicationProviderSpecificSettings interface {
}

type TestFailoverCleanupOperationResponse

type TestFailoverCleanupOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ReplicationProtectionCluster
}

type TestFailoverOperationResponse

type TestFailoverOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ReplicationProtectionCluster
}

type UnplannedFailoverOperationResponse

type UnplannedFailoverOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ReplicationProtectionCluster
}

type VaultId

type VaultId struct {
	SubscriptionId    string
	ResourceGroupName string
	VaultName         string
}

VaultId is a struct representing the Resource ID for a Vault

func NewVaultID

func NewVaultID(subscriptionId string, resourceGroupName string, vaultName string) VaultId

NewVaultID returns a new VaultId struct

func ParseVaultID

func ParseVaultID(input string) (*VaultId, error)

ParseVaultID parses 'input' into a VaultId

func ParseVaultIDInsensitively

func ParseVaultIDInsensitively(input string) (*VaultId, error)

ParseVaultIDInsensitively parses 'input' case-insensitively into a VaultId note: this method should only be used for API response data and not user input

func (*VaultId) FromParseResult

func (id *VaultId) FromParseResult(input resourceids.ParseResult) error

func (VaultId) ID

func (id VaultId) ID() string

ID returns the formatted Vault ID

func (VaultId) Segments

func (id VaultId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Vault ID

func (VaultId) String

func (id VaultId) String() string

String returns a human-readable description of this Vault ID

Source Files

Jump to

Keyboard shortcuts

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