replicationrecoveryplans

package
v0.20230206.1135314 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MPL-2.0 Imports: 13 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2022-05-01/replicationrecoveryplans Documentation

The replicationrecoveryplans SDK allows for interaction with the Azure Resource Manager Service recoveryservicessiterecovery (API Version 2022-05-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/2022-05-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", "vaultValue", "replicationRecoveryPlanValue")

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", "vaultValue", "replicationRecoveryPlanValue")

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", "vaultValue", "replicationRecoveryPlanValue")

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", "vaultValue", "replicationRecoveryPlanValue")

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", "vaultValue", "replicationRecoveryPlanValue")

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", "vaultValue")

// 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", "vaultValue", "replicationRecoveryPlanValue")

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", "vaultValue", "replicationRecoveryPlanValue")

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", "vaultValue", "replicationRecoveryPlanValue")

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", "vaultValue", "replicationRecoveryPlanValue")

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", "vaultValue", "replicationRecoveryPlanValue")

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", "vaultValue", "replicationRecoveryPlanValue")

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 added in v0.20221130.1084848

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"
)

type AlternateLocationRecoveryOption

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

type CreateOperationResponse

type CreateOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

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"
)

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type FailoverCancelOperationResponse

type FailoverCancelOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type FailoverCommitOperationResponse

type FailoverCommitOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type FailoverDeploymentModel

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

type GetOperationResponse

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

type HyperVReplicaAzureRpRecoveryPointType

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

type InMageRcmFailbackRecoveryPointType

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

type InMageV2RpRecoveryPointType

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

type ListCompleteResult

type ListCompleteResult struct {
	Items []RecoveryPlan
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]RecoveryPlan
	// contains filtered or unexported fields
}

func (ListOperationResponse) HasMore

func (r ListOperationResponse) HasMore() bool

func (ListOperationResponse) LoadMore

func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)

type MultiVMSyncPointOption added in v0.20221130.1084848

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

type PlannedFailoverOperationResponse

type PlannedFailoverOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type PossibleOperationsDirections

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

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 {
	PrimaryZone  *string `json:"primaryZone,omitempty"`
	RecoveryZone *string `json:"recoveryZone,omitempty"`
}

func (RecoveryPlanA2ADetails) MarshalJSON

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

type RecoveryPlanA2AFailoverInput

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

func (RecoveryPlanA2AFailoverInput) MarshalJSON

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

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"`
}

func (RecoveryPlanA2AInput) MarshalJSON

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

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 {
}

type RecoveryPlanActionLocation

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

type RecoveryPlanAutomationRunbookActionDetails

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

func (RecoveryPlanAutomationRunbookActionDetails) MarshalJSON

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"
)

type RecoveryPlanHyperVReplicaAzureFailbackInput

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

func (RecoveryPlanHyperVReplicaAzureFailbackInput) MarshalJSON

type RecoveryPlanHyperVReplicaAzureFailoverInput

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

func (RecoveryPlanHyperVReplicaAzureFailoverInput) MarshalJSON

type RecoveryPlanInMageAzureV2FailoverInput

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

func (RecoveryPlanInMageAzureV2FailoverInput) MarshalJSON

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

type RecoveryPlanInMageFailoverInput

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

func (RecoveryPlanInMageFailoverInput) MarshalJSON

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

type RecoveryPlanInMageRcmFailbackFailoverInput

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

func (RecoveryPlanInMageRcmFailbackFailoverInput) MarshalJSON

type RecoveryPlanInMageRcmFailoverInput

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

func (RecoveryPlanInMageRcmFailoverInput) MarshalJSON

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

type RecoveryPlanManualActionDetails

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

func (RecoveryPlanManualActionDetails) MarshalJSON

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

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"
)

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 {
}

type RecoveryPlanProviderSpecificFailoverInput

type RecoveryPlanProviderSpecificFailoverInput interface {
}

type RecoveryPlanProviderSpecificInput

type RecoveryPlanProviderSpecificInput interface {
}

type RecoveryPlanScriptActionDetails

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

func (RecoveryPlanScriptActionDetails) MarshalJSON

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

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"
)

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) 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 autorest.Client
	// contains filtered or unexported fields
}

func NewReplicationRecoveryPlansClientWithBaseURI

func NewReplicationRecoveryPlansClientWithBaseURI(endpoint string) ReplicationRecoveryPlansClient

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 of the results into a single object

func (ReplicationRecoveryPlansClient) ListCompleteMatchingPredicate

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

ListCompleteMatchingPredicate retrieves all of the results and then applied 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       polling.LongRunningPoller
	HttpResponse *http.Response
}

type RpInMageRecoveryPointType

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

type SourceSiteOperations

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

type TestFailoverCleanupOperationResponse

type TestFailoverCleanupOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type TestFailoverOperationResponse

type TestFailoverOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type UnplannedFailoverOperationResponse

type UnplannedFailoverOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type UpdateOperationResponse

type UpdateOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

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