replicationrecoveryplans

package
v0.20241205.1102105 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-10-01/replicationrecoveryplans Documentation

The replicationrecoveryplans SDK allows for interaction with Azure Resource Manager recoveryservicessiterecovery (API Version 2024-10-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-10-01/replicationrecoveryplans"

Client Initialization

client := replicationrecoveryplans.NewReplicationRecoveryPlansClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ReplicationRecoveryPlansClient.Create

ctx := context.TODO()
id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "replicationRecoveryPlanName")

payload := replicationrecoveryplans.CreateRecoveryPlanInput{
	// ...
}


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

Example Usage: ReplicationRecoveryPlansClient.Delete

ctx := context.TODO()
id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "replicationRecoveryPlanName")

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

Example Usage: ReplicationRecoveryPlansClient.FailoverCancel

ctx := context.TODO()
id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "replicationRecoveryPlanName")

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

Example Usage: ReplicationRecoveryPlansClient.FailoverCommit

ctx := context.TODO()
id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "replicationRecoveryPlanName")

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

Example Usage: ReplicationRecoveryPlansClient.Get

ctx := context.TODO()
id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "replicationRecoveryPlanName")

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: ReplicationRecoveryPlansClient.List

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

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

Example Usage: ReplicationRecoveryPlansClient.PlannedFailover

ctx := context.TODO()
id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "replicationRecoveryPlanName")

payload := replicationrecoveryplans.RecoveryPlanPlannedFailoverInput{
	// ...
}


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

Example Usage: ReplicationRecoveryPlansClient.Reprotect

ctx := context.TODO()
id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "replicationRecoveryPlanName")

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

Example Usage: ReplicationRecoveryPlansClient.TestFailover

ctx := context.TODO()
id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "replicationRecoveryPlanName")

payload := replicationrecoveryplans.RecoveryPlanTestFailoverInput{
	// ...
}


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

Example Usage: ReplicationRecoveryPlansClient.TestFailoverCleanup

ctx := context.TODO()
id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "replicationRecoveryPlanName")

payload := replicationrecoveryplans.RecoveryPlanTestFailoverCleanupInput{
	// ...
}


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

Example Usage: ReplicationRecoveryPlansClient.UnplannedFailover

ctx := context.TODO()
id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "replicationRecoveryPlanName")

payload := replicationrecoveryplans.RecoveryPlanUnplannedFailoverInput{
	// ...
}


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

Example Usage: ReplicationRecoveryPlansClient.Update

ctx := context.TODO()
id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "replicationRecoveryPlanName")

payload := replicationrecoveryplans.UpdateRecoveryPlanInput{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForA2ARpRecoveryPointType

func PossibleValuesForA2ARpRecoveryPointType() []string

func PossibleValuesForAlternateLocationRecoveryOption

func PossibleValuesForAlternateLocationRecoveryOption() []string

func PossibleValuesForDataSyncStatus

func PossibleValuesForDataSyncStatus() []string

func PossibleValuesForFailoverDeploymentModel

func PossibleValuesForFailoverDeploymentModel() []string

func PossibleValuesForHyperVReplicaAzureRpRecoveryPointType

func PossibleValuesForHyperVReplicaAzureRpRecoveryPointType() []string

func PossibleValuesForInMageRcmFailbackRecoveryPointType

func PossibleValuesForInMageRcmFailbackRecoveryPointType() []string

func PossibleValuesForInMageV2RpRecoveryPointType

func PossibleValuesForInMageV2RpRecoveryPointType() []string

func PossibleValuesForMultiVMSyncPointOption

func PossibleValuesForMultiVMSyncPointOption() []string

func PossibleValuesForPossibleOperationsDirections

func PossibleValuesForPossibleOperationsDirections() []string

func PossibleValuesForRecoveryPlanActionLocation

func PossibleValuesForRecoveryPlanActionLocation() []string

func PossibleValuesForRecoveryPlanGroupType

func PossibleValuesForRecoveryPlanGroupType() []string

func PossibleValuesForRecoveryPlanPointType

func PossibleValuesForRecoveryPlanPointType() []string

func PossibleValuesForReplicationProtectedItemOperation

func PossibleValuesForReplicationProtectedItemOperation() []string

func PossibleValuesForRpInMageRecoveryPointType

func PossibleValuesForRpInMageRecoveryPointType() []string

func PossibleValuesForSourceSiteOperations

func PossibleValuesForSourceSiteOperations() []string

func ValidateReplicationRecoveryPlanID

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

ValidateReplicationRecoveryPlanID checks that 'input' can be parsed as a Replication Recovery Plan 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 A2ARpRecoveryPointType

type A2ARpRecoveryPointType string
const (
	A2ARpRecoveryPointTypeLatest                      A2ARpRecoveryPointType = "Latest"
	A2ARpRecoveryPointTypeLatestApplicationConsistent A2ARpRecoveryPointType = "LatestApplicationConsistent"
	A2ARpRecoveryPointTypeLatestCrashConsistent       A2ARpRecoveryPointType = "LatestCrashConsistent"
	A2ARpRecoveryPointTypeLatestProcessed             A2ARpRecoveryPointType = "LatestProcessed"
)

func (*A2ARpRecoveryPointType) UnmarshalJSON

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

type AlternateLocationRecoveryOption

type AlternateLocationRecoveryOption string
const (
	AlternateLocationRecoveryOptionCreateVMIfNotFound AlternateLocationRecoveryOption = "CreateVmIfNotFound"
	AlternateLocationRecoveryOptionNoAction           AlternateLocationRecoveryOption = "NoAction"
)

func (*AlternateLocationRecoveryOption) UnmarshalJSON

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

type BaseRecoveryPlanActionDetailsImpl

type BaseRecoveryPlanActionDetailsImpl struct {
	InstanceType string `json:"instanceType"`
}

func (BaseRecoveryPlanActionDetailsImpl) RecoveryPlanActionDetails

type BaseRecoveryPlanProviderSpecificDetailsImpl

type BaseRecoveryPlanProviderSpecificDetailsImpl struct {
	InstanceType string `json:"instanceType"`
}

func (BaseRecoveryPlanProviderSpecificDetailsImpl) RecoveryPlanProviderSpecificDetails

type BaseRecoveryPlanProviderSpecificFailoverInputImpl

type BaseRecoveryPlanProviderSpecificFailoverInputImpl struct {
	InstanceType string `json:"instanceType"`
}

func (BaseRecoveryPlanProviderSpecificFailoverInputImpl) RecoveryPlanProviderSpecificFailoverInput

type BaseRecoveryPlanProviderSpecificInputImpl

type BaseRecoveryPlanProviderSpecificInputImpl struct {
	InstanceType string `json:"instanceType"`
}

func (BaseRecoveryPlanProviderSpecificInputImpl) RecoveryPlanProviderSpecificInput

type CreateOperationResponse

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

type CreateRecoveryPlanInput

type CreateRecoveryPlanInput struct {
	Properties CreateRecoveryPlanInputProperties `json:"properties"`
}

type CreateRecoveryPlanInputProperties

type CreateRecoveryPlanInputProperties struct {
	FailoverDeploymentModel *FailoverDeploymentModel             `json:"failoverDeploymentModel,omitempty"`
	Groups                  []RecoveryPlanGroup                  `json:"groups"`
	PrimaryFabricId         string                               `json:"primaryFabricId"`
	ProviderSpecificInput   *[]RecoveryPlanProviderSpecificInput `json:"providerSpecificInput,omitempty"`
	RecoveryFabricId        string                               `json:"recoveryFabricId"`
}

func (*CreateRecoveryPlanInputProperties) UnmarshalJSON

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

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 DataSyncStatus

type DataSyncStatus string
const (
	DataSyncStatusForDownTime        DataSyncStatus = "ForDownTime"
	DataSyncStatusForSynchronization DataSyncStatus = "ForSynchronization"
)

func (*DataSyncStatus) UnmarshalJSON

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

type DeleteOperationResponse

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

type FailoverCancelOperationResponse

type FailoverCancelOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RecoveryPlan
}

type FailoverCommitOperationResponse

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

type FailoverDeploymentModel

type FailoverDeploymentModel string
const (
	FailoverDeploymentModelClassic         FailoverDeploymentModel = "Classic"
	FailoverDeploymentModelNotApplicable   FailoverDeploymentModel = "NotApplicable"
	FailoverDeploymentModelResourceManager FailoverDeploymentModel = "ResourceManager"
)

func (*FailoverDeploymentModel) UnmarshalJSON

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

type GetOperationResponse

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

type HyperVReplicaAzureRpRecoveryPointType

type HyperVReplicaAzureRpRecoveryPointType string
const (
	HyperVReplicaAzureRpRecoveryPointTypeLatest                      HyperVReplicaAzureRpRecoveryPointType = "Latest"
	HyperVReplicaAzureRpRecoveryPointTypeLatestApplicationConsistent HyperVReplicaAzureRpRecoveryPointType = "LatestApplicationConsistent"
	HyperVReplicaAzureRpRecoveryPointTypeLatestProcessed             HyperVReplicaAzureRpRecoveryPointType = "LatestProcessed"
)

func (*HyperVReplicaAzureRpRecoveryPointType) UnmarshalJSON

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

type InMageRcmFailbackRecoveryPointType

type InMageRcmFailbackRecoveryPointType string
const (
	InMageRcmFailbackRecoveryPointTypeApplicationConsistent InMageRcmFailbackRecoveryPointType = "ApplicationConsistent"
	InMageRcmFailbackRecoveryPointTypeCrashConsistent       InMageRcmFailbackRecoveryPointType = "CrashConsistent"
)

func (*InMageRcmFailbackRecoveryPointType) UnmarshalJSON

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

type InMageV2RpRecoveryPointType

type InMageV2RpRecoveryPointType string
const (
	InMageV2RpRecoveryPointTypeLatest                      InMageV2RpRecoveryPointType = "Latest"
	InMageV2RpRecoveryPointTypeLatestApplicationConsistent InMageV2RpRecoveryPointType = "LatestApplicationConsistent"
	InMageV2RpRecoveryPointTypeLatestCrashConsistent       InMageV2RpRecoveryPointType = "LatestCrashConsistent"
	InMageV2RpRecoveryPointTypeLatestProcessed             InMageV2RpRecoveryPointType = "LatestProcessed"
)

func (*InMageV2RpRecoveryPointType) UnmarshalJSON

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

type ListCompleteResult

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

type ListCustomPager

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

type ListOperationResponse

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

type MultiVMSyncPointOption

type MultiVMSyncPointOption string
const (
	MultiVMSyncPointOptionUseMultiVMSyncRecoveryPoint MultiVMSyncPointOption = "UseMultiVmSyncRecoveryPoint"
	MultiVMSyncPointOptionUsePerVMRecoveryPoint       MultiVMSyncPointOption = "UsePerVmRecoveryPoint"
)

func (*MultiVMSyncPointOption) UnmarshalJSON

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

type PlannedFailoverOperationResponse

type PlannedFailoverOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RecoveryPlan
}

type PossibleOperationsDirections

type PossibleOperationsDirections string
const (
	PossibleOperationsDirectionsPrimaryToRecovery PossibleOperationsDirections = "PrimaryToRecovery"
	PossibleOperationsDirectionsRecoveryToPrimary PossibleOperationsDirections = "RecoveryToPrimary"
)

func (*PossibleOperationsDirections) UnmarshalJSON

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

type RawRecoveryPlanActionDetailsImpl

type RawRecoveryPlanActionDetailsImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawRecoveryPlanActionDetailsImpl 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).

func (RawRecoveryPlanActionDetailsImpl) RecoveryPlanActionDetails

type RawRecoveryPlanProviderSpecificDetailsImpl

type RawRecoveryPlanProviderSpecificDetailsImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawRecoveryPlanProviderSpecificDetailsImpl 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).

func (RawRecoveryPlanProviderSpecificDetailsImpl) RecoveryPlanProviderSpecificDetails

type RawRecoveryPlanProviderSpecificFailoverInputImpl

type RawRecoveryPlanProviderSpecificFailoverInputImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawRecoveryPlanProviderSpecificFailoverInputImpl 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).

func (RawRecoveryPlanProviderSpecificFailoverInputImpl) RecoveryPlanProviderSpecificFailoverInput

type RawRecoveryPlanProviderSpecificInputImpl

type RawRecoveryPlanProviderSpecificInputImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawRecoveryPlanProviderSpecificInputImpl 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).

func (RawRecoveryPlanProviderSpecificInputImpl) RecoveryPlanProviderSpecificInput

type RecoveryPlan

type RecoveryPlan struct {
	Id         *string                 `json:"id,omitempty"`
	Location   *string                 `json:"location,omitempty"`
	Name       *string                 `json:"name,omitempty"`
	Properties *RecoveryPlanProperties `json:"properties,omitempty"`
	Type       *string                 `json:"type,omitempty"`
}

type RecoveryPlanA2ADetails

type RecoveryPlanA2ADetails struct {
	PrimaryExtendedLocation  *edgezones.Model `json:"primaryExtendedLocation,omitempty"`
	PrimaryZone              *string          `json:"primaryZone,omitempty"`
	RecoveryExtendedLocation *edgezones.Model `json:"recoveryExtendedLocation,omitempty"`
	RecoveryZone             *string          `json:"recoveryZone,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (RecoveryPlanA2ADetails) MarshalJSON

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

func (RecoveryPlanA2ADetails) RecoveryPlanProviderSpecificDetails

func (s RecoveryPlanA2ADetails) RecoveryPlanProviderSpecificDetails() BaseRecoveryPlanProviderSpecificDetailsImpl

type RecoveryPlanA2AFailoverInput

type RecoveryPlanA2AFailoverInput struct {
	CloudServiceCreationOption *string                 `json:"cloudServiceCreationOption,omitempty"`
	MultiVMSyncPointOption     *MultiVMSyncPointOption `json:"multiVmSyncPointOption,omitempty"`
	RecoveryPointType          A2ARpRecoveryPointType  `json:"recoveryPointType"`

	InstanceType string `json:"instanceType"`
}

func (RecoveryPlanA2AFailoverInput) MarshalJSON

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

func (RecoveryPlanA2AFailoverInput) RecoveryPlanProviderSpecificFailoverInput

func (s RecoveryPlanA2AFailoverInput) RecoveryPlanProviderSpecificFailoverInput() BaseRecoveryPlanProviderSpecificFailoverInputImpl

type RecoveryPlanA2AInput

type RecoveryPlanA2AInput struct {
	PrimaryExtendedLocation  *edgezones.Model `json:"primaryExtendedLocation,omitempty"`
	PrimaryZone              *string          `json:"primaryZone,omitempty"`
	RecoveryExtendedLocation *edgezones.Model `json:"recoveryExtendedLocation,omitempty"`
	RecoveryZone             *string          `json:"recoveryZone,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (RecoveryPlanA2AInput) MarshalJSON

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

func (RecoveryPlanA2AInput) RecoveryPlanProviderSpecificInput

func (s RecoveryPlanA2AInput) RecoveryPlanProviderSpecificInput() BaseRecoveryPlanProviderSpecificInputImpl

type RecoveryPlanAction

type RecoveryPlanAction struct {
	ActionName         string                              `json:"actionName"`
	CustomDetails      RecoveryPlanActionDetails           `json:"customDetails"`
	FailoverDirections []PossibleOperationsDirections      `json:"failoverDirections"`
	FailoverTypes      []ReplicationProtectedItemOperation `json:"failoverTypes"`
}

func (*RecoveryPlanAction) UnmarshalJSON

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

type RecoveryPlanActionDetails

type RecoveryPlanActionDetails interface {
	RecoveryPlanActionDetails() BaseRecoveryPlanActionDetailsImpl
}

func UnmarshalRecoveryPlanActionDetailsImplementation

func UnmarshalRecoveryPlanActionDetailsImplementation(input []byte) (RecoveryPlanActionDetails, error)

type RecoveryPlanActionLocation

type RecoveryPlanActionLocation string
const (
	RecoveryPlanActionLocationPrimary  RecoveryPlanActionLocation = "Primary"
	RecoveryPlanActionLocationRecovery RecoveryPlanActionLocation = "Recovery"
)

func (*RecoveryPlanActionLocation) UnmarshalJSON

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

type RecoveryPlanAutomationRunbookActionDetails

type RecoveryPlanAutomationRunbookActionDetails struct {
	FabricLocation RecoveryPlanActionLocation `json:"fabricLocation"`
	RunbookId      *string                    `json:"runbookId,omitempty"`
	Timeout        *string                    `json:"timeout,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (RecoveryPlanAutomationRunbookActionDetails) MarshalJSON

func (RecoveryPlanAutomationRunbookActionDetails) RecoveryPlanActionDetails

type RecoveryPlanGroup

type RecoveryPlanGroup struct {
	EndGroupActions           *[]RecoveryPlanAction        `json:"endGroupActions,omitempty"`
	GroupType                 RecoveryPlanGroupType        `json:"groupType"`
	ReplicationProtectedItems *[]RecoveryPlanProtectedItem `json:"replicationProtectedItems,omitempty"`
	StartGroupActions         *[]RecoveryPlanAction        `json:"startGroupActions,omitempty"`
}

type RecoveryPlanGroupType

type RecoveryPlanGroupType string
const (
	RecoveryPlanGroupTypeBoot     RecoveryPlanGroupType = "Boot"
	RecoveryPlanGroupTypeFailover RecoveryPlanGroupType = "Failover"
	RecoveryPlanGroupTypeShutdown RecoveryPlanGroupType = "Shutdown"
)

func (*RecoveryPlanGroupType) UnmarshalJSON

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

type RecoveryPlanHyperVReplicaAzureFailbackInput

type RecoveryPlanHyperVReplicaAzureFailbackInput struct {
	DataSyncOption           DataSyncStatus                  `json:"dataSyncOption"`
	RecoveryVMCreationOption AlternateLocationRecoveryOption `json:"recoveryVmCreationOption"`

	InstanceType string `json:"instanceType"`
}

func (RecoveryPlanHyperVReplicaAzureFailbackInput) MarshalJSON

func (RecoveryPlanHyperVReplicaAzureFailbackInput) RecoveryPlanProviderSpecificFailoverInput

type RecoveryPlanHyperVReplicaAzureFailoverInput

type RecoveryPlanHyperVReplicaAzureFailoverInput struct {
	PrimaryKekCertificatePfx   *string                                `json:"primaryKekCertificatePfx,omitempty"`
	RecoveryPointType          *HyperVReplicaAzureRpRecoveryPointType `json:"recoveryPointType,omitempty"`
	SecondaryKekCertificatePfx *string                                `json:"secondaryKekCertificatePfx,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (RecoveryPlanHyperVReplicaAzureFailoverInput) MarshalJSON

func (RecoveryPlanHyperVReplicaAzureFailoverInput) RecoveryPlanProviderSpecificFailoverInput

type RecoveryPlanInMageAzureV2FailoverInput

type RecoveryPlanInMageAzureV2FailoverInput struct {
	RecoveryPointType   InMageV2RpRecoveryPointType `json:"recoveryPointType"`
	UseMultiVMSyncPoint *string                     `json:"useMultiVmSyncPoint,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (RecoveryPlanInMageAzureV2FailoverInput) MarshalJSON

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

func (RecoveryPlanInMageAzureV2FailoverInput) RecoveryPlanProviderSpecificFailoverInput

type RecoveryPlanInMageFailoverInput

type RecoveryPlanInMageFailoverInput struct {
	RecoveryPointType RpInMageRecoveryPointType `json:"recoveryPointType"`

	InstanceType string `json:"instanceType"`
}

func (RecoveryPlanInMageFailoverInput) MarshalJSON

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

func (RecoveryPlanInMageFailoverInput) RecoveryPlanProviderSpecificFailoverInput

func (s RecoveryPlanInMageFailoverInput) RecoveryPlanProviderSpecificFailoverInput() BaseRecoveryPlanProviderSpecificFailoverInputImpl

type RecoveryPlanInMageRcmFailbackFailoverInput

type RecoveryPlanInMageRcmFailbackFailoverInput struct {
	RecoveryPointType   InMageRcmFailbackRecoveryPointType `json:"recoveryPointType"`
	UseMultiVMSyncPoint *string                            `json:"useMultiVmSyncPoint,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (RecoveryPlanInMageRcmFailbackFailoverInput) MarshalJSON

func (RecoveryPlanInMageRcmFailbackFailoverInput) RecoveryPlanProviderSpecificFailoverInput

type RecoveryPlanInMageRcmFailoverInput

type RecoveryPlanInMageRcmFailoverInput struct {
	RecoveryPointType   RecoveryPlanPointType `json:"recoveryPointType"`
	UseMultiVMSyncPoint *string               `json:"useMultiVmSyncPoint,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (RecoveryPlanInMageRcmFailoverInput) MarshalJSON

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

func (RecoveryPlanInMageRcmFailoverInput) RecoveryPlanProviderSpecificFailoverInput

func (s RecoveryPlanInMageRcmFailoverInput) RecoveryPlanProviderSpecificFailoverInput() BaseRecoveryPlanProviderSpecificFailoverInputImpl

type RecoveryPlanManualActionDetails

type RecoveryPlanManualActionDetails struct {
	Description *string `json:"description,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (RecoveryPlanManualActionDetails) MarshalJSON

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

func (RecoveryPlanManualActionDetails) RecoveryPlanActionDetails

type RecoveryPlanOperationPredicate

type RecoveryPlanOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (RecoveryPlanOperationPredicate) Matches

type RecoveryPlanPlannedFailoverInput

type RecoveryPlanPlannedFailoverInput struct {
	Properties RecoveryPlanPlannedFailoverInputProperties `json:"properties"`
}

type RecoveryPlanPlannedFailoverInputProperties

type RecoveryPlanPlannedFailoverInputProperties struct {
	FailoverDirection       PossibleOperationsDirections                 `json:"failoverDirection"`
	ProviderSpecificDetails *[]RecoveryPlanProviderSpecificFailoverInput `json:"providerSpecificDetails,omitempty"`
}

func (*RecoveryPlanPlannedFailoverInputProperties) UnmarshalJSON

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

type RecoveryPlanPointType

type RecoveryPlanPointType string
const (
	RecoveryPlanPointTypeLatest                      RecoveryPlanPointType = "Latest"
	RecoveryPlanPointTypeLatestApplicationConsistent RecoveryPlanPointType = "LatestApplicationConsistent"
	RecoveryPlanPointTypeLatestCrashConsistent       RecoveryPlanPointType = "LatestCrashConsistent"
	RecoveryPlanPointTypeLatestProcessed             RecoveryPlanPointType = "LatestProcessed"
)

func (*RecoveryPlanPointType) UnmarshalJSON

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

type RecoveryPlanProperties

type RecoveryPlanProperties struct {
	AllowedOperations                *[]string                              `json:"allowedOperations,omitempty"`
	CurrentScenario                  *CurrentScenarioDetails                `json:"currentScenario,omitempty"`
	CurrentScenarioStatus            *string                                `json:"currentScenarioStatus,omitempty"`
	CurrentScenarioStatusDescription *string                                `json:"currentScenarioStatusDescription,omitempty"`
	FailoverDeploymentModel          *string                                `json:"failoverDeploymentModel,omitempty"`
	FriendlyName                     *string                                `json:"friendlyName,omitempty"`
	Groups                           *[]RecoveryPlanGroup                   `json:"groups,omitempty"`
	LastPlannedFailoverTime          *string                                `json:"lastPlannedFailoverTime,omitempty"`
	LastTestFailoverTime             *string                                `json:"lastTestFailoverTime,omitempty"`
	LastUnplannedFailoverTime        *string                                `json:"lastUnplannedFailoverTime,omitempty"`
	PrimaryFabricFriendlyName        *string                                `json:"primaryFabricFriendlyName,omitempty"`
	PrimaryFabricId                  *string                                `json:"primaryFabricId,omitempty"`
	ProviderSpecificDetails          *[]RecoveryPlanProviderSpecificDetails `json:"providerSpecificDetails,omitempty"`
	RecoveryFabricFriendlyName       *string                                `json:"recoveryFabricFriendlyName,omitempty"`
	RecoveryFabricId                 *string                                `json:"recoveryFabricId,omitempty"`
	ReplicationProviders             *[]string                              `json:"replicationProviders,omitempty"`
}

func (*RecoveryPlanProperties) GetLastPlannedFailoverTimeAsTime

func (o *RecoveryPlanProperties) GetLastPlannedFailoverTimeAsTime() (*time.Time, error)

func (*RecoveryPlanProperties) GetLastTestFailoverTimeAsTime

func (o *RecoveryPlanProperties) GetLastTestFailoverTimeAsTime() (*time.Time, error)

func (*RecoveryPlanProperties) GetLastUnplannedFailoverTimeAsTime

func (o *RecoveryPlanProperties) GetLastUnplannedFailoverTimeAsTime() (*time.Time, error)

func (*RecoveryPlanProperties) SetLastPlannedFailoverTimeAsTime

func (o *RecoveryPlanProperties) SetLastPlannedFailoverTimeAsTime(input time.Time)

func (*RecoveryPlanProperties) SetLastTestFailoverTimeAsTime

func (o *RecoveryPlanProperties) SetLastTestFailoverTimeAsTime(input time.Time)

func (*RecoveryPlanProperties) SetLastUnplannedFailoverTimeAsTime

func (o *RecoveryPlanProperties) SetLastUnplannedFailoverTimeAsTime(input time.Time)

func (*RecoveryPlanProperties) UnmarshalJSON

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

type RecoveryPlanProtectedItem

type RecoveryPlanProtectedItem struct {
	Id               *string `json:"id,omitempty"`
	VirtualMachineId *string `json:"virtualMachineId,omitempty"`
}

type RecoveryPlanProviderSpecificDetails

type RecoveryPlanProviderSpecificDetails interface {
	RecoveryPlanProviderSpecificDetails() BaseRecoveryPlanProviderSpecificDetailsImpl
}

func UnmarshalRecoveryPlanProviderSpecificDetailsImplementation

func UnmarshalRecoveryPlanProviderSpecificDetailsImplementation(input []byte) (RecoveryPlanProviderSpecificDetails, error)

type RecoveryPlanProviderSpecificFailoverInput

type RecoveryPlanProviderSpecificFailoverInput interface {
	RecoveryPlanProviderSpecificFailoverInput() BaseRecoveryPlanProviderSpecificFailoverInputImpl
}

func UnmarshalRecoveryPlanProviderSpecificFailoverInputImplementation

func UnmarshalRecoveryPlanProviderSpecificFailoverInputImplementation(input []byte) (RecoveryPlanProviderSpecificFailoverInput, error)

type RecoveryPlanProviderSpecificInput

type RecoveryPlanProviderSpecificInput interface {
	RecoveryPlanProviderSpecificInput() BaseRecoveryPlanProviderSpecificInputImpl
}

func UnmarshalRecoveryPlanProviderSpecificInputImplementation

func UnmarshalRecoveryPlanProviderSpecificInputImplementation(input []byte) (RecoveryPlanProviderSpecificInput, error)

type RecoveryPlanScriptActionDetails

type RecoveryPlanScriptActionDetails struct {
	FabricLocation RecoveryPlanActionLocation `json:"fabricLocation"`
	Path           string                     `json:"path"`
	Timeout        *string                    `json:"timeout,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (RecoveryPlanScriptActionDetails) MarshalJSON

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

func (RecoveryPlanScriptActionDetails) RecoveryPlanActionDetails

type RecoveryPlanTestFailoverCleanupInput

type RecoveryPlanTestFailoverCleanupInput struct {
	Properties RecoveryPlanTestFailoverCleanupInputProperties `json:"properties"`
}

type RecoveryPlanTestFailoverCleanupInputProperties

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

type RecoveryPlanTestFailoverInput

type RecoveryPlanTestFailoverInput struct {
	Properties RecoveryPlanTestFailoverInputProperties `json:"properties"`
}

type RecoveryPlanTestFailoverInputProperties

type RecoveryPlanTestFailoverInputProperties struct {
	FailoverDirection       PossibleOperationsDirections                 `json:"failoverDirection"`
	NetworkId               *string                                      `json:"networkId,omitempty"`
	NetworkType             string                                       `json:"networkType"`
	ProviderSpecificDetails *[]RecoveryPlanProviderSpecificFailoverInput `json:"providerSpecificDetails,omitempty"`
}

func (*RecoveryPlanTestFailoverInputProperties) UnmarshalJSON

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

type RecoveryPlanUnplannedFailoverInput

type RecoveryPlanUnplannedFailoverInput struct {
	Properties RecoveryPlanUnplannedFailoverInputProperties `json:"properties"`
}

type RecoveryPlanUnplannedFailoverInputProperties

type RecoveryPlanUnplannedFailoverInputProperties struct {
	FailoverDirection       PossibleOperationsDirections                 `json:"failoverDirection"`
	ProviderSpecificDetails *[]RecoveryPlanProviderSpecificFailoverInput `json:"providerSpecificDetails,omitempty"`
	SourceSiteOperations    SourceSiteOperations                         `json:"sourceSiteOperations"`
}

func (*RecoveryPlanUnplannedFailoverInputProperties) UnmarshalJSON

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

type ReplicationProtectedItemOperation

type ReplicationProtectedItemOperation string
const (
	ReplicationProtectedItemOperationCancelFailover      ReplicationProtectedItemOperation = "CancelFailover"
	ReplicationProtectedItemOperationChangePit           ReplicationProtectedItemOperation = "ChangePit"
	ReplicationProtectedItemOperationCommit              ReplicationProtectedItemOperation = "Commit"
	ReplicationProtectedItemOperationCompleteMigration   ReplicationProtectedItemOperation = "CompleteMigration"
	ReplicationProtectedItemOperationDisableProtection   ReplicationProtectedItemOperation = "DisableProtection"
	ReplicationProtectedItemOperationFailback            ReplicationProtectedItemOperation = "Failback"
	ReplicationProtectedItemOperationFinalizeFailback    ReplicationProtectedItemOperation = "FinalizeFailback"
	ReplicationProtectedItemOperationPlannedFailover     ReplicationProtectedItemOperation = "PlannedFailover"
	ReplicationProtectedItemOperationRepairReplication   ReplicationProtectedItemOperation = "RepairReplication"
	ReplicationProtectedItemOperationReverseReplicate    ReplicationProtectedItemOperation = "ReverseReplicate"
	ReplicationProtectedItemOperationSwitchProtection    ReplicationProtectedItemOperation = "SwitchProtection"
	ReplicationProtectedItemOperationTestFailover        ReplicationProtectedItemOperation = "TestFailover"
	ReplicationProtectedItemOperationTestFailoverCleanup ReplicationProtectedItemOperation = "TestFailoverCleanup"
	ReplicationProtectedItemOperationUnplannedFailover   ReplicationProtectedItemOperation = "UnplannedFailover"
)

func (*ReplicationProtectedItemOperation) UnmarshalJSON

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

type ReplicationRecoveryPlanId

type ReplicationRecoveryPlanId struct {
	SubscriptionId              string
	ResourceGroupName           string
	VaultName                   string
	ReplicationRecoveryPlanName string
}

ReplicationRecoveryPlanId is a struct representing the Resource ID for a Replication Recovery Plan

func NewReplicationRecoveryPlanID

func NewReplicationRecoveryPlanID(subscriptionId string, resourceGroupName string, vaultName string, replicationRecoveryPlanName string) ReplicationRecoveryPlanId

NewReplicationRecoveryPlanID returns a new ReplicationRecoveryPlanId struct

func ParseReplicationRecoveryPlanID

func ParseReplicationRecoveryPlanID(input string) (*ReplicationRecoveryPlanId, error)

ParseReplicationRecoveryPlanID parses 'input' into a ReplicationRecoveryPlanId

func ParseReplicationRecoveryPlanIDInsensitively

func ParseReplicationRecoveryPlanIDInsensitively(input string) (*ReplicationRecoveryPlanId, error)

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

func (*ReplicationRecoveryPlanId) FromParseResult

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

func (ReplicationRecoveryPlanId) ID

ID returns the formatted Replication Recovery Plan ID

func (ReplicationRecoveryPlanId) Segments

Segments returns a slice of Resource ID Segments which comprise this Replication Recovery Plan ID

func (ReplicationRecoveryPlanId) String

func (id ReplicationRecoveryPlanId) String() string

String returns a human-readable description of this Replication Recovery Plan ID

type ReplicationRecoveryPlansClient

type ReplicationRecoveryPlansClient struct {
	Client *resourcemanager.Client
}

func NewReplicationRecoveryPlansClientWithBaseURI

func NewReplicationRecoveryPlansClientWithBaseURI(sdkApi sdkEnv.Api) (*ReplicationRecoveryPlansClient, error)

func (ReplicationRecoveryPlansClient) Create

Create ...

func (ReplicationRecoveryPlansClient) CreateThenPoll

CreateThenPoll performs Create then polls until it's completed

func (ReplicationRecoveryPlansClient) Delete

Delete ...

func (ReplicationRecoveryPlansClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (ReplicationRecoveryPlansClient) FailoverCancel

FailoverCancel ...

func (ReplicationRecoveryPlansClient) FailoverCancelThenPoll

FailoverCancelThenPoll performs FailoverCancel then polls until it's completed

func (ReplicationRecoveryPlansClient) FailoverCommit

FailoverCommit ...

func (ReplicationRecoveryPlansClient) FailoverCommitThenPoll

FailoverCommitThenPoll performs FailoverCommit then polls until it's completed

func (ReplicationRecoveryPlansClient) Get

Get ...

func (ReplicationRecoveryPlansClient) List

List ...

func (ReplicationRecoveryPlansClient) ListComplete

ListComplete retrieves all the results into a single object

func (ReplicationRecoveryPlansClient) ListCompleteMatchingPredicate

func (c ReplicationRecoveryPlansClient) ListCompleteMatchingPredicate(ctx context.Context, id VaultId, predicate RecoveryPlanOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ReplicationRecoveryPlansClient) PlannedFailover

PlannedFailover ...

func (ReplicationRecoveryPlansClient) PlannedFailoverThenPoll

PlannedFailoverThenPoll performs PlannedFailover then polls until it's completed

func (ReplicationRecoveryPlansClient) Reprotect

Reprotect ...

func (ReplicationRecoveryPlansClient) ReprotectThenPoll

ReprotectThenPoll performs Reprotect then polls until it's completed

func (ReplicationRecoveryPlansClient) TestFailover

TestFailover ...

func (ReplicationRecoveryPlansClient) TestFailoverCleanup

TestFailoverCleanup ...

func (ReplicationRecoveryPlansClient) TestFailoverCleanupThenPoll

TestFailoverCleanupThenPoll performs TestFailoverCleanup then polls until it's completed

func (ReplicationRecoveryPlansClient) TestFailoverThenPoll

TestFailoverThenPoll performs TestFailover then polls until it's completed

func (ReplicationRecoveryPlansClient) UnplannedFailover

UnplannedFailover ...

func (ReplicationRecoveryPlansClient) UnplannedFailoverThenPoll

UnplannedFailoverThenPoll performs UnplannedFailover then polls until it's completed

func (ReplicationRecoveryPlansClient) Update

Update ...

func (ReplicationRecoveryPlansClient) UpdateThenPoll

UpdateThenPoll performs Update then polls until it's completed

type ReprotectOperationResponse

type ReprotectOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RecoveryPlan
}

type RpInMageRecoveryPointType

type RpInMageRecoveryPointType string
const (
	RpInMageRecoveryPointTypeCustom     RpInMageRecoveryPointType = "Custom"
	RpInMageRecoveryPointTypeLatestTag  RpInMageRecoveryPointType = "LatestTag"
	RpInMageRecoveryPointTypeLatestTime RpInMageRecoveryPointType = "LatestTime"
)

func (*RpInMageRecoveryPointType) UnmarshalJSON

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

type SourceSiteOperations

type SourceSiteOperations string
const (
	SourceSiteOperationsNotRequired SourceSiteOperations = "NotRequired"
	SourceSiteOperationsRequired    SourceSiteOperations = "Required"
)

func (*SourceSiteOperations) UnmarshalJSON

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

type TestFailoverCleanupOperationResponse

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

type TestFailoverOperationResponse

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

type UnplannedFailoverOperationResponse

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

type UpdateOperationResponse

type UpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RecoveryPlan
}

type UpdateRecoveryPlanInput

type UpdateRecoveryPlanInput struct {
	Properties *UpdateRecoveryPlanInputProperties `json:"properties,omitempty"`
}

type UpdateRecoveryPlanInputProperties

type UpdateRecoveryPlanInputProperties struct {
	Groups *[]RecoveryPlanGroup `json:"groups,omitempty"`
}

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