armrecoveryservicessiterecovery

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: MIT Imports: 16 Imported by: 3

README

Azure Recovery Services Site Recovery Module for Go

PkgGoDev

The armrecoveryservicessiterecovery module provides operations for working with Azure Recovery Services Site Recovery.

Source code

Getting started

Prerequisites

  • an Azure subscription
  • Go 1.18 or above (You could download and install the latest version of Go from here. It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this doc.)

Install the package

This project uses Go modules for versioning and dependency management.

Install the Azure Recovery Services Site Recovery module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery

Authorization

When creating a client, you will need to provide a credential for authenticating with Azure Recovery Services Site Recovery. The azidentity module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more.

cred, err := azidentity.NewDefaultAzureCredential(nil)

For more information on authentication, please see the documentation for azidentity at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity.

Clients

Azure Recovery Services Site Recovery modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential.

client, err := armrecoveryservicessiterecovery.NewReplicationAppliancesClient(<subscription ID>, cred, nil)

You can use ClientOptions in package github.com/Azure/azure-sdk-for-go/sdk/azcore/arm to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for azcore at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore.

options := arm.ClientOptions {
    ClientOptions: azcore.ClientOptions {
        Cloud: cloud.AzureChina,
    },
}
client, err := armrecoveryservicessiterecovery.NewReplicationAppliancesClient(<subscription ID>, cred, &options)

Provide Feedback

If you encounter bugs or have suggestions, please open an issue and assign the Recovery Services Site Recovery label.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type A2AAddDisksInput

type A2AAddDisksInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The list of vm disk details.
	VMDisks []*A2AVMDiskInputDetails `json:"vmDisks,omitempty"`

	// The list of vm managed disk details.
	VMManagedDisks []*A2AVMManagedDiskInputDetails `json:"vmManagedDisks,omitempty"`
}

A2AAddDisksInput - A2A add disk(s) input.

func (*A2AAddDisksInput) GetAddDisksProviderSpecificInput added in v0.2.0

func (a *A2AAddDisksInput) GetAddDisksProviderSpecificInput() *AddDisksProviderSpecificInput

GetAddDisksProviderSpecificInput implements the AddDisksProviderSpecificInputClassification interface for type A2AAddDisksInput.

func (A2AAddDisksInput) MarshalJSON

func (a A2AAddDisksInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2AAddDisksInput.

func (*A2AAddDisksInput) UnmarshalJSON

func (a *A2AAddDisksInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2AAddDisksInput.

type A2AApplyRecoveryPointInput

type A2AApplyRecoveryPointInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

A2AApplyRecoveryPointInput - ApplyRecoveryPoint input specific to A2A provider.

func (*A2AApplyRecoveryPointInput) GetApplyRecoveryPointProviderSpecificInput added in v0.2.0

func (a *A2AApplyRecoveryPointInput) GetApplyRecoveryPointProviderSpecificInput() *ApplyRecoveryPointProviderSpecificInput

GetApplyRecoveryPointProviderSpecificInput implements the ApplyRecoveryPointProviderSpecificInputClassification interface for type A2AApplyRecoveryPointInput.

func (A2AApplyRecoveryPointInput) MarshalJSON

func (a A2AApplyRecoveryPointInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2AApplyRecoveryPointInput.

func (*A2AApplyRecoveryPointInput) UnmarshalJSON added in v0.2.0

func (a *A2AApplyRecoveryPointInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2AApplyRecoveryPointInput.

type A2AContainerCreationInput

type A2AContainerCreationInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

A2AContainerCreationInput - A2A cloud creation input.

func (*A2AContainerCreationInput) GetReplicationProviderSpecificContainerCreationInput added in v0.2.0

func (a *A2AContainerCreationInput) GetReplicationProviderSpecificContainerCreationInput() *ReplicationProviderSpecificContainerCreationInput

GetReplicationProviderSpecificContainerCreationInput implements the ReplicationProviderSpecificContainerCreationInputClassification interface for type A2AContainerCreationInput.

func (A2AContainerCreationInput) MarshalJSON

func (a A2AContainerCreationInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2AContainerCreationInput.

func (*A2AContainerCreationInput) UnmarshalJSON added in v0.2.0

func (a *A2AContainerCreationInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2AContainerCreationInput.

type A2AContainerMappingInput

type A2AContainerMappingInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// A value indicating whether the auto update is enabled.
	AgentAutoUpdateStatus *AgentAutoUpdateStatus `json:"agentAutoUpdateStatus,omitempty"`

	// The automation account arm id.
	AutomationAccountArmID *string `json:"automationAccountArmId,omitempty"`

	// A value indicating the type authentication to use for automation Account.
	AutomationAccountAuthenticationType *AutomationAccountAuthenticationType `json:"automationAccountAuthenticationType,omitempty"`
}

A2AContainerMappingInput - A2A container mapping input.

func (*A2AContainerMappingInput) GetReplicationProviderSpecificContainerMappingInput added in v0.2.0

func (a *A2AContainerMappingInput) GetReplicationProviderSpecificContainerMappingInput() *ReplicationProviderSpecificContainerMappingInput

GetReplicationProviderSpecificContainerMappingInput implements the ReplicationProviderSpecificContainerMappingInputClassification interface for type A2AContainerMappingInput.

func (A2AContainerMappingInput) MarshalJSON

func (a A2AContainerMappingInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2AContainerMappingInput.

func (*A2AContainerMappingInput) UnmarshalJSON

func (a *A2AContainerMappingInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2AContainerMappingInput.

type A2ACreateProtectionIntentInput

type A2ACreateProtectionIntentInput struct {
	// REQUIRED; The fabric specific object Id of the virtual machine.
	FabricObjectID *string `json:"fabricObjectId,omitempty"`

	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; The primary location for the virtual machine.
	PrimaryLocation *string `json:"primaryLocation,omitempty"`

	// REQUIRED; The recovery availability type of the virtual machine.
	RecoveryAvailabilityType *A2ARecoveryAvailabilityType `json:"recoveryAvailabilityType,omitempty"`

	// REQUIRED; The recovery location for the virtual machine.
	RecoveryLocation *string `json:"recoveryLocation,omitempty"`

	// REQUIRED; The recovery resource group Id. Valid for V2 scenarios.
	RecoveryResourceGroupID *string `json:"recoveryResourceGroupId,omitempty"`

	// REQUIRED; The recovery subscription Id of the virtual machine.
	RecoverySubscriptionID *string `json:"recoverySubscriptionId,omitempty"`

	// A value indicating whether the auto update is enabled.
	AgentAutoUpdateStatus *AgentAutoUpdateStatus `json:"agentAutoUpdateStatus,omitempty"`

	// A value indicating whether the auto protection is enabled.
	AutoProtectionOfDataDisk *AutoProtectionOfDataDisk `json:"autoProtectionOfDataDisk,omitempty"`

	// The automation account arm id.
	AutomationAccountArmID *string `json:"automationAccountArmId,omitempty"`

	// A value indicating the authentication type for automation account. The default value is "RunAsAccount".
	AutomationAccountAuthenticationType *AutomationAccountAuthenticationType `json:"automationAccountAuthenticationType,omitempty"`

	// The recovery disk encryption information (for two pass flows).
	DiskEncryptionInfo *DiskEncryptionInfo `json:"diskEncryptionInfo,omitempty"`

	// The multi vm group id.
	MultiVMGroupID *string `json:"multiVmGroupId,omitempty"`

	// The multi vm group name.
	MultiVMGroupName *string `json:"multiVmGroupName,omitempty"`

	// The primary staging storage account input.
	PrimaryStagingStorageAccountCustomInput StorageAccountCustomDetailsClassification `json:"primaryStagingStorageAccountCustomInput,omitempty"`

	// The protection profile custom inputs.
	ProtectionProfileCustomInput ProtectionProfileCustomDetailsClassification `json:"protectionProfileCustomInput,omitempty"`

	// The recovery availability set input.
	RecoveryAvailabilitySetCustomInput RecoveryAvailabilitySetCustomDetailsClassification `json:"recoveryAvailabilitySetCustomInput,omitempty"`

	// The recovery availability zone.
	RecoveryAvailabilityZone *string `json:"recoveryAvailabilityZone,omitempty"`

	// The boot diagnostic storage account.
	RecoveryBootDiagStorageAccount StorageAccountCustomDetailsClassification `json:"recoveryBootDiagStorageAccount,omitempty"`

	// The recovery proximity placement group custom input.
	RecoveryProximityPlacementGroupCustomInput RecoveryProximityPlacementGroupCustomDetailsClassification `json:"recoveryProximityPlacementGroupCustomInput,omitempty"`

	// The recovery virtual network input.
	RecoveryVirtualNetworkCustomInput RecoveryVirtualNetworkCustomDetailsClassification `json:"recoveryVirtualNetworkCustomInput,omitempty"`

	// The list of vm disk inputs.
	VMDisks []*A2AProtectionIntentDiskInputDetails `json:"vmDisks,omitempty"`

	// The list of vm managed disk inputs.
	VMManagedDisks []*A2AProtectionIntentManagedDiskInputDetails `json:"vmManagedDisks,omitempty"`
}

A2ACreateProtectionIntentInput - A2A create protection intent input.

func (*A2ACreateProtectionIntentInput) GetCreateProtectionIntentProviderSpecificDetails added in v0.2.0

func (a *A2ACreateProtectionIntentInput) GetCreateProtectionIntentProviderSpecificDetails() *CreateProtectionIntentProviderSpecificDetails

GetCreateProtectionIntentProviderSpecificDetails implements the CreateProtectionIntentProviderSpecificDetailsClassification interface for type A2ACreateProtectionIntentInput.

func (A2ACreateProtectionIntentInput) MarshalJSON

func (a A2ACreateProtectionIntentInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2ACreateProtectionIntentInput.

func (*A2ACreateProtectionIntentInput) UnmarshalJSON

func (a *A2ACreateProtectionIntentInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2ACreateProtectionIntentInput.

type A2ACrossClusterMigrationApplyRecoveryPointInput

type A2ACrossClusterMigrationApplyRecoveryPointInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

A2ACrossClusterMigrationApplyRecoveryPointInput - ApplyRecoveryPoint input specific to A2ACrossClusterMigration provider.

func (*A2ACrossClusterMigrationApplyRecoveryPointInput) GetApplyRecoveryPointProviderSpecificInput added in v0.2.0

func (a *A2ACrossClusterMigrationApplyRecoveryPointInput) GetApplyRecoveryPointProviderSpecificInput() *ApplyRecoveryPointProviderSpecificInput

GetApplyRecoveryPointProviderSpecificInput implements the ApplyRecoveryPointProviderSpecificInputClassification interface for type A2ACrossClusterMigrationApplyRecoveryPointInput.

func (A2ACrossClusterMigrationApplyRecoveryPointInput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type A2ACrossClusterMigrationApplyRecoveryPointInput.

func (*A2ACrossClusterMigrationApplyRecoveryPointInput) UnmarshalJSON added in v0.2.0

UnmarshalJSON implements the json.Unmarshaller interface for type A2ACrossClusterMigrationApplyRecoveryPointInput.

type A2ACrossClusterMigrationContainerCreationInput

type A2ACrossClusterMigrationContainerCreationInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

A2ACrossClusterMigrationContainerCreationInput - A2ACrossClusterMigration cloud creation input.

func (*A2ACrossClusterMigrationContainerCreationInput) GetReplicationProviderSpecificContainerCreationInput added in v0.2.0

func (a *A2ACrossClusterMigrationContainerCreationInput) GetReplicationProviderSpecificContainerCreationInput() *ReplicationProviderSpecificContainerCreationInput

GetReplicationProviderSpecificContainerCreationInput implements the ReplicationProviderSpecificContainerCreationInputClassification interface for type A2ACrossClusterMigrationContainerCreationInput.

func (A2ACrossClusterMigrationContainerCreationInput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type A2ACrossClusterMigrationContainerCreationInput.

func (*A2ACrossClusterMigrationContainerCreationInput) UnmarshalJSON added in v0.2.0

UnmarshalJSON implements the json.Unmarshaller interface for type A2ACrossClusterMigrationContainerCreationInput.

type A2ACrossClusterMigrationEnableProtectionInput

type A2ACrossClusterMigrationEnableProtectionInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The fabric specific object Id of the virtual machine.
	FabricObjectID *string `json:"fabricObjectId,omitempty"`

	// The recovery container Id.
	RecoveryContainerID *string `json:"recoveryContainerId,omitempty"`
}

A2ACrossClusterMigrationEnableProtectionInput - A2A Cross-Cluster Migration enable protection input.

func (*A2ACrossClusterMigrationEnableProtectionInput) GetEnableProtectionProviderSpecificInput added in v0.2.0

func (a *A2ACrossClusterMigrationEnableProtectionInput) GetEnableProtectionProviderSpecificInput() *EnableProtectionProviderSpecificInput

GetEnableProtectionProviderSpecificInput implements the EnableProtectionProviderSpecificInputClassification interface for type A2ACrossClusterMigrationEnableProtectionInput.

func (A2ACrossClusterMigrationEnableProtectionInput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type A2ACrossClusterMigrationEnableProtectionInput.

func (*A2ACrossClusterMigrationEnableProtectionInput) UnmarshalJSON

func (a *A2ACrossClusterMigrationEnableProtectionInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2ACrossClusterMigrationEnableProtectionInput.

type A2ACrossClusterMigrationPolicyCreationInput

type A2ACrossClusterMigrationPolicyCreationInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

A2ACrossClusterMigrationPolicyCreationInput - A2A Cross-Cluster Migration Policy creation input.

func (*A2ACrossClusterMigrationPolicyCreationInput) GetPolicyProviderSpecificInput added in v0.2.0

func (a *A2ACrossClusterMigrationPolicyCreationInput) GetPolicyProviderSpecificInput() *PolicyProviderSpecificInput

GetPolicyProviderSpecificInput implements the PolicyProviderSpecificInputClassification interface for type A2ACrossClusterMigrationPolicyCreationInput.

func (A2ACrossClusterMigrationPolicyCreationInput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type A2ACrossClusterMigrationPolicyCreationInput.

func (*A2ACrossClusterMigrationPolicyCreationInput) UnmarshalJSON added in v0.2.0

func (a *A2ACrossClusterMigrationPolicyCreationInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2ACrossClusterMigrationPolicyCreationInput.

type A2ACrossClusterMigrationReplicationDetails

type A2ACrossClusterMigrationReplicationDetails struct {
	// REQUIRED; Gets the Instance type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The fabric specific object Id of the virtual machine.
	FabricObjectID *string `json:"fabricObjectId,omitempty"`

	// An id associated with the PE that survives actions like switch protection which change the backing PE/CPE objects internally.The
	// lifecycle id gets carried forward to have a link/continuity in being
	// able to have an Id that denotes the "same" protected item even though other internal Ids/ARM Id might be changing.
	LifecycleID *string `json:"lifecycleId,omitempty"`

	// The type of operating system.
	OSType *string `json:"osType,omitempty"`

	// Primary fabric location.
	PrimaryFabricLocation *string `json:"primaryFabricLocation,omitempty"`

	// The protection state for the vm.
	VMProtectionState *string `json:"vmProtectionState,omitempty"`

	// The protection state description for the vm.
	VMProtectionStateDescription *string `json:"vmProtectionStateDescription,omitempty"`
}

A2ACrossClusterMigrationReplicationDetails - A2A provider specific settings.

func (*A2ACrossClusterMigrationReplicationDetails) GetReplicationProviderSpecificSettings added in v0.2.0

func (a *A2ACrossClusterMigrationReplicationDetails) GetReplicationProviderSpecificSettings() *ReplicationProviderSpecificSettings

GetReplicationProviderSpecificSettings implements the ReplicationProviderSpecificSettingsClassification interface for type A2ACrossClusterMigrationReplicationDetails.

func (A2ACrossClusterMigrationReplicationDetails) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type A2ACrossClusterMigrationReplicationDetails.

func (*A2ACrossClusterMigrationReplicationDetails) UnmarshalJSON

func (a *A2ACrossClusterMigrationReplicationDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2ACrossClusterMigrationReplicationDetails.

type A2AEnableProtectionInput

type A2AEnableProtectionInput struct {
	// REQUIRED; The fabric specific object Id of the virtual machine.
	FabricObjectID *string `json:"fabricObjectId,omitempty"`

	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The recovery disk encryption information (for two pass flows).
	DiskEncryptionInfo *DiskEncryptionInfo `json:"diskEncryptionInfo,omitempty"`

	// The multi vm group id.
	MultiVMGroupID *string `json:"multiVmGroupId,omitempty"`

	// The multi vm group name.
	MultiVMGroupName *string `json:"multiVmGroupName,omitempty"`

	// The recovery availability set Id.
	RecoveryAvailabilitySetID *string `json:"recoveryAvailabilitySetId,omitempty"`

	// The recovery availability zone.
	RecoveryAvailabilityZone *string `json:"recoveryAvailabilityZone,omitempty"`

	// The recovery Azure virtual network ARM id.
	RecoveryAzureNetworkID *string `json:"recoveryAzureNetworkId,omitempty"`

	// The boot diagnostic storage account.
	RecoveryBootDiagStorageAccountID *string `json:"recoveryBootDiagStorageAccountId,omitempty"`

	// The recovery capacity reservation group Id.
	RecoveryCapacityReservationGroupID *string `json:"recoveryCapacityReservationGroupId,omitempty"`

	// The recovery cloud service Id. Valid for V1 scenarios.
	RecoveryCloudServiceID *string `json:"recoveryCloudServiceId,omitempty"`

	// The recovery container Id.
	RecoveryContainerID *string `json:"recoveryContainerId,omitempty"`

	// The recovery extended location.
	RecoveryExtendedLocation *ExtendedLocation `json:"recoveryExtendedLocation,omitempty"`

	// The recovery proximity placement group Id.
	RecoveryProximityPlacementGroupID *string `json:"recoveryProximityPlacementGroupId,omitempty"`

	// The recovery resource group Id. Valid for V2 scenarios.
	RecoveryResourceGroupID *string `json:"recoveryResourceGroupId,omitempty"`

	// The recovery subnet name.
	RecoverySubnetName *string `json:"recoverySubnetName,omitempty"`

	// The virtual machine scale set Id.
	RecoveryVirtualMachineScaleSetID *string `json:"recoveryVirtualMachineScaleSetId,omitempty"`

	// The list of vm disk details.
	VMDisks []*A2AVMDiskInputDetails `json:"vmDisks,omitempty"`

	// The list of vm managed disk details.
	VMManagedDisks []*A2AVMManagedDiskInputDetails `json:"vmManagedDisks,omitempty"`
}

A2AEnableProtectionInput - A2A enable protection input.

func (*A2AEnableProtectionInput) GetEnableProtectionProviderSpecificInput added in v0.2.0

func (a *A2AEnableProtectionInput) GetEnableProtectionProviderSpecificInput() *EnableProtectionProviderSpecificInput

GetEnableProtectionProviderSpecificInput implements the EnableProtectionProviderSpecificInputClassification interface for type A2AEnableProtectionInput.

func (A2AEnableProtectionInput) MarshalJSON

func (a A2AEnableProtectionInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2AEnableProtectionInput.

func (*A2AEnableProtectionInput) UnmarshalJSON

func (a *A2AEnableProtectionInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2AEnableProtectionInput.

type A2AEventDetails

type A2AEventDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// The fabric location.
	FabricLocation *string `json:"fabricLocation,omitempty"`

	// Fabric arm name.
	FabricName *string `json:"fabricName,omitempty"`

	// The azure vm arm id.
	FabricObjectID *string `json:"fabricObjectId,omitempty"`

	// The protected item arm name.
	ProtectedItemName *string `json:"protectedItemName,omitempty"`

	// Remote fabric location.
	RemoteFabricLocation *string `json:"remoteFabricLocation,omitempty"`

	// Remote fabric arm name.
	RemoteFabricName *string `json:"remoteFabricName,omitempty"`
}

A2AEventDetails - Model class for event details of a A2A event.

func (*A2AEventDetails) GetEventProviderSpecificDetails added in v0.2.0

func (a *A2AEventDetails) GetEventProviderSpecificDetails() *EventProviderSpecificDetails

GetEventProviderSpecificDetails implements the EventProviderSpecificDetailsClassification interface for type A2AEventDetails.

func (A2AEventDetails) MarshalJSON

func (a A2AEventDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2AEventDetails.

func (*A2AEventDetails) UnmarshalJSON

func (a *A2AEventDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2AEventDetails.

type A2AExtendedLocationDetails added in v1.1.0

type A2AExtendedLocationDetails struct {
	// The primary ExtendedLocation.
	PrimaryExtendedLocation *ExtendedLocation `json:"primaryExtendedLocation,omitempty"`

	// The recovery ExtendedLocation.
	RecoveryExtendedLocation *ExtendedLocation `json:"recoveryExtendedLocation,omitempty"`
}

A2AExtendedLocationDetails - ExtendedLocation details data.

func (A2AExtendedLocationDetails) MarshalJSON added in v1.1.0

func (a A2AExtendedLocationDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2AExtendedLocationDetails.

func (*A2AExtendedLocationDetails) UnmarshalJSON added in v1.1.0

func (a *A2AExtendedLocationDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2AExtendedLocationDetails.

type A2APolicyCreationInput

type A2APolicyCreationInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; A value indicating whether multi-VM sync has to be enabled. Value should be 'Enabled' or 'Disabled'.
	MultiVMSyncStatus *SetMultiVMSyncStatus `json:"multiVmSyncStatus,omitempty"`

	// The app consistent snapshot frequency (in minutes).
	AppConsistentFrequencyInMinutes *int32 `json:"appConsistentFrequencyInMinutes,omitempty"`

	// The crash consistent snapshot frequency (in minutes).
	CrashConsistentFrequencyInMinutes *int32 `json:"crashConsistentFrequencyInMinutes,omitempty"`

	// The duration in minutes until which the recovery points need to be stored.
	RecoveryPointHistory *int32 `json:"recoveryPointHistory,omitempty"`
}

A2APolicyCreationInput - A2A Policy creation input.

func (*A2APolicyCreationInput) GetPolicyProviderSpecificInput added in v0.2.0

func (a *A2APolicyCreationInput) GetPolicyProviderSpecificInput() *PolicyProviderSpecificInput

GetPolicyProviderSpecificInput implements the PolicyProviderSpecificInputClassification interface for type A2APolicyCreationInput.

func (A2APolicyCreationInput) MarshalJSON

func (a A2APolicyCreationInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2APolicyCreationInput.

func (*A2APolicyCreationInput) UnmarshalJSON

func (a *A2APolicyCreationInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2APolicyCreationInput.

type A2APolicyDetails

type A2APolicyDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// The app consistent snapshot frequency in minutes.
	AppConsistentFrequencyInMinutes *int32 `json:"appConsistentFrequencyInMinutes,omitempty"`

	// The crash consistent snapshot frequency in minutes.
	CrashConsistentFrequencyInMinutes *int32 `json:"crashConsistentFrequencyInMinutes,omitempty"`

	// A value indicating whether multi-VM sync has to be enabled.
	MultiVMSyncStatus *string `json:"multiVmSyncStatus,omitempty"`

	// The duration in minutes until which the recovery points need to be stored.
	RecoveryPointHistory *int32 `json:"recoveryPointHistory,omitempty"`

	// The recovery point threshold in minutes.
	RecoveryPointThresholdInMinutes *int32 `json:"recoveryPointThresholdInMinutes,omitempty"`
}

A2APolicyDetails - A2A specific policy details.

func (*A2APolicyDetails) GetPolicyProviderSpecificDetails added in v0.2.0

func (a *A2APolicyDetails) GetPolicyProviderSpecificDetails() *PolicyProviderSpecificDetails

GetPolicyProviderSpecificDetails implements the PolicyProviderSpecificDetailsClassification interface for type A2APolicyDetails.

func (A2APolicyDetails) MarshalJSON

func (a A2APolicyDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2APolicyDetails.

func (*A2APolicyDetails) UnmarshalJSON

func (a *A2APolicyDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2APolicyDetails.

type A2AProtectedDiskDetails

type A2AProtectedDiskDetails struct {
	// The disk level operations list.
	AllowedDiskLevelOperation []*string `json:"allowedDiskLevelOperation,omitempty"`

	// The data pending at source virtual machine in MB.
	DataPendingAtSourceAgentInMB *float64 `json:"dataPendingAtSourceAgentInMB,omitempty"`

	// The data pending for replication in MB at staging account.
	DataPendingInStagingStorageAccountInMB *float64 `json:"dataPendingInStagingStorageAccountInMB,omitempty"`

	// The KeyVault resource id for secret (BEK).
	DekKeyVaultArmID *string `json:"dekKeyVaultArmId,omitempty"`

	// The disk capacity in bytes.
	DiskCapacityInBytes *int64 `json:"diskCapacityInBytes,omitempty"`

	// The disk name.
	DiskName *string `json:"diskName,omitempty"`

	// The disk state.
	DiskState *string `json:"diskState,omitempty"`

	// The type of disk.
	DiskType *string `json:"diskType,omitempty"`

	// The disk uri.
	DiskURI *string `json:"diskUri,omitempty"`

	// The failover name for the managed disk.
	FailoverDiskName *string `json:"failoverDiskName,omitempty"`

	// A value indicating whether vm has encrypted os disk or not.
	IsDiskEncrypted *bool `json:"isDiskEncrypted,omitempty"`

	// A value indicating whether disk key got encrypted or not.
	IsDiskKeyEncrypted *bool `json:"isDiskKeyEncrypted,omitempty"`

	// The KeyVault resource id for key (KEK).
	KekKeyVaultArmID *string `json:"kekKeyVaultArmId,omitempty"`

	// The key URL / identifier (KEK).
	KeyIdentifier *string `json:"keyIdentifier,omitempty"`

	// The type of the monitoring job. The progress is contained in MonitoringPercentageCompletion property.
	MonitoringJobType *string `json:"monitoringJobType,omitempty"`

	// The percentage of the monitoring job. The type of the monitoring job is defined by MonitoringJobType property.
	MonitoringPercentageCompletion *int32 `json:"monitoringPercentageCompletion,omitempty"`

	// The primary disk storage account.
	PrimaryDiskAzureStorageAccountID *string `json:"primaryDiskAzureStorageAccountId,omitempty"`

	// The primary staging storage account.
	PrimaryStagingAzureStorageAccountID *string `json:"primaryStagingAzureStorageAccountId,omitempty"`

	// The recovery disk storage account.
	RecoveryAzureStorageAccountID *string `json:"recoveryAzureStorageAccountId,omitempty"`

	// Recovery disk uri.
	RecoveryDiskURI *string `json:"recoveryDiskUri,omitempty"`

	// A value indicating whether resync is required for this disk.
	ResyncRequired *bool `json:"resyncRequired,omitempty"`

	// The secret URL / identifier (BEK).
	SecretIdentifier *string `json:"secretIdentifier,omitempty"`

	// The test failover name for the managed disk.
	TfoDiskName *string `json:"tfoDiskName,omitempty"`
}

A2AProtectedDiskDetails - A2A protected disk details.

func (A2AProtectedDiskDetails) MarshalJSON

func (a A2AProtectedDiskDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2AProtectedDiskDetails.

func (*A2AProtectedDiskDetails) UnmarshalJSON added in v1.1.0

func (a *A2AProtectedDiskDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2AProtectedDiskDetails.

type A2AProtectedManagedDiskDetails

type A2AProtectedManagedDiskDetails struct {
	// The disk level operations list.
	AllowedDiskLevelOperation []*string `json:"allowedDiskLevelOperation,omitempty"`

	// The data pending at source virtual machine in MB.
	DataPendingAtSourceAgentInMB *float64 `json:"dataPendingAtSourceAgentInMB,omitempty"`

	// The data pending for replication in MB at staging account.
	DataPendingInStagingStorageAccountInMB *float64 `json:"dataPendingInStagingStorageAccountInMB,omitempty"`

	// The KeyVault resource id for secret (BEK).
	DekKeyVaultArmID *string `json:"dekKeyVaultArmId,omitempty"`

	// The disk capacity in bytes.
	DiskCapacityInBytes *int64 `json:"diskCapacityInBytes,omitempty"`

	// The managed disk Arm id.
	DiskID *string `json:"diskId,omitempty"`

	// The disk name.
	DiskName *string `json:"diskName,omitempty"`

	// The disk state.
	DiskState *string `json:"diskState,omitempty"`

	// The type of disk.
	DiskType *string `json:"diskType,omitempty"`

	// The failover name for the managed disk.
	FailoverDiskName *string `json:"failoverDiskName,omitempty"`

	// A value indicating whether vm has encrypted os disk or not.
	IsDiskEncrypted *bool `json:"isDiskEncrypted,omitempty"`

	// A value indicating whether disk key got encrypted or not.
	IsDiskKeyEncrypted *bool `json:"isDiskKeyEncrypted,omitempty"`

	// The KeyVault resource id for key (KEK).
	KekKeyVaultArmID *string `json:"kekKeyVaultArmId,omitempty"`

	// The key URL / identifier (KEK).
	KeyIdentifier *string `json:"keyIdentifier,omitempty"`

	// The type of the monitoring job. The progress is contained in MonitoringPercentageCompletion property.
	MonitoringJobType *string `json:"monitoringJobType,omitempty"`

	// The percentage of the monitoring job. The type of the monitoring job is defined by MonitoringJobType property.
	MonitoringPercentageCompletion *int32 `json:"monitoringPercentageCompletion,omitempty"`

	// The primary disk encryption set Id.
	PrimaryDiskEncryptionSetID *string `json:"primaryDiskEncryptionSetId,omitempty"`

	// The primary staging storage account.
	PrimaryStagingAzureStorageAccountID *string `json:"primaryStagingAzureStorageAccountId,omitempty"`

	// The recovery disk encryption set Id.
	RecoveryDiskEncryptionSetID *string `json:"recoveryDiskEncryptionSetId,omitempty"`

	// Recovery original target disk Arm Id.
	RecoveryOrignalTargetDiskID *string `json:"recoveryOrignalTargetDiskId,omitempty"`

	// The replica disk type. Its an optional value and will be same as source disk type if not user provided.
	RecoveryReplicaDiskAccountType *string `json:"recoveryReplicaDiskAccountType,omitempty"`

	// Recovery replica disk Arm Id.
	RecoveryReplicaDiskID *string `json:"recoveryReplicaDiskId,omitempty"`

	// The recovery disk resource group Arm Id.
	RecoveryResourceGroupID *string `json:"recoveryResourceGroupId,omitempty"`

	// The target disk type after failover. Its an optional value and will be same as source disk type if not user provided.
	RecoveryTargetDiskAccountType *string `json:"recoveryTargetDiskAccountType,omitempty"`

	// Recovery target disk Arm Id.
	RecoveryTargetDiskID *string `json:"recoveryTargetDiskId,omitempty"`

	// A value indicating whether resync is required for this disk.
	ResyncRequired *bool `json:"resyncRequired,omitempty"`

	// The secret URL / identifier (BEK).
	SecretIdentifier *string `json:"secretIdentifier,omitempty"`

	// The test failover name for the managed disk.
	TfoDiskName *string `json:"tfoDiskName,omitempty"`
}

A2AProtectedManagedDiskDetails - A2A protected managed disk details.

func (A2AProtectedManagedDiskDetails) MarshalJSON

func (a A2AProtectedManagedDiskDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2AProtectedManagedDiskDetails.

func (*A2AProtectedManagedDiskDetails) UnmarshalJSON added in v1.1.0

func (a *A2AProtectedManagedDiskDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2AProtectedManagedDiskDetails.

type A2AProtectionContainerMappingDetails

type A2AProtectionContainerMappingDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// A value indicating whether the auto update is enabled.
	AgentAutoUpdateStatus *AgentAutoUpdateStatus `json:"agentAutoUpdateStatus,omitempty"`

	// The automation account arm id.
	AutomationAccountArmID *string `json:"automationAccountArmId,omitempty"`

	// A value indicating the type authentication to use for automation Account.
	AutomationAccountAuthenticationType *AutomationAccountAuthenticationType `json:"automationAccountAuthenticationType,omitempty"`

	// The job schedule arm name.
	JobScheduleName *string `json:"jobScheduleName,omitempty"`

	// The schedule arm name.
	ScheduleName *string `json:"scheduleName,omitempty"`
}

A2AProtectionContainerMappingDetails - A2A provider specific settings.

func (*A2AProtectionContainerMappingDetails) GetProtectionContainerMappingProviderSpecificDetails added in v0.2.0

func (a *A2AProtectionContainerMappingDetails) GetProtectionContainerMappingProviderSpecificDetails() *ProtectionContainerMappingProviderSpecificDetails

GetProtectionContainerMappingProviderSpecificDetails implements the ProtectionContainerMappingProviderSpecificDetailsClassification interface for type A2AProtectionContainerMappingDetails.

func (A2AProtectionContainerMappingDetails) MarshalJSON

func (a A2AProtectionContainerMappingDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2AProtectionContainerMappingDetails.

func (*A2AProtectionContainerMappingDetails) UnmarshalJSON

func (a *A2AProtectionContainerMappingDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2AProtectionContainerMappingDetails.

type A2AProtectionIntentDiskInputDetails

type A2AProtectionIntentDiskInputDetails struct {
	// REQUIRED; The disk Uri.
	DiskURI *string `json:"diskUri,omitempty"`

	// The primary staging storage account input.
	PrimaryStagingStorageAccountCustomInput StorageAccountCustomDetailsClassification `json:"primaryStagingStorageAccountCustomInput,omitempty"`

	// The recovery VHD storage account input.
	RecoveryAzureStorageAccountCustomInput StorageAccountCustomDetailsClassification `json:"recoveryAzureStorageAccountCustomInput,omitempty"`
}

A2AProtectionIntentDiskInputDetails - Azure VM unmanaged disk input details.

func (A2AProtectionIntentDiskInputDetails) MarshalJSON

func (a A2AProtectionIntentDiskInputDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2AProtectionIntentDiskInputDetails.

func (*A2AProtectionIntentDiskInputDetails) UnmarshalJSON

func (a *A2AProtectionIntentDiskInputDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2AProtectionIntentDiskInputDetails.

type A2AProtectionIntentManagedDiskInputDetails

type A2AProtectionIntentManagedDiskInputDetails struct {
	// REQUIRED; The disk Id.
	DiskID *string `json:"diskId,omitempty"`

	// The recovery disk encryption information (for one / single pass flows).
	DiskEncryptionInfo *DiskEncryptionInfo `json:"diskEncryptionInfo,omitempty"`

	// The primary staging storage account input.
	PrimaryStagingStorageAccountCustomInput StorageAccountCustomDetailsClassification `json:"primaryStagingStorageAccountCustomInput,omitempty"`

	// The recovery disk encryption set Id.
	RecoveryDiskEncryptionSetID *string `json:"recoveryDiskEncryptionSetId,omitempty"`

	// The replica disk type. Its an optional value and will be same as source disk type if not user provided.
	RecoveryReplicaDiskAccountType *string `json:"recoveryReplicaDiskAccountType,omitempty"`

	// The recovery resource group input.
	RecoveryResourceGroupCustomInput RecoveryResourceGroupCustomDetailsClassification `json:"recoveryResourceGroupCustomInput,omitempty"`

	// The target disk type after failover. Its an optional value and will be same as source disk type if not user provided.
	RecoveryTargetDiskAccountType *string `json:"recoveryTargetDiskAccountType,omitempty"`
}

A2AProtectionIntentManagedDiskInputDetails - Azure VM managed disk input details.

func (A2AProtectionIntentManagedDiskInputDetails) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type A2AProtectionIntentManagedDiskInputDetails.

func (*A2AProtectionIntentManagedDiskInputDetails) UnmarshalJSON

func (a *A2AProtectionIntentManagedDiskInputDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2AProtectionIntentManagedDiskInputDetails.

type A2ARecoveryAvailabilityType

type A2ARecoveryAvailabilityType string

A2ARecoveryAvailabilityType - The recovery availability type of the virtual machine.

const (
	A2ARecoveryAvailabilityTypeAvailabilitySet  A2ARecoveryAvailabilityType = "AvailabilitySet"
	A2ARecoveryAvailabilityTypeAvailabilityZone A2ARecoveryAvailabilityType = "AvailabilityZone"
	A2ARecoveryAvailabilityTypeSingle           A2ARecoveryAvailabilityType = "Single"
)

func PossibleA2ARecoveryAvailabilityTypeValues

func PossibleA2ARecoveryAvailabilityTypeValues() []A2ARecoveryAvailabilityType

PossibleA2ARecoveryAvailabilityTypeValues returns the possible values for the A2ARecoveryAvailabilityType const type.

type A2ARecoveryPointDetails

type A2ARecoveryPointDetails struct {
	// REQUIRED; Gets the provider type.
	InstanceType *string `json:"instanceType,omitempty"`

	// List of disk ids representing a recovery point.
	Disks []*string `json:"disks,omitempty"`

	// A value indicating whether the recovery point is multi VM consistent.
	RecoveryPointSyncType *RecoveryPointSyncType `json:"recoveryPointSyncType,omitempty"`
}

A2ARecoveryPointDetails - A2A provider specific recovery point details.

func (*A2ARecoveryPointDetails) GetProviderSpecificRecoveryPointDetails added in v0.2.0

func (a *A2ARecoveryPointDetails) GetProviderSpecificRecoveryPointDetails() *ProviderSpecificRecoveryPointDetails

GetProviderSpecificRecoveryPointDetails implements the ProviderSpecificRecoveryPointDetailsClassification interface for type A2ARecoveryPointDetails.

func (A2ARecoveryPointDetails) MarshalJSON

func (a A2ARecoveryPointDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2ARecoveryPointDetails.

func (*A2ARecoveryPointDetails) UnmarshalJSON

func (a *A2ARecoveryPointDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2ARecoveryPointDetails.

type A2ARemoveDisksInput

type A2ARemoveDisksInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The list of vm disk vhd URIs.
	VMDisksUris []*string `json:"vmDisksUris,omitempty"`

	// The list of vm managed disk Ids.
	VMManagedDisksIDs []*string `json:"vmManagedDisksIds,omitempty"`
}

A2ARemoveDisksInput - A2A remove disk(s) input.

func (*A2ARemoveDisksInput) GetRemoveDisksProviderSpecificInput added in v0.2.0

func (a *A2ARemoveDisksInput) GetRemoveDisksProviderSpecificInput() *RemoveDisksProviderSpecificInput

GetRemoveDisksProviderSpecificInput implements the RemoveDisksProviderSpecificInputClassification interface for type A2ARemoveDisksInput.

func (A2ARemoveDisksInput) MarshalJSON

func (a A2ARemoveDisksInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2ARemoveDisksInput.

func (*A2ARemoveDisksInput) UnmarshalJSON

func (a *A2ARemoveDisksInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2ARemoveDisksInput.

type A2AReplicationDetails

type A2AReplicationDetails struct {
	// REQUIRED; Gets the Instance type.
	InstanceType *string `json:"instanceType,omitempty"`

	// Agent expiry date.
	AgentExpiryDate *time.Time `json:"agentExpiryDate,omitempty"`

	// The agent version.
	AgentVersion *string `json:"agentVersion,omitempty"`

	// A value indicating whether the auto protection is enabled.
	AutoProtectionOfDataDisk *AutoProtectionOfDataDisk `json:"autoProtectionOfDataDisk,omitempty"`

	// The fabric specific object Id of the virtual machine.
	FabricObjectID *string `json:"fabricObjectId,omitempty"`

	// The initial primary extended location.
	InitialPrimaryExtendedLocation *ExtendedLocation `json:"initialPrimaryExtendedLocation,omitempty"`

	// The initial recovery extended location.
	InitialRecoveryExtendedLocation *ExtendedLocation `json:"initialRecoveryExtendedLocation,omitempty"`

	// A value indicating whether agent certificate update is required.
	IsReplicationAgentCertificateUpdateRequired *bool `json:"isReplicationAgentCertificateUpdateRequired,omitempty"`

	// A value indicating whether replication agent update is required.
	IsReplicationAgentUpdateRequired *bool `json:"isReplicationAgentUpdateRequired,omitempty"`

	// The last heartbeat received from the source server.
	LastHeartbeat *time.Time `json:"lastHeartbeat,omitempty"`

	// The time (in UTC) when the last RPO value was calculated by Protection Service.
	LastRpoCalculatedTime *time.Time `json:"lastRpoCalculatedTime,omitempty"`

	// An id associated with the PE that survives actions like switch protection which change the backing PE/CPE objects internally.The
	// lifecycle id gets carried forward to have a link/continuity in being
	// able to have an Id that denotes the "same" protected item even though other internal Ids/ARM Id might be changing.
	LifecycleID *string `json:"lifecycleId,omitempty"`

	// The management Id.
	ManagementID *string `json:"managementId,omitempty"`

	// The type of the monitoring job. The progress is contained in MonitoringPercentageCompletion property.
	MonitoringJobType *string `json:"monitoringJobType,omitempty"`

	// The percentage of the monitoring job. The type of the monitoring job is defined by MonitoringJobType property.
	MonitoringPercentageCompletion *int32 `json:"monitoringPercentageCompletion,omitempty"`

	// Whether Multi VM group is auto created or specified by user.
	MultiVMGroupCreateOption *MultiVMGroupCreateOption `json:"multiVmGroupCreateOption,omitempty"`

	// The multi vm group Id.
	MultiVMGroupID *string `json:"multiVmGroupId,omitempty"`

	// The multi vm group name.
	MultiVMGroupName *string `json:"multiVmGroupName,omitempty"`

	// The type of operating system.
	OSType *string `json:"osType,omitempty"`

	// The primary availability zone.
	PrimaryAvailabilityZone *string `json:"primaryAvailabilityZone,omitempty"`

	// The primary Extended Location.
	PrimaryExtendedLocation *ExtendedLocation `json:"primaryExtendedLocation,omitempty"`

	// Primary fabric location.
	PrimaryFabricLocation *string `json:"primaryFabricLocation,omitempty"`

	// The list of protected disks.
	ProtectedDisks []*A2AProtectedDiskDetails `json:"protectedDisks,omitempty"`

	// The list of protected managed disks.
	ProtectedManagedDisks []*A2AProtectedManagedDiskDetails `json:"protectedManagedDisks,omitempty"`

	// The recovery availability set.
	RecoveryAvailabilitySet *string `json:"recoveryAvailabilitySet,omitempty"`

	// The recovery availability zone.
	RecoveryAvailabilityZone *string `json:"recoveryAvailabilityZone,omitempty"`

	// The recovery resource group.
	RecoveryAzureResourceGroupID *string `json:"recoveryAzureResourceGroupId,omitempty"`

	// The name of recovery virtual machine.
	RecoveryAzureVMName *string `json:"recoveryAzureVMName,omitempty"`

	// The size of recovery virtual machine.
	RecoveryAzureVMSize *string `json:"recoveryAzureVMSize,omitempty"`

	// The recovery boot diagnostic storage account Arm Id.
	RecoveryBootDiagStorageAccountID *string `json:"recoveryBootDiagStorageAccountId,omitempty"`

	// The recovery capacity reservation group Id.
	RecoveryCapacityReservationGroupID *string `json:"recoveryCapacityReservationGroupId,omitempty"`

	// The recovery cloud service.
	RecoveryCloudService *string `json:"recoveryCloudService,omitempty"`

	// The recovery Extended Location.
	RecoveryExtendedLocation *ExtendedLocation `json:"recoveryExtendedLocation,omitempty"`

	// The recovery fabric location.
	RecoveryFabricLocation *string `json:"recoveryFabricLocation,omitempty"`

	// The recovery fabric object Id.
	RecoveryFabricObjectID *string `json:"recoveryFabricObjectId,omitempty"`

	// The recovery proximity placement group Id.
	RecoveryProximityPlacementGroupID *string `json:"recoveryProximityPlacementGroupId,omitempty"`

	// The recovery virtual machine scale set id.
	RecoveryVirtualMachineScaleSetID *string `json:"recoveryVirtualMachineScaleSetId,omitempty"`

	// The last RPO value in seconds.
	RpoInSeconds *int64 `json:"rpoInSeconds,omitempty"`

	// The recovery virtual network.
	SelectedRecoveryAzureNetworkID *string `json:"selectedRecoveryAzureNetworkId,omitempty"`

	// The test failover virtual network.
	SelectedTfoAzureNetworkID *string `json:"selectedTfoAzureNetworkId,omitempty"`

	// The test failover fabric object Id.
	TestFailoverRecoveryFabricObjectID *string `json:"testFailoverRecoveryFabricObjectId,omitempty"`

	// The test failover vm name.
	TfoAzureVMName *string `json:"tfoAzureVMName,omitempty"`

	// The list of unprotected disks.
	UnprotectedDisks []*A2AUnprotectedDiskDetails `json:"unprotectedDisks,omitempty"`

	// The virtual machine nic details.
	VMNics []*VMNicDetails `json:"vmNics,omitempty"`

	// The protection state for the vm.
	VMProtectionState *string `json:"vmProtectionState,omitempty"`

	// The protection state description for the vm.
	VMProtectionStateDescription *string `json:"vmProtectionStateDescription,omitempty"`

	// The synced configuration details.
	VMSyncedConfigDetails *AzureToAzureVMSyncedConfigDetails `json:"vmSyncedConfigDetails,omitempty"`

	// READ-ONLY; Agent certificate expiry date.
	AgentCertificateExpiryDate *time.Time `json:"agentCertificateExpiryDate,omitempty" azure:"ro"`

	// READ-ONLY; The initial primary fabric location.
	InitialPrimaryFabricLocation *string `json:"initialPrimaryFabricLocation,omitempty" azure:"ro"`

	// READ-ONLY; The initial primary availability zone.
	InitialPrimaryZone *string `json:"initialPrimaryZone,omitempty" azure:"ro"`

	// READ-ONLY; The initial recovery fabric location.
	InitialRecoveryFabricLocation *string `json:"initialRecoveryFabricLocation,omitempty" azure:"ro"`

	// READ-ONLY; The initial recovery availability zone.
	InitialRecoveryZone *string `json:"initialRecoveryZone,omitempty" azure:"ro"`

	// READ-ONLY; The recovery azure generation.
	RecoveryAzureGeneration *string `json:"recoveryAzureGeneration,omitempty" azure:"ro"`

	// READ-ONLY; The encryption type of the VM.
	VMEncryptionType *VMEncryptionType `json:"vmEncryptionType,omitempty" azure:"ro"`
}

A2AReplicationDetails - A2A provider specific settings.

func (*A2AReplicationDetails) GetReplicationProviderSpecificSettings added in v0.2.0

func (a *A2AReplicationDetails) GetReplicationProviderSpecificSettings() *ReplicationProviderSpecificSettings

GetReplicationProviderSpecificSettings implements the ReplicationProviderSpecificSettingsClassification interface for type A2AReplicationDetails.

func (A2AReplicationDetails) MarshalJSON

func (a A2AReplicationDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2AReplicationDetails.

func (*A2AReplicationDetails) UnmarshalJSON

func (a *A2AReplicationDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2AReplicationDetails.

type A2AReplicationIntentDetails

type A2AReplicationIntentDetails struct {
	// REQUIRED; Gets the Instance type.
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; The recovery availability type of the virtual machine.
	RecoveryAvailabilityType *string `json:"recoveryAvailabilityType,omitempty"`

	// A value indicating whether the auto update is enabled.
	AgentAutoUpdateStatus *AgentAutoUpdateStatus `json:"agentAutoUpdateStatus,omitempty"`

	// A value indicating whether the auto protection is enabled.
	AutoProtectionOfDataDisk *AutoProtectionOfDataDisk `json:"autoProtectionOfDataDisk,omitempty"`

	// The automation account arm id.
	AutomationAccountArmID *string `json:"automationAccountArmId,omitempty"`

	// A value indicating the type authentication to use for automation Account.
	AutomationAccountAuthenticationType *AutomationAccountAuthenticationType `json:"automationAccountAuthenticationType,omitempty"`

	// The recovery disk encryption information (for two pass flows).
	DiskEncryptionInfo *DiskEncryptionInfo `json:"diskEncryptionInfo,omitempty"`

	// The fabric specific object Id of the virtual machine.
	FabricObjectID *string `json:"fabricObjectId,omitempty"`

	// The multi vm group id.
	MultiVMGroupID *string `json:"multiVmGroupId,omitempty"`

	// The multi vm group name.
	MultiVMGroupName *string `json:"multiVmGroupName,omitempty"`

	// The primary location for the virtual machine.
	PrimaryLocation *string `json:"primaryLocation,omitempty"`

	// The primary staging storage account details.
	PrimaryStagingStorageAccount StorageAccountCustomDetailsClassification `json:"primaryStagingStorageAccount,omitempty"`

	// The protection profile custom details.
	ProtectionProfile ProtectionProfileCustomDetailsClassification `json:"protectionProfile,omitempty"`

	// The recovery availability set details.
	RecoveryAvailabilitySet RecoveryAvailabilitySetCustomDetailsClassification `json:"recoveryAvailabilitySet,omitempty"`

	// The recovery availability zone.
	RecoveryAvailabilityZone *string `json:"recoveryAvailabilityZone,omitempty"`

	// The boot diagnostic storage account.
	RecoveryBootDiagStorageAccount StorageAccountCustomDetailsClassification `json:"recoveryBootDiagStorageAccount,omitempty"`

	// The recovery location for the virtual machine.
	RecoveryLocation *string `json:"recoveryLocation,omitempty"`

	// The recovery proximity placement group custom details.
	RecoveryProximityPlacementGroup RecoveryProximityPlacementGroupCustomDetailsClassification `json:"recoveryProximityPlacementGroup,omitempty"`

	// The recovery resource group id.
	RecoveryResourceGroupID *string `json:"recoveryResourceGroupId,omitempty"`

	// The recovery subscription Id of the virtual machine.
	RecoverySubscriptionID *string `json:"recoverySubscriptionId,omitempty"`

	// The recovery virtual network details.
	RecoveryVirtualNetwork RecoveryVirtualNetworkCustomDetailsClassification `json:"recoveryVirtualNetwork,omitempty"`

	// The list of vm disk details.
	VMDisks []*A2AProtectionIntentDiskInputDetails `json:"vmDisks,omitempty"`

	// The list of vm managed disk details.
	VMManagedDisks []*A2AProtectionIntentManagedDiskInputDetails `json:"vmManagedDisks,omitempty"`
}

A2AReplicationIntentDetails - A2A provider specific settings.

func (*A2AReplicationIntentDetails) GetReplicationProtectionIntentProviderSpecificSettings added in v0.2.0

func (a *A2AReplicationIntentDetails) GetReplicationProtectionIntentProviderSpecificSettings() *ReplicationProtectionIntentProviderSpecificSettings

GetReplicationProtectionIntentProviderSpecificSettings implements the ReplicationProtectionIntentProviderSpecificSettingsClassification interface for type A2AReplicationIntentDetails.

func (A2AReplicationIntentDetails) MarshalJSON

func (a A2AReplicationIntentDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2AReplicationIntentDetails.

func (*A2AReplicationIntentDetails) UnmarshalJSON

func (a *A2AReplicationIntentDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2AReplicationIntentDetails.

type A2AReprotectInput

type A2AReprotectInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The Policy Id.
	PolicyID *string `json:"policyId,omitempty"`

	// The recovery availability set.
	RecoveryAvailabilitySetID *string `json:"recoveryAvailabilitySetId,omitempty"`

	// The recovery cloud service Id. Valid for V1 scenarios.
	RecoveryCloudServiceID *string `json:"recoveryCloudServiceId,omitempty"`

	// The recovery container Id.
	RecoveryContainerID *string `json:"recoveryContainerId,omitempty"`

	// The recovery resource group Id. Valid for V2 scenarios.
	RecoveryResourceGroupID *string `json:"recoveryResourceGroupId,omitempty"`

	// The list of vm disk details.
	VMDisks []*A2AVMDiskInputDetails `json:"vmDisks,omitempty"`
}

A2AReprotectInput - Azure specific reprotect input.

func (*A2AReprotectInput) GetReverseReplicationProviderSpecificInput added in v0.2.0

func (a *A2AReprotectInput) GetReverseReplicationProviderSpecificInput() *ReverseReplicationProviderSpecificInput

GetReverseReplicationProviderSpecificInput implements the ReverseReplicationProviderSpecificInputClassification interface for type A2AReprotectInput.

func (A2AReprotectInput) MarshalJSON

func (a A2AReprotectInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2AReprotectInput.

func (*A2AReprotectInput) UnmarshalJSON

func (a *A2AReprotectInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2AReprotectInput.

type A2ARpRecoveryPointType

type A2ARpRecoveryPointType string

A2ARpRecoveryPointType - The recovery point type.

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

func PossibleA2ARpRecoveryPointTypeValues

func PossibleA2ARpRecoveryPointTypeValues() []A2ARpRecoveryPointType

PossibleA2ARpRecoveryPointTypeValues returns the possible values for the A2ARpRecoveryPointType const type.

type A2ASwitchProtectionInput

type A2ASwitchProtectionInput struct {
	// REQUIRED; Gets the Instance type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The recovery disk encryption information.
	DiskEncryptionInfo *DiskEncryptionInfo `json:"diskEncryptionInfo,omitempty"`

	// The Policy Id.
	PolicyID *string `json:"policyId,omitempty"`

	// The recovery availability set.
	RecoveryAvailabilitySetID *string `json:"recoveryAvailabilitySetId,omitempty"`

	// The recovery availability zone.
	RecoveryAvailabilityZone *string `json:"recoveryAvailabilityZone,omitempty"`

	// The boot diagnostic storage account.
	RecoveryBootDiagStorageAccountID *string `json:"recoveryBootDiagStorageAccountId,omitempty"`

	// The recovery capacity reservation group Id.
	RecoveryCapacityReservationGroupID *string `json:"recoveryCapacityReservationGroupId,omitempty"`

	// The recovery cloud service Id. Valid for V1 scenarios.
	RecoveryCloudServiceID *string `json:"recoveryCloudServiceId,omitempty"`

	// The recovery container Id.
	RecoveryContainerID *string `json:"recoveryContainerId,omitempty"`

	// The recovery proximity placement group Id.
	RecoveryProximityPlacementGroupID *string `json:"recoveryProximityPlacementGroupId,omitempty"`

	// The recovery resource group Id. Valid for V2 scenarios.
	RecoveryResourceGroupID *string `json:"recoveryResourceGroupId,omitempty"`

	// The virtual machine scale set id.
	RecoveryVirtualMachineScaleSetID *string `json:"recoveryVirtualMachineScaleSetId,omitempty"`

	// The list of vm disk details.
	VMDisks []*A2AVMDiskInputDetails `json:"vmDisks,omitempty"`

	// The list of vm managed disk details.
	VMManagedDisks []*A2AVMManagedDiskInputDetails `json:"vmManagedDisks,omitempty"`
}

A2ASwitchProtectionInput - A2A specific switch protection input.

func (*A2ASwitchProtectionInput) GetSwitchProtectionProviderSpecificInput added in v0.2.0

func (a *A2ASwitchProtectionInput) GetSwitchProtectionProviderSpecificInput() *SwitchProtectionProviderSpecificInput

GetSwitchProtectionProviderSpecificInput implements the SwitchProtectionProviderSpecificInputClassification interface for type A2ASwitchProtectionInput.

func (A2ASwitchProtectionInput) MarshalJSON

func (a A2ASwitchProtectionInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2ASwitchProtectionInput.

func (*A2ASwitchProtectionInput) UnmarshalJSON

func (a *A2ASwitchProtectionInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2ASwitchProtectionInput.

type A2ATestFailoverInput

type A2ATestFailoverInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// A value indicating whether to use recovery cloud service for TFO or not.
	CloudServiceCreationOption *string `json:"cloudServiceCreationOption,omitempty"`

	// The recovery point id to be passed to test failover to a particular recovery point. In case of latest recovery point, null
	// should be passed.
	RecoveryPointID *string `json:"recoveryPointId,omitempty"`
}

A2ATestFailoverInput - A2A provider specific input for test failover.

func (*A2ATestFailoverInput) GetTestFailoverProviderSpecificInput added in v0.2.0

func (a *A2ATestFailoverInput) GetTestFailoverProviderSpecificInput() *TestFailoverProviderSpecificInput

GetTestFailoverProviderSpecificInput implements the TestFailoverProviderSpecificInputClassification interface for type A2ATestFailoverInput.

func (A2ATestFailoverInput) MarshalJSON

func (a A2ATestFailoverInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2ATestFailoverInput.

func (*A2ATestFailoverInput) UnmarshalJSON

func (a *A2ATestFailoverInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2ATestFailoverInput.

type A2AUnplannedFailoverInput

type A2AUnplannedFailoverInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// A value indicating whether to use recovery cloud service for failover or not.
	CloudServiceCreationOption *string `json:"cloudServiceCreationOption,omitempty"`

	// The recovery point id to be passed to failover to a particular recovery point. In case of latest recovery point, null should
	// be passed.
	RecoveryPointID *string `json:"recoveryPointId,omitempty"`
}

A2AUnplannedFailoverInput - A2A provider specific input for unplanned failover.

func (*A2AUnplannedFailoverInput) GetUnplannedFailoverProviderSpecificInput added in v0.2.0

func (a *A2AUnplannedFailoverInput) GetUnplannedFailoverProviderSpecificInput() *UnplannedFailoverProviderSpecificInput

GetUnplannedFailoverProviderSpecificInput implements the UnplannedFailoverProviderSpecificInputClassification interface for type A2AUnplannedFailoverInput.

func (A2AUnplannedFailoverInput) MarshalJSON

func (a A2AUnplannedFailoverInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2AUnplannedFailoverInput.

func (*A2AUnplannedFailoverInput) UnmarshalJSON

func (a *A2AUnplannedFailoverInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2AUnplannedFailoverInput.

type A2AUnprotectedDiskDetails

type A2AUnprotectedDiskDetails struct {
	// A value indicating whether the disk auto protection is enabled.
	DiskAutoProtectionStatus *AutoProtectionOfDataDisk `json:"diskAutoProtectionStatus,omitempty"`

	// The source lun Id for the data disk.
	DiskLunID *int32 `json:"diskLunId,omitempty"`
}

A2AUnprotectedDiskDetails - A2A unprotected disk details.

func (A2AUnprotectedDiskDetails) MarshalJSON added in v1.1.0

func (a A2AUnprotectedDiskDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2AUnprotectedDiskDetails.

func (*A2AUnprotectedDiskDetails) UnmarshalJSON added in v1.1.0

func (a *A2AUnprotectedDiskDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2AUnprotectedDiskDetails.

type A2AUpdateContainerMappingInput

type A2AUpdateContainerMappingInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// A value indicating whether the auto update is enabled.
	AgentAutoUpdateStatus *AgentAutoUpdateStatus `json:"agentAutoUpdateStatus,omitempty"`

	// The automation account arm id.
	AutomationAccountArmID *string `json:"automationAccountArmId,omitempty"`

	// A value indicating the type authentication to use for automation Account.
	AutomationAccountAuthenticationType *AutomationAccountAuthenticationType `json:"automationAccountAuthenticationType,omitempty"`
}

A2AUpdateContainerMappingInput - A2A update protection container mapping.

func (*A2AUpdateContainerMappingInput) GetReplicationProviderSpecificUpdateContainerMappingInput added in v0.2.0

func (a *A2AUpdateContainerMappingInput) GetReplicationProviderSpecificUpdateContainerMappingInput() *ReplicationProviderSpecificUpdateContainerMappingInput

GetReplicationProviderSpecificUpdateContainerMappingInput implements the ReplicationProviderSpecificUpdateContainerMappingInputClassification interface for type A2AUpdateContainerMappingInput.

func (A2AUpdateContainerMappingInput) MarshalJSON

func (a A2AUpdateContainerMappingInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2AUpdateContainerMappingInput.

func (*A2AUpdateContainerMappingInput) UnmarshalJSON

func (a *A2AUpdateContainerMappingInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2AUpdateContainerMappingInput.

type A2AUpdateReplicationProtectedItemInput

type A2AUpdateReplicationProtectedItemInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The recovery os disk encryption information.
	DiskEncryptionInfo *DiskEncryptionInfo `json:"diskEncryptionInfo,omitempty"`

	// Managed disk update details.
	ManagedDiskUpdateDetails []*A2AVMManagedDiskUpdateDetails `json:"managedDiskUpdateDetails,omitempty"`

	// The boot diagnostic storage account.
	RecoveryBootDiagStorageAccountID *string `json:"recoveryBootDiagStorageAccountId,omitempty"`

	// The recovery capacity reservation group Id.
	RecoveryCapacityReservationGroupID *string `json:"recoveryCapacityReservationGroupId,omitempty"`

	// The target cloud service ARM Id (for V1).
	RecoveryCloudServiceID *string `json:"recoveryCloudServiceId,omitempty"`

	// The recovery proximity placement group Id.
	RecoveryProximityPlacementGroupID *string `json:"recoveryProximityPlacementGroupId,omitempty"`

	// The target resource group ARM Id (for V2).
	RecoveryResourceGroupID *string `json:"recoveryResourceGroupId,omitempty"`

	// The recovery virtual machine scale set Id.
	RecoveryVirtualMachineScaleSetID *string `json:"recoveryVirtualMachineScaleSetId,omitempty"`

	// The user given name for Test Failover VM.
	TfoAzureVMName *string `json:"tfoAzureVMName,omitempty"`
}

A2AUpdateReplicationProtectedItemInput - InMage Azure V2 input to update replication protected item.

func (*A2AUpdateReplicationProtectedItemInput) GetUpdateReplicationProtectedItemProviderInput added in v0.2.0

func (a *A2AUpdateReplicationProtectedItemInput) GetUpdateReplicationProtectedItemProviderInput() *UpdateReplicationProtectedItemProviderInput

GetUpdateReplicationProtectedItemProviderInput implements the UpdateReplicationProtectedItemProviderInputClassification interface for type A2AUpdateReplicationProtectedItemInput.

func (A2AUpdateReplicationProtectedItemInput) MarshalJSON

func (a A2AUpdateReplicationProtectedItemInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2AUpdateReplicationProtectedItemInput.

func (*A2AUpdateReplicationProtectedItemInput) UnmarshalJSON

func (a *A2AUpdateReplicationProtectedItemInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2AUpdateReplicationProtectedItemInput.

type A2AVMDiskInputDetails

type A2AVMDiskInputDetails struct {
	// REQUIRED; The disk Uri.
	DiskURI *string `json:"diskUri,omitempty"`

	// REQUIRED; The primary staging storage account Id.
	PrimaryStagingAzureStorageAccountID *string `json:"primaryStagingAzureStorageAccountId,omitempty"`

	// REQUIRED; The recovery VHD storage account Id.
	RecoveryAzureStorageAccountID *string `json:"recoveryAzureStorageAccountId,omitempty"`
}

A2AVMDiskInputDetails - A2A disk input details.

func (A2AVMDiskInputDetails) MarshalJSON added in v1.1.0

func (a A2AVMDiskInputDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2AVMDiskInputDetails.

func (*A2AVMDiskInputDetails) UnmarshalJSON added in v1.1.0

func (a *A2AVMDiskInputDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2AVMDiskInputDetails.

type A2AVMManagedDiskInputDetails

type A2AVMManagedDiskInputDetails struct {
	// REQUIRED; The disk Id.
	DiskID *string `json:"diskId,omitempty"`

	// REQUIRED; The primary staging storage account Arm Id.
	PrimaryStagingAzureStorageAccountID *string `json:"primaryStagingAzureStorageAccountId,omitempty"`

	// REQUIRED; The target resource group Arm Id.
	RecoveryResourceGroupID *string `json:"recoveryResourceGroupId,omitempty"`

	// The recovery disk encryption information (for one / single pass flows).
	DiskEncryptionInfo *DiskEncryptionInfo `json:"diskEncryptionInfo,omitempty"`

	// The recovery disk encryption set Id.
	RecoveryDiskEncryptionSetID *string `json:"recoveryDiskEncryptionSetId,omitempty"`

	// The replica disk type. Its an optional value and will be same as source disk type if not user provided.
	RecoveryReplicaDiskAccountType *string `json:"recoveryReplicaDiskAccountType,omitempty"`

	// The target disk type after failover. Its an optional value and will be same as source disk type if not user provided.
	RecoveryTargetDiskAccountType *string `json:"recoveryTargetDiskAccountType,omitempty"`
}

A2AVMManagedDiskInputDetails - A2A managed disk input details.

func (A2AVMManagedDiskInputDetails) MarshalJSON added in v1.1.0

func (a A2AVMManagedDiskInputDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2AVMManagedDiskInputDetails.

func (*A2AVMManagedDiskInputDetails) UnmarshalJSON added in v1.1.0

func (a *A2AVMManagedDiskInputDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2AVMManagedDiskInputDetails.

type A2AVMManagedDiskUpdateDetails

type A2AVMManagedDiskUpdateDetails struct {
	// The recovery os disk encryption information.
	DiskEncryptionInfo *DiskEncryptionInfo `json:"diskEncryptionInfo,omitempty"`

	// The disk Id.
	DiskID *string `json:"diskId,omitempty"`

	// The target disk name for unplanned failover operation.
	FailoverDiskName *string `json:"failoverDiskName,omitempty"`

	// The replica disk type before failover.
	RecoveryReplicaDiskAccountType *string `json:"recoveryReplicaDiskAccountType,omitempty"`

	// The target disk type before failover.
	RecoveryTargetDiskAccountType *string `json:"recoveryTargetDiskAccountType,omitempty"`

	// The target disk name for test failover operation.
	TfoDiskName *string `json:"tfoDiskName,omitempty"`
}

A2AVMManagedDiskUpdateDetails - A2A Vm managed disk update details.

func (A2AVMManagedDiskUpdateDetails) MarshalJSON added in v1.1.0

func (a A2AVMManagedDiskUpdateDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2AVMManagedDiskUpdateDetails.

func (*A2AVMManagedDiskUpdateDetails) UnmarshalJSON added in v1.1.0

func (a *A2AVMManagedDiskUpdateDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2AVMManagedDiskUpdateDetails.

type A2AZoneDetails

type A2AZoneDetails struct {
	// Source zone info.
	Source *string `json:"source,omitempty"`

	// The target zone info.
	Target *string `json:"target,omitempty"`
}

A2AZoneDetails - Zone details data.

func (A2AZoneDetails) MarshalJSON added in v1.1.0

func (a A2AZoneDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type A2AZoneDetails.

func (*A2AZoneDetails) UnmarshalJSON added in v1.1.0

func (a *A2AZoneDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type A2AZoneDetails.

type ASRTask

type ASRTask struct {
	// The state/actions applicable on this task.
	AllowedActions []*string `json:"allowedActions,omitempty"`

	// The custom task details based on the task type.
	CustomDetails TaskTypeDetailsClassification `json:"customDetails,omitempty"`

	// The end time.
	EndTime *time.Time `json:"endTime,omitempty"`

	// The task error details.
	Errors []*JobErrorDetails `json:"errors,omitempty"`

	// The name.
	FriendlyName *string `json:"friendlyName,omitempty"`

	// The custom task details based on the task type, if the task type is GroupTaskDetails or one of the types derived from it.
	GroupTaskCustomDetails GroupTaskDetailsClassification `json:"groupTaskCustomDetails,omitempty"`

	// The unique Task name.
	Name *string `json:"name,omitempty"`

	// The start time.
	StartTime *time.Time `json:"startTime,omitempty"`

	// The State. It is one of these values - NotStarted, InProgress, Succeeded, Failed, Cancelled, Suspended or Other.
	State *string `json:"state,omitempty"`

	// The description of the task state. For example - For Succeeded state, description can be Completed, PartiallySucceeded,
	// CompletedWithInformation or Skipped.
	StateDescription *string `json:"stateDescription,omitempty"`

	// The Id.
	TaskID *string `json:"taskId,omitempty"`

	// The type of task. Details in CustomDetails property depend on this type.
	TaskType *string `json:"taskType,omitempty"`
}

ASRTask - Task of the Job.

func (ASRTask) MarshalJSON

func (a ASRTask) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ASRTask.

func (*ASRTask) UnmarshalJSON

func (a *ASRTask) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ASRTask.

type AddDisksInput

type AddDisksInput struct {
	// Add disks input properties.
	Properties *AddDisksInputProperties `json:"properties,omitempty"`
}

AddDisksInput - Input for add disk(s) operation.

func (AddDisksInput) MarshalJSON added in v1.1.0

func (a AddDisksInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AddDisksInput.

func (*AddDisksInput) UnmarshalJSON added in v1.1.0

func (a *AddDisksInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AddDisksInput.

type AddDisksInputProperties

type AddDisksInputProperties struct {
	// REQUIRED; The ReplicationProviderInput. For HyperVReplicaAzure provider, it will be AzureEnableProtectionInput object.
	// For San provider, it will be SanEnableProtectionInput object. For HyperVReplicaAzure
	// provider, it can be null.
	ProviderSpecificDetails AddDisksProviderSpecificInputClassification `json:"providerSpecificDetails,omitempty"`
}

AddDisksInputProperties - Add Disks input properties.

func (AddDisksInputProperties) MarshalJSON

func (a AddDisksInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AddDisksInputProperties.

func (*AddDisksInputProperties) UnmarshalJSON

func (a *AddDisksInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AddDisksInputProperties.

type AddDisksProviderSpecificInput

type AddDisksProviderSpecificInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

AddDisksProviderSpecificInput - Add Disks provider specific input.

func (*AddDisksProviderSpecificInput) GetAddDisksProviderSpecificInput

func (a *AddDisksProviderSpecificInput) GetAddDisksProviderSpecificInput() *AddDisksProviderSpecificInput

GetAddDisksProviderSpecificInput implements the AddDisksProviderSpecificInputClassification interface for type AddDisksProviderSpecificInput.

func (AddDisksProviderSpecificInput) MarshalJSON added in v1.1.0

func (a AddDisksProviderSpecificInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AddDisksProviderSpecificInput.

func (*AddDisksProviderSpecificInput) UnmarshalJSON

func (a *AddDisksProviderSpecificInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AddDisksProviderSpecificInput.

type AddDisksProviderSpecificInputClassification

type AddDisksProviderSpecificInputClassification interface {
	// GetAddDisksProviderSpecificInput returns the AddDisksProviderSpecificInput content of the underlying type.
	GetAddDisksProviderSpecificInput() *AddDisksProviderSpecificInput
}

AddDisksProviderSpecificInputClassification provides polymorphic access to related types. Call the interface's GetAddDisksProviderSpecificInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *A2AAddDisksInput, *AddDisksProviderSpecificInput

type AddRecoveryServicesProviderInput

type AddRecoveryServicesProviderInput struct {
	// REQUIRED; The properties of an add provider request.
	Properties *AddRecoveryServicesProviderInputProperties `json:"properties,omitempty"`
}

AddRecoveryServicesProviderInput - Input required to add a provider.

func (AddRecoveryServicesProviderInput) MarshalJSON added in v1.1.0

func (a AddRecoveryServicesProviderInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AddRecoveryServicesProviderInput.

func (*AddRecoveryServicesProviderInput) UnmarshalJSON added in v1.1.0

func (a *AddRecoveryServicesProviderInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AddRecoveryServicesProviderInput.

type AddRecoveryServicesProviderInputProperties

type AddRecoveryServicesProviderInputProperties struct {
	// REQUIRED; The identity provider input for DRA authentication.
	AuthenticationIdentityInput *IdentityProviderInput `json:"authenticationIdentityInput,omitempty"`

	// REQUIRED; The name of the machine where the provider is getting added.
	MachineName *string `json:"machineName,omitempty"`

	// REQUIRED; The identity provider input for resource access.
	ResourceAccessIdentityInput *IdentityProviderInput `json:"resourceAccessIdentityInput,omitempty"`

	// The Bios Id of the machine.
	BiosID *string `json:"biosId,omitempty"`

	// The identity provider input for data plane authentication.
	DataPlaneAuthenticationIdentityInput *IdentityProviderInput `json:"dataPlaneAuthenticationIdentityInput,omitempty"`

	// The Id of the machine where the provider is getting added.
	MachineID *string `json:"machineId,omitempty"`
}

AddRecoveryServicesProviderInputProperties - The properties of an add provider request.

func (AddRecoveryServicesProviderInputProperties) MarshalJSON added in v1.1.0

MarshalJSON implements the json.Marshaller interface for type AddRecoveryServicesProviderInputProperties.

func (*AddRecoveryServicesProviderInputProperties) UnmarshalJSON added in v1.1.0

func (a *AddRecoveryServicesProviderInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AddRecoveryServicesProviderInputProperties.

type AddVCenterRequest

type AddVCenterRequest struct {
	// The properties of an add vCenter request.
	Properties *AddVCenterRequestProperties `json:"properties,omitempty"`
}

AddVCenterRequest - Input required to add vCenter.

func (AddVCenterRequest) MarshalJSON added in v1.1.0

func (a AddVCenterRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AddVCenterRequest.

func (*AddVCenterRequest) UnmarshalJSON added in v1.1.0

func (a *AddVCenterRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AddVCenterRequest.

type AddVCenterRequestProperties

type AddVCenterRequestProperties struct {
	// The friendly name of the vCenter.
	FriendlyName *string `json:"friendlyName,omitempty"`

	// The IP address of the vCenter to be discovered.
	IPAddress *string `json:"ipAddress,omitempty"`

	// The port number for discovery.
	Port *string `json:"port,omitempty"`

	// The process server Id from where the discovery is orchestrated.
	ProcessServerID *string `json:"processServerId,omitempty"`

	// The account Id which has privileges to discover the vCenter.
	RunAsAccountID *string `json:"runAsAccountId,omitempty"`
}

AddVCenterRequestProperties - The properties of an add vCenter request.

func (AddVCenterRequestProperties) MarshalJSON added in v1.1.0

func (a AddVCenterRequestProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AddVCenterRequestProperties.

func (*AddVCenterRequestProperties) UnmarshalJSON added in v1.1.0

func (a *AddVCenterRequestProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AddVCenterRequestProperties.

type AgentAutoUpdateStatus

type AgentAutoUpdateStatus string

AgentAutoUpdateStatus - A value indicating whether the auto update is enabled.

const (
	AgentAutoUpdateStatusDisabled AgentAutoUpdateStatus = "Disabled"
	AgentAutoUpdateStatusEnabled  AgentAutoUpdateStatus = "Enabled"
)

func PossibleAgentAutoUpdateStatusValues

func PossibleAgentAutoUpdateStatusValues() []AgentAutoUpdateStatus

PossibleAgentAutoUpdateStatusValues returns the possible values for the AgentAutoUpdateStatus const type.

type AgentDetails

type AgentDetails struct {
	// READ-ONLY; The Id of the agent running on the server.
	AgentID *string `json:"agentId,omitempty" azure:"ro"`

	// READ-ONLY; The machine BIOS Id.
	BiosID *string `json:"biosId,omitempty" azure:"ro"`

	// READ-ONLY; The disks.
	Disks []*AgentDiskDetails `json:"disks,omitempty" azure:"ro"`

	// READ-ONLY; The machine FQDN.
	Fqdn *string `json:"fqdn,omitempty" azure:"ro"`

	// READ-ONLY; The Id of the machine to which the agent is registered.
	MachineID *string `json:"machineId,omitempty" azure:"ro"`
}

AgentDetails - Agent details.

func (AgentDetails) MarshalJSON

func (a AgentDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AgentDetails.

func (*AgentDetails) UnmarshalJSON added in v1.1.0

func (a *AgentDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AgentDetails.

type AgentDiskDetails

type AgentDiskDetails struct {
	// READ-ONLY; The disk capacity in bytes.
	CapacityInBytes *int64 `json:"capacityInBytes,omitempty" azure:"ro"`

	// READ-ONLY; The disk Id.
	DiskID *string `json:"diskId,omitempty" azure:"ro"`

	// READ-ONLY; The disk name.
	DiskName *string `json:"diskName,omitempty" azure:"ro"`

	// READ-ONLY; A value indicating whether the disk is the OS disk.
	IsOSDisk *string `json:"isOSDisk,omitempty" azure:"ro"`

	// READ-ONLY; The lun of disk.
	LunID *int32 `json:"lunId,omitempty" azure:"ro"`
}

AgentDiskDetails - Agent disk details.

func (AgentDiskDetails) MarshalJSON added in v1.1.0

func (a AgentDiskDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AgentDiskDetails.

func (*AgentDiskDetails) UnmarshalJSON added in v1.1.0

func (a *AgentDiskDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AgentDiskDetails.

type AgentUpgradeBlockedReason

type AgentUpgradeBlockedReason string
const (
	AgentUpgradeBlockedReasonAgentNoHeartbeat              AgentUpgradeBlockedReason = "AgentNoHeartbeat"
	AgentUpgradeBlockedReasonAlreadyOnLatestVersion        AgentUpgradeBlockedReason = "AlreadyOnLatestVersion"
	AgentUpgradeBlockedReasonDistroIsNotReported           AgentUpgradeBlockedReason = "DistroIsNotReported"
	AgentUpgradeBlockedReasonDistroNotSupportedForUpgrade  AgentUpgradeBlockedReason = "DistroNotSupportedForUpgrade"
	AgentUpgradeBlockedReasonIncompatibleApplianceVersion  AgentUpgradeBlockedReason = "IncompatibleApplianceVersion"
	AgentUpgradeBlockedReasonInvalidAgentVersion           AgentUpgradeBlockedReason = "InvalidAgentVersion"
	AgentUpgradeBlockedReasonInvalidDriverVersion          AgentUpgradeBlockedReason = "InvalidDriverVersion"
	AgentUpgradeBlockedReasonMissingUpgradePath            AgentUpgradeBlockedReason = "MissingUpgradePath"
	AgentUpgradeBlockedReasonNotProtected                  AgentUpgradeBlockedReason = "NotProtected"
	AgentUpgradeBlockedReasonProcessServerNoHeartbeat      AgentUpgradeBlockedReason = "ProcessServerNoHeartbeat"
	AgentUpgradeBlockedReasonRcmProxyNoHeartbeat           AgentUpgradeBlockedReason = "RcmProxyNoHeartbeat"
	AgentUpgradeBlockedReasonRebootRequired                AgentUpgradeBlockedReason = "RebootRequired"
	AgentUpgradeBlockedReasonUnknown                       AgentUpgradeBlockedReason = "Unknown"
	AgentUpgradeBlockedReasonUnsupportedProtectionScenario AgentUpgradeBlockedReason = "UnsupportedProtectionScenario"
)

func PossibleAgentUpgradeBlockedReasonValues

func PossibleAgentUpgradeBlockedReasonValues() []AgentUpgradeBlockedReason

PossibleAgentUpgradeBlockedReasonValues returns the possible values for the AgentUpgradeBlockedReason const type.

type AgentVersionStatus

type AgentVersionStatus string

AgentVersionStatus - A value indicating whether security update required.

const (
	AgentVersionStatusDeprecated             AgentVersionStatus = "Deprecated"
	AgentVersionStatusNotSupported           AgentVersionStatus = "NotSupported"
	AgentVersionStatusSecurityUpdateRequired AgentVersionStatus = "SecurityUpdateRequired"
	AgentVersionStatusSupported              AgentVersionStatus = "Supported"
	AgentVersionStatusUpdateRequired         AgentVersionStatus = "UpdateRequired"
)

func PossibleAgentVersionStatusValues

func PossibleAgentVersionStatusValues() []AgentVersionStatus

PossibleAgentVersionStatusValues returns the possible values for the AgentVersionStatus const type.

type Alert

type Alert struct {
	// Resource Location
	Location *string `json:"location,omitempty"`

	// Alert related data.
	Properties *AlertProperties `json:"properties,omitempty"`

	// READ-ONLY; Resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Resource Name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Resource Type
	Type *string `json:"type,omitempty" azure:"ro"`
}

Alert - Implements the Alert class.

func (Alert) MarshalJSON added in v1.1.0

func (a Alert) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Alert.

func (*Alert) UnmarshalJSON added in v1.1.0

func (a *Alert) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Alert.

type AlertCollection

type AlertCollection struct {
	// The value of next link.
	NextLink *string `json:"nextLink,omitempty"`

	// The list of alerts.
	Value []*Alert `json:"value,omitempty"`
}

AlertCollection - Collection of alerts.

func (AlertCollection) MarshalJSON

func (a AlertCollection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AlertCollection.

func (*AlertCollection) UnmarshalJSON added in v1.1.0

func (a *AlertCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AlertCollection.

type AlertProperties

type AlertProperties struct {
	// The custom email address for sending emails.
	CustomEmailAddresses []*string `json:"customEmailAddresses,omitempty"`

	// The locale for the email notification.
	Locale *string `json:"locale,omitempty"`

	// A value indicating whether to send email to subscription administrator.
	SendToOwners *string `json:"sendToOwners,omitempty"`
}

AlertProperties - The properties of an alert.

func (AlertProperties) MarshalJSON

func (a AlertProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AlertProperties.

func (*AlertProperties) UnmarshalJSON added in v1.1.0

func (a *AlertProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AlertProperties.

type AlternateLocationRecoveryOption

type AlternateLocationRecoveryOption string

AlternateLocationRecoveryOption - The ALR option.

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

func PossibleAlternateLocationRecoveryOptionValues

func PossibleAlternateLocationRecoveryOptionValues() []AlternateLocationRecoveryOption

PossibleAlternateLocationRecoveryOptionValues returns the possible values for the AlternateLocationRecoveryOption const type.

type ApplianceCollection added in v0.2.0

type ApplianceCollection struct {
	// The value of next link.
	NextLink *string `json:"nextLink,omitempty"`

	// The appliance details.
	Value []*ReplicationAppliance `json:"value,omitempty"`
}

ApplianceCollection - Collection of appliance details.

func (ApplianceCollection) MarshalJSON added in v0.2.0

func (a ApplianceCollection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ApplianceCollection.

func (*ApplianceCollection) UnmarshalJSON added in v1.1.0

func (a *ApplianceCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ApplianceCollection.

type ApplianceQueryParameter added in v0.2.0

type ApplianceQueryParameter struct {
	// The providerType to be used for fetching appliance details.
	ProviderType *string `json:"providerType,omitempty"`
}

ApplianceQueryParameter - Query parameter to get appliance.

func (ApplianceQueryParameter) MarshalJSON added in v1.1.0

func (a ApplianceQueryParameter) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ApplianceQueryParameter.

func (*ApplianceQueryParameter) UnmarshalJSON added in v1.1.0

func (a *ApplianceQueryParameter) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ApplianceQueryParameter.

type ApplianceSpecificDetails added in v0.2.0

type ApplianceSpecificDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`
}

ApplianceSpecificDetails - Appliance specific details.

func (*ApplianceSpecificDetails) GetApplianceSpecificDetails added in v0.2.0

func (a *ApplianceSpecificDetails) GetApplianceSpecificDetails() *ApplianceSpecificDetails

GetApplianceSpecificDetails implements the ApplianceSpecificDetailsClassification interface for type ApplianceSpecificDetails.

func (ApplianceSpecificDetails) MarshalJSON added in v1.1.0

func (a ApplianceSpecificDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ApplianceSpecificDetails.

func (*ApplianceSpecificDetails) UnmarshalJSON added in v1.1.0

func (a *ApplianceSpecificDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ApplianceSpecificDetails.

type ApplianceSpecificDetailsClassification added in v0.2.0

type ApplianceSpecificDetailsClassification interface {
	// GetApplianceSpecificDetails returns the ApplianceSpecificDetails content of the underlying type.
	GetApplianceSpecificDetails() *ApplianceSpecificDetails
}

ApplianceSpecificDetailsClassification provides polymorphic access to related types. Call the interface's GetApplianceSpecificDetails() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *ApplianceSpecificDetails, *InMageRcmApplianceSpecificDetails

type ApplyRecoveryPointInput

type ApplyRecoveryPointInput struct {
	// REQUIRED; The input properties to apply recovery point.
	Properties *ApplyRecoveryPointInputProperties `json:"properties,omitempty"`
}

ApplyRecoveryPointInput - Input to apply recovery point.

func (ApplyRecoveryPointInput) MarshalJSON added in v1.1.0

func (a ApplyRecoveryPointInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ApplyRecoveryPointInput.

func (*ApplyRecoveryPointInput) UnmarshalJSON added in v1.1.0

func (a *ApplyRecoveryPointInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ApplyRecoveryPointInput.

type ApplyRecoveryPointInputProperties

type ApplyRecoveryPointInputProperties struct {
	// REQUIRED; Provider specific input for applying recovery point.
	ProviderSpecificDetails ApplyRecoveryPointProviderSpecificInputClassification `json:"providerSpecificDetails,omitempty"`

	// The recovery point Id.
	RecoveryPointID *string `json:"recoveryPointId,omitempty"`
}

ApplyRecoveryPointInputProperties - Input properties to apply recovery point.

func (ApplyRecoveryPointInputProperties) MarshalJSON

func (a ApplyRecoveryPointInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ApplyRecoveryPointInputProperties.

func (*ApplyRecoveryPointInputProperties) UnmarshalJSON

func (a *ApplyRecoveryPointInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ApplyRecoveryPointInputProperties.

type ApplyRecoveryPointProviderSpecificInput

type ApplyRecoveryPointProviderSpecificInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

ApplyRecoveryPointProviderSpecificInput - Provider specific input for apply recovery point.

func (*ApplyRecoveryPointProviderSpecificInput) GetApplyRecoveryPointProviderSpecificInput

func (a *ApplyRecoveryPointProviderSpecificInput) GetApplyRecoveryPointProviderSpecificInput() *ApplyRecoveryPointProviderSpecificInput

GetApplyRecoveryPointProviderSpecificInput implements the ApplyRecoveryPointProviderSpecificInputClassification interface for type ApplyRecoveryPointProviderSpecificInput.

func (ApplyRecoveryPointProviderSpecificInput) MarshalJSON added in v1.1.0

func (a ApplyRecoveryPointProviderSpecificInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ApplyRecoveryPointProviderSpecificInput.

func (*ApplyRecoveryPointProviderSpecificInput) UnmarshalJSON

func (a *ApplyRecoveryPointProviderSpecificInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ApplyRecoveryPointProviderSpecificInput.

type ApplyRecoveryPointProviderSpecificInputClassification

type ApplyRecoveryPointProviderSpecificInputClassification interface {
	// GetApplyRecoveryPointProviderSpecificInput returns the ApplyRecoveryPointProviderSpecificInput content of the underlying type.
	GetApplyRecoveryPointProviderSpecificInput() *ApplyRecoveryPointProviderSpecificInput
}

ApplyRecoveryPointProviderSpecificInputClassification provides polymorphic access to related types. Call the interface's GetApplyRecoveryPointProviderSpecificInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *A2AApplyRecoveryPointInput, *A2ACrossClusterMigrationApplyRecoveryPointInput, *ApplyRecoveryPointProviderSpecificInput, - *HyperVReplicaAzureApplyRecoveryPointInput, *InMageAzureV2ApplyRecoveryPointInput, *InMageRcmApplyRecoveryPointInput

type AsrJobDetails

type AsrJobDetails struct {
	// REQUIRED; Gets the type of job details (see JobDetailsTypes enum for possible values).
	InstanceType *string `json:"instanceType,omitempty"`

	// The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow
	// object details.
	AffectedObjectDetails map[string]*string `json:"affectedObjectDetails,omitempty"`
}

AsrJobDetails - This class represents job details based on specific job type.

func (*AsrJobDetails) GetJobDetails added in v0.2.0

func (a *AsrJobDetails) GetJobDetails() *JobDetails

GetJobDetails implements the JobDetailsClassification interface for type AsrJobDetails.

func (AsrJobDetails) MarshalJSON

func (a AsrJobDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AsrJobDetails.

func (*AsrJobDetails) UnmarshalJSON added in v0.2.0

func (a *AsrJobDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AsrJobDetails.

type AutoProtectionOfDataDisk

type AutoProtectionOfDataDisk string

AutoProtectionOfDataDisk - A value indicating whether the auto protection is enabled.

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

func PossibleAutoProtectionOfDataDiskValues

func PossibleAutoProtectionOfDataDiskValues() []AutoProtectionOfDataDisk

PossibleAutoProtectionOfDataDiskValues returns the possible values for the AutoProtectionOfDataDisk const type.

type AutomationAccountAuthenticationType

type AutomationAccountAuthenticationType string

AutomationAccountAuthenticationType - A value indicating the type authentication to use for automation Account.

const (
	AutomationAccountAuthenticationTypeRunAsAccount           AutomationAccountAuthenticationType = "RunAsAccount"
	AutomationAccountAuthenticationTypeSystemAssignedIdentity AutomationAccountAuthenticationType = "SystemAssignedIdentity"
)

func PossibleAutomationAccountAuthenticationTypeValues

func PossibleAutomationAccountAuthenticationTypeValues() []AutomationAccountAuthenticationType

PossibleAutomationAccountAuthenticationTypeValues returns the possible values for the AutomationAccountAuthenticationType const type.

type AutomationRunbookTaskDetails

type AutomationRunbookTaskDetails struct {
	// REQUIRED; The type of task details.
	InstanceType *string `json:"instanceType,omitempty"`

	// The automation account name of the runbook.
	AccountName *string `json:"accountName,omitempty"`

	// The cloud service of the automation runbook account.
	CloudServiceName *string `json:"cloudServiceName,omitempty"`

	// A value indicating whether it is a primary side script or not.
	IsPrimarySideScript *bool `json:"isPrimarySideScript,omitempty"`

	// The job Id of the runbook execution.
	JobID *string `json:"jobId,omitempty"`

	// The execution output of the runbook.
	JobOutput *string `json:"jobOutput,omitempty"`

	// The recovery plan task name.
	Name *string `json:"name,omitempty"`

	// The runbook Id.
	RunbookID *string `json:"runbookId,omitempty"`

	// The runbook name.
	RunbookName *string `json:"runbookName,omitempty"`

	// The subscription Id of the automation runbook account.
	SubscriptionID *string `json:"subscriptionId,omitempty"`
}

AutomationRunbookTaskDetails - This class represents the task details for an automation runbook.

func (*AutomationRunbookTaskDetails) GetTaskTypeDetails added in v0.2.0

func (a *AutomationRunbookTaskDetails) GetTaskTypeDetails() *TaskTypeDetails

GetTaskTypeDetails implements the TaskTypeDetailsClassification interface for type AutomationRunbookTaskDetails.

func (AutomationRunbookTaskDetails) MarshalJSON

func (a AutomationRunbookTaskDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AutomationRunbookTaskDetails.

func (*AutomationRunbookTaskDetails) UnmarshalJSON

func (a *AutomationRunbookTaskDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AutomationRunbookTaskDetails.

type AzureFabricCreationInput

type AzureFabricCreationInput struct {
	// REQUIRED; Gets the class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The Location.
	Location *string `json:"location,omitempty"`
}

AzureFabricCreationInput - Fabric provider specific settings.

func (*AzureFabricCreationInput) GetFabricSpecificCreationInput added in v0.2.0

func (a *AzureFabricCreationInput) GetFabricSpecificCreationInput() *FabricSpecificCreationInput

GetFabricSpecificCreationInput implements the FabricSpecificCreationInputClassification interface for type AzureFabricCreationInput.

func (AzureFabricCreationInput) MarshalJSON

func (a AzureFabricCreationInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureFabricCreationInput.

func (*AzureFabricCreationInput) UnmarshalJSON

func (a *AzureFabricCreationInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureFabricCreationInput.

type AzureFabricSpecificDetails

type AzureFabricSpecificDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// The container Ids for the Azure fabric.
	ContainerIDs []*string `json:"containerIds,omitempty"`

	// The ExtendedLocations.
	ExtendedLocations []*A2AExtendedLocationDetails `json:"extendedLocations,omitempty"`

	// The Location for the Azure fabric.
	Location *string `json:"location,omitempty"`

	// The zones.
	Zones []*A2AZoneDetails `json:"zones,omitempty"`
}

AzureFabricSpecificDetails - Azure Fabric Specific Details.

func (*AzureFabricSpecificDetails) GetFabricSpecificDetails added in v0.2.0

func (a *AzureFabricSpecificDetails) GetFabricSpecificDetails() *FabricSpecificDetails

GetFabricSpecificDetails implements the FabricSpecificDetailsClassification interface for type AzureFabricSpecificDetails.

func (AzureFabricSpecificDetails) MarshalJSON

func (a AzureFabricSpecificDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureFabricSpecificDetails.

func (*AzureFabricSpecificDetails) UnmarshalJSON

func (a *AzureFabricSpecificDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureFabricSpecificDetails.

type AzureToAzureCreateNetworkMappingInput

type AzureToAzureCreateNetworkMappingInput struct {
	// REQUIRED; The instance type.
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; The primary azure vnet Id.
	PrimaryNetworkID *string `json:"primaryNetworkId,omitempty"`
}

AzureToAzureCreateNetworkMappingInput - Create network mappings input properties/behavior specific to Azure to Azure Network mapping.

func (*AzureToAzureCreateNetworkMappingInput) GetFabricSpecificCreateNetworkMappingInput added in v0.2.0

func (a *AzureToAzureCreateNetworkMappingInput) GetFabricSpecificCreateNetworkMappingInput() *FabricSpecificCreateNetworkMappingInput

GetFabricSpecificCreateNetworkMappingInput implements the FabricSpecificCreateNetworkMappingInputClassification interface for type AzureToAzureCreateNetworkMappingInput.

func (AzureToAzureCreateNetworkMappingInput) MarshalJSON

func (a AzureToAzureCreateNetworkMappingInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureToAzureCreateNetworkMappingInput.

func (*AzureToAzureCreateNetworkMappingInput) UnmarshalJSON

func (a *AzureToAzureCreateNetworkMappingInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureToAzureCreateNetworkMappingInput.

type AzureToAzureNetworkMappingSettings

type AzureToAzureNetworkMappingSettings struct {
	// REQUIRED; Gets the Instance type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The primary fabric location.
	PrimaryFabricLocation *string `json:"primaryFabricLocation,omitempty"`

	// The recovery fabric location.
	RecoveryFabricLocation *string `json:"recoveryFabricLocation,omitempty"`
}

AzureToAzureNetworkMappingSettings - A2A Network Mapping fabric specific settings.

func (*AzureToAzureNetworkMappingSettings) GetNetworkMappingFabricSpecificSettings added in v0.2.0

func (a *AzureToAzureNetworkMappingSettings) GetNetworkMappingFabricSpecificSettings() *NetworkMappingFabricSpecificSettings

GetNetworkMappingFabricSpecificSettings implements the NetworkMappingFabricSpecificSettingsClassification interface for type AzureToAzureNetworkMappingSettings.

func (AzureToAzureNetworkMappingSettings) MarshalJSON

func (a AzureToAzureNetworkMappingSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureToAzureNetworkMappingSettings.

func (*AzureToAzureNetworkMappingSettings) UnmarshalJSON

func (a *AzureToAzureNetworkMappingSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureToAzureNetworkMappingSettings.

type AzureToAzureUpdateNetworkMappingInput

type AzureToAzureUpdateNetworkMappingInput struct {
	// REQUIRED; The instance type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The primary azure vnet Id.
	PrimaryNetworkID *string `json:"primaryNetworkId,omitempty"`
}

AzureToAzureUpdateNetworkMappingInput - Updates network mappings input.

func (*AzureToAzureUpdateNetworkMappingInput) GetFabricSpecificUpdateNetworkMappingInput added in v0.2.0

func (a *AzureToAzureUpdateNetworkMappingInput) GetFabricSpecificUpdateNetworkMappingInput() *FabricSpecificUpdateNetworkMappingInput

GetFabricSpecificUpdateNetworkMappingInput implements the FabricSpecificUpdateNetworkMappingInputClassification interface for type AzureToAzureUpdateNetworkMappingInput.

func (AzureToAzureUpdateNetworkMappingInput) MarshalJSON

func (a AzureToAzureUpdateNetworkMappingInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureToAzureUpdateNetworkMappingInput.

func (*AzureToAzureUpdateNetworkMappingInput) UnmarshalJSON

func (a *AzureToAzureUpdateNetworkMappingInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureToAzureUpdateNetworkMappingInput.

type AzureToAzureVMSyncedConfigDetails

type AzureToAzureVMSyncedConfigDetails struct {
	// The Azure VM input endpoints.
	InputEndpoints []*InputEndpoint `json:"inputEndpoints,omitempty"`

	// The Azure VM tags.
	Tags map[string]*string `json:"tags,omitempty"`
}

AzureToAzureVMSyncedConfigDetails - Azure to Azure VM synced configuration details.

func (AzureToAzureVMSyncedConfigDetails) MarshalJSON

func (a AzureToAzureVMSyncedConfigDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureToAzureVMSyncedConfigDetails.

func (*AzureToAzureVMSyncedConfigDetails) UnmarshalJSON added in v1.1.0

func (a *AzureToAzureVMSyncedConfigDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureToAzureVMSyncedConfigDetails.

type AzureVMDiskDetails

type AzureVMDiskDetails struct {
	// The custom target Azure disk name.
	CustomTargetDiskName *string `json:"customTargetDiskName,omitempty"`

	// The DiskEncryptionSet ARM ID.
	DiskEncryptionSetID *string `json:"diskEncryptionSetId,omitempty"`

	// The disk resource id.
	DiskID *string `json:"diskId,omitempty"`

	// Ordinal\LunId of the disk for the Azure VM.
	LunID *string `json:"lunId,omitempty"`

	// Max side in MB.
	MaxSizeMB *string `json:"maxSizeMB,omitempty"`

	// Blob uri of the Azure disk.
	TargetDiskLocation *string `json:"targetDiskLocation,omitempty"`

	// The target Azure disk name.
	TargetDiskName *string `json:"targetDiskName,omitempty"`

	// The VHD id.
	VhdID *string `json:"vhdId,omitempty"`

	// VHD name.
	VhdName *string `json:"vhdName,omitempty"`

	// VHD type.
	VhdType *string `json:"vhdType,omitempty"`
}

AzureVMDiskDetails - Disk details for E2A provider.

func (AzureVMDiskDetails) MarshalJSON added in v1.1.0

func (a AzureVMDiskDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureVMDiskDetails.

func (*AzureVMDiskDetails) UnmarshalJSON added in v1.1.0

func (a *AzureVMDiskDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureVMDiskDetails.

type ComputeSizeErrorDetails

type ComputeSizeErrorDetails struct {
	// The error message.
	Message *string `json:"message,omitempty"`

	// The severity of the error.
	Severity *string `json:"severity,omitempty"`
}

ComputeSizeErrorDetails - Represents the error used to indicate why the target compute size is not applicable.

func (ComputeSizeErrorDetails) MarshalJSON added in v1.1.0

func (c ComputeSizeErrorDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ComputeSizeErrorDetails.

func (*ComputeSizeErrorDetails) UnmarshalJSON added in v1.1.0

func (c *ComputeSizeErrorDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ComputeSizeErrorDetails.

type ConfigurationSettings

type ConfigurationSettings struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`
}

ConfigurationSettings - Replication provider specific settings.

func (*ConfigurationSettings) GetConfigurationSettings

func (c *ConfigurationSettings) GetConfigurationSettings() *ConfigurationSettings

GetConfigurationSettings implements the ConfigurationSettingsClassification interface for type ConfigurationSettings.

func (ConfigurationSettings) MarshalJSON added in v1.1.0

func (c ConfigurationSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConfigurationSettings.

func (*ConfigurationSettings) UnmarshalJSON

func (c *ConfigurationSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConfigurationSettings.

type ConfigurationSettingsClassification

type ConfigurationSettingsClassification interface {
	// GetConfigurationSettings returns the ConfigurationSettings content of the underlying type.
	GetConfigurationSettings() *ConfigurationSettings
}

ConfigurationSettingsClassification provides polymorphic access to related types. Call the interface's GetConfigurationSettings() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *ConfigurationSettings, *HyperVVirtualMachineDetails, *ReplicationGroupDetails, *VMwareVirtualMachineDetails, *VmmVirtualMachineDetails

type ConfigureAlertRequest

type ConfigureAlertRequest struct {
	// The properties of a configure alert request.
	Properties *ConfigureAlertRequestProperties `json:"properties,omitempty"`
}

ConfigureAlertRequest - Request to configure alerts for the system.

func (ConfigureAlertRequest) MarshalJSON added in v1.1.0

func (c ConfigureAlertRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConfigureAlertRequest.

func (*ConfigureAlertRequest) UnmarshalJSON added in v1.1.0

func (c *ConfigureAlertRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConfigureAlertRequest.

type ConfigureAlertRequestProperties

type ConfigureAlertRequestProperties struct {
	// The custom email address for sending emails.
	CustomEmailAddresses []*string `json:"customEmailAddresses,omitempty"`

	// The locale for the email notification.
	Locale *string `json:"locale,omitempty"`

	// A value indicating whether to send email to subscription administrator.
	SendToOwners *string `json:"sendToOwners,omitempty"`
}

ConfigureAlertRequestProperties - Properties of a configure alert request.

func (ConfigureAlertRequestProperties) MarshalJSON

func (c ConfigureAlertRequestProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConfigureAlertRequestProperties.

func (*ConfigureAlertRequestProperties) UnmarshalJSON added in v1.1.0

func (c *ConfigureAlertRequestProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConfigureAlertRequestProperties.

type ConsistencyCheckTaskDetails

type ConsistencyCheckTaskDetails struct {
	// REQUIRED; The type of task details.
	InstanceType *string `json:"instanceType,omitempty"`

	// The list of inconsistent Vm details.
	VMDetails []*InconsistentVMDetails `json:"vmDetails,omitempty"`
}

ConsistencyCheckTaskDetails - This class contains monitoring details of all the inconsistent Protected Entities in Vmm.

func (*ConsistencyCheckTaskDetails) GetTaskTypeDetails added in v0.2.0

func (c *ConsistencyCheckTaskDetails) GetTaskTypeDetails() *TaskTypeDetails

GetTaskTypeDetails implements the TaskTypeDetailsClassification interface for type ConsistencyCheckTaskDetails.

func (ConsistencyCheckTaskDetails) MarshalJSON

func (c ConsistencyCheckTaskDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConsistencyCheckTaskDetails.

func (*ConsistencyCheckTaskDetails) UnmarshalJSON

func (c *ConsistencyCheckTaskDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConsistencyCheckTaskDetails.

type CreateNetworkMappingInput

type CreateNetworkMappingInput struct {
	// REQUIRED; Input properties for creating network mapping.
	Properties *CreateNetworkMappingInputProperties `json:"properties,omitempty"`
}

CreateNetworkMappingInput - Create network mappings input.

func (CreateNetworkMappingInput) MarshalJSON added in v1.1.0

func (c CreateNetworkMappingInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CreateNetworkMappingInput.

func (*CreateNetworkMappingInput) UnmarshalJSON added in v1.1.0

func (c *CreateNetworkMappingInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CreateNetworkMappingInput.

type CreateNetworkMappingInputProperties

type CreateNetworkMappingInputProperties struct {
	// REQUIRED; Recovery network Id.
	RecoveryNetworkID *string `json:"recoveryNetworkId,omitempty"`

	// Fabric specific input properties.
	FabricSpecificDetails FabricSpecificCreateNetworkMappingInputClassification `json:"fabricSpecificDetails,omitempty"`

	// Recovery fabric Name.
	RecoveryFabricName *string `json:"recoveryFabricName,omitempty"`
}

CreateNetworkMappingInputProperties - Common input details for network mapping operation.

func (CreateNetworkMappingInputProperties) MarshalJSON

func (c CreateNetworkMappingInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CreateNetworkMappingInputProperties.

func (*CreateNetworkMappingInputProperties) UnmarshalJSON

func (c *CreateNetworkMappingInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CreateNetworkMappingInputProperties.

type CreatePolicyInput

type CreatePolicyInput struct {
	// Policy creation properties.
	Properties *CreatePolicyInputProperties `json:"properties,omitempty"`
}

CreatePolicyInput - Protection Policy input.

func (CreatePolicyInput) MarshalJSON added in v1.1.0

func (c CreatePolicyInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CreatePolicyInput.

func (*CreatePolicyInput) UnmarshalJSON added in v1.1.0

func (c *CreatePolicyInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CreatePolicyInput.

type CreatePolicyInputProperties

type CreatePolicyInputProperties struct {
	// The ReplicationProviderSettings.
	ProviderSpecificInput PolicyProviderSpecificInputClassification `json:"providerSpecificInput,omitempty"`
}

CreatePolicyInputProperties - Policy creation properties.

func (CreatePolicyInputProperties) MarshalJSON

func (c CreatePolicyInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CreatePolicyInputProperties.

func (*CreatePolicyInputProperties) UnmarshalJSON

func (c *CreatePolicyInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CreatePolicyInputProperties.

type CreateProtectionContainerInput

type CreateProtectionContainerInput struct {
	// Create protection container input properties.
	Properties *CreateProtectionContainerInputProperties `json:"properties,omitempty"`
}

CreateProtectionContainerInput - Create protection container input.

func (CreateProtectionContainerInput) MarshalJSON added in v1.1.0

func (c CreateProtectionContainerInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CreateProtectionContainerInput.

func (*CreateProtectionContainerInput) UnmarshalJSON added in v1.1.0

func (c *CreateProtectionContainerInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CreateProtectionContainerInput.

type CreateProtectionContainerInputProperties

type CreateProtectionContainerInputProperties struct {
	// Provider specific inputs for container creation.
	ProviderSpecificInput []ReplicationProviderSpecificContainerCreationInputClassification `json:"providerSpecificInput,omitempty"`
}

CreateProtectionContainerInputProperties - Create protection container input properties.

func (CreateProtectionContainerInputProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type CreateProtectionContainerInputProperties.

func (*CreateProtectionContainerInputProperties) UnmarshalJSON

func (c *CreateProtectionContainerInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CreateProtectionContainerInputProperties.

type CreateProtectionContainerMappingInput

type CreateProtectionContainerMappingInput struct {
	// Configure protection input properties.
	Properties *CreateProtectionContainerMappingInputProperties `json:"properties,omitempty"`
}

CreateProtectionContainerMappingInput - Configure pairing input.

func (CreateProtectionContainerMappingInput) MarshalJSON added in v1.1.0

func (c CreateProtectionContainerMappingInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CreateProtectionContainerMappingInput.

func (*CreateProtectionContainerMappingInput) UnmarshalJSON added in v1.1.0

func (c *CreateProtectionContainerMappingInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CreateProtectionContainerMappingInput.

type CreateProtectionContainerMappingInputProperties

type CreateProtectionContainerMappingInputProperties struct {
	// Applicable policy.
	PolicyID *string `json:"policyId,omitempty"`

	// Provider specific input for pairing.
	ProviderSpecificInput ReplicationProviderSpecificContainerMappingInputClassification `json:"providerSpecificInput,omitempty"`

	// The target unique protection container name.
	TargetProtectionContainerID *string `json:"targetProtectionContainerId,omitempty"`
}

CreateProtectionContainerMappingInputProperties - Configure pairing input properties.

func (CreateProtectionContainerMappingInputProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type CreateProtectionContainerMappingInputProperties.

func (*CreateProtectionContainerMappingInputProperties) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type CreateProtectionContainerMappingInputProperties.

type CreateProtectionIntentInput

type CreateProtectionIntentInput struct {
	// Create protection intent input properties.
	Properties *CreateProtectionIntentProperties `json:"properties,omitempty"`
}

CreateProtectionIntentInput - Create protection intent input.

func (CreateProtectionIntentInput) MarshalJSON added in v1.1.0

func (c CreateProtectionIntentInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CreateProtectionIntentInput.

func (*CreateProtectionIntentInput) UnmarshalJSON added in v1.1.0

func (c *CreateProtectionIntentInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CreateProtectionIntentInput.

type CreateProtectionIntentProperties

type CreateProtectionIntentProperties struct {
	// The ReplicationProviderInput. For A2A provider, it will be A2ACreateProtectionIntentInput object.
	ProviderSpecificDetails CreateProtectionIntentProviderSpecificDetailsClassification `json:"providerSpecificDetails,omitempty"`
}

CreateProtectionIntentProperties - Create protection intent input properties.

func (CreateProtectionIntentProperties) MarshalJSON

func (c CreateProtectionIntentProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CreateProtectionIntentProperties.

func (*CreateProtectionIntentProperties) UnmarshalJSON

func (c *CreateProtectionIntentProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CreateProtectionIntentProperties.

type CreateProtectionIntentProviderSpecificDetails

type CreateProtectionIntentProviderSpecificDetails struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

CreateProtectionIntentProviderSpecificDetails - Create protection intent provider specific input.

func (*CreateProtectionIntentProviderSpecificDetails) GetCreateProtectionIntentProviderSpecificDetails

func (c *CreateProtectionIntentProviderSpecificDetails) GetCreateProtectionIntentProviderSpecificDetails() *CreateProtectionIntentProviderSpecificDetails

GetCreateProtectionIntentProviderSpecificDetails implements the CreateProtectionIntentProviderSpecificDetailsClassification interface for type CreateProtectionIntentProviderSpecificDetails.

func (CreateProtectionIntentProviderSpecificDetails) MarshalJSON added in v1.1.0

MarshalJSON implements the json.Marshaller interface for type CreateProtectionIntentProviderSpecificDetails.

func (*CreateProtectionIntentProviderSpecificDetails) UnmarshalJSON

func (c *CreateProtectionIntentProviderSpecificDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CreateProtectionIntentProviderSpecificDetails.

type CreateProtectionIntentProviderSpecificDetailsClassification

type CreateProtectionIntentProviderSpecificDetailsClassification interface {
	// GetCreateProtectionIntentProviderSpecificDetails returns the CreateProtectionIntentProviderSpecificDetails content of the underlying type.
	GetCreateProtectionIntentProviderSpecificDetails() *CreateProtectionIntentProviderSpecificDetails
}

CreateProtectionIntentProviderSpecificDetailsClassification provides polymorphic access to related types. Call the interface's GetCreateProtectionIntentProviderSpecificDetails() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *A2ACreateProtectionIntentInput, *CreateProtectionIntentProviderSpecificDetails

type CreateRecoveryPlanInput

type CreateRecoveryPlanInput struct {
	// REQUIRED; Recovery plan creation properties.
	Properties *CreateRecoveryPlanInputProperties `json:"properties,omitempty"`
}

CreateRecoveryPlanInput - Create recovery plan input class.

func (CreateRecoveryPlanInput) MarshalJSON added in v1.1.0

func (c CreateRecoveryPlanInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CreateRecoveryPlanInput.

func (*CreateRecoveryPlanInput) UnmarshalJSON added in v1.1.0

func (c *CreateRecoveryPlanInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CreateRecoveryPlanInput.

type CreateRecoveryPlanInputProperties

type CreateRecoveryPlanInputProperties struct {
	// REQUIRED; The recovery plan groups.
	Groups []*RecoveryPlanGroup `json:"groups,omitempty"`

	// REQUIRED; The primary fabric Id.
	PrimaryFabricID *string `json:"primaryFabricId,omitempty"`

	// REQUIRED; The recovery fabric Id.
	RecoveryFabricID *string `json:"recoveryFabricId,omitempty"`

	// The failover deployment model.
	FailoverDeploymentModel *FailoverDeploymentModel `json:"failoverDeploymentModel,omitempty"`

	// The provider specific input.
	ProviderSpecificInput []RecoveryPlanProviderSpecificInputClassification `json:"providerSpecificInput,omitempty"`
}

CreateRecoveryPlanInputProperties - Recovery plan creation properties.

func (CreateRecoveryPlanInputProperties) MarshalJSON

func (c CreateRecoveryPlanInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CreateRecoveryPlanInputProperties.

func (*CreateRecoveryPlanInputProperties) UnmarshalJSON

func (c *CreateRecoveryPlanInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CreateRecoveryPlanInputProperties.

type CriticalJobHistoryDetails added in v1.1.0

type CriticalJobHistoryDetails struct {
	// READ-ONLY; The ARM Id of the job being executed.
	JobID *string `json:"jobId,omitempty" azure:"ro"`

	// READ-ONLY; The job name.
	JobName *string `json:"jobName,omitempty" azure:"ro"`

	// READ-ONLY; The job state.
	JobStatus *string `json:"jobStatus,omitempty" azure:"ro"`

	// READ-ONLY; The start time of the job.
	StartTime *time.Time `json:"startTime,omitempty" azure:"ro"`
}

CriticalJobHistoryDetails - Critical past job details of the migration item.

func (CriticalJobHistoryDetails) MarshalJSON added in v1.1.0

func (c CriticalJobHistoryDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CriticalJobHistoryDetails.

func (*CriticalJobHistoryDetails) UnmarshalJSON added in v1.1.0

func (c *CriticalJobHistoryDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CriticalJobHistoryDetails.

type CurrentJobDetails

type CurrentJobDetails struct {
	// READ-ONLY; The ARM Id of the job being executed.
	JobID *string `json:"jobId,omitempty" azure:"ro"`

	// READ-ONLY; The job name.
	JobName *string `json:"jobName,omitempty" azure:"ro"`

	// READ-ONLY; The start time of the job.
	StartTime *time.Time `json:"startTime,omitempty" azure:"ro"`
}

CurrentJobDetails - Current job details of the migration item.

func (CurrentJobDetails) MarshalJSON

func (c CurrentJobDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CurrentJobDetails.

func (*CurrentJobDetails) UnmarshalJSON

func (c *CurrentJobDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CurrentJobDetails.

type CurrentScenarioDetails

type CurrentScenarioDetails struct {
	// ARM Id of the job being executed.
	JobID *string `json:"jobId,omitempty"`

	// Scenario name.
	ScenarioName *string `json:"scenarioName,omitempty"`

	// Start time of the workflow.
	StartTime *time.Time `json:"startTime,omitempty"`
}

CurrentScenarioDetails - Current scenario details of the protected entity.

func (CurrentScenarioDetails) MarshalJSON

func (c CurrentScenarioDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CurrentScenarioDetails.

func (*CurrentScenarioDetails) UnmarshalJSON

func (c *CurrentScenarioDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CurrentScenarioDetails.

type DataStore

type DataStore struct {
	// The capacity of data store in GBs.
	Capacity *string `json:"capacity,omitempty"`

	// The free space of data store in GBs.
	FreeSpace *string `json:"freeSpace,omitempty"`

	// The symbolic name of data store.
	SymbolicName *string `json:"symbolicName,omitempty"`

	// The type of data store.
	Type *string `json:"type,omitempty"`

	// The uuid of data store.
	UUID *string `json:"uuid,omitempty"`
}

DataStore - The datastore details of the MT.

func (DataStore) MarshalJSON added in v1.1.0

func (d DataStore) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DataStore.

func (*DataStore) UnmarshalJSON added in v1.1.0

func (d *DataStore) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DataStore.

type DataSyncStatus

type DataSyncStatus string

DataSyncStatus - The data sync option.

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

func PossibleDataSyncStatusValues

func PossibleDataSyncStatusValues() []DataSyncStatus

PossibleDataSyncStatusValues returns the possible values for the DataSyncStatus const type.

type DisableProtectionInput

type DisableProtectionInput struct {
	// REQUIRED; Disable protection input properties.
	Properties *DisableProtectionInputProperties `json:"properties,omitempty"`
}

DisableProtectionInput - Disable protection input.

func (DisableProtectionInput) MarshalJSON added in v1.1.0

func (d DisableProtectionInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DisableProtectionInput.

func (*DisableProtectionInput) UnmarshalJSON added in v1.1.0

func (d *DisableProtectionInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DisableProtectionInput.

type DisableProtectionInputProperties

type DisableProtectionInputProperties struct {
	// Disable protection reason. It can have values NotSpecified/MigrationComplete.
	DisableProtectionReason *DisableProtectionReason `json:"disableProtectionReason,omitempty"`

	// Replication provider specific input.
	ReplicationProviderInput DisableProtectionProviderSpecificInputClassification `json:"replicationProviderInput,omitempty"`
}

DisableProtectionInputProperties - Disable protection input properties.

func (DisableProtectionInputProperties) MarshalJSON

func (d DisableProtectionInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DisableProtectionInputProperties.

func (*DisableProtectionInputProperties) UnmarshalJSON

func (d *DisableProtectionInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DisableProtectionInputProperties.

type DisableProtectionProviderSpecificInput

type DisableProtectionProviderSpecificInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

DisableProtectionProviderSpecificInput - Disable protection provider specific input.

func (*DisableProtectionProviderSpecificInput) GetDisableProtectionProviderSpecificInput

func (d *DisableProtectionProviderSpecificInput) GetDisableProtectionProviderSpecificInput() *DisableProtectionProviderSpecificInput

GetDisableProtectionProviderSpecificInput implements the DisableProtectionProviderSpecificInputClassification interface for type DisableProtectionProviderSpecificInput.

func (DisableProtectionProviderSpecificInput) MarshalJSON added in v1.1.0

func (d DisableProtectionProviderSpecificInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DisableProtectionProviderSpecificInput.

func (*DisableProtectionProviderSpecificInput) UnmarshalJSON

func (d *DisableProtectionProviderSpecificInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DisableProtectionProviderSpecificInput.

type DisableProtectionProviderSpecificInputClassification

type DisableProtectionProviderSpecificInputClassification interface {
	// GetDisableProtectionProviderSpecificInput returns the DisableProtectionProviderSpecificInput content of the underlying type.
	GetDisableProtectionProviderSpecificInput() *DisableProtectionProviderSpecificInput
}

DisableProtectionProviderSpecificInputClassification provides polymorphic access to related types. Call the interface's GetDisableProtectionProviderSpecificInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *DisableProtectionProviderSpecificInput, *InMageDisableProtectionProviderSpecificInput

type DisableProtectionReason

type DisableProtectionReason string

DisableProtectionReason - Disable protection reason. It can have values NotSpecified/MigrationComplete.

const (
	DisableProtectionReasonMigrationComplete DisableProtectionReason = "MigrationComplete"
	DisableProtectionReasonNotSpecified      DisableProtectionReason = "NotSpecified"
)

func PossibleDisableProtectionReasonValues

func PossibleDisableProtectionReasonValues() []DisableProtectionReason

PossibleDisableProtectionReasonValues returns the possible values for the DisableProtectionReason const type.

type DiscoverProtectableItemRequest

type DiscoverProtectableItemRequest struct {
	// The properties of a discover protectable item request.
	Properties *DiscoverProtectableItemRequestProperties `json:"properties,omitempty"`
}

DiscoverProtectableItemRequest - Request to add a physical machine as a protectable item in a container.

func (DiscoverProtectableItemRequest) MarshalJSON added in v1.1.0

func (d DiscoverProtectableItemRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DiscoverProtectableItemRequest.

func (*DiscoverProtectableItemRequest) UnmarshalJSON added in v1.1.0

func (d *DiscoverProtectableItemRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DiscoverProtectableItemRequest.

type DiscoverProtectableItemRequestProperties

type DiscoverProtectableItemRequestProperties struct {
	// The friendly name of the physical machine.
	FriendlyName *string `json:"friendlyName,omitempty"`

	// The IP address of the physical machine to be discovered.
	IPAddress *string `json:"ipAddress,omitempty"`

	// The OS type on the physical machine.
	OSType *string `json:"osType,omitempty"`
}

DiscoverProtectableItemRequestProperties - Discover protectable item properties.

func (DiscoverProtectableItemRequestProperties) MarshalJSON added in v1.1.0

MarshalJSON implements the json.Marshaller interface for type DiscoverProtectableItemRequestProperties.

func (*DiscoverProtectableItemRequestProperties) UnmarshalJSON added in v1.1.0

func (d *DiscoverProtectableItemRequestProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DiscoverProtectableItemRequestProperties.

type DiskAccountType

type DiskAccountType string

DiskAccountType - The DiskType.

const (
	DiskAccountTypePremiumLRS     DiskAccountType = "Premium_LRS"
	DiskAccountTypeStandardLRS    DiskAccountType = "Standard_LRS"
	DiskAccountTypeStandardSSDLRS DiskAccountType = "StandardSSD_LRS"
)

func PossibleDiskAccountTypeValues

func PossibleDiskAccountTypeValues() []DiskAccountType

PossibleDiskAccountTypeValues returns the possible values for the DiskAccountType const type.

type DiskDetails

type DiskDetails struct {
	// The hard disk max size in MB.
	MaxSizeMB *int64 `json:"maxSizeMB,omitempty"`

	// The VHD Id.
	VhdID *string `json:"vhdId,omitempty"`

	// The VHD name.
	VhdName *string `json:"vhdName,omitempty"`

	// The type of the volume.
	VhdType *string `json:"vhdType,omitempty"`
}

DiskDetails - Onprem disk details data.

func (DiskDetails) MarshalJSON added in v1.1.0

func (d DiskDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DiskDetails.

func (*DiskDetails) UnmarshalJSON added in v1.1.0

func (d *DiskDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DiskDetails.

type DiskEncryptionInfo

type DiskEncryptionInfo struct {
	// The recovery KeyVault reference for secret.
	DiskEncryptionKeyInfo *DiskEncryptionKeyInfo `json:"diskEncryptionKeyInfo,omitempty"`

	// The recovery KeyVault reference for key.
	KeyEncryptionKeyInfo *KeyEncryptionKeyInfo `json:"keyEncryptionKeyInfo,omitempty"`
}

DiskEncryptionInfo - Recovery disk encryption info (BEK and KEK).

func (DiskEncryptionInfo) MarshalJSON added in v1.1.0

func (d DiskEncryptionInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DiskEncryptionInfo.

func (*DiskEncryptionInfo) UnmarshalJSON added in v1.1.0

func (d *DiskEncryptionInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DiskEncryptionInfo.

type DiskEncryptionKeyInfo

type DiskEncryptionKeyInfo struct {
	// The KeyVault resource ARM id for secret.
	KeyVaultResourceArmID *string `json:"keyVaultResourceArmId,omitempty"`

	// The secret url / identifier.
	SecretIdentifier *string `json:"secretIdentifier,omitempty"`
}

DiskEncryptionKeyInfo - Disk Encryption Key Information (BitLocker Encryption Key (BEK) on Windows).

func (DiskEncryptionKeyInfo) MarshalJSON added in v1.1.0

func (d DiskEncryptionKeyInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DiskEncryptionKeyInfo.

func (*DiskEncryptionKeyInfo) UnmarshalJSON added in v1.1.0

func (d *DiskEncryptionKeyInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DiskEncryptionKeyInfo.

type DiskReplicationProgressHealth

type DiskReplicationProgressHealth string

DiskReplicationProgressHealth - The progress health.

const (
	DiskReplicationProgressHealthInProgress   DiskReplicationProgressHealth = "InProgress"
	DiskReplicationProgressHealthNoProgress   DiskReplicationProgressHealth = "NoProgress"
	DiskReplicationProgressHealthNone         DiskReplicationProgressHealth = "None"
	DiskReplicationProgressHealthQueued       DiskReplicationProgressHealth = "Queued"
	DiskReplicationProgressHealthSlowProgress DiskReplicationProgressHealth = "SlowProgress"
)

func PossibleDiskReplicationProgressHealthValues

func PossibleDiskReplicationProgressHealthValues() []DiskReplicationProgressHealth

PossibleDiskReplicationProgressHealthValues returns the possible values for the DiskReplicationProgressHealth const type.

type DiskVolumeDetails

type DiskVolumeDetails struct {
	// The volume label.
	Label *string `json:"label,omitempty"`

	// The volume name.
	Name *string `json:"name,omitempty"`
}

DiskVolumeDetails - Volume details.

func (DiskVolumeDetails) MarshalJSON added in v1.1.0

func (d DiskVolumeDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DiskVolumeDetails.

func (*DiskVolumeDetails) UnmarshalJSON added in v1.1.0

func (d *DiskVolumeDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DiskVolumeDetails.

type Display

type Display struct {
	// The description. The localized friendly description for the operation, as it should be shown to the user. It should be
	// thorough, yet concise - it will be used in tool tips and detailed views.
	// Prescriptive guidance for namespaces: Read any 'display.provider' resource Create or Update any 'display.provider' resource
	// Delete any 'display.provider' resource Perform any other action on any
	// 'display.provider' resource Prescriptive guidance for namespaces: Read any 'display.resource' Create or Update any 'display.resource'
	// Delete any 'display.resource' 'ActionName' any
	// 'display.resources'.
	Description *string `json:"description,omitempty"`

	// The operation. The localized friendly name for the operation, as it should be shown to the user. It should be concise (to
	// fit in drop downs) but clear (i.e. self-documenting). It should use Title
	// Casing. Prescriptive guidance: Read Create or Update Delete 'ActionName'.
	Operation *string `json:"operation,omitempty"`

	// The provider. The localized friendly form of the resource provider name - it is expected to also include the publisher/company
	// responsible. It should use Title Casing and begin with "Microsoft" for
	// 1st party services. e.g. "Microsoft Monitoring Insights" or "Microsoft Compute.".
	Provider *string `json:"provider,omitempty"`

	// The resource. The localized friendly form of the resource related to this action/operation - it should match the public
	// documentation for the resource provider. It should use Title Casing. This value
	// should be unique for a particular URL type (e.g. nested types should not reuse their parent's display.resource field).
	// e.g. "Virtual Machines" or "Scheduler Job Collections", or "Virtual Machine VM
	// Sizes" or "Scheduler Jobs".
	Resource *string `json:"resource,omitempty"`
}

Display - Contains the localized display information for this particular operation / action. These value will be used by several clients for (1) custom role definitions for RBAC; (2) complex query filters for the event service; and (3) audit history / records for management operations.

func (Display) MarshalJSON added in v1.1.0

func (d Display) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Display.

func (*Display) UnmarshalJSON added in v1.1.0

func (d *Display) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Display.

type DraDetails

type DraDetails struct {
	// READ-ONLY; The DRA Bios Id.
	BiosID *string `json:"biosId,omitempty" azure:"ro"`

	// READ-ONLY; The count of protected items which are protected in forward direction.
	ForwardProtectedItemCount *int32 `json:"forwardProtectedItemCount,omitempty" azure:"ro"`

	// READ-ONLY; The health.
	Health *ProtectionHealth `json:"health,omitempty" azure:"ro"`

	// READ-ONLY; The health errors.
	HealthErrors []*HealthError `json:"healthErrors,omitempty" azure:"ro"`

	// READ-ONLY; The DRA Id.
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The last heartbeat received from the DRA.
	LastHeartbeatUTC *time.Time `json:"lastHeartbeatUtc,omitempty" azure:"ro"`

	// READ-ONLY; The DRA name.
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; The count of protected items which are protected in reverse direction.
	ReverseProtectedItemCount *int32 `json:"reverseProtectedItemCount,omitempty" azure:"ro"`

	// READ-ONLY; The version.
	Version *string `json:"version,omitempty" azure:"ro"`
}

DraDetails - DRA details.

func (DraDetails) MarshalJSON

func (d DraDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DraDetails.

func (*DraDetails) UnmarshalJSON

func (d *DraDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DraDetails.

type EnableMigrationInput

type EnableMigrationInput struct {
	// REQUIRED; Enable migration input properties.
	Properties *EnableMigrationInputProperties `json:"properties,omitempty"`
}

EnableMigrationInput - Enable migration input.

func (EnableMigrationInput) MarshalJSON added in v1.1.0

func (e EnableMigrationInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EnableMigrationInput.

func (*EnableMigrationInput) UnmarshalJSON added in v1.1.0

func (e *EnableMigrationInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EnableMigrationInput.

type EnableMigrationInputProperties

type EnableMigrationInputProperties struct {
	// REQUIRED; The policy Id.
	PolicyID *string `json:"policyId,omitempty"`

	// REQUIRED; The provider specific details.
	ProviderSpecificDetails EnableMigrationProviderSpecificInputClassification `json:"providerSpecificDetails,omitempty"`
}

EnableMigrationInputProperties - Enable migration input properties.

func (EnableMigrationInputProperties) MarshalJSON

func (e EnableMigrationInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EnableMigrationInputProperties.

func (*EnableMigrationInputProperties) UnmarshalJSON

func (e *EnableMigrationInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EnableMigrationInputProperties.

type EnableMigrationProviderSpecificInput

type EnableMigrationProviderSpecificInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

EnableMigrationProviderSpecificInput - Enable migration provider specific input.

func (*EnableMigrationProviderSpecificInput) GetEnableMigrationProviderSpecificInput

func (e *EnableMigrationProviderSpecificInput) GetEnableMigrationProviderSpecificInput() *EnableMigrationProviderSpecificInput

GetEnableMigrationProviderSpecificInput implements the EnableMigrationProviderSpecificInputClassification interface for type EnableMigrationProviderSpecificInput.

func (EnableMigrationProviderSpecificInput) MarshalJSON added in v1.1.0

func (e EnableMigrationProviderSpecificInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EnableMigrationProviderSpecificInput.

func (*EnableMigrationProviderSpecificInput) UnmarshalJSON

func (e *EnableMigrationProviderSpecificInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EnableMigrationProviderSpecificInput.

type EnableMigrationProviderSpecificInputClassification

type EnableMigrationProviderSpecificInputClassification interface {
	// GetEnableMigrationProviderSpecificInput returns the EnableMigrationProviderSpecificInput content of the underlying type.
	GetEnableMigrationProviderSpecificInput() *EnableMigrationProviderSpecificInput
}

EnableMigrationProviderSpecificInputClassification provides polymorphic access to related types. Call the interface's GetEnableMigrationProviderSpecificInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *EnableMigrationProviderSpecificInput, *VMwareCbtEnableMigrationInput

type EnableProtectionInput

type EnableProtectionInput struct {
	// Enable protection input properties.
	Properties *EnableProtectionInputProperties `json:"properties,omitempty"`
}

EnableProtectionInput - Enable protection input.

func (EnableProtectionInput) MarshalJSON added in v1.1.0

func (e EnableProtectionInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EnableProtectionInput.

func (*EnableProtectionInput) UnmarshalJSON added in v1.1.0

func (e *EnableProtectionInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EnableProtectionInput.

type EnableProtectionInputProperties

type EnableProtectionInputProperties struct {
	// The Policy Id.
	PolicyID *string `json:"policyId,omitempty"`

	// The protectable item Id.
	ProtectableItemID *string `json:"protectableItemId,omitempty"`

	// The ReplicationProviderInput. For HyperVReplicaAzure provider, it will be AzureEnableProtectionInput object. For San provider,
	// it will be SanEnableProtectionInput object. For HyperVReplicaAzure
	// provider, it can be null.
	ProviderSpecificDetails EnableProtectionProviderSpecificInputClassification `json:"providerSpecificDetails,omitempty"`
}

EnableProtectionInputProperties - Enable protection input properties.

func (EnableProtectionInputProperties) MarshalJSON

func (e EnableProtectionInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EnableProtectionInputProperties.

func (*EnableProtectionInputProperties) UnmarshalJSON

func (e *EnableProtectionInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EnableProtectionInputProperties.

type EnableProtectionProviderSpecificInput

type EnableProtectionProviderSpecificInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

EnableProtectionProviderSpecificInput - Enable protection provider specific input.

func (*EnableProtectionProviderSpecificInput) GetEnableProtectionProviderSpecificInput

func (e *EnableProtectionProviderSpecificInput) GetEnableProtectionProviderSpecificInput() *EnableProtectionProviderSpecificInput

GetEnableProtectionProviderSpecificInput implements the EnableProtectionProviderSpecificInputClassification interface for type EnableProtectionProviderSpecificInput.

func (EnableProtectionProviderSpecificInput) MarshalJSON added in v1.1.0

func (e EnableProtectionProviderSpecificInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EnableProtectionProviderSpecificInput.

func (*EnableProtectionProviderSpecificInput) UnmarshalJSON

func (e *EnableProtectionProviderSpecificInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EnableProtectionProviderSpecificInput.

type EnableProtectionProviderSpecificInputClassification

type EnableProtectionProviderSpecificInputClassification interface {
	// GetEnableProtectionProviderSpecificInput returns the EnableProtectionProviderSpecificInput content of the underlying type.
	GetEnableProtectionProviderSpecificInput() *EnableProtectionProviderSpecificInput
}

EnableProtectionProviderSpecificInputClassification provides polymorphic access to related types. Call the interface's GetEnableProtectionProviderSpecificInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *A2ACrossClusterMigrationEnableProtectionInput, *A2AEnableProtectionInput, *EnableProtectionProviderSpecificInput, *HyperVReplicaAzureEnableProtectionInput, - *InMageAzureV2EnableProtectionInput, *InMageEnableProtectionInput, *InMageRcmEnableProtectionInput

type EncryptionDetails

type EncryptionDetails struct {
	// The key encryption key certificate expiry date.
	KekCertExpiryDate *time.Time `json:"kekCertExpiryDate,omitempty"`

	// The key encryption key certificate thumbprint.
	KekCertThumbprint *string `json:"kekCertThumbprint,omitempty"`

	// The key encryption key state for the Vmm.
	KekState *string `json:"kekState,omitempty"`
}

EncryptionDetails - Encryption details for the fabric.

func (EncryptionDetails) MarshalJSON

func (e EncryptionDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EncryptionDetails.

func (*EncryptionDetails) UnmarshalJSON

func (e *EncryptionDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionDetails.

type EthernetAddressType

type EthernetAddressType string

EthernetAddressType - The source IP address type.

const (
	EthernetAddressTypeDynamic EthernetAddressType = "Dynamic"
	EthernetAddressTypeStatic  EthernetAddressType = "Static"
)

func PossibleEthernetAddressTypeValues

func PossibleEthernetAddressTypeValues() []EthernetAddressType

PossibleEthernetAddressTypeValues returns the possible values for the EthernetAddressType const type.

type Event

type Event struct {
	// Resource Location
	Location *string `json:"location,omitempty"`

	// Event related data.
	Properties *EventProperties `json:"properties,omitempty"`

	// READ-ONLY; Resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Resource Name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Resource Type
	Type *string `json:"type,omitempty" azure:"ro"`
}

Event - Implements the Event class.

func (Event) MarshalJSON added in v1.1.0

func (e Event) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Event.

func (*Event) UnmarshalJSON added in v1.1.0

func (e *Event) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Event.

type EventCollection

type EventCollection struct {
	// The value of next link.
	NextLink *string `json:"nextLink,omitempty"`

	// The list of events.
	Value []*Event `json:"value,omitempty"`
}

EventCollection - Collection of fabric details.

func (EventCollection) MarshalJSON

func (e EventCollection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EventCollection.

func (*EventCollection) UnmarshalJSON added in v1.1.0

func (e *EventCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EventCollection.

type EventProperties

type EventProperties struct {
	// The affected object correlationId for the event.
	AffectedObjectCorrelationID *string `json:"affectedObjectCorrelationId,omitempty"`

	// The friendly name of the source of the event on which it is raised (for example, VM, VMM etc).
	AffectedObjectFriendlyName *string `json:"affectedObjectFriendlyName,omitempty"`

	// The event name.
	Description *string `json:"description,omitempty"`

	// The Id of the monitoring event.
	EventCode *string `json:"eventCode,omitempty"`

	// The event specific settings.
	EventSpecificDetails EventSpecificDetailsClassification `json:"eventSpecificDetails,omitempty"`

	// The type of the event. for example: VM Health, Server Health, Job Failure etc.
	EventType *string `json:"eventType,omitempty"`

	// The ARM ID of the fabric.
	FabricID *string `json:"fabricId,omitempty"`

	// The list of errors / warnings capturing details associated with the issue(s).
	HealthErrors []*HealthError `json:"healthErrors,omitempty"`

	// The provider specific settings.
	ProviderSpecificDetails EventProviderSpecificDetailsClassification `json:"providerSpecificDetails,omitempty"`

	// The severity of the event.
	Severity *string `json:"severity,omitempty"`

	// The time of occurrence of the event.
	TimeOfOccurrence *time.Time `json:"timeOfOccurrence,omitempty"`
}

EventProperties - The properties of a monitoring event.

func (EventProperties) MarshalJSON

func (e EventProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EventProperties.

func (*EventProperties) UnmarshalJSON

func (e *EventProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EventProperties.

type EventProviderSpecificDetails

type EventProviderSpecificDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`
}

EventProviderSpecificDetails - Model class for provider specific details for an event.

func (*EventProviderSpecificDetails) GetEventProviderSpecificDetails

func (e *EventProviderSpecificDetails) GetEventProviderSpecificDetails() *EventProviderSpecificDetails

GetEventProviderSpecificDetails implements the EventProviderSpecificDetailsClassification interface for type EventProviderSpecificDetails.

func (EventProviderSpecificDetails) MarshalJSON added in v1.1.0

func (e EventProviderSpecificDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EventProviderSpecificDetails.

func (*EventProviderSpecificDetails) UnmarshalJSON

func (e *EventProviderSpecificDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EventProviderSpecificDetails.

type EventProviderSpecificDetailsClassification

type EventProviderSpecificDetailsClassification interface {
	// GetEventProviderSpecificDetails returns the EventProviderSpecificDetails content of the underlying type.
	GetEventProviderSpecificDetails() *EventProviderSpecificDetails
}

EventProviderSpecificDetailsClassification provides polymorphic access to related types. Call the interface's GetEventProviderSpecificDetails() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *A2AEventDetails, *EventProviderSpecificDetails, *HyperVReplica2012EventDetails, *HyperVReplica2012R2EventDetails, *HyperVReplicaAzureEventDetails, - *HyperVReplicaBaseEventDetails, *InMageAzureV2EventDetails, *InMageRcmEventDetails, *InMageRcmFailbackEventDetails, *VMwareCbtEventDetails

type EventQueryParameter

type EventQueryParameter struct {
	// The affected object correlationId for the events to be queried.
	AffectedObjectCorrelationID *string `json:"affectedObjectCorrelationId,omitempty"`

	// The affected object name of the events to be queried.
	AffectedObjectFriendlyName *string `json:"affectedObjectFriendlyName,omitempty"`

	// The end time of the time range within which the events are to be queried.
	EndTime *time.Time `json:"endTime,omitempty"`

	// The source id of the events to be queried.
	EventCode *string `json:"eventCode,omitempty"`

	// The type of the events to be queried.
	EventType *string `json:"eventType,omitempty"`

	// The affected object server id of the events to be queried.
	FabricName *string `json:"fabricName,omitempty"`

	// The severity of the events to be queried.
	Severity *string `json:"severity,omitempty"`

	// The start time of the time range within which the events are to be queried.
	StartTime *time.Time `json:"startTime,omitempty"`
}

EventQueryParameter - Implements the event query parameter.

func (EventQueryParameter) MarshalJSON

func (e EventQueryParameter) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EventQueryParameter.

func (*EventQueryParameter) UnmarshalJSON

func (e *EventQueryParameter) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EventQueryParameter.

type EventSpecificDetails

type EventSpecificDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`
}

EventSpecificDetails - Model class for event specific details for an event.

func (*EventSpecificDetails) GetEventSpecificDetails

func (e *EventSpecificDetails) GetEventSpecificDetails() *EventSpecificDetails

GetEventSpecificDetails implements the EventSpecificDetailsClassification interface for type EventSpecificDetails.

func (EventSpecificDetails) MarshalJSON added in v1.1.0

func (e EventSpecificDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EventSpecificDetails.

func (*EventSpecificDetails) UnmarshalJSON

func (e *EventSpecificDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EventSpecificDetails.

type EventSpecificDetailsClassification

type EventSpecificDetailsClassification interface {
	// GetEventSpecificDetails returns the EventSpecificDetails content of the underlying type.
	GetEventSpecificDetails() *EventSpecificDetails
}

EventSpecificDetailsClassification provides polymorphic access to related types. Call the interface's GetEventSpecificDetails() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *EventSpecificDetails, *JobStatusEventDetails

type ExistingProtectionProfile

type ExistingProtectionProfile struct {
	// REQUIRED; The protection profile Arm Id. Throw error, if resource does not exists.
	ProtectionProfileID *string `json:"protectionProfileId,omitempty"`

	// REQUIRED; The class type.
	ResourceType *string `json:"resourceType,omitempty"`
}

ExistingProtectionProfile - Existing storage account input.

func (*ExistingProtectionProfile) GetProtectionProfileCustomDetails added in v0.2.0

func (e *ExistingProtectionProfile) GetProtectionProfileCustomDetails() *ProtectionProfileCustomDetails

GetProtectionProfileCustomDetails implements the ProtectionProfileCustomDetailsClassification interface for type ExistingProtectionProfile.

func (ExistingProtectionProfile) MarshalJSON

func (e ExistingProtectionProfile) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ExistingProtectionProfile.

func (*ExistingProtectionProfile) UnmarshalJSON

func (e *ExistingProtectionProfile) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ExistingProtectionProfile.

type ExistingRecoveryAvailabilitySet

type ExistingRecoveryAvailabilitySet struct {
	// REQUIRED; The class type.
	ResourceType *string `json:"resourceType,omitempty"`

	// The recovery availability set Id. Will throw error, if resource does not exist.
	RecoveryAvailabilitySetID *string `json:"recoveryAvailabilitySetId,omitempty"`
}

ExistingRecoveryAvailabilitySet - Existing recovery availability set input.

func (*ExistingRecoveryAvailabilitySet) GetRecoveryAvailabilitySetCustomDetails added in v0.2.0

func (e *ExistingRecoveryAvailabilitySet) GetRecoveryAvailabilitySetCustomDetails() *RecoveryAvailabilitySetCustomDetails

GetRecoveryAvailabilitySetCustomDetails implements the RecoveryAvailabilitySetCustomDetailsClassification interface for type ExistingRecoveryAvailabilitySet.

func (ExistingRecoveryAvailabilitySet) MarshalJSON

func (e ExistingRecoveryAvailabilitySet) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ExistingRecoveryAvailabilitySet.

func (*ExistingRecoveryAvailabilitySet) UnmarshalJSON

func (e *ExistingRecoveryAvailabilitySet) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ExistingRecoveryAvailabilitySet.

type ExistingRecoveryProximityPlacementGroup

type ExistingRecoveryProximityPlacementGroup struct {
	// REQUIRED; The class type.
	ResourceType *string `json:"resourceType,omitempty"`

	// The recovery proximity placement group Id. Will throw error, if resource does not exist.
	RecoveryProximityPlacementGroupID *string `json:"recoveryProximityPlacementGroupId,omitempty"`
}

ExistingRecoveryProximityPlacementGroup - Existing recovery proximity placement group input.

func (*ExistingRecoveryProximityPlacementGroup) GetRecoveryProximityPlacementGroupCustomDetails added in v0.2.0

func (e *ExistingRecoveryProximityPlacementGroup) GetRecoveryProximityPlacementGroupCustomDetails() *RecoveryProximityPlacementGroupCustomDetails

GetRecoveryProximityPlacementGroupCustomDetails implements the RecoveryProximityPlacementGroupCustomDetailsClassification interface for type ExistingRecoveryProximityPlacementGroup.

func (ExistingRecoveryProximityPlacementGroup) MarshalJSON

func (e ExistingRecoveryProximityPlacementGroup) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ExistingRecoveryProximityPlacementGroup.

func (*ExistingRecoveryProximityPlacementGroup) UnmarshalJSON

func (e *ExistingRecoveryProximityPlacementGroup) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ExistingRecoveryProximityPlacementGroup.

type ExistingRecoveryResourceGroup

type ExistingRecoveryResourceGroup struct {
	// REQUIRED; The class type.
	ResourceType *string `json:"resourceType,omitempty"`

	// The recovery resource group Id. Valid for V2 scenarios.
	RecoveryResourceGroupID *string `json:"recoveryResourceGroupId,omitempty"`
}

ExistingRecoveryResourceGroup - Existing recovery resource group input.

func (*ExistingRecoveryResourceGroup) GetRecoveryResourceGroupCustomDetails added in v0.2.0

func (e *ExistingRecoveryResourceGroup) GetRecoveryResourceGroupCustomDetails() *RecoveryResourceGroupCustomDetails

GetRecoveryResourceGroupCustomDetails implements the RecoveryResourceGroupCustomDetailsClassification interface for type ExistingRecoveryResourceGroup.

func (ExistingRecoveryResourceGroup) MarshalJSON

func (e ExistingRecoveryResourceGroup) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ExistingRecoveryResourceGroup.

func (*ExistingRecoveryResourceGroup) UnmarshalJSON

func (e *ExistingRecoveryResourceGroup) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ExistingRecoveryResourceGroup.

type ExistingRecoveryVirtualNetwork

type ExistingRecoveryVirtualNetwork struct {
	// REQUIRED; The recovery virtual network Id. Will throw error, if resource does not exist.
	RecoveryVirtualNetworkID *string `json:"recoveryVirtualNetworkId,omitempty"`

	// REQUIRED; The class type.
	ResourceType *string `json:"resourceType,omitempty"`

	// The recovery subnet name.
	RecoverySubnetName *string `json:"recoverySubnetName,omitempty"`
}

ExistingRecoveryVirtualNetwork - Existing recovery virtual network input.

func (*ExistingRecoveryVirtualNetwork) GetRecoveryVirtualNetworkCustomDetails added in v0.2.0

func (e *ExistingRecoveryVirtualNetwork) GetRecoveryVirtualNetworkCustomDetails() *RecoveryVirtualNetworkCustomDetails

GetRecoveryVirtualNetworkCustomDetails implements the RecoveryVirtualNetworkCustomDetailsClassification interface for type ExistingRecoveryVirtualNetwork.

func (ExistingRecoveryVirtualNetwork) MarshalJSON

func (e ExistingRecoveryVirtualNetwork) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ExistingRecoveryVirtualNetwork.

func (*ExistingRecoveryVirtualNetwork) UnmarshalJSON

func (e *ExistingRecoveryVirtualNetwork) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ExistingRecoveryVirtualNetwork.

type ExistingStorageAccount

type ExistingStorageAccount struct {
	// REQUIRED; The storage account Arm Id. Throw error, if resource does not exists.
	AzureStorageAccountID *string `json:"azureStorageAccountId,omitempty"`

	// REQUIRED; The class type.
	ResourceType *string `json:"resourceType,omitempty"`
}

ExistingStorageAccount - Existing storage account input.

func (*ExistingStorageAccount) GetStorageAccountCustomDetails added in v0.2.0

func (e *ExistingStorageAccount) GetStorageAccountCustomDetails() *StorageAccountCustomDetails

GetStorageAccountCustomDetails implements the StorageAccountCustomDetailsClassification interface for type ExistingStorageAccount.

func (ExistingStorageAccount) MarshalJSON

func (e ExistingStorageAccount) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ExistingStorageAccount.

func (*ExistingStorageAccount) UnmarshalJSON

func (e *ExistingStorageAccount) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ExistingStorageAccount.

type ExportJobDetails

type ExportJobDetails struct {
	// REQUIRED; Gets the type of job details (see JobDetailsTypes enum for possible values).
	InstanceType *string `json:"instanceType,omitempty"`

	// The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow
	// object details.
	AffectedObjectDetails map[string]*string `json:"affectedObjectDetails,omitempty"`

	// BlobUri of the exported jobs.
	BlobURI *string `json:"blobUri,omitempty"`

	// The sas token to access blob.
	SasToken *string `json:"sasToken,omitempty"`
}

ExportJobDetails - This class represents details for export jobs workflow.

func (*ExportJobDetails) GetJobDetails added in v0.2.0

func (e *ExportJobDetails) GetJobDetails() *JobDetails

GetJobDetails implements the JobDetailsClassification interface for type ExportJobDetails.

func (ExportJobDetails) MarshalJSON

func (e ExportJobDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ExportJobDetails.

func (*ExportJobDetails) UnmarshalJSON

func (e *ExportJobDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ExportJobDetails.

type ExportJobOutputSerializationType

type ExportJobOutputSerializationType string

ExportJobOutputSerializationType - The output type of the jobs.

const (
	ExportJobOutputSerializationTypeExcel ExportJobOutputSerializationType = "Excel"
	ExportJobOutputSerializationTypeJSON  ExportJobOutputSerializationType = "Json"
	ExportJobOutputSerializationTypeXML   ExportJobOutputSerializationType = "Xml"
)

func PossibleExportJobOutputSerializationTypeValues

func PossibleExportJobOutputSerializationTypeValues() []ExportJobOutputSerializationType

PossibleExportJobOutputSerializationTypeValues returns the possible values for the ExportJobOutputSerializationType const type.

type ExtendedLocation added in v0.2.0

type ExtendedLocation struct {
	// REQUIRED; The name of the extended location.
	Name *string `json:"name,omitempty"`

	// REQUIRED; The extended location type.
	Type *ExtendedLocationType `json:"type,omitempty"`
}

ExtendedLocation - Extended location of the resource.

func (ExtendedLocation) MarshalJSON added in v1.1.0

func (e ExtendedLocation) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ExtendedLocation.

func (*ExtendedLocation) UnmarshalJSON added in v1.1.0

func (e *ExtendedLocation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ExtendedLocation.

type ExtendedLocationType added in v0.2.0

type ExtendedLocationType string

ExtendedLocationType - The extended location type.

const (
	ExtendedLocationTypeEdgeZone ExtendedLocationType = "EdgeZone"
)

func PossibleExtendedLocationTypeValues added in v0.2.0

func PossibleExtendedLocationTypeValues() []ExtendedLocationType

PossibleExtendedLocationTypeValues returns the possible values for the ExtendedLocationType const type.

type Fabric

type Fabric struct {
	// Resource Location
	Location *string `json:"location,omitempty"`

	// Fabric related data.
	Properties *FabricProperties `json:"properties,omitempty"`

	// READ-ONLY; Resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Resource Name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Resource Type
	Type *string `json:"type,omitempty" azure:"ro"`
}

Fabric definition.

func (Fabric) MarshalJSON added in v1.1.0

func (f Fabric) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Fabric.

func (*Fabric) UnmarshalJSON added in v1.1.0

func (f *Fabric) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Fabric.

type FabricCollection

type FabricCollection struct {
	// The value of next link.
	NextLink *string `json:"nextLink,omitempty"`

	// The fabric details.
	Value []*Fabric `json:"value,omitempty"`
}

FabricCollection - Collection of fabric details.

func (FabricCollection) MarshalJSON

func (f FabricCollection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FabricCollection.

func (*FabricCollection) UnmarshalJSON added in v1.1.0

func (f *FabricCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FabricCollection.

type FabricCreationInput

type FabricCreationInput struct {
	// Fabric creation input.
	Properties *FabricCreationInputProperties `json:"properties,omitempty"`
}

FabricCreationInput - Site details provided during the time of site creation.

func (FabricCreationInput) MarshalJSON added in v1.1.0

func (f FabricCreationInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FabricCreationInput.

func (*FabricCreationInput) UnmarshalJSON added in v1.1.0

func (f *FabricCreationInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FabricCreationInput.

type FabricCreationInputProperties

type FabricCreationInputProperties struct {
	// Fabric provider specific creation input.
	CustomDetails FabricSpecificCreationInputClassification `json:"customDetails,omitempty"`
}

FabricCreationInputProperties - Properties of site details provided during the time of site creation.

func (FabricCreationInputProperties) MarshalJSON

func (f FabricCreationInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FabricCreationInputProperties.

func (*FabricCreationInputProperties) UnmarshalJSON

func (f *FabricCreationInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FabricCreationInputProperties.

type FabricProperties

type FabricProperties struct {
	// BCDR state of the fabric.
	BcdrState *string `json:"bcdrState,omitempty"`

	// Fabric specific settings.
	CustomDetails FabricSpecificDetailsClassification `json:"customDetails,omitempty"`

	// Encryption details for the fabric.
	EncryptionDetails *EncryptionDetails `json:"encryptionDetails,omitempty"`

	// Friendly name of the fabric.
	FriendlyName *string `json:"friendlyName,omitempty"`

	// Health of fabric.
	Health *string `json:"health,omitempty"`

	// Fabric health error details.
	HealthErrorDetails []*HealthError `json:"healthErrorDetails,omitempty"`

	// Dra Registration Id.
	InternalIdentifier *string `json:"internalIdentifier,omitempty"`

	// Rollover encryption details for the fabric.
	RolloverEncryptionDetails *EncryptionDetails `json:"rolloverEncryptionDetails,omitempty"`
}

FabricProperties - Fabric properties.

func (FabricProperties) MarshalJSON

func (f FabricProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FabricProperties.

func (*FabricProperties) UnmarshalJSON

func (f *FabricProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FabricProperties.

type FabricQueryParameter

type FabricQueryParameter struct {
	// The BIOS Id to be used for fetching agent details.
	BiosID *string `json:"biosId,omitempty"`

	// The type of the discovered machine to be used for fetching agent details.
	DiscoveryType *string `json:"discoveryType,omitempty"`

	// A value indicating whether the agent details are to be fetched.
	FetchAgentDetails *string `json:"fetchAgentDetails,omitempty"`

	// The FQDN to be used for fetching agent details.
	Fqdn *string `json:"fqdn,omitempty"`

	// The OS type to be used for fetching agent details.
	OSType *string `json:"osType,omitempty"`

	// A value indicating whether the zone to zone mappings are to be returned.
	ZoneToZoneMappings *string `json:"zoneToZoneMappings,omitempty"`
}

FabricQueryParameter - Query parameter to get fabric.

func (FabricQueryParameter) MarshalJSON added in v1.1.0

func (f FabricQueryParameter) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FabricQueryParameter.

func (*FabricQueryParameter) UnmarshalJSON added in v1.1.0

func (f *FabricQueryParameter) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FabricQueryParameter.

type FabricReplicationGroupTaskDetails

type FabricReplicationGroupTaskDetails struct {
	// REQUIRED; The type of task details.
	InstanceType *string `json:"instanceType,omitempty"`

	// The job entity.
	JobTask *JobEntity `json:"jobTask,omitempty"`

	// The skipped reason.
	SkippedReason *string `json:"skippedReason,omitempty"`

	// The skipped reason string.
	SkippedReasonString *string `json:"skippedReasonString,omitempty"`
}

FabricReplicationGroupTaskDetails - This class represents the fabric replication group task details.

func (*FabricReplicationGroupTaskDetails) GetJobTaskDetails added in v0.2.0

func (f *FabricReplicationGroupTaskDetails) GetJobTaskDetails() *JobTaskDetails

GetJobTaskDetails implements the JobTaskDetailsClassification interface for type FabricReplicationGroupTaskDetails.

func (*FabricReplicationGroupTaskDetails) GetTaskTypeDetails added in v0.2.0

func (f *FabricReplicationGroupTaskDetails) GetTaskTypeDetails() *TaskTypeDetails

GetTaskTypeDetails implements the TaskTypeDetailsClassification interface for type FabricReplicationGroupTaskDetails.

func (FabricReplicationGroupTaskDetails) MarshalJSON

func (f FabricReplicationGroupTaskDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FabricReplicationGroupTaskDetails.

func (*FabricReplicationGroupTaskDetails) UnmarshalJSON

func (f *FabricReplicationGroupTaskDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FabricReplicationGroupTaskDetails.

type FabricSpecificCreateNetworkMappingInput

type FabricSpecificCreateNetworkMappingInput struct {
	// REQUIRED; The instance type.
	InstanceType *string `json:"instanceType,omitempty"`
}

FabricSpecificCreateNetworkMappingInput - Input details specific to fabrics during Network Mapping.

func (*FabricSpecificCreateNetworkMappingInput) GetFabricSpecificCreateNetworkMappingInput

func (f *FabricSpecificCreateNetworkMappingInput) GetFabricSpecificCreateNetworkMappingInput() *FabricSpecificCreateNetworkMappingInput

GetFabricSpecificCreateNetworkMappingInput implements the FabricSpecificCreateNetworkMappingInputClassification interface for type FabricSpecificCreateNetworkMappingInput.

func (FabricSpecificCreateNetworkMappingInput) MarshalJSON added in v1.1.0

func (f FabricSpecificCreateNetworkMappingInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FabricSpecificCreateNetworkMappingInput.

func (*FabricSpecificCreateNetworkMappingInput) UnmarshalJSON

func (f *FabricSpecificCreateNetworkMappingInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FabricSpecificCreateNetworkMappingInput.

type FabricSpecificCreateNetworkMappingInputClassification

type FabricSpecificCreateNetworkMappingInputClassification interface {
	// GetFabricSpecificCreateNetworkMappingInput returns the FabricSpecificCreateNetworkMappingInput content of the underlying type.
	GetFabricSpecificCreateNetworkMappingInput() *FabricSpecificCreateNetworkMappingInput
}

FabricSpecificCreateNetworkMappingInputClassification provides polymorphic access to related types. Call the interface's GetFabricSpecificCreateNetworkMappingInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AzureToAzureCreateNetworkMappingInput, *FabricSpecificCreateNetworkMappingInput, *VmmToAzureCreateNetworkMappingInput, - *VmmToVmmCreateNetworkMappingInput

type FabricSpecificCreationInput

type FabricSpecificCreationInput struct {
	// REQUIRED; Gets the class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

FabricSpecificCreationInput - Fabric provider specific settings.

func (*FabricSpecificCreationInput) GetFabricSpecificCreationInput

func (f *FabricSpecificCreationInput) GetFabricSpecificCreationInput() *FabricSpecificCreationInput

GetFabricSpecificCreationInput implements the FabricSpecificCreationInputClassification interface for type FabricSpecificCreationInput.

func (FabricSpecificCreationInput) MarshalJSON added in v1.1.0

func (f FabricSpecificCreationInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FabricSpecificCreationInput.

func (*FabricSpecificCreationInput) UnmarshalJSON

func (f *FabricSpecificCreationInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FabricSpecificCreationInput.

type FabricSpecificCreationInputClassification

type FabricSpecificCreationInputClassification interface {
	// GetFabricSpecificCreationInput returns the FabricSpecificCreationInput content of the underlying type.
	GetFabricSpecificCreationInput() *FabricSpecificCreationInput
}

FabricSpecificCreationInputClassification provides polymorphic access to related types. Call the interface's GetFabricSpecificCreationInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AzureFabricCreationInput, *FabricSpecificCreationInput, *InMageRcmFabricCreationInput, *VMwareV2FabricCreationInput

type FabricSpecificDetails

type FabricSpecificDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`
}

FabricSpecificDetails - Fabric specific details.

func (*FabricSpecificDetails) GetFabricSpecificDetails

func (f *FabricSpecificDetails) GetFabricSpecificDetails() *FabricSpecificDetails

GetFabricSpecificDetails implements the FabricSpecificDetailsClassification interface for type FabricSpecificDetails.

func (FabricSpecificDetails) MarshalJSON added in v1.1.0

func (f FabricSpecificDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FabricSpecificDetails.

func (*FabricSpecificDetails) UnmarshalJSON

func (f *FabricSpecificDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FabricSpecificDetails.

type FabricSpecificDetailsClassification

type FabricSpecificDetailsClassification interface {
	// GetFabricSpecificDetails returns the FabricSpecificDetails content of the underlying type.
	GetFabricSpecificDetails() *FabricSpecificDetails
}

FabricSpecificDetailsClassification provides polymorphic access to related types. Call the interface's GetFabricSpecificDetails() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AzureFabricSpecificDetails, *FabricSpecificDetails, *HyperVSiteDetails, *InMageRcmFabricSpecificDetails, *VMwareDetails, - *VMwareV2FabricSpecificDetails, *VmmDetails

type FabricSpecificUpdateNetworkMappingInput

type FabricSpecificUpdateNetworkMappingInput struct {
	// REQUIRED; The instance type.
	InstanceType *string `json:"instanceType,omitempty"`
}

FabricSpecificUpdateNetworkMappingInput - Input details specific to fabrics during Network Mapping.

func (*FabricSpecificUpdateNetworkMappingInput) GetFabricSpecificUpdateNetworkMappingInput

func (f *FabricSpecificUpdateNetworkMappingInput) GetFabricSpecificUpdateNetworkMappingInput() *FabricSpecificUpdateNetworkMappingInput

GetFabricSpecificUpdateNetworkMappingInput implements the FabricSpecificUpdateNetworkMappingInputClassification interface for type FabricSpecificUpdateNetworkMappingInput.

func (FabricSpecificUpdateNetworkMappingInput) MarshalJSON added in v1.1.0

func (f FabricSpecificUpdateNetworkMappingInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FabricSpecificUpdateNetworkMappingInput.

func (*FabricSpecificUpdateNetworkMappingInput) UnmarshalJSON

func (f *FabricSpecificUpdateNetworkMappingInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FabricSpecificUpdateNetworkMappingInput.

type FabricSpecificUpdateNetworkMappingInputClassification

type FabricSpecificUpdateNetworkMappingInputClassification interface {
	// GetFabricSpecificUpdateNetworkMappingInput returns the FabricSpecificUpdateNetworkMappingInput content of the underlying type.
	GetFabricSpecificUpdateNetworkMappingInput() *FabricSpecificUpdateNetworkMappingInput
}

FabricSpecificUpdateNetworkMappingInputClassification provides polymorphic access to related types. Call the interface's GetFabricSpecificUpdateNetworkMappingInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AzureToAzureUpdateNetworkMappingInput, *FabricSpecificUpdateNetworkMappingInput, *VmmToAzureUpdateNetworkMappingInput, - *VmmToVmmUpdateNetworkMappingInput

type FailoverDeploymentModel

type FailoverDeploymentModel string

FailoverDeploymentModel - The failover deployment model.

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

func PossibleFailoverDeploymentModelValues

func PossibleFailoverDeploymentModelValues() []FailoverDeploymentModel

PossibleFailoverDeploymentModelValues returns the possible values for the FailoverDeploymentModel const type.

type FailoverJobDetails

type FailoverJobDetails struct {
	// REQUIRED; Gets the type of job details (see JobDetailsTypes enum for possible values).
	InstanceType *string `json:"instanceType,omitempty"`

	// The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow
	// object details.
	AffectedObjectDetails map[string]*string `json:"affectedObjectDetails,omitempty"`

	// The test VM details.
	ProtectedItemDetails []*FailoverReplicationProtectedItemDetails `json:"protectedItemDetails,omitempty"`
}

FailoverJobDetails - This class represents the details for a failover job.

func (*FailoverJobDetails) GetJobDetails added in v0.2.0

func (f *FailoverJobDetails) GetJobDetails() *JobDetails

GetJobDetails implements the JobDetailsClassification interface for type FailoverJobDetails.

func (FailoverJobDetails) MarshalJSON

func (f FailoverJobDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FailoverJobDetails.

func (*FailoverJobDetails) UnmarshalJSON

func (f *FailoverJobDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FailoverJobDetails.

type FailoverProcessServerRequest

type FailoverProcessServerRequest struct {
	// The properties of the PS Failover request.
	Properties *FailoverProcessServerRequestProperties `json:"properties,omitempty"`
}

FailoverProcessServerRequest - Request to failover a process server.

func (FailoverProcessServerRequest) MarshalJSON added in v1.1.0

func (f FailoverProcessServerRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FailoverProcessServerRequest.

func (*FailoverProcessServerRequest) UnmarshalJSON added in v1.1.0

func (f *FailoverProcessServerRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FailoverProcessServerRequest.

type FailoverProcessServerRequestProperties

type FailoverProcessServerRequestProperties struct {
	// The container identifier.
	ContainerName *string `json:"containerName,omitempty"`

	// The source process server.
	SourceProcessServerID *string `json:"sourceProcessServerId,omitempty"`

	// The new process server.
	TargetProcessServerID *string `json:"targetProcessServerId,omitempty"`

	// A value for failover type. It can be systemlevel/serverlevel.
	UpdateType *string `json:"updateType,omitempty"`

	// The VMS to migrate.
	VMsToMigrate []*string `json:"vmsToMigrate,omitempty"`
}

FailoverProcessServerRequestProperties - The properties of the Failover Process Server request.

func (FailoverProcessServerRequestProperties) MarshalJSON

func (f FailoverProcessServerRequestProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FailoverProcessServerRequestProperties.

func (*FailoverProcessServerRequestProperties) UnmarshalJSON added in v1.1.0

func (f *FailoverProcessServerRequestProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FailoverProcessServerRequestProperties.

type FailoverReplicationProtectedItemDetails

type FailoverReplicationProtectedItemDetails struct {
	// The friendly name.
	FriendlyName *string `json:"friendlyName,omitempty"`

	// The name.
	Name *string `json:"name,omitempty"`

	// The network connection status.
	NetworkConnectionStatus *string `json:"networkConnectionStatus,omitempty"`

	// The network friendly name.
	NetworkFriendlyName *string `json:"networkFriendlyName,omitempty"`

	// The recovery point Id.
	RecoveryPointID *string `json:"recoveryPointId,omitempty"`

	// The recovery point time.
	RecoveryPointTime *time.Time `json:"recoveryPointTime,omitempty"`

	// The network subnet.
	Subnet *string `json:"subnet,omitempty"`

	// The test Vm friendly name.
	TestVMFriendlyName *string `json:"testVmFriendlyName,omitempty"`

	// The test Vm name.
	TestVMName *string `json:"testVmName,omitempty"`
}

FailoverReplicationProtectedItemDetails - Failover details for a replication protected item.

func (FailoverReplicationProtectedItemDetails) MarshalJSON

func (f FailoverReplicationProtectedItemDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FailoverReplicationProtectedItemDetails.

func (*FailoverReplicationProtectedItemDetails) UnmarshalJSON

func (f *FailoverReplicationProtectedItemDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FailoverReplicationProtectedItemDetails.

type GroupTaskDetails

type GroupTaskDetails struct {
	// REQUIRED; The type of task details.
	InstanceType *string `json:"instanceType,omitempty"`

	// The child tasks.
	ChildTasks []*ASRTask `json:"childTasks,omitempty"`
}

GroupTaskDetails - This class represents the group task details when parent child relationship exists in the drill down.

func (*GroupTaskDetails) GetGroupTaskDetails

func (g *GroupTaskDetails) GetGroupTaskDetails() *GroupTaskDetails

GetGroupTaskDetails implements the GroupTaskDetailsClassification interface for type GroupTaskDetails.

func (GroupTaskDetails) MarshalJSON added in v0.2.0

func (g GroupTaskDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GroupTaskDetails.

func (*GroupTaskDetails) UnmarshalJSON

func (g *GroupTaskDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GroupTaskDetails.

type GroupTaskDetailsClassification

type GroupTaskDetailsClassification interface {
	// GetGroupTaskDetails returns the GroupTaskDetails content of the underlying type.
	GetGroupTaskDetails() *GroupTaskDetails
}

GroupTaskDetailsClassification provides polymorphic access to related types. Call the interface's GetGroupTaskDetails() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *GroupTaskDetails, *InlineWorkflowTaskDetails, *RecoveryPlanGroupTaskDetails, *RecoveryPlanShutdownGroupTaskDetails

type HealthError

type HealthError struct {
	// Error creation time (UTC).
	CreationTimeUTC *time.Time `json:"creationTimeUtc,omitempty"`

	// Value indicating whether the health error is customer resolvable.
	CustomerResolvability *HealthErrorCustomerResolvability `json:"customerResolvability,omitempty"`

	// ID of the entity.
	EntityID *string `json:"entityId,omitempty"`

	// Category of error.
	ErrorCategory *string `json:"errorCategory,omitempty"`

	// Error code.
	ErrorCode *string `json:"errorCode,omitempty"`

	// The health error unique id.
	ErrorID *string `json:"errorId,omitempty"`

	// Level of error.
	ErrorLevel *string `json:"errorLevel,omitempty"`

	// Error message.
	ErrorMessage *string `json:"errorMessage,omitempty"`

	// Source of error.
	ErrorSource *string `json:"errorSource,omitempty"`

	// Type of error.
	ErrorType *string `json:"errorType,omitempty"`

	// The inner health errors. HealthError having a list of HealthError as child errors is problematic. InnerHealthError is used
	// because this will prevent an infinite loop of structures when Hydra tries to
	// auto-generate the contract. We are exposing the related health errors as inner health errors and all API consumers can
	// utilize this in the same fashion as Exception -> InnerException.
	InnerHealthErrors []*InnerHealthError `json:"innerHealthErrors,omitempty"`

	// Possible causes of error.
	PossibleCauses *string `json:"possibleCauses,omitempty"`

	// Recommended action to resolve error.
	RecommendedAction *string `json:"recommendedAction,omitempty"`

	// DRA error message.
	RecoveryProviderErrorMessage *string `json:"recoveryProviderErrorMessage,omitempty"`

	// Summary message of the entity.
	SummaryMessage *string `json:"summaryMessage,omitempty"`
}

HealthError - Health Error.

func (HealthError) MarshalJSON

func (h HealthError) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HealthError.

func (*HealthError) UnmarshalJSON

func (h *HealthError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HealthError.

type HealthErrorCategory

type HealthErrorCategory string

HealthErrorCategory - The category of the health error.

const (
	HealthErrorCategoryAgentAutoUpdateArtifactDeleted     HealthErrorCategory = "AgentAutoUpdateArtifactDeleted"
	HealthErrorCategoryAgentAutoUpdateInfra               HealthErrorCategory = "AgentAutoUpdateInfra"
	HealthErrorCategoryAgentAutoUpdateRunAsAccount        HealthErrorCategory = "AgentAutoUpdateRunAsAccount"
	HealthErrorCategoryAgentAutoUpdateRunAsAccountExpired HealthErrorCategory = "AgentAutoUpdateRunAsAccountExpired"
	HealthErrorCategoryAgentAutoUpdateRunAsAccountExpiry  HealthErrorCategory = "AgentAutoUpdateRunAsAccountExpiry"
	HealthErrorCategoryConfiguration                      HealthErrorCategory = "Configuration"
	HealthErrorCategoryFabricInfrastructure               HealthErrorCategory = "FabricInfrastructure"
	HealthErrorCategoryNone                               HealthErrorCategory = "None"
	HealthErrorCategoryReplication                        HealthErrorCategory = "Replication"
	HealthErrorCategoryTestFailover                       HealthErrorCategory = "TestFailover"
	HealthErrorCategoryVersionExpiry                      HealthErrorCategory = "VersionExpiry"
)

func PossibleHealthErrorCategoryValues

func PossibleHealthErrorCategoryValues() []HealthErrorCategory

PossibleHealthErrorCategoryValues returns the possible values for the HealthErrorCategory const type.

type HealthErrorCustomerResolvability

type HealthErrorCustomerResolvability string

HealthErrorCustomerResolvability - Value indicating whether the health error is customer resolvable.

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

func PossibleHealthErrorCustomerResolvabilityValues

func PossibleHealthErrorCustomerResolvabilityValues() []HealthErrorCustomerResolvability

PossibleHealthErrorCustomerResolvabilityValues returns the possible values for the HealthErrorCustomerResolvability const type.

type HealthErrorSummary

type HealthErrorSummary struct {
	// The list of affected resource correlation Ids. This can be used to uniquely identify the count of items affected by a specific
	// category and severity as well as count of item affected by an specific
	// issue.
	AffectedResourceCorrelationIDs []*string `json:"affectedResourceCorrelationIds,omitempty"`

	// The sub type of any subcomponent within the ARM resource that this might be applicable. Value remains null if not applicable.
	AffectedResourceSubtype *string `json:"affectedResourceSubtype,omitempty"`

	// The type of affected ARM resource.
	AffectedResourceType *string `json:"affectedResourceType,omitempty"`

	// The category of the health error.
	Category *HealthErrorCategory `json:"category,omitempty"`

	// Severity of error.
	Severity *Severity `json:"severity,omitempty"`

	// The code of the health error.
	SummaryCode *string `json:"summaryCode,omitempty"`

	// The summary message of the health error.
	SummaryMessage *string `json:"summaryMessage,omitempty"`
}

HealthErrorSummary - class to define the summary of the health error details.

func (HealthErrorSummary) MarshalJSON

func (h HealthErrorSummary) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HealthErrorSummary.

func (*HealthErrorSummary) UnmarshalJSON added in v1.1.0

func (h *HealthErrorSummary) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HealthErrorSummary.

type HyperVHostDetails

type HyperVHostDetails struct {
	// READ-ONLY; The Hyper-V host Id.
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The Mars agent version.
	MarsAgentVersion *string `json:"marsAgentVersion,omitempty" azure:"ro"`

	// READ-ONLY; The Hyper-V host name.
	Name *string `json:"name,omitempty" azure:"ro"`
}

HyperVHostDetails - Hyper-V host details.

func (HyperVHostDetails) MarshalJSON added in v1.1.0

func (h HyperVHostDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HyperVHostDetails.

func (*HyperVHostDetails) UnmarshalJSON added in v1.1.0

func (h *HyperVHostDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HyperVHostDetails.

type HyperVReplica2012EventDetails

type HyperVReplica2012EventDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// The container friendly name.
	ContainerName *string `json:"containerName,omitempty"`

	// The fabric friendly name.
	FabricName *string `json:"fabricName,omitempty"`

	// The remote container name.
	RemoteContainerName *string `json:"remoteContainerName,omitempty"`

	// The remote fabric name.
	RemoteFabricName *string `json:"remoteFabricName,omitempty"`
}

HyperVReplica2012EventDetails - Model class for event details of a HyperVReplica E2E event.

func (*HyperVReplica2012EventDetails) GetEventProviderSpecificDetails added in v0.2.0

func (h *HyperVReplica2012EventDetails) GetEventProviderSpecificDetails() *EventProviderSpecificDetails

GetEventProviderSpecificDetails implements the EventProviderSpecificDetailsClassification interface for type HyperVReplica2012EventDetails.

func (HyperVReplica2012EventDetails) MarshalJSON

func (h HyperVReplica2012EventDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HyperVReplica2012EventDetails.

func (*HyperVReplica2012EventDetails) UnmarshalJSON

func (h *HyperVReplica2012EventDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HyperVReplica2012EventDetails.

type HyperVReplica2012R2EventDetails

type HyperVReplica2012R2EventDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// The container friendly name.
	ContainerName *string `json:"containerName,omitempty"`

	// The fabric friendly name.
	FabricName *string `json:"fabricName,omitempty"`

	// The remote container name.
	RemoteContainerName *string `json:"remoteContainerName,omitempty"`

	// The remote fabric name.
	RemoteFabricName *string `json:"remoteFabricName,omitempty"`
}

HyperVReplica2012R2EventDetails - Model class for event details of a HyperVReplica blue E2E event.

func (*HyperVReplica2012R2EventDetails) GetEventProviderSpecificDetails added in v0.2.0

func (h *HyperVReplica2012R2EventDetails) GetEventProviderSpecificDetails() *EventProviderSpecificDetails

GetEventProviderSpecificDetails implements the EventProviderSpecificDetailsClassification interface for type HyperVReplica2012R2EventDetails.

func (HyperVReplica2012R2EventDetails) MarshalJSON

func (h HyperVReplica2012R2EventDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HyperVReplica2012R2EventDetails.

func (*HyperVReplica2012R2EventDetails) UnmarshalJSON

func (h *HyperVReplica2012R2EventDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HyperVReplica2012R2EventDetails.

type HyperVReplicaAzureApplyRecoveryPointInput

type HyperVReplicaAzureApplyRecoveryPointInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The primary kek certificate pfx.
	PrimaryKekCertificatePfx *string `json:"primaryKekCertificatePfx,omitempty"`

	// The secondary kek certificate pfx.
	SecondaryKekCertificatePfx *string `json:"secondaryKekCertificatePfx,omitempty"`
}

HyperVReplicaAzureApplyRecoveryPointInput - ApplyRecoveryPoint input specific to HyperVReplicaAzure provider.

func (*HyperVReplicaAzureApplyRecoveryPointInput) GetApplyRecoveryPointProviderSpecificInput added in v0.2.0

func (h *HyperVReplicaAzureApplyRecoveryPointInput) GetApplyRecoveryPointProviderSpecificInput() *ApplyRecoveryPointProviderSpecificInput

GetApplyRecoveryPointProviderSpecificInput implements the ApplyRecoveryPointProviderSpecificInputClassification interface for type HyperVReplicaAzureApplyRecoveryPointInput.

func (HyperVReplicaAzureApplyRecoveryPointInput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type HyperVReplicaAzureApplyRecoveryPointInput.

func (*HyperVReplicaAzureApplyRecoveryPointInput) UnmarshalJSON

func (h *HyperVReplicaAzureApplyRecoveryPointInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HyperVReplicaAzureApplyRecoveryPointInput.

type HyperVReplicaAzureDiskInputDetails

type HyperVReplicaAzureDiskInputDetails struct {
	// The DiskEncryptionSet ARM ID.
	DiskEncryptionSetID *string `json:"diskEncryptionSetId,omitempty"`

	// The DiskId.
	DiskID *string `json:"diskId,omitempty"`

	// The DiskType.
	DiskType *DiskAccountType `json:"diskType,omitempty"`

	// The LogStorageAccountId.
	LogStorageAccountID *string `json:"logStorageAccountId,omitempty"`
}

HyperVReplicaAzureDiskInputDetails - Disk input details.

func (HyperVReplicaAzureDiskInputDetails) MarshalJSON added in v1.1.0

func (h HyperVReplicaAzureDiskInputDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HyperVReplicaAzureDiskInputDetails.

func (*HyperVReplicaAzureDiskInputDetails) UnmarshalJSON added in v1.1.0

func (h *HyperVReplicaAzureDiskInputDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HyperVReplicaAzureDiskInputDetails.

type HyperVReplicaAzureEnableProtectionInput

type HyperVReplicaAzureEnableProtectionInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The DiskEncryptionSet ARM Id.
	DiskEncryptionSetID *string `json:"diskEncryptionSetId,omitempty"`

	// The DiskType.
	DiskType *DiskAccountType `json:"diskType,omitempty"`

	// The list of VHD Ids of disks to be protected.
	DisksToInclude []*string `json:"disksToInclude,omitempty"`

	// The disks to include list for managed disks.
	DisksToIncludeForManagedDisks []*HyperVReplicaAzureDiskInputDetails `json:"disksToIncludeForManagedDisks,omitempty"`

	// The selected option to enable RDP\SSH on target vm after failover. String value of SrsDataContract.EnableRDPOnTargetOption
	// enum.
	EnableRdpOnTargetOption *string `json:"enableRdpOnTargetOption,omitempty"`

	// The Hyper-V host VM Id.
	HvHostVMID *string `json:"hvHostVmId,omitempty"`

	// License type.
	LicenseType *LicenseType `json:"licenseType,omitempty"`

	// The storage account to be used for logging during replication.
	LogStorageAccountID *string `json:"logStorageAccountId,omitempty"`

	// The OS type associated with VM.
	OSType *string `json:"osType,omitempty"`

	// The SQL Server license type.
	SQLServerLicenseType *SQLServerLicenseType `json:"sqlServerLicenseType,omitempty"`

	// The tags for the seed managed disks.
	SeedManagedDiskTags map[string]*string `json:"seedManagedDiskTags,omitempty"`

	// The target availability set ARM Id for resource manager deployment.
	TargetAvailabilitySetID *string `json:"targetAvailabilitySetId,omitempty"`

	// The target availability zone.
	TargetAvailabilityZone *string `json:"targetAvailabilityZone,omitempty"`

	// The selected target Azure network Id.
	TargetAzureNetworkID *string `json:"targetAzureNetworkId,omitempty"`

	// The selected target Azure subnet Id.
	TargetAzureSubnetID *string `json:"targetAzureSubnetId,omitempty"`

	// The Id of the target resource group (for classic deployment) in which the failover VM is to be created.
	TargetAzureV1ResourceGroupID *string `json:"targetAzureV1ResourceGroupId,omitempty"`

	// The Id of the target resource group (for resource manager deployment) in which the failover VM is to be created.
	TargetAzureV2ResourceGroupID *string `json:"targetAzureV2ResourceGroupId,omitempty"`

	// The target azure VM Name.
	TargetAzureVMName *string `json:"targetAzureVmName,omitempty"`

	// The tags for the target managed disks.
	TargetManagedDiskTags map[string]*string `json:"targetManagedDiskTags,omitempty"`

	// The tags for the target NICs.
	TargetNicTags map[string]*string `json:"targetNicTags,omitempty"`

	// The proximity placement group ARM Id.
	TargetProximityPlacementGroupID *string `json:"targetProximityPlacementGroupId,omitempty"`

	// The storage account Id.
	TargetStorageAccountID *string `json:"targetStorageAccountId,omitempty"`

	// The target VM size.
	TargetVMSize *string `json:"targetVmSize,omitempty"`

	// The target VM tags.
	TargetVMTags map[string]*string `json:"targetVmTags,omitempty"`

	// A value indicating whether managed disks should be used during failover.
	UseManagedDisks *string `json:"useManagedDisks,omitempty"`

	// A value indicating whether managed disks should be used during replication.
	UseManagedDisksForReplication *string `json:"useManagedDisksForReplication,omitempty"`

	// The VM Name.
	VMName *string `json:"vmName,omitempty"`

	// The OS disk VHD id associated with VM.
	VhdID *string `json:"vhdId,omitempty"`
}

HyperVReplicaAzureEnableProtectionInput - HyperVReplicaAzure specific enable protection input.

func (*HyperVReplicaAzureEnableProtectionInput) GetEnableProtectionProviderSpecificInput added in v0.2.0

func (h *HyperVReplicaAzureEnableProtectionInput) GetEnableProtectionProviderSpecificInput() *EnableProtectionProviderSpecificInput

GetEnableProtectionProviderSpecificInput implements the EnableProtectionProviderSpecificInputClassification interface for type HyperVReplicaAzureEnableProtectionInput.

func (HyperVReplicaAzureEnableProtectionInput) MarshalJSON

func (h HyperVReplicaAzureEnableProtectionInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HyperVReplicaAzureEnableProtectionInput.

func (*HyperVReplicaAzureEnableProtectionInput) UnmarshalJSON

func (h *HyperVReplicaAzureEnableProtectionInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HyperVReplicaAzureEnableProtectionInput.

type HyperVReplicaAzureEventDetails

type HyperVReplicaAzureEventDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// The container friendly name.
	ContainerName *string `json:"containerName,omitempty"`

	// The fabric friendly name.
	FabricName *string `json:"fabricName,omitempty"`

	// The remote container name.
	RemoteContainerName *string `json:"remoteContainerName,omitempty"`
}

HyperVReplicaAzureEventDetails - Model class for event details of a HyperVReplica E2A event.

func (*HyperVReplicaAzureEventDetails) GetEventProviderSpecificDetails added in v0.2.0

func (h *HyperVReplicaAzureEventDetails) GetEventProviderSpecificDetails() *EventProviderSpecificDetails

GetEventProviderSpecificDetails implements the EventProviderSpecificDetailsClassification interface for type HyperVReplicaAzureEventDetails.

func (HyperVReplicaAzureEventDetails) MarshalJSON

func (h HyperVReplicaAzureEventDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HyperVReplicaAzureEventDetails.

func (*HyperVReplicaAzureEventDetails) UnmarshalJSON

func (h *HyperVReplicaAzureEventDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HyperVReplicaAzureEventDetails.

type HyperVReplicaAzureFailbackProviderInput

type HyperVReplicaAzureFailbackProviderInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// Data sync option.
	DataSyncOption *string `json:"dataSyncOption,omitempty"`

	// Provider Id for alternate location.
	ProviderIDForAlternateRecovery *string `json:"providerIdForAlternateRecovery,omitempty"`

	// ALR options to create alternate recovery.
	RecoveryVMCreationOption *string `json:"recoveryVmCreationOption,omitempty"`
}

HyperVReplicaAzureFailbackProviderInput - HyperVReplicaAzureFailback specific planned failover input.

func (*HyperVReplicaAzureFailbackProviderInput) GetPlannedFailoverProviderSpecificFailoverInput added in v0.2.0

func (h *HyperVReplicaAzureFailbackProviderInput) GetPlannedFailoverProviderSpecificFailoverInput() *PlannedFailoverProviderSpecificFailoverInput

GetPlannedFailoverProviderSpecificFailoverInput implements the PlannedFailoverProviderSpecificFailoverInputClassification interface for type HyperVReplicaAzureFailbackProviderInput.

func (HyperVReplicaAzureFailbackProviderInput) MarshalJSON

func (h HyperVReplicaAzureFailbackProviderInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HyperVReplicaAzureFailbackProviderInput.

func (*HyperVReplicaAzureFailbackProviderInput) UnmarshalJSON

func (h *HyperVReplicaAzureFailbackProviderInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HyperVReplicaAzureFailbackProviderInput.

type HyperVReplicaAzureManagedDiskDetails

type HyperVReplicaAzureManagedDiskDetails struct {
	// The disk encryption set ARM Id.
	DiskEncryptionSetID *string `json:"diskEncryptionSetId,omitempty"`

	// The disk Id.
	DiskID *string `json:"diskId,omitempty"`

	// The replica disk type.
	ReplicaDiskType *string `json:"replicaDiskType,omitempty"`

	// Seed managed disk Id.
	SeedManagedDiskID *string `json:"seedManagedDiskId,omitempty"`
}

HyperVReplicaAzureManagedDiskDetails - Hyper-V Managed disk details.

func (HyperVReplicaAzureManagedDiskDetails) MarshalJSON added in v1.1.0

func (h HyperVReplicaAzureManagedDiskDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HyperVReplicaAzureManagedDiskDetails.

func (*HyperVReplicaAzureManagedDiskDetails) UnmarshalJSON added in v1.1.0

func (h *HyperVReplicaAzureManagedDiskDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HyperVReplicaAzureManagedDiskDetails.

type HyperVReplicaAzurePlannedFailoverProviderInput

type HyperVReplicaAzurePlannedFailoverProviderInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// Primary kek certificate pfx.
	PrimaryKekCertificatePfx *string `json:"primaryKekCertificatePfx,omitempty"`

	// The recovery point id to be passed to failover to a particular recovery point. In case of latest recovery point, null should
	// be passed.
	RecoveryPointID *string `json:"recoveryPointId,omitempty"`

	// Secondary kek certificate pfx.
	SecondaryKekCertificatePfx *string `json:"secondaryKekCertificatePfx,omitempty"`
}

HyperVReplicaAzurePlannedFailoverProviderInput - HyperVReplicaAzure specific planned failover input.

func (*HyperVReplicaAzurePlannedFailoverProviderInput) GetPlannedFailoverProviderSpecificFailoverInput added in v0.2.0

func (h *HyperVReplicaAzurePlannedFailoverProviderInput) GetPlannedFailoverProviderSpecificFailoverInput() *PlannedFailoverProviderSpecificFailoverInput

GetPlannedFailoverProviderSpecificFailoverInput implements the PlannedFailoverProviderSpecificFailoverInputClassification interface for type HyperVReplicaAzurePlannedFailoverProviderInput.

func (HyperVReplicaAzurePlannedFailoverProviderInput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type HyperVReplicaAzurePlannedFailoverProviderInput.

func (*HyperVReplicaAzurePlannedFailoverProviderInput) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type HyperVReplicaAzurePlannedFailoverProviderInput.

type HyperVReplicaAzurePolicyDetails

type HyperVReplicaAzurePolicyDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// The active storage account Id.
	ActiveStorageAccountID *string `json:"activeStorageAccountId,omitempty"`

	// The interval (in hours) at which Hyper-V Replica should create an application consistent snapshot within the VM.
	ApplicationConsistentSnapshotFrequencyInHours *int32 `json:"applicationConsistentSnapshotFrequencyInHours,omitempty"`

	// A value indicating whether encryption is enabled for virtual machines in this cloud.
	Encryption *string `json:"encryption,omitempty"`

	// The scheduled start time for the initial replication. If this parameter is Null, the initial replication starts immediately.
	OnlineReplicationStartTime *string `json:"onlineReplicationStartTime,omitempty"`

	// The duration (in hours) to which point the recovery history needs to be maintained.
	RecoveryPointHistoryDurationInHours *int32 `json:"recoveryPointHistoryDurationInHours,omitempty"`

	// The replication interval.
	ReplicationInterval *int32 `json:"replicationInterval,omitempty"`
}

HyperVReplicaAzurePolicyDetails - Hyper-V Replica Azure specific protection profile details.

func (*HyperVReplicaAzurePolicyDetails) GetPolicyProviderSpecificDetails added in v0.2.0

func (h *HyperVReplicaAzurePolicyDetails) GetPolicyProviderSpecificDetails() *PolicyProviderSpecificDetails

GetPolicyProviderSpecificDetails implements the PolicyProviderSpecificDetailsClassification interface for type HyperVReplicaAzurePolicyDetails.

func (HyperVReplicaAzurePolicyDetails) MarshalJSON

func (h HyperVReplicaAzurePolicyDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HyperVReplicaAzurePolicyDetails.

func (*HyperVReplicaAzurePolicyDetails) UnmarshalJSON

func (h *HyperVReplicaAzurePolicyDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HyperVReplicaAzurePolicyDetails.

type HyperVReplicaAzurePolicyInput

type HyperVReplicaAzurePolicyInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The interval (in hours) at which Hyper-V Replica should create an application consistent snapshot within the VM.
	ApplicationConsistentSnapshotFrequencyInHours *int32 `json:"applicationConsistentSnapshotFrequencyInHours,omitempty"`

	// The scheduled start time for the initial replication. If this parameter is Null, the initial replication starts immediately.
	OnlineReplicationStartTime *string `json:"onlineReplicationStartTime,omitempty"`

	// The duration (in hours) to which point the recovery history needs to be maintained.
	RecoveryPointHistoryDuration *int32 `json:"recoveryPointHistoryDuration,omitempty"`

	// The replication interval.
	ReplicationInterval *int32 `json:"replicationInterval,omitempty"`

	// The list of storage accounts to which the VMs in the primary cloud can replicate to.
	StorageAccounts []*string `json:"storageAccounts,omitempty"`
}

HyperVReplicaAzurePolicyInput - Hyper-V Replica Azure specific input for creating a protection profile.

func (*HyperVReplicaAzurePolicyInput) GetPolicyProviderSpecificInput added in v0.2.0

func (h *HyperVReplicaAzurePolicyInput) GetPolicyProviderSpecificInput() *PolicyProviderSpecificInput

GetPolicyProviderSpecificInput implements the PolicyProviderSpecificInputClassification interface for type HyperVReplicaAzurePolicyInput.

func (HyperVReplicaAzurePolicyInput) MarshalJSON

func (h HyperVReplicaAzurePolicyInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HyperVReplicaAzurePolicyInput.

func (*HyperVReplicaAzurePolicyInput) UnmarshalJSON

func (h *HyperVReplicaAzurePolicyInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HyperVReplicaAzurePolicyInput.

type HyperVReplicaAzureReplicationDetails

type HyperVReplicaAzureReplicationDetails struct {
	// REQUIRED; Gets the Instance type.
	InstanceType *string `json:"instanceType,omitempty"`

	// Azure VM Disk details.
	AzureVMDiskDetails []*AzureVMDiskDetails `json:"azureVmDiskDetails,omitempty"`

	// The selected option to enable RDP\SSH on target vm after failover. String value of SrsDataContract.EnableRDPOnTargetOption
	// enum.
	EnableRdpOnTargetOption *string `json:"enableRdpOnTargetOption,omitempty"`

	// The encryption info.
	Encryption *string `json:"encryption,omitempty"`

	// Initial replication details.
	InitialReplicationDetails *InitialReplicationDetails `json:"initialReplicationDetails,omitempty"`

	// The Last replication time.
	LastReplicatedTime *time.Time `json:"lastReplicatedTime,omitempty"`

	// The last RPO calculated time.
	LastRpoCalculatedTime *time.Time `json:"lastRpoCalculatedTime,omitempty"`

	// License Type of the VM to be used.
	LicenseType *string `json:"licenseType,omitempty"`

	// The operating system info.
	OSDetails *OSDetails `json:"oSDetails,omitempty"`

	// The list of protected managed disks.
	ProtectedManagedDisks []*HyperVReplicaAzureManagedDiskDetails `json:"protectedManagedDisks,omitempty"`

	// The recovery availability set Id.
	RecoveryAvailabilitySetID *string `json:"recoveryAvailabilitySetId,omitempty"`

	// The ARM id of the log storage account used for replication. This will be set to null if no log storage account was provided
	// during enable protection.
	RecoveryAzureLogStorageAccountID *string `json:"recoveryAzureLogStorageAccountId,omitempty"`

	// The target resource group Id.
	RecoveryAzureResourceGroupID *string `json:"recoveryAzureResourceGroupId,omitempty"`

	// The recovery Azure storage account.
	RecoveryAzureStorageAccount *string `json:"recoveryAzureStorageAccount,omitempty"`

	// Recovery Azure given name.
	RecoveryAzureVMName *string `json:"recoveryAzureVmName,omitempty"`

	// The Recovery Azure VM size.
	RecoveryAzureVMSize *string `json:"recoveryAzureVMSize,omitempty"`

	// Last RPO value.
	RpoInSeconds *int64 `json:"rpoInSeconds,omitempty"`

	// The SQL Server license type.
	SQLServerLicenseType *string `json:"sqlServerLicenseType,omitempty"`

	// The tags for the seed managed disks.
	SeedManagedDiskTags map[string]*string `json:"seedManagedDiskTags,omitempty"`

	// The selected recovery azure network Id.
	SelectedRecoveryAzureNetworkID *string `json:"selectedRecoveryAzureNetworkId,omitempty"`

	// The selected source nic Id which will be used as the primary nic during failover.
	SelectedSourceNicID *string `json:"selectedSourceNicId,omitempty"`

	// The CPU count of the VM on the primary side.
	SourceVMCPUCount *int32 `json:"sourceVmCpuCount,omitempty"`

	// The RAM size of the VM on the primary side.
	SourceVMRAMSizeInMB *int32 `json:"sourceVmRamSizeInMB,omitempty"`

	// The target availability zone.
	TargetAvailabilityZone *string `json:"targetAvailabilityZone,omitempty"`

	// The tags for the target managed disks.
	TargetManagedDiskTags map[string]*string `json:"targetManagedDiskTags,omitempty"`

	// The tags for the target NICs.
	TargetNicTags map[string]*string `json:"targetNicTags,omitempty"`

	// The target proximity placement group Id.
	TargetProximityPlacementGroupID *string `json:"targetProximityPlacementGroupId,omitempty"`

	// The target VM tags.
	TargetVMTags map[string]*string `json:"targetVmTags,omitempty"`

	// A value indicating whether managed disks should be used during failover.
	UseManagedDisks *string `json:"useManagedDisks,omitempty"`

	// The virtual machine Id.
	VMID *string `json:"vmId,omitempty"`

	// The PE Network details.
	VMNics []*VMNicDetails `json:"vmNics,omitempty"`

	// The protection state for the vm.
	VMProtectionState *string `json:"vmProtectionState,omitempty"`

	// The protection state description for the vm.
	VMProtectionStateDescription *string `json:"vmProtectionStateDescription,omitempty"`

	// READ-ONLY; The last recovery point received time.
	LastRecoveryPointReceived *time.Time `json:"lastRecoveryPointReceived,omitempty" azure:"ro"`
}

HyperVReplicaAzureReplicationDetails - Hyper V Replica Azure provider specific settings.

func (*HyperVReplicaAzureReplicationDetails) GetReplicationProviderSpecificSettings added in v0.2.0

func (h *HyperVReplicaAzureReplicationDetails) GetReplicationProviderSpecificSettings() *ReplicationProviderSpecificSettings

GetReplicationProviderSpecificSettings implements the ReplicationProviderSpecificSettingsClassification interface for type HyperVReplicaAzureReplicationDetails.

func (HyperVReplicaAzureReplicationDetails) MarshalJSON

func (h HyperVReplicaAzureReplicationDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HyperVReplicaAzureReplicationDetails.

func (*HyperVReplicaAzureReplicationDetails) UnmarshalJSON

func (h *HyperVReplicaAzureReplicationDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HyperVReplicaAzureReplicationDetails.

type HyperVReplicaAzureReprotectInput

type HyperVReplicaAzureReprotectInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The Hyper-V host Vm Id.
	HvHostVMID *string `json:"hvHostVmId,omitempty"`

	// The storage account to be used for logging during replication.
	LogStorageAccountID *string `json:"logStorageAccountId,omitempty"`

	// The OS type associated with vm.
	OSType *string `json:"osType,omitempty"`

	// The storage account name.
	StorageAccountID *string `json:"storageAccountId,omitempty"`

	// The OS disk VHD id associated with vm.
	VHDID *string `json:"vHDId,omitempty"`

	// The Vm Name.
	VMName *string `json:"vmName,omitempty"`
}

HyperVReplicaAzureReprotectInput - Azure specific reprotect input.

func (*HyperVReplicaAzureReprotectInput) GetReverseReplicationProviderSpecificInput added in v0.2.0

func (h *HyperVReplicaAzureReprotectInput) GetReverseReplicationProviderSpecificInput() *ReverseReplicationProviderSpecificInput

GetReverseReplicationProviderSpecificInput implements the ReverseReplicationProviderSpecificInputClassification interface for type HyperVReplicaAzureReprotectInput.

func (HyperVReplicaAzureReprotectInput) MarshalJSON

func (h HyperVReplicaAzureReprotectInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HyperVReplicaAzureReprotectInput.

func (*HyperVReplicaAzureReprotectInput) UnmarshalJSON

func (h *HyperVReplicaAzureReprotectInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HyperVReplicaAzureReprotectInput.

type HyperVReplicaAzureRpRecoveryPointType

type HyperVReplicaAzureRpRecoveryPointType string

HyperVReplicaAzureRpRecoveryPointType - The recovery point type.

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

func PossibleHyperVReplicaAzureRpRecoveryPointTypeValues

func PossibleHyperVReplicaAzureRpRecoveryPointTypeValues() []HyperVReplicaAzureRpRecoveryPointType

PossibleHyperVReplicaAzureRpRecoveryPointTypeValues returns the possible values for the HyperVReplicaAzureRpRecoveryPointType const type.

type HyperVReplicaAzureTestFailoverInput

type HyperVReplicaAzureTestFailoverInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// Primary kek certificate pfx.
	PrimaryKekCertificatePfx *string `json:"primaryKekCertificatePfx,omitempty"`

	// The recovery point id to be passed to test failover to a particular recovery point. In case of latest recovery point, null
	// should be passed.
	RecoveryPointID *string `json:"recoveryPointId,omitempty"`

	// Secondary kek certificate pfx.
	SecondaryKekCertificatePfx *string `json:"secondaryKekCertificatePfx,omitempty"`
}

HyperVReplicaAzureTestFailoverInput - HvrA provider specific input for test failover.

func (*HyperVReplicaAzureTestFailoverInput) GetTestFailoverProviderSpecificInput added in v0.2.0

func (h *HyperVReplicaAzureTestFailoverInput) GetTestFailoverProviderSpecificInput() *TestFailoverProviderSpecificInput

GetTestFailoverProviderSpecificInput implements the TestFailoverProviderSpecificInputClassification interface for type HyperVReplicaAzureTestFailoverInput.

func (HyperVReplicaAzureTestFailoverInput) MarshalJSON

func (h HyperVReplicaAzureTestFailoverInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HyperVReplicaAzureTestFailoverInput.

func (*HyperVReplicaAzureTestFailoverInput) UnmarshalJSON

func (h *HyperVReplicaAzureTestFailoverInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HyperVReplicaAzureTestFailoverInput.

type HyperVReplicaAzureUnplannedFailoverInput

type HyperVReplicaAzureUnplannedFailoverInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// Primary kek certificate pfx.
	PrimaryKekCertificatePfx *string `json:"primaryKekCertificatePfx,omitempty"`

	// The recovery point id to be passed to failover to a particular recovery point. In case of latest recovery point, null should
	// be passed.
	RecoveryPointID *string `json:"recoveryPointId,omitempty"`

	// Secondary kek certificate pfx.
	SecondaryKekCertificatePfx *string `json:"secondaryKekCertificatePfx,omitempty"`
}

HyperVReplicaAzureUnplannedFailoverInput - HvrA provider specific input for unplanned failover.

func (*HyperVReplicaAzureUnplannedFailoverInput) GetUnplannedFailoverProviderSpecificInput added in v0.2.0

func (h *HyperVReplicaAzureUnplannedFailoverInput) GetUnplannedFailoverProviderSpecificInput() *UnplannedFailoverProviderSpecificInput

GetUnplannedFailoverProviderSpecificInput implements the UnplannedFailoverProviderSpecificInputClassification interface for type HyperVReplicaAzureUnplannedFailoverInput.

func (HyperVReplicaAzureUnplannedFailoverInput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type HyperVReplicaAzureUnplannedFailoverInput.

func (*HyperVReplicaAzureUnplannedFailoverInput) UnmarshalJSON

func (h *HyperVReplicaAzureUnplannedFailoverInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HyperVReplicaAzureUnplannedFailoverInput.

type HyperVReplicaAzureUpdateReplicationProtectedItemInput

type HyperVReplicaAzureUpdateReplicationProtectedItemInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The dictionary of disk resource Id to disk encryption set ARM Id.
	DiskIDToDiskEncryptionMap map[string]*string `json:"diskIdToDiskEncryptionMap,omitempty"`

	// The recovery Azure resource group Id for classic deployment.
	RecoveryAzureV1ResourceGroupID *string `json:"recoveryAzureV1ResourceGroupId,omitempty"`

	// The recovery Azure resource group Id for resource manager deployment.
	RecoveryAzureV2ResourceGroupID *string `json:"recoveryAzureV2ResourceGroupId,omitempty"`

	// The SQL Server license type.
	SQLServerLicenseType *SQLServerLicenseType `json:"sqlServerLicenseType,omitempty"`

	// The target availability zone.
	TargetAvailabilityZone *string `json:"targetAvailabilityZone,omitempty"`

	// The tags for the target managed disks.
	TargetManagedDiskTags map[string]*string `json:"targetManagedDiskTags,omitempty"`

	// The tags for the target NICs.
	TargetNicTags map[string]*string `json:"targetNicTags,omitempty"`

	// The target proximity placement group Id.
	TargetProximityPlacementGroupID *string `json:"targetProximityPlacementGroupId,omitempty"`

	// The target VM tags.
	TargetVMTags map[string]*string `json:"targetVmTags,omitempty"`

	// A value indicating whether managed disks should be used during failover.
	UseManagedDisks *string `json:"useManagedDisks,omitempty"`

	// The list of disk update properties.
	VMDisks []*UpdateDiskInput `json:"vmDisks,omitempty"`
}

HyperVReplicaAzureUpdateReplicationProtectedItemInput - HyperV replica Azure input to update replication protected item.

func (*HyperVReplicaAzureUpdateReplicationProtectedItemInput) GetUpdateReplicationProtectedItemProviderInput added in v0.2.0

GetUpdateReplicationProtectedItemProviderInput implements the UpdateReplicationProtectedItemProviderInputClassification interface for type HyperVReplicaAzureUpdateReplicationProtectedItemInput.

func (HyperVReplicaAzureUpdateReplicationProtectedItemInput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type HyperVReplicaAzureUpdateReplicationProtectedItemInput.

func (*HyperVReplicaAzureUpdateReplicationProtectedItemInput) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type HyperVReplicaAzureUpdateReplicationProtectedItemInput.

type HyperVReplicaBaseEventDetails

type HyperVReplicaBaseEventDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// The container friendly name.
	ContainerName *string `json:"containerName,omitempty"`

	// The fabric friendly name.
	FabricName *string `json:"fabricName,omitempty"`

	// The remote container name.
	RemoteContainerName *string `json:"remoteContainerName,omitempty"`

	// The remote fabric name.
	RemoteFabricName *string `json:"remoteFabricName,omitempty"`
}

HyperVReplicaBaseEventDetails - Abstract model class for event details of a HyperVReplica E2E event.

func (*HyperVReplicaBaseEventDetails) GetEventProviderSpecificDetails added in v0.2.0

func (h *HyperVReplicaBaseEventDetails) GetEventProviderSpecificDetails() *EventProviderSpecificDetails

GetEventProviderSpecificDetails implements the EventProviderSpecificDetailsClassification interface for type HyperVReplicaBaseEventDetails.

func (HyperVReplicaBaseEventDetails) MarshalJSON

func (h HyperVReplicaBaseEventDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HyperVReplicaBaseEventDetails.

func (*HyperVReplicaBaseEventDetails) UnmarshalJSON

func (h *HyperVReplicaBaseEventDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HyperVReplicaBaseEventDetails.

type HyperVReplicaBasePolicyDetails

type HyperVReplicaBasePolicyDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// A value indicating the authentication type.
	AllowedAuthenticationType *int32 `json:"allowedAuthenticationType,omitempty"`

	// A value indicating the application consistent frequency.
	ApplicationConsistentSnapshotFrequencyInHours *int32 `json:"applicationConsistentSnapshotFrequencyInHours,omitempty"`

	// A value indicating whether compression has to be enabled.
	Compression *string `json:"compression,omitempty"`

	// A value indicating whether IR is online.
	InitialReplicationMethod *string `json:"initialReplicationMethod,omitempty"`

	// A value indicating the offline IR export path.
	OfflineReplicationExportPath *string `json:"offlineReplicationExportPath,omitempty"`

	// A value indicating the offline IR import path.
	OfflineReplicationImportPath *string `json:"offlineReplicationImportPath,omitempty"`

	// A value indicating the online IR start time.
	OnlineReplicationStartTime *string `json:"onlineReplicationStartTime,omitempty"`

	// A value indicating the number of recovery points.
	RecoveryPoints *int32 `json:"recoveryPoints,omitempty"`

	// A value indicating whether the VM has to be auto deleted. Supported Values: String.Empty, None, OnRecoveryCloud.
	ReplicaDeletionOption *string `json:"replicaDeletionOption,omitempty"`

	// A value indicating the recovery HTTPS port.
	ReplicationPort *int32 `json:"replicationPort,omitempty"`
}

HyperVReplicaBasePolicyDetails - Base class for HyperVReplica policy details.

func (*HyperVReplicaBasePolicyDetails) GetPolicyProviderSpecificDetails added in v0.2.0

func (h *HyperVReplicaBasePolicyDetails) GetPolicyProviderSpecificDetails() *PolicyProviderSpecificDetails

GetPolicyProviderSpecificDetails implements the PolicyProviderSpecificDetailsClassification interface for type HyperVReplicaBasePolicyDetails.

func (HyperVReplicaBasePolicyDetails) MarshalJSON

func (h HyperVReplicaBasePolicyDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HyperVReplicaBasePolicyDetails.

func (*HyperVReplicaBasePolicyDetails) UnmarshalJSON

func (h *HyperVReplicaBasePolicyDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HyperVReplicaBasePolicyDetails.

type HyperVReplicaBaseReplicationDetails

type HyperVReplicaBaseReplicationDetails struct {
	// REQUIRED; Gets the Instance type.
	InstanceType *string `json:"instanceType,omitempty"`

	// Initial replication details.
	InitialReplicationDetails *InitialReplicationDetails `json:"initialReplicationDetails,omitempty"`

	// The Last replication time.
	LastReplicatedTime *time.Time `json:"lastReplicatedTime,omitempty"`

	// VM disk details.
	VMDiskDetails []*DiskDetails `json:"vMDiskDetails,omitempty"`

	// The virtual machine Id.
	VMID *string `json:"vmId,omitempty"`

	// The PE Network details.
	VMNics []*VMNicDetails `json:"vmNics,omitempty"`

	// The protection state for the vm.
	VMProtectionState *string `json:"vmProtectionState,omitempty"`

	// The protection state description for the vm.
	VMProtectionStateDescription *string `json:"vmProtectionStateDescription,omitempty"`
}

HyperVReplicaBaseReplicationDetails - Hyper V replica provider specific settings base class.

func (*HyperVReplicaBaseReplicationDetails) GetReplicationProviderSpecificSettings added in v0.2.0

func (h *HyperVReplicaBaseReplicationDetails) GetReplicationProviderSpecificSettings() *ReplicationProviderSpecificSettings

GetReplicationProviderSpecificSettings implements the ReplicationProviderSpecificSettingsClassification interface for type HyperVReplicaBaseReplicationDetails.

func (HyperVReplicaBaseReplicationDetails) MarshalJSON

func (h HyperVReplicaBaseReplicationDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HyperVReplicaBaseReplicationDetails.

func (*HyperVReplicaBaseReplicationDetails) UnmarshalJSON

func (h *HyperVReplicaBaseReplicationDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HyperVReplicaBaseReplicationDetails.

type HyperVReplicaBluePolicyDetails

type HyperVReplicaBluePolicyDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// A value indicating the authentication type.
	AllowedAuthenticationType *int32 `json:"allowedAuthenticationType,omitempty"`

	// A value indicating the application consistent frequency.
	ApplicationConsistentSnapshotFrequencyInHours *int32 `json:"applicationConsistentSnapshotFrequencyInHours,omitempty"`

	// A value indicating whether compression has to be enabled.
	Compression *string `json:"compression,omitempty"`

	// A value indicating whether IR is online.
	InitialReplicationMethod *string `json:"initialReplicationMethod,omitempty"`

	// A value indicating the offline IR export path.
	OfflineReplicationExportPath *string `json:"offlineReplicationExportPath,omitempty"`

	// A value indicating the offline IR import path.
	OfflineReplicationImportPath *string `json:"offlineReplicationImportPath,omitempty"`

	// A value indicating the online IR start time.
	OnlineReplicationStartTime *string `json:"onlineReplicationStartTime,omitempty"`

	// A value indicating the number of recovery points.
	RecoveryPoints *int32 `json:"recoveryPoints,omitempty"`

	// A value indicating whether the VM has to be auto deleted. Supported Values: String.Empty, None, OnRecoveryCloud
	ReplicaDeletionOption *string `json:"replicaDeletionOption,omitempty"`

	// A value indicating the replication interval.
	ReplicationFrequencyInSeconds *int32 `json:"replicationFrequencyInSeconds,omitempty"`

	// A value indicating the recovery HTTPS port.
	ReplicationPort *int32 `json:"replicationPort,omitempty"`
}

HyperVReplicaBluePolicyDetails - Hyper-V Replica Blue specific protection profile details.

func (*HyperVReplicaBluePolicyDetails) GetPolicyProviderSpecificDetails added in v0.2.0

func (h *HyperVReplicaBluePolicyDetails) GetPolicyProviderSpecificDetails() *PolicyProviderSpecificDetails

GetPolicyProviderSpecificDetails implements the PolicyProviderSpecificDetailsClassification interface for type HyperVReplicaBluePolicyDetails.

func (HyperVReplicaBluePolicyDetails) MarshalJSON

func (h HyperVReplicaBluePolicyDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HyperVReplicaBluePolicyDetails.

func (*HyperVReplicaBluePolicyDetails) UnmarshalJSON

func (h *HyperVReplicaBluePolicyDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HyperVReplicaBluePolicyDetails.

type HyperVReplicaBluePolicyInput

type HyperVReplicaBluePolicyInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// A value indicating the authentication type.
	AllowedAuthenticationType *int32 `json:"allowedAuthenticationType,omitempty"`

	// A value indicating the application consistent frequency.
	ApplicationConsistentSnapshotFrequencyInHours *int32 `json:"applicationConsistentSnapshotFrequencyInHours,omitempty"`

	// A value indicating whether compression has to be enabled.
	Compression *string `json:"compression,omitempty"`

	// A value indicating whether IR is online.
	InitialReplicationMethod *string `json:"initialReplicationMethod,omitempty"`

	// A value indicating the offline IR export path.
	OfflineReplicationExportPath *string `json:"offlineReplicationExportPath,omitempty"`

	// A value indicating the offline IR import path.
	OfflineReplicationImportPath *string `json:"offlineReplicationImportPath,omitempty"`

	// A value indicating the online IR start time.
	OnlineReplicationStartTime *string `json:"onlineReplicationStartTime,omitempty"`

	// A value indicating the number of recovery points.
	RecoveryPoints *int32 `json:"recoveryPoints,omitempty"`

	// A value indicating whether the VM has to be auto deleted.
	ReplicaDeletion *string `json:"replicaDeletion,omitempty"`

	// A value indicating the replication interval.
	ReplicationFrequencyInSeconds *int32 `json:"replicationFrequencyInSeconds,omitempty"`

	// A value indicating the recovery HTTPS port.
	ReplicationPort *int32 `json:"replicationPort,omitempty"`
}

HyperVReplicaBluePolicyInput - HyperV Replica Blue policy input.

func (*HyperVReplicaBluePolicyInput) GetHyperVReplicaPolicyInput added in v0.2.0

func (h *HyperVReplicaBluePolicyInput) GetHyperVReplicaPolicyInput() *HyperVReplicaPolicyInput

GetHyperVReplicaPolicyInput implements the HyperVReplicaPolicyInputClassification interface for type HyperVReplicaBluePolicyInput.

func (*HyperVReplicaBluePolicyInput) GetPolicyProviderSpecificInput added in v0.2.0

func (h *HyperVReplicaBluePolicyInput) GetPolicyProviderSpecificInput() *PolicyProviderSpecificInput

GetPolicyProviderSpecificInput implements the PolicyProviderSpecificInputClassification interface for type HyperVReplicaBluePolicyInput.

func (HyperVReplicaBluePolicyInput) MarshalJSON

func (h HyperVReplicaBluePolicyInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HyperVReplicaBluePolicyInput.

func (*HyperVReplicaBluePolicyInput) UnmarshalJSON

func (h *HyperVReplicaBluePolicyInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HyperVReplicaBluePolicyInput.

type HyperVReplicaBlueReplicationDetails

type HyperVReplicaBlueReplicationDetails struct {
	// REQUIRED; Gets the Instance type.
	InstanceType *string `json:"instanceType,omitempty"`

	// Initial replication details.
	InitialReplicationDetails *InitialReplicationDetails `json:"initialReplicationDetails,omitempty"`

	// The Last replication time.
	LastReplicatedTime *time.Time `json:"lastReplicatedTime,omitempty"`

	// VM disk details.
	VMDiskDetails []*DiskDetails `json:"vMDiskDetails,omitempty"`

	// The virtual machine Id.
	VMID *string `json:"vmId,omitempty"`

	// The PE Network details.
	VMNics []*VMNicDetails `json:"vmNics,omitempty"`

	// The protection state for the vm.
	VMProtectionState *string `json:"vmProtectionState,omitempty"`

	// The protection state description for the vm.
	VMProtectionStateDescription *string `json:"vmProtectionStateDescription,omitempty"`
}

HyperVReplicaBlueReplicationDetails - HyperV replica 2012 R2 (Blue) replication details.

func (*HyperVReplicaBlueReplicationDetails) GetReplicationProviderSpecificSettings added in v0.2.0

func (h *HyperVReplicaBlueReplicationDetails) GetReplicationProviderSpecificSettings() *ReplicationProviderSpecificSettings

GetReplicationProviderSpecificSettings implements the ReplicationProviderSpecificSettingsClassification interface for type HyperVReplicaBlueReplicationDetails.

func (HyperVReplicaBlueReplicationDetails) MarshalJSON

func (h HyperVReplicaBlueReplicationDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HyperVReplicaBlueReplicationDetails.

func (*HyperVReplicaBlueReplicationDetails) UnmarshalJSON

func (h *HyperVReplicaBlueReplicationDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HyperVReplicaBlueReplicationDetails.

type HyperVReplicaPolicyDetails

type HyperVReplicaPolicyDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// A value indicating the authentication type.
	AllowedAuthenticationType *int32 `json:"allowedAuthenticationType,omitempty"`

	// A value indicating the application consistent frequency.
	ApplicationConsistentSnapshotFrequencyInHours *int32 `json:"applicationConsistentSnapshotFrequencyInHours,omitempty"`

	// A value indicating whether compression has to be enabled.
	Compression *string `json:"compression,omitempty"`

	// A value indicating whether IR is online.
	InitialReplicationMethod *string `json:"initialReplicationMethod,omitempty"`

	// A value indicating the offline IR export path.
	OfflineReplicationExportPath *string `json:"offlineReplicationExportPath,omitempty"`

	// A value indicating the offline IR import path.
	OfflineReplicationImportPath *string `json:"offlineReplicationImportPath,omitempty"`

	// A value indicating the online IR start time.
	OnlineReplicationStartTime *string `json:"onlineReplicationStartTime,omitempty"`

	// A value indicating the number of recovery points.
	RecoveryPoints *int32 `json:"recoveryPoints,omitempty"`

	// A value indicating whether the VM has to be auto deleted. Supported Values: String.Empty, None, OnRecoveryCloud
	ReplicaDeletionOption *string `json:"replicaDeletionOption,omitempty"`

	// A value indicating the recovery HTTPS port.
	ReplicationPort *int32 `json:"replicationPort,omitempty"`
}

HyperVReplicaPolicyDetails - Hyper-V Replica Blue specific protection profile details.

func (*HyperVReplicaPolicyDetails) GetPolicyProviderSpecificDetails added in v0.2.0

func (h *HyperVReplicaPolicyDetails) GetPolicyProviderSpecificDetails() *PolicyProviderSpecificDetails

GetPolicyProviderSpecificDetails implements the PolicyProviderSpecificDetailsClassification interface for type HyperVReplicaPolicyDetails.

func (HyperVReplicaPolicyDetails) MarshalJSON

func (h HyperVReplicaPolicyDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HyperVReplicaPolicyDetails.

func (*HyperVReplicaPolicyDetails) UnmarshalJSON

func (h *HyperVReplicaPolicyDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HyperVReplicaPolicyDetails.

type HyperVReplicaPolicyInput

type HyperVReplicaPolicyInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// A value indicating the authentication type.
	AllowedAuthenticationType *int32 `json:"allowedAuthenticationType,omitempty"`

	// A value indicating the application consistent frequency.
	ApplicationConsistentSnapshotFrequencyInHours *int32 `json:"applicationConsistentSnapshotFrequencyInHours,omitempty"`

	// A value indicating whether compression has to be enabled.
	Compression *string `json:"compression,omitempty"`

	// A value indicating whether IR is online.
	InitialReplicationMethod *string `json:"initialReplicationMethod,omitempty"`

	// A value indicating the offline IR export path.
	OfflineReplicationExportPath *string `json:"offlineReplicationExportPath,omitempty"`

	// A value indicating the offline IR import path.
	OfflineReplicationImportPath *string `json:"offlineReplicationImportPath,omitempty"`

	// A value indicating the online IR start time.
	OnlineReplicationStartTime *string `json:"onlineReplicationStartTime,omitempty"`

	// A value indicating the number of recovery points.
	RecoveryPoints *int32 `json:"recoveryPoints,omitempty"`

	// A value indicating whether the VM has to be auto deleted.
	ReplicaDeletion *string `json:"replicaDeletion,omitempty"`

	// A value indicating the recovery HTTPS port.
	ReplicationPort *int32 `json:"replicationPort,omitempty"`
}

HyperVReplicaPolicyInput - Hyper-V Replica specific policy Input.

func (*HyperVReplicaPolicyInput) GetHyperVReplicaPolicyInput

func (h *HyperVReplicaPolicyInput) GetHyperVReplicaPolicyInput() *HyperVReplicaPolicyInput

GetHyperVReplicaPolicyInput implements the HyperVReplicaPolicyInputClassification interface for type HyperVReplicaPolicyInput.

func (*HyperVReplicaPolicyInput) GetPolicyProviderSpecificInput added in v0.2.0

func (h *HyperVReplicaPolicyInput) GetPolicyProviderSpecificInput() *PolicyProviderSpecificInput

GetPolicyProviderSpecificInput implements the PolicyProviderSpecificInputClassification interface for type HyperVReplicaPolicyInput.

func (HyperVReplicaPolicyInput) MarshalJSON

func (h HyperVReplicaPolicyInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HyperVReplicaPolicyInput.

func (*HyperVReplicaPolicyInput) UnmarshalJSON

func (h *HyperVReplicaPolicyInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HyperVReplicaPolicyInput.

type HyperVReplicaPolicyInputClassification

type HyperVReplicaPolicyInputClassification interface {
	PolicyProviderSpecificInputClassification
	// GetHyperVReplicaPolicyInput returns the HyperVReplicaPolicyInput content of the underlying type.
	GetHyperVReplicaPolicyInput() *HyperVReplicaPolicyInput
}

HyperVReplicaPolicyInputClassification provides polymorphic access to related types. Call the interface's GetHyperVReplicaPolicyInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *HyperVReplicaBluePolicyInput, *HyperVReplicaPolicyInput

type HyperVReplicaReplicationDetails

type HyperVReplicaReplicationDetails struct {
	// REQUIRED; Gets the Instance type.
	InstanceType *string `json:"instanceType,omitempty"`

	// Initial replication details.
	InitialReplicationDetails *InitialReplicationDetails `json:"initialReplicationDetails,omitempty"`

	// The Last replication time.
	LastReplicatedTime *time.Time `json:"lastReplicatedTime,omitempty"`

	// VM disk details.
	VMDiskDetails []*DiskDetails `json:"vMDiskDetails,omitempty"`

	// The virtual machine Id.
	VMID *string `json:"vmId,omitempty"`

	// The PE Network details.
	VMNics []*VMNicDetails `json:"vmNics,omitempty"`

	// The protection state for the vm.
	VMProtectionState *string `json:"vmProtectionState,omitempty"`

	// The protection state description for the vm.
	VMProtectionStateDescription *string `json:"vmProtectionStateDescription,omitempty"`
}

HyperVReplicaReplicationDetails - HyperV replica 2012 replication details.

func (*HyperVReplicaReplicationDetails) GetReplicationProviderSpecificSettings added in v0.2.0

func (h *HyperVReplicaReplicationDetails) GetReplicationProviderSpecificSettings() *ReplicationProviderSpecificSettings

GetReplicationProviderSpecificSettings implements the ReplicationProviderSpecificSettingsClassification interface for type HyperVReplicaReplicationDetails.

func (HyperVReplicaReplicationDetails) MarshalJSON

func (h HyperVReplicaReplicationDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HyperVReplicaReplicationDetails.

func (*HyperVReplicaReplicationDetails) UnmarshalJSON

func (h *HyperVReplicaReplicationDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HyperVReplicaReplicationDetails.

type HyperVSiteDetails

type HyperVSiteDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// The list of Hyper-V hosts associated with the fabric.
	HyperVHosts []*HyperVHostDetails `json:"hyperVHosts,omitempty"`
}

HyperVSiteDetails - HyperVSite fabric specific details.

func (*HyperVSiteDetails) GetFabricSpecificDetails added in v0.2.0

func (h *HyperVSiteDetails) GetFabricSpecificDetails() *FabricSpecificDetails

GetFabricSpecificDetails implements the FabricSpecificDetailsClassification interface for type HyperVSiteDetails.

func (HyperVSiteDetails) MarshalJSON

func (h HyperVSiteDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HyperVSiteDetails.

func (*HyperVSiteDetails) UnmarshalJSON

func (h *HyperVSiteDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HyperVSiteDetails.

type HyperVVirtualMachineDetails

type HyperVVirtualMachineDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// The Last successful failover time.
	DiskDetails []*DiskDetails `json:"diskDetails,omitempty"`

	// The id of the object in fabric.
	Generation *string `json:"generation,omitempty"`

	// A value indicating whether the VM has a fibre channel adapter attached. String value of SrsDataContract.PresenceStatus
	// enum.
	HasFibreChannelAdapter *PresenceStatus `json:"hasFibreChannelAdapter,omitempty"`

	// A value indicating whether the VM has a physical disk attached. String value of SrsDataContract.PresenceStatus enum.
	HasPhysicalDisk *PresenceStatus `json:"hasPhysicalDisk,omitempty"`

	// A value indicating whether the VM has a shared VHD attached. String value of SrsDataContract.PresenceStatus enum.
	HasSharedVhd *PresenceStatus `json:"hasSharedVhd,omitempty"`

	// The Id of the hyper-v host in fabric.
	HyperVHostID *string `json:"hyperVHostId,omitempty"`

	// The Last replication time.
	OSDetails *OSDetails `json:"osDetails,omitempty"`

	// The source id of the object.
	SourceItemID *string `json:"sourceItemId,omitempty"`
}

HyperVVirtualMachineDetails - Single Host fabric provider specific VM settings.

func (*HyperVVirtualMachineDetails) GetConfigurationSettings added in v0.2.0

func (h *HyperVVirtualMachineDetails) GetConfigurationSettings() *ConfigurationSettings

GetConfigurationSettings implements the ConfigurationSettingsClassification interface for type HyperVVirtualMachineDetails.

func (*HyperVVirtualMachineDetails) GetHyperVVirtualMachineDetails

func (h *HyperVVirtualMachineDetails) GetHyperVVirtualMachineDetails() *HyperVVirtualMachineDetails

GetHyperVVirtualMachineDetails implements the HyperVVirtualMachineDetailsClassification interface for type HyperVVirtualMachineDetails.

func (HyperVVirtualMachineDetails) MarshalJSON

func (h HyperVVirtualMachineDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type HyperVVirtualMachineDetails.

func (*HyperVVirtualMachineDetails) UnmarshalJSON

func (h *HyperVVirtualMachineDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type HyperVVirtualMachineDetails.

type HyperVVirtualMachineDetailsClassification

type HyperVVirtualMachineDetailsClassification interface {
	ConfigurationSettingsClassification
	// GetHyperVVirtualMachineDetails returns the HyperVVirtualMachineDetails content of the underlying type.
	GetHyperVVirtualMachineDetails() *HyperVVirtualMachineDetails
}

HyperVVirtualMachineDetailsClassification provides polymorphic access to related types. Call the interface's GetHyperVVirtualMachineDetails() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *HyperVVirtualMachineDetails, *VmmVirtualMachineDetails

type IPConfigDetails

type IPConfigDetails struct {
	IPAddressType                   *string   `json:"ipAddressType,omitempty"`
	IsPrimary                       *bool     `json:"isPrimary,omitempty"`
	IsSeletedForFailover            *bool     `json:"isSeletedForFailover,omitempty"`
	Name                            *string   `json:"name,omitempty"`
	RecoveryIPAddressType           *string   `json:"recoveryIPAddressType,omitempty"`
	RecoveryLBBackendAddressPoolIDs []*string `json:"recoveryLBBackendAddressPoolIds,omitempty"`
	RecoveryPublicIPAddressID       *string   `json:"recoveryPublicIPAddressId,omitempty"`
	RecoveryStaticIPAddress         *string   `json:"recoveryStaticIPAddress,omitempty"`
	RecoverySubnetName              *string   `json:"recoverySubnetName,omitempty"`
	StaticIPAddress                 *string   `json:"staticIPAddress,omitempty"`
	SubnetName                      *string   `json:"subnetName,omitempty"`
	TfoLBBackendAddressPoolIDs      []*string `json:"tfoLBBackendAddressPoolIds,omitempty"`
	TfoPublicIPAddressID            *string   `json:"tfoPublicIPAddressId,omitempty"`
	TfoStaticIPAddress              *string   `json:"tfoStaticIPAddress,omitempty"`
	TfoSubnetName                   *string   `json:"tfoSubnetName,omitempty"`
}

func (IPConfigDetails) MarshalJSON

func (i IPConfigDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type IPConfigDetails.

func (*IPConfigDetails) UnmarshalJSON added in v1.1.0

func (i *IPConfigDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type IPConfigDetails.

type IPConfigInputDetails

type IPConfigInputDetails struct {
	IPConfigName                    *string   `json:"ipConfigName,omitempty"`
	IsPrimary                       *bool     `json:"isPrimary,omitempty"`
	IsSeletedForFailover            *bool     `json:"isSeletedForFailover,omitempty"`
	RecoveryLBBackendAddressPoolIDs []*string `json:"recoveryLBBackendAddressPoolIds,omitempty"`
	RecoveryPublicIPAddressID       *string   `json:"recoveryPublicIPAddressId,omitempty"`
	RecoveryStaticIPAddress         *string   `json:"recoveryStaticIPAddress,omitempty"`
	RecoverySubnetName              *string   `json:"recoverySubnetName,omitempty"`
	TfoLBBackendAddressPoolIDs      []*string `json:"tfoLBBackendAddressPoolIds,omitempty"`
	TfoPublicIPAddressID            *string   `json:"tfoPublicIPAddressId,omitempty"`
	TfoStaticIPAddress              *string   `json:"tfoStaticIPAddress,omitempty"`
	TfoSubnetName                   *string   `json:"tfoSubnetName,omitempty"`
}

func (IPConfigInputDetails) MarshalJSON

func (i IPConfigInputDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type IPConfigInputDetails.

func (*IPConfigInputDetails) UnmarshalJSON added in v1.1.0

func (i *IPConfigInputDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type IPConfigInputDetails.

type IdentityProviderDetails

type IdentityProviderDetails struct {
	// The base authority for Azure Active Directory authentication.
	AADAuthority *string `json:"aadAuthority,omitempty"`

	// The application/client Id for the service principal with which the on-premise management/data plane components would communicate
	// with our Azure services.
	ApplicationID *string `json:"applicationId,omitempty"`

	// The intended Audience of the service principal with which the on-premise management/data plane components would communicate
	// with our Azure services.
	Audience *string `json:"audience,omitempty"`

	// The object Id of the service principal with which the on-premise management/data plane components would communicate with
	// our Azure services.
	ObjectID *string `json:"objectId,omitempty"`

	// The tenant Id for the service principal with which the on-premise management/data plane components would communicate with
	// our Azure services.
	TenantID *string `json:"tenantId,omitempty"`
}

IdentityProviderDetails - Identity provider details.

func (IdentityProviderDetails) MarshalJSON added in v1.1.0

func (i IdentityProviderDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type IdentityProviderDetails.

func (*IdentityProviderDetails) UnmarshalJSON added in v1.1.0

func (i *IdentityProviderDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type IdentityProviderDetails.

type IdentityProviderInput

type IdentityProviderInput struct {
	// REQUIRED; The base authority for Azure Active Directory authentication.
	AADAuthority *string `json:"aadAuthority,omitempty"`

	// REQUIRED; The application/client Id for the service principal with which the on-premise management/data plane components
	// would communicate with our Azure services.
	ApplicationID *string `json:"applicationId,omitempty"`

	// REQUIRED; The intended Audience of the service principal with which the on-premise management/data plane components would
	// communicate with our Azure services.
	Audience *string `json:"audience,omitempty"`

	// REQUIRED; The object Id of the service principal with which the on-premise management/data plane components would communicate
	// with our Azure services.
	ObjectID *string `json:"objectId,omitempty"`

	// REQUIRED; The tenant Id for the service principal with which the on-premise management/data plane components would communicate
	// with our Azure services.
	TenantID *string `json:"tenantId,omitempty"`
}

IdentityProviderInput - Identity provider input.

func (IdentityProviderInput) MarshalJSON added in v1.1.0

func (i IdentityProviderInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type IdentityProviderInput.

func (*IdentityProviderInput) UnmarshalJSON added in v1.1.0

func (i *IdentityProviderInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type IdentityProviderInput.

type InMageAgentDetails

type InMageAgentDetails struct {
	// Agent expiry date.
	AgentExpiryDate *time.Time `json:"agentExpiryDate,omitempty"`

	// A value indicating whether installed agent needs to be updated.
	AgentUpdateStatus *string `json:"agentUpdateStatus,omitempty"`

	// The agent version.
	AgentVersion *string `json:"agentVersion,omitempty"`

	// A value indicating whether reboot is required after update is applied.
	PostUpdateRebootStatus *string `json:"postUpdateRebootStatus,omitempty"`
}

InMageAgentDetails - The details of the InMage agent.

func (InMageAgentDetails) MarshalJSON

func (i InMageAgentDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageAgentDetails.

func (*InMageAgentDetails) UnmarshalJSON

func (i *InMageAgentDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageAgentDetails.

type InMageAzureV2ApplyRecoveryPointInput

type InMageAzureV2ApplyRecoveryPointInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

InMageAzureV2ApplyRecoveryPointInput - ApplyRecoveryPoint input specific to InMageAzureV2 provider.

func (*InMageAzureV2ApplyRecoveryPointInput) GetApplyRecoveryPointProviderSpecificInput added in v0.2.0

func (i *InMageAzureV2ApplyRecoveryPointInput) GetApplyRecoveryPointProviderSpecificInput() *ApplyRecoveryPointProviderSpecificInput

GetApplyRecoveryPointProviderSpecificInput implements the ApplyRecoveryPointProviderSpecificInputClassification interface for type InMageAzureV2ApplyRecoveryPointInput.

func (InMageAzureV2ApplyRecoveryPointInput) MarshalJSON

func (i InMageAzureV2ApplyRecoveryPointInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageAzureV2ApplyRecoveryPointInput.

func (*InMageAzureV2ApplyRecoveryPointInput) UnmarshalJSON added in v0.2.0

func (i *InMageAzureV2ApplyRecoveryPointInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageAzureV2ApplyRecoveryPointInput.

type InMageAzureV2DiskInputDetails

type InMageAzureV2DiskInputDetails struct {
	// The DiskEncryptionSet ARM ID.
	DiskEncryptionSetID *string `json:"diskEncryptionSetId,omitempty"`

	// The DiskId.
	DiskID *string `json:"diskId,omitempty"`

	// The DiskType.
	DiskType *DiskAccountType `json:"diskType,omitempty"`

	// The LogStorageAccountId.
	LogStorageAccountID *string `json:"logStorageAccountId,omitempty"`
}

InMageAzureV2DiskInputDetails - Disk input details.

func (InMageAzureV2DiskInputDetails) MarshalJSON added in v1.1.0

func (i InMageAzureV2DiskInputDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageAzureV2DiskInputDetails.

func (*InMageAzureV2DiskInputDetails) UnmarshalJSON added in v1.1.0

func (i *InMageAzureV2DiskInputDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageAzureV2DiskInputDetails.

type InMageAzureV2EnableProtectionInput

type InMageAzureV2EnableProtectionInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The DiskEncryptionSet ARM Id.
	DiskEncryptionSetID *string `json:"diskEncryptionSetId,omitempty"`

	// The DiskType.
	DiskType *DiskAccountType `json:"diskType,omitempty"`

	// The disks to include list.
	DisksToInclude []*InMageAzureV2DiskInputDetails `json:"disksToInclude,omitempty"`

	// The selected option to enable RDP\SSH on target VM after failover. String value of SrsDataContract.EnableRDPOnTargetOption
	// enum.
	EnableRdpOnTargetOption *string `json:"enableRdpOnTargetOption,omitempty"`

	// License type.
	LicenseType *LicenseType `json:"licenseType,omitempty"`

	// The storage account to be used for logging during replication.
	LogStorageAccountID *string `json:"logStorageAccountId,omitempty"`

	// The Master target Id.
	MasterTargetID *string `json:"masterTargetId,omitempty"`

	// The multi VM group Id.
	MultiVMGroupID *string `json:"multiVmGroupId,omitempty"`

	// The multi VM group name.
	MultiVMGroupName *string `json:"multiVmGroupName,omitempty"`

	// The Process Server Id.
	ProcessServerID *string `json:"processServerId,omitempty"`

	// The CS account Id.
	RunAsAccountID *string `json:"runAsAccountId,omitempty"`

	// The SQL Server license type.
	SQLServerLicenseType *SQLServerLicenseType `json:"sqlServerLicenseType,omitempty"`

	// The tags for the seed managed disks.
	SeedManagedDiskTags map[string]*string `json:"seedManagedDiskTags,omitempty"`

	// The storage account Id.
	StorageAccountID *string `json:"storageAccountId,omitempty"`

	// The target availability set ARM Id for resource manager deployment.
	TargetAvailabilitySetID *string `json:"targetAvailabilitySetId,omitempty"`

	// The target availability zone.
	TargetAvailabilityZone *string `json:"targetAvailabilityZone,omitempty"`

	// The selected target Azure network Id.
	TargetAzureNetworkID *string `json:"targetAzureNetworkId,omitempty"`

	// The selected target Azure subnet Id.
	TargetAzureSubnetID *string `json:"targetAzureSubnetId,omitempty"`

	// The Id of the target resource group (for classic deployment) in which the failover VM is to be created.
	TargetAzureV1ResourceGroupID *string `json:"targetAzureV1ResourceGroupId,omitempty"`

	// The Id of the target resource group (for resource manager deployment) in which the failover VM is to be created.
	TargetAzureV2ResourceGroupID *string `json:"targetAzureV2ResourceGroupId,omitempty"`

	// The target azure VM Name.
	TargetAzureVMName *string `json:"targetAzureVmName,omitempty"`

	// The tags for the target managed disks.
	TargetManagedDiskTags map[string]*string `json:"targetManagedDiskTags,omitempty"`

	// The tags for the target NICs.
	TargetNicTags map[string]*string `json:"targetNicTags,omitempty"`

	// The proximity placement group ARM Id.
	TargetProximityPlacementGroupID *string `json:"targetProximityPlacementGroupId,omitempty"`

	// The target VM size.
	TargetVMSize *string `json:"targetVmSize,omitempty"`

	// The target VM tags.
	TargetVMTags map[string]*string `json:"targetVmTags,omitempty"`
}

InMageAzureV2EnableProtectionInput - VMware Azure specific enable protection input.

func (*InMageAzureV2EnableProtectionInput) GetEnableProtectionProviderSpecificInput added in v0.2.0

func (i *InMageAzureV2EnableProtectionInput) GetEnableProtectionProviderSpecificInput() *EnableProtectionProviderSpecificInput

GetEnableProtectionProviderSpecificInput implements the EnableProtectionProviderSpecificInputClassification interface for type InMageAzureV2EnableProtectionInput.

func (InMageAzureV2EnableProtectionInput) MarshalJSON

func (i InMageAzureV2EnableProtectionInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageAzureV2EnableProtectionInput.

func (*InMageAzureV2EnableProtectionInput) UnmarshalJSON

func (i *InMageAzureV2EnableProtectionInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageAzureV2EnableProtectionInput.

type InMageAzureV2EventDetails

type InMageAzureV2EventDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// InMage Event Category.
	Category *string `json:"category,omitempty"`

	// InMage Event Component.
	Component *string `json:"component,omitempty"`

	// Corrective Action string for the event.
	CorrectiveAction *string `json:"correctiveAction,omitempty"`

	// InMage Event Details.
	Details *string `json:"details,omitempty"`

	// InMage Event type. Takes one of the values of InMageDataContract.InMageMonitoringEventType.
	EventType *string `json:"eventType,omitempty"`

	// VMware Site name.
	SiteName *string `json:"siteName,omitempty"`

	// InMage Event Summary.
	Summary *string `json:"summary,omitempty"`
}

InMageAzureV2EventDetails - Model class for event details of a VMwareAzureV2 event.

func (*InMageAzureV2EventDetails) GetEventProviderSpecificDetails added in v0.2.0

func (i *InMageAzureV2EventDetails) GetEventProviderSpecificDetails() *EventProviderSpecificDetails

GetEventProviderSpecificDetails implements the EventProviderSpecificDetailsClassification interface for type InMageAzureV2EventDetails.

func (InMageAzureV2EventDetails) MarshalJSON

func (i InMageAzureV2EventDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageAzureV2EventDetails.

func (*InMageAzureV2EventDetails) UnmarshalJSON

func (i *InMageAzureV2EventDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageAzureV2EventDetails.

type InMageAzureV2ManagedDiskDetails

type InMageAzureV2ManagedDiskDetails struct {
	// The DiskEncryptionSet ARM ID.
	DiskEncryptionSetID *string `json:"diskEncryptionSetId,omitempty"`

	// The disk id.
	DiskID *string `json:"diskId,omitempty"`

	// The replica disk type.
	ReplicaDiskType *string `json:"replicaDiskType,omitempty"`

	// Seed managed disk Id.
	SeedManagedDiskID *string `json:"seedManagedDiskId,omitempty"`

	// The target disk name.
	TargetDiskName *string `json:"targetDiskName,omitempty"`
}

InMageAzureV2ManagedDiskDetails - InMageAzureV2 Managed disk details.

func (InMageAzureV2ManagedDiskDetails) MarshalJSON added in v1.1.0

func (i InMageAzureV2ManagedDiskDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageAzureV2ManagedDiskDetails.

func (*InMageAzureV2ManagedDiskDetails) UnmarshalJSON added in v1.1.0

func (i *InMageAzureV2ManagedDiskDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageAzureV2ManagedDiskDetails.

type InMageAzureV2PolicyDetails

type InMageAzureV2PolicyDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// The app consistent snapshot frequency in minutes.
	AppConsistentFrequencyInMinutes *int32 `json:"appConsistentFrequencyInMinutes,omitempty"`

	// The crash consistent snapshot frequency in minutes.
	CrashConsistentFrequencyInMinutes *int32 `json:"crashConsistentFrequencyInMinutes,omitempty"`

	// A value indicating whether multi-VM sync has to be enabled.
	MultiVMSyncStatus *string `json:"multiVmSyncStatus,omitempty"`

	// The duration in minutes until which the recovery points need to be stored.
	RecoveryPointHistory *int32 `json:"recoveryPointHistory,omitempty"`

	// The recovery point threshold in minutes.
	RecoveryPointThresholdInMinutes *int32 `json:"recoveryPointThresholdInMinutes,omitempty"`
}

InMageAzureV2PolicyDetails - InMage Azure v2 specific protection profile details.

func (*InMageAzureV2PolicyDetails) GetPolicyProviderSpecificDetails added in v0.2.0

func (i *InMageAzureV2PolicyDetails) GetPolicyProviderSpecificDetails() *PolicyProviderSpecificDetails

GetPolicyProviderSpecificDetails implements the PolicyProviderSpecificDetailsClassification interface for type InMageAzureV2PolicyDetails.

func (InMageAzureV2PolicyDetails) MarshalJSON

func (i InMageAzureV2PolicyDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageAzureV2PolicyDetails.

func (*InMageAzureV2PolicyDetails) UnmarshalJSON

func (i *InMageAzureV2PolicyDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageAzureV2PolicyDetails.

type InMageAzureV2PolicyInput

type InMageAzureV2PolicyInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; A value indicating whether multi-VM sync has to be enabled. Value should be 'Enabled' or 'Disabled'.
	MultiVMSyncStatus *SetMultiVMSyncStatus `json:"multiVmSyncStatus,omitempty"`

	// The app consistent snapshot frequency (in minutes).
	AppConsistentFrequencyInMinutes *int32 `json:"appConsistentFrequencyInMinutes,omitempty"`

	// The crash consistent snapshot frequency (in minutes).
	CrashConsistentFrequencyInMinutes *int32 `json:"crashConsistentFrequencyInMinutes,omitempty"`

	// The duration in minutes until which the recovery points need to be stored.
	RecoveryPointHistory *int32 `json:"recoveryPointHistory,omitempty"`

	// The recovery point threshold in minutes.
	RecoveryPointThresholdInMinutes *int32 `json:"recoveryPointThresholdInMinutes,omitempty"`
}

InMageAzureV2PolicyInput - VMWare Azure specific policy Input.

func (*InMageAzureV2PolicyInput) GetPolicyProviderSpecificInput added in v0.2.0

func (i *InMageAzureV2PolicyInput) GetPolicyProviderSpecificInput() *PolicyProviderSpecificInput

GetPolicyProviderSpecificInput implements the PolicyProviderSpecificInputClassification interface for type InMageAzureV2PolicyInput.

func (InMageAzureV2PolicyInput) MarshalJSON

func (i InMageAzureV2PolicyInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageAzureV2PolicyInput.

func (*InMageAzureV2PolicyInput) UnmarshalJSON

func (i *InMageAzureV2PolicyInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageAzureV2PolicyInput.

type InMageAzureV2ProtectedDiskDetails

type InMageAzureV2ProtectedDiskDetails struct {
	// The disk capacity in bytes.
	DiskCapacityInBytes *int64 `json:"diskCapacityInBytes,omitempty"`

	// The disk id.
	DiskID *string `json:"diskId,omitempty"`

	// The disk name.
	DiskName *string `json:"diskName,omitempty"`

	// A value indicating whether disk is resized.
	DiskResized *string `json:"diskResized,omitempty"`

	// The disk file system capacity in bytes.
	FileSystemCapacityInBytes *int64 `json:"fileSystemCapacityInBytes,omitempty"`

	// The health error code for the disk.
	HealthErrorCode *string `json:"healthErrorCode,omitempty"`

	// The last RPO calculated time.
	LastRpoCalculatedTime *time.Time `json:"lastRpoCalculatedTime,omitempty"`

	// The Progress Health.
	ProgressHealth *string `json:"progressHealth,omitempty"`

	// The Progress Status.
	ProgressStatus *string `json:"progressStatus,omitempty"`

	// The protection stage.
	ProtectionStage *string `json:"protectionStage,omitempty"`

	// The PS data transit in MB.
	PsDataInMegaBytes *float64 `json:"psDataInMegaBytes,omitempty"`

	// The resync duration in seconds.
	ResyncDurationInSeconds *int64 `json:"resyncDurationInSeconds,omitempty"`

	// The resync last 15 minutes transferred bytes.
	ResyncLast15MinutesTransferredBytes *int64 `json:"resyncLast15MinutesTransferredBytes,omitempty"`

	// The last data transfer time in UTC.
	ResyncLastDataTransferTimeUTC *time.Time `json:"resyncLastDataTransferTimeUTC,omitempty"`

	// The resync processed bytes.
	ResyncProcessedBytes *int64 `json:"resyncProcessedBytes,omitempty"`

	// The resync progress percentage.
	ResyncProgressPercentage *int32 `json:"resyncProgressPercentage,omitempty"`

	// A value indicating whether resync is required for this disk.
	ResyncRequired *string `json:"resyncRequired,omitempty"`

	// The resync start time.
	ResyncStartTime *time.Time `json:"resyncStartTime,omitempty"`

	// The resync total transferred bytes.
	ResyncTotalTransferredBytes *int64 `json:"resyncTotalTransferredBytes,omitempty"`

	// The RPO in seconds.
	RpoInSeconds *int64 `json:"rpoInSeconds,omitempty"`

	// The seconds to take for switch provider.
	SecondsToTakeSwitchProvider *int64 `json:"secondsToTakeSwitchProvider,omitempty"`

	// The source data transit in MB.
	SourceDataInMegaBytes *float64 `json:"sourceDataInMegaBytes,omitempty"`

	// The target data transit in MB.
	TargetDataInMegaBytes *float64 `json:"targetDataInMegaBytes,omitempty"`
}

InMageAzureV2ProtectedDiskDetails - InMageAzureV2 protected disk details.

func (InMageAzureV2ProtectedDiskDetails) MarshalJSON

func (i InMageAzureV2ProtectedDiskDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageAzureV2ProtectedDiskDetails.

func (*InMageAzureV2ProtectedDiskDetails) UnmarshalJSON

func (i *InMageAzureV2ProtectedDiskDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageAzureV2ProtectedDiskDetails.

type InMageAzureV2RecoveryPointDetails

type InMageAzureV2RecoveryPointDetails struct {
	// REQUIRED; Gets the provider type.
	InstanceType *string `json:"instanceType,omitempty"`

	// A value indicating whether the recovery point is multi VM consistent.
	IsMultiVMSyncPoint *string `json:"isMultiVmSyncPoint,omitempty"`
}

InMageAzureV2RecoveryPointDetails - InMage Azure V2 provider specific recovery point details.

func (*InMageAzureV2RecoveryPointDetails) GetProviderSpecificRecoveryPointDetails added in v0.2.0

func (i *InMageAzureV2RecoveryPointDetails) GetProviderSpecificRecoveryPointDetails() *ProviderSpecificRecoveryPointDetails

GetProviderSpecificRecoveryPointDetails implements the ProviderSpecificRecoveryPointDetailsClassification interface for type InMageAzureV2RecoveryPointDetails.

func (InMageAzureV2RecoveryPointDetails) MarshalJSON

func (i InMageAzureV2RecoveryPointDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageAzureV2RecoveryPointDetails.

func (*InMageAzureV2RecoveryPointDetails) UnmarshalJSON

func (i *InMageAzureV2RecoveryPointDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageAzureV2RecoveryPointDetails.

type InMageAzureV2ReplicationDetails

type InMageAzureV2ReplicationDetails struct {
	// REQUIRED; Gets the Instance type.
	InstanceType *string `json:"instanceType,omitempty"`

	// Agent expiry date.
	AgentExpiryDate *time.Time `json:"agentExpiryDate,omitempty"`

	// The agent version.
	AgentVersion *string `json:"agentVersion,omitempty"`

	// Azure VM Disk details.
	AzureVMDiskDetails []*AzureVMDiskDetails `json:"azureVMDiskDetails,omitempty"`

	// The target generation for this protected item.
	AzureVMGeneration *string `json:"azureVmGeneration,omitempty"`

	// The compressed data change rate in MB.
	CompressedDataRateInMB *float64 `json:"compressedDataRateInMB,omitempty"`

	// The datastores of the on-premise machine. Value can be list of strings that contain datastore names.
	Datastores []*string `json:"datastores,omitempty"`

	// A value indicating the discovery type of the machine. Value can be vCenter or physical.
	DiscoveryType *string `json:"discoveryType,omitempty"`

	// A value indicating whether any disk is resized for this VM.
	DiskResized *string `json:"diskResized,omitempty"`

	// The selected option to enable RDP\SSH on target vm after failover. String value of SrsDataContract.EnableRDPOnTargetOption
	// enum.
	EnableRdpOnTargetOption *string `json:"enableRdpOnTargetOption,omitempty"`

	// The firmware type of this protected item.
	FirmwareType *string `json:"firmwareType,omitempty"`

	// The source IP address.
	IPAddress *string `json:"ipAddress,omitempty"`

	// The infrastructure VM Id.
	InfrastructureVMID *string `json:"infrastructureVmId,omitempty"`

	// A value indicating whether additional IR stats are available or not.
	IsAdditionalStatsAvailable *bool `json:"isAdditionalStatsAvailable,omitempty"`

	// A value indicating whether installed agent needs to be updated.
	IsAgentUpdateRequired *string `json:"isAgentUpdateRequired,omitempty"`

	// A value indicating whether the source server requires a restart after update.
	IsRebootAfterUpdateRequired *string `json:"isRebootAfterUpdateRequired,omitempty"`

	// The last heartbeat received from the source server.
	LastHeartbeat *time.Time `json:"lastHeartbeat,omitempty"`

	// The last RPO calculated time.
	LastRpoCalculatedTime *time.Time `json:"lastRpoCalculatedTime,omitempty"`

	// The last update time received from on-prem components.
	LastUpdateReceivedTime *time.Time `json:"lastUpdateReceivedTime,omitempty"`

	// License Type of the VM to be used.
	LicenseType *string `json:"licenseType,omitempty"`

	// The master target Id.
	MasterTargetID *string `json:"masterTargetId,omitempty"`

	// The multi vm group Id.
	MultiVMGroupID *string `json:"multiVmGroupId,omitempty"`

	// The multi vm group name.
	MultiVMGroupName *string `json:"multiVmGroupName,omitempty"`

	// A value indicating whether multi vm sync is enabled or disabled.
	MultiVMSyncStatus *string `json:"multiVmSyncStatus,omitempty"`

	// The id of the disk containing the OS.
	OSDiskID *string `json:"osDiskId,omitempty"`

	// The type of the OS on the VM.
	OSType *string `json:"osType,omitempty"`

	// The OS Version of the protected item.
	OSVersion *string `json:"osVersion,omitempty"`

	// The process server Id.
	ProcessServerID *string `json:"processServerId,omitempty"`

	// The process server name.
	ProcessServerName *string `json:"processServerName,omitempty"`

	// The list of protected disks.
	ProtectedDisks []*InMageAzureV2ProtectedDiskDetails `json:"protectedDisks,omitempty"`

	// The list of protected managed disks.
	ProtectedManagedDisks []*InMageAzureV2ManagedDiskDetails `json:"protectedManagedDisks,omitempty"`

	// The protection stage.
	ProtectionStage *string `json:"protectionStage,omitempty"`

	// The recovery availability set Id.
	RecoveryAvailabilitySetID *string `json:"recoveryAvailabilitySetId,omitempty"`

	// The ARM id of the log storage account used for replication. This will be set to null if no log storage account was provided
	// during enable protection.
	RecoveryAzureLogStorageAccountID *string `json:"recoveryAzureLogStorageAccountId,omitempty"`

	// The target resource group Id.
	RecoveryAzureResourceGroupID *string `json:"recoveryAzureResourceGroupId,omitempty"`

	// The recovery Azure storage account.
	RecoveryAzureStorageAccount *string `json:"recoveryAzureStorageAccount,omitempty"`

	// Recovery Azure given name.
	RecoveryAzureVMName *string `json:"recoveryAzureVMName,omitempty"`

	// The Recovery Azure VM size.
	RecoveryAzureVMSize *string `json:"recoveryAzureVMSize,omitempty"`

	// The replica id of the protected item.
	ReplicaID *string `json:"replicaId,omitempty"`

	// The resync progress percentage.
	ResyncProgressPercentage *int32 `json:"resyncProgressPercentage,omitempty"`

	// The RPO in seconds.
	RpoInSeconds *int64 `json:"rpoInSeconds,omitempty"`

	// The SQL Server license type.
	SQLServerLicenseType *string `json:"sqlServerLicenseType,omitempty"`

	// The tags for the seed managed disks.
	SeedManagedDiskTags map[string]*string `json:"seedManagedDiskTags,omitempty"`

	// The selected recovery azure network Id.
	SelectedRecoveryAzureNetworkID *string `json:"selectedRecoveryAzureNetworkId,omitempty"`

	// The selected source nic Id which will be used as the primary nic during failover.
	SelectedSourceNicID *string `json:"selectedSourceNicId,omitempty"`

	// The test failover virtual network.
	SelectedTfoAzureNetworkID *string `json:"selectedTfoAzureNetworkId,omitempty"`

	// The CPU count of the VM on the primary side.
	SourceVMCPUCount *int32 `json:"sourceVmCpuCount,omitempty"`

	// The RAM size of the VM on the primary side.
	SourceVMRAMSizeInMB *int32 `json:"sourceVmRamSizeInMB,omitempty"`

	// The switch provider blocking error information.
	SwitchProviderBlockingErrorDetails []*InMageAzureV2SwitchProviderBlockingErrorDetails `json:"switchProviderBlockingErrorDetails,omitempty"`

	// The switch provider blocking error information.
	SwitchProviderDetails *InMageAzureV2SwitchProviderDetails `json:"switchProviderDetails,omitempty"`

	// The target availability zone.
	TargetAvailabilityZone *string `json:"targetAvailabilityZone,omitempty"`

	// The tags for the target managed disks.
	TargetManagedDiskTags map[string]*string `json:"targetManagedDiskTags,omitempty"`

	// The tags for the target NICs.
	TargetNicTags map[string]*string `json:"targetNicTags,omitempty"`

	// The target proximity placement group Id.
	TargetProximityPlacementGroupID *string `json:"targetProximityPlacementGroupId,omitempty"`

	// The ARM Id of the target Azure VM. This value will be null until the VM is failed over. Only after failure it will be populated
	// with the ARM Id of the Azure VM.
	TargetVMID *string `json:"targetVmId,omitempty"`

	// The target VM tags.
	TargetVMTags map[string]*string `json:"targetVmTags,omitempty"`

	// The total transferred data in bytes.
	TotalDataTransferred *int64 `json:"totalDataTransferred,omitempty"`

	// The progress health.
	TotalProgressHealth *string `json:"totalProgressHealth,omitempty"`

	// The uncompressed data change rate in MB.
	UncompressedDataRateInMB *float64 `json:"uncompressedDataRateInMB,omitempty"`

	// A value indicating whether managed disks should be used during failover.
	UseManagedDisks *string `json:"useManagedDisks,omitempty"`

	// The vCenter infrastructure Id.
	VCenterInfrastructureID *string `json:"vCenterInfrastructureId,omitempty"`

	// The virtual machine Id.
	VMID *string `json:"vmId,omitempty"`

	// The PE Network details.
	VMNics []*VMNicDetails `json:"vmNics,omitempty"`

	// The protection state for the vm.
	VMProtectionState *string `json:"vmProtectionState,omitempty"`

	// The protection state description for the vm.
	VMProtectionStateDescription *string `json:"vmProtectionStateDescription,omitempty"`

	// The validation errors of the on-premise machine Value can be list of validation errors.
	ValidationErrors []*HealthError `json:"validationErrors,omitempty"`

	// The OS disk VHD name.
	VhdName *string `json:"vhdName,omitempty"`

	// READ-ONLY; The last recovery point received time.
	LastRecoveryPointReceived *time.Time `json:"lastRecoveryPointReceived,omitempty" azure:"ro"`
}

InMageAzureV2ReplicationDetails - InMageAzureV2 provider specific settings.

func (*InMageAzureV2ReplicationDetails) GetReplicationProviderSpecificSettings added in v0.2.0

func (i *InMageAzureV2ReplicationDetails) GetReplicationProviderSpecificSettings() *ReplicationProviderSpecificSettings

GetReplicationProviderSpecificSettings implements the ReplicationProviderSpecificSettingsClassification interface for type InMageAzureV2ReplicationDetails.

func (InMageAzureV2ReplicationDetails) MarshalJSON

func (i InMageAzureV2ReplicationDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageAzureV2ReplicationDetails.

func (*InMageAzureV2ReplicationDetails) UnmarshalJSON

func (i *InMageAzureV2ReplicationDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageAzureV2ReplicationDetails.

type InMageAzureV2ReprotectInput

type InMageAzureV2ReprotectInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The disks to include list.
	DisksToInclude []*string `json:"disksToInclude,omitempty"`

	// The storage account to be used for logging during replication.
	LogStorageAccountID *string `json:"logStorageAccountId,omitempty"`

	// The Master target Id.
	MasterTargetID *string `json:"masterTargetId,omitempty"`

	// The Policy Id.
	PolicyID *string `json:"policyId,omitempty"`

	// The Process Server Id.
	ProcessServerID *string `json:"processServerId,omitempty"`

	// The CS account Id.
	RunAsAccountID *string `json:"runAsAccountId,omitempty"`

	// The storage account id.
	StorageAccountID *string `json:"storageAccountId,omitempty"`
}

InMageAzureV2ReprotectInput - InMageAzureV2 specific provider input.

func (*InMageAzureV2ReprotectInput) GetReverseReplicationProviderSpecificInput added in v0.2.0

func (i *InMageAzureV2ReprotectInput) GetReverseReplicationProviderSpecificInput() *ReverseReplicationProviderSpecificInput

GetReverseReplicationProviderSpecificInput implements the ReverseReplicationProviderSpecificInputClassification interface for type InMageAzureV2ReprotectInput.

func (InMageAzureV2ReprotectInput) MarshalJSON

func (i InMageAzureV2ReprotectInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageAzureV2ReprotectInput.

func (*InMageAzureV2ReprotectInput) UnmarshalJSON

func (i *InMageAzureV2ReprotectInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageAzureV2ReprotectInput.

type InMageAzureV2SwitchProviderBlockingErrorDetails added in v0.2.0

type InMageAzureV2SwitchProviderBlockingErrorDetails struct {
	// READ-ONLY; The error code.
	ErrorCode *string `json:"errorCode,omitempty" azure:"ro"`

	// READ-ONLY; The error message.
	ErrorMessage *string `json:"errorMessage,omitempty" azure:"ro"`

	// READ-ONLY; The error message parameters.
	ErrorMessageParameters map[string]*string `json:"errorMessageParameters,omitempty" azure:"ro"`

	// READ-ONLY; The error tags.
	ErrorTags map[string]*string `json:"errorTags,omitempty" azure:"ro"`

	// READ-ONLY; The possible causes.
	PossibleCauses *string `json:"possibleCauses,omitempty" azure:"ro"`

	// READ-ONLY; The recommended action.
	RecommendedAction *string `json:"recommendedAction,omitempty" azure:"ro"`
}

InMageAzureV2SwitchProviderBlockingErrorDetails - InMageAzureV2 switch provider blocking error details.

func (InMageAzureV2SwitchProviderBlockingErrorDetails) MarshalJSON added in v0.2.0

MarshalJSON implements the json.Marshaller interface for type InMageAzureV2SwitchProviderBlockingErrorDetails.

func (*InMageAzureV2SwitchProviderBlockingErrorDetails) UnmarshalJSON added in v1.1.0

UnmarshalJSON implements the json.Unmarshaller interface for type InMageAzureV2SwitchProviderBlockingErrorDetails.

type InMageAzureV2SwitchProviderDetails added in v0.2.0

type InMageAzureV2SwitchProviderDetails struct {
	// READ-ONLY; The target appliance Id.
	TargetApplianceID *string `json:"targetApplianceId,omitempty" azure:"ro"`

	// READ-ONLY; The target fabric Id.
	TargetFabricID *string `json:"targetFabricId,omitempty" azure:"ro"`

	// READ-ONLY; The target resource Id.
	TargetResourceID *string `json:"targetResourceId,omitempty" azure:"ro"`

	// READ-ONLY; The target vault Id.
	TargetVaultID *string `json:"targetVaultId,omitempty" azure:"ro"`
}

InMageAzureV2SwitchProviderDetails - InMageAzureV2 switch provider details.

func (InMageAzureV2SwitchProviderDetails) MarshalJSON added in v1.1.0

func (i InMageAzureV2SwitchProviderDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageAzureV2SwitchProviderDetails.

func (*InMageAzureV2SwitchProviderDetails) UnmarshalJSON added in v1.1.0

func (i *InMageAzureV2SwitchProviderDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageAzureV2SwitchProviderDetails.

type InMageAzureV2SwitchProviderInput added in v0.2.0

type InMageAzureV2SwitchProviderInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; The target appliance Id.
	TargetApplianceID *string `json:"targetApplianceID,omitempty"`

	// REQUIRED; The target fabric Id.
	TargetFabricID *string `json:"targetFabricID,omitempty"`

	// REQUIRED; The target vault Id.
	TargetVaultID *string `json:"targetVaultID,omitempty"`
}

InMageAzureV2SwitchProviderInput - Provider specific input for InMageAzureV2 switch provider.

func (*InMageAzureV2SwitchProviderInput) GetSwitchProviderSpecificInput added in v0.2.0

func (i *InMageAzureV2SwitchProviderInput) GetSwitchProviderSpecificInput() *SwitchProviderSpecificInput

GetSwitchProviderSpecificInput implements the SwitchProviderSpecificInputClassification interface for type InMageAzureV2SwitchProviderInput.

func (InMageAzureV2SwitchProviderInput) MarshalJSON added in v0.2.0

func (i InMageAzureV2SwitchProviderInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageAzureV2SwitchProviderInput.

func (*InMageAzureV2SwitchProviderInput) UnmarshalJSON added in v0.2.0

func (i *InMageAzureV2SwitchProviderInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageAzureV2SwitchProviderInput.

type InMageAzureV2TestFailoverInput

type InMageAzureV2TestFailoverInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The recovery point id to be passed to test failover to a particular recovery point. In case of latest recovery point, null
	// should be passed.
	RecoveryPointID *string `json:"recoveryPointId,omitempty"`
}

InMageAzureV2TestFailoverInput - InMageAzureV2 provider specific input for test failover.

func (*InMageAzureV2TestFailoverInput) GetTestFailoverProviderSpecificInput added in v0.2.0

func (i *InMageAzureV2TestFailoverInput) GetTestFailoverProviderSpecificInput() *TestFailoverProviderSpecificInput

GetTestFailoverProviderSpecificInput implements the TestFailoverProviderSpecificInputClassification interface for type InMageAzureV2TestFailoverInput.

func (InMageAzureV2TestFailoverInput) MarshalJSON

func (i InMageAzureV2TestFailoverInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageAzureV2TestFailoverInput.

func (*InMageAzureV2TestFailoverInput) UnmarshalJSON

func (i *InMageAzureV2TestFailoverInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageAzureV2TestFailoverInput.

type InMageAzureV2UnplannedFailoverInput

type InMageAzureV2UnplannedFailoverInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The recovery point id to be passed to failover to a particular recovery point. In case of latest recovery point, null should
	// be passed.
	RecoveryPointID *string `json:"recoveryPointId,omitempty"`
}

InMageAzureV2UnplannedFailoverInput - InMageAzureV2 provider specific input for unplanned failover.

func (*InMageAzureV2UnplannedFailoverInput) GetUnplannedFailoverProviderSpecificInput added in v0.2.0

func (i *InMageAzureV2UnplannedFailoverInput) GetUnplannedFailoverProviderSpecificInput() *UnplannedFailoverProviderSpecificInput

GetUnplannedFailoverProviderSpecificInput implements the UnplannedFailoverProviderSpecificInputClassification interface for type InMageAzureV2UnplannedFailoverInput.

func (InMageAzureV2UnplannedFailoverInput) MarshalJSON

func (i InMageAzureV2UnplannedFailoverInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageAzureV2UnplannedFailoverInput.

func (*InMageAzureV2UnplannedFailoverInput) UnmarshalJSON

func (i *InMageAzureV2UnplannedFailoverInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageAzureV2UnplannedFailoverInput.

type InMageAzureV2UpdateReplicationProtectedItemInput

type InMageAzureV2UpdateReplicationProtectedItemInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The recovery Azure resource group Id for classic deployment.
	RecoveryAzureV1ResourceGroupID *string `json:"recoveryAzureV1ResourceGroupId,omitempty"`

	// The recovery Azure resource group Id for resource manager deployment.
	RecoveryAzureV2ResourceGroupID *string `json:"recoveryAzureV2ResourceGroupId,omitempty"`

	// The SQL Server license type.
	SQLServerLicenseType *SQLServerLicenseType `json:"sqlServerLicenseType,omitempty"`

	// The target availability zone.
	TargetAvailabilityZone *string `json:"targetAvailabilityZone,omitempty"`

	// The tags for the target managed disks.
	TargetManagedDiskTags map[string]*string `json:"targetManagedDiskTags,omitempty"`

	// The tags for the target NICs.
	TargetNicTags map[string]*string `json:"targetNicTags,omitempty"`

	// The target proximity placement group Id.
	TargetProximityPlacementGroupID *string `json:"targetProximityPlacementGroupId,omitempty"`

	// The target VM tags.
	TargetVMTags map[string]*string `json:"targetVmTags,omitempty"`

	// A value indicating whether managed disks should be used during failover.
	UseManagedDisks *string `json:"useManagedDisks,omitempty"`

	// The list of disk update properties.
	VMDisks []*UpdateDiskInput `json:"vmDisks,omitempty"`
}

InMageAzureV2UpdateReplicationProtectedItemInput - InMage Azure V2 input to update replication protected item.

func (*InMageAzureV2UpdateReplicationProtectedItemInput) GetUpdateReplicationProtectedItemProviderInput added in v0.2.0

func (i *InMageAzureV2UpdateReplicationProtectedItemInput) GetUpdateReplicationProtectedItemProviderInput() *UpdateReplicationProtectedItemProviderInput

GetUpdateReplicationProtectedItemProviderInput implements the UpdateReplicationProtectedItemProviderInputClassification interface for type InMageAzureV2UpdateReplicationProtectedItemInput.

func (InMageAzureV2UpdateReplicationProtectedItemInput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type InMageAzureV2UpdateReplicationProtectedItemInput.

func (*InMageAzureV2UpdateReplicationProtectedItemInput) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type InMageAzureV2UpdateReplicationProtectedItemInput.

type InMageBasePolicyDetails

type InMageBasePolicyDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// The app consistent snapshot frequency in minutes.
	AppConsistentFrequencyInMinutes *int32 `json:"appConsistentFrequencyInMinutes,omitempty"`

	// A value indicating whether multi-VM sync has to be enabled.
	MultiVMSyncStatus *string `json:"multiVmSyncStatus,omitempty"`

	// The duration in minutes until which the recovery points need to be stored.
	RecoveryPointHistory *int32 `json:"recoveryPointHistory,omitempty"`

	// The recovery point threshold in minutes.
	RecoveryPointThresholdInMinutes *int32 `json:"recoveryPointThresholdInMinutes,omitempty"`
}

InMageBasePolicyDetails - Base class for the policies of providers using InMage replication.

func (*InMageBasePolicyDetails) GetPolicyProviderSpecificDetails added in v0.2.0

func (i *InMageBasePolicyDetails) GetPolicyProviderSpecificDetails() *PolicyProviderSpecificDetails

GetPolicyProviderSpecificDetails implements the PolicyProviderSpecificDetailsClassification interface for type InMageBasePolicyDetails.

func (InMageBasePolicyDetails) MarshalJSON

func (i InMageBasePolicyDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageBasePolicyDetails.

func (*InMageBasePolicyDetails) UnmarshalJSON

func (i *InMageBasePolicyDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageBasePolicyDetails.

type InMageDisableProtectionProviderSpecificInput

type InMageDisableProtectionProviderSpecificInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// A value indicating whether the replica VM should be destroyed or retained. Values from Delete and Retain.
	ReplicaVMDeletionStatus *string `json:"replicaVmDeletionStatus,omitempty"`
}

InMageDisableProtectionProviderSpecificInput - InMage disable protection provider specific input.

func (*InMageDisableProtectionProviderSpecificInput) GetDisableProtectionProviderSpecificInput added in v0.2.0

func (i *InMageDisableProtectionProviderSpecificInput) GetDisableProtectionProviderSpecificInput() *DisableProtectionProviderSpecificInput

GetDisableProtectionProviderSpecificInput implements the DisableProtectionProviderSpecificInputClassification interface for type InMageDisableProtectionProviderSpecificInput.

func (InMageDisableProtectionProviderSpecificInput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type InMageDisableProtectionProviderSpecificInput.

func (*InMageDisableProtectionProviderSpecificInput) UnmarshalJSON

func (i *InMageDisableProtectionProviderSpecificInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageDisableProtectionProviderSpecificInput.

type InMageDiskDetails

type InMageDiskDetails struct {
	// Whether disk is dynamic disk or basic disk.
	DiskConfiguration *string `json:"diskConfiguration,omitempty"`

	// The disk Id.
	DiskID *string `json:"diskId,omitempty"`

	// The disk name.
	DiskName *string `json:"diskName,omitempty"`

	// The disk size in MB.
	DiskSizeInMB *string `json:"diskSizeInMB,omitempty"`

	// Whether disk is system disk or data disk.
	DiskType *string `json:"diskType,omitempty"`

	// Volumes of the disk.
	VolumeList []*DiskVolumeDetails `json:"volumeList,omitempty"`
}

InMageDiskDetails - VMware/Physical specific Disk Details.

func (InMageDiskDetails) MarshalJSON

func (i InMageDiskDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageDiskDetails.

func (*InMageDiskDetails) UnmarshalJSON added in v1.1.0

func (i *InMageDiskDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageDiskDetails.

type InMageDiskExclusionInput

type InMageDiskExclusionInput struct {
	// The guest disk signature based option for disk exclusion.
	DiskSignatureOptions []*InMageDiskSignatureExclusionOptions `json:"diskSignatureOptions,omitempty"`

	// The volume label based option for disk exclusion.
	VolumeOptions []*InMageVolumeExclusionOptions `json:"volumeOptions,omitempty"`
}

InMageDiskExclusionInput - DiskExclusionInput when doing enable protection of virtual machine in InMage provider.

func (InMageDiskExclusionInput) MarshalJSON

func (i InMageDiskExclusionInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageDiskExclusionInput.

func (*InMageDiskExclusionInput) UnmarshalJSON added in v1.1.0

func (i *InMageDiskExclusionInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageDiskExclusionInput.

type InMageDiskSignatureExclusionOptions

type InMageDiskSignatureExclusionOptions struct {
	// The guest signature of disk to be excluded from replication.
	DiskSignature *string `json:"diskSignature,omitempty"`
}

InMageDiskSignatureExclusionOptions - Guest disk signature based disk exclusion option when doing enable protection of virtual machine in InMage provider.

func (InMageDiskSignatureExclusionOptions) MarshalJSON added in v1.1.0

func (i InMageDiskSignatureExclusionOptions) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageDiskSignatureExclusionOptions.

func (*InMageDiskSignatureExclusionOptions) UnmarshalJSON added in v1.1.0

func (i *InMageDiskSignatureExclusionOptions) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageDiskSignatureExclusionOptions.

type InMageEnableProtectionInput

type InMageEnableProtectionInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; The Master Target Id.
	MasterTargetID *string `json:"masterTargetId,omitempty"`

	// REQUIRED; The multi VM group Id.
	MultiVMGroupID *string `json:"multiVmGroupId,omitempty"`

	// REQUIRED; The multi VM group name.
	MultiVMGroupName *string `json:"multiVmGroupName,omitempty"`

	// REQUIRED; The Process Server Id.
	ProcessServerID *string `json:"processServerId,omitempty"`

	// REQUIRED; The retention drive to use on the MT.
	RetentionDrive *string `json:"retentionDrive,omitempty"`

	// The target datastore name.
	DatastoreName *string `json:"datastoreName,omitempty"`

	// The enable disk exclusion input.
	DiskExclusionInput *InMageDiskExclusionInput `json:"diskExclusionInput,omitempty"`

	// The disks to include list.
	DisksToInclude []*string `json:"disksToInclude,omitempty"`

	// The CS account Id.
	RunAsAccountID *string `json:"runAsAccountId,omitempty"`

	// The VM Name.
	VMFriendlyName *string `json:"vmFriendlyName,omitempty"`
}

InMageEnableProtectionInput - VMware Azure specific enable protection input.

func (*InMageEnableProtectionInput) GetEnableProtectionProviderSpecificInput added in v0.2.0

func (i *InMageEnableProtectionInput) GetEnableProtectionProviderSpecificInput() *EnableProtectionProviderSpecificInput

GetEnableProtectionProviderSpecificInput implements the EnableProtectionProviderSpecificInputClassification interface for type InMageEnableProtectionInput.

func (InMageEnableProtectionInput) MarshalJSON

func (i InMageEnableProtectionInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageEnableProtectionInput.

func (*InMageEnableProtectionInput) UnmarshalJSON

func (i *InMageEnableProtectionInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageEnableProtectionInput.

type InMageFabricSwitchProviderBlockingErrorDetails added in v0.2.0

type InMageFabricSwitchProviderBlockingErrorDetails struct {
	// READ-ONLY; The error code.
	ErrorCode *string `json:"errorCode,omitempty" azure:"ro"`

	// READ-ONLY; The error message.
	ErrorMessage *string `json:"errorMessage,omitempty" azure:"ro"`

	// READ-ONLY; The error message parameters.
	ErrorMessageParameters map[string]*string `json:"errorMessageParameters,omitempty" azure:"ro"`

	// READ-ONLY; The error tags.
	ErrorTags map[string]*string `json:"errorTags,omitempty" azure:"ro"`

	// READ-ONLY; The possible causes.
	PossibleCauses *string `json:"possibleCauses,omitempty" azure:"ro"`

	// READ-ONLY; The recommended action.
	RecommendedAction *string `json:"recommendedAction,omitempty" azure:"ro"`
}

InMageFabricSwitchProviderBlockingErrorDetails - InMageFabric switch provider blocking error details.

func (InMageFabricSwitchProviderBlockingErrorDetails) MarshalJSON added in v0.2.0

MarshalJSON implements the json.Marshaller interface for type InMageFabricSwitchProviderBlockingErrorDetails.

func (*InMageFabricSwitchProviderBlockingErrorDetails) UnmarshalJSON added in v1.1.0

UnmarshalJSON implements the json.Unmarshaller interface for type InMageFabricSwitchProviderBlockingErrorDetails.

type InMagePolicyDetails

type InMagePolicyDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// The app consistent snapshot frequency in minutes.
	AppConsistentFrequencyInMinutes *int32 `json:"appConsistentFrequencyInMinutes,omitempty"`

	// A value indicating whether multi-VM sync has to be enabled.
	MultiVMSyncStatus *string `json:"multiVmSyncStatus,omitempty"`

	// The duration in minutes until which the recovery points need to be stored.
	RecoveryPointHistory *int32 `json:"recoveryPointHistory,omitempty"`

	// The recovery point threshold in minutes.
	RecoveryPointThresholdInMinutes *int32 `json:"recoveryPointThresholdInMinutes,omitempty"`
}

InMagePolicyDetails - InMage specific protection profile details.

func (*InMagePolicyDetails) GetPolicyProviderSpecificDetails added in v0.2.0

func (i *InMagePolicyDetails) GetPolicyProviderSpecificDetails() *PolicyProviderSpecificDetails

GetPolicyProviderSpecificDetails implements the PolicyProviderSpecificDetailsClassification interface for type InMagePolicyDetails.

func (InMagePolicyDetails) MarshalJSON

func (i InMagePolicyDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMagePolicyDetails.

func (*InMagePolicyDetails) UnmarshalJSON

func (i *InMagePolicyDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMagePolicyDetails.

type InMagePolicyInput

type InMagePolicyInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; A value indicating whether multi-VM sync has to be enabled. Value should be 'Enabled' or 'Disabled'.
	MultiVMSyncStatus *SetMultiVMSyncStatus `json:"multiVmSyncStatus,omitempty"`

	// The app consistent snapshot frequency (in minutes).
	AppConsistentFrequencyInMinutes *int32 `json:"appConsistentFrequencyInMinutes,omitempty"`

	// The duration in minutes until which the recovery points need to be stored.
	RecoveryPointHistory *int32 `json:"recoveryPointHistory,omitempty"`

	// The recovery point threshold in minutes.
	RecoveryPointThresholdInMinutes *int32 `json:"recoveryPointThresholdInMinutes,omitempty"`
}

InMagePolicyInput - VMWare Azure specific protection profile Input.

func (*InMagePolicyInput) GetPolicyProviderSpecificInput added in v0.2.0

func (i *InMagePolicyInput) GetPolicyProviderSpecificInput() *PolicyProviderSpecificInput

GetPolicyProviderSpecificInput implements the PolicyProviderSpecificInputClassification interface for type InMagePolicyInput.

func (InMagePolicyInput) MarshalJSON

func (i InMagePolicyInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMagePolicyInput.

func (*InMagePolicyInput) UnmarshalJSON

func (i *InMagePolicyInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMagePolicyInput.

type InMageProtectedDiskDetails

type InMageProtectedDiskDetails struct {
	// The disk capacity in bytes.
	DiskCapacityInBytes *int64 `json:"diskCapacityInBytes,omitempty"`

	// The disk id.
	DiskID *string `json:"diskId,omitempty"`

	// The disk name.
	DiskName *string `json:"diskName,omitempty"`

	// A value indicating whether disk is resized.
	DiskResized *string `json:"diskResized,omitempty"`

	// The file system capacity in bytes.
	FileSystemCapacityInBytes *int64 `json:"fileSystemCapacityInBytes,omitempty"`

	// The health error code for the disk.
	HealthErrorCode *string `json:"healthErrorCode,omitempty"`

	// The last RPO calculated time.
	LastRpoCalculatedTime *time.Time `json:"lastRpoCalculatedTime,omitempty"`

	// The Progress Health.
	ProgressHealth *string `json:"progressHealth,omitempty"`

	// The Progress Status.
	ProgressStatus *string `json:"progressStatus,omitempty"`

	// The protection stage.
	ProtectionStage *string `json:"protectionStage,omitempty"`

	// The PS data transit in MB.
	PsDataInMB *float64 `json:"psDataInMB,omitempty"`

	// The resync duration in seconds.
	ResyncDurationInSeconds *int64 `json:"resyncDurationInSeconds,omitempty"`

	// The resync last 15 minutes transferred bytes.
	ResyncLast15MinutesTransferredBytes *int64 `json:"resyncLast15MinutesTransferredBytes,omitempty"`

	// The last data transfer time in UTC.
	ResyncLastDataTransferTimeUTC *time.Time `json:"resyncLastDataTransferTimeUTC,omitempty"`

	// The resync processed bytes.
	ResyncProcessedBytes *int64 `json:"resyncProcessedBytes,omitempty"`

	// The resync progress percentage.
	ResyncProgressPercentage *int32 `json:"resyncProgressPercentage,omitempty"`

	// A value indicating whether resync is required for this disk.
	ResyncRequired *string `json:"resyncRequired,omitempty"`

	// The resync start time.
	ResyncStartTime *time.Time `json:"resyncStartTime,omitempty"`

	// The resync total transferred bytes.
	ResyncTotalTransferredBytes *int64 `json:"resyncTotalTransferredBytes,omitempty"`

	// The RPO in seconds.
	RpoInSeconds *int64 `json:"rpoInSeconds,omitempty"`

	// The source data transit in MB.
	SourceDataInMB *float64 `json:"sourceDataInMB,omitempty"`

	// The target data transit in MB.
	TargetDataInMB *float64 `json:"targetDataInMB,omitempty"`
}

InMageProtectedDiskDetails - InMage protected disk details.

func (InMageProtectedDiskDetails) MarshalJSON

func (i InMageProtectedDiskDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageProtectedDiskDetails.

func (*InMageProtectedDiskDetails) UnmarshalJSON

func (i *InMageProtectedDiskDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageProtectedDiskDetails.

type InMageRcmAgentUpgradeBlockingErrorDetails

type InMageRcmAgentUpgradeBlockingErrorDetails struct {
	// READ-ONLY; The error code.
	ErrorCode *string `json:"errorCode,omitempty" azure:"ro"`

	// READ-ONLY; The error message.
	ErrorMessage *string `json:"errorMessage,omitempty" azure:"ro"`

	// READ-ONLY; The error message parameters.
	ErrorMessageParameters map[string]*string `json:"errorMessageParameters,omitempty" azure:"ro"`

	// READ-ONLY; The error tags.
	ErrorTags map[string]*string `json:"errorTags,omitempty" azure:"ro"`

	// READ-ONLY; The possible causes.
	PossibleCauses *string `json:"possibleCauses,omitempty" azure:"ro"`

	// READ-ONLY; The recommended action.
	RecommendedAction *string `json:"recommendedAction,omitempty" azure:"ro"`
}

InMageRcmAgentUpgradeBlockingErrorDetails - InMageRcm source agent upgrade blocking error details.

func (InMageRcmAgentUpgradeBlockingErrorDetails) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type InMageRcmAgentUpgradeBlockingErrorDetails.

func (*InMageRcmAgentUpgradeBlockingErrorDetails) UnmarshalJSON added in v1.1.0

func (i *InMageRcmAgentUpgradeBlockingErrorDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmAgentUpgradeBlockingErrorDetails.

type InMageRcmApplianceDetails added in v0.2.0

type InMageRcmApplianceDetails struct {
	// READ-ONLY; The DRA.
	Dra *DraDetails `json:"dra,omitempty" azure:"ro"`

	// READ-ONLY; The fabric ARM Id.
	FabricArmID *string `json:"fabricArmId,omitempty" azure:"ro"`

	// READ-ONLY; The appliance Id.
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The Mars agent.
	MarsAgent *MarsAgentDetails `json:"marsAgent,omitempty" azure:"ro"`

	// READ-ONLY; The appliance name.
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; The process server.
	ProcessServer *ProcessServerDetails `json:"processServer,omitempty" azure:"ro"`

	// READ-ONLY; The push installer.
	PushInstaller *PushInstallerDetails `json:"pushInstaller,omitempty" azure:"ro"`

	// READ-ONLY; The of RCM proxy.
	RcmProxy *RcmProxyDetails `json:"rcmProxy,omitempty" azure:"ro"`

	// READ-ONLY; The replication agent.
	ReplicationAgent *ReplicationAgentDetails `json:"replicationAgent,omitempty" azure:"ro"`

	// READ-ONLY; The reprotect agent.
	ReprotectAgent *ReprotectAgentDetails `json:"reprotectAgent,omitempty" azure:"ro"`

	// READ-ONLY; The switch provider blocking error information.
	SwitchProviderBlockingErrorDetails []*InMageRcmFabricSwitchProviderBlockingErrorDetails `json:"switchProviderBlockingErrorDetails,omitempty" azure:"ro"`
}

InMageRcmApplianceDetails - InMageRcm appliance details.

func (InMageRcmApplianceDetails) MarshalJSON added in v0.2.0

func (i InMageRcmApplianceDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmApplianceDetails.

func (*InMageRcmApplianceDetails) UnmarshalJSON added in v1.1.0

func (i *InMageRcmApplianceDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmApplianceDetails.

type InMageRcmApplianceSpecificDetails added in v0.2.0

type InMageRcmApplianceSpecificDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// READ-ONLY; The list of appliances.
	Appliances []*InMageRcmApplianceDetails `json:"appliances,omitempty" azure:"ro"`
}

InMageRcmApplianceSpecificDetails - InMageRcm appliance specific details.

func (*InMageRcmApplianceSpecificDetails) GetApplianceSpecificDetails added in v0.2.0

func (i *InMageRcmApplianceSpecificDetails) GetApplianceSpecificDetails() *ApplianceSpecificDetails

GetApplianceSpecificDetails implements the ApplianceSpecificDetailsClassification interface for type InMageRcmApplianceSpecificDetails.

func (InMageRcmApplianceSpecificDetails) MarshalJSON added in v0.2.0

func (i InMageRcmApplianceSpecificDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmApplianceSpecificDetails.

func (*InMageRcmApplianceSpecificDetails) UnmarshalJSON added in v0.2.0

func (i *InMageRcmApplianceSpecificDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmApplianceSpecificDetails.

type InMageRcmApplyRecoveryPointInput

type InMageRcmApplyRecoveryPointInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; The recovery point Id.
	RecoveryPointID *string `json:"recoveryPointId,omitempty"`
}

InMageRcmApplyRecoveryPointInput - ApplyRecoveryPoint input specific to InMageRcm provider.

func (*InMageRcmApplyRecoveryPointInput) GetApplyRecoveryPointProviderSpecificInput added in v0.2.0

func (i *InMageRcmApplyRecoveryPointInput) GetApplyRecoveryPointProviderSpecificInput() *ApplyRecoveryPointProviderSpecificInput

GetApplyRecoveryPointProviderSpecificInput implements the ApplyRecoveryPointProviderSpecificInputClassification interface for type InMageRcmApplyRecoveryPointInput.

func (InMageRcmApplyRecoveryPointInput) MarshalJSON

func (i InMageRcmApplyRecoveryPointInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmApplyRecoveryPointInput.

func (*InMageRcmApplyRecoveryPointInput) UnmarshalJSON

func (i *InMageRcmApplyRecoveryPointInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmApplyRecoveryPointInput.

type InMageRcmDiscoveredProtectedVMDetails

type InMageRcmDiscoveredProtectedVMDetails struct {
	// READ-ONLY; The SDS created timestamp.
	CreatedTimestamp *time.Time `json:"createdTimestamp,omitempty" azure:"ro"`

	// READ-ONLY; The list of datastores.
	Datastores []*string `json:"datastores,omitempty" azure:"ro"`

	// READ-ONLY; The list of IP addresses.
	IPAddresses []*string `json:"ipAddresses,omitempty" azure:"ro"`

	// READ-ONLY; A value indicating whether the VM is deleted.
	IsDeleted *bool `json:"isDeleted,omitempty" azure:"ro"`

	// READ-ONLY; The last time when SDS information discovered in SRS.
	LastDiscoveryTimeInUTC *time.Time `json:"lastDiscoveryTimeInUtc,omitempty" azure:"ro"`

	// READ-ONLY; The VM's OS name.
	OSName *string `json:"osName,omitempty" azure:"ro"`

	// READ-ONLY; The VM power status.
	PowerStatus *string `json:"powerStatus,omitempty" azure:"ro"`

	// READ-ONLY; The SDS updated timestamp.
	UpdatedTimestamp *time.Time `json:"updatedTimestamp,omitempty" azure:"ro"`

	// READ-ONLY; The VCenter fqdn.
	VCenterFqdn *string `json:"vCenterFqdn,omitempty" azure:"ro"`

	// READ-ONLY; The VCenter Id.
	VCenterID *string `json:"vCenterId,omitempty" azure:"ro"`

	// READ-ONLY; The VM fqdn.
	VMFqdn *string `json:"vmFqdn,omitempty" azure:"ro"`

	// READ-ONLY; The VMware tools status.
	VmwareToolsStatus *string `json:"vmwareToolsStatus,omitempty" azure:"ro"`
}

InMageRcmDiscoveredProtectedVMDetails - InMageRcm discovered protected VM details.

func (InMageRcmDiscoveredProtectedVMDetails) MarshalJSON

func (i InMageRcmDiscoveredProtectedVMDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmDiscoveredProtectedVMDetails.

func (*InMageRcmDiscoveredProtectedVMDetails) UnmarshalJSON

func (i *InMageRcmDiscoveredProtectedVMDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmDiscoveredProtectedVMDetails.

type InMageRcmDiskInput

type InMageRcmDiskInput struct {
	// REQUIRED; The disk Id.
	DiskID *string `json:"diskId,omitempty"`

	// REQUIRED; The disk type.
	DiskType *DiskAccountType `json:"diskType,omitempty"`

	// REQUIRED; The log storage account ARM Id.
	LogStorageAccountID *string `json:"logStorageAccountId,omitempty"`

	// The DiskEncryptionSet ARM Id.
	DiskEncryptionSetID *string `json:"diskEncryptionSetId,omitempty"`
}

InMageRcmDiskInput - InMageRcm disk input.

func (InMageRcmDiskInput) MarshalJSON added in v1.1.0

func (i InMageRcmDiskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmDiskInput.

func (*InMageRcmDiskInput) UnmarshalJSON added in v1.1.0

func (i *InMageRcmDiskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmDiskInput.

type InMageRcmDisksDefaultInput

type InMageRcmDisksDefaultInput struct {
	// REQUIRED; The disk type.
	DiskType *DiskAccountType `json:"diskType,omitempty"`

	// REQUIRED; The log storage account ARM Id.
	LogStorageAccountID *string `json:"logStorageAccountId,omitempty"`

	// The DiskEncryptionSet ARM Id.
	DiskEncryptionSetID *string `json:"diskEncryptionSetId,omitempty"`
}

InMageRcmDisksDefaultInput - InMageRcm disk input.

func (InMageRcmDisksDefaultInput) MarshalJSON added in v1.1.0

func (i InMageRcmDisksDefaultInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmDisksDefaultInput.

func (*InMageRcmDisksDefaultInput) UnmarshalJSON added in v1.1.0

func (i *InMageRcmDisksDefaultInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmDisksDefaultInput.

type InMageRcmEnableProtectionInput

type InMageRcmEnableProtectionInput struct {
	// REQUIRED; The ARM Id of discovered machine.
	FabricDiscoveryMachineID *string `json:"fabricDiscoveryMachineId,omitempty"`

	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; The process server Id.
	ProcessServerID *string `json:"processServerId,omitempty"`

	// REQUIRED; The target resource group ARM Id.
	TargetResourceGroupID *string `json:"targetResourceGroupId,omitempty"`

	// The default disk input.
	DisksDefault *InMageRcmDisksDefaultInput `json:"disksDefault,omitempty"`

	// The disks to include list.
	DisksToInclude []*InMageRcmDiskInput `json:"disksToInclude,omitempty"`

	// The license type.
	LicenseType *LicenseType `json:"licenseType,omitempty"`

	// The multi VM group name.
	MultiVMGroupName *string `json:"multiVmGroupName,omitempty"`

	// The run-as account Id.
	RunAsAccountID *string `json:"runAsAccountId,omitempty"`

	// The target availability set ARM Id.
	TargetAvailabilitySetID *string `json:"targetAvailabilitySetId,omitempty"`

	// The target availability zone.
	TargetAvailabilityZone *string `json:"targetAvailabilityZone,omitempty"`

	// The target boot diagnostics storage account ARM Id.
	TargetBootDiagnosticsStorageAccountID *string `json:"targetBootDiagnosticsStorageAccountId,omitempty"`

	// The selected target network ARM Id.
	TargetNetworkID *string `json:"targetNetworkId,omitempty"`

	// The target proximity placement group Id.
	TargetProximityPlacementGroupID *string `json:"targetProximityPlacementGroupId,omitempty"`

	// The selected target subnet name.
	TargetSubnetName *string `json:"targetSubnetName,omitempty"`

	// The target VM name.
	TargetVMName *string `json:"targetVmName,omitempty"`

	// The target VM size.
	TargetVMSize *string `json:"targetVmSize,omitempty"`

	// The selected test network ARM Id.
	TestNetworkID *string `json:"testNetworkId,omitempty"`

	// The selected test subnet name.
	TestSubnetName *string `json:"testSubnetName,omitempty"`
}

InMageRcmEnableProtectionInput - InMageRcm specific enable protection input.

func (*InMageRcmEnableProtectionInput) GetEnableProtectionProviderSpecificInput added in v0.2.0

func (i *InMageRcmEnableProtectionInput) GetEnableProtectionProviderSpecificInput() *EnableProtectionProviderSpecificInput

GetEnableProtectionProviderSpecificInput implements the EnableProtectionProviderSpecificInputClassification interface for type InMageRcmEnableProtectionInput.

func (InMageRcmEnableProtectionInput) MarshalJSON

func (i InMageRcmEnableProtectionInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmEnableProtectionInput.

func (*InMageRcmEnableProtectionInput) UnmarshalJSON

func (i *InMageRcmEnableProtectionInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmEnableProtectionInput.

type InMageRcmEventDetails

type InMageRcmEventDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// READ-ONLY; The appliance name.
	ApplianceName *string `json:"applianceName,omitempty" azure:"ro"`

	// READ-ONLY; The component display name.
	ComponentDisplayName *string `json:"componentDisplayName,omitempty" azure:"ro"`

	// READ-ONLY; The fabric name.
	FabricName *string `json:"fabricName,omitempty" azure:"ro"`

	// READ-ONLY; The job Id.
	JobID *string `json:"jobId,omitempty" azure:"ro"`

	// READ-ONLY; The latest agent version.
	LatestAgentVersion *string `json:"latestAgentVersion,omitempty" azure:"ro"`

	// READ-ONLY; The protected item name.
	ProtectedItemName *string `json:"protectedItemName,omitempty" azure:"ro"`

	// READ-ONLY; The server type.
	ServerType *string `json:"serverType,omitempty" azure:"ro"`

	// READ-ONLY; The protected item name.
	VMName *string `json:"vmName,omitempty" azure:"ro"`
}

InMageRcmEventDetails - Event details for InMageRcm provider.

func (*InMageRcmEventDetails) GetEventProviderSpecificDetails added in v0.2.0

func (i *InMageRcmEventDetails) GetEventProviderSpecificDetails() *EventProviderSpecificDetails

GetEventProviderSpecificDetails implements the EventProviderSpecificDetailsClassification interface for type InMageRcmEventDetails.

func (InMageRcmEventDetails) MarshalJSON

func (i InMageRcmEventDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmEventDetails.

func (*InMageRcmEventDetails) UnmarshalJSON

func (i *InMageRcmEventDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmEventDetails.

type InMageRcmFabricCreationInput

type InMageRcmFabricCreationInput struct {
	// REQUIRED; Gets the class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; The ARM Id of the physical site.
	PhysicalSiteID *string `json:"physicalSiteId,omitempty"`

	// REQUIRED; The identity provider input for source agent authentication.
	SourceAgentIdentity *IdentityProviderInput `json:"sourceAgentIdentity,omitempty"`

	// REQUIRED; The ARM Id of the VMware site.
	VmwareSiteID *string `json:"vmwareSiteId,omitempty"`
}

InMageRcmFabricCreationInput - InMageRcm fabric provider specific settings.

func (*InMageRcmFabricCreationInput) GetFabricSpecificCreationInput added in v0.2.0

func (i *InMageRcmFabricCreationInput) GetFabricSpecificCreationInput() *FabricSpecificCreationInput

GetFabricSpecificCreationInput implements the FabricSpecificCreationInputClassification interface for type InMageRcmFabricCreationInput.

func (InMageRcmFabricCreationInput) MarshalJSON

func (i InMageRcmFabricCreationInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmFabricCreationInput.

func (*InMageRcmFabricCreationInput) UnmarshalJSON

func (i *InMageRcmFabricCreationInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmFabricCreationInput.

type InMageRcmFabricSpecificDetails

type InMageRcmFabricSpecificDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// The source agent identity details.
	SourceAgentIdentityDetails *IdentityProviderDetails `json:"sourceAgentIdentityDetails,omitempty"`

	// READ-ONLY; The list of agent details.
	AgentDetails []*AgentDetails `json:"agentDetails,omitempty" azure:"ro"`

	// READ-ONLY; The control plane Uri.
	ControlPlaneURI *string `json:"controlPlaneUri,omitempty" azure:"ro"`

	// READ-ONLY; The data plane Uri.
	DataPlaneURI *string `json:"dataPlaneUri,omitempty" azure:"ro"`

	// READ-ONLY; The list of DRAs.
	Dras []*DraDetails `json:"dras,omitempty" azure:"ro"`

	// READ-ONLY; The list of Mars agents.
	MarsAgents []*MarsAgentDetails `json:"marsAgents,omitempty" azure:"ro"`

	// READ-ONLY; The ARM Id of the physical site.
	PhysicalSiteID *string `json:"physicalSiteId,omitempty" azure:"ro"`

	// READ-ONLY; The list of process servers.
	ProcessServers []*ProcessServerDetails `json:"processServers,omitempty" azure:"ro"`

	// READ-ONLY; The list of push installers.
	PushInstallers []*PushInstallerDetails `json:"pushInstallers,omitempty" azure:"ro"`

	// READ-ONLY; The list of RCM proxies.
	RcmProxies []*RcmProxyDetails `json:"rcmProxies,omitempty" azure:"ro"`

	// READ-ONLY; The list of replication agents.
	ReplicationAgents []*ReplicationAgentDetails `json:"replicationAgents,omitempty" azure:"ro"`

	// READ-ONLY; The list of reprotect agents.
	ReprotectAgents []*ReprotectAgentDetails `json:"reprotectAgents,omitempty" azure:"ro"`

	// READ-ONLY; The service container Id.
	ServiceContainerID *string `json:"serviceContainerId,omitempty" azure:"ro"`

	// READ-ONLY; The service endpoint.
	ServiceEndpoint *string `json:"serviceEndpoint,omitempty" azure:"ro"`

	// READ-ONLY; The service resource Id.
	ServiceResourceID *string `json:"serviceResourceId,omitempty" azure:"ro"`

	// READ-ONLY; The ARM Id of the VMware site.
	VmwareSiteID *string `json:"vmwareSiteId,omitempty" azure:"ro"`
}

InMageRcmFabricSpecificDetails - InMageRcm fabric specific details.

func (*InMageRcmFabricSpecificDetails) GetFabricSpecificDetails added in v0.2.0

func (i *InMageRcmFabricSpecificDetails) GetFabricSpecificDetails() *FabricSpecificDetails

GetFabricSpecificDetails implements the FabricSpecificDetailsClassification interface for type InMageRcmFabricSpecificDetails.

func (InMageRcmFabricSpecificDetails) MarshalJSON

func (i InMageRcmFabricSpecificDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmFabricSpecificDetails.

func (*InMageRcmFabricSpecificDetails) UnmarshalJSON

func (i *InMageRcmFabricSpecificDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmFabricSpecificDetails.

type InMageRcmFabricSwitchProviderBlockingErrorDetails added in v0.2.0

type InMageRcmFabricSwitchProviderBlockingErrorDetails struct {
	// READ-ONLY; The error code.
	ErrorCode *string `json:"errorCode,omitempty" azure:"ro"`

	// READ-ONLY; The error message.
	ErrorMessage *string `json:"errorMessage,omitempty" azure:"ro"`

	// READ-ONLY; The error message parameters.
	ErrorMessageParameters map[string]*string `json:"errorMessageParameters,omitempty" azure:"ro"`

	// READ-ONLY; The error tags.
	ErrorTags map[string]*string `json:"errorTags,omitempty" azure:"ro"`

	// READ-ONLY; The possible causes.
	PossibleCauses *string `json:"possibleCauses,omitempty" azure:"ro"`

	// READ-ONLY; The recommended action.
	RecommendedAction *string `json:"recommendedAction,omitempty" azure:"ro"`
}

InMageRcmFabricSwitchProviderBlockingErrorDetails - InMageRcmFabric switch provider blocking error details.

func (InMageRcmFabricSwitchProviderBlockingErrorDetails) MarshalJSON added in v0.2.0

MarshalJSON implements the json.Marshaller interface for type InMageRcmFabricSwitchProviderBlockingErrorDetails.

func (*InMageRcmFabricSwitchProviderBlockingErrorDetails) UnmarshalJSON added in v1.1.0

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmFabricSwitchProviderBlockingErrorDetails.

type InMageRcmFailbackDiscoveredProtectedVMDetails

type InMageRcmFailbackDiscoveredProtectedVMDetails struct {
	// READ-ONLY; The SDS created timestamp.
	CreatedTimestamp *time.Time `json:"createdTimestamp,omitempty" azure:"ro"`

	// READ-ONLY; The list of datastores.
	Datastores []*string `json:"datastores,omitempty" azure:"ro"`

	// READ-ONLY; The list of IP addresses.
	IPAddresses []*string `json:"ipAddresses,omitempty" azure:"ro"`

	// READ-ONLY; A value indicating whether the VM is deleted.
	IsDeleted *bool `json:"isDeleted,omitempty" azure:"ro"`

	// READ-ONLY; The last time when SDS information discovered in SRS.
	LastDiscoveryTimeInUTC *time.Time `json:"lastDiscoveryTimeInUtc,omitempty" azure:"ro"`

	// READ-ONLY; The VM's OS name.
	OSName *string `json:"osName,omitempty" azure:"ro"`

	// READ-ONLY; The VM power status.
	PowerStatus *string `json:"powerStatus,omitempty" azure:"ro"`

	// READ-ONLY; The SDS updated timestamp.
	UpdatedTimestamp *time.Time `json:"updatedTimestamp,omitempty" azure:"ro"`

	// READ-ONLY; The VCenter fqdn.
	VCenterFqdn *string `json:"vCenterFqdn,omitempty" azure:"ro"`

	// READ-ONLY; The VCenter Id.
	VCenterID *string `json:"vCenterId,omitempty" azure:"ro"`

	// READ-ONLY; The VM fqdn.
	VMFqdn *string `json:"vmFqdn,omitempty" azure:"ro"`

	// READ-ONLY; The VMware tools status.
	VmwareToolsStatus *string `json:"vmwareToolsStatus,omitempty" azure:"ro"`
}

InMageRcmFailbackDiscoveredProtectedVMDetails - InMageRcmFailback discovered VM details.

func (InMageRcmFailbackDiscoveredProtectedVMDetails) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type InMageRcmFailbackDiscoveredProtectedVMDetails.

func (*InMageRcmFailbackDiscoveredProtectedVMDetails) UnmarshalJSON

func (i *InMageRcmFailbackDiscoveredProtectedVMDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmFailbackDiscoveredProtectedVMDetails.

type InMageRcmFailbackEventDetails

type InMageRcmFailbackEventDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// READ-ONLY; The appliance name.
	ApplianceName *string `json:"applianceName,omitempty" azure:"ro"`

	// READ-ONLY; The component display name.
	ComponentDisplayName *string `json:"componentDisplayName,omitempty" azure:"ro"`

	// READ-ONLY; The protected item name.
	ProtectedItemName *string `json:"protectedItemName,omitempty" azure:"ro"`

	// READ-ONLY; The server type.
	ServerType *string `json:"serverType,omitempty" azure:"ro"`

	// READ-ONLY; The protected item name.
	VMName *string `json:"vmName,omitempty" azure:"ro"`
}

InMageRcmFailbackEventDetails - Event details for InMageRcmFailback provider.

func (*InMageRcmFailbackEventDetails) GetEventProviderSpecificDetails added in v0.2.0

func (i *InMageRcmFailbackEventDetails) GetEventProviderSpecificDetails() *EventProviderSpecificDetails

GetEventProviderSpecificDetails implements the EventProviderSpecificDetailsClassification interface for type InMageRcmFailbackEventDetails.

func (InMageRcmFailbackEventDetails) MarshalJSON

func (i InMageRcmFailbackEventDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmFailbackEventDetails.

func (*InMageRcmFailbackEventDetails) UnmarshalJSON

func (i *InMageRcmFailbackEventDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmFailbackEventDetails.

type InMageRcmFailbackMobilityAgentDetails

type InMageRcmFailbackMobilityAgentDetails struct {
	// READ-ONLY; The agent version expiry date.
	AgentVersionExpiryDate *time.Time `json:"agentVersionExpiryDate,omitempty" azure:"ro"`

	// READ-ONLY; The driver version.
	DriverVersion *string `json:"driverVersion,omitempty" azure:"ro"`

	// READ-ONLY; The driver version expiry date.
	DriverVersionExpiryDate *time.Time `json:"driverVersionExpiryDate,omitempty" azure:"ro"`

	// READ-ONLY; A value indicating whether agent is upgradeable or not.
	IsUpgradeable *string `json:"isUpgradeable,omitempty" azure:"ro"`

	// READ-ONLY; The time of the last heartbeat received from the agent.
	LastHeartbeatUTC *time.Time `json:"lastHeartbeatUtc,omitempty" azure:"ro"`

	// READ-ONLY; The latest upgradeable version available without reboot.
	LatestUpgradableVersionWithoutReboot *string `json:"latestUpgradableVersionWithoutReboot,omitempty" azure:"ro"`

	// READ-ONLY; The latest agent version available.
	LatestVersion *string `json:"latestVersion,omitempty" azure:"ro"`

	// READ-ONLY; The whether update is possible or not.
	ReasonsBlockingUpgrade []*AgentUpgradeBlockedReason `json:"reasonsBlockingUpgrade,omitempty" azure:"ro"`

	// READ-ONLY; The agent version.
	Version *string `json:"version,omitempty" azure:"ro"`
}

InMageRcmFailbackMobilityAgentDetails - InMageRcmFailback mobility agent details.

func (InMageRcmFailbackMobilityAgentDetails) MarshalJSON

func (i InMageRcmFailbackMobilityAgentDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmFailbackMobilityAgentDetails.

func (*InMageRcmFailbackMobilityAgentDetails) UnmarshalJSON

func (i *InMageRcmFailbackMobilityAgentDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmFailbackMobilityAgentDetails.

type InMageRcmFailbackNicDetails

type InMageRcmFailbackNicDetails struct {
	// READ-ONLY; The adapter type.
	AdapterType *string `json:"adapterType,omitempty" azure:"ro"`

	// READ-ONLY; The mac address.
	MacAddress *string `json:"macAddress,omitempty" azure:"ro"`

	// READ-ONLY; The network name.
	NetworkName *string `json:"networkName,omitempty" azure:"ro"`

	// READ-ONLY; The IP address.
	SourceIPAddress *string `json:"sourceIpAddress,omitempty" azure:"ro"`
}

InMageRcmFailbackNicDetails - InMageRcmFailback NIC details.

func (InMageRcmFailbackNicDetails) MarshalJSON added in v1.1.0

func (i InMageRcmFailbackNicDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmFailbackNicDetails.

func (*InMageRcmFailbackNicDetails) UnmarshalJSON added in v1.1.0

func (i *InMageRcmFailbackNicDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmFailbackNicDetails.

type InMageRcmFailbackPlannedFailoverProviderInput

type InMageRcmFailbackPlannedFailoverProviderInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; The recovery point type.
	RecoveryPointType *InMageRcmFailbackRecoveryPointType `json:"recoveryPointType,omitempty"`
}

InMageRcmFailbackPlannedFailoverProviderInput - Provider specific input for InMageRcmFailback failover.

func (*InMageRcmFailbackPlannedFailoverProviderInput) GetPlannedFailoverProviderSpecificFailoverInput added in v0.2.0

func (i *InMageRcmFailbackPlannedFailoverProviderInput) GetPlannedFailoverProviderSpecificFailoverInput() *PlannedFailoverProviderSpecificFailoverInput

GetPlannedFailoverProviderSpecificFailoverInput implements the PlannedFailoverProviderSpecificFailoverInputClassification interface for type InMageRcmFailbackPlannedFailoverProviderInput.

func (InMageRcmFailbackPlannedFailoverProviderInput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type InMageRcmFailbackPlannedFailoverProviderInput.

func (*InMageRcmFailbackPlannedFailoverProviderInput) UnmarshalJSON

func (i *InMageRcmFailbackPlannedFailoverProviderInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmFailbackPlannedFailoverProviderInput.

type InMageRcmFailbackPolicyCreationInput

type InMageRcmFailbackPolicyCreationInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The app consistent snapshot frequency (in minutes).
	AppConsistentFrequencyInMinutes *int32 `json:"appConsistentFrequencyInMinutes,omitempty"`

	// The crash consistent snapshot frequency (in minutes).
	CrashConsistentFrequencyInMinutes *int32 `json:"crashConsistentFrequencyInMinutes,omitempty"`
}

InMageRcmFailbackPolicyCreationInput - InMageRcmFailback policy creation input.

func (*InMageRcmFailbackPolicyCreationInput) GetPolicyProviderSpecificInput added in v0.2.0

func (i *InMageRcmFailbackPolicyCreationInput) GetPolicyProviderSpecificInput() *PolicyProviderSpecificInput

GetPolicyProviderSpecificInput implements the PolicyProviderSpecificInputClassification interface for type InMageRcmFailbackPolicyCreationInput.

func (InMageRcmFailbackPolicyCreationInput) MarshalJSON

func (i InMageRcmFailbackPolicyCreationInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmFailbackPolicyCreationInput.

func (*InMageRcmFailbackPolicyCreationInput) UnmarshalJSON

func (i *InMageRcmFailbackPolicyCreationInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmFailbackPolicyCreationInput.

type InMageRcmFailbackPolicyDetails

type InMageRcmFailbackPolicyDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// The app consistent snapshot frequency in minutes.
	AppConsistentFrequencyInMinutes *int32 `json:"appConsistentFrequencyInMinutes,omitempty"`

	// The crash consistent snapshot frequency in minutes.
	CrashConsistentFrequencyInMinutes *int32 `json:"crashConsistentFrequencyInMinutes,omitempty"`
}

InMageRcmFailbackPolicyDetails - InMageRcm failback specific policy details.

func (*InMageRcmFailbackPolicyDetails) GetPolicyProviderSpecificDetails added in v0.2.0

func (i *InMageRcmFailbackPolicyDetails) GetPolicyProviderSpecificDetails() *PolicyProviderSpecificDetails

GetPolicyProviderSpecificDetails implements the PolicyProviderSpecificDetailsClassification interface for type InMageRcmFailbackPolicyDetails.

func (InMageRcmFailbackPolicyDetails) MarshalJSON

func (i InMageRcmFailbackPolicyDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmFailbackPolicyDetails.

func (*InMageRcmFailbackPolicyDetails) UnmarshalJSON

func (i *InMageRcmFailbackPolicyDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmFailbackPolicyDetails.

type InMageRcmFailbackProtectedDiskDetails

type InMageRcmFailbackProtectedDiskDetails struct {
	// The initial replication details.
	IrDetails *InMageRcmFailbackSyncDetails `json:"irDetails,omitempty"`

	// The resync details.
	ResyncDetails *InMageRcmFailbackSyncDetails `json:"resyncDetails,omitempty"`

	// READ-ONLY; The disk capacity in bytes.
	CapacityInBytes *int64 `json:"capacityInBytes,omitempty" azure:"ro"`

	// READ-ONLY; The data pending at source agent in MB.
	DataPendingAtSourceAgentInMB *float64 `json:"dataPendingAtSourceAgentInMB,omitempty" azure:"ro"`

	// READ-ONLY; The data pending in log data store in MB.
	DataPendingInLogDataStoreInMB *float64 `json:"dataPendingInLogDataStoreInMB,omitempty" azure:"ro"`

	// READ-ONLY; The disk Id (reported by source agent).
	DiskID *string `json:"diskId,omitempty" azure:"ro"`

	// READ-ONLY; The disk name.
	DiskName *string `json:"diskName,omitempty" azure:"ro"`

	// READ-ONLY; The disk Uuid (reported by vCenter).
	DiskUUID *string `json:"diskUuid,omitempty" azure:"ro"`

	// READ-ONLY; A value indicating whether initial replication is complete or not.
	IsInitialReplicationComplete *string `json:"isInitialReplicationComplete,omitempty" azure:"ro"`

	// READ-ONLY; A value indicating whether the disk is the OS disk.
	IsOSDisk *string `json:"isOSDisk,omitempty" azure:"ro"`

	// READ-ONLY; The last sync time.
	LastSyncTime *time.Time `json:"lastSyncTime,omitempty" azure:"ro"`
}

InMageRcmFailbackProtectedDiskDetails - InMageRcmFailback protected disk details.

func (InMageRcmFailbackProtectedDiskDetails) MarshalJSON

func (i InMageRcmFailbackProtectedDiskDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmFailbackProtectedDiskDetails.

func (*InMageRcmFailbackProtectedDiskDetails) UnmarshalJSON

func (i *InMageRcmFailbackProtectedDiskDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmFailbackProtectedDiskDetails.

type InMageRcmFailbackRecoveryPointType

type InMageRcmFailbackRecoveryPointType string

InMageRcmFailbackRecoveryPointType - The recovery point type.

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

func PossibleInMageRcmFailbackRecoveryPointTypeValues

func PossibleInMageRcmFailbackRecoveryPointTypeValues() []InMageRcmFailbackRecoveryPointType

PossibleInMageRcmFailbackRecoveryPointTypeValues returns the possible values for the InMageRcmFailbackRecoveryPointType const type.

type InMageRcmFailbackReplicationDetails

type InMageRcmFailbackReplicationDetails struct {
	// REQUIRED; Gets the Instance type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The discovered VM information.
	DiscoveredVMDetails *InMageRcmFailbackDiscoveredProtectedVMDetails `json:"discoveredVmDetails,omitempty"`

	// The mobility agent information.
	MobilityAgentDetails *InMageRcmFailbackMobilityAgentDetails `json:"mobilityAgentDetails,omitempty"`

	// The list of protected disks.
	ProtectedDisks []*InMageRcmFailbackProtectedDiskDetails `json:"protectedDisks,omitempty"`

	// The network details.
	VMNics []*InMageRcmFailbackNicDetails `json:"vmNics,omitempty"`

	// READ-ONLY; The ARM Id of the azure VM.
	AzureVirtualMachineID *string `json:"azureVirtualMachineId,omitempty" azure:"ro"`

	// READ-ONLY; The initial replication processed bytes. This includes sum of total bytes transferred and matched bytes on all
	// selected disks in source VM.
	InitialReplicationProcessedBytes *int64 `json:"initialReplicationProcessedBytes,omitempty" azure:"ro"`

	// READ-ONLY; The initial replication progress health.
	InitialReplicationProgressHealth *VMReplicationProgressHealth `json:"initialReplicationProgressHealth,omitempty" azure:"ro"`

	// READ-ONLY; The initial replication progress percentage.
	InitialReplicationProgressPercentage *int32 `json:"initialReplicationProgressPercentage,omitempty" azure:"ro"`

	// READ-ONLY; The initial replication transferred bytes from source VM to target for all selected disks on source VM.
	InitialReplicationTransferredBytes *int64 `json:"initialReplicationTransferredBytes,omitempty" azure:"ro"`

	// READ-ONLY; The virtual machine internal identifier.
	InternalIdentifier *string `json:"internalIdentifier,omitempty" azure:"ro"`

	// READ-ONLY; A value indicating whether agent registration was successful after failover.
	IsAgentRegistrationSuccessfulAfterFailover *bool `json:"isAgentRegistrationSuccessfulAfterFailover,omitempty" azure:"ro"`

	// READ-ONLY; The last planned failover start time.
	LastPlannedFailoverStartTime *time.Time `json:"lastPlannedFailoverStartTime,omitempty" azure:"ro"`

	// READ-ONLY; The last planned failover status.
	LastPlannedFailoverStatus *PlannedFailoverStatus `json:"lastPlannedFailoverStatus,omitempty" azure:"ro"`

	// READ-ONLY; The policy friendly name used by the forward replication.
	LastUsedPolicyFriendlyName *string `json:"lastUsedPolicyFriendlyName,omitempty" azure:"ro"`

	// READ-ONLY; The policy Id used by the forward replication.
	LastUsedPolicyID *string `json:"lastUsedPolicyId,omitempty" azure:"ro"`

	// READ-ONLY; The log storage account ARM Id.
	LogStorageAccountID *string `json:"logStorageAccountId,omitempty" azure:"ro"`

	// READ-ONLY; The multi VM group name.
	MultiVMGroupName *string `json:"multiVmGroupName,omitempty" azure:"ro"`

	// READ-ONLY; The type of the OS on the VM.
	OSType *string `json:"osType,omitempty" azure:"ro"`

	// READ-ONLY; The reprotect agent Id.
	ReprotectAgentID *string `json:"reprotectAgentId,omitempty" azure:"ro"`

	// READ-ONLY; The reprotect agent name.
	ReprotectAgentName *string `json:"reprotectAgentName,omitempty" azure:"ro"`

	// READ-ONLY; The resync processed bytes. This includes sum of total bytes transferred and matched bytes on all selected disks
	// in source VM.
	ResyncProcessedBytes *int64 `json:"resyncProcessedBytes,omitempty" azure:"ro"`

	// READ-ONLY; The resync progress health.
	ResyncProgressHealth *VMReplicationProgressHealth `json:"resyncProgressHealth,omitempty" azure:"ro"`

	// READ-ONLY; The resync progress percentage.
	ResyncProgressPercentage *int32 `json:"resyncProgressPercentage,omitempty" azure:"ro"`

	// READ-ONLY; A value indicating whether resync is required.
	ResyncRequired *string `json:"resyncRequired,omitempty" azure:"ro"`

	// READ-ONLY; The resync state.
	ResyncState *ResyncState `json:"resyncState,omitempty" azure:"ro"`

	// READ-ONLY; The resync transferred bytes from source VM to target for all selected disks on source VM.
	ResyncTransferredBytes *int64 `json:"resyncTransferredBytes,omitempty" azure:"ro"`

	// READ-ONLY; The target datastore name.
	TargetDataStoreName *string `json:"targetDataStoreName,omitempty" azure:"ro"`

	// READ-ONLY; The target VM name.
	TargetVMName *string `json:"targetVmName,omitempty" azure:"ro"`

	// READ-ONLY; The target vCenter Id.
	TargetvCenterID *string `json:"targetvCenterId,omitempty" azure:"ro"`
}

InMageRcmFailbackReplicationDetails - InMageRcmFailback provider specific details.

func (*InMageRcmFailbackReplicationDetails) GetReplicationProviderSpecificSettings added in v0.2.0

func (i *InMageRcmFailbackReplicationDetails) GetReplicationProviderSpecificSettings() *ReplicationProviderSpecificSettings

GetReplicationProviderSpecificSettings implements the ReplicationProviderSpecificSettingsClassification interface for type InMageRcmFailbackReplicationDetails.

func (InMageRcmFailbackReplicationDetails) MarshalJSON

func (i InMageRcmFailbackReplicationDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmFailbackReplicationDetails.

func (*InMageRcmFailbackReplicationDetails) UnmarshalJSON

func (i *InMageRcmFailbackReplicationDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmFailbackReplicationDetails.

type InMageRcmFailbackReprotectInput

type InMageRcmFailbackReprotectInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; The Policy Id.
	PolicyID *string `json:"policyId,omitempty"`

	// REQUIRED; The process server Id.
	ProcessServerID *string `json:"processServerId,omitempty"`

	// The run as account Id.
	RunAsAccountID *string `json:"runAsAccountId,omitempty"`
}

InMageRcmFailbackReprotectInput - InMageRcmFailback specific provider input.

func (*InMageRcmFailbackReprotectInput) GetReverseReplicationProviderSpecificInput added in v0.2.0

func (i *InMageRcmFailbackReprotectInput) GetReverseReplicationProviderSpecificInput() *ReverseReplicationProviderSpecificInput

GetReverseReplicationProviderSpecificInput implements the ReverseReplicationProviderSpecificInputClassification interface for type InMageRcmFailbackReprotectInput.

func (InMageRcmFailbackReprotectInput) MarshalJSON

func (i InMageRcmFailbackReprotectInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmFailbackReprotectInput.

func (*InMageRcmFailbackReprotectInput) UnmarshalJSON

func (i *InMageRcmFailbackReprotectInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmFailbackReprotectInput.

type InMageRcmFailbackSyncDetails

type InMageRcmFailbackSyncDetails struct {
	// READ-ONLY; The bytes transferred in last 15 minutes from source VM to target.
	Last15MinutesTransferredBytes *int64 `json:"last15MinutesTransferredBytes,omitempty" azure:"ro"`

	// READ-ONLY; The time of the last data transfer from source VM to target.
	LastDataTransferTimeUTC *string `json:"lastDataTransferTimeUtc,omitempty" azure:"ro"`

	// READ-ONLY; The last refresh time.
	LastRefreshTime *string `json:"lastRefreshTime,omitempty" azure:"ro"`

	// READ-ONLY; The total processed bytes. This includes bytes that are transferred from source VM to target and matched bytes.
	ProcessedBytes *int64 `json:"processedBytes,omitempty" azure:"ro"`

	// READ-ONLY; The progress health.
	ProgressHealth *DiskReplicationProgressHealth `json:"progressHealth,omitempty" azure:"ro"`

	// READ-ONLY; Progress in percentage. Progress percentage is calculated based on processed bytes.
	ProgressPercentage *int32 `json:"progressPercentage,omitempty" azure:"ro"`

	// READ-ONLY; The start time.
	StartTime *string `json:"startTime,omitempty" azure:"ro"`

	// READ-ONLY; The transferred bytes from source VM to azure for the disk.
	TransferredBytes *int64 `json:"transferredBytes,omitempty" azure:"ro"`
}

InMageRcmFailbackSyncDetails - InMageRcmFailback disk level sync details.

func (InMageRcmFailbackSyncDetails) MarshalJSON added in v1.1.0

func (i InMageRcmFailbackSyncDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmFailbackSyncDetails.

func (*InMageRcmFailbackSyncDetails) UnmarshalJSON added in v1.1.0

func (i *InMageRcmFailbackSyncDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmFailbackSyncDetails.

type InMageRcmLastAgentUpgradeErrorDetails

type InMageRcmLastAgentUpgradeErrorDetails struct {
	// READ-ONLY; The error code.
	ErrorCode *string `json:"errorCode,omitempty" azure:"ro"`

	// READ-ONLY; The error message.
	ErrorMessage *string `json:"errorMessage,omitempty" azure:"ro"`

	// READ-ONLY; The error message parameters.
	ErrorMessageParameters map[string]*string `json:"errorMessageParameters,omitempty" azure:"ro"`

	// READ-ONLY; The error tags.
	ErrorTags map[string]*string `json:"errorTags,omitempty" azure:"ro"`

	// READ-ONLY; The possible causes.
	PossibleCauses *string `json:"possibleCauses,omitempty" azure:"ro"`

	// READ-ONLY; The recommended action.
	RecommendedAction *string `json:"recommendedAction,omitempty" azure:"ro"`
}

InMageRcmLastAgentUpgradeErrorDetails - InMageRcm last source agent upgrade error details.

func (InMageRcmLastAgentUpgradeErrorDetails) MarshalJSON

func (i InMageRcmLastAgentUpgradeErrorDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmLastAgentUpgradeErrorDetails.

func (*InMageRcmLastAgentUpgradeErrorDetails) UnmarshalJSON added in v1.1.0

func (i *InMageRcmLastAgentUpgradeErrorDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmLastAgentUpgradeErrorDetails.

type InMageRcmMobilityAgentDetails

type InMageRcmMobilityAgentDetails struct {
	// READ-ONLY; The agent version expiry date.
	AgentVersionExpiryDate *time.Time `json:"agentVersionExpiryDate,omitempty" azure:"ro"`

	// READ-ONLY; The driver version.
	DriverVersion *string `json:"driverVersion,omitempty" azure:"ro"`

	// READ-ONLY; The driver version expiry date.
	DriverVersionExpiryDate *time.Time `json:"driverVersionExpiryDate,omitempty" azure:"ro"`

	// READ-ONLY; A value indicating whether agent is upgradeable or not.
	IsUpgradeable *string `json:"isUpgradeable,omitempty" azure:"ro"`

	// READ-ONLY; The time of the last heartbeat received from the agent.
	LastHeartbeatUTC *time.Time `json:"lastHeartbeatUtc,omitempty" azure:"ro"`

	// READ-ONLY; The latest agent version release date.
	LatestAgentReleaseDate *string `json:"latestAgentReleaseDate,omitempty" azure:"ro"`

	// READ-ONLY; The latest upgradeable version available without reboot.
	LatestUpgradableVersionWithoutReboot *string `json:"latestUpgradableVersionWithoutReboot,omitempty" azure:"ro"`

	// READ-ONLY; The latest agent version available.
	LatestVersion *string `json:"latestVersion,omitempty" azure:"ro"`

	// READ-ONLY; The whether update is possible or not.
	ReasonsBlockingUpgrade []*AgentUpgradeBlockedReason `json:"reasonsBlockingUpgrade,omitempty" azure:"ro"`

	// READ-ONLY; The agent version.
	Version *string `json:"version,omitempty" azure:"ro"`
}

InMageRcmMobilityAgentDetails - InMageRcm mobility agent details.

func (InMageRcmMobilityAgentDetails) MarshalJSON

func (i InMageRcmMobilityAgentDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmMobilityAgentDetails.

func (*InMageRcmMobilityAgentDetails) UnmarshalJSON

func (i *InMageRcmMobilityAgentDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmMobilityAgentDetails.

type InMageRcmNicDetails

type InMageRcmNicDetails struct {
	// A value indicating whether this is the primary NIC.
	IsPrimaryNic *string `json:"isPrimaryNic,omitempty"`

	// A value indicating whether this NIC is selected for failover.
	IsSelectedForFailover *string `json:"isSelectedForFailover,omitempty"`

	// The target IP address.
	TargetIPAddress *string `json:"targetIPAddress,omitempty"`

	// The target IP address type.
	TargetIPAddressType *EthernetAddressType `json:"targetIPAddressType,omitempty"`

	// Target subnet name.
	TargetSubnetName *string `json:"targetSubnetName,omitempty"`

	// The test IP address.
	TestIPAddress *string `json:"testIPAddress,omitempty"`

	// The test IP address type.
	TestIPAddressType *EthernetAddressType `json:"testIPAddressType,omitempty"`

	// Test subnet name.
	TestSubnetName *string `json:"testSubnetName,omitempty"`

	// READ-ONLY; The NIC Id.
	NicID *string `json:"nicId,omitempty" azure:"ro"`

	// READ-ONLY; The source IP address.
	SourceIPAddress *string `json:"sourceIPAddress,omitempty" azure:"ro"`

	// READ-ONLY; The source IP address type.
	SourceIPAddressType *EthernetAddressType `json:"sourceIPAddressType,omitempty" azure:"ro"`

	// READ-ONLY; Source network Id.
	SourceNetworkID *string `json:"sourceNetworkId,omitempty" azure:"ro"`

	// READ-ONLY; Source subnet name.
	SourceSubnetName *string `json:"sourceSubnetName,omitempty" azure:"ro"`
}

InMageRcmNicDetails - InMageRcm NIC details.

func (InMageRcmNicDetails) MarshalJSON added in v1.1.0

func (i InMageRcmNicDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmNicDetails.

func (*InMageRcmNicDetails) UnmarshalJSON added in v1.1.0

func (i *InMageRcmNicDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmNicDetails.

type InMageRcmNicInput

type InMageRcmNicInput struct {
	// REQUIRED; A value indicating whether this is the primary NIC.
	IsPrimaryNic *string `json:"isPrimaryNic,omitempty"`

	// REQUIRED; The NIC Id.
	NicID *string `json:"nicId,omitempty"`

	// A value indicating whether this NIC is selected for failover.
	IsSelectedForFailover *string `json:"isSelectedForFailover,omitempty"`

	// The target static IP address.
	TargetStaticIPAddress *string `json:"targetStaticIPAddress,omitempty"`

	// Target subnet name.
	TargetSubnetName *string `json:"targetSubnetName,omitempty"`

	// The test static IP address.
	TestStaticIPAddress *string `json:"testStaticIPAddress,omitempty"`

	// The test subnet name.
	TestSubnetName *string `json:"testSubnetName,omitempty"`
}

InMageRcmNicInput - InMageRcm NIC input.

func (InMageRcmNicInput) MarshalJSON added in v1.1.0

func (i InMageRcmNicInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmNicInput.

func (*InMageRcmNicInput) UnmarshalJSON added in v1.1.0

func (i *InMageRcmNicInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmNicInput.

type InMageRcmPolicyCreationInput

type InMageRcmPolicyCreationInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The app consistent snapshot frequency (in minutes).
	AppConsistentFrequencyInMinutes *int32 `json:"appConsistentFrequencyInMinutes,omitempty"`

	// The crash consistent snapshot frequency (in minutes).
	CrashConsistentFrequencyInMinutes *int32 `json:"crashConsistentFrequencyInMinutes,omitempty"`

	// A value indicating whether multi-VM sync has to be enabled.
	EnableMultiVMSync *string `json:"enableMultiVmSync,omitempty"`

	// The duration in minutes until which the recovery points need to be stored.
	RecoveryPointHistoryInMinutes *int32 `json:"recoveryPointHistoryInMinutes,omitempty"`
}

InMageRcmPolicyCreationInput - InMageRcm policy creation input.

func (*InMageRcmPolicyCreationInput) GetPolicyProviderSpecificInput added in v0.2.0

func (i *InMageRcmPolicyCreationInput) GetPolicyProviderSpecificInput() *PolicyProviderSpecificInput

GetPolicyProviderSpecificInput implements the PolicyProviderSpecificInputClassification interface for type InMageRcmPolicyCreationInput.

func (InMageRcmPolicyCreationInput) MarshalJSON

func (i InMageRcmPolicyCreationInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmPolicyCreationInput.

func (*InMageRcmPolicyCreationInput) UnmarshalJSON

func (i *InMageRcmPolicyCreationInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmPolicyCreationInput.

type InMageRcmPolicyDetails

type InMageRcmPolicyDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// The app consistent snapshot frequency in minutes.
	AppConsistentFrequencyInMinutes *int32 `json:"appConsistentFrequencyInMinutes,omitempty"`

	// The crash consistent snapshot frequency in minutes.
	CrashConsistentFrequencyInMinutes *int32 `json:"crashConsistentFrequencyInMinutes,omitempty"`

	// A value indicating whether multi-VM sync has to be enabled.
	EnableMultiVMSync *string `json:"enableMultiVmSync,omitempty"`

	// The duration in minutes until which the recovery points need to be stored.
	RecoveryPointHistoryInMinutes *int32 `json:"recoveryPointHistoryInMinutes,omitempty"`
}

InMageRcmPolicyDetails - InMageRcm specific policy details.

func (*InMageRcmPolicyDetails) GetPolicyProviderSpecificDetails added in v0.2.0

func (i *InMageRcmPolicyDetails) GetPolicyProviderSpecificDetails() *PolicyProviderSpecificDetails

GetPolicyProviderSpecificDetails implements the PolicyProviderSpecificDetailsClassification interface for type InMageRcmPolicyDetails.

func (InMageRcmPolicyDetails) MarshalJSON

func (i InMageRcmPolicyDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmPolicyDetails.

func (*InMageRcmPolicyDetails) UnmarshalJSON

func (i *InMageRcmPolicyDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmPolicyDetails.

type InMageRcmProtectedDiskDetails

type InMageRcmProtectedDiskDetails struct {
	// The disk type.
	DiskType *DiskAccountType `json:"diskType,omitempty"`

	// The initial replication details.
	IrDetails *InMageRcmSyncDetails `json:"irDetails,omitempty"`

	// The resync details.
	ResyncDetails *InMageRcmSyncDetails `json:"resyncDetails,omitempty"`

	// READ-ONLY; The disk capacity in bytes.
	CapacityInBytes *int64 `json:"capacityInBytes,omitempty" azure:"ro"`

	// READ-ONLY; The data pending at source agent in MB.
	DataPendingAtSourceAgentInMB *float64 `json:"dataPendingAtSourceAgentInMB,omitempty" azure:"ro"`

	// READ-ONLY; The data pending in log data store in MB.
	DataPendingInLogDataStoreInMB *float64 `json:"dataPendingInLogDataStoreInMB,omitempty" azure:"ro"`

	// READ-ONLY; The DiskEncryptionSet ARM Id.
	DiskEncryptionSetID *string `json:"diskEncryptionSetId,omitempty" azure:"ro"`

	// READ-ONLY; The disk Id.
	DiskID *string `json:"diskId,omitempty" azure:"ro"`

	// READ-ONLY; The disk name.
	DiskName *string `json:"diskName,omitempty" azure:"ro"`

	// READ-ONLY; A value indicating whether initial replication is complete or not.
	IsInitialReplicationComplete *string `json:"isInitialReplicationComplete,omitempty" azure:"ro"`

	// READ-ONLY; A value indicating whether the disk is the OS disk.
	IsOSDisk *string `json:"isOSDisk,omitempty" azure:"ro"`

	// READ-ONLY; The log storage account ARM Id.
	LogStorageAccountID *string `json:"logStorageAccountId,omitempty" azure:"ro"`

	// READ-ONLY; The uri of the seed blob.
	SeedBlobURI *string `json:"seedBlobUri,omitempty" azure:"ro"`

	// READ-ONLY; The ARM Id of the seed managed disk.
	SeedManagedDiskID *string `json:"seedManagedDiskId,omitempty" azure:"ro"`

	// READ-ONLY; The ARM Id of the target managed disk.
	TargetManagedDiskID *string `json:"targetManagedDiskId,omitempty" azure:"ro"`
}

InMageRcmProtectedDiskDetails - InMageRcm protected disk details.

func (InMageRcmProtectedDiskDetails) MarshalJSON added in v1.1.0

func (i InMageRcmProtectedDiskDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmProtectedDiskDetails.

func (*InMageRcmProtectedDiskDetails) UnmarshalJSON added in v1.1.0

func (i *InMageRcmProtectedDiskDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmProtectedDiskDetails.

type InMageRcmProtectionContainerMappingDetails

type InMageRcmProtectionContainerMappingDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// READ-ONLY; A value indicating whether the flag for enable agent auto upgrade.
	EnableAgentAutoUpgrade *string `json:"enableAgentAutoUpgrade,omitempty" azure:"ro"`
}

InMageRcmProtectionContainerMappingDetails - InMageRcm provider specific container mapping details.

func (*InMageRcmProtectionContainerMappingDetails) GetProtectionContainerMappingProviderSpecificDetails added in v0.2.0

func (i *InMageRcmProtectionContainerMappingDetails) GetProtectionContainerMappingProviderSpecificDetails() *ProtectionContainerMappingProviderSpecificDetails

GetProtectionContainerMappingProviderSpecificDetails implements the ProtectionContainerMappingProviderSpecificDetailsClassification interface for type InMageRcmProtectionContainerMappingDetails.

func (InMageRcmProtectionContainerMappingDetails) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type InMageRcmProtectionContainerMappingDetails.

func (*InMageRcmProtectionContainerMappingDetails) UnmarshalJSON

func (i *InMageRcmProtectionContainerMappingDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmProtectionContainerMappingDetails.

type InMageRcmRecoveryPointDetails

type InMageRcmRecoveryPointDetails struct {
	// REQUIRED; Gets the provider type.
	InstanceType *string `json:"instanceType,omitempty"`

	// READ-ONLY; A value indicating whether the recovery point is multi VM consistent.
	IsMultiVMSyncPoint *string `json:"isMultiVmSyncPoint,omitempty" azure:"ro"`
}

InMageRcmRecoveryPointDetails - InMageRcm provider specific recovery point details.

func (*InMageRcmRecoveryPointDetails) GetProviderSpecificRecoveryPointDetails added in v0.2.0

func (i *InMageRcmRecoveryPointDetails) GetProviderSpecificRecoveryPointDetails() *ProviderSpecificRecoveryPointDetails

GetProviderSpecificRecoveryPointDetails implements the ProviderSpecificRecoveryPointDetailsClassification interface for type InMageRcmRecoveryPointDetails.

func (InMageRcmRecoveryPointDetails) MarshalJSON

func (i InMageRcmRecoveryPointDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmRecoveryPointDetails.

func (*InMageRcmRecoveryPointDetails) UnmarshalJSON

func (i *InMageRcmRecoveryPointDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmRecoveryPointDetails.

type InMageRcmReplicationDetails

type InMageRcmReplicationDetails struct {
	// REQUIRED; Gets the Instance type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The agent upgrade blocking error information.
	AgentUpgradeBlockingErrorDetails []*InMageRcmAgentUpgradeBlockingErrorDetails `json:"agentUpgradeBlockingErrorDetails,omitempty"`

	// The discovered VM details.
	DiscoveredVMDetails *InMageRcmDiscoveredProtectedVMDetails `json:"discoveredVmDetails,omitempty"`

	// The last agent upgrade error information.
	LastAgentUpgradeErrorDetails []*InMageRcmLastAgentUpgradeErrorDetails `json:"lastAgentUpgradeErrorDetails,omitempty"`

	// License Type of the VM to be used.
	LicenseType *string `json:"licenseType,omitempty"`

	// The mobility agent information.
	MobilityAgentDetails *InMageRcmMobilityAgentDetails `json:"mobilityAgentDetails,omitempty"`

	// The list of protected disks.
	ProtectedDisks []*InMageRcmProtectedDiskDetails `json:"protectedDisks,omitempty"`

	// The target availability set Id.
	TargetAvailabilitySetID *string `json:"targetAvailabilitySetId,omitempty"`

	// The target availability zone.
	TargetAvailabilityZone *string `json:"targetAvailabilityZone,omitempty"`

	// The target boot diagnostics storage account ARM Id.
	TargetBootDiagnosticsStorageAccountID *string `json:"targetBootDiagnosticsStorageAccountId,omitempty"`

	// The target location.
	TargetLocation *string `json:"targetLocation,omitempty"`

	// The target network Id.
	TargetNetworkID *string `json:"targetNetworkId,omitempty"`

	// The target proximity placement group Id.
	TargetProximityPlacementGroupID *string `json:"targetProximityPlacementGroupId,omitempty"`

	// The target resource group Id.
	TargetResourceGroupID *string `json:"targetResourceGroupId,omitempty"`

	// Target VM name.
	TargetVMName *string `json:"targetVmName,omitempty"`

	// The target VM size.
	TargetVMSize *string `json:"targetVmSize,omitempty"`

	// The test network Id.
	TestNetworkID *string `json:"testNetworkId,omitempty"`

	// The network details.
	VMNics []*InMageRcmNicDetails `json:"vmNics,omitempty"`

	// READ-ONLY; The agent version to which last agent upgrade was attempted.
	AgentUpgradeAttemptToVersion *string `json:"agentUpgradeAttemptToVersion,omitempty" azure:"ro"`

	// READ-ONLY; The agent upgrade job Id.
	AgentUpgradeJobID *string `json:"agentUpgradeJobId,omitempty" azure:"ro"`

	// READ-ONLY; The agent auto upgrade state.
	AgentUpgradeState *MobilityAgentUpgradeState `json:"agentUpgradeState,omitempty" azure:"ro"`

	// READ-ONLY; The allocated memory in MB.
	AllocatedMemoryInMB *float64 `json:"allocatedMemoryInMB,omitempty" azure:"ro"`

	// READ-ONLY; The type of the discovered VM.
	DiscoveryType *string `json:"discoveryType,omitempty" azure:"ro"`

	// READ-ONLY; The ARM Id of the discovered VM.
	FabricDiscoveryMachineID *string `json:"fabricDiscoveryMachineId,omitempty" azure:"ro"`

	// READ-ONLY; The recovery point Id to which the VM was failed over.
	FailoverRecoveryPointID *string `json:"failoverRecoveryPointId,omitempty" azure:"ro"`

	// READ-ONLY; The firmware type.
	FirmwareType *string `json:"firmwareType,omitempty" azure:"ro"`

	// READ-ONLY; The initial replication processed bytes. This includes sum of total bytes transferred and matched bytes on all
	// selected disks in source VM.
	InitialReplicationProcessedBytes *int64 `json:"initialReplicationProcessedBytes,omitempty" azure:"ro"`

	// READ-ONLY; The initial replication progress health.
	InitialReplicationProgressHealth *VMReplicationProgressHealth `json:"initialReplicationProgressHealth,omitempty" azure:"ro"`

	// READ-ONLY; The initial replication progress percentage. This is calculated based on total bytes processed for all disks
	// in the source VM.
	InitialReplicationProgressPercentage *int32 `json:"initialReplicationProgressPercentage,omitempty" azure:"ro"`

	// READ-ONLY; The initial replication transferred bytes from source VM to azure for all selected disks on source VM.
	InitialReplicationTransferredBytes *int64 `json:"initialReplicationTransferredBytes,omitempty" azure:"ro"`

	// READ-ONLY; The virtual machine internal identifier.
	InternalIdentifier *string `json:"internalIdentifier,omitempty" azure:"ro"`

	// READ-ONLY; A value indicating whether agent registration was successful after failover.
	IsAgentRegistrationSuccessfulAfterFailover *bool `json:"isAgentRegistrationSuccessfulAfterFailover,omitempty" azure:"ro"`

	// READ-ONLY; A value indicating whether last agent upgrade was successful or not.
	IsLastUpgradeSuccessful *string `json:"isLastUpgradeSuccessful,omitempty" azure:"ro"`

	// READ-ONLY; The last agent upgrade type.
	LastAgentUpgradeType *string `json:"lastAgentUpgradeType,omitempty" azure:"ro"`

	// READ-ONLY; The last recovery point Id.
	LastRecoveryPointID *string `json:"lastRecoveryPointId,omitempty" azure:"ro"`

	// READ-ONLY; The last recovery point received time.
	LastRecoveryPointReceived *time.Time `json:"lastRecoveryPointReceived,omitempty" azure:"ro"`

	// READ-ONLY; The last recovery point objective calculated time.
	LastRpoCalculatedTime *time.Time `json:"lastRpoCalculatedTime,omitempty" azure:"ro"`

	// READ-ONLY; The last recovery point objective value.
	LastRpoInSeconds *int64 `json:"lastRpoInSeconds,omitempty" azure:"ro"`

	// READ-ONLY; The multi VM group name.
	MultiVMGroupName *string `json:"multiVmGroupName,omitempty" azure:"ro"`

	// READ-ONLY; The type of the OS on the VM.
	OSType *string `json:"osType,omitempty" azure:"ro"`

	// READ-ONLY; The IP address of the primary network interface.
	PrimaryNicIPAddress *string `json:"primaryNicIpAddress,omitempty" azure:"ro"`

	// READ-ONLY; The process server Id.
	ProcessServerID *string `json:"processServerId,omitempty" azure:"ro"`

	// READ-ONLY; The process server name.
	ProcessServerName *string `json:"processServerName,omitempty" azure:"ro"`

	// READ-ONLY; The processor core count.
	ProcessorCoreCount *int32 `json:"processorCoreCount,omitempty" azure:"ro"`

	// READ-ONLY; The resync processed bytes. This includes sum of total bytes transferred and matched bytes on all selected disks
	// in source VM.
	ResyncProcessedBytes *int64 `json:"resyncProcessedBytes,omitempty" azure:"ro"`

	// READ-ONLY; The resync progress health.
	ResyncProgressHealth *VMReplicationProgressHealth `json:"resyncProgressHealth,omitempty" azure:"ro"`

	// READ-ONLY; The resync progress percentage. This is calculated based on total bytes processed for all disks in the source
	// VM.
	ResyncProgressPercentage *int32 `json:"resyncProgressPercentage,omitempty" azure:"ro"`

	// READ-ONLY; A value indicating whether resync is required.
	ResyncRequired *string `json:"resyncRequired,omitempty" azure:"ro"`

	// READ-ONLY; The resync state.
	ResyncState *ResyncState `json:"resyncState,omitempty" azure:"ro"`

	// READ-ONLY; The resync transferred bytes from source VM to azure for all selected disks on source VM.
	ResyncTransferredBytes *int64 `json:"resyncTransferredBytes,omitempty" azure:"ro"`

	// READ-ONLY; The run-as account Id.
	RunAsAccountID *string `json:"runAsAccountId,omitempty" azure:"ro"`

	// READ-ONLY; The replication storage account ARM Id. This is applicable only for the blob based replication test hook.
	StorageAccountID *string `json:"storageAccountId,omitempty" azure:"ro"`

	// READ-ONLY; The target generation.
	TargetGeneration *string `json:"targetGeneration,omitempty" azure:"ro"`
}

InMageRcmReplicationDetails - InMageRcm provider specific details.

func (*InMageRcmReplicationDetails) GetReplicationProviderSpecificSettings added in v0.2.0

func (i *InMageRcmReplicationDetails) GetReplicationProviderSpecificSettings() *ReplicationProviderSpecificSettings

GetReplicationProviderSpecificSettings implements the ReplicationProviderSpecificSettingsClassification interface for type InMageRcmReplicationDetails.

func (InMageRcmReplicationDetails) MarshalJSON

func (i InMageRcmReplicationDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmReplicationDetails.

func (*InMageRcmReplicationDetails) UnmarshalJSON

func (i *InMageRcmReplicationDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmReplicationDetails.

type InMageRcmReprotectInput

type InMageRcmReprotectInput struct {
	// REQUIRED; The target datastore name.
	DatastoreName *string `json:"datastoreName,omitempty"`

	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; The log storage account ARM Id.
	LogStorageAccountID *string `json:"logStorageAccountId,omitempty"`

	// REQUIRED; The reprotect agent Id.
	ReprotectAgentID *string `json:"reprotectAgentId,omitempty"`

	// The Policy Id.
	PolicyID *string `json:"policyId,omitempty"`
}

InMageRcmReprotectInput - InMageRcm specific provider input.

func (*InMageRcmReprotectInput) GetReverseReplicationProviderSpecificInput added in v0.2.0

func (i *InMageRcmReprotectInput) GetReverseReplicationProviderSpecificInput() *ReverseReplicationProviderSpecificInput

GetReverseReplicationProviderSpecificInput implements the ReverseReplicationProviderSpecificInputClassification interface for type InMageRcmReprotectInput.

func (InMageRcmReprotectInput) MarshalJSON

func (i InMageRcmReprotectInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmReprotectInput.

func (*InMageRcmReprotectInput) UnmarshalJSON

func (i *InMageRcmReprotectInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmReprotectInput.

type InMageRcmSyncDetails

type InMageRcmSyncDetails struct {
	// READ-ONLY; The bytes transferred in last 15 minutes from source VM to azure.
	Last15MinutesTransferredBytes *int64 `json:"last15MinutesTransferredBytes,omitempty" azure:"ro"`

	// READ-ONLY; The time of the last data transfer from source VM to azure.
	LastDataTransferTimeUTC *string `json:"lastDataTransferTimeUtc,omitempty" azure:"ro"`

	// READ-ONLY; The last refresh time.
	LastRefreshTime *string `json:"lastRefreshTime,omitempty" azure:"ro"`

	// READ-ONLY; The total processed bytes. This includes bytes that are transferred from source VM to azure and matched bytes.
	ProcessedBytes *int64 `json:"processedBytes,omitempty" azure:"ro"`

	// READ-ONLY; The progress health.
	ProgressHealth *DiskReplicationProgressHealth `json:"progressHealth,omitempty" azure:"ro"`

	// READ-ONLY; Progress in percentage. Progress percentage is calculated based on processed bytes.
	ProgressPercentage *int32 `json:"progressPercentage,omitempty" azure:"ro"`

	// READ-ONLY; The start time.
	StartTime *string `json:"startTime,omitempty" azure:"ro"`

	// READ-ONLY; The transferred bytes from source VM to azure for the disk.
	TransferredBytes *int64 `json:"transferredBytes,omitempty" azure:"ro"`
}

InMageRcmSyncDetails - InMageRcm disk level sync details.

func (InMageRcmSyncDetails) MarshalJSON added in v1.1.0

func (i InMageRcmSyncDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmSyncDetails.

func (*InMageRcmSyncDetails) UnmarshalJSON added in v1.1.0

func (i *InMageRcmSyncDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmSyncDetails.

type InMageRcmTestFailoverInput

type InMageRcmTestFailoverInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The test network Id.
	NetworkID *string `json:"networkId,omitempty"`

	// The recovery point id to be passed to test failover to a particular recovery point. In case of latest recovery point, null
	// should be passed.
	RecoveryPointID *string `json:"recoveryPointId,omitempty"`
}

InMageRcmTestFailoverInput - InMageRcm provider specific input for test failover.

func (*InMageRcmTestFailoverInput) GetTestFailoverProviderSpecificInput added in v0.2.0

func (i *InMageRcmTestFailoverInput) GetTestFailoverProviderSpecificInput() *TestFailoverProviderSpecificInput

GetTestFailoverProviderSpecificInput implements the TestFailoverProviderSpecificInputClassification interface for type InMageRcmTestFailoverInput.

func (InMageRcmTestFailoverInput) MarshalJSON

func (i InMageRcmTestFailoverInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmTestFailoverInput.

func (*InMageRcmTestFailoverInput) UnmarshalJSON

func (i *InMageRcmTestFailoverInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmTestFailoverInput.

type InMageRcmUnplannedFailoverInput

type InMageRcmUnplannedFailoverInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; A value indicating whether VM is to be shutdown.
	PerformShutdown *string `json:"performShutdown,omitempty"`

	// The recovery point id to be passed to failover to a particular recovery point. In case of latest recovery point, null should
	// be passed.
	RecoveryPointID *string `json:"recoveryPointId,omitempty"`
}

InMageRcmUnplannedFailoverInput - InMageRcm provider specific input for unplanned failover.

func (*InMageRcmUnplannedFailoverInput) GetUnplannedFailoverProviderSpecificInput added in v0.2.0

func (i *InMageRcmUnplannedFailoverInput) GetUnplannedFailoverProviderSpecificInput() *UnplannedFailoverProviderSpecificInput

GetUnplannedFailoverProviderSpecificInput implements the UnplannedFailoverProviderSpecificInputClassification interface for type InMageRcmUnplannedFailoverInput.

func (InMageRcmUnplannedFailoverInput) MarshalJSON

func (i InMageRcmUnplannedFailoverInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmUnplannedFailoverInput.

func (*InMageRcmUnplannedFailoverInput) UnmarshalJSON

func (i *InMageRcmUnplannedFailoverInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmUnplannedFailoverInput.

type InMageRcmUpdateApplianceForReplicationProtectedItemInput

type InMageRcmUpdateApplianceForReplicationProtectedItemInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The run as account Id.
	RunAsAccountID *string `json:"runAsAccountId,omitempty"`
}

InMageRcmUpdateApplianceForReplicationProtectedItemInput - InMageRcm provider specific input to update appliance for replication protected item.

func (*InMageRcmUpdateApplianceForReplicationProtectedItemInput) GetUpdateApplianceForReplicationProtectedItemProviderSpecificInput added in v0.2.0

func (i *InMageRcmUpdateApplianceForReplicationProtectedItemInput) GetUpdateApplianceForReplicationProtectedItemProviderSpecificInput() *UpdateApplianceForReplicationProtectedItemProviderSpecificInput

GetUpdateApplianceForReplicationProtectedItemProviderSpecificInput implements the UpdateApplianceForReplicationProtectedItemProviderSpecificInputClassification interface for type InMageRcmUpdateApplianceForReplicationProtectedItemInput.

func (InMageRcmUpdateApplianceForReplicationProtectedItemInput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type InMageRcmUpdateApplianceForReplicationProtectedItemInput.

func (*InMageRcmUpdateApplianceForReplicationProtectedItemInput) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmUpdateApplianceForReplicationProtectedItemInput.

type InMageRcmUpdateContainerMappingInput

type InMageRcmUpdateContainerMappingInput struct {
	// REQUIRED; A value indicating whether agent auto upgrade has to be enabled.
	EnableAgentAutoUpgrade *string `json:"enableAgentAutoUpgrade,omitempty"`

	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

InMageRcmUpdateContainerMappingInput - InMageRcm update protection container mapping.

func (*InMageRcmUpdateContainerMappingInput) GetReplicationProviderSpecificUpdateContainerMappingInput added in v0.2.0

func (i *InMageRcmUpdateContainerMappingInput) GetReplicationProviderSpecificUpdateContainerMappingInput() *ReplicationProviderSpecificUpdateContainerMappingInput

GetReplicationProviderSpecificUpdateContainerMappingInput implements the ReplicationProviderSpecificUpdateContainerMappingInputClassification interface for type InMageRcmUpdateContainerMappingInput.

func (InMageRcmUpdateContainerMappingInput) MarshalJSON

func (i InMageRcmUpdateContainerMappingInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageRcmUpdateContainerMappingInput.

func (*InMageRcmUpdateContainerMappingInput) UnmarshalJSON

func (i *InMageRcmUpdateContainerMappingInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmUpdateContainerMappingInput.

type InMageRcmUpdateReplicationProtectedItemInput

type InMageRcmUpdateReplicationProtectedItemInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The license type.
	LicenseType *LicenseType `json:"licenseType,omitempty"`

	// The target availability set ARM Id.
	TargetAvailabilitySetID *string `json:"targetAvailabilitySetId,omitempty"`

	// The target availability zone.
	TargetAvailabilityZone *string `json:"targetAvailabilityZone,omitempty"`

	// The target boot diagnostics storage account ARM Id.
	TargetBootDiagnosticsStorageAccountID *string `json:"targetBootDiagnosticsStorageAccountId,omitempty"`

	// The target network ARM Id.
	TargetNetworkID *string `json:"targetNetworkId,omitempty"`

	// The target proximity placement group Id.
	TargetProximityPlacementGroupID *string `json:"targetProximityPlacementGroupId,omitempty"`

	// The target resource group ARM Id.
	TargetResourceGroupID *string `json:"targetResourceGroupId,omitempty"`

	// The target VM name.
	TargetVMName *string `json:"targetVmName,omitempty"`

	// The target VM size.
	TargetVMSize *string `json:"targetVmSize,omitempty"`

	// The test network ARM Id.
	TestNetworkID *string `json:"testNetworkId,omitempty"`

	// The list of NIC details.
	VMNics []*InMageRcmNicInput `json:"vmNics,omitempty"`
}

InMageRcmUpdateReplicationProtectedItemInput - InMageRcm provider specific input to update replication protected item.

func (*InMageRcmUpdateReplicationProtectedItemInput) GetUpdateReplicationProtectedItemProviderInput added in v0.2.0

func (i *InMageRcmUpdateReplicationProtectedItemInput) GetUpdateReplicationProtectedItemProviderInput() *UpdateReplicationProtectedItemProviderInput

GetUpdateReplicationProtectedItemProviderInput implements the UpdateReplicationProtectedItemProviderInputClassification interface for type InMageRcmUpdateReplicationProtectedItemInput.

func (InMageRcmUpdateReplicationProtectedItemInput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type InMageRcmUpdateReplicationProtectedItemInput.

func (*InMageRcmUpdateReplicationProtectedItemInput) UnmarshalJSON

func (i *InMageRcmUpdateReplicationProtectedItemInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageRcmUpdateReplicationProtectedItemInput.

type InMageReplicationDetails

type InMageReplicationDetails struct {
	// REQUIRED; Gets the Instance type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The active location of the VM. If the VM is being protected from Azure, this field will take values from { Azure, OnPrem
	// }. If the VM is being protected between two data-centers, this field will be
	// OnPrem always.
	ActiveSiteType *string `json:"activeSiteType,omitempty"`

	// The agent details.
	AgentDetails *InMageAgentDetails `json:"agentDetails,omitempty"`

	// A value indicating the underlying Azure storage account. If the VM is not running in Azure, this value shall be set to
	// null.
	AzureStorageAccountID *string `json:"azureStorageAccountId,omitempty"`

	// The compressed data change rate in MB.
	CompressedDataRateInMB *float64 `json:"compressedDataRateInMB,omitempty"`

	// The collection of Consistency points.
	ConsistencyPoints map[string]*time.Time `json:"consistencyPoints,omitempty"`

	// The datastores of the on-premise machine Value can be list of strings that contain datastore names.
	Datastores []*string `json:"datastores,omitempty"`

	// A value indicating the discovery type of the machine.
	DiscoveryType *string `json:"discoveryType,omitempty"`

	// A value indicating whether any disk is resized for this VM.
	DiskResized *string `json:"diskResized,omitempty"`

	// The source IP address.
	IPAddress *string `json:"ipAddress,omitempty"`

	// The infrastructure VM Id.
	InfrastructureVMID *string `json:"infrastructureVmId,omitempty"`

	// A value indicating whether additional IR stats are available or not.
	IsAdditionalStatsAvailable *bool `json:"isAdditionalStatsAvailable,omitempty"`

	// The last heartbeat received from the source server.
	LastHeartbeat *time.Time `json:"lastHeartbeat,omitempty"`

	// The last RPO calculated time.
	LastRpoCalculatedTime *time.Time `json:"lastRpoCalculatedTime,omitempty"`

	// The last update time received from on-prem components.
	LastUpdateReceivedTime *time.Time `json:"lastUpdateReceivedTime,omitempty"`

	// The master target Id.
	MasterTargetID *string `json:"masterTargetId,omitempty"`

	// The multi vm group Id, if any.
	MultiVMGroupID *string `json:"multiVmGroupId,omitempty"`

	// The multi vm group name, if any.
	MultiVMGroupName *string `json:"multiVmGroupName,omitempty"`

	// A value indicating whether the multi vm sync is enabled or disabled.
	MultiVMSyncStatus *string `json:"multiVmSyncStatus,omitempty"`

	// The OS details.
	OSDetails *OSDiskDetails `json:"osDetails,omitempty"`

	// The OS Version of the protected item.
	OSVersion *string `json:"osVersion,omitempty"`

	// The process server Id.
	ProcessServerID *string `json:"processServerId,omitempty"`

	// The list of protected disks.
	ProtectedDisks []*InMageProtectedDiskDetails `json:"protectedDisks,omitempty"`

	// The protection stage.
	ProtectionStage *string `json:"protectionStage,omitempty"`

	// A value indicating whether the source server requires a restart after update.
	RebootAfterUpdateStatus *string `json:"rebootAfterUpdateStatus,omitempty"`

	// The replica id of the protected item.
	ReplicaID *string `json:"replicaId,omitempty"`

	// The resync details of the machine.
	ResyncDetails *InitialReplicationDetails `json:"resyncDetails,omitempty"`

	// The retention window end time.
	RetentionWindowEnd *time.Time `json:"retentionWindowEnd,omitempty"`

	// The retention window start time.
	RetentionWindowStart *time.Time `json:"retentionWindowStart,omitempty"`

	// The RPO in seconds.
	RpoInSeconds *int64 `json:"rpoInSeconds,omitempty"`

	// The CPU count of the VM on the primary side.
	SourceVMCPUCount *int32 `json:"sourceVmCpuCount,omitempty"`

	// The RAM size of the VM on the primary side.
	SourceVMRAMSizeInMB *int32 `json:"sourceVmRamSizeInMB,omitempty"`

	// The total transferred data in bytes.
	TotalDataTransferred *int64 `json:"totalDataTransferred,omitempty"`

	// The progress health.
	TotalProgressHealth *string `json:"totalProgressHealth,omitempty"`

	// The uncompressed data change rate in MB.
	UncompressedDataRateInMB *float64 `json:"uncompressedDataRateInMB,omitempty"`

	// The vCenter infrastructure Id.
	VCenterInfrastructureID *string `json:"vCenterInfrastructureId,omitempty"`

	// The virtual machine Id.
	VMID *string `json:"vmId,omitempty"`

	// The PE Network details.
	VMNics []*VMNicDetails `json:"vmNics,omitempty"`

	// The protection state for the vm.
	VMProtectionState *string `json:"vmProtectionState,omitempty"`

	// The protection state description for the vm.
	VMProtectionStateDescription *string `json:"vmProtectionStateDescription,omitempty"`

	// The validation errors of the on-premise machine Value can be list of validation errors.
	ValidationErrors []*HealthError `json:"validationErrors,omitempty"`
}

InMageReplicationDetails - InMage provider specific settings.

func (*InMageReplicationDetails) GetReplicationProviderSpecificSettings added in v0.2.0

func (i *InMageReplicationDetails) GetReplicationProviderSpecificSettings() *ReplicationProviderSpecificSettings

GetReplicationProviderSpecificSettings implements the ReplicationProviderSpecificSettingsClassification interface for type InMageReplicationDetails.

func (InMageReplicationDetails) MarshalJSON

func (i InMageReplicationDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageReplicationDetails.

func (*InMageReplicationDetails) UnmarshalJSON

func (i *InMageReplicationDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageReplicationDetails.

type InMageReprotectInput

type InMageReprotectInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; The Master Target Id.
	MasterTargetID *string `json:"masterTargetId,omitempty"`

	// REQUIRED; The Process Server Id.
	ProcessServerID *string `json:"processServerId,omitempty"`

	// REQUIRED; The Policy Id.
	ProfileID *string `json:"profileId,omitempty"`

	// REQUIRED; The retention drive to use on the MT.
	RetentionDrive *string `json:"retentionDrive,omitempty"`

	// The target datastore name.
	DatastoreName *string `json:"datastoreName,omitempty"`

	// The enable disk exclusion input.
	DiskExclusionInput *InMageDiskExclusionInput `json:"diskExclusionInput,omitempty"`

	// The disks to include list.
	DisksToInclude []*string `json:"disksToInclude,omitempty"`

	// The CS account Id.
	RunAsAccountID *string `json:"runAsAccountId,omitempty"`
}

InMageReprotectInput - InMageAzureV2 specific provider input.

func (*InMageReprotectInput) GetReverseReplicationProviderSpecificInput added in v0.2.0

func (i *InMageReprotectInput) GetReverseReplicationProviderSpecificInput() *ReverseReplicationProviderSpecificInput

GetReverseReplicationProviderSpecificInput implements the ReverseReplicationProviderSpecificInputClassification interface for type InMageReprotectInput.

func (InMageReprotectInput) MarshalJSON

func (i InMageReprotectInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageReprotectInput.

func (*InMageReprotectInput) UnmarshalJSON

func (i *InMageReprotectInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageReprotectInput.

type InMageTestFailoverInput

type InMageTestFailoverInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The recovery point id to be passed to test failover to a particular recovery point. In case of latest recovery point, null
	// should be passed.
	RecoveryPointID *string `json:"recoveryPointId,omitempty"`

	// The recovery point type. Values from LatestTime, LatestTag or Custom. In the case of custom, the recovery point provided
	// by RecoveryPointId will be used. In the other two cases, recovery point id will
	// be ignored.
	RecoveryPointType *RecoveryPointType `json:"recoveryPointType,omitempty"`
}

InMageTestFailoverInput - Provider specific input for InMage test failover.

func (*InMageTestFailoverInput) GetTestFailoverProviderSpecificInput added in v0.2.0

func (i *InMageTestFailoverInput) GetTestFailoverProviderSpecificInput() *TestFailoverProviderSpecificInput

GetTestFailoverProviderSpecificInput implements the TestFailoverProviderSpecificInputClassification interface for type InMageTestFailoverInput.

func (InMageTestFailoverInput) MarshalJSON

func (i InMageTestFailoverInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageTestFailoverInput.

func (*InMageTestFailoverInput) UnmarshalJSON

func (i *InMageTestFailoverInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageTestFailoverInput.

type InMageUnplannedFailoverInput

type InMageUnplannedFailoverInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The recovery point id to be passed to failover to a particular recovery point. In case of latest recovery point, null should
	// be passed.
	RecoveryPointID *string `json:"recoveryPointId,omitempty"`

	// The recovery point type. Values from LatestTime, LatestTag or Custom. In the case of custom, the recovery point provided
	// by RecoveryPointId will be used. In the other two cases, recovery point id will
	// be ignored.
	RecoveryPointType *RecoveryPointType `json:"recoveryPointType,omitempty"`
}

InMageUnplannedFailoverInput - Provider specific input for InMage unplanned failover.

func (*InMageUnplannedFailoverInput) GetUnplannedFailoverProviderSpecificInput added in v0.2.0

func (i *InMageUnplannedFailoverInput) GetUnplannedFailoverProviderSpecificInput() *UnplannedFailoverProviderSpecificInput

GetUnplannedFailoverProviderSpecificInput implements the UnplannedFailoverProviderSpecificInputClassification interface for type InMageUnplannedFailoverInput.

func (InMageUnplannedFailoverInput) MarshalJSON

func (i InMageUnplannedFailoverInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageUnplannedFailoverInput.

func (*InMageUnplannedFailoverInput) UnmarshalJSON

func (i *InMageUnplannedFailoverInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageUnplannedFailoverInput.

type InMageV2RpRecoveryPointType

type InMageV2RpRecoveryPointType string

InMageV2RpRecoveryPointType - The recovery point type.

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

func PossibleInMageV2RpRecoveryPointTypeValues

func PossibleInMageV2RpRecoveryPointTypeValues() []InMageV2RpRecoveryPointType

PossibleInMageV2RpRecoveryPointTypeValues returns the possible values for the InMageV2RpRecoveryPointType const type.

type InMageVolumeExclusionOptions

type InMageVolumeExclusionOptions struct {
	// The value indicating whether to exclude multi volume disk or not. If a disk has multiple volumes and one of the volume
	// has label matching with VolumeLabel this disk will be excluded from replication
	// if OnlyExcludeIfSingleVolume is false.
	OnlyExcludeIfSingleVolume *string `json:"onlyExcludeIfSingleVolume,omitempty"`

	// The volume label. The disk having any volume with this label will be excluded from replication.
	VolumeLabel *string `json:"volumeLabel,omitempty"`
}

InMageVolumeExclusionOptions - Guest disk signature based disk exclusion option when doing enable protection of virtual machine in InMage provider.

func (InMageVolumeExclusionOptions) MarshalJSON added in v1.1.0

func (i InMageVolumeExclusionOptions) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InMageVolumeExclusionOptions.

func (*InMageVolumeExclusionOptions) UnmarshalJSON added in v1.1.0

func (i *InMageVolumeExclusionOptions) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InMageVolumeExclusionOptions.

type InconsistentVMDetails

type InconsistentVMDetails struct {
	// The Cloud name.
	CloudName *string `json:"cloudName,omitempty"`

	// The list of details regarding state of the Protected Entity in SRS and On prem.
	Details []*string `json:"details,omitempty"`

	// The list of error ids.
	ErrorIDs []*string `json:"errorIds,omitempty"`

	// The Vm name.
	VMName *string `json:"vmName,omitempty"`
}

InconsistentVMDetails - This class stores the monitoring details for consistency check of inconsistent Protected Entity.

func (InconsistentVMDetails) MarshalJSON

func (i InconsistentVMDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InconsistentVMDetails.

func (*InconsistentVMDetails) UnmarshalJSON added in v1.1.0

func (i *InconsistentVMDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InconsistentVMDetails.

type InitialReplicationDetails

type InitialReplicationDetails struct {
	// The initial replication progress percentage.
	InitialReplicationProgressPercentage *string `json:"initialReplicationProgressPercentage,omitempty"`

	// Initial replication type.
	InitialReplicationType *string `json:"initialReplicationType,omitempty"`
}

InitialReplicationDetails - Initial replication details.

func (InitialReplicationDetails) MarshalJSON added in v1.1.0

func (i InitialReplicationDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InitialReplicationDetails.

func (*InitialReplicationDetails) UnmarshalJSON added in v1.1.0

func (i *InitialReplicationDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InitialReplicationDetails.

type InlineWorkflowTaskDetails

type InlineWorkflowTaskDetails struct {
	// REQUIRED; The type of task details.
	InstanceType *string `json:"instanceType,omitempty"`

	// The child tasks.
	ChildTasks []*ASRTask `json:"childTasks,omitempty"`

	// The list of child workflow ids.
	WorkflowIDs []*string `json:"workflowIds,omitempty"`
}

InlineWorkflowTaskDetails - This class represents the inline workflow task details.

func (*InlineWorkflowTaskDetails) GetGroupTaskDetails added in v0.2.0

func (i *InlineWorkflowTaskDetails) GetGroupTaskDetails() *GroupTaskDetails

GetGroupTaskDetails implements the GroupTaskDetailsClassification interface for type InlineWorkflowTaskDetails.

func (InlineWorkflowTaskDetails) MarshalJSON

func (i InlineWorkflowTaskDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InlineWorkflowTaskDetails.

func (*InlineWorkflowTaskDetails) UnmarshalJSON

func (i *InlineWorkflowTaskDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InlineWorkflowTaskDetails.

type InnerHealthError

type InnerHealthError struct {
	// Error creation time (UTC).
	CreationTimeUTC *time.Time `json:"creationTimeUtc,omitempty"`

	// Value indicating whether the health error is customer resolvable.
	CustomerResolvability *HealthErrorCustomerResolvability `json:"customerResolvability,omitempty"`

	// ID of the entity.
	EntityID *string `json:"entityId,omitempty"`

	// Category of error.
	ErrorCategory *string `json:"errorCategory,omitempty"`

	// Error code.
	ErrorCode *string `json:"errorCode,omitempty"`

	// The health error unique id.
	ErrorID *string `json:"errorId,omitempty"`

	// Level of error.
	ErrorLevel *string `json:"errorLevel,omitempty"`

	// Error message.
	ErrorMessage *string `json:"errorMessage,omitempty"`

	// Source of error.
	ErrorSource *string `json:"errorSource,omitempty"`

	// Type of error.
	ErrorType *string `json:"errorType,omitempty"`

	// Possible causes of error.
	PossibleCauses *string `json:"possibleCauses,omitempty"`

	// Recommended action to resolve error.
	RecommendedAction *string `json:"recommendedAction,omitempty"`

	// DRA error message.
	RecoveryProviderErrorMessage *string `json:"recoveryProviderErrorMessage,omitempty"`

	// Summary message of the entity.
	SummaryMessage *string `json:"summaryMessage,omitempty"`
}

InnerHealthError - Implements InnerHealthError class. HealthError object has a list of InnerHealthErrors as child errors. InnerHealthError is used because this will prevent an infinite loop of structures when Hydra tries to auto-generate the contract. We are exposing the related health errors as inner health errors and all API consumers can utilize this in the same fashion as Exception -> InnerException.

func (InnerHealthError) MarshalJSON

func (i InnerHealthError) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InnerHealthError.

func (*InnerHealthError) UnmarshalJSON

func (i *InnerHealthError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InnerHealthError.

type InputEndpoint

type InputEndpoint struct {
	EndpointName *string `json:"endpointName,omitempty"`
	PrivatePort  *int32  `json:"privatePort,omitempty"`
	Protocol     *string `json:"protocol,omitempty"`
	PublicPort   *int32  `json:"publicPort,omitempty"`
}

func (InputEndpoint) MarshalJSON added in v1.1.0

func (i InputEndpoint) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InputEndpoint.

func (*InputEndpoint) UnmarshalJSON added in v1.1.0

func (i *InputEndpoint) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InputEndpoint.

type Job

type Job struct {
	// Resource Location
	Location *string `json:"location,omitempty"`

	// The custom data.
	Properties *JobProperties `json:"properties,omitempty"`

	// READ-ONLY; Resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Resource Name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Resource Type
	Type *string `json:"type,omitempty" azure:"ro"`
}

Job details.

func (Job) MarshalJSON added in v1.1.0

func (j Job) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Job.

func (*Job) UnmarshalJSON added in v1.1.0

func (j *Job) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Job.

type JobCollection

type JobCollection struct {
	// The value of next link.
	NextLink *string `json:"nextLink,omitempty"`

	// The list of jobs.
	Value []*Job `json:"value,omitempty"`
}

JobCollection - Collection of jobs.

func (JobCollection) MarshalJSON

func (j JobCollection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type JobCollection.

func (*JobCollection) UnmarshalJSON added in v1.1.0

func (j *JobCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobCollection.

type JobDetails

type JobDetails struct {
	// REQUIRED; Gets the type of job details (see JobDetailsTypes enum for possible values).
	InstanceType *string `json:"instanceType,omitempty"`

	// The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow
	// object details.
	AffectedObjectDetails map[string]*string `json:"affectedObjectDetails,omitempty"`
}

JobDetails - Job details based on specific job type.

func (*JobDetails) GetJobDetails

func (j *JobDetails) GetJobDetails() *JobDetails

GetJobDetails implements the JobDetailsClassification interface for type JobDetails.

func (JobDetails) MarshalJSON added in v0.2.0

func (j JobDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type JobDetails.

func (*JobDetails) UnmarshalJSON

func (j *JobDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobDetails.

type JobDetailsClassification

type JobDetailsClassification interface {
	// GetJobDetails returns the JobDetails content of the underlying type.
	GetJobDetails() *JobDetails
}

JobDetailsClassification provides polymorphic access to related types. Call the interface's GetJobDetails() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AsrJobDetails, *ExportJobDetails, *FailoverJobDetails, *JobDetails, *SwitchProtectionJobDetails, *TestFailoverJobDetails

type JobEntity

type JobEntity struct {
	// The job display name.
	JobFriendlyName *string `json:"jobFriendlyName,omitempty"`

	// The job id.
	JobID *string `json:"jobId,omitempty"`

	// The job name. Enum type ScenarioName.
	JobScenarioName *string `json:"jobScenarioName,omitempty"`

	// The workflow affected object type.
	TargetInstanceType *string `json:"targetInstanceType,omitempty"`

	// The object id.
	TargetObjectID *string `json:"targetObjectId,omitempty"`

	// The object name.
	TargetObjectName *string `json:"targetObjectName,omitempty"`
}

JobEntity - This class contains the minimal job details required to navigate to the desired drill down.

func (JobEntity) MarshalJSON added in v1.1.0

func (j JobEntity) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type JobEntity.

func (*JobEntity) UnmarshalJSON added in v1.1.0

func (j *JobEntity) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobEntity.

type JobErrorDetails

type JobErrorDetails struct {
	// The creation time of job error.
	CreationTime *time.Time `json:"creationTime,omitempty"`

	// Error level of error.
	ErrorLevel *string `json:"errorLevel,omitempty"`

	// The Provider error details.
	ProviderErrorDetails *ProviderError `json:"providerErrorDetails,omitempty"`

	// The Service error details.
	ServiceErrorDetails *ServiceError `json:"serviceErrorDetails,omitempty"`

	// The Id of the task.
	TaskID *string `json:"taskId,omitempty"`
}

JobErrorDetails - This class contains the error details per object.

func (JobErrorDetails) MarshalJSON

func (j JobErrorDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type JobErrorDetails.

func (*JobErrorDetails) UnmarshalJSON

func (j *JobErrorDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobErrorDetails.

type JobProperties

type JobProperties struct {
	// The activity id.
	ActivityID *string `json:"activityId,omitempty"`

	// The Allowed action the job.
	AllowedActions []*string `json:"allowedActions,omitempty"`

	// The custom job details like test failover job details.
	CustomDetails JobDetailsClassification `json:"customDetails,omitempty"`

	// The end time.
	EndTime *time.Time `json:"endTime,omitempty"`

	// The errors.
	Errors []*JobErrorDetails `json:"errors,omitempty"`

	// The DisplayName.
	FriendlyName *string `json:"friendlyName,omitempty"`

	// The ScenarioName.
	ScenarioName *string `json:"scenarioName,omitempty"`

	// The start time.
	StartTime *time.Time `json:"startTime,omitempty"`

	// The status of the Job. It is one of these values - NotStarted, InProgress, Succeeded, Failed, Cancelled, Suspended or Other.
	State *string `json:"state,omitempty"`

	// The description of the state of the Job. For e.g. - For Succeeded state, description can be Completed, PartiallySucceeded,
	// CompletedWithInformation or Skipped.
	StateDescription *string `json:"stateDescription,omitempty"`

	// The type of the affected object which is of Microsoft.Azure.SiteRecovery.V20151110.AffectedObjectType class.
	TargetInstanceType *string `json:"targetInstanceType,omitempty"`

	// The affected Object Id.
	TargetObjectID *string `json:"targetObjectId,omitempty"`

	// The name of the affected object.
	TargetObjectName *string `json:"targetObjectName,omitempty"`

	// The tasks.
	Tasks []*ASRTask `json:"tasks,omitempty"`
}

JobProperties - Job custom data details.

func (JobProperties) MarshalJSON

func (j JobProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type JobProperties.

func (*JobProperties) UnmarshalJSON

func (j *JobProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobProperties.

type JobQueryParameter

type JobQueryParameter struct {
	// The type of objects.
	AffectedObjectTypes *string `json:"affectedObjectTypes,omitempty"`

	// Date time to get jobs upto.
	EndTime *string `json:"endTime,omitempty"`

	// The Id of the fabric to search jobs under.
	FabricID *string `json:"fabricId,omitempty"`

	// The job Name.
	JobName *string `json:"jobName,omitempty"`

	// The output type of the jobs.
	JobOutputType *ExportJobOutputSerializationType `json:"jobOutputType,omitempty"`

	// The states of the job to be filtered can be in.
	JobStatus *string `json:"jobStatus,omitempty"`

	// Date time to get jobs from.
	StartTime *string `json:"startTime,omitempty"`

	// The timezone offset for the location of the request (in minutes).
	TimezoneOffset *float64 `json:"timezoneOffset,omitempty"`
}

JobQueryParameter - Query parameter to enumerate jobs.

func (JobQueryParameter) MarshalJSON added in v1.1.0

func (j JobQueryParameter) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type JobQueryParameter.

func (*JobQueryParameter) UnmarshalJSON added in v1.1.0

func (j *JobQueryParameter) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobQueryParameter.

type JobStatusEventDetails

type JobStatusEventDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// AffectedObjectType for the event.
	AffectedObjectType *string `json:"affectedObjectType,omitempty"`

	// JobName for the Event.
	JobFriendlyName *string `json:"jobFriendlyName,omitempty"`

	// Job arm id for the event.
	JobID *string `json:"jobId,omitempty"`

	// JobStatus for the Event.
	JobStatus *string `json:"jobStatus,omitempty"`
}

JobStatusEventDetails - Model class for event details of a job status event.

func (*JobStatusEventDetails) GetEventSpecificDetails added in v0.2.0

func (j *JobStatusEventDetails) GetEventSpecificDetails() *EventSpecificDetails

GetEventSpecificDetails implements the EventSpecificDetailsClassification interface for type JobStatusEventDetails.

func (JobStatusEventDetails) MarshalJSON

func (j JobStatusEventDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type JobStatusEventDetails.

func (*JobStatusEventDetails) UnmarshalJSON

func (j *JobStatusEventDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobStatusEventDetails.

type JobTaskDetails

type JobTaskDetails struct {
	// REQUIRED; The type of task details.
	InstanceType *string `json:"instanceType,omitempty"`

	// The job entity.
	JobTask *JobEntity `json:"jobTask,omitempty"`
}

JobTaskDetails - This class represents a task which is actually a workflow so that one can navigate to its individual drill down.

func (*JobTaskDetails) GetJobTaskDetails

func (j *JobTaskDetails) GetJobTaskDetails() *JobTaskDetails

GetJobTaskDetails implements the JobTaskDetailsClassification interface for type JobTaskDetails.

func (*JobTaskDetails) GetTaskTypeDetails added in v0.2.0

func (j *JobTaskDetails) GetTaskTypeDetails() *TaskTypeDetails

GetTaskTypeDetails implements the TaskTypeDetailsClassification interface for type JobTaskDetails.

func (JobTaskDetails) MarshalJSON

func (j JobTaskDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type JobTaskDetails.

func (*JobTaskDetails) UnmarshalJSON

func (j *JobTaskDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobTaskDetails.

type JobTaskDetailsClassification

type JobTaskDetailsClassification interface {
	TaskTypeDetailsClassification
	// GetJobTaskDetails returns the JobTaskDetails content of the underlying type.
	GetJobTaskDetails() *JobTaskDetails
}

JobTaskDetailsClassification provides polymorphic access to related types. Call the interface's GetJobTaskDetails() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *FabricReplicationGroupTaskDetails, *JobTaskDetails, *VirtualMachineTaskDetails

type KeyEncryptionKeyInfo

type KeyEncryptionKeyInfo struct {
	// The key URL / identifier.
	KeyIdentifier *string `json:"keyIdentifier,omitempty"`

	// The KeyVault resource ARM Id for key.
	KeyVaultResourceArmID *string `json:"keyVaultResourceArmId,omitempty"`
}

KeyEncryptionKeyInfo - Key Encryption Key (KEK) information.

func (KeyEncryptionKeyInfo) MarshalJSON added in v1.1.0

func (k KeyEncryptionKeyInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type KeyEncryptionKeyInfo.

func (*KeyEncryptionKeyInfo) UnmarshalJSON added in v1.1.0

func (k *KeyEncryptionKeyInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type KeyEncryptionKeyInfo.

type LicenseType

type LicenseType string

LicenseType - License type.

const (
	LicenseTypeNoLicenseType LicenseType = "NoLicenseType"
	LicenseTypeNotSpecified  LicenseType = "NotSpecified"
	LicenseTypeWindowsServer LicenseType = "WindowsServer"
)

func PossibleLicenseTypeValues

func PossibleLicenseTypeValues() []LicenseType

PossibleLicenseTypeValues returns the possible values for the LicenseType const type.

type LogicalNetwork

type LogicalNetwork struct {
	// Resource Location
	Location *string `json:"location,omitempty"`

	// The Logical Network Properties.
	Properties *LogicalNetworkProperties `json:"properties,omitempty"`

	// READ-ONLY; Resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Resource Name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Resource Type
	Type *string `json:"type,omitempty" azure:"ro"`
}

LogicalNetwork - Logical network data model.

func (LogicalNetwork) MarshalJSON added in v1.1.0

func (l LogicalNetwork) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type LogicalNetwork.

func (*LogicalNetwork) UnmarshalJSON added in v1.1.0

func (l *LogicalNetwork) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type LogicalNetwork.

type LogicalNetworkCollection

type LogicalNetworkCollection struct {
	// The value of next link.
	NextLink *string `json:"nextLink,omitempty"`

	// The Logical Networks list details.
	Value []*LogicalNetwork `json:"value,omitempty"`
}

LogicalNetworkCollection - List of logical networks.

func (LogicalNetworkCollection) MarshalJSON

func (l LogicalNetworkCollection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type LogicalNetworkCollection.

func (*LogicalNetworkCollection) UnmarshalJSON added in v1.1.0

func (l *LogicalNetworkCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type LogicalNetworkCollection.

type LogicalNetworkProperties

type LogicalNetworkProperties struct {
	// The Friendly Name.
	FriendlyName *string `json:"friendlyName,omitempty"`

	// A value indicating whether logical network definitions are isolated.
	LogicalNetworkDefinitionsStatus *string `json:"logicalNetworkDefinitionsStatus,omitempty"`

	// A value indicating whether logical network is used as private test network by test failover.
	LogicalNetworkUsage *string `json:"logicalNetworkUsage,omitempty"`

	// A value indicating whether Network Virtualization is enabled for the logical network.
	NetworkVirtualizationStatus *string `json:"networkVirtualizationStatus,omitempty"`
}

LogicalNetworkProperties - Logical Network Properties.

func (LogicalNetworkProperties) MarshalJSON added in v1.1.0

func (l LogicalNetworkProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type LogicalNetworkProperties.

func (*LogicalNetworkProperties) UnmarshalJSON added in v1.1.0

func (l *LogicalNetworkProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type LogicalNetworkProperties.

type ManualActionTaskDetails

type ManualActionTaskDetails struct {
	// REQUIRED; The type of task details.
	InstanceType *string `json:"instanceType,omitempty"`

	// The instructions.
	Instructions *string `json:"instructions,omitempty"`

	// The name.
	Name *string `json:"name,omitempty"`

	// The observation.
	Observation *string `json:"observation,omitempty"`
}

ManualActionTaskDetails - This class represents the manual action task details.

func (*ManualActionTaskDetails) GetTaskTypeDetails added in v0.2.0

func (m *ManualActionTaskDetails) GetTaskTypeDetails() *TaskTypeDetails

GetTaskTypeDetails implements the TaskTypeDetailsClassification interface for type ManualActionTaskDetails.

func (ManualActionTaskDetails) MarshalJSON

func (m ManualActionTaskDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ManualActionTaskDetails.

func (*ManualActionTaskDetails) UnmarshalJSON

func (m *ManualActionTaskDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ManualActionTaskDetails.

type MarsAgentDetails

type MarsAgentDetails struct {
	// READ-ONLY; The Mars agent Bios Id.
	BiosID *string `json:"biosId,omitempty" azure:"ro"`

	// READ-ONLY; The fabric object Id.
	FabricObjectID *string `json:"fabricObjectId,omitempty" azure:"ro"`

	// READ-ONLY; The Mars agent Fqdn.
	Fqdn *string `json:"fqdn,omitempty" azure:"ro"`

	// READ-ONLY; The health of the Mars agent.
	Health *ProtectionHealth `json:"health,omitempty" azure:"ro"`

	// READ-ONLY; The health errors.
	HealthErrors []*HealthError `json:"healthErrors,omitempty" azure:"ro"`

	// READ-ONLY; The Mars agent Id.
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The last heartbeat received from the Mars agent.
	LastHeartbeatUTC *time.Time `json:"lastHeartbeatUtc,omitempty" azure:"ro"`

	// READ-ONLY; The Mars agent name.
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; The version.
	Version *string `json:"version,omitempty" azure:"ro"`
}

MarsAgentDetails - Mars agent details.

func (MarsAgentDetails) MarshalJSON

func (m MarsAgentDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MarsAgentDetails.

func (*MarsAgentDetails) UnmarshalJSON

func (m *MarsAgentDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MarsAgentDetails.

type MasterTargetServer

type MasterTargetServer struct {
	// Agent expiry date.
	AgentExpiryDate *time.Time `json:"agentExpiryDate,omitempty"`

	// The version of the scout component on the server.
	AgentVersion *string `json:"agentVersion,omitempty"`

	// Agent version details.
	AgentVersionDetails *VersionDetails `json:"agentVersionDetails,omitempty"`

	// The list of data stores in the fabric.
	DataStores []*DataStore `json:"dataStores,omitempty"`

	// Disk count of the master target.
	DiskCount *int32 `json:"diskCount,omitempty"`

	// Health errors.
	HealthErrors []*HealthError `json:"healthErrors,omitempty"`

	// The server Id.
	ID *string `json:"id,omitempty"`

	// The IP address of the server.
	IPAddress *string `json:"ipAddress,omitempty"`

	// The last heartbeat received from the server.
	LastHeartbeat *time.Time `json:"lastHeartbeat,omitempty"`

	// MARS agent expiry date.
	MarsAgentExpiryDate *time.Time `json:"marsAgentExpiryDate,omitempty"`

	// MARS agent version.
	MarsAgentVersion *string `json:"marsAgentVersion,omitempty"`

	// Mars agent version details.
	MarsAgentVersionDetails *VersionDetails `json:"marsAgentVersionDetails,omitempty"`

	// The server name.
	Name *string `json:"name,omitempty"`

	// The OS type of the server.
	OSType *string `json:"osType,omitempty"`

	// OS Version of the master target.
	OSVersion *string `json:"osVersion,omitempty"`

	// The retention volumes of Master target Server.
	RetentionVolumes []*RetentionVolume `json:"retentionVolumes,omitempty"`

	// Validation errors.
	ValidationErrors []*HealthError `json:"validationErrors,omitempty"`

	// Version status.
	VersionStatus *string `json:"versionStatus,omitempty"`
}

MasterTargetServer - Details of a Master Target Server.

func (MasterTargetServer) MarshalJSON

func (m MasterTargetServer) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MasterTargetServer.

func (*MasterTargetServer) UnmarshalJSON

func (m *MasterTargetServer) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MasterTargetServer.

type MigrateInput

type MigrateInput struct {
	// REQUIRED; Migrate input properties.
	Properties *MigrateInputProperties `json:"properties,omitempty"`
}

MigrateInput - Input for migrate.

func (MigrateInput) MarshalJSON added in v1.1.0

func (m MigrateInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateInput.

func (*MigrateInput) UnmarshalJSON added in v1.1.0

func (m *MigrateInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateInput.

type MigrateInputProperties

type MigrateInputProperties struct {
	// REQUIRED; The provider specific details.
	ProviderSpecificDetails MigrateProviderSpecificInputClassification `json:"providerSpecificDetails,omitempty"`
}

MigrateInputProperties - Migrate input properties.

func (MigrateInputProperties) MarshalJSON

func (m MigrateInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateInputProperties.

func (*MigrateInputProperties) UnmarshalJSON

func (m *MigrateInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateInputProperties.

type MigrateProviderSpecificInput

type MigrateProviderSpecificInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

MigrateProviderSpecificInput - Migrate provider specific input.

func (*MigrateProviderSpecificInput) GetMigrateProviderSpecificInput

func (m *MigrateProviderSpecificInput) GetMigrateProviderSpecificInput() *MigrateProviderSpecificInput

GetMigrateProviderSpecificInput implements the MigrateProviderSpecificInputClassification interface for type MigrateProviderSpecificInput.

func (MigrateProviderSpecificInput) MarshalJSON added in v1.1.0

func (m MigrateProviderSpecificInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateProviderSpecificInput.

func (*MigrateProviderSpecificInput) UnmarshalJSON

func (m *MigrateProviderSpecificInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateProviderSpecificInput.

type MigrateProviderSpecificInputClassification

type MigrateProviderSpecificInputClassification interface {
	// GetMigrateProviderSpecificInput returns the MigrateProviderSpecificInput content of the underlying type.
	GetMigrateProviderSpecificInput() *MigrateProviderSpecificInput
}

MigrateProviderSpecificInputClassification provides polymorphic access to related types. Call the interface's GetMigrateProviderSpecificInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *MigrateProviderSpecificInput, *VMwareCbtMigrateInput

type MigrationItem

type MigrationItem struct {
	// Resource Location
	Location *string `json:"location,omitempty"`

	// The migration item properties.
	Properties *MigrationItemProperties `json:"properties,omitempty"`

	// READ-ONLY; Resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Resource Name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Resource Type
	Type *string `json:"type,omitempty" azure:"ro"`
}

MigrationItem - Migration item.

func (MigrationItem) MarshalJSON added in v1.1.0

func (m MigrationItem) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrationItem.

func (*MigrationItem) UnmarshalJSON added in v1.1.0

func (m *MigrationItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrationItem.

type MigrationItemCollection

type MigrationItemCollection struct {
	// The value of next link.
	NextLink *string `json:"nextLink,omitempty"`

	// The list of migration items.
	Value []*MigrationItem `json:"value,omitempty"`
}

MigrationItemCollection - Migration item collection.

func (MigrationItemCollection) MarshalJSON

func (m MigrationItemCollection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrationItemCollection.

func (*MigrationItemCollection) UnmarshalJSON added in v1.1.0

func (m *MigrationItemCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrationItemCollection.

type MigrationItemOperation

type MigrationItemOperation string
const (
	MigrationItemOperationDisableMigration   MigrationItemOperation = "DisableMigration"
	MigrationItemOperationMigrate            MigrationItemOperation = "Migrate"
	MigrationItemOperationPauseReplication   MigrationItemOperation = "PauseReplication"
	MigrationItemOperationResumeReplication  MigrationItemOperation = "ResumeReplication"
	MigrationItemOperationStartResync        MigrationItemOperation = "StartResync"
	MigrationItemOperationTestMigrate        MigrationItemOperation = "TestMigrate"
	MigrationItemOperationTestMigrateCleanup MigrationItemOperation = "TestMigrateCleanup"
)

func PossibleMigrationItemOperationValues

func PossibleMigrationItemOperationValues() []MigrationItemOperation

PossibleMigrationItemOperationValues returns the possible values for the MigrationItemOperation const type.

type MigrationItemProperties

type MigrationItemProperties struct {
	// The migration provider custom settings.
	ProviderSpecificDetails MigrationProviderSpecificSettingsClassification `json:"providerSpecificDetails,omitempty"`

	// READ-ONLY; The allowed operations on the migration item based on the current migration state of the item.
	AllowedOperations []*MigrationItemOperation `json:"allowedOperations,omitempty" azure:"ro"`

	// READ-ONLY; The critical past job details.
	CriticalJobHistory []*CriticalJobHistoryDetails `json:"criticalJobHistory,omitempty" azure:"ro"`

	// READ-ONLY; The current job details.
	CurrentJob *CurrentJobDetails `json:"currentJob,omitempty" azure:"ro"`

	// READ-ONLY; The correlation Id for events associated with this migration item.
	EventCorrelationID *string `json:"eventCorrelationId,omitempty" azure:"ro"`

	// READ-ONLY; The consolidated health.
	Health *ProtectionHealth `json:"health,omitempty" azure:"ro"`

	// READ-ONLY; The list of health errors.
	HealthErrors []*HealthError `json:"healthErrors,omitempty" azure:"ro"`

	// READ-ONLY; The status of the last migration.
	LastMigrationStatus *string `json:"lastMigrationStatus,omitempty" azure:"ro"`

	// READ-ONLY; The last migration time.
	LastMigrationTime *time.Time `json:"lastMigrationTime,omitempty" azure:"ro"`

	// READ-ONLY; The status of the last test migration.
	LastTestMigrationStatus *string `json:"lastTestMigrationStatus,omitempty" azure:"ro"`

	// READ-ONLY; The last test migration time.
	LastTestMigrationTime *time.Time `json:"lastTestMigrationTime,omitempty" azure:"ro"`

	// READ-ONLY; The on-premise virtual machine name.
	MachineName *string `json:"machineName,omitempty" azure:"ro"`

	// READ-ONLY; The migration status.
	MigrationState *MigrationState `json:"migrationState,omitempty" azure:"ro"`

	// READ-ONLY; The migration state description.
	MigrationStateDescription *string `json:"migrationStateDescription,omitempty" azure:"ro"`

	// READ-ONLY; The name of policy governing this item.
	PolicyFriendlyName *string `json:"policyFriendlyName,omitempty" azure:"ro"`

	// READ-ONLY; The ARM Id of policy governing this item.
	PolicyID *string `json:"policyId,omitempty" azure:"ro"`

	// READ-ONLY; The recovery services provider ARM Id.
	RecoveryServicesProviderID *string `json:"recoveryServicesProviderId,omitempty" azure:"ro"`

	// READ-ONLY; The replication status.
	ReplicationStatus *string `json:"replicationStatus,omitempty" azure:"ro"`

	// READ-ONLY; The test migrate state.
	TestMigrateState *TestMigrationState `json:"testMigrateState,omitempty" azure:"ro"`

	// READ-ONLY; The test migrate state description.
	TestMigrateStateDescription *string `json:"testMigrateStateDescription,omitempty" azure:"ro"`
}

MigrationItemProperties - Migration item properties.

func (MigrationItemProperties) MarshalJSON

func (m MigrationItemProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrationItemProperties.

func (*MigrationItemProperties) UnmarshalJSON

func (m *MigrationItemProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrationItemProperties.

type MigrationItemsQueryParameter

type MigrationItemsQueryParameter struct {
	// The replication provider type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The source container name filter.
	SourceContainerName *string `json:"sourceContainerName,omitempty"`

	// The source fabric name filter.
	SourceFabricName *string `json:"sourceFabricName,omitempty"`
}

MigrationItemsQueryParameter - Query parameter to enumerate migration items.

func (MigrationItemsQueryParameter) MarshalJSON added in v1.1.0

func (m MigrationItemsQueryParameter) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrationItemsQueryParameter.

func (*MigrationItemsQueryParameter) UnmarshalJSON added in v1.1.0

func (m *MigrationItemsQueryParameter) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrationItemsQueryParameter.

type MigrationProviderSpecificSettings

type MigrationProviderSpecificSettings struct {
	// REQUIRED; Gets the instance type.
	InstanceType *string `json:"instanceType,omitempty"`
}

MigrationProviderSpecificSettings - Migration provider specific settings.

func (*MigrationProviderSpecificSettings) GetMigrationProviderSpecificSettings

func (m *MigrationProviderSpecificSettings) GetMigrationProviderSpecificSettings() *MigrationProviderSpecificSettings

GetMigrationProviderSpecificSettings implements the MigrationProviderSpecificSettingsClassification interface for type MigrationProviderSpecificSettings.

func (MigrationProviderSpecificSettings) MarshalJSON added in v1.1.0

func (m MigrationProviderSpecificSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrationProviderSpecificSettings.

func (*MigrationProviderSpecificSettings) UnmarshalJSON

func (m *MigrationProviderSpecificSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrationProviderSpecificSettings.

type MigrationProviderSpecificSettingsClassification

type MigrationProviderSpecificSettingsClassification interface {
	// GetMigrationProviderSpecificSettings returns the MigrationProviderSpecificSettings content of the underlying type.
	GetMigrationProviderSpecificSettings() *MigrationProviderSpecificSettings
}

MigrationProviderSpecificSettingsClassification provides polymorphic access to related types. Call the interface's GetMigrationProviderSpecificSettings() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *MigrationProviderSpecificSettings, *VMwareCbtMigrationDetails

type MigrationRecoveryPoint

type MigrationRecoveryPoint struct {
	// Resource Location
	Location *string `json:"location,omitempty"`

	// Recovery point properties.
	Properties *MigrationRecoveryPointProperties `json:"properties,omitempty"`

	// READ-ONLY; Resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Resource Name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Resource Type
	Type *string `json:"type,omitempty" azure:"ro"`
}

MigrationRecoveryPoint - Recovery point for a migration item.

func (MigrationRecoveryPoint) MarshalJSON added in v1.1.0

func (m MigrationRecoveryPoint) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrationRecoveryPoint.

func (*MigrationRecoveryPoint) UnmarshalJSON added in v1.1.0

func (m *MigrationRecoveryPoint) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrationRecoveryPoint.

type MigrationRecoveryPointCollection

type MigrationRecoveryPointCollection struct {
	// The value of next link.
	NextLink *string `json:"nextLink,omitempty"`

	// The migration recovery point details.
	Value []*MigrationRecoveryPoint `json:"value,omitempty"`
}

MigrationRecoveryPointCollection - Collection of migration recovery points.

func (MigrationRecoveryPointCollection) MarshalJSON

func (m MigrationRecoveryPointCollection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrationRecoveryPointCollection.

func (*MigrationRecoveryPointCollection) UnmarshalJSON added in v1.1.0

func (m *MigrationRecoveryPointCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrationRecoveryPointCollection.

type MigrationRecoveryPointProperties

type MigrationRecoveryPointProperties struct {
	// READ-ONLY; The recovery point time.
	RecoveryPointTime *time.Time `json:"recoveryPointTime,omitempty" azure:"ro"`

	// READ-ONLY; The recovery point type.
	RecoveryPointType *MigrationRecoveryPointType `json:"recoveryPointType,omitempty" azure:"ro"`
}

MigrationRecoveryPointProperties - Migration item recovery point properties.

func (MigrationRecoveryPointProperties) MarshalJSON

func (m MigrationRecoveryPointProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrationRecoveryPointProperties.

func (*MigrationRecoveryPointProperties) UnmarshalJSON

func (m *MigrationRecoveryPointProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrationRecoveryPointProperties.

type MigrationRecoveryPointType

type MigrationRecoveryPointType string

MigrationRecoveryPointType - The recovery point type.

const (
	MigrationRecoveryPointTypeApplicationConsistent MigrationRecoveryPointType = "ApplicationConsistent"
	MigrationRecoveryPointTypeCrashConsistent       MigrationRecoveryPointType = "CrashConsistent"
	MigrationRecoveryPointTypeNotSpecified          MigrationRecoveryPointType = "NotSpecified"
)

func PossibleMigrationRecoveryPointTypeValues

func PossibleMigrationRecoveryPointTypeValues() []MigrationRecoveryPointType

PossibleMigrationRecoveryPointTypeValues returns the possible values for the MigrationRecoveryPointType const type.

type MigrationRecoveryPointsClient

type MigrationRecoveryPointsClient struct {
	// contains filtered or unexported fields
}

MigrationRecoveryPointsClient contains the methods for the MigrationRecoveryPoints group. Don't use this type directly, use NewMigrationRecoveryPointsClient() instead.

func NewMigrationRecoveryPointsClient

func NewMigrationRecoveryPointsClient(resourceName string, resourceGroupName string, subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*MigrationRecoveryPointsClient, error)

NewMigrationRecoveryPointsClient creates a new instance of MigrationRecoveryPointsClient with the specified values. resourceName - The name of the recovery services vault. resourceGroupName - The name of the resource group where the recovery services vault is present. subscriptionID - The subscription Id. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*MigrationRecoveryPointsClient) Get

func (client *MigrationRecoveryPointsClient) Get(ctx context.Context, fabricName string, protectionContainerName string, migrationItemName string, migrationRecoveryPointName string, options *MigrationRecoveryPointsClientGetOptions) (MigrationRecoveryPointsClientGetResponse, error)

Get - Gets a recovery point for a migration item. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric unique name. protectionContainerName - Protection container name. migrationItemName - Migration item name. migrationRecoveryPointName - The migration recovery point name. options - MigrationRecoveryPointsClientGetOptions contains the optional parameters for the MigrationRecoveryPointsClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/MigrationRecoveryPoints_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewMigrationRecoveryPointsClient("migrationvault", "resourcegroup1", "cb53d0c3-bd59-4721-89bc-06916a9147ef", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx, "vmwarefabric1", "vmwareContainer1", "virtualmachine1", "b22134ea-620c-474b-9fa5-3c1cb47708e3", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*MigrationRecoveryPointsClient) NewListByReplicationMigrationItemsPager added in v0.4.0

func (client *MigrationRecoveryPointsClient) NewListByReplicationMigrationItemsPager(fabricName string, protectionContainerName string, migrationItemName string, options *MigrationRecoveryPointsClientListByReplicationMigrationItemsOptions) *runtime.Pager[MigrationRecoveryPointsClientListByReplicationMigrationItemsResponse]

NewListByReplicationMigrationItemsPager - Gets the recovery points for a migration item. Generated from API version 2022-10-01 fabricName - Fabric unique name. protectionContainerName - Protection container name. migrationItemName - Migration item name. options - MigrationRecoveryPointsClientListByReplicationMigrationItemsOptions contains the optional parameters for the MigrationRecoveryPointsClient.ListByReplicationMigrationItems method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/MigrationRecoveryPoints_ListByReplicationMigrationItems.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewMigrationRecoveryPointsClient("migrationvault", "resourcegroup1", "cb53d0c3-bd59-4721-89bc-06916a9147ef", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListByReplicationMigrationItemsPager("vmwarefabric1", "vmwareContainer1", "virtualmachine1", nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type MigrationRecoveryPointsClientGetOptions added in v0.2.0

type MigrationRecoveryPointsClientGetOptions struct {
}

MigrationRecoveryPointsClientGetOptions contains the optional parameters for the MigrationRecoveryPointsClient.Get method.

type MigrationRecoveryPointsClientGetResponse added in v0.2.0

type MigrationRecoveryPointsClientGetResponse struct {
	MigrationRecoveryPoint
}

MigrationRecoveryPointsClientGetResponse contains the response from method MigrationRecoveryPointsClient.Get.

type MigrationRecoveryPointsClientListByReplicationMigrationItemsOptions added in v0.2.0

type MigrationRecoveryPointsClientListByReplicationMigrationItemsOptions struct {
}

MigrationRecoveryPointsClientListByReplicationMigrationItemsOptions contains the optional parameters for the MigrationRecoveryPointsClient.ListByReplicationMigrationItems method.

type MigrationRecoveryPointsClientListByReplicationMigrationItemsResponse added in v0.2.0

type MigrationRecoveryPointsClientListByReplicationMigrationItemsResponse struct {
	MigrationRecoveryPointCollection
}

MigrationRecoveryPointsClientListByReplicationMigrationItemsResponse contains the response from method MigrationRecoveryPointsClient.ListByReplicationMigrationItems.

type MigrationState

type MigrationState string

MigrationState - The migration status.

const (
	MigrationStateDisableMigrationFailed            MigrationState = "DisableMigrationFailed"
	MigrationStateDisableMigrationInProgress        MigrationState = "DisableMigrationInProgress"
	MigrationStateEnableMigrationFailed             MigrationState = "EnableMigrationFailed"
	MigrationStateEnableMigrationInProgress         MigrationState = "EnableMigrationInProgress"
	MigrationStateInitialSeedingFailed              MigrationState = "InitialSeedingFailed"
	MigrationStateInitialSeedingInProgress          MigrationState = "InitialSeedingInProgress"
	MigrationStateMigrationCompletedWithInformation MigrationState = "MigrationCompletedWithInformation"
	MigrationStateMigrationFailed                   MigrationState = "MigrationFailed"
	MigrationStateMigrationInProgress               MigrationState = "MigrationInProgress"
	MigrationStateMigrationPartiallySucceeded       MigrationState = "MigrationPartiallySucceeded"
	MigrationStateMigrationSucceeded                MigrationState = "MigrationSucceeded"
	MigrationStateNone                              MigrationState = "None"
	MigrationStateProtectionSuspended               MigrationState = "ProtectionSuspended"
	MigrationStateReplicating                       MigrationState = "Replicating"
	MigrationStateResumeInProgress                  MigrationState = "ResumeInProgress"
	MigrationStateResumeInitiated                   MigrationState = "ResumeInitiated"
	MigrationStateSuspendingProtection              MigrationState = "SuspendingProtection"
)

func PossibleMigrationStateValues

func PossibleMigrationStateValues() []MigrationState

PossibleMigrationStateValues returns the possible values for the MigrationState const type.

type MobilityAgentUpgradeState

type MobilityAgentUpgradeState string

MobilityAgentUpgradeState - The agent auto upgrade state.

const (
	MobilityAgentUpgradeStateCommit    MobilityAgentUpgradeState = "Commit"
	MobilityAgentUpgradeStateCompleted MobilityAgentUpgradeState = "Completed"
	MobilityAgentUpgradeStateNone      MobilityAgentUpgradeState = "None"
	MobilityAgentUpgradeStateStarted   MobilityAgentUpgradeState = "Started"
)

func PossibleMobilityAgentUpgradeStateValues

func PossibleMobilityAgentUpgradeStateValues() []MobilityAgentUpgradeState

PossibleMobilityAgentUpgradeStateValues returns the possible values for the MobilityAgentUpgradeState const type.

type MobilityServiceUpdate

type MobilityServiceUpdate struct {
	// The OS type.
	OSType *string `json:"osType,omitempty"`

	// The reboot status of the update - whether it is required or not.
	RebootStatus *string `json:"rebootStatus,omitempty"`

	// The version of the latest update.
	Version *string `json:"version,omitempty"`
}

MobilityServiceUpdate - The Mobility Service update details.

func (MobilityServiceUpdate) MarshalJSON added in v1.1.0

func (m MobilityServiceUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MobilityServiceUpdate.

func (*MobilityServiceUpdate) UnmarshalJSON added in v1.1.0

func (m *MobilityServiceUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MobilityServiceUpdate.

type MultiVMGroupCreateOption

type MultiVMGroupCreateOption string

MultiVMGroupCreateOption - Whether Multi VM group is auto created or specified by user.

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

func PossibleMultiVMGroupCreateOptionValues

func PossibleMultiVMGroupCreateOptionValues() []MultiVMGroupCreateOption

PossibleMultiVMGroupCreateOptionValues returns the possible values for the MultiVMGroupCreateOption const type.

type MultiVMSyncPointOption

type MultiVMSyncPointOption string

MultiVMSyncPointOption - A value indicating whether multi VM sync enabled VMs should use multi VM sync points for failover.

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

func PossibleMultiVMSyncPointOptionValues

func PossibleMultiVMSyncPointOptionValues() []MultiVMSyncPointOption

PossibleMultiVMSyncPointOptionValues returns the possible values for the MultiVMSyncPointOption const type.

type Network

type Network struct {
	// Resource Location
	Location *string `json:"location,omitempty"`

	// The Network Properties.
	Properties *NetworkProperties `json:"properties,omitempty"`

	// READ-ONLY; Resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Resource Name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Resource Type
	Type *string `json:"type,omitempty" azure:"ro"`
}

Network model.

func (Network) MarshalJSON added in v1.1.0

func (n Network) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Network.

func (*Network) UnmarshalJSON added in v1.1.0

func (n *Network) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Network.

type NetworkCollection

type NetworkCollection struct {
	// The value of next link.
	NextLink *string `json:"nextLink,omitempty"`

	// The Networks list details.
	Value []*Network `json:"value,omitempty"`
}

NetworkCollection - List of networks.

func (NetworkCollection) MarshalJSON

func (n NetworkCollection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NetworkCollection.

func (*NetworkCollection) UnmarshalJSON added in v1.1.0

func (n *NetworkCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NetworkCollection.

type NetworkMapping

type NetworkMapping struct {
	// Resource Location
	Location *string `json:"location,omitempty"`

	// The Network Mapping Properties.
	Properties *NetworkMappingProperties `json:"properties,omitempty"`

	// READ-ONLY; Resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Resource Name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Resource Type
	Type *string `json:"type,omitempty" azure:"ro"`
}

NetworkMapping - Network Mapping model. Ideally it should have been possible to inherit this class from prev version in InheritedModels as long as there is no difference in structure or method signature. Since there were no base Models for certain fields and methods viz NetworkMappingProperties and Load with required return type, the class has been introduced in its entirety with references to base models to facilitate extensions in subsequent versions.

func (NetworkMapping) MarshalJSON added in v1.1.0

func (n NetworkMapping) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NetworkMapping.

func (*NetworkMapping) UnmarshalJSON added in v1.1.0

func (n *NetworkMapping) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NetworkMapping.

type NetworkMappingCollection

type NetworkMappingCollection struct {
	// The value of next link.
	NextLink *string `json:"nextLink,omitempty"`

	// The Network Mappings list.
	Value []*NetworkMapping `json:"value,omitempty"`
}

NetworkMappingCollection - List of network mappings. As with NetworkMapping, it should be possible to reuse a prev version of this class. It doesn't seem likely this class could be anything more than a slightly bespoke collection of NetworkMapping. Hence it makes sense to override Load with Base.NetworkMapping instead of existing CurrentVersion.NetworkMapping.

func (NetworkMappingCollection) MarshalJSON

func (n NetworkMappingCollection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NetworkMappingCollection.

func (*NetworkMappingCollection) UnmarshalJSON added in v1.1.0

func (n *NetworkMappingCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NetworkMappingCollection.

type NetworkMappingFabricSpecificSettings

type NetworkMappingFabricSpecificSettings struct {
	// REQUIRED; Gets the Instance type.
	InstanceType *string `json:"instanceType,omitempty"`
}

NetworkMappingFabricSpecificSettings - Network Mapping fabric specific settings.

func (*NetworkMappingFabricSpecificSettings) GetNetworkMappingFabricSpecificSettings

func (n *NetworkMappingFabricSpecificSettings) GetNetworkMappingFabricSpecificSettings() *NetworkMappingFabricSpecificSettings

GetNetworkMappingFabricSpecificSettings implements the NetworkMappingFabricSpecificSettingsClassification interface for type NetworkMappingFabricSpecificSettings.

func (NetworkMappingFabricSpecificSettings) MarshalJSON added in v1.1.0

func (n NetworkMappingFabricSpecificSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NetworkMappingFabricSpecificSettings.

func (*NetworkMappingFabricSpecificSettings) UnmarshalJSON

func (n *NetworkMappingFabricSpecificSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NetworkMappingFabricSpecificSettings.

type NetworkMappingFabricSpecificSettingsClassification

type NetworkMappingFabricSpecificSettingsClassification interface {
	// GetNetworkMappingFabricSpecificSettings returns the NetworkMappingFabricSpecificSettings content of the underlying type.
	GetNetworkMappingFabricSpecificSettings() *NetworkMappingFabricSpecificSettings
}

NetworkMappingFabricSpecificSettingsClassification provides polymorphic access to related types. Call the interface's GetNetworkMappingFabricSpecificSettings() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AzureToAzureNetworkMappingSettings, *NetworkMappingFabricSpecificSettings, *VmmToAzureNetworkMappingSettings, *VmmToVmmNetworkMappingSettings

type NetworkMappingProperties

type NetworkMappingProperties struct {
	// The fabric specific settings.
	FabricSpecificSettings NetworkMappingFabricSpecificSettingsClassification `json:"fabricSpecificSettings,omitempty"`

	// The primary fabric friendly name.
	PrimaryFabricFriendlyName *string `json:"primaryFabricFriendlyName,omitempty"`

	// The primary network friendly name.
	PrimaryNetworkFriendlyName *string `json:"primaryNetworkFriendlyName,omitempty"`

	// The primary network id for network mapping.
	PrimaryNetworkID *string `json:"primaryNetworkId,omitempty"`

	// The recovery fabric ARM id.
	RecoveryFabricArmID *string `json:"recoveryFabricArmId,omitempty"`

	// The recovery fabric friendly name.
	RecoveryFabricFriendlyName *string `json:"recoveryFabricFriendlyName,omitempty"`

	// The recovery network friendly name.
	RecoveryNetworkFriendlyName *string `json:"recoveryNetworkFriendlyName,omitempty"`

	// The recovery network id for network mapping.
	RecoveryNetworkID *string `json:"recoveryNetworkId,omitempty"`

	// The pairing state for network mapping.
	State *string `json:"state,omitempty"`
}

NetworkMappingProperties - Network Mapping Properties.

func (NetworkMappingProperties) MarshalJSON

func (n NetworkMappingProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NetworkMappingProperties.

func (*NetworkMappingProperties) UnmarshalJSON

func (n *NetworkMappingProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NetworkMappingProperties.

type NetworkProperties

type NetworkProperties struct {
	// The Fabric Type.
	FabricType *string `json:"fabricType,omitempty"`

	// The Friendly Name.
	FriendlyName *string `json:"friendlyName,omitempty"`

	// The Network Type.
	NetworkType *string `json:"networkType,omitempty"`

	// The List of subnets.
	Subnets []*Subnet `json:"subnets,omitempty"`
}

NetworkProperties - Network Properties.

func (NetworkProperties) MarshalJSON

func (n NetworkProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NetworkProperties.

func (*NetworkProperties) UnmarshalJSON added in v1.1.0

func (n *NetworkProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NetworkProperties.

type NewProtectionProfile

type NewProtectionProfile struct {
	// REQUIRED; A value indicating whether multi-VM sync has to be enabled. Value should be 'Enabled' or 'Disabled'.
	MultiVMSyncStatus *SetMultiVMSyncStatus `json:"multiVmSyncStatus,omitempty"`

	// REQUIRED; The protection profile input.
	PolicyName *string `json:"policyName,omitempty"`

	// REQUIRED; The class type.
	ResourceType *string `json:"resourceType,omitempty"`

	// The app consistent snapshot frequency (in minutes).
	AppConsistentFrequencyInMinutes *int32 `json:"appConsistentFrequencyInMinutes,omitempty"`

	// The crash consistent snapshot frequency (in minutes).
	CrashConsistentFrequencyInMinutes *int32 `json:"crashConsistentFrequencyInMinutes,omitempty"`

	// The duration in minutes until which the recovery points need to be stored.
	RecoveryPointHistory *int32 `json:"recoveryPointHistory,omitempty"`
}

NewProtectionProfile - New Protection profile input.

func (*NewProtectionProfile) GetProtectionProfileCustomDetails added in v0.2.0

func (n *NewProtectionProfile) GetProtectionProfileCustomDetails() *ProtectionProfileCustomDetails

GetProtectionProfileCustomDetails implements the ProtectionProfileCustomDetailsClassification interface for type NewProtectionProfile.

func (NewProtectionProfile) MarshalJSON

func (n NewProtectionProfile) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NewProtectionProfile.

func (*NewProtectionProfile) UnmarshalJSON

func (n *NewProtectionProfile) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NewProtectionProfile.

type NewRecoveryVirtualNetwork

type NewRecoveryVirtualNetwork struct {
	// REQUIRED; The class type.
	ResourceType *string `json:"resourceType,omitempty"`

	// The recovery virtual network name.
	RecoveryVirtualNetworkName *string `json:"recoveryVirtualNetworkName,omitempty"`

	// The name of the resource group to be used to create the recovery virtual network. If absent, target network would be created
	// in the same resource group as target VM.
	RecoveryVirtualNetworkResourceGroupName *string `json:"recoveryVirtualNetworkResourceGroupName,omitempty"`
}

NewRecoveryVirtualNetwork - Recovery virtual network input to create new virtual network from given source network.

func (*NewRecoveryVirtualNetwork) GetRecoveryVirtualNetworkCustomDetails added in v0.2.0

func (n *NewRecoveryVirtualNetwork) GetRecoveryVirtualNetworkCustomDetails() *RecoveryVirtualNetworkCustomDetails

GetRecoveryVirtualNetworkCustomDetails implements the RecoveryVirtualNetworkCustomDetailsClassification interface for type NewRecoveryVirtualNetwork.

func (NewRecoveryVirtualNetwork) MarshalJSON

func (n NewRecoveryVirtualNetwork) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NewRecoveryVirtualNetwork.

func (*NewRecoveryVirtualNetwork) UnmarshalJSON

func (n *NewRecoveryVirtualNetwork) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NewRecoveryVirtualNetwork.

type OSDetails

type OSDetails struct {
	// The OSEdition.
	OSEdition *string `json:"osEdition,omitempty"`

	// The OS Major Version.
	OSMajorVersion *string `json:"oSMajorVersion,omitempty"`

	// The OS Minor Version.
	OSMinorVersion *string `json:"oSMinorVersion,omitempty"`

	// VM Disk details.
	OSType *string `json:"osType,omitempty"`

	// The OS Version.
	OSVersion *string `json:"oSVersion,omitempty"`

	// Product type.
	ProductType *string `json:"productType,omitempty"`
}

OSDetails - Disk Details.

func (OSDetails) MarshalJSON added in v1.1.0

func (o OSDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OSDetails.

func (*OSDetails) UnmarshalJSON added in v1.1.0

func (o *OSDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OSDetails.

type OSDiskDetails

type OSDiskDetails struct {
	// The type of the OS on the VM.
	OSType *string `json:"osType,omitempty"`

	// The id of the disk containing the OS.
	OSVhdID *string `json:"osVhdId,omitempty"`

	// The OS disk VHD name.
	VhdName *string `json:"vhdName,omitempty"`
}

OSDiskDetails - Details of the OS Disk.

func (OSDiskDetails) MarshalJSON added in v1.1.0

func (o OSDiskDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OSDiskDetails.

func (*OSDiskDetails) UnmarshalJSON added in v1.1.0

func (o *OSDiskDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OSDiskDetails.

type OSVersionWrapper

type OSVersionWrapper struct {
	// The service pack.
	ServicePack *string `json:"servicePack,omitempty"`

	// The version.
	Version *string `json:"version,omitempty"`
}

OSVersionWrapper - Wrapper model for OSVersion to include version and service pack info.

func (OSVersionWrapper) MarshalJSON added in v1.1.0

func (o OSVersionWrapper) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OSVersionWrapper.

func (*OSVersionWrapper) UnmarshalJSON added in v1.1.0

func (o *OSVersionWrapper) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OSVersionWrapper.

type OperationsClient

type OperationsClient struct {
	// contains filtered or unexported fields
}

OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.

func NewOperationsClient

func NewOperationsClient(resourceGroupName string, subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)

NewOperationsClient creates a new instance of OperationsClient with the specified values. resourceGroupName - The name of the resource group where the recovery services vault is present. subscriptionID - The subscription Id. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*OperationsClient) NewListPager added in v0.4.0

NewListPager - Operation to return the list of available operations. Generated from API version 2022-10-01 options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/Operations_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewOperationsClient("resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager(nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type OperationsClientListOptions added in v0.2.0

type OperationsClientListOptions struct {
}

OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.

type OperationsClientListResponse added in v0.2.0

type OperationsClientListResponse struct {
	OperationsDiscoveryCollection
}

OperationsClientListResponse contains the response from method OperationsClient.List.

type OperationsDiscovery

type OperationsDiscovery struct {
	// Object type.
	Display *Display `json:"display,omitempty"`

	// Name of the API. The name of the operation being performed on this particular object. It should match the action name that
	// appears in RBAC / the event service. Examples of operations include: *
	// Microsoft.Compute/virtualMachine/capture/action * Microsoft.Compute/virtualMachine/restart/action * Microsoft.Compute/virtualMachine/write
	// * Microsoft.Compute/virtualMachine/read *
	// Microsoft.Compute/virtualMachine/delete Each action should include, in order: (1) Resource Provider Namespace (2) Type
	// hierarchy for which the action applies (e.g. server/databases for a SQL Azure
	// database) (3) Read, Write, Action or Delete indicating which type applies. If it is a PUT/PATCH on a collection or named
	// value, Write should be used. If it is a GET, Read should be used. If it is a
	// DELETE, Delete should be used. If it is a POST, Action should be used. As a note: all resource providers would need to
	// include the "{Resource Provider Namespace}/register/action" operation in their
	// response. This API is used to register for their service, and should include details about the operation (e.g. a localized
	// name for the resource provider + any special considerations like PII
	// release).
	Name *string `json:"name,omitempty"`

	// Origin. The intended executor of the operation; governs the display of the operation in the RBAC UX and the audit logs
	// UX. Default value is "user,system".
	Origin *string `json:"origin,omitempty"`

	// Properties. Reserved for future use.
	Properties interface{} `json:"properties,omitempty"`
}

OperationsDiscovery - Operations discovery class.

func (OperationsDiscovery) MarshalJSON added in v1.1.0

func (o OperationsDiscovery) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OperationsDiscovery.

func (*OperationsDiscovery) UnmarshalJSON added in v1.1.0

func (o *OperationsDiscovery) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OperationsDiscovery.

type OperationsDiscoveryCollection

type OperationsDiscoveryCollection struct {
	// The value of next link.
	NextLink *string `json:"nextLink,omitempty"`

	// The ClientDiscovery details.
	Value []*OperationsDiscovery `json:"value,omitempty"`
}

OperationsDiscoveryCollection - Collection of ClientDiscovery details.

func (OperationsDiscoveryCollection) MarshalJSON

func (o OperationsDiscoveryCollection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OperationsDiscoveryCollection.

func (*OperationsDiscoveryCollection) UnmarshalJSON added in v1.1.0

func (o *OperationsDiscoveryCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OperationsDiscoveryCollection.

type PauseReplicationInput added in v1.1.0

type PauseReplicationInput struct {
	// REQUIRED; Pause replication input properties.
	Properties *PauseReplicationInputProperties `json:"properties,omitempty"`
}

PauseReplicationInput - Pause replication input.

func (PauseReplicationInput) MarshalJSON added in v1.1.0

func (p PauseReplicationInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PauseReplicationInput.

func (*PauseReplicationInput) UnmarshalJSON added in v1.1.0

func (p *PauseReplicationInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PauseReplicationInput.

type PauseReplicationInputProperties added in v1.1.0

type PauseReplicationInputProperties struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

PauseReplicationInputProperties - Pause replication input properties.

func (PauseReplicationInputProperties) MarshalJSON added in v1.1.0

func (p PauseReplicationInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PauseReplicationInputProperties.

func (*PauseReplicationInputProperties) UnmarshalJSON added in v1.1.0

func (p *PauseReplicationInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PauseReplicationInputProperties.

type PlannedFailoverInput

type PlannedFailoverInput struct {
	// Planned failover input properties.
	Properties *PlannedFailoverInputProperties `json:"properties,omitempty"`
}

PlannedFailoverInput - Input definition for planned failover.

func (PlannedFailoverInput) MarshalJSON added in v1.1.0

func (p PlannedFailoverInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PlannedFailoverInput.

func (*PlannedFailoverInput) UnmarshalJSON added in v1.1.0

func (p *PlannedFailoverInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PlannedFailoverInput.

type PlannedFailoverInputProperties

type PlannedFailoverInputProperties struct {
	// Failover direction.
	FailoverDirection *string `json:"failoverDirection,omitempty"`

	// Provider specific settings.
	ProviderSpecificDetails PlannedFailoverProviderSpecificFailoverInputClassification `json:"providerSpecificDetails,omitempty"`
}

PlannedFailoverInputProperties - Input definition for planned failover input properties.

func (PlannedFailoverInputProperties) MarshalJSON

func (p PlannedFailoverInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PlannedFailoverInputProperties.

func (*PlannedFailoverInputProperties) UnmarshalJSON

func (p *PlannedFailoverInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PlannedFailoverInputProperties.

type PlannedFailoverProviderSpecificFailoverInput

type PlannedFailoverProviderSpecificFailoverInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

PlannedFailoverProviderSpecificFailoverInput - Provider specific failover input.

func (*PlannedFailoverProviderSpecificFailoverInput) GetPlannedFailoverProviderSpecificFailoverInput

func (p *PlannedFailoverProviderSpecificFailoverInput) GetPlannedFailoverProviderSpecificFailoverInput() *PlannedFailoverProviderSpecificFailoverInput

GetPlannedFailoverProviderSpecificFailoverInput implements the PlannedFailoverProviderSpecificFailoverInputClassification interface for type PlannedFailoverProviderSpecificFailoverInput.

func (PlannedFailoverProviderSpecificFailoverInput) MarshalJSON added in v1.1.0

MarshalJSON implements the json.Marshaller interface for type PlannedFailoverProviderSpecificFailoverInput.

func (*PlannedFailoverProviderSpecificFailoverInput) UnmarshalJSON

func (p *PlannedFailoverProviderSpecificFailoverInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PlannedFailoverProviderSpecificFailoverInput.

type PlannedFailoverProviderSpecificFailoverInputClassification

type PlannedFailoverProviderSpecificFailoverInputClassification interface {
	// GetPlannedFailoverProviderSpecificFailoverInput returns the PlannedFailoverProviderSpecificFailoverInput content of the underlying type.
	GetPlannedFailoverProviderSpecificFailoverInput() *PlannedFailoverProviderSpecificFailoverInput
}

PlannedFailoverProviderSpecificFailoverInputClassification provides polymorphic access to related types. Call the interface's GetPlannedFailoverProviderSpecificFailoverInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *HyperVReplicaAzureFailbackProviderInput, *HyperVReplicaAzurePlannedFailoverProviderInput, *InMageRcmFailbackPlannedFailoverProviderInput, - *PlannedFailoverProviderSpecificFailoverInput

type PlannedFailoverStatus

type PlannedFailoverStatus string

PlannedFailoverStatus - The last planned failover status.

const (
	PlannedFailoverStatusCancelled PlannedFailoverStatus = "Cancelled"
	PlannedFailoverStatusFailed    PlannedFailoverStatus = "Failed"
	PlannedFailoverStatusSucceeded PlannedFailoverStatus = "Succeeded"
	PlannedFailoverStatusUnknown   PlannedFailoverStatus = "Unknown"
)

func PossiblePlannedFailoverStatusValues

func PossiblePlannedFailoverStatusValues() []PlannedFailoverStatus

PossiblePlannedFailoverStatusValues returns the possible values for the PlannedFailoverStatus const type.

type Policy

type Policy struct {
	// Resource Location
	Location *string `json:"location,omitempty"`

	// The custom data.
	Properties *PolicyProperties `json:"properties,omitempty"`

	// READ-ONLY; Resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Resource Name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Resource Type
	Type *string `json:"type,omitempty" azure:"ro"`
}

Policy - Protection profile details.

func (Policy) MarshalJSON added in v1.1.0

func (p Policy) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Policy.

func (*Policy) UnmarshalJSON added in v1.1.0

func (p *Policy) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Policy.

type PolicyCollection

type PolicyCollection struct {
	// The value of next link.
	NextLink *string `json:"nextLink,omitempty"`

	// The policy details.
	Value []*Policy `json:"value,omitempty"`
}

PolicyCollection - Protection Profile Collection details.

func (PolicyCollection) MarshalJSON

func (p PolicyCollection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PolicyCollection.

func (*PolicyCollection) UnmarshalJSON added in v1.1.0

func (p *PolicyCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PolicyCollection.

type PolicyProperties

type PolicyProperties struct {
	// The FriendlyName.
	FriendlyName *string `json:"friendlyName,omitempty"`

	// The ReplicationChannelSetting.
	ProviderSpecificDetails PolicyProviderSpecificDetailsClassification `json:"providerSpecificDetails,omitempty"`
}

PolicyProperties - Protection profile custom data details.

func (PolicyProperties) MarshalJSON

func (p PolicyProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PolicyProperties.

func (*PolicyProperties) UnmarshalJSON

func (p *PolicyProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PolicyProperties.

type PolicyProviderSpecificDetails

type PolicyProviderSpecificDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`
}

PolicyProviderSpecificDetails - Base class for Provider specific details for policies.

func (*PolicyProviderSpecificDetails) GetPolicyProviderSpecificDetails

func (p *PolicyProviderSpecificDetails) GetPolicyProviderSpecificDetails() *PolicyProviderSpecificDetails

GetPolicyProviderSpecificDetails implements the PolicyProviderSpecificDetailsClassification interface for type PolicyProviderSpecificDetails.

func (PolicyProviderSpecificDetails) MarshalJSON added in v1.1.0

func (p PolicyProviderSpecificDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PolicyProviderSpecificDetails.

func (*PolicyProviderSpecificDetails) UnmarshalJSON

func (p *PolicyProviderSpecificDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PolicyProviderSpecificDetails.

type PolicyProviderSpecificDetailsClassification

type PolicyProviderSpecificDetailsClassification interface {
	// GetPolicyProviderSpecificDetails returns the PolicyProviderSpecificDetails content of the underlying type.
	GetPolicyProviderSpecificDetails() *PolicyProviderSpecificDetails
}

PolicyProviderSpecificDetailsClassification provides polymorphic access to related types. Call the interface's GetPolicyProviderSpecificDetails() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *A2APolicyDetails, *HyperVReplicaAzurePolicyDetails, *HyperVReplicaBasePolicyDetails, *HyperVReplicaBluePolicyDetails, - *HyperVReplicaPolicyDetails, *InMageAzureV2PolicyDetails, *InMageBasePolicyDetails, *InMagePolicyDetails, *InMageRcmFailbackPolicyDetails, - *InMageRcmPolicyDetails, *PolicyProviderSpecificDetails, *VmwareCbtPolicyDetails

type PolicyProviderSpecificInput

type PolicyProviderSpecificInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

PolicyProviderSpecificInput - Base class for provider specific input.

func (*PolicyProviderSpecificInput) GetPolicyProviderSpecificInput

func (p *PolicyProviderSpecificInput) GetPolicyProviderSpecificInput() *PolicyProviderSpecificInput

GetPolicyProviderSpecificInput implements the PolicyProviderSpecificInputClassification interface for type PolicyProviderSpecificInput.

func (PolicyProviderSpecificInput) MarshalJSON added in v1.1.0

func (p PolicyProviderSpecificInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PolicyProviderSpecificInput.

func (*PolicyProviderSpecificInput) UnmarshalJSON

func (p *PolicyProviderSpecificInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PolicyProviderSpecificInput.

type PolicyProviderSpecificInputClassification

type PolicyProviderSpecificInputClassification interface {
	// GetPolicyProviderSpecificInput returns the PolicyProviderSpecificInput content of the underlying type.
	GetPolicyProviderSpecificInput() *PolicyProviderSpecificInput
}

PolicyProviderSpecificInputClassification provides polymorphic access to related types. Call the interface's GetPolicyProviderSpecificInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *A2ACrossClusterMigrationPolicyCreationInput, *A2APolicyCreationInput, *HyperVReplicaAzurePolicyInput, *HyperVReplicaBluePolicyInput, - *HyperVReplicaPolicyInput, *InMageAzureV2PolicyInput, *InMagePolicyInput, *InMageRcmFailbackPolicyCreationInput, *InMageRcmPolicyCreationInput, - *PolicyProviderSpecificInput, *VMwareCbtPolicyCreationInput

type PossibleOperationsDirections

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

func PossiblePossibleOperationsDirectionsValues

func PossiblePossibleOperationsDirectionsValues() []PossibleOperationsDirections

PossiblePossibleOperationsDirectionsValues returns the possible values for the PossibleOperationsDirections const type.

type PresenceStatus

type PresenceStatus string

PresenceStatus - A value indicating whether the VM has a physical disk attached. String value of SrsDataContract.PresenceStatus enum.

const (
	PresenceStatusNotPresent PresenceStatus = "NotPresent"
	PresenceStatusPresent    PresenceStatus = "Present"
	PresenceStatusUnknown    PresenceStatus = "Unknown"
)

func PossiblePresenceStatusValues

func PossiblePresenceStatusValues() []PresenceStatus

PossiblePresenceStatusValues returns the possible values for the PresenceStatus const type.

type ProcessServer

type ProcessServer struct {
	// Agent expiry date.
	AgentExpiryDate *time.Time `json:"agentExpiryDate,omitempty"`

	// The version of the scout component on the server.
	AgentVersion *string `json:"agentVersion,omitempty"`

	// The agent version details.
	AgentVersionDetails *VersionDetails `json:"agentVersionDetails,omitempty"`

	// The available memory.
	AvailableMemoryInBytes *int64 `json:"availableMemoryInBytes,omitempty"`

	// The available space.
	AvailableSpaceInBytes *int64 `json:"availableSpaceInBytes,omitempty"`

	// The percentage of the CPU load.
	CPULoad *string `json:"cpuLoad,omitempty"`

	// The CPU load status.
	CPULoadStatus *string `json:"cpuLoadStatus,omitempty"`

	// The Process Server's friendly name.
	FriendlyName *string `json:"friendlyName,omitempty"`

	// Health errors.
	HealthErrors []*HealthError `json:"healthErrors,omitempty"`

	// The agent generated Id.
	HostID *string `json:"hostId,omitempty"`

	// The Process Server Id.
	ID *string `json:"id,omitempty"`

	// The IP address of the server.
	IPAddress *string `json:"ipAddress,omitempty"`

	// The last heartbeat received from the server.
	LastHeartbeat *time.Time `json:"lastHeartbeat,omitempty"`

	// The servers configured with this PS.
	MachineCount *string `json:"machineCount,omitempty"`

	// The memory usage status.
	MemoryUsageStatus *string `json:"memoryUsageStatus,omitempty"`

	// The list of the mobility service updates available on the Process Server.
	MobilityServiceUpdates []*MobilityServiceUpdate `json:"mobilityServiceUpdates,omitempty"`

	// The OS type of the server.
	OSType *string `json:"osType,omitempty"`

	// OS Version of the process server. Note: This will get populated if user has CS version greater than 9.12.0.0.
	OSVersion *string `json:"osVersion,omitempty"`

	// The PS service status.
	PsServiceStatus *string `json:"psServiceStatus,omitempty"`

	// The number of replication pairs configured in this PS.
	ReplicationPairCount *string `json:"replicationPairCount,omitempty"`

	// The PS SSL cert expiry date.
	SSLCertExpiryDate *time.Time `json:"sslCertExpiryDate,omitempty"`

	// CS SSL cert expiry date.
	SSLCertExpiryRemainingDays *int32 `json:"sslCertExpiryRemainingDays,omitempty"`

	// The space usage status.
	SpaceUsageStatus *string `json:"spaceUsageStatus,omitempty"`

	// The percentage of the system load.
	SystemLoad *string `json:"systemLoad,omitempty"`

	// The system load status.
	SystemLoadStatus *string `json:"systemLoadStatus,omitempty"`

	// The total memory.
	TotalMemoryInBytes *int64 `json:"totalMemoryInBytes,omitempty"`

	// The total space.
	TotalSpaceInBytes *int64 `json:"totalSpaceInBytes,omitempty"`

	// Version status.
	VersionStatus *string `json:"versionStatus,omitempty"`

	// READ-ONLY; The health of Process Server.
	Health *ProtectionHealth `json:"health,omitempty" azure:"ro"`

	// READ-ONLY; The MARS communication status.
	MarsCommunicationStatus *string `json:"marsCommunicationStatus,omitempty" azure:"ro"`

	// READ-ONLY; The MARS registration status.
	MarsRegistrationStatus *string `json:"marsRegistrationStatus,omitempty" azure:"ro"`

	// READ-ONLY; The process server stats refresh time.
	PsStatsRefreshTime *time.Time `json:"psStatsRefreshTime,omitempty" azure:"ro"`

	// READ-ONLY; The throughput in bytes.
	ThroughputInBytes *int64 `json:"throughputInBytes,omitempty" azure:"ro"`

	// READ-ONLY; The throughput in MBps.
	ThroughputInMBps *int64 `json:"throughputInMBps,omitempty" azure:"ro"`

	// READ-ONLY; The throughput status.
	ThroughputStatus *string `json:"throughputStatus,omitempty" azure:"ro"`

	// READ-ONLY; The uploading pending data in bytes.
	ThroughputUploadPendingDataInBytes *int64 `json:"throughputUploadPendingDataInBytes,omitempty" azure:"ro"`
}

ProcessServer - Details of the Process Server.

func (ProcessServer) MarshalJSON

func (p ProcessServer) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProcessServer.

func (*ProcessServer) UnmarshalJSON

func (p *ProcessServer) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProcessServer.

type ProcessServerDetails

type ProcessServerDetails struct {
	// READ-ONLY; The available memory.
	AvailableMemoryInBytes *int64 `json:"availableMemoryInBytes,omitempty" azure:"ro"`

	// READ-ONLY; The available disk space.
	AvailableSpaceInBytes *int64 `json:"availableSpaceInBytes,omitempty" azure:"ro"`

	// READ-ONLY; The process server Bios Id.
	BiosID *string `json:"biosId,omitempty" azure:"ro"`

	// READ-ONLY; The disk usage status.
	DiskUsageStatus *RcmComponentStatus `json:"diskUsageStatus,omitempty" azure:"ro"`

	// READ-ONLY; The fabric object Id.
	FabricObjectID *string `json:"fabricObjectId,omitempty" azure:"ro"`

	// READ-ONLY; The process server Fqdn.
	Fqdn *string `json:"fqdn,omitempty" azure:"ro"`

	// READ-ONLY; The free disk space percentage.
	FreeSpacePercentage *float64 `json:"freeSpacePercentage,omitempty" azure:"ro"`

	// READ-ONLY; The health of the process server.
	Health *ProtectionHealth `json:"health,omitempty" azure:"ro"`

	// READ-ONLY; The health errors.
	HealthErrors []*HealthError `json:"healthErrors,omitempty" azure:"ro"`

	// READ-ONLY; The historic health of the process server based on the health in last 24 hours.
	HistoricHealth *ProtectionHealth `json:"historicHealth,omitempty" azure:"ro"`

	// READ-ONLY; The process server Id.
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The list of IP addresses for communicating with the RCM component.
	IPAddresses []*string `json:"ipAddresses,omitempty" azure:"ro"`

	// READ-ONLY; The last heartbeat received from the process server.
	LastHeartbeatUTC *time.Time `json:"lastHeartbeatUtc,omitempty" azure:"ro"`

	// READ-ONLY; The memory usage percentage.
	MemoryUsagePercentage *float64 `json:"memoryUsagePercentage,omitempty" azure:"ro"`

	// READ-ONLY; The memory usage status.
	MemoryUsageStatus *RcmComponentStatus `json:"memoryUsageStatus,omitempty" azure:"ro"`

	// READ-ONLY; The process server name.
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; The processor usage percentage.
	ProcessorUsagePercentage *float64 `json:"processorUsagePercentage,omitempty" azure:"ro"`

	// READ-ONLY; The processor usage status.
	ProcessorUsageStatus *RcmComponentStatus `json:"processorUsageStatus,omitempty" azure:"ro"`

	// READ-ONLY; The protected item count.
	ProtectedItemCount *int32 `json:"protectedItemCount,omitempty" azure:"ro"`

	// READ-ONLY; The system load.
	SystemLoad *int64 `json:"systemLoad,omitempty" azure:"ro"`

	// READ-ONLY; The system load status.
	SystemLoadStatus *RcmComponentStatus `json:"systemLoadStatus,omitempty" azure:"ro"`

	// READ-ONLY; The throughput in bytes.
	ThroughputInBytes *int64 `json:"throughputInBytes,omitempty" azure:"ro"`

	// READ-ONLY; The throughput status.
	ThroughputStatus *RcmComponentStatus `json:"throughputStatus,omitempty" azure:"ro"`

	// READ-ONLY; The uploading pending data in bytes.
	ThroughputUploadPendingDataInBytes *int64 `json:"throughputUploadPendingDataInBytes,omitempty" azure:"ro"`

	// READ-ONLY; The total memory.
	TotalMemoryInBytes *int64 `json:"totalMemoryInBytes,omitempty" azure:"ro"`

	// READ-ONLY; The total disk space.
	TotalSpaceInBytes *int64 `json:"totalSpaceInBytes,omitempty" azure:"ro"`

	// READ-ONLY; The used memory.
	UsedMemoryInBytes *int64 `json:"usedMemoryInBytes,omitempty" azure:"ro"`

	// READ-ONLY; The used disk space.
	UsedSpaceInBytes *int64 `json:"usedSpaceInBytes,omitempty" azure:"ro"`

	// READ-ONLY; The version.
	Version *string `json:"version,omitempty" azure:"ro"`
}

ProcessServerDetails - Process server details.

func (ProcessServerDetails) MarshalJSON

func (p ProcessServerDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProcessServerDetails.

func (*ProcessServerDetails) UnmarshalJSON

func (p *ProcessServerDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProcessServerDetails.

type ProtectableItem

type ProtectableItem struct {
	// Resource Location
	Location *string `json:"location,omitempty"`

	// The custom data.
	Properties *ProtectableItemProperties `json:"properties,omitempty"`

	// READ-ONLY; Resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Resource Name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Resource Type
	Type *string `json:"type,omitempty" azure:"ro"`
}

ProtectableItem - Replication protected item.

func (ProtectableItem) MarshalJSON added in v1.1.0

func (p ProtectableItem) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProtectableItem.

func (*ProtectableItem) UnmarshalJSON added in v1.1.0

func (p *ProtectableItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProtectableItem.

type ProtectableItemCollection

type ProtectableItemCollection struct {
	// The value of next link.
	NextLink *string `json:"nextLink,omitempty"`

	// The Protectable item details.
	Value []*ProtectableItem `json:"value,omitempty"`
}

ProtectableItemCollection - Protectable item collection.

func (ProtectableItemCollection) MarshalJSON

func (p ProtectableItemCollection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProtectableItemCollection.

func (*ProtectableItemCollection) UnmarshalJSON added in v1.1.0

func (p *ProtectableItemCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProtectableItemCollection.

type ProtectableItemProperties

type ProtectableItemProperties struct {
	// The Replication provider custom settings.
	CustomDetails ConfigurationSettingsClassification `json:"customDetails,omitempty"`

	// The name.
	FriendlyName *string `json:"friendlyName,omitempty"`

	// The Current protection readiness errors.
	ProtectionReadinessErrors []*string `json:"protectionReadinessErrors,omitempty"`

	// The protection status.
	ProtectionStatus *string `json:"protectionStatus,omitempty"`

	// The recovery provider ARM Id.
	RecoveryServicesProviderID *string `json:"recoveryServicesProviderId,omitempty"`

	// The ARM resource of protected items.
	ReplicationProtectedItemID *string `json:"replicationProtectedItemId,omitempty"`

	// The list of replication providers supported for the protectable item.
	SupportedReplicationProviders []*string `json:"supportedReplicationProviders,omitempty"`
}

ProtectableItemProperties - Replication protected item custom data details.

func (ProtectableItemProperties) MarshalJSON

func (p ProtectableItemProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProtectableItemProperties.

func (*ProtectableItemProperties) UnmarshalJSON

func (p *ProtectableItemProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProtectableItemProperties.

type ProtectableItemQueryParameter

type ProtectableItemQueryParameter struct {
	// State of the Protectable item query filter.
	State *string `json:"state,omitempty"`
}

ProtectableItemQueryParameter - Query parameter to enumerate Protectable items.

func (ProtectableItemQueryParameter) MarshalJSON added in v1.1.0

func (p ProtectableItemQueryParameter) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProtectableItemQueryParameter.

func (*ProtectableItemQueryParameter) UnmarshalJSON added in v1.1.0

func (p *ProtectableItemQueryParameter) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProtectableItemQueryParameter.

type ProtectedItemsQueryParameter

type ProtectedItemsQueryParameter struct {
	// The fabric object Id filter.
	FabricObjectID *string `json:"fabricObjectId,omitempty"`

	// The replication provider type.
	InstanceType *string `json:"instanceType,omitempty"`

	// Whether Multi VM group is auto created or specified by user.
	MultiVMGroupCreateOption *MultiVMGroupCreateOption `json:"multiVmGroupCreateOption,omitempty"`

	// The process server Id filter.
	ProcessServerID *string `json:"processServerId,omitempty"`

	// The recovery plan filter.
	RecoveryPlanName *string `json:"recoveryPlanName,omitempty"`

	// The source fabric location filter.
	SourceFabricLocation *string `json:"sourceFabricLocation,omitempty"`

	// The source fabric name filter.
	SourceFabricName *string `json:"sourceFabricName,omitempty"`

	// The vCenter name filter.
	VCenterName *string `json:"vCenterName,omitempty"`
}

ProtectedItemsQueryParameter - Query parameter to enumerate protected items.

func (ProtectedItemsQueryParameter) MarshalJSON added in v1.1.0

func (p ProtectedItemsQueryParameter) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProtectedItemsQueryParameter.

func (*ProtectedItemsQueryParameter) UnmarshalJSON added in v1.1.0

func (p *ProtectedItemsQueryParameter) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProtectedItemsQueryParameter.

type ProtectionContainer

type ProtectionContainer struct {
	// Resource Location
	Location *string `json:"location,omitempty"`

	// The custom data.
	Properties *ProtectionContainerProperties `json:"properties,omitempty"`

	// READ-ONLY; Resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Resource Name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Resource Type
	Type *string `json:"type,omitempty" azure:"ro"`
}

ProtectionContainer - Protection container details.

func (ProtectionContainer) MarshalJSON added in v1.1.0

func (p ProtectionContainer) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProtectionContainer.

func (*ProtectionContainer) UnmarshalJSON added in v1.1.0

func (p *ProtectionContainer) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProtectionContainer.

type ProtectionContainerCollection

type ProtectionContainerCollection struct {
	// The value of next link.
	NextLink *string `json:"nextLink,omitempty"`

	// The Protection Container details.
	Value []*ProtectionContainer `json:"value,omitempty"`
}

ProtectionContainerCollection - Protection Container collection.

func (ProtectionContainerCollection) MarshalJSON

func (p ProtectionContainerCollection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProtectionContainerCollection.

func (*ProtectionContainerCollection) UnmarshalJSON added in v1.1.0

func (p *ProtectionContainerCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProtectionContainerCollection.

type ProtectionContainerFabricSpecificDetails

type ProtectionContainerFabricSpecificDetails struct {
	// READ-ONLY; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty" azure:"ro"`
}

ProtectionContainerFabricSpecificDetails - Base class for fabric specific details of container.

func (ProtectionContainerFabricSpecificDetails) MarshalJSON added in v1.1.0

MarshalJSON implements the json.Marshaller interface for type ProtectionContainerFabricSpecificDetails.

func (*ProtectionContainerFabricSpecificDetails) UnmarshalJSON added in v1.1.0

func (p *ProtectionContainerFabricSpecificDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProtectionContainerFabricSpecificDetails.

type ProtectionContainerMapping

type ProtectionContainerMapping struct {
	// Resource Location
	Location *string `json:"location,omitempty"`

	// The custom data.
	Properties *ProtectionContainerMappingProperties `json:"properties,omitempty"`

	// READ-ONLY; Resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Resource Name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Resource Type
	Type *string `json:"type,omitempty" azure:"ro"`
}

ProtectionContainerMapping - Protection container mapping object.

func (ProtectionContainerMapping) MarshalJSON added in v1.1.0

func (p ProtectionContainerMapping) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProtectionContainerMapping.

func (*ProtectionContainerMapping) UnmarshalJSON added in v1.1.0

func (p *ProtectionContainerMapping) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProtectionContainerMapping.

type ProtectionContainerMappingCollection

type ProtectionContainerMappingCollection struct {
	// Link to fetch rest of the data.
	NextLink *string `json:"nextLink,omitempty"`

	// List of container mappings.
	Value []*ProtectionContainerMapping `json:"value,omitempty"`
}

ProtectionContainerMappingCollection - Protection container mapping collection class.

func (ProtectionContainerMappingCollection) MarshalJSON

func (p ProtectionContainerMappingCollection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProtectionContainerMappingCollection.

func (*ProtectionContainerMappingCollection) UnmarshalJSON added in v1.1.0

func (p *ProtectionContainerMappingCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProtectionContainerMappingCollection.

type ProtectionContainerMappingProperties

type ProtectionContainerMappingProperties struct {
	// Health of pairing.
	Health *string `json:"health,omitempty"`

	// Health error.
	HealthErrorDetails []*HealthError `json:"healthErrorDetails,omitempty"`

	// Friendly name of replication policy.
	PolicyFriendlyName *string `json:"policyFriendlyName,omitempty"`

	// Policy ARM Id.
	PolicyID *string `json:"policyId,omitempty"`

	// Provider specific provider details.
	ProviderSpecificDetails ProtectionContainerMappingProviderSpecificDetailsClassification `json:"providerSpecificDetails,omitempty"`

	// Friendly name of source fabric.
	SourceFabricFriendlyName *string `json:"sourceFabricFriendlyName,omitempty"`

	// Friendly name of source protection container.
	SourceProtectionContainerFriendlyName *string `json:"sourceProtectionContainerFriendlyName,omitempty"`

	// Association Status.
	State *string `json:"state,omitempty"`

	// Friendly name of target fabric.
	TargetFabricFriendlyName *string `json:"targetFabricFriendlyName,omitempty"`

	// Friendly name of paired container.
	TargetProtectionContainerFriendlyName *string `json:"targetProtectionContainerFriendlyName,omitempty"`

	// Paired protection container ARM ID.
	TargetProtectionContainerID *string `json:"targetProtectionContainerId,omitempty"`
}

ProtectionContainerMappingProperties - Protection container mapping properties.

func (ProtectionContainerMappingProperties) MarshalJSON

func (p ProtectionContainerMappingProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProtectionContainerMappingProperties.

func (*ProtectionContainerMappingProperties) UnmarshalJSON

func (p *ProtectionContainerMappingProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProtectionContainerMappingProperties.

type ProtectionContainerMappingProviderSpecificDetails

type ProtectionContainerMappingProviderSpecificDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`
}

ProtectionContainerMappingProviderSpecificDetails - Container mapping provider specific details.

func (*ProtectionContainerMappingProviderSpecificDetails) GetProtectionContainerMappingProviderSpecificDetails

func (p *ProtectionContainerMappingProviderSpecificDetails) GetProtectionContainerMappingProviderSpecificDetails() *ProtectionContainerMappingProviderSpecificDetails

GetProtectionContainerMappingProviderSpecificDetails implements the ProtectionContainerMappingProviderSpecificDetailsClassification interface for type ProtectionContainerMappingProviderSpecificDetails.

func (ProtectionContainerMappingProviderSpecificDetails) MarshalJSON added in v1.1.0

MarshalJSON implements the json.Marshaller interface for type ProtectionContainerMappingProviderSpecificDetails.

func (*ProtectionContainerMappingProviderSpecificDetails) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type ProtectionContainerMappingProviderSpecificDetails.

type ProtectionContainerMappingProviderSpecificDetailsClassification

type ProtectionContainerMappingProviderSpecificDetailsClassification interface {
	// GetProtectionContainerMappingProviderSpecificDetails returns the ProtectionContainerMappingProviderSpecificDetails content of the underlying type.
	GetProtectionContainerMappingProviderSpecificDetails() *ProtectionContainerMappingProviderSpecificDetails
}

ProtectionContainerMappingProviderSpecificDetailsClassification provides polymorphic access to related types. Call the interface's GetProtectionContainerMappingProviderSpecificDetails() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *A2AProtectionContainerMappingDetails, *InMageRcmProtectionContainerMappingDetails, *ProtectionContainerMappingProviderSpecificDetails, - *VMwareCbtProtectionContainerMappingDetails

type ProtectionContainerProperties

type ProtectionContainerProperties struct {
	// Fabric friendly name.
	FabricFriendlyName *string `json:"fabricFriendlyName,omitempty"`

	// Fabric specific details.
	FabricSpecificDetails *ProtectionContainerFabricSpecificDetails `json:"fabricSpecificDetails,omitempty"`

	// The fabric type.
	FabricType *string `json:"fabricType,omitempty"`

	// The name.
	FriendlyName *string `json:"friendlyName,omitempty"`

	// The pairing status of this cloud.
	PairingStatus *string `json:"pairingStatus,omitempty"`

	// Number of protected PEs.
	ProtectedItemCount *int32 `json:"protectedItemCount,omitempty"`

	// The role of this cloud.
	Role *string `json:"role,omitempty"`
}

ProtectionContainerProperties - Protection profile custom data details.

func (ProtectionContainerProperties) MarshalJSON added in v1.1.0

func (p ProtectionContainerProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProtectionContainerProperties.

func (*ProtectionContainerProperties) UnmarshalJSON added in v1.1.0

func (p *ProtectionContainerProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProtectionContainerProperties.

type ProtectionHealth

type ProtectionHealth string

ProtectionHealth - The health.

const (
	ProtectionHealthCritical ProtectionHealth = "Critical"
	ProtectionHealthNone     ProtectionHealth = "None"
	ProtectionHealthNormal   ProtectionHealth = "Normal"
	ProtectionHealthWarning  ProtectionHealth = "Warning"
)

func PossibleProtectionHealthValues

func PossibleProtectionHealthValues() []ProtectionHealth

PossibleProtectionHealthValues returns the possible values for the ProtectionHealth const type.

type ProtectionProfileCustomDetails

type ProtectionProfileCustomDetails struct {
	// REQUIRED; The class type.
	ResourceType *string `json:"resourceType,omitempty"`
}

ProtectionProfileCustomDetails - Protection Profile custom input.

func (*ProtectionProfileCustomDetails) GetProtectionProfileCustomDetails

func (p *ProtectionProfileCustomDetails) GetProtectionProfileCustomDetails() *ProtectionProfileCustomDetails

GetProtectionProfileCustomDetails implements the ProtectionProfileCustomDetailsClassification interface for type ProtectionProfileCustomDetails.

func (ProtectionProfileCustomDetails) MarshalJSON added in v1.1.0

func (p ProtectionProfileCustomDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProtectionProfileCustomDetails.

func (*ProtectionProfileCustomDetails) UnmarshalJSON

func (p *ProtectionProfileCustomDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProtectionProfileCustomDetails.

type ProtectionProfileCustomDetailsClassification

type ProtectionProfileCustomDetailsClassification interface {
	// GetProtectionProfileCustomDetails returns the ProtectionProfileCustomDetails content of the underlying type.
	GetProtectionProfileCustomDetails() *ProtectionProfileCustomDetails
}

ProtectionProfileCustomDetailsClassification provides polymorphic access to related types. Call the interface's GetProtectionProfileCustomDetails() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *ExistingProtectionProfile, *NewProtectionProfile, *ProtectionProfileCustomDetails

type ProviderError

type ProviderError struct {
	// The Error code.
	ErrorCode *int32 `json:"errorCode,omitempty"`

	// The Provider error Id.
	ErrorID *string `json:"errorId,omitempty"`

	// The Error message.
	ErrorMessage *string `json:"errorMessage,omitempty"`

	// The possible causes for the error.
	PossibleCauses *string `json:"possibleCauses,omitempty"`

	// The recommended action to resolve the error.
	RecommendedAction *string `json:"recommendedAction,omitempty"`
}

ProviderError - This class contains the error details per object.

func (ProviderError) MarshalJSON added in v1.1.0

func (p ProviderError) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProviderError.

func (*ProviderError) UnmarshalJSON added in v1.1.0

func (p *ProviderError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProviderError.

type ProviderSpecificRecoveryPointDetails

type ProviderSpecificRecoveryPointDetails struct {
	// REQUIRED; Gets the provider type.
	InstanceType *string `json:"instanceType,omitempty"`
}

ProviderSpecificRecoveryPointDetails - Replication provider specific recovery point details.

func (*ProviderSpecificRecoveryPointDetails) GetProviderSpecificRecoveryPointDetails

func (p *ProviderSpecificRecoveryPointDetails) GetProviderSpecificRecoveryPointDetails() *ProviderSpecificRecoveryPointDetails

GetProviderSpecificRecoveryPointDetails implements the ProviderSpecificRecoveryPointDetailsClassification interface for type ProviderSpecificRecoveryPointDetails.

func (ProviderSpecificRecoveryPointDetails) MarshalJSON added in v1.1.0

func (p ProviderSpecificRecoveryPointDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProviderSpecificRecoveryPointDetails.

func (*ProviderSpecificRecoveryPointDetails) UnmarshalJSON

func (p *ProviderSpecificRecoveryPointDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProviderSpecificRecoveryPointDetails.

type ProviderSpecificRecoveryPointDetailsClassification

type ProviderSpecificRecoveryPointDetailsClassification interface {
	// GetProviderSpecificRecoveryPointDetails returns the ProviderSpecificRecoveryPointDetails content of the underlying type.
	GetProviderSpecificRecoveryPointDetails() *ProviderSpecificRecoveryPointDetails
}

ProviderSpecificRecoveryPointDetailsClassification provides polymorphic access to related types. Call the interface's GetProviderSpecificRecoveryPointDetails() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *A2ARecoveryPointDetails, *InMageAzureV2RecoveryPointDetails, *InMageRcmRecoveryPointDetails, *ProviderSpecificRecoveryPointDetails

type PushInstallerDetails

type PushInstallerDetails struct {
	// READ-ONLY; The push installer Bios Id.
	BiosID *string `json:"biosId,omitempty" azure:"ro"`

	// READ-ONLY; The fabric object Id.
	FabricObjectID *string `json:"fabricObjectId,omitempty" azure:"ro"`

	// READ-ONLY; The push installer Fqdn.
	Fqdn *string `json:"fqdn,omitempty" azure:"ro"`

	// READ-ONLY; The health of the push installer.
	Health *ProtectionHealth `json:"health,omitempty" azure:"ro"`

	// READ-ONLY; The health errors.
	HealthErrors []*HealthError `json:"healthErrors,omitempty" azure:"ro"`

	// READ-ONLY; The push installer Id.
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The last heartbeat received from the push installer.
	LastHeartbeatUTC *time.Time `json:"lastHeartbeatUtc,omitempty" azure:"ro"`

	// READ-ONLY; The push installer name.
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; The version.
	Version *string `json:"version,omitempty" azure:"ro"`
}

PushInstallerDetails - Push installer details.

func (PushInstallerDetails) MarshalJSON

func (p PushInstallerDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PushInstallerDetails.

func (*PushInstallerDetails) UnmarshalJSON

func (p *PushInstallerDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PushInstallerDetails.

type RcmComponentStatus

type RcmComponentStatus string

RcmComponentStatus - The throughput status.

const (
	RcmComponentStatusCritical RcmComponentStatus = "Critical"
	RcmComponentStatusHealthy  RcmComponentStatus = "Healthy"
	RcmComponentStatusUnknown  RcmComponentStatus = "Unknown"
	RcmComponentStatusWarning  RcmComponentStatus = "Warning"
)

func PossibleRcmComponentStatusValues

func PossibleRcmComponentStatusValues() []RcmComponentStatus

PossibleRcmComponentStatusValues returns the possible values for the RcmComponentStatus const type.

type RcmProxyDetails

type RcmProxyDetails struct {
	// READ-ONLY; The RCM proxy Bios Id.
	BiosID *string `json:"biosId,omitempty" azure:"ro"`

	// READ-ONLY; The client authentication type.
	ClientAuthenticationType *string `json:"clientAuthenticationType,omitempty" azure:"ro"`

	// READ-ONLY; The fabric object Id.
	FabricObjectID *string `json:"fabricObjectId,omitempty" azure:"ro"`

	// READ-ONLY; The RCM proxy Fqdn.
	Fqdn *string `json:"fqdn,omitempty" azure:"ro"`

	// READ-ONLY; The health of the RCM proxy.
	Health *ProtectionHealth `json:"health,omitempty" azure:"ro"`

	// READ-ONLY; The health errors.
	HealthErrors []*HealthError `json:"healthErrors,omitempty" azure:"ro"`

	// READ-ONLY; The RCM proxy Id.
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The last heartbeat received from the RCM proxy.
	LastHeartbeatUTC *time.Time `json:"lastHeartbeatUtc,omitempty" azure:"ro"`

	// READ-ONLY; The RCM proxy name.
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; The version.
	Version *string `json:"version,omitempty" azure:"ro"`
}

RcmProxyDetails - RCM proxy details.

func (RcmProxyDetails) MarshalJSON

func (r RcmProxyDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RcmProxyDetails.

func (*RcmProxyDetails) UnmarshalJSON

func (r *RcmProxyDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RcmProxyDetails.

type RecoveryAvailabilitySetCustomDetails

type RecoveryAvailabilitySetCustomDetails struct {
	// REQUIRED; The class type.
	ResourceType *string `json:"resourceType,omitempty"`
}

RecoveryAvailabilitySetCustomDetails - Recovery Availability Set custom input.

func (*RecoveryAvailabilitySetCustomDetails) GetRecoveryAvailabilitySetCustomDetails

func (r *RecoveryAvailabilitySetCustomDetails) GetRecoveryAvailabilitySetCustomDetails() *RecoveryAvailabilitySetCustomDetails

GetRecoveryAvailabilitySetCustomDetails implements the RecoveryAvailabilitySetCustomDetailsClassification interface for type RecoveryAvailabilitySetCustomDetails.

func (RecoveryAvailabilitySetCustomDetails) MarshalJSON added in v1.1.0

func (r RecoveryAvailabilitySetCustomDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RecoveryAvailabilitySetCustomDetails.

func (*RecoveryAvailabilitySetCustomDetails) UnmarshalJSON

func (r *RecoveryAvailabilitySetCustomDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryAvailabilitySetCustomDetails.

type RecoveryAvailabilitySetCustomDetailsClassification

type RecoveryAvailabilitySetCustomDetailsClassification interface {
	// GetRecoveryAvailabilitySetCustomDetails returns the RecoveryAvailabilitySetCustomDetails content of the underlying type.
	GetRecoveryAvailabilitySetCustomDetails() *RecoveryAvailabilitySetCustomDetails
}

RecoveryAvailabilitySetCustomDetailsClassification provides polymorphic access to related types. Call the interface's GetRecoveryAvailabilitySetCustomDetails() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *ExistingRecoveryAvailabilitySet, *RecoveryAvailabilitySetCustomDetails

type RecoveryPlan

type RecoveryPlan struct {
	// Resource Location
	Location *string `json:"location,omitempty"`

	// The custom details.
	Properties *RecoveryPlanProperties `json:"properties,omitempty"`

	// READ-ONLY; Resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Resource Name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Resource Type
	Type *string `json:"type,omitempty" azure:"ro"`
}

RecoveryPlan - Recovery plan details.

func (RecoveryPlan) MarshalJSON added in v1.1.0

func (r RecoveryPlan) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RecoveryPlan.

func (*RecoveryPlan) UnmarshalJSON added in v1.1.0

func (r *RecoveryPlan) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlan.

type RecoveryPlanA2ADetails

type RecoveryPlanA2ADetails struct {
	// REQUIRED; Gets the Instance type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The primary extended location.
	PrimaryExtendedLocation *ExtendedLocation `json:"primaryExtendedLocation,omitempty"`

	// The primary zone.
	PrimaryZone *string `json:"primaryZone,omitempty"`

	// The recovery extended location.
	RecoveryExtendedLocation *ExtendedLocation `json:"recoveryExtendedLocation,omitempty"`

	// The recovery zone.
	RecoveryZone *string `json:"recoveryZone,omitempty"`
}

RecoveryPlanA2ADetails - Recovery plan A2A specific details.

func (*RecoveryPlanA2ADetails) GetRecoveryPlanProviderSpecificDetails added in v0.2.0

func (r *RecoveryPlanA2ADetails) GetRecoveryPlanProviderSpecificDetails() *RecoveryPlanProviderSpecificDetails

GetRecoveryPlanProviderSpecificDetails implements the RecoveryPlanProviderSpecificDetailsClassification interface for type RecoveryPlanA2ADetails.

func (RecoveryPlanA2ADetails) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanA2ADetails.

func (*RecoveryPlanA2ADetails) UnmarshalJSON

func (r *RecoveryPlanA2ADetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanA2ADetails.

type RecoveryPlanA2AFailoverInput

type RecoveryPlanA2AFailoverInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; The recovery point type.
	RecoveryPointType *A2ARpRecoveryPointType `json:"recoveryPointType,omitempty"`

	// A value indicating whether to use recovery cloud service for TFO or not.
	CloudServiceCreationOption *string `json:"cloudServiceCreationOption,omitempty"`

	// A value indicating whether multi VM sync enabled VMs should use multi VM sync points for failover.
	MultiVMSyncPointOption *MultiVMSyncPointOption `json:"multiVmSyncPointOption,omitempty"`
}

RecoveryPlanA2AFailoverInput - Recovery plan A2A failover input.

func (*RecoveryPlanA2AFailoverInput) GetRecoveryPlanProviderSpecificFailoverInput added in v0.2.0

func (r *RecoveryPlanA2AFailoverInput) GetRecoveryPlanProviderSpecificFailoverInput() *RecoveryPlanProviderSpecificFailoverInput

GetRecoveryPlanProviderSpecificFailoverInput implements the RecoveryPlanProviderSpecificFailoverInputClassification interface for type RecoveryPlanA2AFailoverInput.

func (RecoveryPlanA2AFailoverInput) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanA2AFailoverInput.

func (*RecoveryPlanA2AFailoverInput) UnmarshalJSON

func (r *RecoveryPlanA2AFailoverInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanA2AFailoverInput.

type RecoveryPlanA2AInput

type RecoveryPlanA2AInput struct {
	// REQUIRED; Gets the Instance type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The primary extended location.
	PrimaryExtendedLocation *ExtendedLocation `json:"primaryExtendedLocation,omitempty"`

	// The primary zone.
	PrimaryZone *string `json:"primaryZone,omitempty"`

	// The recovery extended location.
	RecoveryExtendedLocation *ExtendedLocation `json:"recoveryExtendedLocation,omitempty"`

	// The recovery zone.
	RecoveryZone *string `json:"recoveryZone,omitempty"`
}

RecoveryPlanA2AInput - Recovery plan A2A input.

func (*RecoveryPlanA2AInput) GetRecoveryPlanProviderSpecificInput added in v0.2.0

func (r *RecoveryPlanA2AInput) GetRecoveryPlanProviderSpecificInput() *RecoveryPlanProviderSpecificInput

GetRecoveryPlanProviderSpecificInput implements the RecoveryPlanProviderSpecificInputClassification interface for type RecoveryPlanA2AInput.

func (RecoveryPlanA2AInput) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanA2AInput.

func (*RecoveryPlanA2AInput) UnmarshalJSON

func (r *RecoveryPlanA2AInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanA2AInput.

type RecoveryPlanAction

type RecoveryPlanAction struct {
	// REQUIRED; The action name.
	ActionName *string `json:"actionName,omitempty"`

	// REQUIRED; The custom details.
	CustomDetails RecoveryPlanActionDetailsClassification `json:"customDetails,omitempty"`

	// REQUIRED; The list of failover directions.
	FailoverDirections []*PossibleOperationsDirections `json:"failoverDirections,omitempty"`

	// REQUIRED; The list of failover types.
	FailoverTypes []*ReplicationProtectedItemOperation `json:"failoverTypes,omitempty"`
}

RecoveryPlanAction - Recovery plan action details.

func (RecoveryPlanAction) MarshalJSON

func (r RecoveryPlanAction) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanAction.

func (*RecoveryPlanAction) UnmarshalJSON

func (r *RecoveryPlanAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanAction.

type RecoveryPlanActionDetails

type RecoveryPlanActionDetails struct {
	// REQUIRED; Gets the type of action details (see RecoveryPlanActionDetailsTypes enum for possible values).
	InstanceType *string `json:"instanceType,omitempty"`
}

RecoveryPlanActionDetails - Recovery plan action custom details.

func (*RecoveryPlanActionDetails) GetRecoveryPlanActionDetails

func (r *RecoveryPlanActionDetails) GetRecoveryPlanActionDetails() *RecoveryPlanActionDetails

GetRecoveryPlanActionDetails implements the RecoveryPlanActionDetailsClassification interface for type RecoveryPlanActionDetails.

func (RecoveryPlanActionDetails) MarshalJSON added in v1.1.0

func (r RecoveryPlanActionDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanActionDetails.

func (*RecoveryPlanActionDetails) UnmarshalJSON

func (r *RecoveryPlanActionDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanActionDetails.

type RecoveryPlanActionDetailsClassification

type RecoveryPlanActionDetailsClassification interface {
	// GetRecoveryPlanActionDetails returns the RecoveryPlanActionDetails content of the underlying type.
	GetRecoveryPlanActionDetails() *RecoveryPlanActionDetails
}

RecoveryPlanActionDetailsClassification provides polymorphic access to related types. Call the interface's GetRecoveryPlanActionDetails() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *RecoveryPlanActionDetails, *RecoveryPlanAutomationRunbookActionDetails, *RecoveryPlanManualActionDetails, *RecoveryPlanScriptActionDetails

type RecoveryPlanActionLocation

type RecoveryPlanActionLocation string

RecoveryPlanActionLocation - The fabric location.

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

func PossibleRecoveryPlanActionLocationValues

func PossibleRecoveryPlanActionLocationValues() []RecoveryPlanActionLocation

PossibleRecoveryPlanActionLocationValues returns the possible values for the RecoveryPlanActionLocation const type.

type RecoveryPlanAutomationRunbookActionDetails

type RecoveryPlanAutomationRunbookActionDetails struct {
	// REQUIRED; The fabric location.
	FabricLocation *RecoveryPlanActionLocation `json:"fabricLocation,omitempty"`

	// REQUIRED; Gets the type of action details (see RecoveryPlanActionDetailsTypes enum for possible values).
	InstanceType *string `json:"instanceType,omitempty"`

	// The runbook ARM Id.
	RunbookID *string `json:"runbookId,omitempty"`

	// The runbook timeout.
	Timeout *string `json:"timeout,omitempty"`
}

RecoveryPlanAutomationRunbookActionDetails - Recovery plan Automation runbook action details.

func (*RecoveryPlanAutomationRunbookActionDetails) GetRecoveryPlanActionDetails added in v0.2.0

func (r *RecoveryPlanAutomationRunbookActionDetails) GetRecoveryPlanActionDetails() *RecoveryPlanActionDetails

GetRecoveryPlanActionDetails implements the RecoveryPlanActionDetailsClassification interface for type RecoveryPlanAutomationRunbookActionDetails.

func (RecoveryPlanAutomationRunbookActionDetails) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanAutomationRunbookActionDetails.

func (*RecoveryPlanAutomationRunbookActionDetails) UnmarshalJSON

func (r *RecoveryPlanAutomationRunbookActionDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanAutomationRunbookActionDetails.

type RecoveryPlanCollection

type RecoveryPlanCollection struct {
	// The value of next link.
	NextLink *string `json:"nextLink,omitempty"`

	// The list of recovery plans.
	Value []*RecoveryPlan `json:"value,omitempty"`
}

RecoveryPlanCollection - Recovery plan collection details.

func (RecoveryPlanCollection) MarshalJSON

func (r RecoveryPlanCollection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanCollection.

func (*RecoveryPlanCollection) UnmarshalJSON added in v1.1.0

func (r *RecoveryPlanCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanCollection.

type RecoveryPlanGroup

type RecoveryPlanGroup struct {
	// REQUIRED; The group type.
	GroupType *RecoveryPlanGroupType `json:"groupType,omitempty"`

	// The end group actions.
	EndGroupActions []*RecoveryPlanAction `json:"endGroupActions,omitempty"`

	// The list of protected items.
	ReplicationProtectedItems []*RecoveryPlanProtectedItem `json:"replicationProtectedItems,omitempty"`

	// The start group actions.
	StartGroupActions []*RecoveryPlanAction `json:"startGroupActions,omitempty"`
}

RecoveryPlanGroup - Recovery plan group details.

func (RecoveryPlanGroup) MarshalJSON

func (r RecoveryPlanGroup) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanGroup.

func (*RecoveryPlanGroup) UnmarshalJSON added in v1.1.0

func (r *RecoveryPlanGroup) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanGroup.

type RecoveryPlanGroupTaskDetails

type RecoveryPlanGroupTaskDetails struct {
	// REQUIRED; The type of task details.
	InstanceType *string `json:"instanceType,omitempty"`

	// The child tasks.
	ChildTasks []*ASRTask `json:"childTasks,omitempty"`

	// The group identifier.
	GroupID *string `json:"groupId,omitempty"`

	// The name.
	Name *string `json:"name,omitempty"`

	// The group type.
	RpGroupType *string `json:"rpGroupType,omitempty"`
}

RecoveryPlanGroupTaskDetails - This class represents the recovery plan group task.

func (*RecoveryPlanGroupTaskDetails) GetGroupTaskDetails added in v0.2.0

func (r *RecoveryPlanGroupTaskDetails) GetGroupTaskDetails() *GroupTaskDetails

GetGroupTaskDetails implements the GroupTaskDetailsClassification interface for type RecoveryPlanGroupTaskDetails.

func (*RecoveryPlanGroupTaskDetails) GetRecoveryPlanGroupTaskDetails

func (r *RecoveryPlanGroupTaskDetails) GetRecoveryPlanGroupTaskDetails() *RecoveryPlanGroupTaskDetails

GetRecoveryPlanGroupTaskDetails implements the RecoveryPlanGroupTaskDetailsClassification interface for type RecoveryPlanGroupTaskDetails.

func (RecoveryPlanGroupTaskDetails) MarshalJSON

func (r RecoveryPlanGroupTaskDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanGroupTaskDetails.

func (*RecoveryPlanGroupTaskDetails) UnmarshalJSON

func (r *RecoveryPlanGroupTaskDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanGroupTaskDetails.

type RecoveryPlanGroupTaskDetailsClassification

type RecoveryPlanGroupTaskDetailsClassification interface {
	GroupTaskDetailsClassification
	// GetRecoveryPlanGroupTaskDetails returns the RecoveryPlanGroupTaskDetails content of the underlying type.
	GetRecoveryPlanGroupTaskDetails() *RecoveryPlanGroupTaskDetails
}

RecoveryPlanGroupTaskDetailsClassification provides polymorphic access to related types. Call the interface's GetRecoveryPlanGroupTaskDetails() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *RecoveryPlanGroupTaskDetails, *RecoveryPlanShutdownGroupTaskDetails

type RecoveryPlanGroupType

type RecoveryPlanGroupType string

RecoveryPlanGroupType - The group type.

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

func PossibleRecoveryPlanGroupTypeValues

func PossibleRecoveryPlanGroupTypeValues() []RecoveryPlanGroupType

PossibleRecoveryPlanGroupTypeValues returns the possible values for the RecoveryPlanGroupType const type.

type RecoveryPlanHyperVReplicaAzureFailbackInput

type RecoveryPlanHyperVReplicaAzureFailbackInput struct {
	// REQUIRED; The data sync option.
	DataSyncOption *DataSyncStatus `json:"dataSyncOption,omitempty"`

	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; The ALR option.
	RecoveryVMCreationOption *AlternateLocationRecoveryOption `json:"recoveryVmCreationOption,omitempty"`
}

RecoveryPlanHyperVReplicaAzureFailbackInput - Recovery plan HVR Azure failback input.

func (*RecoveryPlanHyperVReplicaAzureFailbackInput) GetRecoveryPlanProviderSpecificFailoverInput added in v0.2.0

func (r *RecoveryPlanHyperVReplicaAzureFailbackInput) GetRecoveryPlanProviderSpecificFailoverInput() *RecoveryPlanProviderSpecificFailoverInput

GetRecoveryPlanProviderSpecificFailoverInput implements the RecoveryPlanProviderSpecificFailoverInputClassification interface for type RecoveryPlanHyperVReplicaAzureFailbackInput.

func (RecoveryPlanHyperVReplicaAzureFailbackInput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanHyperVReplicaAzureFailbackInput.

func (*RecoveryPlanHyperVReplicaAzureFailbackInput) UnmarshalJSON

func (r *RecoveryPlanHyperVReplicaAzureFailbackInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanHyperVReplicaAzureFailbackInput.

type RecoveryPlanHyperVReplicaAzureFailoverInput

type RecoveryPlanHyperVReplicaAzureFailoverInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The primary KEK certificate PFX.
	PrimaryKekCertificatePfx *string `json:"primaryKekCertificatePfx,omitempty"`

	// The recovery point type.
	RecoveryPointType *HyperVReplicaAzureRpRecoveryPointType `json:"recoveryPointType,omitempty"`

	// The secondary KEK certificate PFX.
	SecondaryKekCertificatePfx *string `json:"secondaryKekCertificatePfx,omitempty"`
}

RecoveryPlanHyperVReplicaAzureFailoverInput - Recovery plan HVR Azure failover input.

func (*RecoveryPlanHyperVReplicaAzureFailoverInput) GetRecoveryPlanProviderSpecificFailoverInput added in v0.2.0

func (r *RecoveryPlanHyperVReplicaAzureFailoverInput) GetRecoveryPlanProviderSpecificFailoverInput() *RecoveryPlanProviderSpecificFailoverInput

GetRecoveryPlanProviderSpecificFailoverInput implements the RecoveryPlanProviderSpecificFailoverInputClassification interface for type RecoveryPlanHyperVReplicaAzureFailoverInput.

func (RecoveryPlanHyperVReplicaAzureFailoverInput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanHyperVReplicaAzureFailoverInput.

func (*RecoveryPlanHyperVReplicaAzureFailoverInput) UnmarshalJSON

func (r *RecoveryPlanHyperVReplicaAzureFailoverInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanHyperVReplicaAzureFailoverInput.

type RecoveryPlanInMageAzureV2FailoverInput

type RecoveryPlanInMageAzureV2FailoverInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; The recovery point type.
	RecoveryPointType *InMageV2RpRecoveryPointType `json:"recoveryPointType,omitempty"`

	// A value indicating whether multi VM sync enabled VMs should use multi VM sync points for failover.
	UseMultiVMSyncPoint *string `json:"useMultiVmSyncPoint,omitempty"`
}

RecoveryPlanInMageAzureV2FailoverInput - Recovery plan InMageAzureV2 failover input.

func (*RecoveryPlanInMageAzureV2FailoverInput) GetRecoveryPlanProviderSpecificFailoverInput added in v0.2.0

func (r *RecoveryPlanInMageAzureV2FailoverInput) GetRecoveryPlanProviderSpecificFailoverInput() *RecoveryPlanProviderSpecificFailoverInput

GetRecoveryPlanProviderSpecificFailoverInput implements the RecoveryPlanProviderSpecificFailoverInputClassification interface for type RecoveryPlanInMageAzureV2FailoverInput.

func (RecoveryPlanInMageAzureV2FailoverInput) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanInMageAzureV2FailoverInput.

func (*RecoveryPlanInMageAzureV2FailoverInput) UnmarshalJSON

func (r *RecoveryPlanInMageAzureV2FailoverInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanInMageAzureV2FailoverInput.

type RecoveryPlanInMageFailoverInput

type RecoveryPlanInMageFailoverInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; The recovery point type.
	RecoveryPointType *RpInMageRecoveryPointType `json:"recoveryPointType,omitempty"`
}

RecoveryPlanInMageFailoverInput - Recovery plan InMage failover input.

func (*RecoveryPlanInMageFailoverInput) GetRecoveryPlanProviderSpecificFailoverInput added in v0.2.0

func (r *RecoveryPlanInMageFailoverInput) GetRecoveryPlanProviderSpecificFailoverInput() *RecoveryPlanProviderSpecificFailoverInput

GetRecoveryPlanProviderSpecificFailoverInput implements the RecoveryPlanProviderSpecificFailoverInputClassification interface for type RecoveryPlanInMageFailoverInput.

func (RecoveryPlanInMageFailoverInput) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanInMageFailoverInput.

func (*RecoveryPlanInMageFailoverInput) UnmarshalJSON

func (r *RecoveryPlanInMageFailoverInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanInMageFailoverInput.

type RecoveryPlanInMageRcmFailbackFailoverInput

type RecoveryPlanInMageRcmFailbackFailoverInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; The recovery point type.
	RecoveryPointType *InMageRcmFailbackRecoveryPointType `json:"recoveryPointType,omitempty"`

	// A value indicating whether multi VM sync enabled VMs should use multi VM sync points for failover.
	UseMultiVMSyncPoint *string `json:"useMultiVmSyncPoint,omitempty"`
}

RecoveryPlanInMageRcmFailbackFailoverInput - Recovery plan InMageRcmFailback failover input.

func (*RecoveryPlanInMageRcmFailbackFailoverInput) GetRecoveryPlanProviderSpecificFailoverInput added in v0.2.0

func (r *RecoveryPlanInMageRcmFailbackFailoverInput) GetRecoveryPlanProviderSpecificFailoverInput() *RecoveryPlanProviderSpecificFailoverInput

GetRecoveryPlanProviderSpecificFailoverInput implements the RecoveryPlanProviderSpecificFailoverInputClassification interface for type RecoveryPlanInMageRcmFailbackFailoverInput.

func (RecoveryPlanInMageRcmFailbackFailoverInput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanInMageRcmFailbackFailoverInput.

func (*RecoveryPlanInMageRcmFailbackFailoverInput) UnmarshalJSON

func (r *RecoveryPlanInMageRcmFailbackFailoverInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanInMageRcmFailbackFailoverInput.

type RecoveryPlanInMageRcmFailoverInput

type RecoveryPlanInMageRcmFailoverInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; The recovery point type.
	RecoveryPointType *RecoveryPlanPointType `json:"recoveryPointType,omitempty"`

	// A value indicating whether multi VM sync enabled VMs should use multi VM sync points for failover.
	UseMultiVMSyncPoint *string `json:"useMultiVmSyncPoint,omitempty"`
}

RecoveryPlanInMageRcmFailoverInput - Recovery plan InMageRcm failover input.

func (*RecoveryPlanInMageRcmFailoverInput) GetRecoveryPlanProviderSpecificFailoverInput added in v0.2.0

func (r *RecoveryPlanInMageRcmFailoverInput) GetRecoveryPlanProviderSpecificFailoverInput() *RecoveryPlanProviderSpecificFailoverInput

GetRecoveryPlanProviderSpecificFailoverInput implements the RecoveryPlanProviderSpecificFailoverInputClassification interface for type RecoveryPlanInMageRcmFailoverInput.

func (RecoveryPlanInMageRcmFailoverInput) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanInMageRcmFailoverInput.

func (*RecoveryPlanInMageRcmFailoverInput) UnmarshalJSON

func (r *RecoveryPlanInMageRcmFailoverInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanInMageRcmFailoverInput.

type RecoveryPlanManualActionDetails

type RecoveryPlanManualActionDetails struct {
	// REQUIRED; Gets the type of action details (see RecoveryPlanActionDetailsTypes enum for possible values).
	InstanceType *string `json:"instanceType,omitempty"`

	// The manual action description.
	Description *string `json:"description,omitempty"`
}

RecoveryPlanManualActionDetails - Recovery plan manual action details.

func (*RecoveryPlanManualActionDetails) GetRecoveryPlanActionDetails added in v0.2.0

func (r *RecoveryPlanManualActionDetails) GetRecoveryPlanActionDetails() *RecoveryPlanActionDetails

GetRecoveryPlanActionDetails implements the RecoveryPlanActionDetailsClassification interface for type RecoveryPlanManualActionDetails.

func (RecoveryPlanManualActionDetails) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanManualActionDetails.

func (*RecoveryPlanManualActionDetails) UnmarshalJSON

func (r *RecoveryPlanManualActionDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanManualActionDetails.

type RecoveryPlanPlannedFailoverInput

type RecoveryPlanPlannedFailoverInput struct {
	// REQUIRED; The recovery plan planned failover input properties.
	Properties *RecoveryPlanPlannedFailoverInputProperties `json:"properties,omitempty"`
}

RecoveryPlanPlannedFailoverInput - Recovery plan planned failover input.

func (RecoveryPlanPlannedFailoverInput) MarshalJSON added in v1.1.0

func (r RecoveryPlanPlannedFailoverInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanPlannedFailoverInput.

func (*RecoveryPlanPlannedFailoverInput) UnmarshalJSON added in v1.1.0

func (r *RecoveryPlanPlannedFailoverInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanPlannedFailoverInput.

type RecoveryPlanPlannedFailoverInputProperties

type RecoveryPlanPlannedFailoverInputProperties struct {
	// REQUIRED; The failover direction.
	FailoverDirection *PossibleOperationsDirections `json:"failoverDirection,omitempty"`

	// The provider specific properties.
	ProviderSpecificDetails []RecoveryPlanProviderSpecificFailoverInputClassification `json:"providerSpecificDetails,omitempty"`
}

RecoveryPlanPlannedFailoverInputProperties - Recovery plan planned failover input properties.

func (RecoveryPlanPlannedFailoverInputProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanPlannedFailoverInputProperties.

func (*RecoveryPlanPlannedFailoverInputProperties) UnmarshalJSON

func (r *RecoveryPlanPlannedFailoverInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanPlannedFailoverInputProperties.

type RecoveryPlanPointType

type RecoveryPlanPointType string

RecoveryPlanPointType - The recovery point type.

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

func PossibleRecoveryPlanPointTypeValues

func PossibleRecoveryPlanPointTypeValues() []RecoveryPlanPointType

PossibleRecoveryPlanPointTypeValues returns the possible values for the RecoveryPlanPointType const type.

type RecoveryPlanProperties

type RecoveryPlanProperties struct {
	// The list of allowed operations.
	AllowedOperations []*string `json:"allowedOperations,omitempty"`

	// The current scenario details.
	CurrentScenario *CurrentScenarioDetails `json:"currentScenario,omitempty"`

	// The recovery plan status.
	CurrentScenarioStatus *string `json:"currentScenarioStatus,omitempty"`

	// The recovery plan status description.
	CurrentScenarioStatusDescription *string `json:"currentScenarioStatusDescription,omitempty"`

	// The failover deployment model.
	FailoverDeploymentModel *string `json:"failoverDeploymentModel,omitempty"`

	// The friendly name.
	FriendlyName *string `json:"friendlyName,omitempty"`

	// The recovery plan groups.
	Groups []*RecoveryPlanGroup `json:"groups,omitempty"`

	// The start time of the last planned failover.
	LastPlannedFailoverTime *time.Time `json:"lastPlannedFailoverTime,omitempty"`

	// The start time of the last test failover.
	LastTestFailoverTime *time.Time `json:"lastTestFailoverTime,omitempty"`

	// The start time of the last unplanned failover.
	LastUnplannedFailoverTime *time.Time `json:"lastUnplannedFailoverTime,omitempty"`

	// The primary fabric friendly name.
	PrimaryFabricFriendlyName *string `json:"primaryFabricFriendlyName,omitempty"`

	// The primary fabric Id.
	PrimaryFabricID *string `json:"primaryFabricId,omitempty"`

	// The provider id and provider specific details.
	ProviderSpecificDetails []RecoveryPlanProviderSpecificDetailsClassification `json:"providerSpecificDetails,omitempty"`

	// The recovery fabric friendly name.
	RecoveryFabricFriendlyName *string `json:"recoveryFabricFriendlyName,omitempty"`

	// The recovery fabric Id.
	RecoveryFabricID *string `json:"recoveryFabricId,omitempty"`

	// The list of replication providers.
	ReplicationProviders []*string `json:"replicationProviders,omitempty"`
}

RecoveryPlanProperties - Recovery plan properties.

func (RecoveryPlanProperties) MarshalJSON

func (r RecoveryPlanProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanProperties.

func (*RecoveryPlanProperties) UnmarshalJSON

func (r *RecoveryPlanProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanProperties.

type RecoveryPlanProtectedItem

type RecoveryPlanProtectedItem struct {
	// The ARM Id of the recovery plan protected item.
	ID *string `json:"id,omitempty"`

	// The virtual machine Id.
	VirtualMachineID *string `json:"virtualMachineId,omitempty"`
}

RecoveryPlanProtectedItem - Recovery plan protected item.

func (RecoveryPlanProtectedItem) MarshalJSON added in v1.1.0

func (r RecoveryPlanProtectedItem) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanProtectedItem.

func (*RecoveryPlanProtectedItem) UnmarshalJSON added in v1.1.0

func (r *RecoveryPlanProtectedItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanProtectedItem.

type RecoveryPlanProviderSpecificDetails

type RecoveryPlanProviderSpecificDetails struct {
	// REQUIRED; Gets the Instance type.
	InstanceType *string `json:"instanceType,omitempty"`
}

RecoveryPlanProviderSpecificDetails - Recovery plan provider specific details.

func (*RecoveryPlanProviderSpecificDetails) GetRecoveryPlanProviderSpecificDetails

func (r *RecoveryPlanProviderSpecificDetails) GetRecoveryPlanProviderSpecificDetails() *RecoveryPlanProviderSpecificDetails

GetRecoveryPlanProviderSpecificDetails implements the RecoveryPlanProviderSpecificDetailsClassification interface for type RecoveryPlanProviderSpecificDetails.

func (RecoveryPlanProviderSpecificDetails) MarshalJSON added in v1.1.0

func (r RecoveryPlanProviderSpecificDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanProviderSpecificDetails.

func (*RecoveryPlanProviderSpecificDetails) UnmarshalJSON

func (r *RecoveryPlanProviderSpecificDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanProviderSpecificDetails.

type RecoveryPlanProviderSpecificDetailsClassification

type RecoveryPlanProviderSpecificDetailsClassification interface {
	// GetRecoveryPlanProviderSpecificDetails returns the RecoveryPlanProviderSpecificDetails content of the underlying type.
	GetRecoveryPlanProviderSpecificDetails() *RecoveryPlanProviderSpecificDetails
}

RecoveryPlanProviderSpecificDetailsClassification provides polymorphic access to related types. Call the interface's GetRecoveryPlanProviderSpecificDetails() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *RecoveryPlanA2ADetails, *RecoveryPlanProviderSpecificDetails

type RecoveryPlanProviderSpecificFailoverInput

type RecoveryPlanProviderSpecificFailoverInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

RecoveryPlanProviderSpecificFailoverInput - Recovery plan provider specific failover input.

func (*RecoveryPlanProviderSpecificFailoverInput) GetRecoveryPlanProviderSpecificFailoverInput

func (r *RecoveryPlanProviderSpecificFailoverInput) GetRecoveryPlanProviderSpecificFailoverInput() *RecoveryPlanProviderSpecificFailoverInput

GetRecoveryPlanProviderSpecificFailoverInput implements the RecoveryPlanProviderSpecificFailoverInputClassification interface for type RecoveryPlanProviderSpecificFailoverInput.

func (RecoveryPlanProviderSpecificFailoverInput) MarshalJSON added in v1.1.0

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanProviderSpecificFailoverInput.

func (*RecoveryPlanProviderSpecificFailoverInput) UnmarshalJSON

func (r *RecoveryPlanProviderSpecificFailoverInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanProviderSpecificFailoverInput.

type RecoveryPlanProviderSpecificFailoverInputClassification

type RecoveryPlanProviderSpecificFailoverInputClassification interface {
	// GetRecoveryPlanProviderSpecificFailoverInput returns the RecoveryPlanProviderSpecificFailoverInput content of the underlying type.
	GetRecoveryPlanProviderSpecificFailoverInput() *RecoveryPlanProviderSpecificFailoverInput
}

RecoveryPlanProviderSpecificFailoverInputClassification provides polymorphic access to related types. Call the interface's GetRecoveryPlanProviderSpecificFailoverInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *RecoveryPlanA2AFailoverInput, *RecoveryPlanHyperVReplicaAzureFailbackInput, *RecoveryPlanHyperVReplicaAzureFailoverInput, - *RecoveryPlanInMageAzureV2FailoverInput, *RecoveryPlanInMageFailoverInput, *RecoveryPlanInMageRcmFailbackFailoverInput, - *RecoveryPlanInMageRcmFailoverInput, *RecoveryPlanProviderSpecificFailoverInput

type RecoveryPlanProviderSpecificInput

type RecoveryPlanProviderSpecificInput struct {
	// REQUIRED; Gets the Instance type.
	InstanceType *string `json:"instanceType,omitempty"`
}

RecoveryPlanProviderSpecificInput - Recovery plan provider specific input base class.

func (*RecoveryPlanProviderSpecificInput) GetRecoveryPlanProviderSpecificInput

func (r *RecoveryPlanProviderSpecificInput) GetRecoveryPlanProviderSpecificInput() *RecoveryPlanProviderSpecificInput

GetRecoveryPlanProviderSpecificInput implements the RecoveryPlanProviderSpecificInputClassification interface for type RecoveryPlanProviderSpecificInput.

func (RecoveryPlanProviderSpecificInput) MarshalJSON added in v1.1.0

func (r RecoveryPlanProviderSpecificInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanProviderSpecificInput.

func (*RecoveryPlanProviderSpecificInput) UnmarshalJSON

func (r *RecoveryPlanProviderSpecificInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanProviderSpecificInput.

type RecoveryPlanProviderSpecificInputClassification

type RecoveryPlanProviderSpecificInputClassification interface {
	// GetRecoveryPlanProviderSpecificInput returns the RecoveryPlanProviderSpecificInput content of the underlying type.
	GetRecoveryPlanProviderSpecificInput() *RecoveryPlanProviderSpecificInput
}

RecoveryPlanProviderSpecificInputClassification provides polymorphic access to related types. Call the interface's GetRecoveryPlanProviderSpecificInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *RecoveryPlanA2AInput, *RecoveryPlanProviderSpecificInput

type RecoveryPlanScriptActionDetails

type RecoveryPlanScriptActionDetails struct {
	// REQUIRED; The fabric location.
	FabricLocation *RecoveryPlanActionLocation `json:"fabricLocation,omitempty"`

	// REQUIRED; Gets the type of action details (see RecoveryPlanActionDetailsTypes enum for possible values).
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; The script path.
	Path *string `json:"path,omitempty"`

	// The script timeout.
	Timeout *string `json:"timeout,omitempty"`
}

RecoveryPlanScriptActionDetails - Recovery plan script action details.

func (*RecoveryPlanScriptActionDetails) GetRecoveryPlanActionDetails added in v0.2.0

func (r *RecoveryPlanScriptActionDetails) GetRecoveryPlanActionDetails() *RecoveryPlanActionDetails

GetRecoveryPlanActionDetails implements the RecoveryPlanActionDetailsClassification interface for type RecoveryPlanScriptActionDetails.

func (RecoveryPlanScriptActionDetails) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanScriptActionDetails.

func (*RecoveryPlanScriptActionDetails) UnmarshalJSON

func (r *RecoveryPlanScriptActionDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanScriptActionDetails.

type RecoveryPlanShutdownGroupTaskDetails

type RecoveryPlanShutdownGroupTaskDetails struct {
	// REQUIRED; The type of task details.
	InstanceType *string `json:"instanceType,omitempty"`

	// The child tasks.
	ChildTasks []*ASRTask `json:"childTasks,omitempty"`

	// The group identifier.
	GroupID *string `json:"groupId,omitempty"`

	// The name.
	Name *string `json:"name,omitempty"`

	// The group type.
	RpGroupType *string `json:"rpGroupType,omitempty"`
}

RecoveryPlanShutdownGroupTaskDetails - This class represents the recovery plan shutdown group task details.

func (*RecoveryPlanShutdownGroupTaskDetails) GetGroupTaskDetails added in v0.2.0

func (r *RecoveryPlanShutdownGroupTaskDetails) GetGroupTaskDetails() *GroupTaskDetails

GetGroupTaskDetails implements the GroupTaskDetailsClassification interface for type RecoveryPlanShutdownGroupTaskDetails.

func (*RecoveryPlanShutdownGroupTaskDetails) GetRecoveryPlanGroupTaskDetails added in v0.2.0

func (r *RecoveryPlanShutdownGroupTaskDetails) GetRecoveryPlanGroupTaskDetails() *RecoveryPlanGroupTaskDetails

GetRecoveryPlanGroupTaskDetails implements the RecoveryPlanGroupTaskDetailsClassification interface for type RecoveryPlanShutdownGroupTaskDetails.

func (RecoveryPlanShutdownGroupTaskDetails) MarshalJSON

func (r RecoveryPlanShutdownGroupTaskDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanShutdownGroupTaskDetails.

func (*RecoveryPlanShutdownGroupTaskDetails) UnmarshalJSON added in v0.2.0

func (r *RecoveryPlanShutdownGroupTaskDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanShutdownGroupTaskDetails.

type RecoveryPlanTestFailoverCleanupInput

type RecoveryPlanTestFailoverCleanupInput struct {
	// REQUIRED; The recovery plan test failover cleanup input properties.
	Properties *RecoveryPlanTestFailoverCleanupInputProperties `json:"properties,omitempty"`
}

RecoveryPlanTestFailoverCleanupInput - Recovery plan test failover cleanup input.

func (RecoveryPlanTestFailoverCleanupInput) MarshalJSON added in v1.1.0

func (r RecoveryPlanTestFailoverCleanupInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanTestFailoverCleanupInput.

func (*RecoveryPlanTestFailoverCleanupInput) UnmarshalJSON added in v1.1.0

func (r *RecoveryPlanTestFailoverCleanupInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanTestFailoverCleanupInput.

type RecoveryPlanTestFailoverCleanupInputProperties

type RecoveryPlanTestFailoverCleanupInputProperties struct {
	// The test failover cleanup comments.
	Comments *string `json:"comments,omitempty"`
}

RecoveryPlanTestFailoverCleanupInputProperties - Recovery plan test failover cleanup input properties.

func (RecoveryPlanTestFailoverCleanupInputProperties) MarshalJSON added in v1.1.0

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanTestFailoverCleanupInputProperties.

func (*RecoveryPlanTestFailoverCleanupInputProperties) UnmarshalJSON added in v1.1.0

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanTestFailoverCleanupInputProperties.

type RecoveryPlanTestFailoverInput

type RecoveryPlanTestFailoverInput struct {
	// REQUIRED; The recovery plan test failover input properties.
	Properties *RecoveryPlanTestFailoverInputProperties `json:"properties,omitempty"`
}

RecoveryPlanTestFailoverInput - Recovery plan test failover input.

func (RecoveryPlanTestFailoverInput) MarshalJSON added in v1.1.0

func (r RecoveryPlanTestFailoverInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanTestFailoverInput.

func (*RecoveryPlanTestFailoverInput) UnmarshalJSON added in v1.1.0

func (r *RecoveryPlanTestFailoverInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanTestFailoverInput.

type RecoveryPlanTestFailoverInputProperties

type RecoveryPlanTestFailoverInputProperties struct {
	// REQUIRED; The failover direction.
	FailoverDirection *PossibleOperationsDirections `json:"failoverDirection,omitempty"`

	// REQUIRED; The network type to be used for test failover.
	NetworkType *string `json:"networkType,omitempty"`

	// The Id of the network to be used for test failover.
	NetworkID *string `json:"networkId,omitempty"`

	// The provider specific properties.
	ProviderSpecificDetails []RecoveryPlanProviderSpecificFailoverInputClassification `json:"providerSpecificDetails,omitempty"`
}

RecoveryPlanTestFailoverInputProperties - Recovery plan test failover input properties.

func (RecoveryPlanTestFailoverInputProperties) MarshalJSON

func (r RecoveryPlanTestFailoverInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanTestFailoverInputProperties.

func (*RecoveryPlanTestFailoverInputProperties) UnmarshalJSON

func (r *RecoveryPlanTestFailoverInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanTestFailoverInputProperties.

type RecoveryPlanUnplannedFailoverInput

type RecoveryPlanUnplannedFailoverInput struct {
	// REQUIRED; The recovery plan unplanned failover input properties.
	Properties *RecoveryPlanUnplannedFailoverInputProperties `json:"properties,omitempty"`
}

RecoveryPlanUnplannedFailoverInput - Recovery plan unplanned failover input.

func (RecoveryPlanUnplannedFailoverInput) MarshalJSON added in v1.1.0

func (r RecoveryPlanUnplannedFailoverInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanUnplannedFailoverInput.

func (*RecoveryPlanUnplannedFailoverInput) UnmarshalJSON added in v1.1.0

func (r *RecoveryPlanUnplannedFailoverInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanUnplannedFailoverInput.

type RecoveryPlanUnplannedFailoverInputProperties

type RecoveryPlanUnplannedFailoverInputProperties struct {
	// REQUIRED; The failover direction.
	FailoverDirection *PossibleOperationsDirections `json:"failoverDirection,omitempty"`

	// REQUIRED; A value indicating whether source site operations are required.
	SourceSiteOperations *SourceSiteOperations `json:"sourceSiteOperations,omitempty"`

	// The provider specific properties.
	ProviderSpecificDetails []RecoveryPlanProviderSpecificFailoverInputClassification `json:"providerSpecificDetails,omitempty"`
}

RecoveryPlanUnplannedFailoverInputProperties - Recovery plan unplanned failover input properties.

func (RecoveryPlanUnplannedFailoverInputProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type RecoveryPlanUnplannedFailoverInputProperties.

func (*RecoveryPlanUnplannedFailoverInputProperties) UnmarshalJSON

func (r *RecoveryPlanUnplannedFailoverInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPlanUnplannedFailoverInputProperties.

type RecoveryPoint

type RecoveryPoint struct {
	// Resource Location
	Location *string `json:"location,omitempty"`

	// The recovery point properties.
	Properties *RecoveryPointProperties `json:"properties,omitempty"`

	// READ-ONLY; Resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Resource Name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Resource Type
	Type *string `json:"type,omitempty" azure:"ro"`
}

RecoveryPoint - Recovery point.

func (RecoveryPoint) MarshalJSON added in v1.1.0

func (r RecoveryPoint) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RecoveryPoint.

func (*RecoveryPoint) UnmarshalJSON added in v1.1.0

func (r *RecoveryPoint) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPoint.

type RecoveryPointCollection

type RecoveryPointCollection struct {
	// The value of next link.
	NextLink *string `json:"nextLink,omitempty"`

	// The recovery point details.
	Value []*RecoveryPoint `json:"value,omitempty"`
}

RecoveryPointCollection - Collection of recovery point details.

func (RecoveryPointCollection) MarshalJSON

func (r RecoveryPointCollection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RecoveryPointCollection.

func (*RecoveryPointCollection) UnmarshalJSON added in v1.1.0

func (r *RecoveryPointCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPointCollection.

type RecoveryPointProperties

type RecoveryPointProperties struct {
	// The provider specific details for the recovery point.
	ProviderSpecificDetails ProviderSpecificRecoveryPointDetailsClassification `json:"providerSpecificDetails,omitempty"`

	// The recovery point time.
	RecoveryPointTime *time.Time `json:"recoveryPointTime,omitempty"`

	// The recovery point type: ApplicationConsistent, CrashConsistent.
	RecoveryPointType *string `json:"recoveryPointType,omitempty"`
}

RecoveryPointProperties - Recovery point properties.

func (RecoveryPointProperties) MarshalJSON

func (r RecoveryPointProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RecoveryPointProperties.

func (*RecoveryPointProperties) UnmarshalJSON

func (r *RecoveryPointProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPointProperties.

type RecoveryPointSyncType

type RecoveryPointSyncType string

RecoveryPointSyncType - A value indicating whether the recovery point is multi VM consistent.

const (
	RecoveryPointSyncTypeMultiVMSyncRecoveryPoint RecoveryPointSyncType = "MultiVmSyncRecoveryPoint"
	RecoveryPointSyncTypePerVMRecoveryPoint       RecoveryPointSyncType = "PerVmRecoveryPoint"
)

func PossibleRecoveryPointSyncTypeValues

func PossibleRecoveryPointSyncTypeValues() []RecoveryPointSyncType

PossibleRecoveryPointSyncTypeValues returns the possible values for the RecoveryPointSyncType const type.

type RecoveryPointType

type RecoveryPointType string

RecoveryPointType - The recovery point type. Values from LatestTime, LatestTag or Custom. In the case of custom, the recovery point provided by RecoveryPointId will be used. In the other two cases, recovery point id will be ignored.

const (
	RecoveryPointTypeCustom     RecoveryPointType = "Custom"
	RecoveryPointTypeLatestTag  RecoveryPointType = "LatestTag"
	RecoveryPointTypeLatestTime RecoveryPointType = "LatestTime"
)

func PossibleRecoveryPointTypeValues

func PossibleRecoveryPointTypeValues() []RecoveryPointType

PossibleRecoveryPointTypeValues returns the possible values for the RecoveryPointType const type.

type RecoveryPointsClient

type RecoveryPointsClient struct {
	// contains filtered or unexported fields
}

RecoveryPointsClient contains the methods for the RecoveryPoints group. Don't use this type directly, use NewRecoveryPointsClient() instead.

func NewRecoveryPointsClient

func NewRecoveryPointsClient(resourceName string, resourceGroupName string, subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RecoveryPointsClient, error)

NewRecoveryPointsClient creates a new instance of RecoveryPointsClient with the specified values. resourceName - The name of the recovery services vault. resourceGroupName - The name of the resource group where the recovery services vault is present. subscriptionID - The subscription Id. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*RecoveryPointsClient) Get

func (client *RecoveryPointsClient) Get(ctx context.Context, fabricName string, protectionContainerName string, replicatedProtectedItemName string, recoveryPointName string, options *RecoveryPointsClientGetOptions) (RecoveryPointsClientGetResponse, error)

Get - Get the details of specified recovery point. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - The fabric name. protectionContainerName - The protection container name. replicatedProtectedItemName - The replication protected item name. recoveryPointName - The recovery point name. options - RecoveryPointsClientGetOptions contains the optional parameters for the RecoveryPointsClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/RecoveryPoints_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewRecoveryPointsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx, "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", "b22134ea-620c-474b-9fa5-3c1cb47708e3", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*RecoveryPointsClient) NewListByReplicationProtectedItemsPager added in v0.4.0

func (client *RecoveryPointsClient) NewListByReplicationProtectedItemsPager(fabricName string, protectionContainerName string, replicatedProtectedItemName string, options *RecoveryPointsClientListByReplicationProtectedItemsOptions) *runtime.Pager[RecoveryPointsClientListByReplicationProtectedItemsResponse]

NewListByReplicationProtectedItemsPager - Lists the available recovery points for a replication protected item. Generated from API version 2022-10-01 fabricName - The fabric name. protectionContainerName - The protection container name. replicatedProtectedItemName - The replication protected item name. options - RecoveryPointsClientListByReplicationProtectedItemsOptions contains the optional parameters for the RecoveryPointsClient.ListByReplicationProtectedItems method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/RecoveryPoints_ListByReplicationProtectedItems.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewRecoveryPointsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListByReplicationProtectedItemsPager("cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type RecoveryPointsClientGetOptions added in v0.2.0

type RecoveryPointsClientGetOptions struct {
}

RecoveryPointsClientGetOptions contains the optional parameters for the RecoveryPointsClient.Get method.

type RecoveryPointsClientGetResponse added in v0.2.0

type RecoveryPointsClientGetResponse struct {
	RecoveryPoint
}

RecoveryPointsClientGetResponse contains the response from method RecoveryPointsClient.Get.

type RecoveryPointsClientListByReplicationProtectedItemsOptions added in v0.2.0

type RecoveryPointsClientListByReplicationProtectedItemsOptions struct {
}

RecoveryPointsClientListByReplicationProtectedItemsOptions contains the optional parameters for the RecoveryPointsClient.ListByReplicationProtectedItems method.

type RecoveryPointsClientListByReplicationProtectedItemsResponse added in v0.2.0

type RecoveryPointsClientListByReplicationProtectedItemsResponse struct {
	RecoveryPointCollection
}

RecoveryPointsClientListByReplicationProtectedItemsResponse contains the response from method RecoveryPointsClient.ListByReplicationProtectedItems.

type RecoveryProximityPlacementGroupCustomDetails

type RecoveryProximityPlacementGroupCustomDetails struct {
	// REQUIRED; The class type.
	ResourceType *string `json:"resourceType,omitempty"`
}

RecoveryProximityPlacementGroupCustomDetails - Recovery Proximity placement group custom input.

func (*RecoveryProximityPlacementGroupCustomDetails) GetRecoveryProximityPlacementGroupCustomDetails

func (r *RecoveryProximityPlacementGroupCustomDetails) GetRecoveryProximityPlacementGroupCustomDetails() *RecoveryProximityPlacementGroupCustomDetails

GetRecoveryProximityPlacementGroupCustomDetails implements the RecoveryProximityPlacementGroupCustomDetailsClassification interface for type RecoveryProximityPlacementGroupCustomDetails.

func (RecoveryProximityPlacementGroupCustomDetails) MarshalJSON added in v1.1.0

MarshalJSON implements the json.Marshaller interface for type RecoveryProximityPlacementGroupCustomDetails.

func (*RecoveryProximityPlacementGroupCustomDetails) UnmarshalJSON

func (r *RecoveryProximityPlacementGroupCustomDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryProximityPlacementGroupCustomDetails.

type RecoveryProximityPlacementGroupCustomDetailsClassification

type RecoveryProximityPlacementGroupCustomDetailsClassification interface {
	// GetRecoveryProximityPlacementGroupCustomDetails returns the RecoveryProximityPlacementGroupCustomDetails content of the underlying type.
	GetRecoveryProximityPlacementGroupCustomDetails() *RecoveryProximityPlacementGroupCustomDetails
}

RecoveryProximityPlacementGroupCustomDetailsClassification provides polymorphic access to related types. Call the interface's GetRecoveryProximityPlacementGroupCustomDetails() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *ExistingRecoveryProximityPlacementGroup, *RecoveryProximityPlacementGroupCustomDetails

type RecoveryResourceGroupCustomDetails

type RecoveryResourceGroupCustomDetails struct {
	// REQUIRED; The class type.
	ResourceType *string `json:"resourceType,omitempty"`
}

RecoveryResourceGroupCustomDetails - Recovery Resource Group custom input.

func (*RecoveryResourceGroupCustomDetails) GetRecoveryResourceGroupCustomDetails

func (r *RecoveryResourceGroupCustomDetails) GetRecoveryResourceGroupCustomDetails() *RecoveryResourceGroupCustomDetails

GetRecoveryResourceGroupCustomDetails implements the RecoveryResourceGroupCustomDetailsClassification interface for type RecoveryResourceGroupCustomDetails.

func (RecoveryResourceGroupCustomDetails) MarshalJSON added in v1.1.0

func (r RecoveryResourceGroupCustomDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RecoveryResourceGroupCustomDetails.

func (*RecoveryResourceGroupCustomDetails) UnmarshalJSON

func (r *RecoveryResourceGroupCustomDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryResourceGroupCustomDetails.

type RecoveryResourceGroupCustomDetailsClassification

type RecoveryResourceGroupCustomDetailsClassification interface {
	// GetRecoveryResourceGroupCustomDetails returns the RecoveryResourceGroupCustomDetails content of the underlying type.
	GetRecoveryResourceGroupCustomDetails() *RecoveryResourceGroupCustomDetails
}

RecoveryResourceGroupCustomDetailsClassification provides polymorphic access to related types. Call the interface's GetRecoveryResourceGroupCustomDetails() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *ExistingRecoveryResourceGroup, *RecoveryResourceGroupCustomDetails

type RecoveryServicesProvider

type RecoveryServicesProvider struct {
	// Resource Location
	Location *string `json:"location,omitempty"`

	// Provider properties.
	Properties *RecoveryServicesProviderProperties `json:"properties,omitempty"`

	// READ-ONLY; Resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Resource Name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Resource Type
	Type *string `json:"type,omitempty" azure:"ro"`
}

RecoveryServicesProvider - Provider details.

func (RecoveryServicesProvider) MarshalJSON added in v1.1.0

func (r RecoveryServicesProvider) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RecoveryServicesProvider.

func (*RecoveryServicesProvider) UnmarshalJSON added in v1.1.0

func (r *RecoveryServicesProvider) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryServicesProvider.

type RecoveryServicesProviderCollection

type RecoveryServicesProviderCollection struct {
	// The value of next link.
	NextLink *string `json:"nextLink,omitempty"`

	// The Servers details.
	Value []*RecoveryServicesProvider `json:"value,omitempty"`
}

RecoveryServicesProviderCollection - Collection of providers.

func (RecoveryServicesProviderCollection) MarshalJSON

func (r RecoveryServicesProviderCollection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RecoveryServicesProviderCollection.

func (*RecoveryServicesProviderCollection) UnmarshalJSON added in v1.1.0

func (r *RecoveryServicesProviderCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryServicesProviderCollection.

type RecoveryServicesProviderProperties

type RecoveryServicesProviderProperties struct {
	// The scenarios allowed on this provider.
	AllowedScenarios []*string `json:"allowedScenarios,omitempty"`

	// The authentication identity details.
	AuthenticationIdentityDetails *IdentityProviderDetails `json:"authenticationIdentityDetails,omitempty"`

	// The Bios Id.
	BiosID *string `json:"biosId,omitempty"`

	// A value indicating whether DRA is responsive.
	ConnectionStatus *string `json:"connectionStatus,omitempty"`

	// The data plane authentication identity details.
	DataPlaneAuthenticationIdentityDetails *IdentityProviderDetails `json:"dataPlaneAuthenticationIdentityDetails,omitempty"`

	// The DRA Id.
	DraIdentifier *string `json:"draIdentifier,omitempty"`

	// The fabric friendly name.
	FabricFriendlyName *string `json:"fabricFriendlyName,omitempty"`

	// Type of the site.
	FabricType *string `json:"fabricType,omitempty"`

	// Friendly name of the DRA.
	FriendlyName *string `json:"friendlyName,omitempty"`

	// The recovery services provider health error details.
	HealthErrorDetails []*HealthError `json:"healthErrorDetails,omitempty"`

	// Time when last heartbeat was sent by the DRA.
	LastHeartBeat *time.Time `json:"lastHeartBeat,omitempty"`

	// The machine Id.
	MachineID *string `json:"machineId,omitempty"`

	// The machine name.
	MachineName *string `json:"machineName,omitempty"`

	// Number of protected VMs currently managed by the DRA.
	ProtectedItemCount *int32 `json:"protectedItemCount,omitempty"`

	// The provider version.
	ProviderVersion *string `json:"providerVersion,omitempty"`

	// The provider version details.
	ProviderVersionDetails *VersionDetails `json:"providerVersionDetails,omitempty"`

	// Expiry date of the version.
	ProviderVersionExpiryDate *time.Time `json:"providerVersionExpiryDate,omitempty"`

	// DRA version status.
	ProviderVersionState *string `json:"providerVersionState,omitempty"`

	// The resource access identity details.
	ResourceAccessIdentityDetails *IdentityProviderDetails `json:"resourceAccessIdentityDetails,omitempty"`

	// The fabric provider.
	ServerVersion *string `json:"serverVersion,omitempty"`
}

RecoveryServicesProviderProperties - Recovery services provider properties.

func (RecoveryServicesProviderProperties) MarshalJSON

func (r RecoveryServicesProviderProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RecoveryServicesProviderProperties.

func (*RecoveryServicesProviderProperties) UnmarshalJSON

func (r *RecoveryServicesProviderProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryServicesProviderProperties.

type RecoveryVirtualNetworkCustomDetails

type RecoveryVirtualNetworkCustomDetails struct {
	// REQUIRED; The class type.
	ResourceType *string `json:"resourceType,omitempty"`
}

RecoveryVirtualNetworkCustomDetails - Recovery Virtual network custom input.

func (*RecoveryVirtualNetworkCustomDetails) GetRecoveryVirtualNetworkCustomDetails

func (r *RecoveryVirtualNetworkCustomDetails) GetRecoveryVirtualNetworkCustomDetails() *RecoveryVirtualNetworkCustomDetails

GetRecoveryVirtualNetworkCustomDetails implements the RecoveryVirtualNetworkCustomDetailsClassification interface for type RecoveryVirtualNetworkCustomDetails.

func (RecoveryVirtualNetworkCustomDetails) MarshalJSON added in v1.1.0

func (r RecoveryVirtualNetworkCustomDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RecoveryVirtualNetworkCustomDetails.

func (*RecoveryVirtualNetworkCustomDetails) UnmarshalJSON

func (r *RecoveryVirtualNetworkCustomDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryVirtualNetworkCustomDetails.

type RecoveryVirtualNetworkCustomDetailsClassification

type RecoveryVirtualNetworkCustomDetailsClassification interface {
	// GetRecoveryVirtualNetworkCustomDetails returns the RecoveryVirtualNetworkCustomDetails content of the underlying type.
	GetRecoveryVirtualNetworkCustomDetails() *RecoveryVirtualNetworkCustomDetails
}

RecoveryVirtualNetworkCustomDetailsClassification provides polymorphic access to related types. Call the interface's GetRecoveryVirtualNetworkCustomDetails() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *ExistingRecoveryVirtualNetwork, *NewRecoveryVirtualNetwork, *RecoveryVirtualNetworkCustomDetails

type RemoveDisksInput

type RemoveDisksInput struct {
	// Remove disk input properties.
	Properties *RemoveDisksInputProperties `json:"properties,omitempty"`
}

RemoveDisksInput - Input for remove disk(s) operation.

func (RemoveDisksInput) MarshalJSON added in v1.1.0

func (r RemoveDisksInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RemoveDisksInput.

func (*RemoveDisksInput) UnmarshalJSON added in v1.1.0

func (r *RemoveDisksInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RemoveDisksInput.

type RemoveDisksInputProperties

type RemoveDisksInputProperties struct {
	// The ReplicationProviderInput. For HyperVReplicaAzure provider, it will be AzureEnableProtectionInput object. For San provider,
	// it will be SanEnableProtectionInput object. For HyperVReplicaAzure
	// provider, it can be null.
	ProviderSpecificDetails RemoveDisksProviderSpecificInputClassification `json:"providerSpecificDetails,omitempty"`
}

RemoveDisksInputProperties - Remove Disk input properties.

func (RemoveDisksInputProperties) MarshalJSON

func (r RemoveDisksInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RemoveDisksInputProperties.

func (*RemoveDisksInputProperties) UnmarshalJSON

func (r *RemoveDisksInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RemoveDisksInputProperties.

type RemoveDisksProviderSpecificInput

type RemoveDisksProviderSpecificInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

RemoveDisksProviderSpecificInput - Remove Disk provider specific input.

func (*RemoveDisksProviderSpecificInput) GetRemoveDisksProviderSpecificInput

func (r *RemoveDisksProviderSpecificInput) GetRemoveDisksProviderSpecificInput() *RemoveDisksProviderSpecificInput

GetRemoveDisksProviderSpecificInput implements the RemoveDisksProviderSpecificInputClassification interface for type RemoveDisksProviderSpecificInput.

func (RemoveDisksProviderSpecificInput) MarshalJSON added in v1.1.0

func (r RemoveDisksProviderSpecificInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RemoveDisksProviderSpecificInput.

func (*RemoveDisksProviderSpecificInput) UnmarshalJSON

func (r *RemoveDisksProviderSpecificInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RemoveDisksProviderSpecificInput.

type RemoveDisksProviderSpecificInputClassification

type RemoveDisksProviderSpecificInputClassification interface {
	// GetRemoveDisksProviderSpecificInput returns the RemoveDisksProviderSpecificInput content of the underlying type.
	GetRemoveDisksProviderSpecificInput() *RemoveDisksProviderSpecificInput
}

RemoveDisksProviderSpecificInputClassification provides polymorphic access to related types. Call the interface's GetRemoveDisksProviderSpecificInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *A2ARemoveDisksInput, *RemoveDisksProviderSpecificInput

type RemoveProtectionContainerMappingInput

type RemoveProtectionContainerMappingInput struct {
	// Configure protection input properties.
	Properties *RemoveProtectionContainerMappingInputProperties `json:"properties,omitempty"`
}

RemoveProtectionContainerMappingInput - Container unpairing input.

func (RemoveProtectionContainerMappingInput) MarshalJSON added in v1.1.0

func (r RemoveProtectionContainerMappingInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RemoveProtectionContainerMappingInput.

func (*RemoveProtectionContainerMappingInput) UnmarshalJSON added in v1.1.0

func (r *RemoveProtectionContainerMappingInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RemoveProtectionContainerMappingInput.

type RemoveProtectionContainerMappingInputProperties

type RemoveProtectionContainerMappingInputProperties struct {
	// Provider specific input for unpairing.
	ProviderSpecificInput *ReplicationProviderContainerUnmappingInput `json:"providerSpecificInput,omitempty"`
}

RemoveProtectionContainerMappingInputProperties - Unpairing input properties.

func (RemoveProtectionContainerMappingInputProperties) MarshalJSON added in v1.1.0

MarshalJSON implements the json.Marshaller interface for type RemoveProtectionContainerMappingInputProperties.

func (*RemoveProtectionContainerMappingInputProperties) UnmarshalJSON added in v1.1.0

UnmarshalJSON implements the json.Unmarshaller interface for type RemoveProtectionContainerMappingInputProperties.

type RenewCertificateInput

type RenewCertificateInput struct {
	// Renew certificate input properties.
	Properties *RenewCertificateInputProperties `json:"properties,omitempty"`
}

RenewCertificateInput - Certificate renewal input.

func (RenewCertificateInput) MarshalJSON added in v1.1.0

func (r RenewCertificateInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RenewCertificateInput.

func (*RenewCertificateInput) UnmarshalJSON added in v1.1.0

func (r *RenewCertificateInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RenewCertificateInput.

type RenewCertificateInputProperties

type RenewCertificateInputProperties struct {
	// Renew certificate type.
	RenewCertificateType *string `json:"renewCertificateType,omitempty"`
}

RenewCertificateInputProperties - Renew Certificate input properties.

func (RenewCertificateInputProperties) MarshalJSON added in v1.1.0

func (r RenewCertificateInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RenewCertificateInputProperties.

func (*RenewCertificateInputProperties) UnmarshalJSON added in v1.1.0

func (r *RenewCertificateInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RenewCertificateInputProperties.

type ReplicationAgentDetails

type ReplicationAgentDetails struct {
	// READ-ONLY; The replication agent Bios Id.
	BiosID *string `json:"biosId,omitempty" azure:"ro"`

	// READ-ONLY; The fabric object Id.
	FabricObjectID *string `json:"fabricObjectId,omitempty" azure:"ro"`

	// READ-ONLY; The replication agent Fqdn.
	Fqdn *string `json:"fqdn,omitempty" azure:"ro"`

	// READ-ONLY; The health of the replication agent.
	Health *ProtectionHealth `json:"health,omitempty" azure:"ro"`

	// READ-ONLY; The health errors.
	HealthErrors []*HealthError `json:"healthErrors,omitempty" azure:"ro"`

	// READ-ONLY; The replication agent Id.
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The last heartbeat received from the replication agent.
	LastHeartbeatUTC *time.Time `json:"lastHeartbeatUtc,omitempty" azure:"ro"`

	// READ-ONLY; The replication agent name.
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; The version.
	Version *string `json:"version,omitempty" azure:"ro"`
}

ReplicationAgentDetails - Replication agent details.

func (ReplicationAgentDetails) MarshalJSON

func (r ReplicationAgentDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ReplicationAgentDetails.

func (*ReplicationAgentDetails) UnmarshalJSON

func (r *ReplicationAgentDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationAgentDetails.

type ReplicationAlertSettingsClient

type ReplicationAlertSettingsClient struct {
	// contains filtered or unexported fields
}

ReplicationAlertSettingsClient contains the methods for the ReplicationAlertSettings group. Don't use this type directly, use NewReplicationAlertSettingsClient() instead.

func NewReplicationAlertSettingsClient

func NewReplicationAlertSettingsClient(resourceName string, resourceGroupName string, subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicationAlertSettingsClient, error)

NewReplicationAlertSettingsClient creates a new instance of ReplicationAlertSettingsClient with the specified values. resourceName - The name of the recovery services vault. resourceGroupName - The name of the resource group where the recovery services vault is present. subscriptionID - The subscription Id. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*ReplicationAlertSettingsClient) Create

Create - Create or update an email notification(alert) configuration. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 alertSettingName - The name of the email notification(alert) configuration. request - The input to configure the email notification(alert). options - ReplicationAlertSettingsClientCreateOptions contains the optional parameters for the ReplicationAlertSettingsClient.Create method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationAlertSettings_Create.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationAlertSettingsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Create(ctx, "defaultAlertSetting", armrecoveryservicessiterecovery.ConfigureAlertRequest{
		Properties: &armrecoveryservicessiterecovery.ConfigureAlertRequestProperties{
			CustomEmailAddresses: []*string{
				to.Ptr("ronehr@microsoft.com")},
			Locale:       to.Ptr(""),
			SendToOwners: to.Ptr("false"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationAlertSettingsClient) Get

Get - Gets the details of the specified email notification(alert) configuration. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 alertSettingName - The name of the email notification configuration. options - ReplicationAlertSettingsClientGetOptions contains the optional parameters for the ReplicationAlertSettingsClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationAlertSettings_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationAlertSettingsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx, "defaultAlertSetting", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationAlertSettingsClient) NewListPager added in v0.4.0

NewListPager - Gets the list of email notification(alert) configurations for the vault. Generated from API version 2022-10-01 options - ReplicationAlertSettingsClientListOptions contains the optional parameters for the ReplicationAlertSettingsClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationAlertSettings_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationAlertSettingsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager(nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type ReplicationAlertSettingsClientCreateOptions added in v0.2.0

type ReplicationAlertSettingsClientCreateOptions struct {
}

ReplicationAlertSettingsClientCreateOptions contains the optional parameters for the ReplicationAlertSettingsClient.Create method.

type ReplicationAlertSettingsClientCreateResponse added in v0.2.0

type ReplicationAlertSettingsClientCreateResponse struct {
	Alert
}

ReplicationAlertSettingsClientCreateResponse contains the response from method ReplicationAlertSettingsClient.Create.

type ReplicationAlertSettingsClientGetOptions added in v0.2.0

type ReplicationAlertSettingsClientGetOptions struct {
}

ReplicationAlertSettingsClientGetOptions contains the optional parameters for the ReplicationAlertSettingsClient.Get method.

type ReplicationAlertSettingsClientGetResponse added in v0.2.0

type ReplicationAlertSettingsClientGetResponse struct {
	Alert
}

ReplicationAlertSettingsClientGetResponse contains the response from method ReplicationAlertSettingsClient.Get.

type ReplicationAlertSettingsClientListOptions added in v0.2.0

type ReplicationAlertSettingsClientListOptions struct {
}

ReplicationAlertSettingsClientListOptions contains the optional parameters for the ReplicationAlertSettingsClient.List method.

type ReplicationAlertSettingsClientListResponse added in v0.2.0

type ReplicationAlertSettingsClientListResponse struct {
	AlertCollection
}

ReplicationAlertSettingsClientListResponse contains the response from method ReplicationAlertSettingsClient.List.

type ReplicationAppliance added in v0.2.0

type ReplicationAppliance struct {
	// Appliance related data.
	Properties *ReplicationApplianceProperties `json:"properties,omitempty"`
}

ReplicationAppliance - Replication appliance definition.

func (ReplicationAppliance) MarshalJSON added in v1.1.0

func (r ReplicationAppliance) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ReplicationAppliance.

func (*ReplicationAppliance) UnmarshalJSON added in v1.1.0

func (r *ReplicationAppliance) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationAppliance.

type ReplicationApplianceProperties added in v0.2.0

type ReplicationApplianceProperties struct {
	// Provider specific settings.
	ProviderSpecificDetails ApplianceSpecificDetailsClassification `json:"providerSpecificDetails,omitempty"`
}

ReplicationApplianceProperties - Replication appliance properties.

func (ReplicationApplianceProperties) MarshalJSON added in v0.2.0

func (r ReplicationApplianceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ReplicationApplianceProperties.

func (*ReplicationApplianceProperties) UnmarshalJSON added in v0.2.0

func (r *ReplicationApplianceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationApplianceProperties.

type ReplicationAppliancesClient added in v0.2.0

type ReplicationAppliancesClient struct {
	// contains filtered or unexported fields
}

ReplicationAppliancesClient contains the methods for the ReplicationAppliances group. Don't use this type directly, use NewReplicationAppliancesClient() instead.

func NewReplicationAppliancesClient added in v0.2.0

func NewReplicationAppliancesClient(resourceName string, resourceGroupName string, subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicationAppliancesClient, error)

NewReplicationAppliancesClient creates a new instance of ReplicationAppliancesClient with the specified values. resourceName - The name of the recovery services vault. resourceGroupName - The name of the resource group where the recovery services vault is present. subscriptionID - The subscription Id. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*ReplicationAppliancesClient) NewListPager added in v0.4.0

NewListPager - Gets the list of Azure Site Recovery appliances for the vault. Generated from API version 2022-10-01 options - ReplicationAppliancesClientListOptions contains the optional parameters for the ReplicationAppliancesClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationAppliances_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationAppliancesClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager(&armrecoveryservicessiterecovery.ReplicationAppliancesClientListOptions{Filter: nil})
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type ReplicationAppliancesClientListOptions added in v0.2.0

type ReplicationAppliancesClientListOptions struct {
	// OData filter options.
	Filter *string
}

ReplicationAppliancesClientListOptions contains the optional parameters for the ReplicationAppliancesClient.List method.

type ReplicationAppliancesClientListResponse added in v0.2.0

type ReplicationAppliancesClientListResponse struct {
	ApplianceCollection
}

ReplicationAppliancesClientListResponse contains the response from method ReplicationAppliancesClient.List.

type ReplicationEligibilityResults

type ReplicationEligibilityResults struct {
	// READ-ONLY; Gets Unique ARM identifier for this object.
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Gets the name of this object.
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Gets properties model for replication eligibility results API.
	Properties *ReplicationEligibilityResultsProperties `json:"properties,omitempty" azure:"ro"`

	// READ-ONLY; Gets the object type.
	Type *string `json:"type,omitempty" azure:"ro"`
}

ReplicationEligibilityResults - Replication eligibility results response model.

func (ReplicationEligibilityResults) MarshalJSON added in v1.1.0

func (r ReplicationEligibilityResults) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ReplicationEligibilityResults.

func (*ReplicationEligibilityResults) UnmarshalJSON added in v1.1.0

func (r *ReplicationEligibilityResults) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationEligibilityResults.

type ReplicationEligibilityResultsClient

type ReplicationEligibilityResultsClient struct {
	// contains filtered or unexported fields
}

ReplicationEligibilityResultsClient contains the methods for the ReplicationEligibilityResults group. Don't use this type directly, use NewReplicationEligibilityResultsClient() instead.

func NewReplicationEligibilityResultsClient

func NewReplicationEligibilityResultsClient(resourceGroupName string, subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicationEligibilityResultsClient, error)

NewReplicationEligibilityResultsClient creates a new instance of ReplicationEligibilityResultsClient with the specified values. resourceGroupName - The name of the resource group where the recovery services vault is present. subscriptionID - The subscription Id. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*ReplicationEligibilityResultsClient) Get

Get - Validates whether a given VM can be protected or not in which case returns list of errors. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 virtualMachineName - Virtual Machine name. options - ReplicationEligibilityResultsClientGetOptions contains the optional parameters for the ReplicationEligibilityResultsClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationEligibilityResults_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationEligibilityResultsClient("testRg1", "d90d145a-4cdd-45a3-b2c4-971d69775278", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx, "testVm1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationEligibilityResultsClient) List

List - Validates whether a given VM can be protected or not in which case returns list of errors. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 virtualMachineName - Virtual Machine name. options - ReplicationEligibilityResultsClientListOptions contains the optional parameters for the ReplicationEligibilityResultsClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationEligibilityResults_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationEligibilityResultsClient("testRg1", "d90d145a-4cdd-45a3-b2c4-971d69775278", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.List(ctx, "testVm2", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

type ReplicationEligibilityResultsClientGetOptions added in v0.2.0

type ReplicationEligibilityResultsClientGetOptions struct {
}

ReplicationEligibilityResultsClientGetOptions contains the optional parameters for the ReplicationEligibilityResultsClient.Get method.

type ReplicationEligibilityResultsClientGetResponse added in v0.2.0

type ReplicationEligibilityResultsClientGetResponse struct {
	ReplicationEligibilityResults
}

ReplicationEligibilityResultsClientGetResponse contains the response from method ReplicationEligibilityResultsClient.Get.

type ReplicationEligibilityResultsClientListOptions added in v0.2.0

type ReplicationEligibilityResultsClientListOptions struct {
}

ReplicationEligibilityResultsClientListOptions contains the optional parameters for the ReplicationEligibilityResultsClient.List method.

type ReplicationEligibilityResultsClientListResponse added in v0.2.0

type ReplicationEligibilityResultsClientListResponse struct {
	ReplicationEligibilityResultsCollection
}

ReplicationEligibilityResultsClientListResponse contains the response from method ReplicationEligibilityResultsClient.List.

type ReplicationEligibilityResultsCollection

type ReplicationEligibilityResultsCollection struct {
	// The replication eligibility results details.
	Value []*ReplicationEligibilityResults `json:"value,omitempty"`
}

ReplicationEligibilityResultsCollection - Replication eligibility results collection response model.

func (ReplicationEligibilityResultsCollection) MarshalJSON

func (r ReplicationEligibilityResultsCollection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ReplicationEligibilityResultsCollection.

func (*ReplicationEligibilityResultsCollection) UnmarshalJSON added in v1.1.0

func (r *ReplicationEligibilityResultsCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationEligibilityResultsCollection.

type ReplicationEligibilityResultsErrorInfo

type ReplicationEligibilityResultsErrorInfo struct {
	// The error code.
	Code *string `json:"code,omitempty"`

	// The error message.
	Message *string `json:"message,omitempty"`

	// The possible causes.
	PossibleCauses *string `json:"possibleCauses,omitempty"`

	// The recommended action.
	RecommendedAction *string `json:"recommendedAction,omitempty"`

	// READ-ONLY; The error status.
	Status *string `json:"status,omitempty" azure:"ro"`
}

ReplicationEligibilityResultsErrorInfo - Error model that can be exposed to the user.

func (ReplicationEligibilityResultsErrorInfo) MarshalJSON added in v1.1.0

func (r ReplicationEligibilityResultsErrorInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ReplicationEligibilityResultsErrorInfo.

func (*ReplicationEligibilityResultsErrorInfo) UnmarshalJSON added in v1.1.0

func (r *ReplicationEligibilityResultsErrorInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationEligibilityResultsErrorInfo.

type ReplicationEligibilityResultsProperties

type ReplicationEligibilityResultsProperties struct {
	// The error details.
	Errors []*ReplicationEligibilityResultsErrorInfo `json:"errors,omitempty"`

	// READ-ONLY; The client request Id.
	ClientRequestID *string `json:"clientRequestId,omitempty" azure:"ro"`
}

ReplicationEligibilityResultsProperties - Properties model for replication eligibility results API.

func (ReplicationEligibilityResultsProperties) MarshalJSON

func (r ReplicationEligibilityResultsProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ReplicationEligibilityResultsProperties.

func (*ReplicationEligibilityResultsProperties) UnmarshalJSON added in v1.1.0

func (r *ReplicationEligibilityResultsProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationEligibilityResultsProperties.

type ReplicationEventsClient

type ReplicationEventsClient struct {
	// contains filtered or unexported fields
}

ReplicationEventsClient contains the methods for the ReplicationEvents group. Don't use this type directly, use NewReplicationEventsClient() instead.

func NewReplicationEventsClient

func NewReplicationEventsClient(resourceName string, resourceGroupName string, subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicationEventsClient, error)

NewReplicationEventsClient creates a new instance of ReplicationEventsClient with the specified values. resourceName - The name of the recovery services vault. resourceGroupName - The name of the resource group where the recovery services vault is present. subscriptionID - The subscription Id. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*ReplicationEventsClient) Get

Get - The operation to get the details of an Azure Site recovery event. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 eventName - The name of the Azure Site Recovery event. options - ReplicationEventsClientGetOptions contains the optional parameters for the ReplicationEventsClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationEvents_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationEventsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx, "654b71d0-b2ce-4e6e-a861-98528d4bd375", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationEventsClient) NewListPager added in v0.4.0

NewListPager - Gets the list of Azure Site Recovery events for the vault. Generated from API version 2022-10-01 options - ReplicationEventsClientListOptions contains the optional parameters for the ReplicationEventsClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationEvents_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationEventsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager(&armrecoveryservicessiterecovery.ReplicationEventsClientListOptions{Filter: nil})
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type ReplicationEventsClientGetOptions added in v0.2.0

type ReplicationEventsClientGetOptions struct {
}

ReplicationEventsClientGetOptions contains the optional parameters for the ReplicationEventsClient.Get method.

type ReplicationEventsClientGetResponse added in v0.2.0

type ReplicationEventsClientGetResponse struct {
	Event
}

ReplicationEventsClientGetResponse contains the response from method ReplicationEventsClient.Get.

type ReplicationEventsClientListOptions added in v0.2.0

type ReplicationEventsClientListOptions struct {
	// OData filter options.
	Filter *string
}

ReplicationEventsClientListOptions contains the optional parameters for the ReplicationEventsClient.List method.

type ReplicationEventsClientListResponse added in v0.2.0

type ReplicationEventsClientListResponse struct {
	EventCollection
}

ReplicationEventsClientListResponse contains the response from method ReplicationEventsClient.List.

type ReplicationFabricsClient

type ReplicationFabricsClient struct {
	// contains filtered or unexported fields
}

ReplicationFabricsClient contains the methods for the ReplicationFabrics group. Don't use this type directly, use NewReplicationFabricsClient() instead.

func NewReplicationFabricsClient

func NewReplicationFabricsClient(resourceName string, resourceGroupName string, subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicationFabricsClient, error)

NewReplicationFabricsClient creates a new instance of ReplicationFabricsClient with the specified values. resourceName - The name of the recovery services vault. resourceGroupName - The name of the resource group where the recovery services vault is present. subscriptionID - The subscription Id. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*ReplicationFabricsClient) BeginCheckConsistency

BeginCheckConsistency - The operation to perform a consistency check on the fabric. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. options - ReplicationFabricsClientBeginCheckConsistencyOptions contains the optional parameters for the ReplicationFabricsClient.BeginCheckConsistency method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationFabrics_CheckConsistency.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationFabricsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginCheckConsistency(ctx, "cloud1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationFabricsClient) BeginCreate

BeginCreate - The operation to create an Azure Site Recovery fabric (for e.g. Hyper-V site). If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Name of the ASR fabric. input - Fabric creation input. options - ReplicationFabricsClientBeginCreateOptions contains the optional parameters for the ReplicationFabricsClient.BeginCreate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationFabrics_Create.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationFabricsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginCreate(ctx, "cloud1", armrecoveryservicessiterecovery.FabricCreationInput{
		Properties: &armrecoveryservicessiterecovery.FabricCreationInputProperties{
			CustomDetails: &armrecoveryservicessiterecovery.FabricSpecificCreationInput{
				InstanceType: to.Ptr("FabricSpecificCreationInput"),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationFabricsClient) BeginDelete

BeginDelete - The operation to delete or remove an Azure Site Recovery fabric. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - ASR fabric to delete. options - ReplicationFabricsClientBeginDeleteOptions contains the optional parameters for the ReplicationFabricsClient.BeginDelete method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationFabrics_Delete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationFabricsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginDelete(ctx, "cloud1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*ReplicationFabricsClient) BeginMigrateToAAD

BeginMigrateToAAD - The operation to migrate an Azure Site Recovery fabric to AAD. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - ASR fabric to migrate. options - ReplicationFabricsClientBeginMigrateToAADOptions contains the optional parameters for the ReplicationFabricsClient.BeginMigrateToAAD method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationFabrics_MigrateToAad.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationFabricsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginMigrateToAAD(ctx, "cloud1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*ReplicationFabricsClient) BeginPurge

BeginPurge - The operation to purge(force delete) an Azure Site Recovery fabric. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - ASR fabric to purge. options - ReplicationFabricsClientBeginPurgeOptions contains the optional parameters for the ReplicationFabricsClient.BeginPurge method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationFabrics_Purge.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationFabricsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginPurge(ctx, "cloud1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*ReplicationFabricsClient) BeginReassociateGateway

BeginReassociateGateway - The operation to move replications from a process server to another process server. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - The name of the fabric containing the process server. failoverProcessServerRequest - The input to the failover process server operation. options - ReplicationFabricsClientBeginReassociateGatewayOptions contains the optional parameters for the ReplicationFabricsClient.BeginReassociateGateway method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationFabrics_ReassociateGateway.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationFabricsClient("MadhaviVault", "MadhaviVRG", "7c943c1b-5122-4097-90c8-861411bdd574", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginReassociateGateway(ctx, "GRACE-V2A-1", armrecoveryservicessiterecovery.FailoverProcessServerRequest{
		Properties: &armrecoveryservicessiterecovery.FailoverProcessServerRequestProperties{
			ContainerName:         to.Ptr("cloud_1f3c15af-2256-4568-9e06-e1ef4f728f75"),
			SourceProcessServerID: to.Ptr("AFA0EC54-1894-4E44-9CAB02DB8854B117"),
			TargetProcessServerID: to.Ptr("5D3ED340-85AE-C646-B338641E015DA405"),
			UpdateType:            to.Ptr("ServerLevel"),
			VMsToMigrate: []*string{
				to.Ptr("Vm1"),
				to.Ptr("Vm2")},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationFabricsClient) BeginRenewCertificate

BeginRenewCertificate - Renews the connection certificate for the ASR replication fabric. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - fabric name to renew certs for. renewCertificate - Renew certificate input. options - ReplicationFabricsClientBeginRenewCertificateOptions contains the optional parameters for the ReplicationFabricsClient.BeginRenewCertificate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationFabrics_RenewCertificate.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationFabricsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginRenewCertificate(ctx, "cloud1", armrecoveryservicessiterecovery.RenewCertificateInput{
		Properties: &armrecoveryservicessiterecovery.RenewCertificateInputProperties{
			RenewCertificateType: to.Ptr("Cloud"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationFabricsClient) Get

Get - Gets the details of an Azure Site Recovery fabric. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. options - ReplicationFabricsClientGetOptions contains the optional parameters for the ReplicationFabricsClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationFabrics_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationFabricsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx, "cloud1", &armrecoveryservicessiterecovery.ReplicationFabricsClientGetOptions{Filter: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationFabricsClient) NewListPager added in v0.4.0

NewListPager - Gets a list of the Azure Site Recovery fabrics in the vault. Generated from API version 2022-10-01 options - ReplicationFabricsClientListOptions contains the optional parameters for the ReplicationFabricsClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationFabrics_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationFabricsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager(nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type ReplicationFabricsClientBeginCheckConsistencyOptions added in v0.2.0

type ReplicationFabricsClientBeginCheckConsistencyOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationFabricsClientBeginCheckConsistencyOptions contains the optional parameters for the ReplicationFabricsClient.BeginCheckConsistency method.

type ReplicationFabricsClientBeginCreateOptions added in v0.2.0

type ReplicationFabricsClientBeginCreateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationFabricsClientBeginCreateOptions contains the optional parameters for the ReplicationFabricsClient.BeginCreate method.

type ReplicationFabricsClientBeginDeleteOptions added in v0.2.0

type ReplicationFabricsClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationFabricsClientBeginDeleteOptions contains the optional parameters for the ReplicationFabricsClient.BeginDelete method.

type ReplicationFabricsClientBeginMigrateToAADOptions added in v0.2.0

type ReplicationFabricsClientBeginMigrateToAADOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationFabricsClientBeginMigrateToAADOptions contains the optional parameters for the ReplicationFabricsClient.BeginMigrateToAAD method.

type ReplicationFabricsClientBeginPurgeOptions added in v0.2.0

type ReplicationFabricsClientBeginPurgeOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationFabricsClientBeginPurgeOptions contains the optional parameters for the ReplicationFabricsClient.BeginPurge method.

type ReplicationFabricsClientBeginReassociateGatewayOptions added in v0.2.0

type ReplicationFabricsClientBeginReassociateGatewayOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationFabricsClientBeginReassociateGatewayOptions contains the optional parameters for the ReplicationFabricsClient.BeginReassociateGateway method.

type ReplicationFabricsClientBeginRenewCertificateOptions added in v0.2.0

type ReplicationFabricsClientBeginRenewCertificateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationFabricsClientBeginRenewCertificateOptions contains the optional parameters for the ReplicationFabricsClient.BeginRenewCertificate method.

type ReplicationFabricsClientCheckConsistencyResponse added in v0.2.0

type ReplicationFabricsClientCheckConsistencyResponse struct {
	Fabric
}

ReplicationFabricsClientCheckConsistencyResponse contains the response from method ReplicationFabricsClient.CheckConsistency.

type ReplicationFabricsClientCreateResponse added in v0.2.0

type ReplicationFabricsClientCreateResponse struct {
	Fabric
}

ReplicationFabricsClientCreateResponse contains the response from method ReplicationFabricsClient.Create.

type ReplicationFabricsClientDeleteResponse added in v0.2.0

type ReplicationFabricsClientDeleteResponse struct {
}

ReplicationFabricsClientDeleteResponse contains the response from method ReplicationFabricsClient.Delete.

type ReplicationFabricsClientGetOptions added in v0.2.0

type ReplicationFabricsClientGetOptions struct {
	// OData filter options.
	Filter *string
}

ReplicationFabricsClientGetOptions contains the optional parameters for the ReplicationFabricsClient.Get method.

type ReplicationFabricsClientGetResponse added in v0.2.0

type ReplicationFabricsClientGetResponse struct {
	Fabric
}

ReplicationFabricsClientGetResponse contains the response from method ReplicationFabricsClient.Get.

type ReplicationFabricsClientListOptions added in v0.2.0

type ReplicationFabricsClientListOptions struct {
}

ReplicationFabricsClientListOptions contains the optional parameters for the ReplicationFabricsClient.List method.

type ReplicationFabricsClientListResponse added in v0.2.0

type ReplicationFabricsClientListResponse struct {
	FabricCollection
}

ReplicationFabricsClientListResponse contains the response from method ReplicationFabricsClient.List.

type ReplicationFabricsClientMigrateToAADResponse added in v0.2.0

type ReplicationFabricsClientMigrateToAADResponse struct {
}

ReplicationFabricsClientMigrateToAADResponse contains the response from method ReplicationFabricsClient.MigrateToAAD.

type ReplicationFabricsClientPurgeResponse added in v0.2.0

type ReplicationFabricsClientPurgeResponse struct {
}

ReplicationFabricsClientPurgeResponse contains the response from method ReplicationFabricsClient.Purge.

type ReplicationFabricsClientReassociateGatewayResponse added in v0.2.0

type ReplicationFabricsClientReassociateGatewayResponse struct {
	Fabric
}

ReplicationFabricsClientReassociateGatewayResponse contains the response from method ReplicationFabricsClient.ReassociateGateway.

type ReplicationFabricsClientRenewCertificateResponse added in v0.2.0

type ReplicationFabricsClientRenewCertificateResponse struct {
	Fabric
}

ReplicationFabricsClientRenewCertificateResponse contains the response from method ReplicationFabricsClient.RenewCertificate.

type ReplicationGroupDetails

type ReplicationGroupDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`
}

ReplicationGroupDetails - Replication group details. This will be used in case of San.

func (*ReplicationGroupDetails) GetConfigurationSettings added in v0.2.0

func (r *ReplicationGroupDetails) GetConfigurationSettings() *ConfigurationSettings

GetConfigurationSettings implements the ConfigurationSettingsClassification interface for type ReplicationGroupDetails.

func (ReplicationGroupDetails) MarshalJSON

func (r ReplicationGroupDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ReplicationGroupDetails.

func (*ReplicationGroupDetails) UnmarshalJSON added in v0.2.0

func (r *ReplicationGroupDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationGroupDetails.

type ReplicationJobsClient

type ReplicationJobsClient struct {
	// contains filtered or unexported fields
}

ReplicationJobsClient contains the methods for the ReplicationJobs group. Don't use this type directly, use NewReplicationJobsClient() instead.

func NewReplicationJobsClient

func NewReplicationJobsClient(resourceName string, resourceGroupName string, subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicationJobsClient, error)

NewReplicationJobsClient creates a new instance of ReplicationJobsClient with the specified values. resourceName - The name of the recovery services vault. resourceGroupName - The name of the resource group where the recovery services vault is present. subscriptionID - The subscription Id. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*ReplicationJobsClient) BeginCancel

BeginCancel - The operation to cancel an Azure Site Recovery job. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 jobName - Job identifier. options - ReplicationJobsClientBeginCancelOptions contains the optional parameters for the ReplicationJobsClient.BeginCancel method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationJobs_Cancel.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationJobsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginCancel(ctx, "2653c648-fc72-4316-86f3-fdf8eaa0066b", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationJobsClient) BeginExport

BeginExport - The operation to export the details of the Azure Site Recovery jobs of the vault. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 jobQueryParameter - job query filter. options - ReplicationJobsClientBeginExportOptions contains the optional parameters for the ReplicationJobsClient.BeginExport method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationJobs_Export.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationJobsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginExport(ctx, armrecoveryservicessiterecovery.JobQueryParameter{
		AffectedObjectTypes: to.Ptr(""),
		EndTime:             to.Ptr("2017-05-04T14:26:51.9161395Z"),
		JobStatus:           to.Ptr(""),
		StartTime:           to.Ptr("2017-04-27T14:26:51.9161395Z"),
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationJobsClient) BeginRestart

BeginRestart - The operation to restart an Azure Site Recovery job. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 jobName - Job identifier. options - ReplicationJobsClientBeginRestartOptions contains the optional parameters for the ReplicationJobsClient.BeginRestart method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationJobs_Restart.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationJobsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginRestart(ctx, "0664564c-353e-401a-ab0c-722257c10e25", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationJobsClient) BeginResume

BeginResume - The operation to resume an Azure Site Recovery job. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 jobName - Job identifier. resumeJobParams - Resume rob comments. options - ReplicationJobsClientBeginResumeOptions contains the optional parameters for the ReplicationJobsClient.BeginResume method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationJobs_Resume.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationJobsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginResume(ctx, "58776d0b-3141-48b2-a377-9ad863eb160d", armrecoveryservicessiterecovery.ResumeJobParams{
		Properties: &armrecoveryservicessiterecovery.ResumeJobParamsProperties{
			Comments: to.Ptr(" "),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationJobsClient) Get

Get - Get the details of an Azure Site Recovery job. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 jobName - Job identifier. options - ReplicationJobsClientGetOptions contains the optional parameters for the ReplicationJobsClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationJobs_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationJobsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx, "58776d0b-3141-48b2-a377-9ad863eb160d", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationJobsClient) NewListPager added in v0.4.0

NewListPager - Gets the list of Azure Site Recovery Jobs for the vault. Generated from API version 2022-10-01 options - ReplicationJobsClientListOptions contains the optional parameters for the ReplicationJobsClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationJobs_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationJobsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager(&armrecoveryservicessiterecovery.ReplicationJobsClientListOptions{Filter: nil})
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type ReplicationJobsClientBeginCancelOptions added in v0.2.0

type ReplicationJobsClientBeginCancelOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationJobsClientBeginCancelOptions contains the optional parameters for the ReplicationJobsClient.BeginCancel method.

type ReplicationJobsClientBeginExportOptions added in v0.2.0

type ReplicationJobsClientBeginExportOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationJobsClientBeginExportOptions contains the optional parameters for the ReplicationJobsClient.BeginExport method.

type ReplicationJobsClientBeginRestartOptions added in v0.2.0

type ReplicationJobsClientBeginRestartOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationJobsClientBeginRestartOptions contains the optional parameters for the ReplicationJobsClient.BeginRestart method.

type ReplicationJobsClientBeginResumeOptions added in v0.2.0

type ReplicationJobsClientBeginResumeOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationJobsClientBeginResumeOptions contains the optional parameters for the ReplicationJobsClient.BeginResume method.

type ReplicationJobsClientCancelResponse added in v0.2.0

type ReplicationJobsClientCancelResponse struct {
	Job
}

ReplicationJobsClientCancelResponse contains the response from method ReplicationJobsClient.Cancel.

type ReplicationJobsClientExportResponse added in v0.2.0

type ReplicationJobsClientExportResponse struct {
	Job
}

ReplicationJobsClientExportResponse contains the response from method ReplicationJobsClient.Export.

type ReplicationJobsClientGetOptions added in v0.2.0

type ReplicationJobsClientGetOptions struct {
}

ReplicationJobsClientGetOptions contains the optional parameters for the ReplicationJobsClient.Get method.

type ReplicationJobsClientGetResponse added in v0.2.0

type ReplicationJobsClientGetResponse struct {
	Job
}

ReplicationJobsClientGetResponse contains the response from method ReplicationJobsClient.Get.

type ReplicationJobsClientListOptions added in v0.2.0

type ReplicationJobsClientListOptions struct {
	// OData filter options.
	Filter *string
}

ReplicationJobsClientListOptions contains the optional parameters for the ReplicationJobsClient.List method.

type ReplicationJobsClientListResponse added in v0.2.0

type ReplicationJobsClientListResponse struct {
	JobCollection
}

ReplicationJobsClientListResponse contains the response from method ReplicationJobsClient.List.

type ReplicationJobsClientRestartResponse added in v0.2.0

type ReplicationJobsClientRestartResponse struct {
	Job
}

ReplicationJobsClientRestartResponse contains the response from method ReplicationJobsClient.Restart.

type ReplicationJobsClientResumeResponse added in v0.2.0

type ReplicationJobsClientResumeResponse struct {
	Job
}

ReplicationJobsClientResumeResponse contains the response from method ReplicationJobsClient.Resume.

type ReplicationLogicalNetworksClient

type ReplicationLogicalNetworksClient struct {
	// contains filtered or unexported fields
}

ReplicationLogicalNetworksClient contains the methods for the ReplicationLogicalNetworks group. Don't use this type directly, use NewReplicationLogicalNetworksClient() instead.

func NewReplicationLogicalNetworksClient

func NewReplicationLogicalNetworksClient(resourceName string, resourceGroupName string, subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicationLogicalNetworksClient, error)

NewReplicationLogicalNetworksClient creates a new instance of ReplicationLogicalNetworksClient with the specified values. resourceName - The name of the recovery services vault. resourceGroupName - The name of the resource group where the recovery services vault is present. subscriptionID - The subscription Id. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*ReplicationLogicalNetworksClient) Get

Get - Gets the details of a logical network. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Server Id. logicalNetworkName - Logical network name. options - ReplicationLogicalNetworksClientGetOptions contains the optional parameters for the ReplicationLogicalNetworksClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationLogicalNetworks_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationLogicalNetworksClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx, "cloud1", "87ab394f-165f-4aa9-bd84-b018500b4509", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationLogicalNetworksClient) NewListByReplicationFabricsPager added in v0.4.0

NewListByReplicationFabricsPager - Lists all the logical networks of the Azure Site Recovery fabric. Generated from API version 2022-10-01 fabricName - Server Id. options - ReplicationLogicalNetworksClientListByReplicationFabricsOptions contains the optional parameters for the ReplicationLogicalNetworksClient.ListByReplicationFabrics method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationLogicalNetworks_ListByReplicationFabrics.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationLogicalNetworksClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListByReplicationFabricsPager("cloud1", nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type ReplicationLogicalNetworksClientGetOptions added in v0.2.0

type ReplicationLogicalNetworksClientGetOptions struct {
}

ReplicationLogicalNetworksClientGetOptions contains the optional parameters for the ReplicationLogicalNetworksClient.Get method.

type ReplicationLogicalNetworksClientGetResponse added in v0.2.0

type ReplicationLogicalNetworksClientGetResponse struct {
	LogicalNetwork
}

ReplicationLogicalNetworksClientGetResponse contains the response from method ReplicationLogicalNetworksClient.Get.

type ReplicationLogicalNetworksClientListByReplicationFabricsOptions added in v0.2.0

type ReplicationLogicalNetworksClientListByReplicationFabricsOptions struct {
}

ReplicationLogicalNetworksClientListByReplicationFabricsOptions contains the optional parameters for the ReplicationLogicalNetworksClient.ListByReplicationFabrics method.

type ReplicationLogicalNetworksClientListByReplicationFabricsResponse added in v0.2.0

type ReplicationLogicalNetworksClientListByReplicationFabricsResponse struct {
	LogicalNetworkCollection
}

ReplicationLogicalNetworksClientListByReplicationFabricsResponse contains the response from method ReplicationLogicalNetworksClient.ListByReplicationFabrics.

type ReplicationMigrationItemsClient

type ReplicationMigrationItemsClient struct {
	// contains filtered or unexported fields
}

ReplicationMigrationItemsClient contains the methods for the ReplicationMigrationItems group. Don't use this type directly, use NewReplicationMigrationItemsClient() instead.

func NewReplicationMigrationItemsClient

func NewReplicationMigrationItemsClient(resourceName string, resourceGroupName string, subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicationMigrationItemsClient, error)

NewReplicationMigrationItemsClient creates a new instance of ReplicationMigrationItemsClient with the specified values. resourceName - The name of the recovery services vault. resourceGroupName - The name of the resource group where the recovery services vault is present. subscriptionID - The subscription Id. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*ReplicationMigrationItemsClient) BeginCreate

BeginCreate - The operation to create an ASR migration item (enable migration). If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. protectionContainerName - Protection container name. migrationItemName - Migration item name. input - Enable migration input. options - ReplicationMigrationItemsClientBeginCreateOptions contains the optional parameters for the ReplicationMigrationItemsClient.BeginCreate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationMigrationItems_Create.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationMigrationItemsClient("migrationvault", "resourcegroup1", "cb53d0c3-bd59-4721-89bc-06916a9147ef", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginCreate(ctx, "vmwarefabric1", "vmwareContainer1", "virtualmachine1", armrecoveryservicessiterecovery.EnableMigrationInput{
		Properties: &armrecoveryservicessiterecovery.EnableMigrationInputProperties{
			PolicyID: to.Ptr("/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationPolicies/vmwarepolicy1"),
			ProviderSpecificDetails: &armrecoveryservicessiterecovery.VMwareCbtEnableMigrationInput{
				InstanceType:            to.Ptr("VMwareCbt"),
				DataMoverRunAsAccountID: to.Ptr("/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.OffAzure/VMwareSites/vmwaresite1/runasaccounts/dataMoverRunAsAccount1"),
				DisksToInclude: []*armrecoveryservicessiterecovery.VMwareCbtDiskInput{
					{
						DiskID:                         to.Ptr("disk1"),
						IsOSDisk:                       to.Ptr("true"),
						LogStorageAccountID:            to.Ptr("/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.Storage/storageAccounts/logStorageAccount1"),
						LogStorageAccountSasSecretName: to.Ptr("logStorageSas"),
					}},
				SnapshotRunAsAccountID: to.Ptr("/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.OffAzure/VMwareSites/vmwaresite1/runasaccounts/snapshotRunAsAccount1"),
				TargetNetworkID:        to.Ptr("/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.Network/virtualNetworks/virtualNetwork1"),
				TargetResourceGroupID:  to.Ptr("/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1"),
				VmwareMachineID:        to.Ptr("/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.OffAzure/VMwareSites/vmwaresite1/machines/virtualmachine1"),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationMigrationItemsClient) BeginDelete

BeginDelete - The operation to delete an ASR migration item. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. protectionContainerName - Protection container name. migrationItemName - Migration item name. options - ReplicationMigrationItemsClientBeginDeleteOptions contains the optional parameters for the ReplicationMigrationItemsClient.BeginDelete method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationMigrationItems_Delete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationMigrationItemsClient("migrationvault", "resourcegroup1", "cb53d0c3-bd59-4721-89bc-06916a9147ef", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginDelete(ctx, "vmwarefabric1", "vmwareContainer1", "virtualmachine1", &armrecoveryservicessiterecovery.ReplicationMigrationItemsClientBeginDeleteOptions{DeleteOption: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*ReplicationMigrationItemsClient) BeginMigrate

func (client *ReplicationMigrationItemsClient) BeginMigrate(ctx context.Context, fabricName string, protectionContainerName string, migrationItemName string, migrateInput MigrateInput, options *ReplicationMigrationItemsClientBeginMigrateOptions) (*runtime.Poller[ReplicationMigrationItemsClientMigrateResponse], error)

BeginMigrate - The operation to initiate migration of the item. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. protectionContainerName - Protection container name. migrationItemName - Migration item name. migrateInput - Migrate input. options - ReplicationMigrationItemsClientBeginMigrateOptions contains the optional parameters for the ReplicationMigrationItemsClient.BeginMigrate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationMigrationItems_Migrate.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationMigrationItemsClient("migrationvault", "resourcegroup1", "cb53d0c3-bd59-4721-89bc-06916a9147ef", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginMigrate(ctx, "vmwarefabric1", "vmwareContainer1", "virtualmachine1", armrecoveryservicessiterecovery.MigrateInput{
		Properties: &armrecoveryservicessiterecovery.MigrateInputProperties{
			ProviderSpecificDetails: &armrecoveryservicessiterecovery.VMwareCbtMigrateInput{
				InstanceType:    to.Ptr("VMwareCbt"),
				PerformShutdown: to.Ptr("true"),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationMigrationItemsClient) BeginPauseReplication added in v1.1.0

func (client *ReplicationMigrationItemsClient) BeginPauseReplication(ctx context.Context, fabricName string, protectionContainerName string, migrationItemName string, pauseReplicationInput PauseReplicationInput, options *ReplicationMigrationItemsClientBeginPauseReplicationOptions) (*runtime.Poller[ReplicationMigrationItemsClientPauseReplicationResponse], error)

BeginPauseReplication - The operation to initiate pause replication of the item. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. protectionContainerName - Protection container name. migrationItemName - Migration item name. pauseReplicationInput - Pause replication input. options - ReplicationMigrationItemsClientBeginPauseReplicationOptions contains the optional parameters for the ReplicationMigrationItemsClient.BeginPauseReplication method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationMigrationItems_PauseReplication.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationMigrationItemsClient("migrationvault", "resourcegroup1", "cb53d0c3-bd59-4721-89bc-06916a9147ef", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginPauseReplication(ctx, "vmwarefabric1", "vmwareContainer1", "virtualmachine1", armrecoveryservicessiterecovery.PauseReplicationInput{
		Properties: &armrecoveryservicessiterecovery.PauseReplicationInputProperties{
			InstanceType: to.Ptr("VMwareCbt"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationMigrationItemsClient) BeginResumeReplication added in v1.1.0

func (client *ReplicationMigrationItemsClient) BeginResumeReplication(ctx context.Context, fabricName string, protectionContainerName string, migrationItemName string, resumeReplicationInput ResumeReplicationInput, options *ReplicationMigrationItemsClientBeginResumeReplicationOptions) (*runtime.Poller[ReplicationMigrationItemsClientResumeReplicationResponse], error)

BeginResumeReplication - The operation to initiate resume replication of the item. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. protectionContainerName - Protection container name. migrationItemName - Migration item name. resumeReplicationInput - Resume replication input. options - ReplicationMigrationItemsClientBeginResumeReplicationOptions contains the optional parameters for the ReplicationMigrationItemsClient.BeginResumeReplication method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationMigrationItems_ResumeReplication.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationMigrationItemsClient("migrationvault", "resourcegroup1", "cb53d0c3-bd59-4721-89bc-06916a9147ef", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginResumeReplication(ctx, "vmwarefabric1", "vmwareContainer1", "virtualmachine1", armrecoveryservicessiterecovery.ResumeReplicationInput{
		Properties: &armrecoveryservicessiterecovery.ResumeReplicationInputProperties{
			ProviderSpecificDetails: &armrecoveryservicessiterecovery.VMwareCbtResumeReplicationInput{
				InstanceType:             to.Ptr("VMwareCbt"),
				DeleteMigrationResources: to.Ptr("false"),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationMigrationItemsClient) BeginResync

BeginResync - The operation to resynchronize replication of an ASR migration item. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. protectionContainerName - Protection container name. migrationItemName - Migration item name. input - Resync input. options - ReplicationMigrationItemsClientBeginResyncOptions contains the optional parameters for the ReplicationMigrationItemsClient.BeginResync method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationMigrationItems_Resync.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationMigrationItemsClient("migrationvault", "resourcegroup1", "cb53d0c3-bd59-4721-89bc-06916a9147ef", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginResync(ctx, "vmwarefabric1", "vmwareContainer1", "virtualmachine1", armrecoveryservicessiterecovery.ResyncInput{
		Properties: &armrecoveryservicessiterecovery.ResyncInputProperties{
			ProviderSpecificDetails: &armrecoveryservicessiterecovery.VMwareCbtResyncInput{
				InstanceType: to.Ptr("VMwareCbt"),
				SkipCbtReset: to.Ptr("true"),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationMigrationItemsClient) BeginTestMigrate

func (client *ReplicationMigrationItemsClient) BeginTestMigrate(ctx context.Context, fabricName string, protectionContainerName string, migrationItemName string, testMigrateInput TestMigrateInput, options *ReplicationMigrationItemsClientBeginTestMigrateOptions) (*runtime.Poller[ReplicationMigrationItemsClientTestMigrateResponse], error)

BeginTestMigrate - The operation to initiate test migration of the item. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. protectionContainerName - Protection container name. migrationItemName - Migration item name. testMigrateInput - Test migrate input. options - ReplicationMigrationItemsClientBeginTestMigrateOptions contains the optional parameters for the ReplicationMigrationItemsClient.BeginTestMigrate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationMigrationItems_TestMigrate.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationMigrationItemsClient("migrationvault", "resourcegroup1", "cb53d0c3-bd59-4721-89bc-06916a9147ef", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginTestMigrate(ctx, "vmwarefabric1", "vmwareContainer1", "virtualmachine1", armrecoveryservicessiterecovery.TestMigrateInput{
		Properties: &armrecoveryservicessiterecovery.TestMigrateInputProperties{
			ProviderSpecificDetails: &armrecoveryservicessiterecovery.VMwareCbtTestMigrateInput{
				InstanceType:    to.Ptr("VMwareCbt"),
				NetworkID:       to.Ptr("/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.Network/virtualNetworks/virtualNetwork1"),
				RecoveryPointID: to.Ptr("/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationFabrics/vmwarefabric1/replicationProtectionContainers/vmwareContainer1/replicationMigrationItems/virtualmachine1/migrationRecoveryPoints/9e737191-317e-43d0-8c83-e32ac3b34686"),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationMigrationItemsClient) BeginTestMigrateCleanup

func (client *ReplicationMigrationItemsClient) BeginTestMigrateCleanup(ctx context.Context, fabricName string, protectionContainerName string, migrationItemName string, testMigrateCleanupInput TestMigrateCleanupInput, options *ReplicationMigrationItemsClientBeginTestMigrateCleanupOptions) (*runtime.Poller[ReplicationMigrationItemsClientTestMigrateCleanupResponse], error)

BeginTestMigrateCleanup - The operation to initiate test migrate cleanup. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. protectionContainerName - Protection container name. migrationItemName - Migration item name. testMigrateCleanupInput - Test migrate cleanup input. options - ReplicationMigrationItemsClientBeginTestMigrateCleanupOptions contains the optional parameters for the ReplicationMigrationItemsClient.BeginTestMigrateCleanup method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationMigrationItems_TestMigrateCleanup.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationMigrationItemsClient("migrationvault", "resourcegroup1", "cb53d0c3-bd59-4721-89bc-06916a9147ef", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginTestMigrateCleanup(ctx, "vmwarefabric1", "vmwareContainer1", "virtualmachine1", armrecoveryservicessiterecovery.TestMigrateCleanupInput{
		Properties: &armrecoveryservicessiterecovery.TestMigrateCleanupInputProperties{
			Comments: to.Ptr("Test Failover Cleanup"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationMigrationItemsClient) BeginUpdate

BeginUpdate - The operation to update the recovery settings of an ASR migration item. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. protectionContainerName - Protection container name. migrationItemName - Migration item name. input - Update migration item input. options - ReplicationMigrationItemsClientBeginUpdateOptions contains the optional parameters for the ReplicationMigrationItemsClient.BeginUpdate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationMigrationItems_Update.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationMigrationItemsClient("migrationvault", "resourcegroup1", "cb53d0c3-bd59-4721-89bc-06916a9147ef", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginUpdate(ctx, "vmwarefabric1", "vmwareContainer1", "virtualmachine1", armrecoveryservicessiterecovery.UpdateMigrationItemInput{
		Properties: &armrecoveryservicessiterecovery.UpdateMigrationItemInputProperties{
			ProviderSpecificDetails: &armrecoveryservicessiterecovery.VMwareCbtUpdateMigrationItemInput{
				InstanceType: to.Ptr("VMwareCbt"),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationMigrationItemsClient) Get

func (client *ReplicationMigrationItemsClient) Get(ctx context.Context, fabricName string, protectionContainerName string, migrationItemName string, options *ReplicationMigrationItemsClientGetOptions) (ReplicationMigrationItemsClientGetResponse, error)

Get - Gets the details of a migration item. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric unique name. protectionContainerName - Protection container name. migrationItemName - Migration item name. options - ReplicationMigrationItemsClientGetOptions contains the optional parameters for the ReplicationMigrationItemsClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationMigrationItems_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationMigrationItemsClient("migrationvault", "resourcegroup1", "cb53d0c3-bd59-4721-89bc-06916a9147ef", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx, "vmwarefabric1", "vmwareContainer1", "virtualmachine1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationMigrationItemsClient) NewListByReplicationProtectionContainersPager added in v0.4.0

NewListByReplicationProtectionContainersPager - Gets the list of ASR migration items in the protection container. Generated from API version 2022-10-01 fabricName - Fabric name. protectionContainerName - Protection container name. options - ReplicationMigrationItemsClientListByReplicationProtectionContainersOptions contains the optional parameters for the ReplicationMigrationItemsClient.ListByReplicationProtectionContainers method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationMigrationItems_ListByReplicationProtectionContainers.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationMigrationItemsClient("migrationvault", "resourcegroup1", "cb53d0c3-bd59-4721-89bc-06916a9147ef", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListByReplicationProtectionContainersPager("vmwarefabric1", "vmwareContainer1", &armrecoveryservicessiterecovery.ReplicationMigrationItemsClientListByReplicationProtectionContainersOptions{SkipToken: nil,
		TakeToken: nil,
		Filter:    nil,
	})
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

func (*ReplicationMigrationItemsClient) NewListPager added in v0.4.0

NewListPager - Gets the list of migration items in the vault. Generated from API version 2022-10-01 options - ReplicationMigrationItemsClientListOptions contains the optional parameters for the ReplicationMigrationItemsClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationMigrationItems_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationMigrationItemsClient("migrationvault", "resourcegroup1", "cb53d0c3-bd59-4721-89bc-06916a9147ef", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager(&armrecoveryservicessiterecovery.ReplicationMigrationItemsClientListOptions{SkipToken: nil,
		TakeToken: nil,
		Filter:    nil,
	})
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type ReplicationMigrationItemsClientBeginCreateOptions added in v0.2.0

type ReplicationMigrationItemsClientBeginCreateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationMigrationItemsClientBeginCreateOptions contains the optional parameters for the ReplicationMigrationItemsClient.BeginCreate method.

type ReplicationMigrationItemsClientBeginDeleteOptions added in v0.2.0

type ReplicationMigrationItemsClientBeginDeleteOptions struct {
	// The delete option.
	DeleteOption *string
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationMigrationItemsClientBeginDeleteOptions contains the optional parameters for the ReplicationMigrationItemsClient.BeginDelete method.

type ReplicationMigrationItemsClientBeginMigrateOptions added in v0.2.0

type ReplicationMigrationItemsClientBeginMigrateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationMigrationItemsClientBeginMigrateOptions contains the optional parameters for the ReplicationMigrationItemsClient.BeginMigrate method.

type ReplicationMigrationItemsClientBeginPauseReplicationOptions added in v1.1.0

type ReplicationMigrationItemsClientBeginPauseReplicationOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationMigrationItemsClientBeginPauseReplicationOptions contains the optional parameters for the ReplicationMigrationItemsClient.BeginPauseReplication method.

type ReplicationMigrationItemsClientBeginResumeReplicationOptions added in v1.1.0

type ReplicationMigrationItemsClientBeginResumeReplicationOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationMigrationItemsClientBeginResumeReplicationOptions contains the optional parameters for the ReplicationMigrationItemsClient.BeginResumeReplication method.

type ReplicationMigrationItemsClientBeginResyncOptions added in v0.2.0

type ReplicationMigrationItemsClientBeginResyncOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationMigrationItemsClientBeginResyncOptions contains the optional parameters for the ReplicationMigrationItemsClient.BeginResync method.

type ReplicationMigrationItemsClientBeginTestMigrateCleanupOptions added in v0.2.0

type ReplicationMigrationItemsClientBeginTestMigrateCleanupOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationMigrationItemsClientBeginTestMigrateCleanupOptions contains the optional parameters for the ReplicationMigrationItemsClient.BeginTestMigrateCleanup method.

type ReplicationMigrationItemsClientBeginTestMigrateOptions added in v0.2.0

type ReplicationMigrationItemsClientBeginTestMigrateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationMigrationItemsClientBeginTestMigrateOptions contains the optional parameters for the ReplicationMigrationItemsClient.BeginTestMigrate method.

type ReplicationMigrationItemsClientBeginUpdateOptions added in v0.2.0

type ReplicationMigrationItemsClientBeginUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationMigrationItemsClientBeginUpdateOptions contains the optional parameters for the ReplicationMigrationItemsClient.BeginUpdate method.

type ReplicationMigrationItemsClientCreateResponse added in v0.2.0

type ReplicationMigrationItemsClientCreateResponse struct {
	MigrationItem
}

ReplicationMigrationItemsClientCreateResponse contains the response from method ReplicationMigrationItemsClient.Create.

type ReplicationMigrationItemsClientDeleteResponse added in v0.2.0

type ReplicationMigrationItemsClientDeleteResponse struct {
}

ReplicationMigrationItemsClientDeleteResponse contains the response from method ReplicationMigrationItemsClient.Delete.

type ReplicationMigrationItemsClientGetOptions added in v0.2.0

type ReplicationMigrationItemsClientGetOptions struct {
}

ReplicationMigrationItemsClientGetOptions contains the optional parameters for the ReplicationMigrationItemsClient.Get method.

type ReplicationMigrationItemsClientGetResponse added in v0.2.0

type ReplicationMigrationItemsClientGetResponse struct {
	MigrationItem
}

ReplicationMigrationItemsClientGetResponse contains the response from method ReplicationMigrationItemsClient.Get.

type ReplicationMigrationItemsClientListByReplicationProtectionContainersOptions added in v0.2.0

type ReplicationMigrationItemsClientListByReplicationProtectionContainersOptions struct {
	// OData filter options.
	Filter *string
	// The pagination token.
	SkipToken *string
	// The page size.
	TakeToken *string
}

ReplicationMigrationItemsClientListByReplicationProtectionContainersOptions contains the optional parameters for the ReplicationMigrationItemsClient.ListByReplicationProtectionContainers method.

type ReplicationMigrationItemsClientListByReplicationProtectionContainersResponse added in v0.2.0

type ReplicationMigrationItemsClientListByReplicationProtectionContainersResponse struct {
	MigrationItemCollection
}

ReplicationMigrationItemsClientListByReplicationProtectionContainersResponse contains the response from method ReplicationMigrationItemsClient.ListByReplicationProtectionContainers.

type ReplicationMigrationItemsClientListOptions added in v0.2.0

type ReplicationMigrationItemsClientListOptions struct {
	// OData filter options.
	Filter *string
	// The pagination token.
	SkipToken *string
	// The page size.
	TakeToken *string
}

ReplicationMigrationItemsClientListOptions contains the optional parameters for the ReplicationMigrationItemsClient.List method.

type ReplicationMigrationItemsClientListResponse added in v0.2.0

type ReplicationMigrationItemsClientListResponse struct {
	MigrationItemCollection
}

ReplicationMigrationItemsClientListResponse contains the response from method ReplicationMigrationItemsClient.List.

type ReplicationMigrationItemsClientMigrateResponse added in v0.2.0

type ReplicationMigrationItemsClientMigrateResponse struct {
	MigrationItem
}

ReplicationMigrationItemsClientMigrateResponse contains the response from method ReplicationMigrationItemsClient.Migrate.

type ReplicationMigrationItemsClientPauseReplicationResponse added in v1.1.0

type ReplicationMigrationItemsClientPauseReplicationResponse struct {
	MigrationItem
}

ReplicationMigrationItemsClientPauseReplicationResponse contains the response from method ReplicationMigrationItemsClient.PauseReplication.

type ReplicationMigrationItemsClientResumeReplicationResponse added in v1.1.0

type ReplicationMigrationItemsClientResumeReplicationResponse struct {
	MigrationItem
}

ReplicationMigrationItemsClientResumeReplicationResponse contains the response from method ReplicationMigrationItemsClient.ResumeReplication.

type ReplicationMigrationItemsClientResyncResponse added in v0.2.0

type ReplicationMigrationItemsClientResyncResponse struct {
	MigrationItem
}

ReplicationMigrationItemsClientResyncResponse contains the response from method ReplicationMigrationItemsClient.Resync.

type ReplicationMigrationItemsClientTestMigrateCleanupResponse added in v0.2.0

type ReplicationMigrationItemsClientTestMigrateCleanupResponse struct {
	MigrationItem
}

ReplicationMigrationItemsClientTestMigrateCleanupResponse contains the response from method ReplicationMigrationItemsClient.TestMigrateCleanup.

type ReplicationMigrationItemsClientTestMigrateResponse added in v0.2.0

type ReplicationMigrationItemsClientTestMigrateResponse struct {
	MigrationItem
}

ReplicationMigrationItemsClientTestMigrateResponse contains the response from method ReplicationMigrationItemsClient.TestMigrate.

type ReplicationMigrationItemsClientUpdateResponse added in v0.2.0

type ReplicationMigrationItemsClientUpdateResponse struct {
	MigrationItem
}

ReplicationMigrationItemsClientUpdateResponse contains the response from method ReplicationMigrationItemsClient.Update.

type ReplicationNetworkMappingsClient

type ReplicationNetworkMappingsClient struct {
	// contains filtered or unexported fields
}

ReplicationNetworkMappingsClient contains the methods for the ReplicationNetworkMappings group. Don't use this type directly, use NewReplicationNetworkMappingsClient() instead.

func NewReplicationNetworkMappingsClient

func NewReplicationNetworkMappingsClient(resourceName string, resourceGroupName string, subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicationNetworkMappingsClient, error)

NewReplicationNetworkMappingsClient creates a new instance of ReplicationNetworkMappingsClient with the specified values. resourceName - The name of the recovery services vault. resourceGroupName - The name of the resource group where the recovery services vault is present. subscriptionID - The subscription Id. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*ReplicationNetworkMappingsClient) BeginCreate

BeginCreate - The operation to create an ASR network mapping. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Primary fabric name. networkName - Primary network name. networkMappingName - Network mapping name. input - Create network mapping input. options - ReplicationNetworkMappingsClientBeginCreateOptions contains the optional parameters for the ReplicationNetworkMappingsClient.BeginCreate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationNetworkMappings_Create.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationNetworkMappingsClient("srce2avaultbvtaC27", "srcBvte2a14C27", "9112a37f-0f3e-46ec-9c00-060c6edca071", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginCreate(ctx, "b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac", "e2267b5c-2650-49bd-ab3f-d66aae694c06", "corpe2amap", armrecoveryservicessiterecovery.CreateNetworkMappingInput{
		Properties: &armrecoveryservicessiterecovery.CreateNetworkMappingInputProperties{
			FabricSpecificDetails: &armrecoveryservicessiterecovery.VmmToAzureCreateNetworkMappingInput{
				InstanceType: to.Ptr("VmmToAzure"),
			},
			RecoveryFabricName: to.Ptr("Microsoft Azure"),
			RecoveryNetworkID:  to.Ptr("/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryProd1/providers/Microsoft.Network/virtualNetworks/vnetavrai"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationNetworkMappingsClient) BeginDelete

BeginDelete - The operation to delete a network mapping. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Primary fabric name. networkName - Primary network name. networkMappingName - ARM Resource Name for network mapping. options - ReplicationNetworkMappingsClientBeginDeleteOptions contains the optional parameters for the ReplicationNetworkMappingsClient.BeginDelete method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationNetworkMappings_Delete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationNetworkMappingsClient("srce2avaultbvtaC27", "srcBvte2a14C27", "9112a37f-0f3e-46ec-9c00-060c6edca071", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginDelete(ctx, "b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac", "e2267b5c-2650-49bd-ab3f-d66aae694c06", "corpe2amap", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*ReplicationNetworkMappingsClient) BeginUpdate

BeginUpdate - The operation to update an ASR network mapping. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Primary fabric name. networkName - Primary network name. networkMappingName - Network mapping name. input - Update network mapping input. options - ReplicationNetworkMappingsClientBeginUpdateOptions contains the optional parameters for the ReplicationNetworkMappingsClient.BeginUpdate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationNetworkMappings_Update.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationNetworkMappingsClient("srce2avaultbvtaC27", "srcBvte2a14C27", "9112a37f-0f3e-46ec-9c00-060c6edca071", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginUpdate(ctx, "b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac", "e2267b5c-2650-49bd-ab3f-d66aae694c06", "corpe2amap", armrecoveryservicessiterecovery.UpdateNetworkMappingInput{
		Properties: &armrecoveryservicessiterecovery.UpdateNetworkMappingInputProperties{
			FabricSpecificDetails: &armrecoveryservicessiterecovery.VmmToAzureUpdateNetworkMappingInput{
				InstanceType: to.Ptr("VmmToAzure"),
			},
			RecoveryFabricName: to.Ptr("Microsoft Azure"),
			RecoveryNetworkID:  to.Ptr("/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryProd1/providers/Microsoft.Network/virtualNetworks/vnetavrai2"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationNetworkMappingsClient) Get

Get - Gets the details of an ASR network mapping. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Primary fabric name. networkName - Primary network name. networkMappingName - Network mapping name. options - ReplicationNetworkMappingsClientGetOptions contains the optional parameters for the ReplicationNetworkMappingsClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationNetworkMappings_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationNetworkMappingsClient("srce2avaultbvtaC27", "srcBvte2a14C27", "9112a37f-0f3e-46ec-9c00-060c6edca071", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx, "b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac", "e2267b5c-2650-49bd-ab3f-d66aae694c06", "corpe2amap", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationNetworkMappingsClient) NewListByReplicationNetworksPager added in v0.4.0

NewListByReplicationNetworksPager - Lists all ASR network mappings for the specified network. Generated from API version 2022-10-01 fabricName - Primary fabric name. networkName - Primary network name. options - ReplicationNetworkMappingsClientListByReplicationNetworksOptions contains the optional parameters for the ReplicationNetworkMappingsClient.ListByReplicationNetworks method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationNetworkMappings_ListByReplicationNetworks.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationNetworkMappingsClient("srce2avaultbvtaC27", "srcBvte2a14C27", "9112a37f-0f3e-46ec-9c00-060c6edca071", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListByReplicationNetworksPager("b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac", "e2267b5c-2650-49bd-ab3f-d66aae694c06", nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

func (*ReplicationNetworkMappingsClient) NewListPager added in v0.4.0

NewListPager - Lists all ASR network mappings in the vault. Generated from API version 2022-10-01 options - ReplicationNetworkMappingsClientListOptions contains the optional parameters for the ReplicationNetworkMappingsClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationNetworkMappings_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationNetworkMappingsClient("srce2avaultbvtaC27", "srcBvte2a14C27", "9112a37f-0f3e-46ec-9c00-060c6edca071", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager(nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type ReplicationNetworkMappingsClientBeginCreateOptions added in v0.2.0

type ReplicationNetworkMappingsClientBeginCreateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationNetworkMappingsClientBeginCreateOptions contains the optional parameters for the ReplicationNetworkMappingsClient.BeginCreate method.

type ReplicationNetworkMappingsClientBeginDeleteOptions added in v0.2.0

type ReplicationNetworkMappingsClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationNetworkMappingsClientBeginDeleteOptions contains the optional parameters for the ReplicationNetworkMappingsClient.BeginDelete method.

type ReplicationNetworkMappingsClientBeginUpdateOptions added in v0.2.0

type ReplicationNetworkMappingsClientBeginUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationNetworkMappingsClientBeginUpdateOptions contains the optional parameters for the ReplicationNetworkMappingsClient.BeginUpdate method.

type ReplicationNetworkMappingsClientCreateResponse added in v0.2.0

type ReplicationNetworkMappingsClientCreateResponse struct {
	NetworkMapping
}

ReplicationNetworkMappingsClientCreateResponse contains the response from method ReplicationNetworkMappingsClient.Create.

type ReplicationNetworkMappingsClientDeleteResponse added in v0.2.0

type ReplicationNetworkMappingsClientDeleteResponse struct {
}

ReplicationNetworkMappingsClientDeleteResponse contains the response from method ReplicationNetworkMappingsClient.Delete.

type ReplicationNetworkMappingsClientGetOptions added in v0.2.0

type ReplicationNetworkMappingsClientGetOptions struct {
}

ReplicationNetworkMappingsClientGetOptions contains the optional parameters for the ReplicationNetworkMappingsClient.Get method.

type ReplicationNetworkMappingsClientGetResponse added in v0.2.0

type ReplicationNetworkMappingsClientGetResponse struct {
	NetworkMapping
}

ReplicationNetworkMappingsClientGetResponse contains the response from method ReplicationNetworkMappingsClient.Get.

type ReplicationNetworkMappingsClientListByReplicationNetworksOptions added in v0.2.0

type ReplicationNetworkMappingsClientListByReplicationNetworksOptions struct {
}

ReplicationNetworkMappingsClientListByReplicationNetworksOptions contains the optional parameters for the ReplicationNetworkMappingsClient.ListByReplicationNetworks method.

type ReplicationNetworkMappingsClientListByReplicationNetworksResponse added in v0.2.0

type ReplicationNetworkMappingsClientListByReplicationNetworksResponse struct {
	NetworkMappingCollection
}

ReplicationNetworkMappingsClientListByReplicationNetworksResponse contains the response from method ReplicationNetworkMappingsClient.ListByReplicationNetworks.

type ReplicationNetworkMappingsClientListOptions added in v0.2.0

type ReplicationNetworkMappingsClientListOptions struct {
}

ReplicationNetworkMappingsClientListOptions contains the optional parameters for the ReplicationNetworkMappingsClient.List method.

type ReplicationNetworkMappingsClientListResponse added in v0.2.0

type ReplicationNetworkMappingsClientListResponse struct {
	NetworkMappingCollection
}

ReplicationNetworkMappingsClientListResponse contains the response from method ReplicationNetworkMappingsClient.List.

type ReplicationNetworkMappingsClientUpdateResponse added in v0.2.0

type ReplicationNetworkMappingsClientUpdateResponse struct {
	NetworkMapping
}

ReplicationNetworkMappingsClientUpdateResponse contains the response from method ReplicationNetworkMappingsClient.Update.

type ReplicationNetworksClient

type ReplicationNetworksClient struct {
	// contains filtered or unexported fields
}

ReplicationNetworksClient contains the methods for the ReplicationNetworks group. Don't use this type directly, use NewReplicationNetworksClient() instead.

func NewReplicationNetworksClient

func NewReplicationNetworksClient(resourceName string, resourceGroupName string, subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicationNetworksClient, error)

NewReplicationNetworksClient creates a new instance of ReplicationNetworksClient with the specified values. resourceName - The name of the recovery services vault. resourceGroupName - The name of the resource group where the recovery services vault is present. subscriptionID - The subscription Id. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*ReplicationNetworksClient) Get

Get - Gets the details of a network. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Server Id. networkName - Primary network name. options - ReplicationNetworksClientGetOptions contains the optional parameters for the ReplicationNetworksClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationNetworks_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationNetworksClient("srce2avaultbvtaC27", "srcBvte2a14C27", "9112a37f-0f3e-46ec-9c00-060c6edca071", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx, "b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac", "93ce99d7-1219-4914-aa61-73fe5023988e", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationNetworksClient) NewListByReplicationFabricsPager added in v0.4.0

NewListByReplicationFabricsPager - Lists the networks available for a fabric. Generated from API version 2022-10-01 fabricName - Fabric name. options - ReplicationNetworksClientListByReplicationFabricsOptions contains the optional parameters for the ReplicationNetworksClient.ListByReplicationFabrics method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationNetworks_ListByReplicationFabrics.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationNetworksClient("srce2avaultbvtaC27", "srcBvte2a14C27", "9112a37f-0f3e-46ec-9c00-060c6edca071", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListByReplicationFabricsPager("b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac", nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

func (*ReplicationNetworksClient) NewListPager added in v0.4.0

NewListPager - Lists the networks available in a vault. Generated from API version 2022-10-01 options - ReplicationNetworksClientListOptions contains the optional parameters for the ReplicationNetworksClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationNetworks_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationNetworksClient("srce2avaultbvtaC27", "srcBvte2a14C27", "9112a37f-0f3e-46ec-9c00-060c6edca071", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager(nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type ReplicationNetworksClientGetOptions added in v0.2.0

type ReplicationNetworksClientGetOptions struct {
}

ReplicationNetworksClientGetOptions contains the optional parameters for the ReplicationNetworksClient.Get method.

type ReplicationNetworksClientGetResponse added in v0.2.0

type ReplicationNetworksClientGetResponse struct {
	Network
}

ReplicationNetworksClientGetResponse contains the response from method ReplicationNetworksClient.Get.

type ReplicationNetworksClientListByReplicationFabricsOptions added in v0.2.0

type ReplicationNetworksClientListByReplicationFabricsOptions struct {
}

ReplicationNetworksClientListByReplicationFabricsOptions contains the optional parameters for the ReplicationNetworksClient.ListByReplicationFabrics method.

type ReplicationNetworksClientListByReplicationFabricsResponse added in v0.2.0

type ReplicationNetworksClientListByReplicationFabricsResponse struct {
	NetworkCollection
}

ReplicationNetworksClientListByReplicationFabricsResponse contains the response from method ReplicationNetworksClient.ListByReplicationFabrics.

type ReplicationNetworksClientListOptions added in v0.2.0

type ReplicationNetworksClientListOptions struct {
}

ReplicationNetworksClientListOptions contains the optional parameters for the ReplicationNetworksClient.List method.

type ReplicationNetworksClientListResponse added in v0.2.0

type ReplicationNetworksClientListResponse struct {
	NetworkCollection
}

ReplicationNetworksClientListResponse contains the response from method ReplicationNetworksClient.List.

type ReplicationPoliciesClient

type ReplicationPoliciesClient struct {
	// contains filtered or unexported fields
}

ReplicationPoliciesClient contains the methods for the ReplicationPolicies group. Don't use this type directly, use NewReplicationPoliciesClient() instead.

func NewReplicationPoliciesClient

func NewReplicationPoliciesClient(resourceName string, resourceGroupName string, subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicationPoliciesClient, error)

NewReplicationPoliciesClient creates a new instance of ReplicationPoliciesClient with the specified values. resourceName - The name of the recovery services vault. resourceGroupName - The name of the resource group where the recovery services vault is present. subscriptionID - The subscription Id. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*ReplicationPoliciesClient) BeginCreate

BeginCreate - The operation to create a replication policy. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 policyName - Replication policy name. input - Create policy input. options - ReplicationPoliciesClientBeginCreateOptions contains the optional parameters for the ReplicationPoliciesClient.BeginCreate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationPolicies_Create.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationPoliciesClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginCreate(ctx, "protectionprofile1", armrecoveryservicessiterecovery.CreatePolicyInput{
		Properties: &armrecoveryservicessiterecovery.CreatePolicyInputProperties{
			ProviderSpecificInput: &armrecoveryservicessiterecovery.HyperVReplicaAzurePolicyInput{
				InstanceType: to.Ptr("HyperVReplicaAzure"),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationPoliciesClient) BeginDelete

BeginDelete - The operation to delete a replication policy. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 policyName - Replication policy name. options - ReplicationPoliciesClientBeginDeleteOptions contains the optional parameters for the ReplicationPoliciesClient.BeginDelete method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationPolicies_Delete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationPoliciesClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginDelete(ctx, "protectionprofile1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*ReplicationPoliciesClient) BeginUpdate

BeginUpdate - The operation to update a replication policy. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 policyName - Policy Id. input - Update Policy Input. options - ReplicationPoliciesClientBeginUpdateOptions contains the optional parameters for the ReplicationPoliciesClient.BeginUpdate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationPolicies_Update.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationPoliciesClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginUpdate(ctx, "protectionprofile1", armrecoveryservicessiterecovery.UpdatePolicyInput{
		Properties: &armrecoveryservicessiterecovery.UpdatePolicyInputProperties{
			ReplicationProviderSettings: &armrecoveryservicessiterecovery.HyperVReplicaAzurePolicyInput{
				InstanceType: to.Ptr("HyperVReplicaAzure"),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationPoliciesClient) Get

Get - Gets the details of a replication policy. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 policyName - Replication policy name. options - ReplicationPoliciesClientGetOptions contains the optional parameters for the ReplicationPoliciesClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationPolicies_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationPoliciesClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx, "protectionprofile1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationPoliciesClient) NewListPager added in v0.4.0

NewListPager - Lists the replication policies for a vault. Generated from API version 2022-10-01 options - ReplicationPoliciesClientListOptions contains the optional parameters for the ReplicationPoliciesClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationPolicies_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationPoliciesClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager(nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type ReplicationPoliciesClientBeginCreateOptions added in v0.2.0

type ReplicationPoliciesClientBeginCreateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationPoliciesClientBeginCreateOptions contains the optional parameters for the ReplicationPoliciesClient.BeginCreate method.

type ReplicationPoliciesClientBeginDeleteOptions added in v0.2.0

type ReplicationPoliciesClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationPoliciesClientBeginDeleteOptions contains the optional parameters for the ReplicationPoliciesClient.BeginDelete method.

type ReplicationPoliciesClientBeginUpdateOptions added in v0.2.0

type ReplicationPoliciesClientBeginUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationPoliciesClientBeginUpdateOptions contains the optional parameters for the ReplicationPoliciesClient.BeginUpdate method.

type ReplicationPoliciesClientCreateResponse added in v0.2.0

type ReplicationPoliciesClientCreateResponse struct {
	Policy
}

ReplicationPoliciesClientCreateResponse contains the response from method ReplicationPoliciesClient.Create.

type ReplicationPoliciesClientDeleteResponse added in v0.2.0

type ReplicationPoliciesClientDeleteResponse struct {
}

ReplicationPoliciesClientDeleteResponse contains the response from method ReplicationPoliciesClient.Delete.

type ReplicationPoliciesClientGetOptions added in v0.2.0

type ReplicationPoliciesClientGetOptions struct {
}

ReplicationPoliciesClientGetOptions contains the optional parameters for the ReplicationPoliciesClient.Get method.

type ReplicationPoliciesClientGetResponse added in v0.2.0

type ReplicationPoliciesClientGetResponse struct {
	Policy
}

ReplicationPoliciesClientGetResponse contains the response from method ReplicationPoliciesClient.Get.

type ReplicationPoliciesClientListOptions added in v0.2.0

type ReplicationPoliciesClientListOptions struct {
}

ReplicationPoliciesClientListOptions contains the optional parameters for the ReplicationPoliciesClient.List method.

type ReplicationPoliciesClientListResponse added in v0.2.0

type ReplicationPoliciesClientListResponse struct {
	PolicyCollection
}

ReplicationPoliciesClientListResponse contains the response from method ReplicationPoliciesClient.List.

type ReplicationPoliciesClientUpdateResponse added in v0.2.0

type ReplicationPoliciesClientUpdateResponse struct {
	Policy
}

ReplicationPoliciesClientUpdateResponse contains the response from method ReplicationPoliciesClient.Update.

type ReplicationProtectableItemsClient

type ReplicationProtectableItemsClient struct {
	// contains filtered or unexported fields
}

ReplicationProtectableItemsClient contains the methods for the ReplicationProtectableItems group. Don't use this type directly, use NewReplicationProtectableItemsClient() instead.

func NewReplicationProtectableItemsClient

func NewReplicationProtectableItemsClient(resourceName string, resourceGroupName string, subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicationProtectableItemsClient, error)

NewReplicationProtectableItemsClient creates a new instance of ReplicationProtectableItemsClient with the specified values. resourceName - The name of the recovery services vault. resourceGroupName - The name of the resource group where the recovery services vault is present. subscriptionID - The subscription Id. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*ReplicationProtectableItemsClient) Get

func (client *ReplicationProtectableItemsClient) Get(ctx context.Context, fabricName string, protectionContainerName string, protectableItemName string, options *ReplicationProtectableItemsClientGetOptions) (ReplicationProtectableItemsClientGetResponse, error)

Get - The operation to get the details of a protectable item. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. protectionContainerName - Protection container name. protectableItemName - Protectable item name. options - ReplicationProtectableItemsClientGetOptions contains the optional parameters for the ReplicationProtectableItemsClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectableItems_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectableItemsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx, "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "c0c14913-3d7a-48ea-9531-cc99e0e686e6", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationProtectableItemsClient) NewListByReplicationProtectionContainersPager added in v0.4.0

NewListByReplicationProtectionContainersPager - Lists the protectable items in a protection container. Generated from API version 2022-10-01 fabricName - Fabric name. protectionContainerName - Protection container name. options - ReplicationProtectableItemsClientListByReplicationProtectionContainersOptions contains the optional parameters for the ReplicationProtectableItemsClient.ListByReplicationProtectionContainers method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectableItems_ListByReplicationProtectionContainers.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectableItemsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListByReplicationProtectionContainersPager("cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", &armrecoveryservicessiterecovery.ReplicationProtectableItemsClientListByReplicationProtectionContainersOptions{Filter: nil,
		Take:      nil,
		SkipToken: nil,
	})
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type ReplicationProtectableItemsClientGetOptions added in v0.2.0

type ReplicationProtectableItemsClientGetOptions struct {
}

ReplicationProtectableItemsClientGetOptions contains the optional parameters for the ReplicationProtectableItemsClient.Get method.

type ReplicationProtectableItemsClientGetResponse added in v0.2.0

type ReplicationProtectableItemsClientGetResponse struct {
	ProtectableItem
}

ReplicationProtectableItemsClientGetResponse contains the response from method ReplicationProtectableItemsClient.Get.

type ReplicationProtectableItemsClientListByReplicationProtectionContainersOptions added in v0.2.0

type ReplicationProtectableItemsClientListByReplicationProtectionContainersOptions struct {
	// OData filter options.
	Filter *string
	// skipToken OData query parameter.
	SkipToken *string
	// take OData query parameter.
	Take *string
}

ReplicationProtectableItemsClientListByReplicationProtectionContainersOptions contains the optional parameters for the ReplicationProtectableItemsClient.ListByReplicationProtectionContainers method.

type ReplicationProtectableItemsClientListByReplicationProtectionContainersResponse added in v0.2.0

type ReplicationProtectableItemsClientListByReplicationProtectionContainersResponse struct {
	ProtectableItemCollection
}

ReplicationProtectableItemsClientListByReplicationProtectionContainersResponse contains the response from method ReplicationProtectableItemsClient.ListByReplicationProtectionContainers.

type ReplicationProtectedItem

type ReplicationProtectedItem struct {
	// Resource Location
	Location *string `json:"location,omitempty"`

	// The custom data.
	Properties *ReplicationProtectedItemProperties `json:"properties,omitempty"`

	// READ-ONLY; Resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Resource Name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Resource Type
	Type *string `json:"type,omitempty" azure:"ro"`
}

ReplicationProtectedItem - Replication protected item.

func (ReplicationProtectedItem) MarshalJSON added in v1.1.0

func (r ReplicationProtectedItem) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ReplicationProtectedItem.

func (*ReplicationProtectedItem) UnmarshalJSON added in v1.1.0

func (r *ReplicationProtectedItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationProtectedItem.

type ReplicationProtectedItemCollection

type ReplicationProtectedItemCollection struct {
	// The value of next link.
	NextLink *string `json:"nextLink,omitempty"`

	// The Replication protected item details.
	Value []*ReplicationProtectedItem `json:"value,omitempty"`
}

ReplicationProtectedItemCollection - Replication protected item collection.

func (ReplicationProtectedItemCollection) MarshalJSON

func (r ReplicationProtectedItemCollection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ReplicationProtectedItemCollection.

func (*ReplicationProtectedItemCollection) UnmarshalJSON added in v1.1.0

func (r *ReplicationProtectedItemCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationProtectedItemCollection.

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 PossibleReplicationProtectedItemOperationValues

func PossibleReplicationProtectedItemOperationValues() []ReplicationProtectedItemOperation

PossibleReplicationProtectedItemOperationValues returns the possible values for the ReplicationProtectedItemOperation const type.

type ReplicationProtectedItemProperties

type ReplicationProtectedItemProperties struct {
	// The Current active location of the PE.
	ActiveLocation *string `json:"activeLocation,omitempty"`

	// The allowed operations on the Replication protected item.
	AllowedOperations []*string `json:"allowedOperations,omitempty"`

	// The current scenario.
	CurrentScenario *CurrentScenarioDetails `json:"currentScenario,omitempty"`

	// The correlation Id for events associated with this protected item.
	EventCorrelationID *string `json:"eventCorrelationId,omitempty"`

	// The consolidated failover health for the VM.
	FailoverHealth *string `json:"failoverHealth,omitempty"`

	// The recovery point ARM Id to which the Vm was failed over.
	FailoverRecoveryPointID *string `json:"failoverRecoveryPointId,omitempty"`

	// The name.
	FriendlyName *string `json:"friendlyName,omitempty"`

	// List of health errors.
	HealthErrors []*HealthError `json:"healthErrors,omitempty"`

	// The Last successful failover time.
	LastSuccessfulFailoverTime *time.Time `json:"lastSuccessfulFailoverTime,omitempty"`

	// The Last successful test failover time.
	LastSuccessfulTestFailoverTime *time.Time `json:"lastSuccessfulTestFailoverTime,omitempty"`

	// The name of Policy governing this PE.
	PolicyFriendlyName *string `json:"policyFriendlyName,omitempty"`

	// The ID of Policy governing this PE.
	PolicyID *string `json:"policyId,omitempty"`

	// The friendly name of the primary fabric.
	PrimaryFabricFriendlyName *string `json:"primaryFabricFriendlyName,omitempty"`

	// The fabric provider of the primary fabric.
	PrimaryFabricProvider *string `json:"primaryFabricProvider,omitempty"`

	// The name of primary protection container friendly name.
	PrimaryProtectionContainerFriendlyName *string `json:"primaryProtectionContainerFriendlyName,omitempty"`

	// The protected item ARM Id.
	ProtectableItemID *string `json:"protectableItemId,omitempty"`

	// The type of protected item type.
	ProtectedItemType *string `json:"protectedItemType,omitempty"`

	// The protection status.
	ProtectionState *string `json:"protectionState,omitempty"`

	// The protection state description.
	ProtectionStateDescription *string `json:"protectionStateDescription,omitempty"`

	// The Replication provider custom settings.
	ProviderSpecificDetails ReplicationProviderSpecificSettingsClassification `json:"providerSpecificDetails,omitempty"`

	// The recovery container Id.
	RecoveryContainerID *string `json:"recoveryContainerId,omitempty"`

	// The friendly name of recovery fabric.
	RecoveryFabricFriendlyName *string `json:"recoveryFabricFriendlyName,omitempty"`

	// The Arm Id of recovery fabric.
	RecoveryFabricID *string `json:"recoveryFabricId,omitempty"`

	// The name of recovery container friendly name.
	RecoveryProtectionContainerFriendlyName *string `json:"recoveryProtectionContainerFriendlyName,omitempty"`

	// The recovery provider ARM Id.
	RecoveryServicesProviderID *string `json:"recoveryServicesProviderId,omitempty"`

	// The consolidated protection health for the VM taking any issues with SRS as well as all the replication units associated
	// with the VM's replication group into account. This is a string representation
	// of the ProtectionHealth enumeration.
	ReplicationHealth *string `json:"replicationHealth,omitempty"`

	// The switch provider state.
	SwitchProviderState *string `json:"switchProviderState,omitempty"`

	// The switch provider state description.
	SwitchProviderStateDescription *string `json:"switchProviderStateDescription,omitempty"`

	// The Test failover state.
	TestFailoverState *string `json:"testFailoverState,omitempty"`

	// The Test failover state description.
	TestFailoverStateDescription *string `json:"testFailoverStateDescription,omitempty"`
}

ReplicationProtectedItemProperties - Replication protected item custom data details.

func (ReplicationProtectedItemProperties) MarshalJSON

func (r ReplicationProtectedItemProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ReplicationProtectedItemProperties.

func (*ReplicationProtectedItemProperties) UnmarshalJSON

func (r *ReplicationProtectedItemProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationProtectedItemProperties.

type ReplicationProtectedItemsClient

type ReplicationProtectedItemsClient struct {
	// contains filtered or unexported fields
}

ReplicationProtectedItemsClient contains the methods for the ReplicationProtectedItems group. Don't use this type directly, use NewReplicationProtectedItemsClient() instead.

func NewReplicationProtectedItemsClient

func NewReplicationProtectedItemsClient(resourceName string, resourceGroupName string, subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicationProtectedItemsClient, error)

NewReplicationProtectedItemsClient creates a new instance of ReplicationProtectedItemsClient with the specified values. resourceName - The name of the recovery services vault. resourceGroupName - The name of the resource group where the recovery services vault is present. subscriptionID - The subscription Id. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*ReplicationProtectedItemsClient) BeginAddDisks

func (client *ReplicationProtectedItemsClient) BeginAddDisks(ctx context.Context, fabricName string, protectionContainerName string, replicatedProtectedItemName string, addDisksInput AddDisksInput, options *ReplicationProtectedItemsClientBeginAddDisksOptions) (*runtime.Poller[ReplicationProtectedItemsClientAddDisksResponse], error)

BeginAddDisks - Operation to add disks(s) to the replication protected item. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Unique fabric name. protectionContainerName - Protection container name. replicatedProtectedItemName - Replication protected item name. addDisksInput - Add disks input. options - ReplicationProtectedItemsClientBeginAddDisksOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginAddDisks method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectedItems_AddDisks.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectedItemsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginAddDisks(ctx, "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", armrecoveryservicessiterecovery.AddDisksInput{
		Properties: &armrecoveryservicessiterecovery.AddDisksInputProperties{
			ProviderSpecificDetails: &armrecoveryservicessiterecovery.A2AAddDisksInput{
				InstanceType: to.Ptr("A2A"),
				VMDisks: []*armrecoveryservicessiterecovery.A2AVMDiskInputDetails{
					{
						DiskURI:                             to.Ptr("https://vmstorage.blob.core.windows.net/vhds/datadisk1.vhd"),
						PrimaryStagingAzureStorageAccountID: to.Ptr("/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/primaryResource/providers/Microsoft.Storage/storageAccounts/vmcachestorage"),
						RecoveryAzureStorageAccountID:       to.Ptr("/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/recoveryResource/providers/Microsoft.Storage/storageAccounts/recoverystorage"),
					}},
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationProtectedItemsClient) BeginApplyRecoveryPoint

func (client *ReplicationProtectedItemsClient) BeginApplyRecoveryPoint(ctx context.Context, fabricName string, protectionContainerName string, replicatedProtectedItemName string, applyRecoveryPointInput ApplyRecoveryPointInput, options *ReplicationProtectedItemsClientBeginApplyRecoveryPointOptions) (*runtime.Poller[ReplicationProtectedItemsClientApplyRecoveryPointResponse], error)

BeginApplyRecoveryPoint - The operation to change the recovery point of a failed over replication protected item. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - The ARM fabric name. protectionContainerName - The protection container name. replicatedProtectedItemName - The replicated protected item name. applyRecoveryPointInput - The ApplyRecoveryPointInput. options - ReplicationProtectedItemsClientBeginApplyRecoveryPointOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginApplyRecoveryPoint method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectedItems_ApplyRecoveryPoint.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectedItemsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginApplyRecoveryPoint(ctx, "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", armrecoveryservicessiterecovery.ApplyRecoveryPointInput{
		Properties: &armrecoveryservicessiterecovery.ApplyRecoveryPointInputProperties{
			ProviderSpecificDetails: &armrecoveryservicessiterecovery.HyperVReplicaAzureApplyRecoveryPointInput{
				InstanceType: to.Ptr("HyperVReplicaAzure"),
			},
			RecoveryPointID: to.Ptr("/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud1/replicationProtectionContainers/cloud_6d224fc6-f326-5d35-96de-fbf51efb3179/replicationProtectedItems/f8491e4f-817a-40dd-a90c-af773978c75b/recoveryPoints/e4d05fe9-5dfd-47be-b50b-aad306b2802d"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationProtectedItemsClient) BeginCreate

func (client *ReplicationProtectedItemsClient) BeginCreate(ctx context.Context, fabricName string, protectionContainerName string, replicatedProtectedItemName string, input EnableProtectionInput, options *ReplicationProtectedItemsClientBeginCreateOptions) (*runtime.Poller[ReplicationProtectedItemsClientCreateResponse], error)

BeginCreate - The operation to create an ASR replication protected item (Enable replication). If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Name of the fabric. protectionContainerName - Protection container name. replicatedProtectedItemName - A name for the replication protected item. input - Enable Protection Input. options - ReplicationProtectedItemsClientBeginCreateOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginCreate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectedItems_Create.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectedItemsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginCreate(ctx, "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", armrecoveryservicessiterecovery.EnableProtectionInput{
		Properties: &armrecoveryservicessiterecovery.EnableProtectionInputProperties{
			PolicyID:          to.Ptr("/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationPolicies/protectionprofile1"),
			ProtectableItemID: to.Ptr("/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud1/replicationProtectionContainers/cloud_6d224fc6-f326-5d35-96de-fbf51efb3179/replicationProtectableItems/f8491e4f-817a-40dd-a90c-af773978c75b"),
			ProviderSpecificDetails: &armrecoveryservicessiterecovery.HyperVReplicaAzureEnableProtectionInput{
				InstanceType: to.Ptr("HyperVReplicaAzure"),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationProtectedItemsClient) BeginDelete

func (client *ReplicationProtectedItemsClient) BeginDelete(ctx context.Context, fabricName string, protectionContainerName string, replicatedProtectedItemName string, disableProtectionInput DisableProtectionInput, options *ReplicationProtectedItemsClientBeginDeleteOptions) (*runtime.Poller[ReplicationProtectedItemsClientDeleteResponse], error)

BeginDelete - The operation to disable replication on a replication protected item. This will also remove the item. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. protectionContainerName - Protection container name. replicatedProtectedItemName - Replication protected item name. disableProtectionInput - Disable protection input. options - ReplicationProtectedItemsClientBeginDeleteOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginDelete method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectedItems_Delete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectedItemsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginDelete(ctx, "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "c0c14913-3d7a-48ea-9531-cc99e0e686e6", armrecoveryservicessiterecovery.DisableProtectionInput{
		Properties: &armrecoveryservicessiterecovery.DisableProtectionInputProperties{
			ReplicationProviderInput: &armrecoveryservicessiterecovery.DisableProtectionProviderSpecificInput{
				InstanceType: to.Ptr("DisableProtectionProviderSpecificInput"),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*ReplicationProtectedItemsClient) BeginFailoverCancel

func (client *ReplicationProtectedItemsClient) BeginFailoverCancel(ctx context.Context, fabricName string, protectionContainerName string, replicatedProtectedItemName string, options *ReplicationProtectedItemsClientBeginFailoverCancelOptions) (*runtime.Poller[ReplicationProtectedItemsClientFailoverCancelResponse], error)

BeginFailoverCancel - Operation to cancel the failover of the replication protected item. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Unique fabric name. protectionContainerName - Protection container name. replicatedProtectedItemName - Replication protected item name. options - ReplicationProtectedItemsClientBeginFailoverCancelOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginFailoverCancel method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectedItems_FailoverCancel.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectedItemsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginFailoverCancel(ctx, "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationProtectedItemsClient) BeginFailoverCommit

func (client *ReplicationProtectedItemsClient) BeginFailoverCommit(ctx context.Context, fabricName string, protectionContainerName string, replicatedProtectedItemName string, options *ReplicationProtectedItemsClientBeginFailoverCommitOptions) (*runtime.Poller[ReplicationProtectedItemsClientFailoverCommitResponse], error)

BeginFailoverCommit - Operation to commit the failover of the replication protected item. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Unique fabric name. protectionContainerName - Protection container name. replicatedProtectedItemName - Replication protected item name. options - ReplicationProtectedItemsClientBeginFailoverCommitOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginFailoverCommit method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectedItems_FailoverCommit.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectedItemsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginFailoverCommit(ctx, "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationProtectedItemsClient) BeginPlannedFailover

func (client *ReplicationProtectedItemsClient) BeginPlannedFailover(ctx context.Context, fabricName string, protectionContainerName string, replicatedProtectedItemName string, failoverInput PlannedFailoverInput, options *ReplicationProtectedItemsClientBeginPlannedFailoverOptions) (*runtime.Poller[ReplicationProtectedItemsClientPlannedFailoverResponse], error)

BeginPlannedFailover - Operation to initiate a planned failover of the replication protected item. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Unique fabric name. protectionContainerName - Protection container name. replicatedProtectedItemName - Replication protected item name. failoverInput - Planned failover input. options - ReplicationProtectedItemsClientBeginPlannedFailoverOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginPlannedFailover method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectedItems_PlannedFailover.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectedItemsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginPlannedFailover(ctx, "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", armrecoveryservicessiterecovery.PlannedFailoverInput{
		Properties: &armrecoveryservicessiterecovery.PlannedFailoverInputProperties{
			FailoverDirection: to.Ptr("PrimaryToRecovery"),
			ProviderSpecificDetails: &armrecoveryservicessiterecovery.HyperVReplicaAzurePlannedFailoverProviderInput{
				InstanceType: to.Ptr("HyperVReplicaAzure"),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationProtectedItemsClient) BeginPurge

func (client *ReplicationProtectedItemsClient) BeginPurge(ctx context.Context, fabricName string, protectionContainerName string, replicatedProtectedItemName string, options *ReplicationProtectedItemsClientBeginPurgeOptions) (*runtime.Poller[ReplicationProtectedItemsClientPurgeResponse], error)

BeginPurge - The operation to delete or purge a replication protected item. This operation will force delete the replication protected item. Use the remove operation on replication protected item to perform a clean disable replication for the item. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. protectionContainerName - Protection container name. replicatedProtectedItemName - Replication protected item name. options - ReplicationProtectedItemsClientBeginPurgeOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginPurge method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectedItems_Purge.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectedItemsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginPurge(ctx, "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "c0c14913-3d7a-48ea-9531-cc99e0e686e6", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*ReplicationProtectedItemsClient) BeginRemoveDisks

func (client *ReplicationProtectedItemsClient) BeginRemoveDisks(ctx context.Context, fabricName string, protectionContainerName string, replicatedProtectedItemName string, removeDisksInput RemoveDisksInput, options *ReplicationProtectedItemsClientBeginRemoveDisksOptions) (*runtime.Poller[ReplicationProtectedItemsClientRemoveDisksResponse], error)

BeginRemoveDisks - Operation to remove disk(s) from the replication protected item. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Unique fabric name. protectionContainerName - Protection container name. replicatedProtectedItemName - Replication protected item name. removeDisksInput - Remove disks input. options - ReplicationProtectedItemsClientBeginRemoveDisksOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginRemoveDisks method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectedItems_RemoveDisks.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectedItemsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginRemoveDisks(ctx, "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", armrecoveryservicessiterecovery.RemoveDisksInput{
		Properties: &armrecoveryservicessiterecovery.RemoveDisksInputProperties{
			ProviderSpecificDetails: &armrecoveryservicessiterecovery.A2ARemoveDisksInput{
				InstanceType: to.Ptr("A2A"),
				VMDisksUris: []*string{
					to.Ptr("https://vmstorage.blob.core.windows.net/vhds/datadisk1.vhd")},
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationProtectedItemsClient) BeginRepairReplication

func (client *ReplicationProtectedItemsClient) BeginRepairReplication(ctx context.Context, fabricName string, protectionContainerName string, replicatedProtectedItemName string, options *ReplicationProtectedItemsClientBeginRepairReplicationOptions) (*runtime.Poller[ReplicationProtectedItemsClientRepairReplicationResponse], error)

BeginRepairReplication - The operation to start resynchronize/repair replication for a replication protected item requiring resynchronization. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - The name of the fabric. protectionContainerName - The name of the container. replicatedProtectedItemName - The name of the replication protected item. options - ReplicationProtectedItemsClientBeginRepairReplicationOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginRepairReplication method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectedItems_RepairReplication.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectedItemsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginRepairReplication(ctx, "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationProtectedItemsClient) BeginReprotect

func (client *ReplicationProtectedItemsClient) BeginReprotect(ctx context.Context, fabricName string, protectionContainerName string, replicatedProtectedItemName string, reprotectInput ReverseReplicationInput, options *ReplicationProtectedItemsClientBeginReprotectOptions) (*runtime.Poller[ReplicationProtectedItemsClientReprotectResponse], error)

BeginReprotect - Operation to reprotect or reverse replicate a failed over replication protected item. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Unique fabric name. protectionContainerName - Protection container name. replicatedProtectedItemName - Replication protected item name. reprotectInput - Reverse replication input. options - ReplicationProtectedItemsClientBeginReprotectOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginReprotect method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectedItems_Reprotect.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectedItemsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginReprotect(ctx, "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", armrecoveryservicessiterecovery.ReverseReplicationInput{
		Properties: &armrecoveryservicessiterecovery.ReverseReplicationInputProperties{
			FailoverDirection: to.Ptr("PrimaryToRecovery"),
			ProviderSpecificDetails: &armrecoveryservicessiterecovery.HyperVReplicaAzureReprotectInput{
				InstanceType: to.Ptr("HyperVReplicaAzure"),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationProtectedItemsClient) BeginResolveHealthErrors

func (client *ReplicationProtectedItemsClient) BeginResolveHealthErrors(ctx context.Context, fabricName string, protectionContainerName string, replicatedProtectedItemName string, resolveHealthInput ResolveHealthInput, options *ReplicationProtectedItemsClientBeginResolveHealthErrorsOptions) (*runtime.Poller[ReplicationProtectedItemsClientResolveHealthErrorsResponse], error)

BeginResolveHealthErrors - Operation to resolve health issues of the replication protected item. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Unique fabric name. protectionContainerName - Protection container name. replicatedProtectedItemName - Replication protected item name. resolveHealthInput - Health issue input object. options - ReplicationProtectedItemsClientBeginResolveHealthErrorsOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginResolveHealthErrors method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectedItems_ResolveHealthErrors.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectedItemsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginResolveHealthErrors(ctx, "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", armrecoveryservicessiterecovery.ResolveHealthInput{
		Properties: &armrecoveryservicessiterecovery.ResolveHealthInputProperties{
			HealthErrors: []*armrecoveryservicessiterecovery.ResolveHealthError{
				{
					HealthErrorID: to.Ptr("3:8020"),
				}},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationProtectedItemsClient) BeginSwitchProvider added in v0.2.0

func (client *ReplicationProtectedItemsClient) BeginSwitchProvider(ctx context.Context, fabricName string, protectionContainerName string, replicatedProtectedItemName string, switchProviderInput SwitchProviderInput, options *ReplicationProtectedItemsClientBeginSwitchProviderOptions) (*runtime.Poller[ReplicationProtectedItemsClientSwitchProviderResponse], error)

BeginSwitchProvider - Operation to initiate a switch provider of the replication protected item. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Unique fabric name. protectionContainerName - Protection container name. replicatedProtectedItemName - Replication protected item name. switchProviderInput - Switch provider input. options - ReplicationProtectedItemsClientBeginSwitchProviderOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginSwitchProvider method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectedItems_SwitchProvider.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectedItemsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginSwitchProvider(ctx, "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", armrecoveryservicessiterecovery.SwitchProviderInput{
		Properties: &armrecoveryservicessiterecovery.SwitchProviderInputProperties{
			ProviderSpecificDetails: &armrecoveryservicessiterecovery.InMageAzureV2SwitchProviderInput{
				InstanceType:      to.Ptr("InMageAzureV2"),
				TargetApplianceID: to.Ptr("5efaa202-e958-435e-8171-706bf735fcc4"),
				TargetFabricID:    to.Ptr("/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud2"),
				TargetVaultID:     to.Ptr("/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault2"),
			},
			TargetInstanceType: to.Ptr("InMageRcm"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationProtectedItemsClient) BeginTestFailover

func (client *ReplicationProtectedItemsClient) BeginTestFailover(ctx context.Context, fabricName string, protectionContainerName string, replicatedProtectedItemName string, testfailoverInput TestFailoverInput, options *ReplicationProtectedItemsClientBeginTestFailoverOptions) (*runtime.Poller[ReplicationProtectedItemsClientTestFailoverResponse], error)

BeginTestFailover - Operation to perform a test failover of the replication protected item. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Unique fabric name. protectionContainerName - Protection container name. replicatedProtectedItemName - Replication protected item name. testfailoverInput - Test failover input. options - ReplicationProtectedItemsClientBeginTestFailoverOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginTestFailover method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectedItems_TestFailover.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectedItemsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginTestFailover(ctx, "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", armrecoveryservicessiterecovery.TestFailoverInput{
		Properties: &armrecoveryservicessiterecovery.TestFailoverInputProperties{
			FailoverDirection: to.Ptr("PrimaryToRecovery"),
			NetworkID:         to.Ptr("/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryProd1/providers/Microsoft.Network/virtualNetworks/vnetavrai"),
			NetworkType:       to.Ptr("VmNetworkAsInput"),
			ProviderSpecificDetails: &armrecoveryservicessiterecovery.HyperVReplicaAzureTestFailoverInput{
				InstanceType: to.Ptr("HyperVReplicaAzure"),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationProtectedItemsClient) BeginTestFailoverCleanup

func (client *ReplicationProtectedItemsClient) BeginTestFailoverCleanup(ctx context.Context, fabricName string, protectionContainerName string, replicatedProtectedItemName string, cleanupInput TestFailoverCleanupInput, options *ReplicationProtectedItemsClientBeginTestFailoverCleanupOptions) (*runtime.Poller[ReplicationProtectedItemsClientTestFailoverCleanupResponse], error)

BeginTestFailoverCleanup - Operation to clean up the test failover of a replication protected item. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Unique fabric name. protectionContainerName - Protection container name. replicatedProtectedItemName - Replication protected item name. cleanupInput - Test failover cleanup input. options - ReplicationProtectedItemsClientBeginTestFailoverCleanupOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginTestFailoverCleanup method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectedItems_TestFailoverCleanup.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectedItemsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginTestFailoverCleanup(ctx, "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", armrecoveryservicessiterecovery.TestFailoverCleanupInput{
		Properties: &armrecoveryservicessiterecovery.TestFailoverCleanupInputProperties{
			Comments: to.Ptr("Test Failover Cleanup"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationProtectedItemsClient) BeginUnplannedFailover

func (client *ReplicationProtectedItemsClient) BeginUnplannedFailover(ctx context.Context, fabricName string, protectionContainerName string, replicatedProtectedItemName string, failoverInput UnplannedFailoverInput, options *ReplicationProtectedItemsClientBeginUnplannedFailoverOptions) (*runtime.Poller[ReplicationProtectedItemsClientUnplannedFailoverResponse], error)

BeginUnplannedFailover - Operation to initiate a failover of the replication protected item. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Unique fabric name. protectionContainerName - Protection container name. replicatedProtectedItemName - Replication protected item name. failoverInput - Failover input. options - ReplicationProtectedItemsClientBeginUnplannedFailoverOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginUnplannedFailover method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectedItems_UnplannedFailover.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectedItemsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginUnplannedFailover(ctx, "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", armrecoveryservicessiterecovery.UnplannedFailoverInput{
		Properties: &armrecoveryservicessiterecovery.UnplannedFailoverInputProperties{
			FailoverDirection: to.Ptr("PrimaryToRecovery"),
			ProviderSpecificDetails: &armrecoveryservicessiterecovery.HyperVReplicaAzureUnplannedFailoverInput{
				InstanceType: to.Ptr("HyperVReplicaAzure"),
			},
			SourceSiteOperations: to.Ptr("NotRequired"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationProtectedItemsClient) BeginUpdate

func (client *ReplicationProtectedItemsClient) BeginUpdate(ctx context.Context, fabricName string, protectionContainerName string, replicatedProtectedItemName string, updateProtectionInput UpdateReplicationProtectedItemInput, options *ReplicationProtectedItemsClientBeginUpdateOptions) (*runtime.Poller[ReplicationProtectedItemsClientUpdateResponse], error)

BeginUpdate - The operation to update the recovery settings of an ASR replication protected item. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. protectionContainerName - Protection container name. replicatedProtectedItemName - Replication protected item name. updateProtectionInput - Update protection input. options - ReplicationProtectedItemsClientBeginUpdateOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginUpdate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectedItems_Update.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectedItemsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginUpdate(ctx, "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", armrecoveryservicessiterecovery.UpdateReplicationProtectedItemInput{
		Properties: &armrecoveryservicessiterecovery.UpdateReplicationProtectedItemInputProperties{
			LicenseType: to.Ptr(armrecoveryservicessiterecovery.LicenseTypeWindowsServer),
			ProviderSpecificDetails: &armrecoveryservicessiterecovery.HyperVReplicaAzureUpdateReplicationProtectedItemInput{
				InstanceType: to.Ptr("HyperVReplicaAzure"),
			},
			RecoveryAzureVMName:            to.Ptr("vm1"),
			RecoveryAzureVMSize:            to.Ptr("Basic_A0"),
			SelectedRecoveryAzureNetworkID: to.Ptr("/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryProd1/providers/Microsoft.Network/virtualNetworks/vnetavrai"),
			VMNics: []*armrecoveryservicessiterecovery.VMNicInputDetails{
				{
					IPConfigs: []*armrecoveryservicessiterecovery.IPConfigInputDetails{
						{
							IPConfigName:            to.Ptr("ipconfig1"),
							IsPrimary:               to.Ptr(true),
							RecoveryStaticIPAddress: to.Ptr("10.0.2.46"),
							RecoverySubnetName:      to.Ptr("subnet1"),
						}},
					NicID:         to.Ptr("TWljcm9zb2Z0OkY4NDkxRTRGLTgxN0EtNDBERC1BOTBDLUFGNzczOTc4Qzc1Qlw3NjAwMzMxRS03NDk4LTQ0QTQtQjdDNy0xQjY1NkJDREQ1MkQ="),
					SelectionType: to.Ptr("SelectedByUser"),
				}},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationProtectedItemsClient) BeginUpdateAppliance

BeginUpdateAppliance - The operation to update appliance of an ASR replication protected item. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. protectionContainerName - Protection container name. replicatedProtectedItemName - Replication protected item name. applianceUpdateInput - Appliance update protection input. options - ReplicationProtectedItemsClientBeginUpdateApplianceOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginUpdateAppliance method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectedItems_UpdateAppliance.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectedItemsClient("Ayan-0106-SA-Vault", "Ayan-0106-SA-RG", "7c943c1b-5122-4097-90c8-861411bdd574", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginUpdateAppliance(ctx, "Ayan-0106-SA-Vaultreplicationfabric", "Ayan-0106-SA-Vaultreplicationcontainer", "idclab-vcen67_50158124-8857-3e08-0893-2ddf8ebb8c1f", armrecoveryservicessiterecovery.UpdateApplianceForReplicationProtectedItemInput{
		Properties: &armrecoveryservicessiterecovery.UpdateApplianceForReplicationProtectedItemInputProperties{
			ProviderSpecificDetails: &armrecoveryservicessiterecovery.InMageRcmUpdateApplianceForReplicationProtectedItemInput{
				InstanceType:   to.Ptr("InMageRcm"),
				RunAsAccountID: to.Ptr(""),
			},
			TargetApplianceID: to.Ptr(""),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationProtectedItemsClient) BeginUpdateMobilityService

func (client *ReplicationProtectedItemsClient) BeginUpdateMobilityService(ctx context.Context, fabricName string, protectionContainerName string, replicatedProtectedItemName string, updateMobilityServiceRequest UpdateMobilityServiceRequest, options *ReplicationProtectedItemsClientBeginUpdateMobilityServiceOptions) (*runtime.Poller[ReplicationProtectedItemsClientUpdateMobilityServiceResponse], error)

BeginUpdateMobilityService - The operation to update(push update) the installed mobility service software on a replication protected item to the latest available version. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - The name of the fabric containing the protected item. protectionContainerName - The name of the container containing the protected item. replicatedProtectedItemName - The name of the protected item on which the agent is to be updated. updateMobilityServiceRequest - Request to update the mobility service on the protected item. options - ReplicationProtectedItemsClientBeginUpdateMobilityServiceOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginUpdateMobilityService method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectedItems_UpdateMobilityService.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectedItemsClient("WCUSVault", "wcusValidations", "b364ed8d-4279-4bf8-8fd1-56f8fa0ae05c", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginUpdateMobilityService(ctx, "WIN-JKKJ31QI8U2", "cloud_c6780228-83bd-4f3e-a70e-cb46b7da33a0", "79dd20ab-2b40-11e7-9791-0050568f387e", armrecoveryservicessiterecovery.UpdateMobilityServiceRequest{
		Properties: &armrecoveryservicessiterecovery.UpdateMobilityServiceRequestProperties{
			RunAsAccountID: to.Ptr("2"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationProtectedItemsClient) Get

func (client *ReplicationProtectedItemsClient) Get(ctx context.Context, fabricName string, protectionContainerName string, replicatedProtectedItemName string, options *ReplicationProtectedItemsClientGetOptions) (ReplicationProtectedItemsClientGetResponse, error)

Get - Gets the details of an ASR replication protected item. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric unique name. protectionContainerName - Protection container name. replicatedProtectedItemName - Replication protected item name. options - ReplicationProtectedItemsClientGetOptions contains the optional parameters for the ReplicationProtectedItemsClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectedItems_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectedItemsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx, "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "f8491e4f-817a-40dd-a90c-af773978c75b", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationProtectedItemsClient) NewListByReplicationProtectionContainersPager added in v0.4.0

NewListByReplicationProtectionContainersPager - Gets the list of ASR replication protected items in the protection container. Generated from API version 2022-10-01 fabricName - Fabric name. protectionContainerName - Protection container name. options - ReplicationProtectedItemsClientListByReplicationProtectionContainersOptions contains the optional parameters for the ReplicationProtectedItemsClient.ListByReplicationProtectionContainers method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectedItems_ListByReplicationProtectionContainers.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectedItemsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListByReplicationProtectionContainersPager("cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

func (*ReplicationProtectedItemsClient) NewListPager added in v0.4.0

NewListPager - Gets the list of ASR replication protected items in the vault. Generated from API version 2022-10-01 options - ReplicationProtectedItemsClientListOptions contains the optional parameters for the ReplicationProtectedItemsClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectedItems_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectedItemsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager(&armrecoveryservicessiterecovery.ReplicationProtectedItemsClientListOptions{SkipToken: nil,
		Filter: nil,
	})
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type ReplicationProtectedItemsClientAddDisksResponse added in v0.2.0

type ReplicationProtectedItemsClientAddDisksResponse struct {
	ReplicationProtectedItem
}

ReplicationProtectedItemsClientAddDisksResponse contains the response from method ReplicationProtectedItemsClient.AddDisks.

type ReplicationProtectedItemsClientApplyRecoveryPointResponse added in v0.2.0

type ReplicationProtectedItemsClientApplyRecoveryPointResponse struct {
	ReplicationProtectedItem
}

ReplicationProtectedItemsClientApplyRecoveryPointResponse contains the response from method ReplicationProtectedItemsClient.ApplyRecoveryPoint.

type ReplicationProtectedItemsClientBeginAddDisksOptions added in v0.2.0

type ReplicationProtectedItemsClientBeginAddDisksOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationProtectedItemsClientBeginAddDisksOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginAddDisks method.

type ReplicationProtectedItemsClientBeginApplyRecoveryPointOptions added in v0.2.0

type ReplicationProtectedItemsClientBeginApplyRecoveryPointOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationProtectedItemsClientBeginApplyRecoveryPointOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginApplyRecoveryPoint method.

type ReplicationProtectedItemsClientBeginCreateOptions added in v0.2.0

type ReplicationProtectedItemsClientBeginCreateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationProtectedItemsClientBeginCreateOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginCreate method.

type ReplicationProtectedItemsClientBeginDeleteOptions added in v0.2.0

type ReplicationProtectedItemsClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationProtectedItemsClientBeginDeleteOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginDelete method.

type ReplicationProtectedItemsClientBeginFailoverCancelOptions added in v0.2.0

type ReplicationProtectedItemsClientBeginFailoverCancelOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationProtectedItemsClientBeginFailoverCancelOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginFailoverCancel method.

type ReplicationProtectedItemsClientBeginFailoverCommitOptions added in v0.2.0

type ReplicationProtectedItemsClientBeginFailoverCommitOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationProtectedItemsClientBeginFailoverCommitOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginFailoverCommit method.

type ReplicationProtectedItemsClientBeginPlannedFailoverOptions added in v0.2.0

type ReplicationProtectedItemsClientBeginPlannedFailoverOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationProtectedItemsClientBeginPlannedFailoverOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginPlannedFailover method.

type ReplicationProtectedItemsClientBeginPurgeOptions added in v0.2.0

type ReplicationProtectedItemsClientBeginPurgeOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationProtectedItemsClientBeginPurgeOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginPurge method.

type ReplicationProtectedItemsClientBeginRemoveDisksOptions added in v0.2.0

type ReplicationProtectedItemsClientBeginRemoveDisksOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationProtectedItemsClientBeginRemoveDisksOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginRemoveDisks method.

type ReplicationProtectedItemsClientBeginRepairReplicationOptions added in v0.2.0

type ReplicationProtectedItemsClientBeginRepairReplicationOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationProtectedItemsClientBeginRepairReplicationOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginRepairReplication method.

type ReplicationProtectedItemsClientBeginReprotectOptions added in v0.2.0

type ReplicationProtectedItemsClientBeginReprotectOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationProtectedItemsClientBeginReprotectOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginReprotect method.

type ReplicationProtectedItemsClientBeginResolveHealthErrorsOptions added in v0.2.0

type ReplicationProtectedItemsClientBeginResolveHealthErrorsOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationProtectedItemsClientBeginResolveHealthErrorsOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginResolveHealthErrors method.

type ReplicationProtectedItemsClientBeginSwitchProviderOptions added in v0.2.0

type ReplicationProtectedItemsClientBeginSwitchProviderOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationProtectedItemsClientBeginSwitchProviderOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginSwitchProvider method.

type ReplicationProtectedItemsClientBeginTestFailoverCleanupOptions added in v0.2.0

type ReplicationProtectedItemsClientBeginTestFailoverCleanupOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationProtectedItemsClientBeginTestFailoverCleanupOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginTestFailoverCleanup method.

type ReplicationProtectedItemsClientBeginTestFailoverOptions added in v0.2.0

type ReplicationProtectedItemsClientBeginTestFailoverOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationProtectedItemsClientBeginTestFailoverOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginTestFailover method.

type ReplicationProtectedItemsClientBeginUnplannedFailoverOptions added in v0.2.0

type ReplicationProtectedItemsClientBeginUnplannedFailoverOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationProtectedItemsClientBeginUnplannedFailoverOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginUnplannedFailover method.

type ReplicationProtectedItemsClientBeginUpdateApplianceOptions added in v0.2.0

type ReplicationProtectedItemsClientBeginUpdateApplianceOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationProtectedItemsClientBeginUpdateApplianceOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginUpdateAppliance method.

type ReplicationProtectedItemsClientBeginUpdateMobilityServiceOptions added in v0.2.0

type ReplicationProtectedItemsClientBeginUpdateMobilityServiceOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationProtectedItemsClientBeginUpdateMobilityServiceOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginUpdateMobilityService method.

type ReplicationProtectedItemsClientBeginUpdateOptions added in v0.2.0

type ReplicationProtectedItemsClientBeginUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationProtectedItemsClientBeginUpdateOptions contains the optional parameters for the ReplicationProtectedItemsClient.BeginUpdate method.

type ReplicationProtectedItemsClientCreateResponse added in v0.2.0

type ReplicationProtectedItemsClientCreateResponse struct {
	ReplicationProtectedItem
}

ReplicationProtectedItemsClientCreateResponse contains the response from method ReplicationProtectedItemsClient.Create.

type ReplicationProtectedItemsClientDeleteResponse added in v0.2.0

type ReplicationProtectedItemsClientDeleteResponse struct {
}

ReplicationProtectedItemsClientDeleteResponse contains the response from method ReplicationProtectedItemsClient.Delete.

type ReplicationProtectedItemsClientFailoverCancelResponse added in v0.2.0

type ReplicationProtectedItemsClientFailoverCancelResponse struct {
	ReplicationProtectedItem
}

ReplicationProtectedItemsClientFailoverCancelResponse contains the response from method ReplicationProtectedItemsClient.FailoverCancel.

type ReplicationProtectedItemsClientFailoverCommitResponse added in v0.2.0

type ReplicationProtectedItemsClientFailoverCommitResponse struct {
	ReplicationProtectedItem
}

ReplicationProtectedItemsClientFailoverCommitResponse contains the response from method ReplicationProtectedItemsClient.FailoverCommit.

type ReplicationProtectedItemsClientGetOptions added in v0.2.0

type ReplicationProtectedItemsClientGetOptions struct {
}

ReplicationProtectedItemsClientGetOptions contains the optional parameters for the ReplicationProtectedItemsClient.Get method.

type ReplicationProtectedItemsClientGetResponse added in v0.2.0

type ReplicationProtectedItemsClientGetResponse struct {
	ReplicationProtectedItem
}

ReplicationProtectedItemsClientGetResponse contains the response from method ReplicationProtectedItemsClient.Get.

type ReplicationProtectedItemsClientListByReplicationProtectionContainersOptions added in v0.2.0

type ReplicationProtectedItemsClientListByReplicationProtectionContainersOptions struct {
}

ReplicationProtectedItemsClientListByReplicationProtectionContainersOptions contains the optional parameters for the ReplicationProtectedItemsClient.ListByReplicationProtectionContainers method.

type ReplicationProtectedItemsClientListByReplicationProtectionContainersResponse added in v0.2.0

type ReplicationProtectedItemsClientListByReplicationProtectionContainersResponse struct {
	ReplicationProtectedItemCollection
}

ReplicationProtectedItemsClientListByReplicationProtectionContainersResponse contains the response from method ReplicationProtectedItemsClient.ListByReplicationProtectionContainers.

type ReplicationProtectedItemsClientListOptions added in v0.2.0

type ReplicationProtectedItemsClientListOptions struct {
	// OData filter options.
	Filter *string
	// The pagination token. Possible values: "FabricId" or "FabricId_CloudId" or null.
	SkipToken *string
}

ReplicationProtectedItemsClientListOptions contains the optional parameters for the ReplicationProtectedItemsClient.List method.

type ReplicationProtectedItemsClientListResponse added in v0.2.0

type ReplicationProtectedItemsClientListResponse struct {
	ReplicationProtectedItemCollection
}

ReplicationProtectedItemsClientListResponse contains the response from method ReplicationProtectedItemsClient.List.

type ReplicationProtectedItemsClientPlannedFailoverResponse added in v0.2.0

type ReplicationProtectedItemsClientPlannedFailoverResponse struct {
	ReplicationProtectedItem
}

ReplicationProtectedItemsClientPlannedFailoverResponse contains the response from method ReplicationProtectedItemsClient.PlannedFailover.

type ReplicationProtectedItemsClientPurgeResponse added in v0.2.0

type ReplicationProtectedItemsClientPurgeResponse struct {
}

ReplicationProtectedItemsClientPurgeResponse contains the response from method ReplicationProtectedItemsClient.Purge.

type ReplicationProtectedItemsClientRemoveDisksResponse added in v0.2.0

type ReplicationProtectedItemsClientRemoveDisksResponse struct {
	ReplicationProtectedItem
}

ReplicationProtectedItemsClientRemoveDisksResponse contains the response from method ReplicationProtectedItemsClient.RemoveDisks.

type ReplicationProtectedItemsClientRepairReplicationResponse added in v0.2.0

type ReplicationProtectedItemsClientRepairReplicationResponse struct {
	ReplicationProtectedItem
}

ReplicationProtectedItemsClientRepairReplicationResponse contains the response from method ReplicationProtectedItemsClient.RepairReplication.

type ReplicationProtectedItemsClientReprotectResponse added in v0.2.0

type ReplicationProtectedItemsClientReprotectResponse struct {
	ReplicationProtectedItem
}

ReplicationProtectedItemsClientReprotectResponse contains the response from method ReplicationProtectedItemsClient.Reprotect.

type ReplicationProtectedItemsClientResolveHealthErrorsResponse added in v0.2.0

type ReplicationProtectedItemsClientResolveHealthErrorsResponse struct {
	ReplicationProtectedItem
}

ReplicationProtectedItemsClientResolveHealthErrorsResponse contains the response from method ReplicationProtectedItemsClient.ResolveHealthErrors.

type ReplicationProtectedItemsClientSwitchProviderResponse added in v0.2.0

type ReplicationProtectedItemsClientSwitchProviderResponse struct {
	ReplicationProtectedItem
}

ReplicationProtectedItemsClientSwitchProviderResponse contains the response from method ReplicationProtectedItemsClient.SwitchProvider.

type ReplicationProtectedItemsClientTestFailoverCleanupResponse added in v0.2.0

type ReplicationProtectedItemsClientTestFailoverCleanupResponse struct {
	ReplicationProtectedItem
}

ReplicationProtectedItemsClientTestFailoverCleanupResponse contains the response from method ReplicationProtectedItemsClient.TestFailoverCleanup.

type ReplicationProtectedItemsClientTestFailoverResponse added in v0.2.0

type ReplicationProtectedItemsClientTestFailoverResponse struct {
	ReplicationProtectedItem
}

ReplicationProtectedItemsClientTestFailoverResponse contains the response from method ReplicationProtectedItemsClient.TestFailover.

type ReplicationProtectedItemsClientUnplannedFailoverResponse added in v0.2.0

type ReplicationProtectedItemsClientUnplannedFailoverResponse struct {
	ReplicationProtectedItem
}

ReplicationProtectedItemsClientUnplannedFailoverResponse contains the response from method ReplicationProtectedItemsClient.UnplannedFailover.

type ReplicationProtectedItemsClientUpdateApplianceResponse added in v0.2.0

type ReplicationProtectedItemsClientUpdateApplianceResponse struct {
	ReplicationProtectedItem
}

ReplicationProtectedItemsClientUpdateApplianceResponse contains the response from method ReplicationProtectedItemsClient.UpdateAppliance.

type ReplicationProtectedItemsClientUpdateMobilityServiceResponse added in v0.2.0

type ReplicationProtectedItemsClientUpdateMobilityServiceResponse struct {
	ReplicationProtectedItem
}

ReplicationProtectedItemsClientUpdateMobilityServiceResponse contains the response from method ReplicationProtectedItemsClient.UpdateMobilityService.

type ReplicationProtectedItemsClientUpdateResponse added in v0.2.0

type ReplicationProtectedItemsClientUpdateResponse struct {
	ReplicationProtectedItem
}

ReplicationProtectedItemsClientUpdateResponse contains the response from method ReplicationProtectedItemsClient.Update.

type ReplicationProtectionContainerMappingsClient

type ReplicationProtectionContainerMappingsClient struct {
	// contains filtered or unexported fields
}

ReplicationProtectionContainerMappingsClient contains the methods for the ReplicationProtectionContainerMappings group. Don't use this type directly, use NewReplicationProtectionContainerMappingsClient() instead.

func NewReplicationProtectionContainerMappingsClient

func NewReplicationProtectionContainerMappingsClient(resourceName string, resourceGroupName string, subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicationProtectionContainerMappingsClient, error)

NewReplicationProtectionContainerMappingsClient creates a new instance of ReplicationProtectionContainerMappingsClient with the specified values. resourceName - The name of the recovery services vault. resourceGroupName - The name of the resource group where the recovery services vault is present. subscriptionID - The subscription Id. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*ReplicationProtectionContainerMappingsClient) BeginCreate

BeginCreate - The operation to create a protection container mapping. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. protectionContainerName - Protection container name. mappingName - Protection container mapping name. creationInput - Mapping creation input. options - ReplicationProtectionContainerMappingsClientBeginCreateOptions contains the optional parameters for the ReplicationProtectionContainerMappingsClient.BeginCreate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectionContainerMappings_Create.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectionContainerMappingsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginCreate(ctx, "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "cloud1protectionprofile1", armrecoveryservicessiterecovery.CreateProtectionContainerMappingInput{
		Properties: &armrecoveryservicessiterecovery.CreateProtectionContainerMappingInputProperties{
			PolicyID: to.Ptr("/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationPolicies/protectionprofile1"),
			ProviderSpecificInput: &armrecoveryservicessiterecovery.ReplicationProviderSpecificContainerMappingInput{
				InstanceType: to.Ptr("ReplicationProviderSpecificContainerMappingInput"),
			},
			TargetProtectionContainerID: to.Ptr("Microsoft Azure"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationProtectionContainerMappingsClient) BeginDelete

BeginDelete - The operation to delete or remove a protection container mapping. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. protectionContainerName - Protection container name. mappingName - Protection container mapping name. removalInput - Removal input. options - ReplicationProtectionContainerMappingsClientBeginDeleteOptions contains the optional parameters for the ReplicationProtectionContainerMappingsClient.BeginDelete method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectionContainerMappings_Delete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectionContainerMappingsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginDelete(ctx, "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "cloud1protectionprofile1", armrecoveryservicessiterecovery.RemoveProtectionContainerMappingInput{
		Properties: &armrecoveryservicessiterecovery.RemoveProtectionContainerMappingInputProperties{
			ProviderSpecificInput: &armrecoveryservicessiterecovery.ReplicationProviderContainerUnmappingInput{},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*ReplicationProtectionContainerMappingsClient) BeginPurge

BeginPurge - The operation to purge(force delete) a protection container mapping. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. protectionContainerName - Protection container name. mappingName - Protection container mapping name. options - ReplicationProtectionContainerMappingsClientBeginPurgeOptions contains the optional parameters for the ReplicationProtectionContainerMappingsClient.BeginPurge method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectionContainerMappings_Purge.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectionContainerMappingsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginPurge(ctx, "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "cloud1protectionprofile1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*ReplicationProtectionContainerMappingsClient) BeginUpdate

BeginUpdate - The operation to update protection container mapping. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. protectionContainerName - Protection container name. mappingName - Protection container mapping name. updateInput - Mapping update input. options - ReplicationProtectionContainerMappingsClientBeginUpdateOptions contains the optional parameters for the ReplicationProtectionContainerMappingsClient.BeginUpdate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectionContainerMappings_Update.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectionContainerMappingsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginUpdate(ctx, "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "cloud1protectionprofile1", armrecoveryservicessiterecovery.UpdateProtectionContainerMappingInput{
		Properties: &armrecoveryservicessiterecovery.UpdateProtectionContainerMappingInputProperties{
			ProviderSpecificInput: &armrecoveryservicessiterecovery.A2AUpdateContainerMappingInput{
				InstanceType:           to.Ptr("A2A"),
				AgentAutoUpdateStatus:  to.Ptr(armrecoveryservicessiterecovery.AgentAutoUpdateStatusEnabled),
				AutomationAccountArmID: to.Ptr("/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/automationrg1/providers/Microsoft.Automation/automationAccounts/automationaccount1"),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationProtectionContainerMappingsClient) Get

Get - Gets the details of a protection container mapping. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. protectionContainerName - Protection container name. mappingName - Protection Container mapping name. options - ReplicationProtectionContainerMappingsClientGetOptions contains the optional parameters for the ReplicationProtectionContainerMappingsClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectionContainerMappings_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectionContainerMappingsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx, "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", "cloud1protectionprofile1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationProtectionContainerMappingsClient) NewListByReplicationProtectionContainersPager added in v0.4.0

NewListByReplicationProtectionContainersPager - Lists the protection container mappings for a protection container. Generated from API version 2022-10-01 fabricName - Fabric name. protectionContainerName - Protection container name. options - ReplicationProtectionContainerMappingsClientListByReplicationProtectionContainersOptions contains the optional parameters for the ReplicationProtectionContainerMappingsClient.ListByReplicationProtectionContainers method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectionContainerMappings_ListByReplicationProtectionContainers.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectionContainerMappingsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListByReplicationProtectionContainersPager("cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

func (*ReplicationProtectionContainerMappingsClient) NewListPager added in v0.4.0

NewListPager - Lists the protection container mappings in the vault. Generated from API version 2022-10-01 options - ReplicationProtectionContainerMappingsClientListOptions contains the optional parameters for the ReplicationProtectionContainerMappingsClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectionContainerMappings_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectionContainerMappingsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager(nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type ReplicationProtectionContainerMappingsClientBeginCreateOptions added in v0.2.0

type ReplicationProtectionContainerMappingsClientBeginCreateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationProtectionContainerMappingsClientBeginCreateOptions contains the optional parameters for the ReplicationProtectionContainerMappingsClient.BeginCreate method.

type ReplicationProtectionContainerMappingsClientBeginDeleteOptions added in v0.2.0

type ReplicationProtectionContainerMappingsClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationProtectionContainerMappingsClientBeginDeleteOptions contains the optional parameters for the ReplicationProtectionContainerMappingsClient.BeginDelete method.

type ReplicationProtectionContainerMappingsClientBeginPurgeOptions added in v0.2.0

type ReplicationProtectionContainerMappingsClientBeginPurgeOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationProtectionContainerMappingsClientBeginPurgeOptions contains the optional parameters for the ReplicationProtectionContainerMappingsClient.BeginPurge method.

type ReplicationProtectionContainerMappingsClientBeginUpdateOptions added in v0.2.0

type ReplicationProtectionContainerMappingsClientBeginUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationProtectionContainerMappingsClientBeginUpdateOptions contains the optional parameters for the ReplicationProtectionContainerMappingsClient.BeginUpdate method.

type ReplicationProtectionContainerMappingsClientCreateResponse added in v0.2.0

type ReplicationProtectionContainerMappingsClientCreateResponse struct {
	ProtectionContainerMapping
}

ReplicationProtectionContainerMappingsClientCreateResponse contains the response from method ReplicationProtectionContainerMappingsClient.Create.

type ReplicationProtectionContainerMappingsClientDeleteResponse added in v0.2.0

type ReplicationProtectionContainerMappingsClientDeleteResponse struct {
}

ReplicationProtectionContainerMappingsClientDeleteResponse contains the response from method ReplicationProtectionContainerMappingsClient.Delete.

type ReplicationProtectionContainerMappingsClientGetOptions added in v0.2.0

type ReplicationProtectionContainerMappingsClientGetOptions struct {
}

ReplicationProtectionContainerMappingsClientGetOptions contains the optional parameters for the ReplicationProtectionContainerMappingsClient.Get method.

type ReplicationProtectionContainerMappingsClientGetResponse added in v0.2.0

type ReplicationProtectionContainerMappingsClientGetResponse struct {
	ProtectionContainerMapping
}

ReplicationProtectionContainerMappingsClientGetResponse contains the response from method ReplicationProtectionContainerMappingsClient.Get.

type ReplicationProtectionContainerMappingsClientListByReplicationProtectionContainersOptions added in v0.2.0

type ReplicationProtectionContainerMappingsClientListByReplicationProtectionContainersOptions struct {
}

ReplicationProtectionContainerMappingsClientListByReplicationProtectionContainersOptions contains the optional parameters for the ReplicationProtectionContainerMappingsClient.ListByReplicationProtectionContainers method.

type ReplicationProtectionContainerMappingsClientListByReplicationProtectionContainersResponse added in v0.2.0

type ReplicationProtectionContainerMappingsClientListByReplicationProtectionContainersResponse struct {
	ProtectionContainerMappingCollection
}

ReplicationProtectionContainerMappingsClientListByReplicationProtectionContainersResponse contains the response from method ReplicationProtectionContainerMappingsClient.ListByReplicationProtectionContainers.

type ReplicationProtectionContainerMappingsClientListOptions added in v0.2.0

type ReplicationProtectionContainerMappingsClientListOptions struct {
}

ReplicationProtectionContainerMappingsClientListOptions contains the optional parameters for the ReplicationProtectionContainerMappingsClient.List method.

type ReplicationProtectionContainerMappingsClientListResponse added in v0.2.0

type ReplicationProtectionContainerMappingsClientListResponse struct {
	ProtectionContainerMappingCollection
}

ReplicationProtectionContainerMappingsClientListResponse contains the response from method ReplicationProtectionContainerMappingsClient.List.

type ReplicationProtectionContainerMappingsClientPurgeResponse added in v0.2.0

type ReplicationProtectionContainerMappingsClientPurgeResponse struct {
}

ReplicationProtectionContainerMappingsClientPurgeResponse contains the response from method ReplicationProtectionContainerMappingsClient.Purge.

type ReplicationProtectionContainerMappingsClientUpdateResponse added in v0.2.0

type ReplicationProtectionContainerMappingsClientUpdateResponse struct {
	ProtectionContainerMapping
}

ReplicationProtectionContainerMappingsClientUpdateResponse contains the response from method ReplicationProtectionContainerMappingsClient.Update.

type ReplicationProtectionContainersClient

type ReplicationProtectionContainersClient struct {
	// contains filtered or unexported fields
}

ReplicationProtectionContainersClient contains the methods for the ReplicationProtectionContainers group. Don't use this type directly, use NewReplicationProtectionContainersClient() instead.

func NewReplicationProtectionContainersClient

func NewReplicationProtectionContainersClient(resourceName string, resourceGroupName string, subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicationProtectionContainersClient, error)

NewReplicationProtectionContainersClient creates a new instance of ReplicationProtectionContainersClient with the specified values. resourceName - The name of the recovery services vault. resourceGroupName - The name of the resource group where the recovery services vault is present. subscriptionID - The subscription Id. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*ReplicationProtectionContainersClient) BeginCreate

BeginCreate - Operation to create a protection container. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Unique fabric ARM name. protectionContainerName - Unique protection container ARM name. creationInput - Creation input. options - ReplicationProtectionContainersClientBeginCreateOptions contains the optional parameters for the ReplicationProtectionContainersClient.BeginCreate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectionContainers_Create.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectionContainersClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginCreate(ctx, "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", armrecoveryservicessiterecovery.CreateProtectionContainerInput{
		Properties: &armrecoveryservicessiterecovery.CreateProtectionContainerInputProperties{
			ProviderSpecificInput: []armrecoveryservicessiterecovery.ReplicationProviderSpecificContainerCreationInputClassification{
				&armrecoveryservicessiterecovery.ReplicationProviderSpecificContainerCreationInput{
					InstanceType: to.Ptr("ReplicationProviderSpecificContainerCreationInput"),
				}},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationProtectionContainersClient) BeginDelete

BeginDelete - Operation to remove a protection container. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Unique fabric ARM name. protectionContainerName - Unique protection container ARM name. options - ReplicationProtectionContainersClientBeginDeleteOptions contains the optional parameters for the ReplicationProtectionContainersClient.BeginDelete method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectionContainers_Delete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectionContainersClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginDelete(ctx, "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*ReplicationProtectionContainersClient) BeginDiscoverProtectableItem

BeginDiscoverProtectableItem - The operation to a add a protectable item to a protection container(Add physical server). If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - The name of the fabric. protectionContainerName - The name of the protection container. discoverProtectableItemRequest - The request object to add a protectable item. options - ReplicationProtectionContainersClientBeginDiscoverProtectableItemOptions contains the optional parameters for the ReplicationProtectionContainersClient.BeginDiscoverProtectableItem method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectionContainers_DiscoverProtectableItem.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectionContainersClient("MadhaviVault", "MadhaviVRG", "7c943c1b-5122-4097-90c8-861411bdd574", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginDiscoverProtectableItem(ctx, "V2A-W2K12-660", "cloud_7328549c-5c37-4459-a3c2-e35f9ef6893c", armrecoveryservicessiterecovery.DiscoverProtectableItemRequest{
		Properties: &armrecoveryservicessiterecovery.DiscoverProtectableItemRequestProperties{
			FriendlyName: to.Ptr("Test"),
			IPAddress:    to.Ptr("10.150.2.3"),
			OSType:       to.Ptr("Windows"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationProtectionContainersClient) BeginSwitchProtection

BeginSwitchProtection - Operation to switch protection from one container to another or one replication provider to another. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Unique fabric name. protectionContainerName - Protection container name. switchInput - Switch protection input. options - ReplicationProtectionContainersClientBeginSwitchProtectionOptions contains the optional parameters for the ReplicationProtectionContainersClient.BeginSwitchProtection method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectionContainers_SwitchProtection.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectionContainersClient("priyanponeboxvault", "priyanprg", "42195872-7e70-4f8a-837f-84b28ecbb78b", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginSwitchProtection(ctx, "CentralUSCanSite", "CentralUSCancloud", armrecoveryservicessiterecovery.SwitchProtectionInput{
		Properties: &armrecoveryservicessiterecovery.SwitchProtectionInputProperties{
			ProviderSpecificDetails: &armrecoveryservicessiterecovery.A2ASwitchProtectionInput{
				InstanceType: to.Ptr("A2A"),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationProtectionContainersClient) Get

Get - Gets the details of a protection container. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. protectionContainerName - Protection container name. options - ReplicationProtectionContainersClientGetOptions contains the optional parameters for the ReplicationProtectionContainersClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectionContainers_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectionContainersClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx, "cloud1", "cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationProtectionContainersClient) NewListByReplicationFabricsPager added in v0.4.0

NewListByReplicationFabricsPager - Lists the protection containers in the specified fabric. Generated from API version 2022-10-01 fabricName - Fabric name. options - ReplicationProtectionContainersClientListByReplicationFabricsOptions contains the optional parameters for the ReplicationProtectionContainersClient.ListByReplicationFabrics method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectionContainers_ListByReplicationFabrics.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectionContainersClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListByReplicationFabricsPager("cloud1", nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

func (*ReplicationProtectionContainersClient) NewListPager added in v0.4.0

NewListPager - Lists the protection containers in a vault. Generated from API version 2022-10-01 options - ReplicationProtectionContainersClientListOptions contains the optional parameters for the ReplicationProtectionContainersClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectionContainers_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectionContainersClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager(nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type ReplicationProtectionContainersClientBeginCreateOptions added in v0.2.0

type ReplicationProtectionContainersClientBeginCreateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationProtectionContainersClientBeginCreateOptions contains the optional parameters for the ReplicationProtectionContainersClient.BeginCreate method.

type ReplicationProtectionContainersClientBeginDeleteOptions added in v0.2.0

type ReplicationProtectionContainersClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationProtectionContainersClientBeginDeleteOptions contains the optional parameters for the ReplicationProtectionContainersClient.BeginDelete method.

type ReplicationProtectionContainersClientBeginDiscoverProtectableItemOptions added in v0.2.0

type ReplicationProtectionContainersClientBeginDiscoverProtectableItemOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationProtectionContainersClientBeginDiscoverProtectableItemOptions contains the optional parameters for the ReplicationProtectionContainersClient.BeginDiscoverProtectableItem method.

type ReplicationProtectionContainersClientBeginSwitchProtectionOptions added in v0.2.0

type ReplicationProtectionContainersClientBeginSwitchProtectionOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationProtectionContainersClientBeginSwitchProtectionOptions contains the optional parameters for the ReplicationProtectionContainersClient.BeginSwitchProtection method.

type ReplicationProtectionContainersClientCreateResponse added in v0.2.0

type ReplicationProtectionContainersClientCreateResponse struct {
	ProtectionContainer
}

ReplicationProtectionContainersClientCreateResponse contains the response from method ReplicationProtectionContainersClient.Create.

type ReplicationProtectionContainersClientDeleteResponse added in v0.2.0

type ReplicationProtectionContainersClientDeleteResponse struct {
}

ReplicationProtectionContainersClientDeleteResponse contains the response from method ReplicationProtectionContainersClient.Delete.

type ReplicationProtectionContainersClientDiscoverProtectableItemResponse added in v0.2.0

type ReplicationProtectionContainersClientDiscoverProtectableItemResponse struct {
	ProtectionContainer
}

ReplicationProtectionContainersClientDiscoverProtectableItemResponse contains the response from method ReplicationProtectionContainersClient.DiscoverProtectableItem.

type ReplicationProtectionContainersClientGetOptions added in v0.2.0

type ReplicationProtectionContainersClientGetOptions struct {
}

ReplicationProtectionContainersClientGetOptions contains the optional parameters for the ReplicationProtectionContainersClient.Get method.

type ReplicationProtectionContainersClientGetResponse added in v0.2.0

type ReplicationProtectionContainersClientGetResponse struct {
	ProtectionContainer
}

ReplicationProtectionContainersClientGetResponse contains the response from method ReplicationProtectionContainersClient.Get.

type ReplicationProtectionContainersClientListByReplicationFabricsOptions added in v0.2.0

type ReplicationProtectionContainersClientListByReplicationFabricsOptions struct {
}

ReplicationProtectionContainersClientListByReplicationFabricsOptions contains the optional parameters for the ReplicationProtectionContainersClient.ListByReplicationFabrics method.

type ReplicationProtectionContainersClientListByReplicationFabricsResponse added in v0.2.0

type ReplicationProtectionContainersClientListByReplicationFabricsResponse struct {
	ProtectionContainerCollection
}

ReplicationProtectionContainersClientListByReplicationFabricsResponse contains the response from method ReplicationProtectionContainersClient.ListByReplicationFabrics.

type ReplicationProtectionContainersClientListOptions added in v0.2.0

type ReplicationProtectionContainersClientListOptions struct {
}

ReplicationProtectionContainersClientListOptions contains the optional parameters for the ReplicationProtectionContainersClient.List method.

type ReplicationProtectionContainersClientListResponse added in v0.2.0

type ReplicationProtectionContainersClientListResponse struct {
	ProtectionContainerCollection
}

ReplicationProtectionContainersClientListResponse contains the response from method ReplicationProtectionContainersClient.List.

type ReplicationProtectionContainersClientSwitchProtectionResponse added in v0.2.0

type ReplicationProtectionContainersClientSwitchProtectionResponse struct {
	ProtectionContainer
}

ReplicationProtectionContainersClientSwitchProtectionResponse contains the response from method ReplicationProtectionContainersClient.SwitchProtection.

type ReplicationProtectionIntent

type ReplicationProtectionIntent struct {
	// Resource Location
	Location *string `json:"location,omitempty"`

	// The custom data.
	Properties *ReplicationProtectionIntentProperties `json:"properties,omitempty"`

	// READ-ONLY; Resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Resource Name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Resource Type
	Type *string `json:"type,omitempty" azure:"ro"`
}

ReplicationProtectionIntent - Replication protection intent.

func (ReplicationProtectionIntent) MarshalJSON added in v1.1.0

func (r ReplicationProtectionIntent) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ReplicationProtectionIntent.

func (*ReplicationProtectionIntent) UnmarshalJSON added in v1.1.0

func (r *ReplicationProtectionIntent) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationProtectionIntent.

type ReplicationProtectionIntentCollection

type ReplicationProtectionIntentCollection struct {
	// The value of next link.
	NextLink *string `json:"nextLink,omitempty"`

	// The Replication protection intent details.
	Value []*ReplicationProtectionIntent `json:"value,omitempty"`
}

ReplicationProtectionIntentCollection - Replication protection intent objects collection.

func (ReplicationProtectionIntentCollection) MarshalJSON

func (r ReplicationProtectionIntentCollection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ReplicationProtectionIntentCollection.

func (*ReplicationProtectionIntentCollection) UnmarshalJSON added in v1.1.0

func (r *ReplicationProtectionIntentCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationProtectionIntentCollection.

type ReplicationProtectionIntentProperties

type ReplicationProtectionIntentProperties struct {
	// The name.
	FriendlyName *string `json:"friendlyName,omitempty"`

	// The Replication provider custom settings.
	ProviderSpecificDetails ReplicationProtectionIntentProviderSpecificSettingsClassification `json:"providerSpecificDetails,omitempty"`

	// READ-ONLY; The creation time in UTC.
	CreationTimeUTC *string `json:"creationTimeUTC,omitempty" azure:"ro"`

	// READ-ONLY; A value indicating whether the intent object is active.
	IsActive *bool `json:"isActive,omitempty" azure:"ro"`

	// READ-ONLY; The job Id.
	JobID *string `json:"jobId,omitempty" azure:"ro"`

	// READ-ONLY; The job state.
	JobState *string `json:"jobState,omitempty" azure:"ro"`
}

ReplicationProtectionIntentProperties - Replication protection intent custom data details.

func (ReplicationProtectionIntentProperties) MarshalJSON

func (r ReplicationProtectionIntentProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ReplicationProtectionIntentProperties.

func (*ReplicationProtectionIntentProperties) UnmarshalJSON

func (r *ReplicationProtectionIntentProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationProtectionIntentProperties.

type ReplicationProtectionIntentProviderSpecificSettings

type ReplicationProtectionIntentProviderSpecificSettings struct {
	// REQUIRED; Gets the Instance type.
	InstanceType *string `json:"instanceType,omitempty"`
}

ReplicationProtectionIntentProviderSpecificSettings - Replication provider specific settings.

func (*ReplicationProtectionIntentProviderSpecificSettings) GetReplicationProtectionIntentProviderSpecificSettings

func (r *ReplicationProtectionIntentProviderSpecificSettings) GetReplicationProtectionIntentProviderSpecificSettings() *ReplicationProtectionIntentProviderSpecificSettings

GetReplicationProtectionIntentProviderSpecificSettings implements the ReplicationProtectionIntentProviderSpecificSettingsClassification interface for type ReplicationProtectionIntentProviderSpecificSettings.

func (ReplicationProtectionIntentProviderSpecificSettings) MarshalJSON added in v1.1.0

MarshalJSON implements the json.Marshaller interface for type ReplicationProtectionIntentProviderSpecificSettings.

func (*ReplicationProtectionIntentProviderSpecificSettings) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationProtectionIntentProviderSpecificSettings.

type ReplicationProtectionIntentProviderSpecificSettingsClassification

type ReplicationProtectionIntentProviderSpecificSettingsClassification interface {
	// GetReplicationProtectionIntentProviderSpecificSettings returns the ReplicationProtectionIntentProviderSpecificSettings content of the underlying type.
	GetReplicationProtectionIntentProviderSpecificSettings() *ReplicationProtectionIntentProviderSpecificSettings
}

ReplicationProtectionIntentProviderSpecificSettingsClassification provides polymorphic access to related types. Call the interface's GetReplicationProtectionIntentProviderSpecificSettings() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *A2AReplicationIntentDetails, *ReplicationProtectionIntentProviderSpecificSettings

type ReplicationProtectionIntentsClient

type ReplicationProtectionIntentsClient struct {
	// contains filtered or unexported fields
}

ReplicationProtectionIntentsClient contains the methods for the ReplicationProtectionIntents group. Don't use this type directly, use NewReplicationProtectionIntentsClient() instead.

func NewReplicationProtectionIntentsClient

func NewReplicationProtectionIntentsClient(resourceName string, resourceGroupName string, subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicationProtectionIntentsClient, error)

NewReplicationProtectionIntentsClient creates a new instance of ReplicationProtectionIntentsClient with the specified values. resourceName - The name of the recovery services vault. resourceGroupName - The name of the resource group where the recovery services vault is present. subscriptionID - The subscription Id. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*ReplicationProtectionIntentsClient) Create

Create - The operation to create an ASR replication protection intent item. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 intentObjectName - A name for the replication protection item. input - Create Protection Intent Input. options - ReplicationProtectionIntentsClientCreateOptions contains the optional parameters for the ReplicationProtectionIntentsClient.Create method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectionIntents_Create.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectionIntentsClient("vault1", "resourceGroupPS1", "509099b2-9d2c-4636-b43e-bd5cafb6be69", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Create(ctx, "vm1", armrecoveryservicessiterecovery.CreateProtectionIntentInput{
		Properties: &armrecoveryservicessiterecovery.CreateProtectionIntentProperties{
			ProviderSpecificDetails: &armrecoveryservicessiterecovery.A2ACreateProtectionIntentInput{
				InstanceType:             to.Ptr("A2A"),
				FabricObjectID:           to.Ptr("/subscriptions/509099b2-9d2c-4636-b43e-bd5cafb6be69/resourceGroups/removeOne/providers/Microsoft.Compute/virtualMachines/vmPpgAv5"),
				PrimaryLocation:          to.Ptr("eastUs2"),
				RecoveryAvailabilityType: to.Ptr(armrecoveryservicessiterecovery.A2ARecoveryAvailabilityTypeSingle),
				RecoveryLocation:         to.Ptr("westus2"),
				RecoveryResourceGroupID:  to.Ptr("/subscriptions/509099b2-9d2c-4636-b43e-bd5cafb6be69/resourceGroups/removeOne-asr"),
				RecoverySubscriptionID:   to.Ptr("ed5bcdf6-d61e-47bd-8ea9-f2bd379a2640"),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationProtectionIntentsClient) Get

Get - Gets the details of an ASR replication protection intent. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 intentObjectName - Replication protection intent name. options - ReplicationProtectionIntentsClientGetOptions contains the optional parameters for the ReplicationProtectionIntentsClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectionIntents_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectionIntentsClient("vault1", "resourceGroupPS1", "509099b2-9d2c-4636-b43e-bd5cafb6be69", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx, "vm1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationProtectionIntentsClient) NewListPager added in v0.4.0

NewListPager - Gets the list of ASR replication protection intent objects in the vault. Generated from API version 2022-10-01 options - ReplicationProtectionIntentsClientListOptions contains the optional parameters for the ReplicationProtectionIntentsClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationProtectionIntents_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationProtectionIntentsClient("2007vttp", "resourceGroupPS1", "509099b2-9d2c-4636-b43e-bd5cafb6be69", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager(&armrecoveryservicessiterecovery.ReplicationProtectionIntentsClientListOptions{SkipToken: nil,
		TakeToken: nil,
	})
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type ReplicationProtectionIntentsClientCreateOptions added in v0.2.0

type ReplicationProtectionIntentsClientCreateOptions struct {
}

ReplicationProtectionIntentsClientCreateOptions contains the optional parameters for the ReplicationProtectionIntentsClient.Create method.

type ReplicationProtectionIntentsClientCreateResponse added in v0.2.0

type ReplicationProtectionIntentsClientCreateResponse struct {
	ReplicationProtectionIntent
}

ReplicationProtectionIntentsClientCreateResponse contains the response from method ReplicationProtectionIntentsClient.Create.

type ReplicationProtectionIntentsClientGetOptions added in v0.2.0

type ReplicationProtectionIntentsClientGetOptions struct {
}

ReplicationProtectionIntentsClientGetOptions contains the optional parameters for the ReplicationProtectionIntentsClient.Get method.

type ReplicationProtectionIntentsClientGetResponse added in v0.2.0

type ReplicationProtectionIntentsClientGetResponse struct {
	ReplicationProtectionIntent
}

ReplicationProtectionIntentsClientGetResponse contains the response from method ReplicationProtectionIntentsClient.Get.

type ReplicationProtectionIntentsClientListOptions added in v0.2.0

type ReplicationProtectionIntentsClientListOptions struct {
	// The pagination token.
	SkipToken *string
	// The page size.
	TakeToken *string
}

ReplicationProtectionIntentsClientListOptions contains the optional parameters for the ReplicationProtectionIntentsClient.List method.

type ReplicationProtectionIntentsClientListResponse added in v0.2.0

type ReplicationProtectionIntentsClientListResponse struct {
	ReplicationProtectionIntentCollection
}

ReplicationProtectionIntentsClientListResponse contains the response from method ReplicationProtectionIntentsClient.List.

type ReplicationProviderContainerUnmappingInput

type ReplicationProviderContainerUnmappingInput struct {
	// The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

ReplicationProviderContainerUnmappingInput - Provider specific input for unpairing operations.

func (ReplicationProviderContainerUnmappingInput) MarshalJSON added in v1.1.0

MarshalJSON implements the json.Marshaller interface for type ReplicationProviderContainerUnmappingInput.

func (*ReplicationProviderContainerUnmappingInput) UnmarshalJSON added in v1.1.0

func (r *ReplicationProviderContainerUnmappingInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationProviderContainerUnmappingInput.

type ReplicationProviderSpecificContainerCreationInput

type ReplicationProviderSpecificContainerCreationInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

ReplicationProviderSpecificContainerCreationInput - Provider specific input for container creation operation.

func (*ReplicationProviderSpecificContainerCreationInput) GetReplicationProviderSpecificContainerCreationInput

func (r *ReplicationProviderSpecificContainerCreationInput) GetReplicationProviderSpecificContainerCreationInput() *ReplicationProviderSpecificContainerCreationInput

GetReplicationProviderSpecificContainerCreationInput implements the ReplicationProviderSpecificContainerCreationInputClassification interface for type ReplicationProviderSpecificContainerCreationInput.

func (ReplicationProviderSpecificContainerCreationInput) MarshalJSON added in v1.1.0

MarshalJSON implements the json.Marshaller interface for type ReplicationProviderSpecificContainerCreationInput.

func (*ReplicationProviderSpecificContainerCreationInput) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationProviderSpecificContainerCreationInput.

type ReplicationProviderSpecificContainerCreationInputClassification

type ReplicationProviderSpecificContainerCreationInputClassification interface {
	// GetReplicationProviderSpecificContainerCreationInput returns the ReplicationProviderSpecificContainerCreationInput content of the underlying type.
	GetReplicationProviderSpecificContainerCreationInput() *ReplicationProviderSpecificContainerCreationInput
}

ReplicationProviderSpecificContainerCreationInputClassification provides polymorphic access to related types. Call the interface's GetReplicationProviderSpecificContainerCreationInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *A2AContainerCreationInput, *A2ACrossClusterMigrationContainerCreationInput, *ReplicationProviderSpecificContainerCreationInput, - *VMwareCbtContainerCreationInput

type ReplicationProviderSpecificContainerMappingInput

type ReplicationProviderSpecificContainerMappingInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

ReplicationProviderSpecificContainerMappingInput - Provider specific input for pairing operations.

func (*ReplicationProviderSpecificContainerMappingInput) GetReplicationProviderSpecificContainerMappingInput

func (r *ReplicationProviderSpecificContainerMappingInput) GetReplicationProviderSpecificContainerMappingInput() *ReplicationProviderSpecificContainerMappingInput

GetReplicationProviderSpecificContainerMappingInput implements the ReplicationProviderSpecificContainerMappingInputClassification interface for type ReplicationProviderSpecificContainerMappingInput.

func (ReplicationProviderSpecificContainerMappingInput) MarshalJSON added in v1.1.0

MarshalJSON implements the json.Marshaller interface for type ReplicationProviderSpecificContainerMappingInput.

func (*ReplicationProviderSpecificContainerMappingInput) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationProviderSpecificContainerMappingInput.

type ReplicationProviderSpecificContainerMappingInputClassification

type ReplicationProviderSpecificContainerMappingInputClassification interface {
	// GetReplicationProviderSpecificContainerMappingInput returns the ReplicationProviderSpecificContainerMappingInput content of the underlying type.
	GetReplicationProviderSpecificContainerMappingInput() *ReplicationProviderSpecificContainerMappingInput
}

ReplicationProviderSpecificContainerMappingInputClassification provides polymorphic access to related types. Call the interface's GetReplicationProviderSpecificContainerMappingInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *A2AContainerMappingInput, *ReplicationProviderSpecificContainerMappingInput, *VMwareCbtContainerMappingInput

type ReplicationProviderSpecificSettings

type ReplicationProviderSpecificSettings struct {
	// REQUIRED; Gets the Instance type.
	InstanceType *string `json:"instanceType,omitempty"`
}

ReplicationProviderSpecificSettings - Replication provider specific settings.

func (*ReplicationProviderSpecificSettings) GetReplicationProviderSpecificSettings

func (r *ReplicationProviderSpecificSettings) GetReplicationProviderSpecificSettings() *ReplicationProviderSpecificSettings

GetReplicationProviderSpecificSettings implements the ReplicationProviderSpecificSettingsClassification interface for type ReplicationProviderSpecificSettings.

func (ReplicationProviderSpecificSettings) MarshalJSON added in v1.1.0

func (r ReplicationProviderSpecificSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ReplicationProviderSpecificSettings.

func (*ReplicationProviderSpecificSettings) UnmarshalJSON

func (r *ReplicationProviderSpecificSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationProviderSpecificSettings.

type ReplicationProviderSpecificSettingsClassification

type ReplicationProviderSpecificSettingsClassification interface {
	// GetReplicationProviderSpecificSettings returns the ReplicationProviderSpecificSettings content of the underlying type.
	GetReplicationProviderSpecificSettings() *ReplicationProviderSpecificSettings
}

ReplicationProviderSpecificSettingsClassification provides polymorphic access to related types. Call the interface's GetReplicationProviderSpecificSettings() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *A2ACrossClusterMigrationReplicationDetails, *A2AReplicationDetails, *HyperVReplicaAzureReplicationDetails, *HyperVReplicaBaseReplicationDetails, - *HyperVReplicaBlueReplicationDetails, *HyperVReplicaReplicationDetails, *InMageAzureV2ReplicationDetails, *InMageRcmFailbackReplicationDetails, - *InMageRcmReplicationDetails, *InMageReplicationDetails, *ReplicationProviderSpecificSettings

type ReplicationProviderSpecificUpdateContainerMappingInput

type ReplicationProviderSpecificUpdateContainerMappingInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

ReplicationProviderSpecificUpdateContainerMappingInput - Provider specific input for update pairing operations.

func (*ReplicationProviderSpecificUpdateContainerMappingInput) GetReplicationProviderSpecificUpdateContainerMappingInput

func (r *ReplicationProviderSpecificUpdateContainerMappingInput) GetReplicationProviderSpecificUpdateContainerMappingInput() *ReplicationProviderSpecificUpdateContainerMappingInput

GetReplicationProviderSpecificUpdateContainerMappingInput implements the ReplicationProviderSpecificUpdateContainerMappingInputClassification interface for type ReplicationProviderSpecificUpdateContainerMappingInput.

func (ReplicationProviderSpecificUpdateContainerMappingInput) MarshalJSON added in v1.1.0

MarshalJSON implements the json.Marshaller interface for type ReplicationProviderSpecificUpdateContainerMappingInput.

func (*ReplicationProviderSpecificUpdateContainerMappingInput) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationProviderSpecificUpdateContainerMappingInput.

type ReplicationProviderSpecificUpdateContainerMappingInputClassification

type ReplicationProviderSpecificUpdateContainerMappingInputClassification interface {
	// GetReplicationProviderSpecificUpdateContainerMappingInput returns the ReplicationProviderSpecificUpdateContainerMappingInput content of the underlying type.
	GetReplicationProviderSpecificUpdateContainerMappingInput() *ReplicationProviderSpecificUpdateContainerMappingInput
}

ReplicationProviderSpecificUpdateContainerMappingInputClassification provides polymorphic access to related types. Call the interface's GetReplicationProviderSpecificUpdateContainerMappingInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *A2AUpdateContainerMappingInput, *InMageRcmUpdateContainerMappingInput, *ReplicationProviderSpecificUpdateContainerMappingInput

type ReplicationRecoveryPlansClient

type ReplicationRecoveryPlansClient struct {
	// contains filtered or unexported fields
}

ReplicationRecoveryPlansClient contains the methods for the ReplicationRecoveryPlans group. Don't use this type directly, use NewReplicationRecoveryPlansClient() instead.

func NewReplicationRecoveryPlansClient

func NewReplicationRecoveryPlansClient(resourceName string, resourceGroupName string, subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicationRecoveryPlansClient, error)

NewReplicationRecoveryPlansClient creates a new instance of ReplicationRecoveryPlansClient with the specified values. resourceName - The name of the recovery services vault. resourceGroupName - The name of the resource group where the recovery services vault is present. subscriptionID - The subscription Id. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*ReplicationRecoveryPlansClient) BeginCreate

BeginCreate - The operation to create a recovery plan. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 recoveryPlanName - Recovery plan name. input - Recovery Plan creation input. options - ReplicationRecoveryPlansClientBeginCreateOptions contains the optional parameters for the ReplicationRecoveryPlansClient.BeginCreate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationRecoveryPlans_Create.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationRecoveryPlansClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginCreate(ctx, "RPtest1", armrecoveryservicessiterecovery.CreateRecoveryPlanInput{
		Properties: &armrecoveryservicessiterecovery.CreateRecoveryPlanInputProperties{
			FailoverDeploymentModel: to.Ptr(armrecoveryservicessiterecovery.FailoverDeploymentModelResourceManager),
			Groups: []*armrecoveryservicessiterecovery.RecoveryPlanGroup{
				{
					EndGroupActions: []*armrecoveryservicessiterecovery.RecoveryPlanAction{},
					GroupType:       to.Ptr(armrecoveryservicessiterecovery.RecoveryPlanGroupTypeBoot),
					ReplicationProtectedItems: []*armrecoveryservicessiterecovery.RecoveryPlanProtectedItem{
						{
							ID:               to.Ptr("/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud1/replicationProtectionContainers/cloud_6d224fc6-f326-5d35-96de-fbf51efb3179/replicationProtectedItems/f8491e4f-817a-40dd-a90c-af773978c75b"),
							VirtualMachineID: to.Ptr("f8491e4f-817a-40dd-a90c-af773978c75b"),
						}},
					StartGroupActions: []*armrecoveryservicessiterecovery.RecoveryPlanAction{},
				}},
			PrimaryFabricID:  to.Ptr("/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud1"),
			RecoveryFabricID: to.Ptr("Microsoft Azure"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationRecoveryPlansClient) BeginDelete

BeginDelete - Delete a recovery plan. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 recoveryPlanName - Recovery plan name. options - ReplicationRecoveryPlansClientBeginDeleteOptions contains the optional parameters for the ReplicationRecoveryPlansClient.BeginDelete method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationRecoveryPlans_Delete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationRecoveryPlansClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginDelete(ctx, "RPtest1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*ReplicationRecoveryPlansClient) BeginFailoverCancel

BeginFailoverCancel - The operation to cancel the failover of a recovery plan. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 recoveryPlanName - Recovery plan name. options - ReplicationRecoveryPlansClientBeginFailoverCancelOptions contains the optional parameters for the ReplicationRecoveryPlansClient.BeginFailoverCancel method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationRecoveryPlans_FailoverCancel.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationRecoveryPlansClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginFailoverCancel(ctx, "RPtest1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationRecoveryPlansClient) BeginFailoverCommit

BeginFailoverCommit - The operation to commit the failover of a recovery plan. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 recoveryPlanName - Recovery plan name. options - ReplicationRecoveryPlansClientBeginFailoverCommitOptions contains the optional parameters for the ReplicationRecoveryPlansClient.BeginFailoverCommit method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationRecoveryPlans_FailoverCommit.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationRecoveryPlansClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginFailoverCommit(ctx, "RPtest1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationRecoveryPlansClient) BeginPlannedFailover

BeginPlannedFailover - The operation to start the planned failover of a recovery plan. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 recoveryPlanName - Recovery plan name. input - Failover input. options - ReplicationRecoveryPlansClientBeginPlannedFailoverOptions contains the optional parameters for the ReplicationRecoveryPlansClient.BeginPlannedFailover method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationRecoveryPlans_PlannedFailover.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationRecoveryPlansClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginPlannedFailover(ctx, "RPtest1", armrecoveryservicessiterecovery.RecoveryPlanPlannedFailoverInput{
		Properties: &armrecoveryservicessiterecovery.RecoveryPlanPlannedFailoverInputProperties{
			FailoverDirection: to.Ptr(armrecoveryservicessiterecovery.PossibleOperationsDirectionsPrimaryToRecovery),
			ProviderSpecificDetails: []armrecoveryservicessiterecovery.RecoveryPlanProviderSpecificFailoverInputClassification{
				&armrecoveryservicessiterecovery.RecoveryPlanHyperVReplicaAzureFailoverInput{
					InstanceType: to.Ptr("HyperVReplicaAzure"),
				}},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationRecoveryPlansClient) BeginReprotect

BeginReprotect - The operation to reprotect(reverse replicate) a recovery plan. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 recoveryPlanName - Recovery plan name. options - ReplicationRecoveryPlansClientBeginReprotectOptions contains the optional parameters for the ReplicationRecoveryPlansClient.BeginReprotect method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationRecoveryPlans_Reprotect.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationRecoveryPlansClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginReprotect(ctx, "RPtest1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationRecoveryPlansClient) BeginTestFailover

BeginTestFailover - The operation to start the test failover of a recovery plan. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 recoveryPlanName - Recovery plan name. input - Recovery plan test failover input. options - ReplicationRecoveryPlansClientBeginTestFailoverOptions contains the optional parameters for the ReplicationRecoveryPlansClient.BeginTestFailover method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationRecoveryPlans_TestFailover.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationRecoveryPlansClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginTestFailover(ctx, "RPtest1", armrecoveryservicessiterecovery.RecoveryPlanTestFailoverInput{
		Properties: &armrecoveryservicessiterecovery.RecoveryPlanTestFailoverInputProperties{
			FailoverDirection: to.Ptr(armrecoveryservicessiterecovery.PossibleOperationsDirectionsPrimaryToRecovery),
			NetworkID:         to.Ptr("/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryProd1/providers/Microsoft.Network/virtualNetworks/vnetavrai"),
			NetworkType:       to.Ptr("VmNetworkAsInput"),
			ProviderSpecificDetails: []armrecoveryservicessiterecovery.RecoveryPlanProviderSpecificFailoverInputClassification{
				&armrecoveryservicessiterecovery.RecoveryPlanHyperVReplicaAzureFailoverInput{
					InstanceType: to.Ptr("HyperVReplicaAzure"),
				}},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationRecoveryPlansClient) BeginTestFailoverCleanup

BeginTestFailoverCleanup - The operation to cleanup test failover of a recovery plan. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 recoveryPlanName - Recovery plan name. input - Recovery plan test failover cleanup input. options - ReplicationRecoveryPlansClientBeginTestFailoverCleanupOptions contains the optional parameters for the ReplicationRecoveryPlansClient.BeginTestFailoverCleanup method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationRecoveryPlans_TestFailoverCleanup.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationRecoveryPlansClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginTestFailoverCleanup(ctx, "RPtest1", armrecoveryservicessiterecovery.RecoveryPlanTestFailoverCleanupInput{
		Properties: &armrecoveryservicessiterecovery.RecoveryPlanTestFailoverCleanupInputProperties{
			Comments: to.Ptr("Test Failover Cleanup"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationRecoveryPlansClient) BeginUnplannedFailover

BeginUnplannedFailover - The operation to start the unplanned failover of a recovery plan. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 recoveryPlanName - Recovery plan name. input - Recovery plan unplanned failover input. options - ReplicationRecoveryPlansClientBeginUnplannedFailoverOptions contains the optional parameters for the ReplicationRecoveryPlansClient.BeginUnplannedFailover method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationRecoveryPlans_UnplannedFailover.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationRecoveryPlansClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginUnplannedFailover(ctx, "RPtest1", armrecoveryservicessiterecovery.RecoveryPlanUnplannedFailoverInput{
		Properties: &armrecoveryservicessiterecovery.RecoveryPlanUnplannedFailoverInputProperties{
			FailoverDirection: to.Ptr(armrecoveryservicessiterecovery.PossibleOperationsDirectionsPrimaryToRecovery),
			ProviderSpecificDetails: []armrecoveryservicessiterecovery.RecoveryPlanProviderSpecificFailoverInputClassification{
				&armrecoveryservicessiterecovery.RecoveryPlanHyperVReplicaAzureFailoverInput{
					InstanceType: to.Ptr("HyperVReplicaAzure"),
				}},
			SourceSiteOperations: to.Ptr(armrecoveryservicessiterecovery.SourceSiteOperationsRequired),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationRecoveryPlansClient) BeginUpdate

BeginUpdate - The operation to update a recovery plan. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 recoveryPlanName - Recovery plan name. input - Update recovery plan input. options - ReplicationRecoveryPlansClientBeginUpdateOptions contains the optional parameters for the ReplicationRecoveryPlansClient.BeginUpdate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationRecoveryPlans_Update.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationRecoveryPlansClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginUpdate(ctx, "RPtest1", armrecoveryservicessiterecovery.UpdateRecoveryPlanInput{
		Properties: &armrecoveryservicessiterecovery.UpdateRecoveryPlanInputProperties{
			Groups: []*armrecoveryservicessiterecovery.RecoveryPlanGroup{
				{
					EndGroupActions:           []*armrecoveryservicessiterecovery.RecoveryPlanAction{},
					GroupType:                 to.Ptr(armrecoveryservicessiterecovery.RecoveryPlanGroupTypeShutdown),
					ReplicationProtectedItems: []*armrecoveryservicessiterecovery.RecoveryPlanProtectedItem{},
					StartGroupActions:         []*armrecoveryservicessiterecovery.RecoveryPlanAction{},
				},
				{
					EndGroupActions:           []*armrecoveryservicessiterecovery.RecoveryPlanAction{},
					GroupType:                 to.Ptr(armrecoveryservicessiterecovery.RecoveryPlanGroupTypeFailover),
					ReplicationProtectedItems: []*armrecoveryservicessiterecovery.RecoveryPlanProtectedItem{},
					StartGroupActions:         []*armrecoveryservicessiterecovery.RecoveryPlanAction{},
				},
				{
					EndGroupActions: []*armrecoveryservicessiterecovery.RecoveryPlanAction{},
					GroupType:       to.Ptr(armrecoveryservicessiterecovery.RecoveryPlanGroupTypeBoot),
					ReplicationProtectedItems: []*armrecoveryservicessiterecovery.RecoveryPlanProtectedItem{
						{
							ID:               to.Ptr("/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud1/replicationProtectionContainers/cloud_6d224fc6-f326-5d35-96de-fbf51efb3179/replicationProtectedItems/f8491e4f-817a-40dd-a90c-af773978c75b"),
							VirtualMachineID: to.Ptr("f8491e4f-817a-40dd-a90c-af773978c75b"),
						}},
					StartGroupActions: []*armrecoveryservicessiterecovery.RecoveryPlanAction{},
				},
				{
					EndGroupActions: []*armrecoveryservicessiterecovery.RecoveryPlanAction{},
					GroupType:       to.Ptr(armrecoveryservicessiterecovery.RecoveryPlanGroupTypeBoot),
					ReplicationProtectedItems: []*armrecoveryservicessiterecovery.RecoveryPlanProtectedItem{
						{
							ID:               to.Ptr("/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud1/replicationProtectionContainers/cloud_6d224fc6-f326-5d35-96de-fbf51efb3179/replicationProtectedItems/c0c14913-3d7a-48ea-9531-cc99e0e686e6"),
							VirtualMachineID: to.Ptr("c0c14913-3d7a-48ea-9531-cc99e0e686e6"),
						}},
					StartGroupActions: []*armrecoveryservicessiterecovery.RecoveryPlanAction{},
				}},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationRecoveryPlansClient) Get

Get - Gets the details of the recovery plan. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 recoveryPlanName - Name of the recovery plan. options - ReplicationRecoveryPlansClientGetOptions contains the optional parameters for the ReplicationRecoveryPlansClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationRecoveryPlans_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationRecoveryPlansClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx, "RPtest1", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationRecoveryPlansClient) NewListPager added in v0.4.0

NewListPager - Lists the recovery plans in the vault. Generated from API version 2022-10-01 options - ReplicationRecoveryPlansClientListOptions contains the optional parameters for the ReplicationRecoveryPlansClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationRecoveryPlans_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationRecoveryPlansClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager(nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type ReplicationRecoveryPlansClientBeginCreateOptions added in v0.2.0

type ReplicationRecoveryPlansClientBeginCreateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationRecoveryPlansClientBeginCreateOptions contains the optional parameters for the ReplicationRecoveryPlansClient.BeginCreate method.

type ReplicationRecoveryPlansClientBeginDeleteOptions added in v0.2.0

type ReplicationRecoveryPlansClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationRecoveryPlansClientBeginDeleteOptions contains the optional parameters for the ReplicationRecoveryPlansClient.BeginDelete method.

type ReplicationRecoveryPlansClientBeginFailoverCancelOptions added in v0.2.0

type ReplicationRecoveryPlansClientBeginFailoverCancelOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationRecoveryPlansClientBeginFailoverCancelOptions contains the optional parameters for the ReplicationRecoveryPlansClient.BeginFailoverCancel method.

type ReplicationRecoveryPlansClientBeginFailoverCommitOptions added in v0.2.0

type ReplicationRecoveryPlansClientBeginFailoverCommitOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationRecoveryPlansClientBeginFailoverCommitOptions contains the optional parameters for the ReplicationRecoveryPlansClient.BeginFailoverCommit method.

type ReplicationRecoveryPlansClientBeginPlannedFailoverOptions added in v0.2.0

type ReplicationRecoveryPlansClientBeginPlannedFailoverOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationRecoveryPlansClientBeginPlannedFailoverOptions contains the optional parameters for the ReplicationRecoveryPlansClient.BeginPlannedFailover method.

type ReplicationRecoveryPlansClientBeginReprotectOptions added in v0.2.0

type ReplicationRecoveryPlansClientBeginReprotectOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationRecoveryPlansClientBeginReprotectOptions contains the optional parameters for the ReplicationRecoveryPlansClient.BeginReprotect method.

type ReplicationRecoveryPlansClientBeginTestFailoverCleanupOptions added in v0.2.0

type ReplicationRecoveryPlansClientBeginTestFailoverCleanupOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationRecoveryPlansClientBeginTestFailoverCleanupOptions contains the optional parameters for the ReplicationRecoveryPlansClient.BeginTestFailoverCleanup method.

type ReplicationRecoveryPlansClientBeginTestFailoverOptions added in v0.2.0

type ReplicationRecoveryPlansClientBeginTestFailoverOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationRecoveryPlansClientBeginTestFailoverOptions contains the optional parameters for the ReplicationRecoveryPlansClient.BeginTestFailover method.

type ReplicationRecoveryPlansClientBeginUnplannedFailoverOptions added in v0.2.0

type ReplicationRecoveryPlansClientBeginUnplannedFailoverOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationRecoveryPlansClientBeginUnplannedFailoverOptions contains the optional parameters for the ReplicationRecoveryPlansClient.BeginUnplannedFailover method.

type ReplicationRecoveryPlansClientBeginUpdateOptions added in v0.2.0

type ReplicationRecoveryPlansClientBeginUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationRecoveryPlansClientBeginUpdateOptions contains the optional parameters for the ReplicationRecoveryPlansClient.BeginUpdate method.

type ReplicationRecoveryPlansClientCreateResponse added in v0.2.0

type ReplicationRecoveryPlansClientCreateResponse struct {
	RecoveryPlan
}

ReplicationRecoveryPlansClientCreateResponse contains the response from method ReplicationRecoveryPlansClient.Create.

type ReplicationRecoveryPlansClientDeleteResponse added in v0.2.0

type ReplicationRecoveryPlansClientDeleteResponse struct {
}

ReplicationRecoveryPlansClientDeleteResponse contains the response from method ReplicationRecoveryPlansClient.Delete.

type ReplicationRecoveryPlansClientFailoverCancelResponse added in v0.2.0

type ReplicationRecoveryPlansClientFailoverCancelResponse struct {
	RecoveryPlan
}

ReplicationRecoveryPlansClientFailoverCancelResponse contains the response from method ReplicationRecoveryPlansClient.FailoverCancel.

type ReplicationRecoveryPlansClientFailoverCommitResponse added in v0.2.0

type ReplicationRecoveryPlansClientFailoverCommitResponse struct {
	RecoveryPlan
}

ReplicationRecoveryPlansClientFailoverCommitResponse contains the response from method ReplicationRecoveryPlansClient.FailoverCommit.

type ReplicationRecoveryPlansClientGetOptions added in v0.2.0

type ReplicationRecoveryPlansClientGetOptions struct {
}

ReplicationRecoveryPlansClientGetOptions contains the optional parameters for the ReplicationRecoveryPlansClient.Get method.

type ReplicationRecoveryPlansClientGetResponse added in v0.2.0

type ReplicationRecoveryPlansClientGetResponse struct {
	RecoveryPlan
}

ReplicationRecoveryPlansClientGetResponse contains the response from method ReplicationRecoveryPlansClient.Get.

type ReplicationRecoveryPlansClientListOptions added in v0.2.0

type ReplicationRecoveryPlansClientListOptions struct {
}

ReplicationRecoveryPlansClientListOptions contains the optional parameters for the ReplicationRecoveryPlansClient.List method.

type ReplicationRecoveryPlansClientListResponse added in v0.2.0

type ReplicationRecoveryPlansClientListResponse struct {
	RecoveryPlanCollection
}

ReplicationRecoveryPlansClientListResponse contains the response from method ReplicationRecoveryPlansClient.List.

type ReplicationRecoveryPlansClientPlannedFailoverResponse added in v0.2.0

type ReplicationRecoveryPlansClientPlannedFailoverResponse struct {
	RecoveryPlan
}

ReplicationRecoveryPlansClientPlannedFailoverResponse contains the response from method ReplicationRecoveryPlansClient.PlannedFailover.

type ReplicationRecoveryPlansClientReprotectResponse added in v0.2.0

type ReplicationRecoveryPlansClientReprotectResponse struct {
	RecoveryPlan
}

ReplicationRecoveryPlansClientReprotectResponse contains the response from method ReplicationRecoveryPlansClient.Reprotect.

type ReplicationRecoveryPlansClientTestFailoverCleanupResponse added in v0.2.0

type ReplicationRecoveryPlansClientTestFailoverCleanupResponse struct {
	RecoveryPlan
}

ReplicationRecoveryPlansClientTestFailoverCleanupResponse contains the response from method ReplicationRecoveryPlansClient.TestFailoverCleanup.

type ReplicationRecoveryPlansClientTestFailoverResponse added in v0.2.0

type ReplicationRecoveryPlansClientTestFailoverResponse struct {
	RecoveryPlan
}

ReplicationRecoveryPlansClientTestFailoverResponse contains the response from method ReplicationRecoveryPlansClient.TestFailover.

type ReplicationRecoveryPlansClientUnplannedFailoverResponse added in v0.2.0

type ReplicationRecoveryPlansClientUnplannedFailoverResponse struct {
	RecoveryPlan
}

ReplicationRecoveryPlansClientUnplannedFailoverResponse contains the response from method ReplicationRecoveryPlansClient.UnplannedFailover.

type ReplicationRecoveryPlansClientUpdateResponse added in v0.2.0

type ReplicationRecoveryPlansClientUpdateResponse struct {
	RecoveryPlan
}

ReplicationRecoveryPlansClientUpdateResponse contains the response from method ReplicationRecoveryPlansClient.Update.

type ReplicationRecoveryServicesProvidersClient

type ReplicationRecoveryServicesProvidersClient struct {
	// contains filtered or unexported fields
}

ReplicationRecoveryServicesProvidersClient contains the methods for the ReplicationRecoveryServicesProviders group. Don't use this type directly, use NewReplicationRecoveryServicesProvidersClient() instead.

func NewReplicationRecoveryServicesProvidersClient

func NewReplicationRecoveryServicesProvidersClient(resourceName string, resourceGroupName string, subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicationRecoveryServicesProvidersClient, error)

NewReplicationRecoveryServicesProvidersClient creates a new instance of ReplicationRecoveryServicesProvidersClient with the specified values. resourceName - The name of the recovery services vault. resourceGroupName - The name of the resource group where the recovery services vault is present. subscriptionID - The subscription Id. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*ReplicationRecoveryServicesProvidersClient) BeginCreate

BeginCreate - The operation to add a recovery services provider. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. providerName - Recovery services provider name. addProviderInput - Add provider input. options - ReplicationRecoveryServicesProvidersClientBeginCreateOptions contains the optional parameters for the ReplicationRecoveryServicesProvidersClient.BeginCreate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationRecoveryServicesProviders_Create.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationRecoveryServicesProvidersClient("migrationvault", "resourcegroup1", "cb53d0c3-bd59-4721-89bc-06916a9147ef", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginCreate(ctx, "vmwarefabric1", "vmwareprovider1", armrecoveryservicessiterecovery.AddRecoveryServicesProviderInput{
		Properties: &armrecoveryservicessiterecovery.AddRecoveryServicesProviderInputProperties{
			AuthenticationIdentityInput: &armrecoveryservicessiterecovery.IdentityProviderInput{
				AADAuthority:  to.Ptr("https://login.microsoftonline.com"),
				ApplicationID: to.Ptr("f66fce08-c0c6-47a1-beeb-0ede5ea94f90"),
				Audience:      to.Ptr("https://microsoft.onmicrosoft.com/cf19e349-644c-4c6a-bcae-9c8f35357874"),
				ObjectID:      to.Ptr("141360b8-5686-4240-a027-5e24e6affeba"),
				TenantID:      to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"),
			},
			MachineName: to.Ptr("vmwareprovider1"),
			ResourceAccessIdentityInput: &armrecoveryservicessiterecovery.IdentityProviderInput{
				AADAuthority:  to.Ptr("https://login.microsoftonline.com"),
				ApplicationID: to.Ptr("f66fce08-c0c6-47a1-beeb-0ede5ea94f90"),
				Audience:      to.Ptr("https://microsoft.onmicrosoft.com/cf19e349-644c-4c6a-bcae-9c8f35357874"),
				ObjectID:      to.Ptr("141360b8-5686-4240-a027-5e24e6affeba"),
				TenantID:      to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationRecoveryServicesProvidersClient) BeginDelete

BeginDelete - The operation to removes/delete(unregister) a recovery services provider from the vault. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. providerName - Recovery services provider name. options - ReplicationRecoveryServicesProvidersClientBeginDeleteOptions contains the optional parameters for the ReplicationRecoveryServicesProvidersClient.BeginDelete method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationRecoveryServicesProviders_Delete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationRecoveryServicesProvidersClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginDelete(ctx, "cloud1", "241641e6-ee7b-4ee4-8141-821fadda43fa", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*ReplicationRecoveryServicesProvidersClient) BeginPurge

BeginPurge - The operation to purge(force delete) a recovery services provider from the vault. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. providerName - Recovery services provider name. options - ReplicationRecoveryServicesProvidersClientBeginPurgeOptions contains the optional parameters for the ReplicationRecoveryServicesProvidersClient.BeginPurge method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationRecoveryServicesProviders_Purge.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationRecoveryServicesProvidersClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginPurge(ctx, "cloud1", "241641e6-ee7b-4ee4-8141-821fadda43fa", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*ReplicationRecoveryServicesProvidersClient) BeginRefreshProvider

BeginRefreshProvider - The operation to refresh the information from the recovery services provider. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. providerName - Recovery services provider name. options - ReplicationRecoveryServicesProvidersClientBeginRefreshProviderOptions contains the optional parameters for the ReplicationRecoveryServicesProvidersClient.BeginRefreshProvider method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationRecoveryServicesProviders_RefreshProvider.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationRecoveryServicesProvidersClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginRefreshProvider(ctx, "cloud1", "241641e6-ee7b-4ee4-8141-821fadda43fa", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationRecoveryServicesProvidersClient) Get

Get - Gets the details of registered recovery services provider. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. providerName - Recovery services provider name. options - ReplicationRecoveryServicesProvidersClientGetOptions contains the optional parameters for the ReplicationRecoveryServicesProvidersClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationRecoveryServicesProviders_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationRecoveryServicesProvidersClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx, "cloud1", "241641e6-ee7b-4ee4-8141-821fadda43fa", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationRecoveryServicesProvidersClient) NewListByReplicationFabricsPager added in v0.4.0

NewListByReplicationFabricsPager - Lists the registered recovery services providers for the specified fabric. Generated from API version 2022-10-01 fabricName - Fabric name. options - ReplicationRecoveryServicesProvidersClientListByReplicationFabricsOptions contains the optional parameters for the ReplicationRecoveryServicesProvidersClient.ListByReplicationFabrics method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationRecoveryServicesProviders_ListByReplicationFabrics.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationRecoveryServicesProvidersClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListByReplicationFabricsPager("cloud1", nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

func (*ReplicationRecoveryServicesProvidersClient) NewListPager added in v0.4.0

NewListPager - Lists the registered recovery services providers in the vault. Generated from API version 2022-10-01 options - ReplicationRecoveryServicesProvidersClientListOptions contains the optional parameters for the ReplicationRecoveryServicesProvidersClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationRecoveryServicesProviders_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationRecoveryServicesProvidersClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager(nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type ReplicationRecoveryServicesProvidersClientBeginCreateOptions added in v0.2.0

type ReplicationRecoveryServicesProvidersClientBeginCreateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationRecoveryServicesProvidersClientBeginCreateOptions contains the optional parameters for the ReplicationRecoveryServicesProvidersClient.BeginCreate method.

type ReplicationRecoveryServicesProvidersClientBeginDeleteOptions added in v0.2.0

type ReplicationRecoveryServicesProvidersClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationRecoveryServicesProvidersClientBeginDeleteOptions contains the optional parameters for the ReplicationRecoveryServicesProvidersClient.BeginDelete method.

type ReplicationRecoveryServicesProvidersClientBeginPurgeOptions added in v0.2.0

type ReplicationRecoveryServicesProvidersClientBeginPurgeOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationRecoveryServicesProvidersClientBeginPurgeOptions contains the optional parameters for the ReplicationRecoveryServicesProvidersClient.BeginPurge method.

type ReplicationRecoveryServicesProvidersClientBeginRefreshProviderOptions added in v0.2.0

type ReplicationRecoveryServicesProvidersClientBeginRefreshProviderOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationRecoveryServicesProvidersClientBeginRefreshProviderOptions contains the optional parameters for the ReplicationRecoveryServicesProvidersClient.BeginRefreshProvider method.

type ReplicationRecoveryServicesProvidersClientCreateResponse added in v0.2.0

type ReplicationRecoveryServicesProvidersClientCreateResponse struct {
	RecoveryServicesProvider
}

ReplicationRecoveryServicesProvidersClientCreateResponse contains the response from method ReplicationRecoveryServicesProvidersClient.Create.

type ReplicationRecoveryServicesProvidersClientDeleteResponse added in v0.2.0

type ReplicationRecoveryServicesProvidersClientDeleteResponse struct {
}

ReplicationRecoveryServicesProvidersClientDeleteResponse contains the response from method ReplicationRecoveryServicesProvidersClient.Delete.

type ReplicationRecoveryServicesProvidersClientGetOptions added in v0.2.0

type ReplicationRecoveryServicesProvidersClientGetOptions struct {
}

ReplicationRecoveryServicesProvidersClientGetOptions contains the optional parameters for the ReplicationRecoveryServicesProvidersClient.Get method.

type ReplicationRecoveryServicesProvidersClientGetResponse added in v0.2.0

type ReplicationRecoveryServicesProvidersClientGetResponse struct {
	RecoveryServicesProvider
}

ReplicationRecoveryServicesProvidersClientGetResponse contains the response from method ReplicationRecoveryServicesProvidersClient.Get.

type ReplicationRecoveryServicesProvidersClientListByReplicationFabricsOptions added in v0.2.0

type ReplicationRecoveryServicesProvidersClientListByReplicationFabricsOptions struct {
}

ReplicationRecoveryServicesProvidersClientListByReplicationFabricsOptions contains the optional parameters for the ReplicationRecoveryServicesProvidersClient.ListByReplicationFabrics method.

type ReplicationRecoveryServicesProvidersClientListByReplicationFabricsResponse added in v0.2.0

type ReplicationRecoveryServicesProvidersClientListByReplicationFabricsResponse struct {
	RecoveryServicesProviderCollection
}

ReplicationRecoveryServicesProvidersClientListByReplicationFabricsResponse contains the response from method ReplicationRecoveryServicesProvidersClient.ListByReplicationFabrics.

type ReplicationRecoveryServicesProvidersClientListOptions added in v0.2.0

type ReplicationRecoveryServicesProvidersClientListOptions struct {
}

ReplicationRecoveryServicesProvidersClientListOptions contains the optional parameters for the ReplicationRecoveryServicesProvidersClient.List method.

type ReplicationRecoveryServicesProvidersClientListResponse added in v0.2.0

type ReplicationRecoveryServicesProvidersClientListResponse struct {
	RecoveryServicesProviderCollection
}

ReplicationRecoveryServicesProvidersClientListResponse contains the response from method ReplicationRecoveryServicesProvidersClient.List.

type ReplicationRecoveryServicesProvidersClientPurgeResponse added in v0.2.0

type ReplicationRecoveryServicesProvidersClientPurgeResponse struct {
}

ReplicationRecoveryServicesProvidersClientPurgeResponse contains the response from method ReplicationRecoveryServicesProvidersClient.Purge.

type ReplicationRecoveryServicesProvidersClientRefreshProviderResponse added in v0.2.0

type ReplicationRecoveryServicesProvidersClientRefreshProviderResponse struct {
	RecoveryServicesProvider
}

ReplicationRecoveryServicesProvidersClientRefreshProviderResponse contains the response from method ReplicationRecoveryServicesProvidersClient.RefreshProvider.

type ReplicationStorageClassificationMappingsClient

type ReplicationStorageClassificationMappingsClient struct {
	// contains filtered or unexported fields
}

ReplicationStorageClassificationMappingsClient contains the methods for the ReplicationStorageClassificationMappings group. Don't use this type directly, use NewReplicationStorageClassificationMappingsClient() instead.

func NewReplicationStorageClassificationMappingsClient

func NewReplicationStorageClassificationMappingsClient(resourceName string, resourceGroupName string, subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicationStorageClassificationMappingsClient, error)

NewReplicationStorageClassificationMappingsClient creates a new instance of ReplicationStorageClassificationMappingsClient with the specified values. resourceName - The name of the recovery services vault. resourceGroupName - The name of the resource group where the recovery services vault is present. subscriptionID - The subscription Id. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*ReplicationStorageClassificationMappingsClient) BeginCreate

BeginCreate - The operation to create a storage classification mapping. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. storageClassificationName - Storage classification name. storageClassificationMappingName - Storage classification mapping name. pairingInput - Pairing input. options - ReplicationStorageClassificationMappingsClientBeginCreateOptions contains the optional parameters for the ReplicationStorageClassificationMappingsClient.BeginCreate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassificationMappings_Create.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationStorageClassificationMappingsClient("vault1", "resourceGroupPS1", "9112a37f-0f3e-46ec-9c00-060c6edca071", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginCreate(ctx, "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", "8891569e-aaef-4a46-a4a0-78c14f2d7b09", "testStorageMapping", armrecoveryservicessiterecovery.StorageClassificationMappingInput{
		Properties: &armrecoveryservicessiterecovery.StorageMappingInputProperties{
			TargetStorageClassificationID: to.Ptr("/Subscriptions/9112a37f-0f3e-46ec-9c00-060c6edca071/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0/replicationStorageClassifications/8891569e-aaef-4a46-a4a0-78c14f2d7b09"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationStorageClassificationMappingsClient) BeginDelete

BeginDelete - The operation to delete a storage classification mapping. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. storageClassificationName - Storage classification name. storageClassificationMappingName - Storage classification mapping name. options - ReplicationStorageClassificationMappingsClientBeginDeleteOptions contains the optional parameters for the ReplicationStorageClassificationMappingsClient.BeginDelete method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassificationMappings_Delete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationStorageClassificationMappingsClient("vault1", "resourceGroupPS1", "9112a37f-0f3e-46ec-9c00-060c6edca071", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginDelete(ctx, "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", "8891569e-aaef-4a46-a4a0-78c14f2d7b09", "testStorageMapping", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*ReplicationStorageClassificationMappingsClient) Get

Get - Gets the details of the specified storage classification mapping. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. storageClassificationName - Storage classification name. storageClassificationMappingName - Storage classification mapping name. options - ReplicationStorageClassificationMappingsClientGetOptions contains the optional parameters for the ReplicationStorageClassificationMappingsClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassificationMappings_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationStorageClassificationMappingsClient("vault1", "resourceGroupPS1", "9112a37f-0f3e-46ec-9c00-060c6edca071", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx, "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", "8891569e-aaef-4a46-a4a0-78c14f2d7b09", "testStorageMapping", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationStorageClassificationMappingsClient) NewListByReplicationStorageClassificationsPager added in v0.4.0

NewListByReplicationStorageClassificationsPager - Lists the storage classification mappings for the fabric. Generated from API version 2022-10-01 fabricName - Fabric name. storageClassificationName - Storage classification name. options - ReplicationStorageClassificationMappingsClientListByReplicationStorageClassificationsOptions contains the optional parameters for the ReplicationStorageClassificationMappingsClient.ListByReplicationStorageClassifications method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassificationMappings_ListByReplicationStorageClassifications.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationStorageClassificationMappingsClient("vault1", "resourceGroupPS1", "9112a37f-0f3e-46ec-9c00-060c6edca071", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListByReplicationStorageClassificationsPager("2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", "8891569e-aaef-4a46-a4a0-78c14f2d7b09", nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

func (*ReplicationStorageClassificationMappingsClient) NewListPager added in v0.4.0

NewListPager - Lists the storage classification mappings in the vault. Generated from API version 2022-10-01 options - ReplicationStorageClassificationMappingsClientListOptions contains the optional parameters for the ReplicationStorageClassificationMappingsClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassificationMappings_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationStorageClassificationMappingsClient("vault1", "resourceGroupPS1", "9112a37f-0f3e-46ec-9c00-060c6edca071", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager(nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type ReplicationStorageClassificationMappingsClientBeginCreateOptions added in v0.2.0

type ReplicationStorageClassificationMappingsClientBeginCreateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationStorageClassificationMappingsClientBeginCreateOptions contains the optional parameters for the ReplicationStorageClassificationMappingsClient.BeginCreate method.

type ReplicationStorageClassificationMappingsClientBeginDeleteOptions added in v0.2.0

type ReplicationStorageClassificationMappingsClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationStorageClassificationMappingsClientBeginDeleteOptions contains the optional parameters for the ReplicationStorageClassificationMappingsClient.BeginDelete method.

type ReplicationStorageClassificationMappingsClientCreateResponse added in v0.2.0

type ReplicationStorageClassificationMappingsClientCreateResponse struct {
	StorageClassificationMapping
}

ReplicationStorageClassificationMappingsClientCreateResponse contains the response from method ReplicationStorageClassificationMappingsClient.Create.

type ReplicationStorageClassificationMappingsClientDeleteResponse added in v0.2.0

type ReplicationStorageClassificationMappingsClientDeleteResponse struct {
}

ReplicationStorageClassificationMappingsClientDeleteResponse contains the response from method ReplicationStorageClassificationMappingsClient.Delete.

type ReplicationStorageClassificationMappingsClientGetOptions added in v0.2.0

type ReplicationStorageClassificationMappingsClientGetOptions struct {
}

ReplicationStorageClassificationMappingsClientGetOptions contains the optional parameters for the ReplicationStorageClassificationMappingsClient.Get method.

type ReplicationStorageClassificationMappingsClientGetResponse added in v0.2.0

type ReplicationStorageClassificationMappingsClientGetResponse struct {
	StorageClassificationMapping
}

ReplicationStorageClassificationMappingsClientGetResponse contains the response from method ReplicationStorageClassificationMappingsClient.Get.

type ReplicationStorageClassificationMappingsClientListByReplicationStorageClassificationsOptions added in v0.2.0

type ReplicationStorageClassificationMappingsClientListByReplicationStorageClassificationsOptions struct {
}

ReplicationStorageClassificationMappingsClientListByReplicationStorageClassificationsOptions contains the optional parameters for the ReplicationStorageClassificationMappingsClient.ListByReplicationStorageClassifications method.

type ReplicationStorageClassificationMappingsClientListByReplicationStorageClassificationsResponse added in v0.2.0

type ReplicationStorageClassificationMappingsClientListByReplicationStorageClassificationsResponse struct {
	StorageClassificationMappingCollection
}

ReplicationStorageClassificationMappingsClientListByReplicationStorageClassificationsResponse contains the response from method ReplicationStorageClassificationMappingsClient.ListByReplicationStorageClassifications.

type ReplicationStorageClassificationMappingsClientListOptions added in v0.2.0

type ReplicationStorageClassificationMappingsClientListOptions struct {
}

ReplicationStorageClassificationMappingsClientListOptions contains the optional parameters for the ReplicationStorageClassificationMappingsClient.List method.

type ReplicationStorageClassificationMappingsClientListResponse added in v0.2.0

type ReplicationStorageClassificationMappingsClientListResponse struct {
	StorageClassificationMappingCollection
}

ReplicationStorageClassificationMappingsClientListResponse contains the response from method ReplicationStorageClassificationMappingsClient.List.

type ReplicationStorageClassificationsClient

type ReplicationStorageClassificationsClient struct {
	// contains filtered or unexported fields
}

ReplicationStorageClassificationsClient contains the methods for the ReplicationStorageClassifications group. Don't use this type directly, use NewReplicationStorageClassificationsClient() instead.

func NewReplicationStorageClassificationsClient

func NewReplicationStorageClassificationsClient(resourceName string, resourceGroupName string, subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicationStorageClassificationsClient, error)

NewReplicationStorageClassificationsClient creates a new instance of ReplicationStorageClassificationsClient with the specified values. resourceName - The name of the recovery services vault. resourceGroupName - The name of the resource group where the recovery services vault is present. subscriptionID - The subscription Id. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*ReplicationStorageClassificationsClient) Get

Get - Gets the details of the specified storage classification. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. storageClassificationName - Storage classification name. options - ReplicationStorageClassificationsClientGetOptions contains the optional parameters for the ReplicationStorageClassificationsClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassifications_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationStorageClassificationsClient("vault1", "resourceGroupPS1", "9112a37f-0f3e-46ec-9c00-060c6edca071", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx, "2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", "8891569e-aaef-4a46-a4a0-78c14f2d7b09", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationStorageClassificationsClient) NewListByReplicationFabricsPager added in v0.4.0

NewListByReplicationFabricsPager - Lists the storage classifications available in the specified fabric. Generated from API version 2022-10-01 fabricName - Site name of interest. options - ReplicationStorageClassificationsClientListByReplicationFabricsOptions contains the optional parameters for the ReplicationStorageClassificationsClient.ListByReplicationFabrics method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassifications_ListByReplicationFabrics.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationStorageClassificationsClient("vault1", "resourceGroupPS1", "9112a37f-0f3e-46ec-9c00-060c6edca071", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListByReplicationFabricsPager("2a48e3770ac08aa2be8bfbd94fcfb1cbf2dcc487b78fb9d3bd778304441b06a0", nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

func (*ReplicationStorageClassificationsClient) NewListPager added in v0.4.0

NewListPager - Lists the storage classifications in the vault. Generated from API version 2022-10-01 options - ReplicationStorageClassificationsClientListOptions contains the optional parameters for the ReplicationStorageClassificationsClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationStorageClassifications_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationStorageClassificationsClient("vault1", "resourceGroupPS1", "9112a37f-0f3e-46ec-9c00-060c6edca071", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager(nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type ReplicationStorageClassificationsClientGetOptions added in v0.2.0

type ReplicationStorageClassificationsClientGetOptions struct {
}

ReplicationStorageClassificationsClientGetOptions contains the optional parameters for the ReplicationStorageClassificationsClient.Get method.

type ReplicationStorageClassificationsClientGetResponse added in v0.2.0

type ReplicationStorageClassificationsClientGetResponse struct {
	StorageClassification
}

ReplicationStorageClassificationsClientGetResponse contains the response from method ReplicationStorageClassificationsClient.Get.

type ReplicationStorageClassificationsClientListByReplicationFabricsOptions added in v0.2.0

type ReplicationStorageClassificationsClientListByReplicationFabricsOptions struct {
}

ReplicationStorageClassificationsClientListByReplicationFabricsOptions contains the optional parameters for the ReplicationStorageClassificationsClient.ListByReplicationFabrics method.

type ReplicationStorageClassificationsClientListByReplicationFabricsResponse added in v0.2.0

type ReplicationStorageClassificationsClientListByReplicationFabricsResponse struct {
	StorageClassificationCollection
}

ReplicationStorageClassificationsClientListByReplicationFabricsResponse contains the response from method ReplicationStorageClassificationsClient.ListByReplicationFabrics.

type ReplicationStorageClassificationsClientListOptions added in v0.2.0

type ReplicationStorageClassificationsClientListOptions struct {
}

ReplicationStorageClassificationsClientListOptions contains the optional parameters for the ReplicationStorageClassificationsClient.List method.

type ReplicationStorageClassificationsClientListResponse added in v0.2.0

type ReplicationStorageClassificationsClientListResponse struct {
	StorageClassificationCollection
}

ReplicationStorageClassificationsClientListResponse contains the response from method ReplicationStorageClassificationsClient.List.

type ReplicationVaultHealthClient

type ReplicationVaultHealthClient struct {
	// contains filtered or unexported fields
}

ReplicationVaultHealthClient contains the methods for the ReplicationVaultHealth group. Don't use this type directly, use NewReplicationVaultHealthClient() instead.

func NewReplicationVaultHealthClient

func NewReplicationVaultHealthClient(resourceName string, resourceGroupName string, subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicationVaultHealthClient, error)

NewReplicationVaultHealthClient creates a new instance of ReplicationVaultHealthClient with the specified values. resourceName - The name of the recovery services vault. resourceGroupName - The name of the resource group where the recovery services vault is present. subscriptionID - The subscription Id. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*ReplicationVaultHealthClient) BeginRefresh

BeginRefresh - Refreshes health summary of the vault. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 options - ReplicationVaultHealthClientBeginRefreshOptions contains the optional parameters for the ReplicationVaultHealthClient.BeginRefresh method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationVaultHealth_Refresh.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationVaultHealthClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginRefresh(ctx, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationVaultHealthClient) Get

Get - Gets the health details of the vault. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 options - ReplicationVaultHealthClientGetOptions contains the optional parameters for the ReplicationVaultHealthClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationVaultHealth_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationVaultHealthClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

type ReplicationVaultHealthClientBeginRefreshOptions added in v0.2.0

type ReplicationVaultHealthClientBeginRefreshOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationVaultHealthClientBeginRefreshOptions contains the optional parameters for the ReplicationVaultHealthClient.BeginRefresh method.

type ReplicationVaultHealthClientGetOptions added in v0.2.0

type ReplicationVaultHealthClientGetOptions struct {
}

ReplicationVaultHealthClientGetOptions contains the optional parameters for the ReplicationVaultHealthClient.Get method.

type ReplicationVaultHealthClientGetResponse added in v0.2.0

type ReplicationVaultHealthClientGetResponse struct {
	VaultHealthDetails
}

ReplicationVaultHealthClientGetResponse contains the response from method ReplicationVaultHealthClient.Get.

type ReplicationVaultHealthClientRefreshResponse added in v0.2.0

type ReplicationVaultHealthClientRefreshResponse struct {
	VaultHealthDetails
}

ReplicationVaultHealthClientRefreshResponse contains the response from method ReplicationVaultHealthClient.Refresh.

type ReplicationVaultSettingClient

type ReplicationVaultSettingClient struct {
	// contains filtered or unexported fields
}

ReplicationVaultSettingClient contains the methods for the ReplicationVaultSetting group. Don't use this type directly, use NewReplicationVaultSettingClient() instead.

func NewReplicationVaultSettingClient

func NewReplicationVaultSettingClient(resourceName string, resourceGroupName string, subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicationVaultSettingClient, error)

NewReplicationVaultSettingClient creates a new instance of ReplicationVaultSettingClient with the specified values. resourceName - The name of the recovery services vault. resourceGroupName - The name of the resource group where the recovery services vault is present. subscriptionID - The subscription Id. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*ReplicationVaultSettingClient) BeginCreate

BeginCreate - The operation to configure vault setting. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 vaultSettingName - Vault setting name. input - Vault setting creation input. options - ReplicationVaultSettingClientBeginCreateOptions contains the optional parameters for the ReplicationVaultSettingClient.BeginCreate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationVaultSetting_Create.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationVaultSettingClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginCreate(ctx, "default", armrecoveryservicessiterecovery.VaultSettingCreationInput{
		Properties: &armrecoveryservicessiterecovery.VaultSettingCreationInputProperties{
			MigrationSolutionID: to.Ptr("/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.Migrate/MigrateProjects/resourceGroupPS1-MigrateProject/Solutions/Servers-Migration-ServerMigration"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationVaultSettingClient) Get

Get - Gets the vault setting. This includes the Migration Hub connection settings. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 vaultSettingName - Vault setting name. options - ReplicationVaultSettingClientGetOptions contains the optional parameters for the ReplicationVaultSettingClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationVaultSetting_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationVaultSettingClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx, "default", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationVaultSettingClient) NewListPager added in v0.4.0

NewListPager - Gets the list of vault setting. This includes the Migration Hub connection settings. Generated from API version 2022-10-01 options - ReplicationVaultSettingClientListOptions contains the optional parameters for the ReplicationVaultSettingClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationVaultSetting_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationVaultSettingClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager(nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type ReplicationVaultSettingClientBeginCreateOptions added in v0.2.0

type ReplicationVaultSettingClientBeginCreateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationVaultSettingClientBeginCreateOptions contains the optional parameters for the ReplicationVaultSettingClient.BeginCreate method.

type ReplicationVaultSettingClientCreateResponse added in v0.2.0

type ReplicationVaultSettingClientCreateResponse struct {
	VaultSetting
}

ReplicationVaultSettingClientCreateResponse contains the response from method ReplicationVaultSettingClient.Create.

type ReplicationVaultSettingClientGetOptions added in v0.2.0

type ReplicationVaultSettingClientGetOptions struct {
}

ReplicationVaultSettingClientGetOptions contains the optional parameters for the ReplicationVaultSettingClient.Get method.

type ReplicationVaultSettingClientGetResponse added in v0.2.0

type ReplicationVaultSettingClientGetResponse struct {
	VaultSetting
}

ReplicationVaultSettingClientGetResponse contains the response from method ReplicationVaultSettingClient.Get.

type ReplicationVaultSettingClientListOptions added in v0.2.0

type ReplicationVaultSettingClientListOptions struct {
}

ReplicationVaultSettingClientListOptions contains the optional parameters for the ReplicationVaultSettingClient.List method.

type ReplicationVaultSettingClientListResponse added in v0.2.0

type ReplicationVaultSettingClientListResponse struct {
	VaultSettingCollection
}

ReplicationVaultSettingClientListResponse contains the response from method ReplicationVaultSettingClient.List.

type ReplicationvCentersClient

type ReplicationvCentersClient struct {
	// contains filtered or unexported fields
}

ReplicationvCentersClient contains the methods for the ReplicationvCenters group. Don't use this type directly, use NewReplicationvCentersClient() instead.

func NewReplicationvCentersClient

func NewReplicationvCentersClient(resourceName string, resourceGroupName string, subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicationvCentersClient, error)

NewReplicationvCentersClient creates a new instance of ReplicationvCentersClient with the specified values. resourceName - The name of the recovery services vault. resourceGroupName - The name of the resource group where the recovery services vault is present. subscriptionID - The subscription Id. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*ReplicationvCentersClient) BeginCreate

BeginCreate - The operation to create a vCenter object.. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. vcenterName - vcenter name. addVCenterRequest - The input to the add vCenter operation. options - ReplicationvCentersClientBeginCreateOptions contains the optional parameters for the ReplicationvCentersClient.BeginCreate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationvCenters_Create.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationvCentersClient("MadhaviVault", "MadhaviVRG", "7c943c1b-5122-4097-90c8-861411bdd574", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginCreate(ctx, "MadhaviFabric", "esx-78", armrecoveryservicessiterecovery.AddVCenterRequest{
		Properties: &armrecoveryservicessiterecovery.AddVCenterRequestProperties{
			FriendlyName:    to.Ptr("esx-78"),
			IPAddress:       to.Ptr("inmtest78"),
			Port:            to.Ptr("443"),
			ProcessServerID: to.Ptr("5A720CAB-39CB-F445-BD1662B0B33164B5"),
			RunAsAccountID:  to.Ptr("2"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationvCentersClient) BeginDelete

BeginDelete - The operation to remove(unregister) a registered vCenter server from the vault. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. vcenterName - vcenter name. options - ReplicationvCentersClientBeginDeleteOptions contains the optional parameters for the ReplicationvCentersClient.BeginDelete method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationvCenters_Delete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationvCentersClient("MadhaviVault", "MadhaviVRG", "7c943c1b-5122-4097-90c8-861411bdd574", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginDelete(ctx, "MadhaviFabric", "esx-78", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*ReplicationvCentersClient) BeginUpdate

BeginUpdate - The operation to update a registered vCenter. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. vcenterName - vcenter name. updateVCenterRequest - The input to the update vCenter operation. options - ReplicationvCentersClientBeginUpdateOptions contains the optional parameters for the ReplicationvCentersClient.BeginUpdate method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationvCenters_Update.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationvCentersClient("MadhaviVault", "MadhaviVRG", "7c943c1b-5122-4097-90c8-861411bdd574", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := client.BeginUpdate(ctx, "MadhaviFabric", "esx-78", armrecoveryservicessiterecovery.UpdateVCenterRequest{
		Properties: &armrecoveryservicessiterecovery.UpdateVCenterRequestProperties{
			IPAddress: to.Ptr("10.150.109.25"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationvCentersClient) Get

Get - Gets the details of a registered vCenter server(Add vCenter server). If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 fabricName - Fabric name. vcenterName - vcenter name. options - ReplicationvCentersClientGetOptions contains the optional parameters for the ReplicationvCentersClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationvCenters_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationvCentersClient("MadhaviVault", "MadhaviVRG", "7c943c1b-5122-4097-90c8-861411bdd574", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx, "MadhaviFabric", "esx-78", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

func (*ReplicationvCentersClient) NewListByReplicationFabricsPager added in v0.4.0

NewListByReplicationFabricsPager - Lists the vCenter servers registered in a fabric. Generated from API version 2022-10-01 fabricName - Fabric name. options - ReplicationvCentersClientListByReplicationFabricsOptions contains the optional parameters for the ReplicationvCentersClient.ListByReplicationFabrics method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationvCenters_ListByReplicationFabrics.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationvCentersClient("MadhaviVault", "MadhaviVRG", "7c943c1b-5122-4097-90c8-861411bdd574", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListByReplicationFabricsPager("MadhaviFabric", nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

func (*ReplicationvCentersClient) NewListPager added in v0.4.0

NewListPager - Lists the vCenter servers registered in the vault. Generated from API version 2022-10-01 options - ReplicationvCentersClientListOptions contains the optional parameters for the ReplicationvCentersClient.List method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/ReplicationvCenters_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewReplicationvCentersClient("MadhaviVault", "MadhaviVRG", "7c943c1b-5122-4097-90c8-861411bdd574", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListPager(nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type ReplicationvCentersClientBeginCreateOptions added in v0.2.0

type ReplicationvCentersClientBeginCreateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationvCentersClientBeginCreateOptions contains the optional parameters for the ReplicationvCentersClient.BeginCreate method.

type ReplicationvCentersClientBeginDeleteOptions added in v0.2.0

type ReplicationvCentersClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationvCentersClientBeginDeleteOptions contains the optional parameters for the ReplicationvCentersClient.BeginDelete method.

type ReplicationvCentersClientBeginUpdateOptions added in v0.2.0

type ReplicationvCentersClientBeginUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ReplicationvCentersClientBeginUpdateOptions contains the optional parameters for the ReplicationvCentersClient.BeginUpdate method.

type ReplicationvCentersClientCreateResponse added in v0.2.0

type ReplicationvCentersClientCreateResponse struct {
	VCenter
}

ReplicationvCentersClientCreateResponse contains the response from method ReplicationvCentersClient.Create.

type ReplicationvCentersClientDeleteResponse added in v0.2.0

type ReplicationvCentersClientDeleteResponse struct {
}

ReplicationvCentersClientDeleteResponse contains the response from method ReplicationvCentersClient.Delete.

type ReplicationvCentersClientGetOptions added in v0.2.0

type ReplicationvCentersClientGetOptions struct {
}

ReplicationvCentersClientGetOptions contains the optional parameters for the ReplicationvCentersClient.Get method.

type ReplicationvCentersClientGetResponse added in v0.2.0

type ReplicationvCentersClientGetResponse struct {
	VCenter
}

ReplicationvCentersClientGetResponse contains the response from method ReplicationvCentersClient.Get.

type ReplicationvCentersClientListByReplicationFabricsOptions added in v0.2.0

type ReplicationvCentersClientListByReplicationFabricsOptions struct {
}

ReplicationvCentersClientListByReplicationFabricsOptions contains the optional parameters for the ReplicationvCentersClient.ListByReplicationFabrics method.

type ReplicationvCentersClientListByReplicationFabricsResponse added in v0.2.0

type ReplicationvCentersClientListByReplicationFabricsResponse struct {
	VCenterCollection
}

ReplicationvCentersClientListByReplicationFabricsResponse contains the response from method ReplicationvCentersClient.ListByReplicationFabrics.

type ReplicationvCentersClientListOptions added in v0.2.0

type ReplicationvCentersClientListOptions struct {
}

ReplicationvCentersClientListOptions contains the optional parameters for the ReplicationvCentersClient.List method.

type ReplicationvCentersClientListResponse added in v0.2.0

type ReplicationvCentersClientListResponse struct {
	VCenterCollection
}

ReplicationvCentersClientListResponse contains the response from method ReplicationvCentersClient.List.

type ReplicationvCentersClientUpdateResponse added in v0.2.0

type ReplicationvCentersClientUpdateResponse struct {
	VCenter
}

ReplicationvCentersClientUpdateResponse contains the response from method ReplicationvCentersClient.Update.

type ReprotectAgentDetails

type ReprotectAgentDetails struct {
	// READ-ONLY; The list of accessible datastores fetched from discovery.
	AccessibleDatastores []*string `json:"accessibleDatastores,omitempty" azure:"ro"`

	// READ-ONLY; The reprotect agent Bios Id.
	BiosID *string `json:"biosId,omitempty" azure:"ro"`

	// READ-ONLY; The fabric object Id.
	FabricObjectID *string `json:"fabricObjectId,omitempty" azure:"ro"`

	// READ-ONLY; The reprotect agent Fqdn.
	Fqdn *string `json:"fqdn,omitempty" azure:"ro"`

	// READ-ONLY; The health of the reprotect agent.
	Health *ProtectionHealth `json:"health,omitempty" azure:"ro"`

	// READ-ONLY; The health errors.
	HealthErrors []*HealthError `json:"healthErrors,omitempty" azure:"ro"`

	// READ-ONLY; The reprotect agent Id.
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The last time when SDS information discovered in SRS.
	LastDiscoveryInUTC *time.Time `json:"lastDiscoveryInUtc,omitempty" azure:"ro"`

	// READ-ONLY; The last heartbeat received from the reprotect agent.
	LastHeartbeatUTC *time.Time `json:"lastHeartbeatUtc,omitempty" azure:"ro"`

	// READ-ONLY; The reprotect agent name.
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; The protected item count.
	ProtectedItemCount *int32 `json:"protectedItemCount,omitempty" azure:"ro"`

	// READ-ONLY; The Vcenter Id.
	VcenterID *string `json:"vcenterId,omitempty" azure:"ro"`

	// READ-ONLY; The version.
	Version *string `json:"version,omitempty" azure:"ro"`
}

ReprotectAgentDetails - Reprotect agent details.

func (ReprotectAgentDetails) MarshalJSON

func (r ReprotectAgentDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ReprotectAgentDetails.

func (*ReprotectAgentDetails) UnmarshalJSON

func (r *ReprotectAgentDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ReprotectAgentDetails.

type ResolveHealthError

type ResolveHealthError struct {
	// Health error id.
	HealthErrorID *string `json:"healthErrorId,omitempty"`
}

ResolveHealthError - Resolve health errors input properties.

func (ResolveHealthError) MarshalJSON added in v1.1.0

func (r ResolveHealthError) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResolveHealthError.

func (*ResolveHealthError) UnmarshalJSON added in v1.1.0

func (r *ResolveHealthError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ResolveHealthError.

type ResolveHealthInput

type ResolveHealthInput struct {
	// Disable resolve health input properties.
	Properties *ResolveHealthInputProperties `json:"properties,omitempty"`
}

ResolveHealthInput - Resolve health input.

func (ResolveHealthInput) MarshalJSON added in v1.1.0

func (r ResolveHealthInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResolveHealthInput.

func (*ResolveHealthInput) UnmarshalJSON added in v1.1.0

func (r *ResolveHealthInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ResolveHealthInput.

type ResolveHealthInputProperties

type ResolveHealthInputProperties struct {
	// Health errors.
	HealthErrors []*ResolveHealthError `json:"healthErrors,omitempty"`
}

ResolveHealthInputProperties - Resolve health input properties.

func (ResolveHealthInputProperties) MarshalJSON

func (r ResolveHealthInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResolveHealthInputProperties.

func (*ResolveHealthInputProperties) UnmarshalJSON added in v1.1.0

func (r *ResolveHealthInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ResolveHealthInputProperties.

type Resource

type Resource struct {
	// Resource Location
	Location *string `json:"location,omitempty"`

	// READ-ONLY; Resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Resource Name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Resource Type
	Type *string `json:"type,omitempty" azure:"ro"`
}

Resource - Azure resource.

func (Resource) MarshalJSON added in v1.1.0

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Resource.

func (*Resource) UnmarshalJSON added in v1.1.0

func (r *Resource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Resource.

type ResourceHealthSummary

type ResourceHealthSummary struct {
	// The categorized resource counts.
	CategorizedResourceCounts map[string]*int32 `json:"categorizedResourceCounts,omitempty"`

	// The list of summary of health errors across the resources under the container.
	Issues []*HealthErrorSummary `json:"issues,omitempty"`

	// The count of total resources under the container.
	ResourceCount *int32 `json:"resourceCount,omitempty"`
}

ResourceHealthSummary - Base class to define the health summary of the resources contained under an Arm resource.

func (ResourceHealthSummary) MarshalJSON

func (r ResourceHealthSummary) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResourceHealthSummary.

func (*ResourceHealthSummary) UnmarshalJSON added in v1.1.0

func (r *ResourceHealthSummary) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ResourceHealthSummary.

type ResumeJobParams

type ResumeJobParams struct {
	// Resume job properties.
	Properties *ResumeJobParamsProperties `json:"properties,omitempty"`
}

ResumeJobParams - Resume job params.

func (ResumeJobParams) MarshalJSON added in v1.1.0

func (r ResumeJobParams) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResumeJobParams.

func (*ResumeJobParams) UnmarshalJSON added in v1.1.0

func (r *ResumeJobParams) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ResumeJobParams.

type ResumeJobParamsProperties

type ResumeJobParamsProperties struct {
	// Resume job comments.
	Comments *string `json:"comments,omitempty"`
}

ResumeJobParamsProperties - Resume job properties.

func (ResumeJobParamsProperties) MarshalJSON added in v1.1.0

func (r ResumeJobParamsProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResumeJobParamsProperties.

func (*ResumeJobParamsProperties) UnmarshalJSON added in v1.1.0

func (r *ResumeJobParamsProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ResumeJobParamsProperties.

type ResumeReplicationInput added in v1.1.0

type ResumeReplicationInput struct {
	// REQUIRED; Resume replication input properties.
	Properties *ResumeReplicationInputProperties `json:"properties,omitempty"`
}

ResumeReplicationInput - Resume replication input.

func (ResumeReplicationInput) MarshalJSON added in v1.1.0

func (r ResumeReplicationInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResumeReplicationInput.

func (*ResumeReplicationInput) UnmarshalJSON added in v1.1.0

func (r *ResumeReplicationInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ResumeReplicationInput.

type ResumeReplicationInputProperties added in v1.1.0

type ResumeReplicationInputProperties struct {
	// REQUIRED; The provider specific input for resume replication.
	ProviderSpecificDetails ResumeReplicationProviderSpecificInputClassification `json:"providerSpecificDetails,omitempty"`
}

ResumeReplicationInputProperties - Resume replication input properties.

func (ResumeReplicationInputProperties) MarshalJSON added in v1.1.0

func (r ResumeReplicationInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResumeReplicationInputProperties.

func (*ResumeReplicationInputProperties) UnmarshalJSON added in v1.1.0

func (r *ResumeReplicationInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ResumeReplicationInputProperties.

type ResumeReplicationProviderSpecificInput added in v1.1.0

type ResumeReplicationProviderSpecificInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

ResumeReplicationProviderSpecificInput - Resume replication provider specific input.

func (*ResumeReplicationProviderSpecificInput) GetResumeReplicationProviderSpecificInput added in v1.1.0

func (r *ResumeReplicationProviderSpecificInput) GetResumeReplicationProviderSpecificInput() *ResumeReplicationProviderSpecificInput

GetResumeReplicationProviderSpecificInput implements the ResumeReplicationProviderSpecificInputClassification interface for type ResumeReplicationProviderSpecificInput.

func (ResumeReplicationProviderSpecificInput) MarshalJSON added in v1.1.0

func (r ResumeReplicationProviderSpecificInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResumeReplicationProviderSpecificInput.

func (*ResumeReplicationProviderSpecificInput) UnmarshalJSON added in v1.1.0

func (r *ResumeReplicationProviderSpecificInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ResumeReplicationProviderSpecificInput.

type ResumeReplicationProviderSpecificInputClassification added in v1.1.0

type ResumeReplicationProviderSpecificInputClassification interface {
	// GetResumeReplicationProviderSpecificInput returns the ResumeReplicationProviderSpecificInput content of the underlying type.
	GetResumeReplicationProviderSpecificInput() *ResumeReplicationProviderSpecificInput
}

ResumeReplicationProviderSpecificInputClassification provides polymorphic access to related types. Call the interface's GetResumeReplicationProviderSpecificInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *ResumeReplicationProviderSpecificInput, *VMwareCbtResumeReplicationInput

type ResyncInput

type ResyncInput struct {
	// REQUIRED; Resync input properties.
	Properties *ResyncInputProperties `json:"properties,omitempty"`
}

ResyncInput - Resync input.

func (ResyncInput) MarshalJSON added in v1.1.0

func (r ResyncInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResyncInput.

func (*ResyncInput) UnmarshalJSON added in v1.1.0

func (r *ResyncInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ResyncInput.

type ResyncInputProperties

type ResyncInputProperties struct {
	// REQUIRED; The provider specific details.
	ProviderSpecificDetails ResyncProviderSpecificInputClassification `json:"providerSpecificDetails,omitempty"`
}

ResyncInputProperties - Resync input properties.

func (ResyncInputProperties) MarshalJSON

func (r ResyncInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResyncInputProperties.

func (*ResyncInputProperties) UnmarshalJSON

func (r *ResyncInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ResyncInputProperties.

type ResyncProviderSpecificInput

type ResyncProviderSpecificInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

ResyncProviderSpecificInput - Resync provider specific input.

func (*ResyncProviderSpecificInput) GetResyncProviderSpecificInput

func (r *ResyncProviderSpecificInput) GetResyncProviderSpecificInput() *ResyncProviderSpecificInput

GetResyncProviderSpecificInput implements the ResyncProviderSpecificInputClassification interface for type ResyncProviderSpecificInput.

func (ResyncProviderSpecificInput) MarshalJSON added in v1.1.0

func (r ResyncProviderSpecificInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResyncProviderSpecificInput.

func (*ResyncProviderSpecificInput) UnmarshalJSON

func (r *ResyncProviderSpecificInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ResyncProviderSpecificInput.

type ResyncProviderSpecificInputClassification

type ResyncProviderSpecificInputClassification interface {
	// GetResyncProviderSpecificInput returns the ResyncProviderSpecificInput content of the underlying type.
	GetResyncProviderSpecificInput() *ResyncProviderSpecificInput
}

ResyncProviderSpecificInputClassification provides polymorphic access to related types. Call the interface's GetResyncProviderSpecificInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *ResyncProviderSpecificInput, *VMwareCbtResyncInput

type ResyncState

type ResyncState string

ResyncState - The resync state.

const (
	ResyncStateNone                         ResyncState = "None"
	ResyncStatePreparedForResynchronization ResyncState = "PreparedForResynchronization"
	ResyncStateStartedResynchronization     ResyncState = "StartedResynchronization"
)

func PossibleResyncStateValues

func PossibleResyncStateValues() []ResyncState

PossibleResyncStateValues returns the possible values for the ResyncState const type.

type RetentionVolume

type RetentionVolume struct {
	// The volume capacity.
	CapacityInBytes *int64 `json:"capacityInBytes,omitempty"`

	// The free space available in this volume.
	FreeSpaceInBytes *int64 `json:"freeSpaceInBytes,omitempty"`

	// The threshold percentage.
	ThresholdPercentage *int32 `json:"thresholdPercentage,omitempty"`

	// The volume name.
	VolumeName *string `json:"volumeName,omitempty"`
}

RetentionVolume - The retention details of the MT.

func (RetentionVolume) MarshalJSON added in v1.1.0

func (r RetentionVolume) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RetentionVolume.

func (*RetentionVolume) UnmarshalJSON added in v1.1.0

func (r *RetentionVolume) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RetentionVolume.

type ReverseReplicationInput

type ReverseReplicationInput struct {
	// Reverse replication properties.
	Properties *ReverseReplicationInputProperties `json:"properties,omitempty"`
}

ReverseReplicationInput - Reverse replication input.

func (ReverseReplicationInput) MarshalJSON added in v1.1.0

func (r ReverseReplicationInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ReverseReplicationInput.

func (*ReverseReplicationInput) UnmarshalJSON added in v1.1.0

func (r *ReverseReplicationInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ReverseReplicationInput.

type ReverseReplicationInputProperties

type ReverseReplicationInputProperties struct {
	// Failover direction.
	FailoverDirection *string `json:"failoverDirection,omitempty"`

	// Provider specific reverse replication input.
	ProviderSpecificDetails ReverseReplicationProviderSpecificInputClassification `json:"providerSpecificDetails,omitempty"`
}

ReverseReplicationInputProperties - Reverse replication input properties.

func (ReverseReplicationInputProperties) MarshalJSON

func (r ReverseReplicationInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ReverseReplicationInputProperties.

func (*ReverseReplicationInputProperties) UnmarshalJSON

func (r *ReverseReplicationInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ReverseReplicationInputProperties.

type ReverseReplicationProviderSpecificInput

type ReverseReplicationProviderSpecificInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

ReverseReplicationProviderSpecificInput - Provider specific reverse replication input.

func (*ReverseReplicationProviderSpecificInput) GetReverseReplicationProviderSpecificInput

func (r *ReverseReplicationProviderSpecificInput) GetReverseReplicationProviderSpecificInput() *ReverseReplicationProviderSpecificInput

GetReverseReplicationProviderSpecificInput implements the ReverseReplicationProviderSpecificInputClassification interface for type ReverseReplicationProviderSpecificInput.

func (ReverseReplicationProviderSpecificInput) MarshalJSON added in v1.1.0

func (r ReverseReplicationProviderSpecificInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ReverseReplicationProviderSpecificInput.

func (*ReverseReplicationProviderSpecificInput) UnmarshalJSON

func (r *ReverseReplicationProviderSpecificInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ReverseReplicationProviderSpecificInput.

type ReverseReplicationProviderSpecificInputClassification

type ReverseReplicationProviderSpecificInputClassification interface {
	// GetReverseReplicationProviderSpecificInput returns the ReverseReplicationProviderSpecificInput content of the underlying type.
	GetReverseReplicationProviderSpecificInput() *ReverseReplicationProviderSpecificInput
}

ReverseReplicationProviderSpecificInputClassification provides polymorphic access to related types. Call the interface's GetReverseReplicationProviderSpecificInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *A2AReprotectInput, *HyperVReplicaAzureReprotectInput, *InMageAzureV2ReprotectInput, *InMageRcmFailbackReprotectInput, - *InMageRcmReprotectInput, *InMageReprotectInput, *ReverseReplicationProviderSpecificInput

type RoleAssignment

type RoleAssignment struct {
	// The ARM Id of the role assignment.
	ID *string `json:"id,omitempty"`

	// The name of the role assignment.
	Name *string `json:"name,omitempty"`

	// Principal Id.
	PrincipalID *string `json:"principalId,omitempty"`

	// Role definition id.
	RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`

	// Role assignment scope.
	Scope *string `json:"scope,omitempty"`
}

RoleAssignment - Azure role assignment details.

func (RoleAssignment) MarshalJSON added in v1.1.0

func (r RoleAssignment) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RoleAssignment.

func (*RoleAssignment) UnmarshalJSON added in v1.1.0

func (r *RoleAssignment) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RoleAssignment.

type RpInMageRecoveryPointType

type RpInMageRecoveryPointType string

RpInMageRecoveryPointType - The recovery point type.

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

func PossibleRpInMageRecoveryPointTypeValues

func PossibleRpInMageRecoveryPointTypeValues() []RpInMageRecoveryPointType

PossibleRpInMageRecoveryPointTypeValues returns the possible values for the RpInMageRecoveryPointType const type.

type RunAsAccount

type RunAsAccount struct {
	// The CS RunAs account Id.
	AccountID *string `json:"accountId,omitempty"`

	// The CS RunAs account name.
	AccountName *string `json:"accountName,omitempty"`
}

RunAsAccount - CS Accounts Details.

func (RunAsAccount) MarshalJSON added in v1.1.0

func (r RunAsAccount) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RunAsAccount.

func (*RunAsAccount) UnmarshalJSON added in v1.1.0

func (r *RunAsAccount) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RunAsAccount.

type SQLServerLicenseType

type SQLServerLicenseType string

SQLServerLicenseType - The SQL Server license type.

const (
	SQLServerLicenseTypeAHUB          SQLServerLicenseType = "AHUB"
	SQLServerLicenseTypeNoLicenseType SQLServerLicenseType = "NoLicenseType"
	SQLServerLicenseTypeNotSpecified  SQLServerLicenseType = "NotSpecified"
	SQLServerLicenseTypePAYG          SQLServerLicenseType = "PAYG"
)

func PossibleSQLServerLicenseTypeValues

func PossibleSQLServerLicenseTypeValues() []SQLServerLicenseType

PossibleSQLServerLicenseTypeValues returns the possible values for the SQLServerLicenseType const type.

type ScriptActionTaskDetails

type ScriptActionTaskDetails struct {
	// REQUIRED; The type of task details.
	InstanceType *string `json:"instanceType,omitempty"`

	// A value indicating whether it is a primary side script or not.
	IsPrimarySideScript *bool `json:"isPrimarySideScript,omitempty"`

	// The name.
	Name *string `json:"name,omitempty"`

	// The output.
	Output *string `json:"output,omitempty"`

	// The path.
	Path *string `json:"path,omitempty"`
}

ScriptActionTaskDetails - This class represents the script action task details.

func (*ScriptActionTaskDetails) GetTaskTypeDetails added in v0.2.0

func (s *ScriptActionTaskDetails) GetTaskTypeDetails() *TaskTypeDetails

GetTaskTypeDetails implements the TaskTypeDetailsClassification interface for type ScriptActionTaskDetails.

func (ScriptActionTaskDetails) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ScriptActionTaskDetails.

func (*ScriptActionTaskDetails) UnmarshalJSON

func (s *ScriptActionTaskDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ScriptActionTaskDetails.

type ServiceError

type ServiceError struct {
	// Activity Id.
	ActivityID *string `json:"activityId,omitempty"`

	// Error code.
	Code *string `json:"code,omitempty"`

	// Error message.
	Message *string `json:"message,omitempty"`

	// Possible causes of error.
	PossibleCauses *string `json:"possibleCauses,omitempty"`

	// Recommended action to resolve error.
	RecommendedAction *string `json:"recommendedAction,omitempty"`
}

ServiceError - ASR error model.

func (ServiceError) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ServiceError.

func (*ServiceError) UnmarshalJSON added in v1.1.0

func (s *ServiceError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ServiceError.

type SetMultiVMSyncStatus

type SetMultiVMSyncStatus string

SetMultiVMSyncStatus - A value indicating whether multi-VM sync has to be enabled. Value should be 'Enabled' or 'Disabled'.

const (
	SetMultiVMSyncStatusDisable SetMultiVMSyncStatus = "Disable"
	SetMultiVMSyncStatusEnable  SetMultiVMSyncStatus = "Enable"
)

func PossibleSetMultiVMSyncStatusValues

func PossibleSetMultiVMSyncStatusValues() []SetMultiVMSyncStatus

PossibleSetMultiVMSyncStatusValues returns the possible values for the SetMultiVMSyncStatus const type.

type Severity

type Severity string

Severity - Severity of error.

const (
	SeverityError   Severity = "Error"
	SeverityInfo    Severity = "Info"
	SeverityNONE    Severity = "NONE"
	SeverityWarning Severity = "Warning"
)

func PossibleSeverityValues

func PossibleSeverityValues() []Severity

PossibleSeverityValues returns the possible values for the Severity const type.

type SourceSiteOperations

type SourceSiteOperations string

SourceSiteOperations - A value indicating whether source site operations are required.

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

func PossibleSourceSiteOperationsValues

func PossibleSourceSiteOperationsValues() []SourceSiteOperations

PossibleSourceSiteOperationsValues returns the possible values for the SourceSiteOperations const type.

type StorageAccountCustomDetails

type StorageAccountCustomDetails struct {
	// REQUIRED; The class type.
	ResourceType *string `json:"resourceType,omitempty"`
}

StorageAccountCustomDetails - Storage account custom input.

func (*StorageAccountCustomDetails) GetStorageAccountCustomDetails

func (s *StorageAccountCustomDetails) GetStorageAccountCustomDetails() *StorageAccountCustomDetails

GetStorageAccountCustomDetails implements the StorageAccountCustomDetailsClassification interface for type StorageAccountCustomDetails.

func (StorageAccountCustomDetails) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type StorageAccountCustomDetails.

func (*StorageAccountCustomDetails) UnmarshalJSON

func (s *StorageAccountCustomDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type StorageAccountCustomDetails.

type StorageAccountCustomDetailsClassification

type StorageAccountCustomDetailsClassification interface {
	// GetStorageAccountCustomDetails returns the StorageAccountCustomDetails content of the underlying type.
	GetStorageAccountCustomDetails() *StorageAccountCustomDetails
}

StorageAccountCustomDetailsClassification provides polymorphic access to related types. Call the interface's GetStorageAccountCustomDetails() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *ExistingStorageAccount, *StorageAccountCustomDetails

type StorageClassification

type StorageClassification struct {
	// Resource Location
	Location *string `json:"location,omitempty"`

	// Properties of the storage object.
	Properties *StorageClassificationProperties `json:"properties,omitempty"`

	// READ-ONLY; Resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Resource Name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Resource Type
	Type *string `json:"type,omitempty" azure:"ro"`
}

StorageClassification - Storage object definition.

func (StorageClassification) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type StorageClassification.

func (*StorageClassification) UnmarshalJSON added in v1.1.0

func (s *StorageClassification) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type StorageClassification.

type StorageClassificationCollection

type StorageClassificationCollection struct {
	// The value of next link.
	NextLink *string `json:"nextLink,omitempty"`

	// The storage details.
	Value []*StorageClassification `json:"value,omitempty"`
}

StorageClassificationCollection - Collection of storage details.

func (StorageClassificationCollection) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type StorageClassificationCollection.

func (*StorageClassificationCollection) UnmarshalJSON added in v1.1.0

func (s *StorageClassificationCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type StorageClassificationCollection.

type StorageClassificationMapping

type StorageClassificationMapping struct {
	// Resource Location
	Location *string `json:"location,omitempty"`

	// Properties of the storage mapping object.
	Properties *StorageClassificationMappingProperties `json:"properties,omitempty"`

	// READ-ONLY; Resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Resource Name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Resource Type
	Type *string `json:"type,omitempty" azure:"ro"`
}

StorageClassificationMapping - Storage mapping object.

func (StorageClassificationMapping) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type StorageClassificationMapping.

func (*StorageClassificationMapping) UnmarshalJSON added in v1.1.0

func (s *StorageClassificationMapping) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type StorageClassificationMapping.

type StorageClassificationMappingCollection

type StorageClassificationMappingCollection struct {
	// The value of next link.
	NextLink *string `json:"nextLink,omitempty"`

	// The storage details.
	Value []*StorageClassificationMapping `json:"value,omitempty"`
}

StorageClassificationMappingCollection - Collection of storage mapping details.

func (StorageClassificationMappingCollection) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type StorageClassificationMappingCollection.

func (*StorageClassificationMappingCollection) UnmarshalJSON added in v1.1.0

func (s *StorageClassificationMappingCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type StorageClassificationMappingCollection.

type StorageClassificationMappingInput

type StorageClassificationMappingInput struct {
	// Storage mapping input properties.
	Properties *StorageMappingInputProperties `json:"properties,omitempty"`
}

StorageClassificationMappingInput - Storage mapping input.

func (StorageClassificationMappingInput) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type StorageClassificationMappingInput.

func (*StorageClassificationMappingInput) UnmarshalJSON added in v1.1.0

func (s *StorageClassificationMappingInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type StorageClassificationMappingInput.

type StorageClassificationMappingProperties

type StorageClassificationMappingProperties struct {
	// Target storage object Id.
	TargetStorageClassificationID *string `json:"targetStorageClassificationId,omitempty"`
}

StorageClassificationMappingProperties - Storage mapping properties.

func (StorageClassificationMappingProperties) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type StorageClassificationMappingProperties.

func (*StorageClassificationMappingProperties) UnmarshalJSON added in v1.1.0

func (s *StorageClassificationMappingProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type StorageClassificationMappingProperties.

type StorageClassificationProperties

type StorageClassificationProperties struct {
	// Friendly name of the Storage classification.
	FriendlyName *string `json:"friendlyName,omitempty"`
}

StorageClassificationProperties - Storage object properties.

func (StorageClassificationProperties) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type StorageClassificationProperties.

func (*StorageClassificationProperties) UnmarshalJSON added in v1.1.0

func (s *StorageClassificationProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type StorageClassificationProperties.

type StorageMappingInputProperties

type StorageMappingInputProperties struct {
	// The ID of the storage object.
	TargetStorageClassificationID *string `json:"targetStorageClassificationId,omitempty"`
}

StorageMappingInputProperties - Storage mapping input properties.

func (StorageMappingInputProperties) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type StorageMappingInputProperties.

func (*StorageMappingInputProperties) UnmarshalJSON added in v1.1.0

func (s *StorageMappingInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type StorageMappingInputProperties.

type Subnet

type Subnet struct {
	// The list of addresses for the subnet.
	AddressList []*string `json:"addressList,omitempty"`

	// The subnet friendly name.
	FriendlyName *string `json:"friendlyName,omitempty"`

	// The subnet name.
	Name *string `json:"name,omitempty"`
}

Subnets of the network.

func (Subnet) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type Subnet.

func (*Subnet) UnmarshalJSON added in v1.1.0

func (s *Subnet) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Subnet.

type SupportedOSDetails

type SupportedOSDetails struct {
	// The name.
	OSName *string `json:"osName,omitempty"`

	// The type.
	OSType *string `json:"osType,omitempty"`

	// The list of version for operating system.
	OSVersions []*OSVersionWrapper `json:"osVersions,omitempty"`
}

SupportedOSDetails - Supported operating system details.

func (SupportedOSDetails) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SupportedOSDetails.

func (*SupportedOSDetails) UnmarshalJSON added in v1.1.0

func (s *SupportedOSDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SupportedOSDetails.

type SupportedOSProperties

type SupportedOSProperties struct {
	// The supported operating systems property list.
	SupportedOsList []*SupportedOSProperty `json:"supportedOsList,omitempty"`
}

SupportedOSProperties - Supported operating systems properties.

func (SupportedOSProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SupportedOSProperties.

func (*SupportedOSProperties) UnmarshalJSON added in v1.1.0

func (s *SupportedOSProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SupportedOSProperties.

type SupportedOSProperty

type SupportedOSProperty struct {
	// The replication provider type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The list of supported operating systems.
	SupportedOs []*SupportedOSDetails `json:"supportedOs,omitempty"`
}

SupportedOSProperty - Supported operating systems property.

func (SupportedOSProperty) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SupportedOSProperty.

func (*SupportedOSProperty) UnmarshalJSON added in v1.1.0

func (s *SupportedOSProperty) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SupportedOSProperty.

type SupportedOperatingSystems

type SupportedOperatingSystems struct {
	// Resource Location
	Location *string `json:"location,omitempty"`

	// The supported operating systems properties.
	Properties *SupportedOSProperties `json:"properties,omitempty"`

	// READ-ONLY; Resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Resource Name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Resource Type
	Type *string `json:"type,omitempty" azure:"ro"`
}

SupportedOperatingSystems - Supported operating systems.

func (SupportedOperatingSystems) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type SupportedOperatingSystems.

func (*SupportedOperatingSystems) UnmarshalJSON added in v1.1.0

func (s *SupportedOperatingSystems) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SupportedOperatingSystems.

type SupportedOperatingSystemsClient

type SupportedOperatingSystemsClient struct {
	// contains filtered or unexported fields
}

SupportedOperatingSystemsClient contains the methods for the SupportedOperatingSystems group. Don't use this type directly, use NewSupportedOperatingSystemsClient() instead.

func NewSupportedOperatingSystemsClient

func NewSupportedOperatingSystemsClient(resourceName string, resourceGroupName string, subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SupportedOperatingSystemsClient, error)

NewSupportedOperatingSystemsClient creates a new instance of SupportedOperatingSystemsClient with the specified values. resourceName - The name of the recovery services vault. resourceGroupName - The name of the resource group where the recovery services vault is present. subscriptionID - The subscription Id. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*SupportedOperatingSystemsClient) Get

Get - Gets the data of supported operating systems by SRS. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-10-01 options - SupportedOperatingSystemsClientGetOptions contains the optional parameters for the SupportedOperatingSystemsClient.Get method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/SupportedOperatingSystems_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewSupportedOperatingSystemsClient("vault1", "resourceGroupPS1", "c183865e-6077-46f2-a3b1-deb0f4f4650a", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := client.Get(ctx, &armrecoveryservicessiterecovery.SupportedOperatingSystemsClientGetOptions{InstanceType: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// TODO: use response item
	_ = res
}
Output:

type SupportedOperatingSystemsClientGetOptions added in v0.2.0

type SupportedOperatingSystemsClientGetOptions struct {
	// The instance type.
	InstanceType *string
}

SupportedOperatingSystemsClientGetOptions contains the optional parameters for the SupportedOperatingSystemsClient.Get method.

type SupportedOperatingSystemsClientGetResponse added in v0.2.0

type SupportedOperatingSystemsClientGetResponse struct {
	SupportedOperatingSystems
}

SupportedOperatingSystemsClientGetResponse contains the response from method SupportedOperatingSystemsClient.Get.

type SwitchProtectionInput

type SwitchProtectionInput struct {
	// Switch protection properties.
	Properties *SwitchProtectionInputProperties `json:"properties,omitempty"`
}

SwitchProtectionInput - Switch protection input.

func (SwitchProtectionInput) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type SwitchProtectionInput.

func (*SwitchProtectionInput) UnmarshalJSON added in v1.1.0

func (s *SwitchProtectionInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SwitchProtectionInput.

type SwitchProtectionInputProperties

type SwitchProtectionInputProperties struct {
	// Provider specific switch protection input.
	ProviderSpecificDetails SwitchProtectionProviderSpecificInputClassification `json:"providerSpecificDetails,omitempty"`

	// The unique replication protected item name.
	ReplicationProtectedItemName *string `json:"replicationProtectedItemName,omitempty"`
}

SwitchProtectionInputProperties - Switch protection input properties.

func (SwitchProtectionInputProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SwitchProtectionInputProperties.

func (*SwitchProtectionInputProperties) UnmarshalJSON

func (s *SwitchProtectionInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SwitchProtectionInputProperties.

type SwitchProtectionJobDetails

type SwitchProtectionJobDetails struct {
	// REQUIRED; Gets the type of job details (see JobDetailsTypes enum for possible values).
	InstanceType *string `json:"instanceType,omitempty"`

	// The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow
	// object details.
	AffectedObjectDetails map[string]*string `json:"affectedObjectDetails,omitempty"`

	// ARM Id of the new replication protected item.
	NewReplicationProtectedItemID *string `json:"newReplicationProtectedItemId,omitempty"`
}

SwitchProtectionJobDetails - This class represents details for switch protection job.

func (*SwitchProtectionJobDetails) GetJobDetails added in v0.2.0

func (s *SwitchProtectionJobDetails) GetJobDetails() *JobDetails

GetJobDetails implements the JobDetailsClassification interface for type SwitchProtectionJobDetails.

func (SwitchProtectionJobDetails) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SwitchProtectionJobDetails.

func (*SwitchProtectionJobDetails) UnmarshalJSON

func (s *SwitchProtectionJobDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SwitchProtectionJobDetails.

type SwitchProtectionProviderSpecificInput

type SwitchProtectionProviderSpecificInput struct {
	// REQUIRED; Gets the Instance type.
	InstanceType *string `json:"instanceType,omitempty"`
}

SwitchProtectionProviderSpecificInput - Provider specific switch protection input.

func (*SwitchProtectionProviderSpecificInput) GetSwitchProtectionProviderSpecificInput

func (s *SwitchProtectionProviderSpecificInput) GetSwitchProtectionProviderSpecificInput() *SwitchProtectionProviderSpecificInput

GetSwitchProtectionProviderSpecificInput implements the SwitchProtectionProviderSpecificInputClassification interface for type SwitchProtectionProviderSpecificInput.

func (SwitchProtectionProviderSpecificInput) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type SwitchProtectionProviderSpecificInput.

func (*SwitchProtectionProviderSpecificInput) UnmarshalJSON

func (s *SwitchProtectionProviderSpecificInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SwitchProtectionProviderSpecificInput.

type SwitchProtectionProviderSpecificInputClassification

type SwitchProtectionProviderSpecificInputClassification interface {
	// GetSwitchProtectionProviderSpecificInput returns the SwitchProtectionProviderSpecificInput content of the underlying type.
	GetSwitchProtectionProviderSpecificInput() *SwitchProtectionProviderSpecificInput
}

SwitchProtectionProviderSpecificInputClassification provides polymorphic access to related types. Call the interface's GetSwitchProtectionProviderSpecificInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *A2ASwitchProtectionInput, *SwitchProtectionProviderSpecificInput

type SwitchProviderInput added in v0.2.0

type SwitchProviderInput struct {
	// Switch provider input properties.
	Properties *SwitchProviderInputProperties `json:"properties,omitempty"`
}

SwitchProviderInput - Input definition for switch provider.

func (SwitchProviderInput) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type SwitchProviderInput.

func (*SwitchProviderInput) UnmarshalJSON added in v1.1.0

func (s *SwitchProviderInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SwitchProviderInput.

type SwitchProviderInputProperties added in v0.2.0

type SwitchProviderInputProperties struct {
	// Provider specific settings.
	ProviderSpecificDetails SwitchProviderSpecificInputClassification `json:"providerSpecificDetails,omitempty"`

	// Target provider type.
	TargetInstanceType *string `json:"targetInstanceType,omitempty"`
}

SwitchProviderInputProperties - Input definition for switch provider input properties.

func (SwitchProviderInputProperties) MarshalJSON added in v0.2.0

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

MarshalJSON implements the json.Marshaller interface for type SwitchProviderInputProperties.

func (*SwitchProviderInputProperties) UnmarshalJSON added in v0.2.0

func (s *SwitchProviderInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SwitchProviderInputProperties.

type SwitchProviderSpecificInput added in v0.2.0

type SwitchProviderSpecificInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

SwitchProviderSpecificInput - Provider specific switch provider input.

func (*SwitchProviderSpecificInput) GetSwitchProviderSpecificInput added in v0.2.0

func (s *SwitchProviderSpecificInput) GetSwitchProviderSpecificInput() *SwitchProviderSpecificInput

GetSwitchProviderSpecificInput implements the SwitchProviderSpecificInputClassification interface for type SwitchProviderSpecificInput.

func (SwitchProviderSpecificInput) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type SwitchProviderSpecificInput.

func (*SwitchProviderSpecificInput) UnmarshalJSON added in v1.1.0

func (s *SwitchProviderSpecificInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SwitchProviderSpecificInput.

type SwitchProviderSpecificInputClassification added in v0.2.0

type SwitchProviderSpecificInputClassification interface {
	// GetSwitchProviderSpecificInput returns the SwitchProviderSpecificInput content of the underlying type.
	GetSwitchProviderSpecificInput() *SwitchProviderSpecificInput
}

SwitchProviderSpecificInputClassification provides polymorphic access to related types. Call the interface's GetSwitchProviderSpecificInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *InMageAzureV2SwitchProviderInput, *SwitchProviderSpecificInput

type TargetComputeSize

type TargetComputeSize struct {
	// The Id.
	ID *string `json:"id,omitempty"`

	// The name.
	Name *string `json:"name,omitempty"`

	// The custom data.
	Properties *TargetComputeSizeProperties `json:"properties,omitempty"`

	// The Type of the object.
	Type *string `json:"type,omitempty"`
}

TargetComputeSize - Represents applicable recovery vm sizes.

func (TargetComputeSize) MarshalJSON added in v1.1.0

func (t TargetComputeSize) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TargetComputeSize.

func (*TargetComputeSize) UnmarshalJSON added in v1.1.0

func (t *TargetComputeSize) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TargetComputeSize.

type TargetComputeSizeCollection

type TargetComputeSizeCollection struct {
	// The value of next link.
	NextLink *string `json:"nextLink,omitempty"`

	// The list of target compute sizes.
	Value []*TargetComputeSize `json:"value,omitempty"`
}

TargetComputeSizeCollection - Target compute size collection.

func (TargetComputeSizeCollection) MarshalJSON

func (t TargetComputeSizeCollection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TargetComputeSizeCollection.

func (*TargetComputeSizeCollection) UnmarshalJSON added in v1.1.0

func (t *TargetComputeSizeCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TargetComputeSizeCollection.

type TargetComputeSizeProperties

type TargetComputeSizeProperties struct {
	// The maximum cpu cores count supported by target compute size.
	CPUCoresCount *int32 `json:"cpuCoresCount,omitempty"`

	// The reasons why the target compute size is not applicable for the protected item.
	Errors []*ComputeSizeErrorDetails `json:"errors,omitempty"`

	// Target compute size display name.
	FriendlyName *string `json:"friendlyName,omitempty"`

	// The value indicating whether the target compute size supports high Iops.
	HighIopsSupported *string `json:"highIopsSupported,omitempty"`

	// The supported HyperV Generations.
	HyperVGenerations []*string `json:"hyperVGenerations,omitempty"`

	// The maximum data disks count supported by target compute size.
	MaxDataDiskCount *int32 `json:"maxDataDiskCount,omitempty"`

	// The maximum Nics count supported by target compute size.
	MaxNicsCount *int32 `json:"maxNicsCount,omitempty"`

	// The maximum memory in GB supported by target compute size.
	MemoryInGB *float64 `json:"memoryInGB,omitempty"`

	// Target compute size name.
	Name *string `json:"name,omitempty"`

	// READ-ONLY; The Available vCPUs supported by target compute size.
	VCPUsAvailable *int32 `json:"vCPUsAvailable,omitempty" azure:"ro"`
}

TargetComputeSizeProperties - Represents applicable recovery vm sizes properties.

func (TargetComputeSizeProperties) MarshalJSON

func (t TargetComputeSizeProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TargetComputeSizeProperties.

func (*TargetComputeSizeProperties) UnmarshalJSON added in v1.1.0

func (t *TargetComputeSizeProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TargetComputeSizeProperties.

type TargetComputeSizesClient

type TargetComputeSizesClient struct {
	// contains filtered or unexported fields
}

TargetComputeSizesClient contains the methods for the TargetComputeSizes group. Don't use this type directly, use NewTargetComputeSizesClient() instead.

func NewTargetComputeSizesClient

func NewTargetComputeSizesClient(resourceName string, resourceGroupName string, subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TargetComputeSizesClient, error)

NewTargetComputeSizesClient creates a new instance of TargetComputeSizesClient with the specified values. resourceName - The name of the recovery services vault. resourceGroupName - The name of the resource group where the recovery services vault is present. subscriptionID - The subscription Id. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.

func (*TargetComputeSizesClient) NewListByReplicationProtectedItemsPager added in v0.4.0

func (client *TargetComputeSizesClient) NewListByReplicationProtectedItemsPager(fabricName string, protectionContainerName string, replicatedProtectedItemName string, options *TargetComputeSizesClientListByReplicationProtectedItemsOptions) *runtime.Pager[TargetComputeSizesClientListByReplicationProtectedItemsResponse]

NewListByReplicationProtectedItemsPager - Lists the available target compute sizes for a replication protected item. Generated from API version 2022-10-01 fabricName - Fabric name. protectionContainerName - protection container name. replicatedProtectedItemName - Replication protected item name. options - TargetComputeSizesClientListByReplicationProtectedItemsOptions contains the optional parameters for the TargetComputeSizesClient.ListByReplicationProtectedItems method.

Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2022-10-01/examples/TargetComputeSizes_ListByReplicationProtectedItems.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	client, err := armrecoveryservicessiterecovery.NewTargetComputeSizesClient("avraiMgDiskVault", "avraiMgDiskVaultRG", "6808dbbc-98c7-431f-a1b1-9580902423b7", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := client.NewListByReplicationProtectedItemsPager("asr-a2a-default-centraluseuap", "asr-a2a-default-centraluseuap-container", "468c912d-b1ab-4ea2-97eb-4b5095155db2", nil)
	for pager.More() {
		nextResult, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range nextResult.Value {
			// TODO: use page item
			_ = v
		}
	}
}
Output:

type TargetComputeSizesClientListByReplicationProtectedItemsOptions added in v0.2.0

type TargetComputeSizesClientListByReplicationProtectedItemsOptions struct {
}

TargetComputeSizesClientListByReplicationProtectedItemsOptions contains the optional parameters for the TargetComputeSizesClient.ListByReplicationProtectedItems method.

type TargetComputeSizesClientListByReplicationProtectedItemsResponse added in v0.2.0

type TargetComputeSizesClientListByReplicationProtectedItemsResponse struct {
	TargetComputeSizeCollection
}

TargetComputeSizesClientListByReplicationProtectedItemsResponse contains the response from method TargetComputeSizesClient.ListByReplicationProtectedItems.

type TaskTypeDetails

type TaskTypeDetails struct {
	// REQUIRED; The type of task details.
	InstanceType *string `json:"instanceType,omitempty"`
}

TaskTypeDetails - Task details based on specific task type.

func (*TaskTypeDetails) GetTaskTypeDetails

func (t *TaskTypeDetails) GetTaskTypeDetails() *TaskTypeDetails

GetTaskTypeDetails implements the TaskTypeDetailsClassification interface for type TaskTypeDetails.

func (TaskTypeDetails) MarshalJSON added in v1.1.0

func (t TaskTypeDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TaskTypeDetails.

func (*TaskTypeDetails) UnmarshalJSON

func (t *TaskTypeDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TaskTypeDetails.

type TaskTypeDetailsClassification

type TaskTypeDetailsClassification interface {
	// GetTaskTypeDetails returns the TaskTypeDetails content of the underlying type.
	GetTaskTypeDetails() *TaskTypeDetails
}

TaskTypeDetailsClassification provides polymorphic access to related types. Call the interface's GetTaskTypeDetails() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AutomationRunbookTaskDetails, *ConsistencyCheckTaskDetails, *FabricReplicationGroupTaskDetails, *JobTaskDetails, *ManualActionTaskDetails, - *ScriptActionTaskDetails, *TaskTypeDetails, *VMNicUpdatesTaskDetails, *VirtualMachineTaskDetails

type TestFailoverCleanupInput

type TestFailoverCleanupInput struct {
	// REQUIRED; Test failover cleanup input properties.
	Properties *TestFailoverCleanupInputProperties `json:"properties,omitempty"`
}

TestFailoverCleanupInput - Input definition for test failover cleanup.

func (TestFailoverCleanupInput) MarshalJSON added in v1.1.0

func (t TestFailoverCleanupInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TestFailoverCleanupInput.

func (*TestFailoverCleanupInput) UnmarshalJSON added in v1.1.0

func (t *TestFailoverCleanupInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TestFailoverCleanupInput.

type TestFailoverCleanupInputProperties

type TestFailoverCleanupInputProperties struct {
	// Test failover cleanup comments.
	Comments *string `json:"comments,omitempty"`
}

TestFailoverCleanupInputProperties - Input definition for test failover cleanup input properties.

func (TestFailoverCleanupInputProperties) MarshalJSON added in v1.1.0

func (t TestFailoverCleanupInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TestFailoverCleanupInputProperties.

func (*TestFailoverCleanupInputProperties) UnmarshalJSON added in v1.1.0

func (t *TestFailoverCleanupInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TestFailoverCleanupInputProperties.

type TestFailoverInput

type TestFailoverInput struct {
	// REQUIRED; Test failover input properties.
	Properties *TestFailoverInputProperties `json:"properties,omitempty"`
}

TestFailoverInput - Input definition for test failover.

func (TestFailoverInput) MarshalJSON added in v1.1.0

func (t TestFailoverInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TestFailoverInput.

func (*TestFailoverInput) UnmarshalJSON added in v1.1.0

func (t *TestFailoverInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TestFailoverInput.

type TestFailoverInputProperties

type TestFailoverInputProperties struct {
	// Test failover direction.
	FailoverDirection *string `json:"failoverDirection,omitempty"`

	// The id of the network to be used for test failover.
	NetworkID *string `json:"networkId,omitempty"`

	// Network type to be used for test failover.
	NetworkType *string `json:"networkType,omitempty"`

	// Provider specific settings.
	ProviderSpecificDetails TestFailoverProviderSpecificInputClassification `json:"providerSpecificDetails,omitempty"`
}

TestFailoverInputProperties - Input definition for test failover input properties.

func (TestFailoverInputProperties) MarshalJSON

func (t TestFailoverInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TestFailoverInputProperties.

func (*TestFailoverInputProperties) UnmarshalJSON

func (t *TestFailoverInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TestFailoverInputProperties.

type TestFailoverJobDetails

type TestFailoverJobDetails struct {
	// REQUIRED; Gets the type of job details (see JobDetailsTypes enum for possible values).
	InstanceType *string `json:"instanceType,omitempty"`

	// The affected object properties like source server, source cloud, target server, target cloud etc. based on the workflow
	// object details.
	AffectedObjectDetails map[string]*string `json:"affectedObjectDetails,omitempty"`

	// The test failover comments.
	Comments *string `json:"comments,omitempty"`

	// The test network friendly name.
	NetworkFriendlyName *string `json:"networkFriendlyName,omitempty"`

	// The test network name.
	NetworkName *string `json:"networkName,omitempty"`

	// The test network type (see TestFailoverInput enum for possible values).
	NetworkType *string `json:"networkType,omitempty"`

	// The test VM details.
	ProtectedItemDetails []*FailoverReplicationProtectedItemDetails `json:"protectedItemDetails,omitempty"`

	// The test failover status.
	TestFailoverStatus *string `json:"testFailoverStatus,omitempty"`
}

TestFailoverJobDetails - This class represents the details for a test failover job.

func (*TestFailoverJobDetails) GetJobDetails added in v0.2.0

func (t *TestFailoverJobDetails) GetJobDetails() *JobDetails

GetJobDetails implements the JobDetailsClassification interface for type TestFailoverJobDetails.

func (TestFailoverJobDetails) MarshalJSON

func (t TestFailoverJobDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TestFailoverJobDetails.

func (*TestFailoverJobDetails) UnmarshalJSON

func (t *TestFailoverJobDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TestFailoverJobDetails.

type TestFailoverProviderSpecificInput

type TestFailoverProviderSpecificInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

TestFailoverProviderSpecificInput - Provider specific test failover input.

func (*TestFailoverProviderSpecificInput) GetTestFailoverProviderSpecificInput

func (t *TestFailoverProviderSpecificInput) GetTestFailoverProviderSpecificInput() *TestFailoverProviderSpecificInput

GetTestFailoverProviderSpecificInput implements the TestFailoverProviderSpecificInputClassification interface for type TestFailoverProviderSpecificInput.

func (TestFailoverProviderSpecificInput) MarshalJSON added in v1.1.0

func (t TestFailoverProviderSpecificInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TestFailoverProviderSpecificInput.

func (*TestFailoverProviderSpecificInput) UnmarshalJSON

func (t *TestFailoverProviderSpecificInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TestFailoverProviderSpecificInput.

type TestFailoverProviderSpecificInputClassification

type TestFailoverProviderSpecificInputClassification interface {
	// GetTestFailoverProviderSpecificInput returns the TestFailoverProviderSpecificInput content of the underlying type.
	GetTestFailoverProviderSpecificInput() *TestFailoverProviderSpecificInput
}

TestFailoverProviderSpecificInputClassification provides polymorphic access to related types. Call the interface's GetTestFailoverProviderSpecificInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *A2ATestFailoverInput, *HyperVReplicaAzureTestFailoverInput, *InMageAzureV2TestFailoverInput, *InMageRcmTestFailoverInput, - *InMageTestFailoverInput, *TestFailoverProviderSpecificInput

type TestMigrateCleanupInput

type TestMigrateCleanupInput struct {
	// REQUIRED; Test migrate cleanup input properties.
	Properties *TestMigrateCleanupInputProperties `json:"properties,omitempty"`
}

TestMigrateCleanupInput - Input for test migrate cleanup.

func (TestMigrateCleanupInput) MarshalJSON added in v1.1.0

func (t TestMigrateCleanupInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TestMigrateCleanupInput.

func (*TestMigrateCleanupInput) UnmarshalJSON added in v1.1.0

func (t *TestMigrateCleanupInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TestMigrateCleanupInput.

type TestMigrateCleanupInputProperties

type TestMigrateCleanupInputProperties struct {
	// Test migrate cleanup comments.
	Comments *string `json:"comments,omitempty"`
}

TestMigrateCleanupInputProperties - Test migrate cleanup input properties.

func (TestMigrateCleanupInputProperties) MarshalJSON added in v1.1.0

func (t TestMigrateCleanupInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TestMigrateCleanupInputProperties.

func (*TestMigrateCleanupInputProperties) UnmarshalJSON added in v1.1.0

func (t *TestMigrateCleanupInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TestMigrateCleanupInputProperties.

type TestMigrateInput

type TestMigrateInput struct {
	// REQUIRED; Test migrate input properties.
	Properties *TestMigrateInputProperties `json:"properties,omitempty"`
}

TestMigrateInput - Input for test migrate.

func (TestMigrateInput) MarshalJSON added in v1.1.0

func (t TestMigrateInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TestMigrateInput.

func (*TestMigrateInput) UnmarshalJSON added in v1.1.0

func (t *TestMigrateInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TestMigrateInput.

type TestMigrateInputProperties

type TestMigrateInputProperties struct {
	// REQUIRED; The provider specific details.
	ProviderSpecificDetails TestMigrateProviderSpecificInputClassification `json:"providerSpecificDetails,omitempty"`
}

TestMigrateInputProperties - Test migrate input properties.

func (TestMigrateInputProperties) MarshalJSON

func (t TestMigrateInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TestMigrateInputProperties.

func (*TestMigrateInputProperties) UnmarshalJSON

func (t *TestMigrateInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TestMigrateInputProperties.

type TestMigrateProviderSpecificInput

type TestMigrateProviderSpecificInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

TestMigrateProviderSpecificInput - Test migrate provider specific input.

func (*TestMigrateProviderSpecificInput) GetTestMigrateProviderSpecificInput

func (t *TestMigrateProviderSpecificInput) GetTestMigrateProviderSpecificInput() *TestMigrateProviderSpecificInput

GetTestMigrateProviderSpecificInput implements the TestMigrateProviderSpecificInputClassification interface for type TestMigrateProviderSpecificInput.

func (TestMigrateProviderSpecificInput) MarshalJSON added in v1.1.0

func (t TestMigrateProviderSpecificInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TestMigrateProviderSpecificInput.

func (*TestMigrateProviderSpecificInput) UnmarshalJSON

func (t *TestMigrateProviderSpecificInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TestMigrateProviderSpecificInput.

type TestMigrateProviderSpecificInputClassification

type TestMigrateProviderSpecificInputClassification interface {
	// GetTestMigrateProviderSpecificInput returns the TestMigrateProviderSpecificInput content of the underlying type.
	GetTestMigrateProviderSpecificInput() *TestMigrateProviderSpecificInput
}

TestMigrateProviderSpecificInputClassification provides polymorphic access to related types. Call the interface's GetTestMigrateProviderSpecificInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *TestMigrateProviderSpecificInput, *VMwareCbtTestMigrateInput

type TestMigrationState

type TestMigrationState string

TestMigrationState - The test migrate state.

const (
	TestMigrationStateNone                                  TestMigrationState = "None"
	TestMigrationStateTestMigrationCleanupInProgress        TestMigrationState = "TestMigrationCleanupInProgress"
	TestMigrationStateTestMigrationCompletedWithInformation TestMigrationState = "TestMigrationCompletedWithInformation"
	TestMigrationStateTestMigrationFailed                   TestMigrationState = "TestMigrationFailed"
	TestMigrationStateTestMigrationInProgress               TestMigrationState = "TestMigrationInProgress"
	TestMigrationStateTestMigrationPartiallySucceeded       TestMigrationState = "TestMigrationPartiallySucceeded"
	TestMigrationStateTestMigrationSucceeded                TestMigrationState = "TestMigrationSucceeded"
)

func PossibleTestMigrationStateValues

func PossibleTestMigrationStateValues() []TestMigrationState

PossibleTestMigrationStateValues returns the possible values for the TestMigrationState const type.

type UnplannedFailoverInput

type UnplannedFailoverInput struct {
	// REQUIRED; Unplanned failover input properties.
	Properties *UnplannedFailoverInputProperties `json:"properties,omitempty"`
}

UnplannedFailoverInput - Input definition for unplanned failover.

func (UnplannedFailoverInput) MarshalJSON added in v1.1.0

func (u UnplannedFailoverInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UnplannedFailoverInput.

func (*UnplannedFailoverInput) UnmarshalJSON added in v1.1.0

func (u *UnplannedFailoverInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UnplannedFailoverInput.

type UnplannedFailoverInputProperties

type UnplannedFailoverInputProperties struct {
	// Failover direction.
	FailoverDirection *string `json:"failoverDirection,omitempty"`

	// Provider specific settings.
	ProviderSpecificDetails UnplannedFailoverProviderSpecificInputClassification `json:"providerSpecificDetails,omitempty"`

	// Source site operations status.
	SourceSiteOperations *string `json:"sourceSiteOperations,omitempty"`
}

UnplannedFailoverInputProperties - Input definition for unplanned failover input properties.

func (UnplannedFailoverInputProperties) MarshalJSON

func (u UnplannedFailoverInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UnplannedFailoverInputProperties.

func (*UnplannedFailoverInputProperties) UnmarshalJSON

func (u *UnplannedFailoverInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UnplannedFailoverInputProperties.

type UnplannedFailoverProviderSpecificInput

type UnplannedFailoverProviderSpecificInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

UnplannedFailoverProviderSpecificInput - Provider specific unplanned failover input.

func (*UnplannedFailoverProviderSpecificInput) GetUnplannedFailoverProviderSpecificInput

func (u *UnplannedFailoverProviderSpecificInput) GetUnplannedFailoverProviderSpecificInput() *UnplannedFailoverProviderSpecificInput

GetUnplannedFailoverProviderSpecificInput implements the UnplannedFailoverProviderSpecificInputClassification interface for type UnplannedFailoverProviderSpecificInput.

func (UnplannedFailoverProviderSpecificInput) MarshalJSON added in v1.1.0

func (u UnplannedFailoverProviderSpecificInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UnplannedFailoverProviderSpecificInput.

func (*UnplannedFailoverProviderSpecificInput) UnmarshalJSON

func (u *UnplannedFailoverProviderSpecificInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UnplannedFailoverProviderSpecificInput.

type UnplannedFailoverProviderSpecificInputClassification

type UnplannedFailoverProviderSpecificInputClassification interface {
	// GetUnplannedFailoverProviderSpecificInput returns the UnplannedFailoverProviderSpecificInput content of the underlying type.
	GetUnplannedFailoverProviderSpecificInput() *UnplannedFailoverProviderSpecificInput
}

UnplannedFailoverProviderSpecificInputClassification provides polymorphic access to related types. Call the interface's GetUnplannedFailoverProviderSpecificInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *A2AUnplannedFailoverInput, *HyperVReplicaAzureUnplannedFailoverInput, *InMageAzureV2UnplannedFailoverInput, *InMageRcmUnplannedFailoverInput, - *InMageUnplannedFailoverInput, *UnplannedFailoverProviderSpecificInput

type UpdateApplianceForReplicationProtectedItemInput

type UpdateApplianceForReplicationProtectedItemInput struct {
	// REQUIRED; Update appliance replication protected item properties.
	Properties *UpdateApplianceForReplicationProtectedItemInputProperties `json:"properties,omitempty"`
}

UpdateApplianceForReplicationProtectedItemInput - Update appliance for replication protected item input.

func (UpdateApplianceForReplicationProtectedItemInput) MarshalJSON added in v1.1.0

MarshalJSON implements the json.Marshaller interface for type UpdateApplianceForReplicationProtectedItemInput.

func (*UpdateApplianceForReplicationProtectedItemInput) UnmarshalJSON added in v1.1.0

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateApplianceForReplicationProtectedItemInput.

type UpdateApplianceForReplicationProtectedItemInputProperties

type UpdateApplianceForReplicationProtectedItemInputProperties struct {
	// REQUIRED; The provider specific input to update replication protected item.
	ProviderSpecificDetails UpdateApplianceForReplicationProtectedItemProviderSpecificInputClassification `json:"providerSpecificDetails,omitempty"`

	// REQUIRED; The target appliance Id.
	TargetApplianceID *string `json:"targetApplianceId,omitempty"`
}

UpdateApplianceForReplicationProtectedItemInputProperties - Update appliance for protected item input properties.

func (UpdateApplianceForReplicationProtectedItemInputProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type UpdateApplianceForReplicationProtectedItemInputProperties.

func (*UpdateApplianceForReplicationProtectedItemInputProperties) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateApplianceForReplicationProtectedItemInputProperties.

type UpdateApplianceForReplicationProtectedItemProviderSpecificInput

type UpdateApplianceForReplicationProtectedItemProviderSpecificInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

UpdateApplianceForReplicationProtectedItemProviderSpecificInput - Update replication protected item provider specific input.

func (*UpdateApplianceForReplicationProtectedItemProviderSpecificInput) GetUpdateApplianceForReplicationProtectedItemProviderSpecificInput

GetUpdateApplianceForReplicationProtectedItemProviderSpecificInput implements the UpdateApplianceForReplicationProtectedItemProviderSpecificInputClassification interface for type UpdateApplianceForReplicationProtectedItemProviderSpecificInput.

func (UpdateApplianceForReplicationProtectedItemProviderSpecificInput) MarshalJSON added in v1.1.0

MarshalJSON implements the json.Marshaller interface for type UpdateApplianceForReplicationProtectedItemProviderSpecificInput.

func (*UpdateApplianceForReplicationProtectedItemProviderSpecificInput) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateApplianceForReplicationProtectedItemProviderSpecificInput.

type UpdateApplianceForReplicationProtectedItemProviderSpecificInputClassification

type UpdateApplianceForReplicationProtectedItemProviderSpecificInputClassification interface {
	// GetUpdateApplianceForReplicationProtectedItemProviderSpecificInput returns the UpdateApplianceForReplicationProtectedItemProviderSpecificInput content of the underlying type.
	GetUpdateApplianceForReplicationProtectedItemProviderSpecificInput() *UpdateApplianceForReplicationProtectedItemProviderSpecificInput
}

UpdateApplianceForReplicationProtectedItemProviderSpecificInputClassification provides polymorphic access to related types. Call the interface's GetUpdateApplianceForReplicationProtectedItemProviderSpecificInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *InMageRcmUpdateApplianceForReplicationProtectedItemInput, *UpdateApplianceForReplicationProtectedItemProviderSpecificInput

type UpdateDiskInput

type UpdateDiskInput struct {
	// REQUIRED; The disk Id.
	DiskID *string `json:"diskId,omitempty"`

	// The target disk name.
	TargetDiskName *string `json:"targetDiskName,omitempty"`
}

UpdateDiskInput - Disk input for update.

func (UpdateDiskInput) MarshalJSON added in v1.1.0

func (u UpdateDiskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UpdateDiskInput.

func (*UpdateDiskInput) UnmarshalJSON added in v1.1.0

func (u *UpdateDiskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateDiskInput.

type UpdateMigrationItemInput

type UpdateMigrationItemInput struct {
	// Update migration item input properties.
	Properties *UpdateMigrationItemInputProperties `json:"properties,omitempty"`
}

UpdateMigrationItemInput - Update migration item input.

func (UpdateMigrationItemInput) MarshalJSON

func (u UpdateMigrationItemInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UpdateMigrationItemInput.

func (*UpdateMigrationItemInput) UnmarshalJSON added in v1.1.0

func (u *UpdateMigrationItemInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateMigrationItemInput.

type UpdateMigrationItemInputProperties

type UpdateMigrationItemInputProperties struct {
	// REQUIRED; The provider specific input to update migration item.
	ProviderSpecificDetails UpdateMigrationItemProviderSpecificInputClassification `json:"providerSpecificDetails,omitempty"`
}

UpdateMigrationItemInputProperties - Update migration item input properties.

func (UpdateMigrationItemInputProperties) MarshalJSON

func (u UpdateMigrationItemInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UpdateMigrationItemInputProperties.

func (*UpdateMigrationItemInputProperties) UnmarshalJSON

func (u *UpdateMigrationItemInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateMigrationItemInputProperties.

type UpdateMigrationItemProviderSpecificInput

type UpdateMigrationItemProviderSpecificInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

UpdateMigrationItemProviderSpecificInput - Update migration item provider specific input.

func (*UpdateMigrationItemProviderSpecificInput) GetUpdateMigrationItemProviderSpecificInput

func (u *UpdateMigrationItemProviderSpecificInput) GetUpdateMigrationItemProviderSpecificInput() *UpdateMigrationItemProviderSpecificInput

GetUpdateMigrationItemProviderSpecificInput implements the UpdateMigrationItemProviderSpecificInputClassification interface for type UpdateMigrationItemProviderSpecificInput.

func (UpdateMigrationItemProviderSpecificInput) MarshalJSON added in v1.1.0

MarshalJSON implements the json.Marshaller interface for type UpdateMigrationItemProviderSpecificInput.

func (*UpdateMigrationItemProviderSpecificInput) UnmarshalJSON

func (u *UpdateMigrationItemProviderSpecificInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateMigrationItemProviderSpecificInput.

type UpdateMigrationItemProviderSpecificInputClassification

type UpdateMigrationItemProviderSpecificInputClassification interface {
	// GetUpdateMigrationItemProviderSpecificInput returns the UpdateMigrationItemProviderSpecificInput content of the underlying type.
	GetUpdateMigrationItemProviderSpecificInput() *UpdateMigrationItemProviderSpecificInput
}

UpdateMigrationItemProviderSpecificInputClassification provides polymorphic access to related types. Call the interface's GetUpdateMigrationItemProviderSpecificInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *UpdateMigrationItemProviderSpecificInput, *VMwareCbtUpdateMigrationItemInput

type UpdateMobilityServiceRequest

type UpdateMobilityServiceRequest struct {
	// The properties of the update mobility service request.
	Properties *UpdateMobilityServiceRequestProperties `json:"properties,omitempty"`
}

UpdateMobilityServiceRequest - Request to update the mobility service on a protected item.

func (UpdateMobilityServiceRequest) MarshalJSON added in v1.1.0

func (u UpdateMobilityServiceRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UpdateMobilityServiceRequest.

func (*UpdateMobilityServiceRequest) UnmarshalJSON added in v1.1.0

func (u *UpdateMobilityServiceRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateMobilityServiceRequest.

type UpdateMobilityServiceRequestProperties

type UpdateMobilityServiceRequestProperties struct {
	// The CS run as account Id.
	RunAsAccountID *string `json:"runAsAccountId,omitempty"`
}

UpdateMobilityServiceRequestProperties - The properties of an update mobility service request.

func (UpdateMobilityServiceRequestProperties) MarshalJSON added in v1.1.0

func (u UpdateMobilityServiceRequestProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UpdateMobilityServiceRequestProperties.

func (*UpdateMobilityServiceRequestProperties) UnmarshalJSON added in v1.1.0

func (u *UpdateMobilityServiceRequestProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateMobilityServiceRequestProperties.

type UpdateNetworkMappingInput

type UpdateNetworkMappingInput struct {
	// The input properties needed to update network mapping.
	Properties *UpdateNetworkMappingInputProperties `json:"properties,omitempty"`
}

UpdateNetworkMappingInput - Update network mapping input.

func (UpdateNetworkMappingInput) MarshalJSON

func (u UpdateNetworkMappingInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UpdateNetworkMappingInput.

func (*UpdateNetworkMappingInput) UnmarshalJSON added in v1.1.0

func (u *UpdateNetworkMappingInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateNetworkMappingInput.

type UpdateNetworkMappingInputProperties

type UpdateNetworkMappingInputProperties struct {
	// Fabrics specific input network Id.
	FabricSpecificDetails FabricSpecificUpdateNetworkMappingInputClassification `json:"fabricSpecificDetails,omitempty"`

	// Recovery fabric name.
	RecoveryFabricName *string `json:"recoveryFabricName,omitempty"`

	// Recovery network Id.
	RecoveryNetworkID *string `json:"recoveryNetworkId,omitempty"`
}

UpdateNetworkMappingInputProperties - Common input details for network mapping operation.

func (UpdateNetworkMappingInputProperties) MarshalJSON

func (u UpdateNetworkMappingInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UpdateNetworkMappingInputProperties.

func (*UpdateNetworkMappingInputProperties) UnmarshalJSON

func (u *UpdateNetworkMappingInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateNetworkMappingInputProperties.

type UpdatePolicyInput

type UpdatePolicyInput struct {
	// The ReplicationProviderSettings.
	Properties *UpdatePolicyInputProperties `json:"properties,omitempty"`
}

UpdatePolicyInput - Update policy input.

func (UpdatePolicyInput) MarshalJSON

func (u UpdatePolicyInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UpdatePolicyInput.

func (*UpdatePolicyInput) UnmarshalJSON added in v1.1.0

func (u *UpdatePolicyInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UpdatePolicyInput.

type UpdatePolicyInputProperties

type UpdatePolicyInputProperties struct {
	// The ReplicationProviderSettings.
	ReplicationProviderSettings PolicyProviderSpecificInputClassification `json:"replicationProviderSettings,omitempty"`
}

UpdatePolicyInputProperties - Policy update properties.

func (UpdatePolicyInputProperties) MarshalJSON

func (u UpdatePolicyInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UpdatePolicyInputProperties.

func (*UpdatePolicyInputProperties) UnmarshalJSON

func (u *UpdatePolicyInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UpdatePolicyInputProperties.

type UpdateProtectionContainerMappingInput

type UpdateProtectionContainerMappingInput struct {
	// Update protection container mapping input properties.
	Properties *UpdateProtectionContainerMappingInputProperties `json:"properties,omitempty"`
}

UpdateProtectionContainerMappingInput - Container pairing update input.

func (UpdateProtectionContainerMappingInput) MarshalJSON

func (u UpdateProtectionContainerMappingInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UpdateProtectionContainerMappingInput.

func (*UpdateProtectionContainerMappingInput) UnmarshalJSON added in v1.1.0

func (u *UpdateProtectionContainerMappingInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateProtectionContainerMappingInput.

type UpdateProtectionContainerMappingInputProperties

type UpdateProtectionContainerMappingInputProperties struct {
	// Provider specific input for updating protection container mapping.
	ProviderSpecificInput ReplicationProviderSpecificUpdateContainerMappingInputClassification `json:"providerSpecificInput,omitempty"`
}

UpdateProtectionContainerMappingInputProperties - Container pairing update input.

func (UpdateProtectionContainerMappingInputProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type UpdateProtectionContainerMappingInputProperties.

func (*UpdateProtectionContainerMappingInputProperties) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateProtectionContainerMappingInputProperties.

type UpdateRecoveryPlanInput

type UpdateRecoveryPlanInput struct {
	// Recovery plan update properties.
	Properties *UpdateRecoveryPlanInputProperties `json:"properties,omitempty"`
}

UpdateRecoveryPlanInput - Update recovery plan input class.

func (UpdateRecoveryPlanInput) MarshalJSON

func (u UpdateRecoveryPlanInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UpdateRecoveryPlanInput.

func (*UpdateRecoveryPlanInput) UnmarshalJSON added in v1.1.0

func (u *UpdateRecoveryPlanInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateRecoveryPlanInput.

type UpdateRecoveryPlanInputProperties

type UpdateRecoveryPlanInputProperties struct {
	// The recovery plan groups.
	Groups []*RecoveryPlanGroup `json:"groups,omitempty"`
}

UpdateRecoveryPlanInputProperties - Recovery plan update properties.

func (UpdateRecoveryPlanInputProperties) MarshalJSON

func (u UpdateRecoveryPlanInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UpdateRecoveryPlanInputProperties.

func (*UpdateRecoveryPlanInputProperties) UnmarshalJSON added in v1.1.0

func (u *UpdateRecoveryPlanInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateRecoveryPlanInputProperties.

type UpdateReplicationProtectedItemInput

type UpdateReplicationProtectedItemInput struct {
	// Update replication protected item properties.
	Properties *UpdateReplicationProtectedItemInputProperties `json:"properties,omitempty"`
}

UpdateReplicationProtectedItemInput - Update replication protected item input.

func (UpdateReplicationProtectedItemInput) MarshalJSON

func (u UpdateReplicationProtectedItemInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UpdateReplicationProtectedItemInput.

func (*UpdateReplicationProtectedItemInput) UnmarshalJSON added in v1.1.0

func (u *UpdateReplicationProtectedItemInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateReplicationProtectedItemInput.

type UpdateReplicationProtectedItemInputProperties

type UpdateReplicationProtectedItemInputProperties struct {
	// The selected option to enable RDP\SSH on target vm after failover. String value of SrsDataContract.EnableRDPOnTargetOption
	// enum.
	EnableRdpOnTargetOption *string `json:"enableRdpOnTargetOption,omitempty"`

	// License type.
	LicenseType *LicenseType `json:"licenseType,omitempty"`

	// The provider specific input to update replication protected item.
	ProviderSpecificDetails UpdateReplicationProtectedItemProviderInputClassification `json:"providerSpecificDetails,omitempty"`

	// The target availability set Id.
	RecoveryAvailabilitySetID *string `json:"recoveryAvailabilitySetId,omitempty"`

	// Target Azure VM name given by the user.
	RecoveryAzureVMName *string `json:"recoveryAzureVMName,omitempty"`

	// Target Azure VM size.
	RecoveryAzureVMSize *string `json:"recoveryAzureVMSize,omitempty"`

	// Target Azure Network Id.
	SelectedRecoveryAzureNetworkID *string `json:"selectedRecoveryAzureNetworkId,omitempty"`

	// The selected source nic Id which will be used as the primary nic during failover.
	SelectedSourceNicID *string `json:"selectedSourceNicId,omitempty"`

	// The Azure Network Id for test failover.
	SelectedTfoAzureNetworkID *string `json:"selectedTfoAzureNetworkId,omitempty"`

	// The list of VM nic details.
	VMNics []*VMNicInputDetails `json:"vmNics,omitempty"`
}

UpdateReplicationProtectedItemInputProperties - Update protected item input properties.

func (UpdateReplicationProtectedItemInputProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type UpdateReplicationProtectedItemInputProperties.

func (*UpdateReplicationProtectedItemInputProperties) UnmarshalJSON

func (u *UpdateReplicationProtectedItemInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateReplicationProtectedItemInputProperties.

type UpdateReplicationProtectedItemProviderInput

type UpdateReplicationProtectedItemProviderInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

UpdateReplicationProtectedItemProviderInput - Update replication protected item provider specific input.

func (*UpdateReplicationProtectedItemProviderInput) GetUpdateReplicationProtectedItemProviderInput

func (u *UpdateReplicationProtectedItemProviderInput) GetUpdateReplicationProtectedItemProviderInput() *UpdateReplicationProtectedItemProviderInput

GetUpdateReplicationProtectedItemProviderInput implements the UpdateReplicationProtectedItemProviderInputClassification interface for type UpdateReplicationProtectedItemProviderInput.

func (UpdateReplicationProtectedItemProviderInput) MarshalJSON added in v1.1.0

MarshalJSON implements the json.Marshaller interface for type UpdateReplicationProtectedItemProviderInput.

func (*UpdateReplicationProtectedItemProviderInput) UnmarshalJSON

func (u *UpdateReplicationProtectedItemProviderInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateReplicationProtectedItemProviderInput.

type UpdateReplicationProtectedItemProviderInputClassification

type UpdateReplicationProtectedItemProviderInputClassification interface {
	// GetUpdateReplicationProtectedItemProviderInput returns the UpdateReplicationProtectedItemProviderInput content of the underlying type.
	GetUpdateReplicationProtectedItemProviderInput() *UpdateReplicationProtectedItemProviderInput
}

UpdateReplicationProtectedItemProviderInputClassification provides polymorphic access to related types. Call the interface's GetUpdateReplicationProtectedItemProviderInput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *A2AUpdateReplicationProtectedItemInput, *HyperVReplicaAzureUpdateReplicationProtectedItemInput, *InMageAzureV2UpdateReplicationProtectedItemInput, - *InMageRcmUpdateReplicationProtectedItemInput, *UpdateReplicationProtectedItemProviderInput

type UpdateVCenterRequest

type UpdateVCenterRequest struct {
	// The update VCenter Request Properties.
	Properties *UpdateVCenterRequestProperties `json:"properties,omitempty"`
}

UpdateVCenterRequest - Input required to update vCenter.

func (UpdateVCenterRequest) MarshalJSON

func (u UpdateVCenterRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UpdateVCenterRequest.

func (*UpdateVCenterRequest) UnmarshalJSON added in v1.1.0

func (u *UpdateVCenterRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateVCenterRequest.

type UpdateVCenterRequestProperties

type UpdateVCenterRequestProperties struct {
	// The friendly name of the vCenter.
	FriendlyName *string `json:"friendlyName,omitempty"`

	// The IP address of the vCenter to be discovered.
	IPAddress *string `json:"ipAddress,omitempty"`

	// The port number for discovery.
	Port *string `json:"port,omitempty"`

	// The process server Id from where the update can be orchestrated.
	ProcessServerID *string `json:"processServerId,omitempty"`

	// The CS account Id which has privileges to update the vCenter.
	RunAsAccountID *string `json:"runAsAccountId,omitempty"`
}

UpdateVCenterRequestProperties - The properties of an update vCenter request.

func (UpdateVCenterRequestProperties) MarshalJSON added in v1.1.0

func (u UpdateVCenterRequestProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UpdateVCenterRequestProperties.

func (*UpdateVCenterRequestProperties) UnmarshalJSON added in v1.1.0

func (u *UpdateVCenterRequestProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UpdateVCenterRequestProperties.

type VCenter

type VCenter struct {
	// Resource Location
	Location *string `json:"location,omitempty"`

	// VCenter related data.
	Properties *VCenterProperties `json:"properties,omitempty"`

	// READ-ONLY; Resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Resource Name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Resource Type
	Type *string `json:"type,omitempty" azure:"ro"`
}

VCenter - vCenter definition.

func (VCenter) MarshalJSON added in v1.1.0

func (v VCenter) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VCenter.

func (*VCenter) UnmarshalJSON added in v1.1.0

func (v *VCenter) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VCenter.

type VCenterCollection

type VCenterCollection struct {
	// The value of next link.
	NextLink *string `json:"nextLink,omitempty"`

	// The vCenter details.
	Value []*VCenter `json:"value,omitempty"`
}

VCenterCollection - Collection of vCenter details.

func (VCenterCollection) MarshalJSON

func (v VCenterCollection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VCenterCollection.

func (*VCenterCollection) UnmarshalJSON added in v1.1.0

func (v *VCenterCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VCenterCollection.

type VCenterProperties

type VCenterProperties struct {
	// The VCenter discovery status.
	DiscoveryStatus *string `json:"discoveryStatus,omitempty"`

	// The ARM resource name of the fabric containing this VCenter.
	FabricArmResourceName *string `json:"fabricArmResourceName,omitempty"`

	// Friendly name of the vCenter.
	FriendlyName *string `json:"friendlyName,omitempty"`

	// The health errors for this VCenter.
	HealthErrors []*HealthError `json:"healthErrors,omitempty"`

	// The IP address of the vCenter.
	IPAddress *string `json:"ipAddress,omitempty"`

	// The infrastructure Id of vCenter.
	InfrastructureID *string `json:"infrastructureId,omitempty"`

	// VCenter internal ID.
	InternalID *string `json:"internalId,omitempty"`

	// The time when the last heartbeat was received by vCenter.
	LastHeartbeat *time.Time `json:"lastHeartbeat,omitempty"`

	// The port number for discovery.
	Port *string `json:"port,omitempty"`

	// The process server Id.
	ProcessServerID *string `json:"processServerId,omitempty"`

	// The account Id which has privileges to discover the vCenter.
	RunAsAccountID *string `json:"runAsAccountId,omitempty"`
}

VCenterProperties - vCenter properties.

func (VCenterProperties) MarshalJSON

func (v VCenterProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VCenterProperties.

func (*VCenterProperties) UnmarshalJSON

func (v *VCenterProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VCenterProperties.

type VMEncryptionType

type VMEncryptionType string

VMEncryptionType - The encryption type of the VM.

const (
	VMEncryptionTypeNotEncrypted     VMEncryptionType = "NotEncrypted"
	VMEncryptionTypeOnePassEncrypted VMEncryptionType = "OnePassEncrypted"
	VMEncryptionTypeTwoPassEncrypted VMEncryptionType = "TwoPassEncrypted"
)

func PossibleVMEncryptionTypeValues

func PossibleVMEncryptionTypeValues() []VMEncryptionType

PossibleVMEncryptionTypeValues returns the possible values for the VMEncryptionType const type.

type VMNicDetails

type VMNicDetails struct {
	// A value indicating whether the NIC has accelerated networking enabled.
	EnableAcceleratedNetworkingOnRecovery *bool `json:"enableAcceleratedNetworkingOnRecovery,omitempty"`

	// Whether the TFO NIC has accelerated networking enabled.
	EnableAcceleratedNetworkingOnTfo *bool `json:"enableAcceleratedNetworkingOnTfo,omitempty"`

	// The IP configurations of the NIC.
	IPConfigs []*IPConfigDetails `json:"ipConfigs,omitempty"`

	// The nic Id.
	NicID *string `json:"nicId,omitempty"`

	// The id of the NSG associated with the NIC.
	RecoveryNetworkSecurityGroupID *string `json:"recoveryNetworkSecurityGroupId,omitempty"`

	// The name of the NIC to be used when creating target NICs.
	RecoveryNicName *string `json:"recoveryNicName,omitempty"`

	// The resource group of the NIC to be used when creating target NICs.
	RecoveryNicResourceGroupName *string `json:"recoveryNicResourceGroupName,omitempty"`

	// Recovery VM network Id.
	RecoveryVMNetworkID *string `json:"recoveryVMNetworkId,omitempty"`

	// The replica nic Id.
	ReplicaNicID *string `json:"replicaNicId,omitempty"`

	// A value indicating whether an existing NIC is allowed to be reused during failover subject to availability.
	ReuseExistingNic *bool `json:"reuseExistingNic,omitempty"`

	// Selection type for failover.
	SelectionType *string `json:"selectionType,omitempty"`

	// The source nic ARM Id.
	SourceNicArmID *string `json:"sourceNicArmId,omitempty"`

	// Target NIC name.
	TargetNicName *string `json:"targetNicName,omitempty"`

	// The NSG to be used by NIC during test failover.
	TfoNetworkSecurityGroupID *string `json:"tfoNetworkSecurityGroupId,omitempty"`

	// The name of the NIC to be used when creating target NICs in TFO.
	TfoRecoveryNicName *string `json:"tfoRecoveryNicName,omitempty"`

	// The resource group of the NIC to be used when creating target NICs in TFO.
	TfoRecoveryNicResourceGroupName *string `json:"tfoRecoveryNicResourceGroupName,omitempty"`

	// A value indicating whether an existing NIC is allowed to be reused during test failover subject to availability.
	TfoReuseExistingNic *bool `json:"tfoReuseExistingNic,omitempty"`

	// The network to be used by NIC during test failover.
	TfoVMNetworkID *string `json:"tfoVMNetworkId,omitempty"`

	// VM network name.
	VMNetworkName *string `json:"vMNetworkName,omitempty"`
}

VMNicDetails - Hyper V VM network details.

func (VMNicDetails) MarshalJSON

func (v VMNicDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VMNicDetails.

func (*VMNicDetails) UnmarshalJSON added in v1.1.0

func (v *VMNicDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VMNicDetails.

type VMNicInputDetails

type VMNicInputDetails struct {
	// Whether the NIC has accelerated networking enabled.
	EnableAcceleratedNetworkingOnRecovery *bool `json:"enableAcceleratedNetworkingOnRecovery,omitempty"`

	// Whether the test NIC has accelerated networking enabled.
	EnableAcceleratedNetworkingOnTfo *bool `json:"enableAcceleratedNetworkingOnTfo,omitempty"`

	// The IP configurations to be used by NIC during test failover and failover.
	IPConfigs []*IPConfigInputDetails `json:"ipConfigs,omitempty"`

	// The nic Id.
	NicID *string `json:"nicId,omitempty"`

	// The id of the NSG associated with the NIC.
	RecoveryNetworkSecurityGroupID *string `json:"recoveryNetworkSecurityGroupId,omitempty"`

	// The name of the NIC to be used when creating target NICs.
	RecoveryNicName *string `json:"recoveryNicName,omitempty"`

	// The resource group of the NIC to be used when creating target NICs.
	RecoveryNicResourceGroupName *string `json:"recoveryNicResourceGroupName,omitempty"`

	// A value indicating whether an existing NIC is allowed to be reused during failover subject to availability.
	ReuseExistingNic *bool `json:"reuseExistingNic,omitempty"`

	// Selection type for failover.
	SelectionType *string `json:"selectionType,omitempty"`

	// Target NIC name.
	TargetNicName *string `json:"targetNicName,omitempty"`

	// The NSG to be used by NIC during test failover.
	TfoNetworkSecurityGroupID *string `json:"tfoNetworkSecurityGroupId,omitempty"`

	// The name of the NIC to be used when creating target NICs in TFO.
	TfoNicName *string `json:"tfoNicName,omitempty"`

	// The resource group of the NIC to be used when creating target NICs in TFO.
	TfoNicResourceGroupName *string `json:"tfoNicResourceGroupName,omitempty"`

	// A value indicating whether an existing NIC is allowed to be reused during test failover subject to availability.
	TfoReuseExistingNic *bool `json:"tfoReuseExistingNic,omitempty"`
}

VMNicInputDetails - Hyper V VM network input details.

func (VMNicInputDetails) MarshalJSON

func (v VMNicInputDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VMNicInputDetails.

func (*VMNicInputDetails) UnmarshalJSON added in v1.1.0

func (v *VMNicInputDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VMNicInputDetails.

type VMNicUpdatesTaskDetails

type VMNicUpdatesTaskDetails struct {
	// REQUIRED; The type of task details.
	InstanceType *string `json:"instanceType,omitempty"`

	// Name of the Nic.
	Name *string `json:"name,omitempty"`

	// Nic Id.
	NicID *string `json:"nicId,omitempty"`

	// Virtual machine Id.
	VMID *string `json:"vmId,omitempty"`
}

VMNicUpdatesTaskDetails - This class represents the vm NicUpdates task details.

func (*VMNicUpdatesTaskDetails) GetTaskTypeDetails added in v0.2.0

func (v *VMNicUpdatesTaskDetails) GetTaskTypeDetails() *TaskTypeDetails

GetTaskTypeDetails implements the TaskTypeDetailsClassification interface for type VMNicUpdatesTaskDetails.

func (VMNicUpdatesTaskDetails) MarshalJSON

func (v VMNicUpdatesTaskDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VMNicUpdatesTaskDetails.

func (*VMNicUpdatesTaskDetails) UnmarshalJSON

func (v *VMNicUpdatesTaskDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VMNicUpdatesTaskDetails.

type VMReplicationProgressHealth

type VMReplicationProgressHealth string

VMReplicationProgressHealth - The initial replication progress health.

const (
	VMReplicationProgressHealthInProgress   VMReplicationProgressHealth = "InProgress"
	VMReplicationProgressHealthNoProgress   VMReplicationProgressHealth = "NoProgress"
	VMReplicationProgressHealthNone         VMReplicationProgressHealth = "None"
	VMReplicationProgressHealthSlowProgress VMReplicationProgressHealth = "SlowProgress"
)

func PossibleVMReplicationProgressHealthValues

func PossibleVMReplicationProgressHealthValues() []VMReplicationProgressHealth

PossibleVMReplicationProgressHealthValues returns the possible values for the VMReplicationProgressHealth const type.

type VMwareCbtContainerCreationInput

type VMwareCbtContainerCreationInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`
}

VMwareCbtContainerCreationInput - VMwareCbt container creation input.

func (*VMwareCbtContainerCreationInput) GetReplicationProviderSpecificContainerCreationInput added in v0.2.0

func (v *VMwareCbtContainerCreationInput) GetReplicationProviderSpecificContainerCreationInput() *ReplicationProviderSpecificContainerCreationInput

GetReplicationProviderSpecificContainerCreationInput implements the ReplicationProviderSpecificContainerCreationInputClassification interface for type VMwareCbtContainerCreationInput.

func (VMwareCbtContainerCreationInput) MarshalJSON

func (v VMwareCbtContainerCreationInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VMwareCbtContainerCreationInput.

func (*VMwareCbtContainerCreationInput) UnmarshalJSON added in v0.2.0

func (v *VMwareCbtContainerCreationInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VMwareCbtContainerCreationInput.

type VMwareCbtContainerMappingInput

type VMwareCbtContainerMappingInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; The storage account ARM Id.
	StorageAccountID *string `json:"storageAccountId,omitempty"`

	// REQUIRED; The target location.
	TargetLocation *string `json:"targetLocation,omitempty"`

	// The target key vault ARM Id.
	KeyVaultID *string `json:"keyVaultId,omitempty"`

	// The target key vault URL.
	KeyVaultURI *string `json:"keyVaultUri,omitempty"`

	// The secret name of the service bus connection string.
	ServiceBusConnectionStringSecretName *string `json:"serviceBusConnectionStringSecretName,omitempty"`

	// The secret name of the storage account.
	StorageAccountSasSecretName *string `json:"storageAccountSasSecretName,omitempty"`
}

VMwareCbtContainerMappingInput - VMwareCbt container mapping input.

func (*VMwareCbtContainerMappingInput) GetReplicationProviderSpecificContainerMappingInput added in v0.2.0

func (v *VMwareCbtContainerMappingInput) GetReplicationProviderSpecificContainerMappingInput() *ReplicationProviderSpecificContainerMappingInput

GetReplicationProviderSpecificContainerMappingInput implements the ReplicationProviderSpecificContainerMappingInputClassification interface for type VMwareCbtContainerMappingInput.

func (VMwareCbtContainerMappingInput) MarshalJSON

func (v VMwareCbtContainerMappingInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VMwareCbtContainerMappingInput.

func (*VMwareCbtContainerMappingInput) UnmarshalJSON

func (v *VMwareCbtContainerMappingInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VMwareCbtContainerMappingInput.

type VMwareCbtDiskInput

type VMwareCbtDiskInput struct {
	// REQUIRED; The disk Id.
	DiskID *string `json:"diskId,omitempty"`

	// REQUIRED; A value indicating whether the disk is the OS disk.
	IsOSDisk *string `json:"isOSDisk,omitempty"`

	// REQUIRED; The log storage account ARM Id.
	LogStorageAccountID *string `json:"logStorageAccountId,omitempty"`

	// REQUIRED; The key vault secret name of the log storage account.
	LogStorageAccountSasSecretName *string `json:"logStorageAccountSasSecretName,omitempty"`

	// The DiskEncryptionSet ARM Id.
	DiskEncryptionSetID *string `json:"diskEncryptionSetId,omitempty"`

	// The disk type.
	DiskType *DiskAccountType `json:"diskType,omitempty"`
}

VMwareCbtDiskInput - VMwareCbt disk input.

func (VMwareCbtDiskInput) MarshalJSON added in v1.1.0

func (v VMwareCbtDiskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VMwareCbtDiskInput.

func (*VMwareCbtDiskInput) UnmarshalJSON added in v1.1.0

func (v *VMwareCbtDiskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VMwareCbtDiskInput.

type VMwareCbtEnableMigrationInput

type VMwareCbtEnableMigrationInput struct {
	// REQUIRED; The data mover run as account Id.
	DataMoverRunAsAccountID *string `json:"dataMoverRunAsAccountId,omitempty"`

	// REQUIRED; The disks to include list.
	DisksToInclude []*VMwareCbtDiskInput `json:"disksToInclude,omitempty"`

	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; The snapshot run as account Id.
	SnapshotRunAsAccountID *string `json:"snapshotRunAsAccountId,omitempty"`

	// REQUIRED; The target network ARM Id.
	TargetNetworkID *string `json:"targetNetworkId,omitempty"`

	// REQUIRED; The target resource group ARM Id.
	TargetResourceGroupID *string `json:"targetResourceGroupId,omitempty"`

	// REQUIRED; The ARM Id of the VM discovered in VMware.
	VmwareMachineID *string `json:"vmwareMachineId,omitempty"`

	// License type.
	LicenseType *LicenseType `json:"licenseType,omitempty"`

	// A value indicating whether auto resync is to be done.
	PerformAutoResync *string `json:"performAutoResync,omitempty"`

	// A value indicating whether bulk SQL RP registration to be done.
	PerformSQLBulkRegistration *string `json:"performSqlBulkRegistration,omitempty"`

	// The SQL Server license type.
	SQLServerLicenseType *SQLServerLicenseType `json:"sqlServerLicenseType,omitempty"`

	// The tags for the seed disks.
	SeedDiskTags map[string]*string `json:"seedDiskTags,omitempty"`

	// The target availability set ARM Id.
	TargetAvailabilitySetID *string `json:"targetAvailabilitySetId,omitempty"`

	// The target availability zone.
	TargetAvailabilityZone *string `json:"targetAvailabilityZone,omitempty"`

	// The target boot diagnostics storage account ARM Id.
	TargetBootDiagnosticsStorageAccountID *string `json:"targetBootDiagnosticsStorageAccountId,omitempty"`

	// The tags for the target disks.
	TargetDiskTags map[string]*string `json:"targetDiskTags,omitempty"`

	// The tags for the target NICs.
	TargetNicTags map[string]*string `json:"targetNicTags,omitempty"`

	// The target proximity placement group ARM Id.
	TargetProximityPlacementGroupID *string `json:"targetProximityPlacementGroupId,omitempty"`

	// The target subnet name.
	TargetSubnetName *string `json:"targetSubnetName,omitempty"`

	// The target VM name.
	TargetVMName *string `json:"targetVmName,omitempty"`

	// The target VM size.
	TargetVMSize *string `json:"targetVmSize,omitempty"`

	// The target VM tags.
	TargetVMTags map[string]*string `json:"targetVmTags,omitempty"`

	// The selected test network ARM Id.
	TestNetworkID *string `json:"testNetworkId,omitempty"`

	// The selected test subnet name.
	TestSubnetName *string `json:"testSubnetName,omitempty"`
}

VMwareCbtEnableMigrationInput - VMwareCbt specific enable migration input.

func (*VMwareCbtEnableMigrationInput) GetEnableMigrationProviderSpecificInput added in v0.2.0

func (v *VMwareCbtEnableMigrationInput) GetEnableMigrationProviderSpecificInput() *EnableMigrationProviderSpecificInput

GetEnableMigrationProviderSpecificInput implements the EnableMigrationProviderSpecificInputClassification interface for type VMwareCbtEnableMigrationInput.

func (VMwareCbtEnableMigrationInput) MarshalJSON

func (v VMwareCbtEnableMigrationInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VMwareCbtEnableMigrationInput.

func (*VMwareCbtEnableMigrationInput) UnmarshalJSON

func (v *VMwareCbtEnableMigrationInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VMwareCbtEnableMigrationInput.

type VMwareCbtEventDetails

type VMwareCbtEventDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// READ-ONLY; The migration item name.
	MigrationItemName *string `json:"migrationItemName,omitempty" azure:"ro"`
}

VMwareCbtEventDetails - Event details for VMwareCbt provider.

func (*VMwareCbtEventDetails) GetEventProviderSpecificDetails added in v0.2.0

func (v *VMwareCbtEventDetails) GetEventProviderSpecificDetails() *EventProviderSpecificDetails

GetEventProviderSpecificDetails implements the EventProviderSpecificDetailsClassification interface for type VMwareCbtEventDetails.

func (VMwareCbtEventDetails) MarshalJSON

func (v VMwareCbtEventDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VMwareCbtEventDetails.

func (*VMwareCbtEventDetails) UnmarshalJSON

func (v *VMwareCbtEventDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VMwareCbtEventDetails.

type VMwareCbtMigrateInput

type VMwareCbtMigrateInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; A value indicating whether VM is to be shutdown.
	PerformShutdown *string `json:"performShutdown,omitempty"`
}

VMwareCbtMigrateInput - VMwareCbt specific migrate input.

func (*VMwareCbtMigrateInput) GetMigrateProviderSpecificInput added in v0.2.0

func (v *VMwareCbtMigrateInput) GetMigrateProviderSpecificInput() *MigrateProviderSpecificInput

GetMigrateProviderSpecificInput implements the MigrateProviderSpecificInputClassification interface for type VMwareCbtMigrateInput.

func (VMwareCbtMigrateInput) MarshalJSON

func (v VMwareCbtMigrateInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VMwareCbtMigrateInput.

func (*VMwareCbtMigrateInput) UnmarshalJSON

func (v *VMwareCbtMigrateInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VMwareCbtMigrateInput.

type VMwareCbtMigrationDetails

type VMwareCbtMigrationDetails struct {
	// REQUIRED; Gets the instance type.
	InstanceType *string `json:"instanceType,omitempty"`

	// License Type of the VM to be used.
	LicenseType *string `json:"licenseType,omitempty"`

	// A value indicating whether auto resync is to be done.
	PerformAutoResync *string `json:"performAutoResync,omitempty"`

	// The list of protected disks.
	ProtectedDisks []*VMwareCbtProtectedDiskDetails `json:"protectedDisks,omitempty"`

	// The SQL Server license type.
	SQLServerLicenseType *string `json:"sqlServerLicenseType,omitempty"`

	// The tags for the seed disks.
	SeedDiskTags map[string]*string `json:"seedDiskTags,omitempty"`

	// The target availability set Id.
	TargetAvailabilitySetID *string `json:"targetAvailabilitySetId,omitempty"`

	// The target availability zone.
	TargetAvailabilityZone *string `json:"targetAvailabilityZone,omitempty"`

	// The target boot diagnostics storage account ARM Id.
	TargetBootDiagnosticsStorageAccountID *string `json:"targetBootDiagnosticsStorageAccountId,omitempty"`

	// The tags for the target disks.
	TargetDiskTags map[string]*string `json:"targetDiskTags,omitempty"`

	// The target network Id.
	TargetNetworkID *string `json:"targetNetworkId,omitempty"`

	// The tags for the target NICs.
	TargetNicTags map[string]*string `json:"targetNicTags,omitempty"`

	// The target proximity placement group Id.
	TargetProximityPlacementGroupID *string `json:"targetProximityPlacementGroupId,omitempty"`

	// The target resource group Id.
	TargetResourceGroupID *string `json:"targetResourceGroupId,omitempty"`

	// Target VM name.
	TargetVMName *string `json:"targetVmName,omitempty"`

	// The target VM size.
	TargetVMSize *string `json:"targetVmSize,omitempty"`

	// The target VM tags.
	TargetVMTags map[string]*string `json:"targetVmTags,omitempty"`

	// The test network Id.
	TestNetworkID *string `json:"testNetworkId,omitempty"`

	// The network details.
	VMNics []*VMwareCbtNicDetails `json:"vmNics,omitempty"`

	// READ-ONLY; The data mover run as account Id.
	DataMoverRunAsAccountID *string `json:"dataMoverRunAsAccountId,omitempty" azure:"ro"`

	// READ-ONLY; The firmware type.
	FirmwareType *string `json:"firmwareType,omitempty" azure:"ro"`

	// READ-ONLY; The initial seeding progress percentage.
	InitialSeedingProgressPercentage *int32 `json:"initialSeedingProgressPercentage,omitempty" azure:"ro"`

	// READ-ONLY; The initial seeding retry count.
	InitialSeedingRetryCount *int64 `json:"initialSeedingRetryCount,omitempty" azure:"ro"`

	// READ-ONLY; The last recovery point Id.
	LastRecoveryPointID *string `json:"lastRecoveryPointId,omitempty" azure:"ro"`

	// READ-ONLY; The last recovery point received time.
	LastRecoveryPointReceived *time.Time `json:"lastRecoveryPointReceived,omitempty" azure:"ro"`

	// READ-ONLY; The migration progress percentage.
	MigrationProgressPercentage *int32 `json:"migrationProgressPercentage,omitempty" azure:"ro"`

	// READ-ONLY; The recovery point Id to which the VM was migrated.
	MigrationRecoveryPointID *string `json:"migrationRecoveryPointId,omitempty" azure:"ro"`

	// READ-ONLY; The type of the OS on the VM.
	OSType *string `json:"osType,omitempty" azure:"ro"`

	// READ-ONLY; The resume progress percentage.
	ResumeProgressPercentage *int32 `json:"resumeProgressPercentage,omitempty" azure:"ro"`

	// READ-ONLY; The resume retry count.
	ResumeRetryCount *int64 `json:"resumeRetryCount,omitempty" azure:"ro"`

	// READ-ONLY; The resync progress percentage.
	ResyncProgressPercentage *int32 `json:"resyncProgressPercentage,omitempty" azure:"ro"`

	// READ-ONLY; A value indicating whether resync is required.
	ResyncRequired *string `json:"resyncRequired,omitempty" azure:"ro"`

	// READ-ONLY; The resync retry count.
	ResyncRetryCount *int64 `json:"resyncRetryCount,omitempty" azure:"ro"`

	// READ-ONLY; The resync state.
	ResyncState *ResyncState `json:"resyncState,omitempty" azure:"ro"`

	// READ-ONLY; The snapshot run as account Id.
	SnapshotRunAsAccountID *string `json:"snapshotRunAsAccountId,omitempty" azure:"ro"`

	// READ-ONLY; The replication storage account ARM Id. This is applicable only for the blob based replication test hook.
	StorageAccountID *string `json:"storageAccountId,omitempty" azure:"ro"`

	// READ-ONLY; The target generation.
	TargetGeneration *string `json:"targetGeneration,omitempty" azure:"ro"`

	// READ-ONLY; The target location.
	TargetLocation *string `json:"targetLocation,omitempty" azure:"ro"`

	// READ-ONLY; The ARM Id of the VM discovered in VMware.
	VmwareMachineID *string `json:"vmwareMachineId,omitempty" azure:"ro"`
}

VMwareCbtMigrationDetails - VMwareCbt provider specific settings.

func (*VMwareCbtMigrationDetails) GetMigrationProviderSpecificSettings added in v0.2.0

func (v *VMwareCbtMigrationDetails) GetMigrationProviderSpecificSettings() *MigrationProviderSpecificSettings

GetMigrationProviderSpecificSettings implements the MigrationProviderSpecificSettingsClassification interface for type VMwareCbtMigrationDetails.

func (VMwareCbtMigrationDetails) MarshalJSON

func (v VMwareCbtMigrationDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VMwareCbtMigrationDetails.

func (*VMwareCbtMigrationDetails) UnmarshalJSON

func (v *VMwareCbtMigrationDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VMwareCbtMigrationDetails.

type VMwareCbtNicDetails

type VMwareCbtNicDetails struct {
	// A value indicating whether this is the primary NIC.
	IsPrimaryNic *string `json:"isPrimaryNic,omitempty"`

	// A value indicating whether this NIC is selected for migration.
	IsSelectedForMigration *string `json:"isSelectedForMigration,omitempty"`

	// The target IP address.
	TargetIPAddress *string `json:"targetIPAddress,omitempty"`

	// The target IP address type.
	TargetIPAddressType *EthernetAddressType `json:"targetIPAddressType,omitempty"`

	// Target NIC name.
	TargetNicName *string `json:"targetNicName,omitempty"`

	// Target subnet name.
	TargetSubnetName *string `json:"targetSubnetName,omitempty"`

	// The test IP address.
	TestIPAddress *string `json:"testIPAddress,omitempty"`

	// The test IP address type.
	TestIPAddressType *EthernetAddressType `json:"testIPAddressType,omitempty"`

	// Source network Id.
	TestNetworkID *string `json:"testNetworkId,omitempty"`

	// Test subnet name.
	TestSubnetName *string `json:"testSubnetName,omitempty"`

	// READ-ONLY; The NIC Id.
	NicID *string `json:"nicId,omitempty" azure:"ro"`

	// READ-ONLY; The source IP address.
	SourceIPAddress *string `json:"sourceIPAddress,omitempty" azure:"ro"`

	// READ-ONLY; The source IP address type.
	SourceIPAddressType *EthernetAddressType `json:"sourceIPAddressType,omitempty" azure:"ro"`

	// READ-ONLY; Source network Id.
	SourceNetworkID *string `json:"sourceNetworkId,omitempty" azure:"ro"`
}

VMwareCbtNicDetails - VMwareCbt NIC details.

func (VMwareCbtNicDetails) MarshalJSON added in v1.1.0

func (v VMwareCbtNicDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VMwareCbtNicDetails.

func (*VMwareCbtNicDetails) UnmarshalJSON added in v1.1.0

func (v *VMwareCbtNicDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VMwareCbtNicDetails.

type VMwareCbtNicInput

type VMwareCbtNicInput struct {
	// REQUIRED; A value indicating whether this is the primary NIC.
	IsPrimaryNic *string `json:"isPrimaryNic,omitempty"`

	// REQUIRED; The NIC Id.
	NicID *string `json:"nicId,omitempty"`

	// A value indicating whether this NIC is selected for migration.
	IsSelectedForMigration *string `json:"isSelectedForMigration,omitempty"`

	// Target NIC name.
	TargetNicName *string `json:"targetNicName,omitempty"`

	// The static IP address.
	TargetStaticIPAddress *string `json:"targetStaticIPAddress,omitempty"`

	// Target subnet name.
	TargetSubnetName *string `json:"targetSubnetName,omitempty"`

	// The test static IP address.
	TestStaticIPAddress *string `json:"testStaticIPAddress,omitempty"`

	// The test subnet name.
	TestSubnetName *string `json:"testSubnetName,omitempty"`
}

VMwareCbtNicInput - VMwareCbt NIC input.

func (VMwareCbtNicInput) MarshalJSON added in v1.1.0

func (v VMwareCbtNicInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VMwareCbtNicInput.

func (*VMwareCbtNicInput) UnmarshalJSON added in v1.1.0

func (v *VMwareCbtNicInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VMwareCbtNicInput.

type VMwareCbtPolicyCreationInput

type VMwareCbtPolicyCreationInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The app consistent snapshot frequency (in minutes).
	AppConsistentFrequencyInMinutes *int32 `json:"appConsistentFrequencyInMinutes,omitempty"`

	// The crash consistent snapshot frequency (in minutes).
	CrashConsistentFrequencyInMinutes *int32 `json:"crashConsistentFrequencyInMinutes,omitempty"`

	// The duration in minutes until which the recovery points need to be stored.
	RecoveryPointHistoryInMinutes *int32 `json:"recoveryPointHistoryInMinutes,omitempty"`
}

VMwareCbtPolicyCreationInput - VMware Cbt policy creation input.

func (*VMwareCbtPolicyCreationInput) GetPolicyProviderSpecificInput added in v0.2.0

func (v *VMwareCbtPolicyCreationInput) GetPolicyProviderSpecificInput() *PolicyProviderSpecificInput

GetPolicyProviderSpecificInput implements the PolicyProviderSpecificInputClassification interface for type VMwareCbtPolicyCreationInput.

func (VMwareCbtPolicyCreationInput) MarshalJSON

func (v VMwareCbtPolicyCreationInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VMwareCbtPolicyCreationInput.

func (*VMwareCbtPolicyCreationInput) UnmarshalJSON

func (v *VMwareCbtPolicyCreationInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VMwareCbtPolicyCreationInput.

type VMwareCbtProtectedDiskDetails

type VMwareCbtProtectedDiskDetails struct {
	// The disk type.
	DiskType *DiskAccountType `json:"diskType,omitempty"`

	// The name for the target managed disk.
	TargetDiskName *string `json:"targetDiskName,omitempty"`

	// READ-ONLY; The disk capacity in bytes.
	CapacityInBytes *int64 `json:"capacityInBytes,omitempty" azure:"ro"`

	// READ-ONLY; The DiskEncryptionSet ARM Id.
	DiskEncryptionSetID *string `json:"diskEncryptionSetId,omitempty" azure:"ro"`

	// READ-ONLY; The disk id.
	DiskID *string `json:"diskId,omitempty" azure:"ro"`

	// READ-ONLY; The disk name.
	DiskName *string `json:"diskName,omitempty" azure:"ro"`

	// READ-ONLY; The disk path.
	DiskPath *string `json:"diskPath,omitempty" azure:"ro"`

	// READ-ONLY; A value indicating whether the disk is the OS disk.
	IsOSDisk *string `json:"isOSDisk,omitempty" azure:"ro"`

	// READ-ONLY; The log storage account ARM Id.
	LogStorageAccountID *string `json:"logStorageAccountId,omitempty" azure:"ro"`

	// READ-ONLY; The key vault secret name of the log storage account.
	LogStorageAccountSasSecretName *string `json:"logStorageAccountSasSecretName,omitempty" azure:"ro"`

	// READ-ONLY; The uri of the seed blob.
	SeedBlobURI *string `json:"seedBlobUri,omitempty" azure:"ro"`

	// READ-ONLY; The ARM Id of the seed managed disk.
	SeedManagedDiskID *string `json:"seedManagedDiskId,omitempty" azure:"ro"`

	// READ-ONLY; The uri of the target blob.
	TargetBlobURI *string `json:"targetBlobUri,omitempty" azure:"ro"`

	// READ-ONLY; The ARM Id of the target managed disk.
	TargetManagedDiskID *string `json:"targetManagedDiskId,omitempty" azure:"ro"`
}

VMwareCbtProtectedDiskDetails - VMwareCbt protected disk details.

func (VMwareCbtProtectedDiskDetails) MarshalJSON added in v1.1.0

func (v VMwareCbtProtectedDiskDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VMwareCbtProtectedDiskDetails.

func (*VMwareCbtProtectedDiskDetails) UnmarshalJSON added in v1.1.0

func (v *VMwareCbtProtectedDiskDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VMwareCbtProtectedDiskDetails.

type VMwareCbtProtectionContainerMappingDetails

type VMwareCbtProtectionContainerMappingDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// READ-ONLY; The target key vault ARM Id.
	KeyVaultID *string `json:"keyVaultId,omitempty" azure:"ro"`

	// READ-ONLY; The target key vault URI.
	KeyVaultURI *string `json:"keyVaultUri,omitempty" azure:"ro"`

	// READ-ONLY; The role size to NIC count map.
	RoleSizeToNicCountMap map[string]*int32 `json:"roleSizeToNicCountMap,omitempty" azure:"ro"`

	// READ-ONLY; The secret name of the service bus connection string.
	ServiceBusConnectionStringSecretName *string `json:"serviceBusConnectionStringSecretName,omitempty" azure:"ro"`

	// READ-ONLY; The storage account ARM Id.
	StorageAccountID *string `json:"storageAccountId,omitempty" azure:"ro"`

	// READ-ONLY; The secret name of the storage account.
	StorageAccountSasSecretName *string `json:"storageAccountSasSecretName,omitempty" azure:"ro"`

	// READ-ONLY; The target location.
	TargetLocation *string `json:"targetLocation,omitempty" azure:"ro"`
}

VMwareCbtProtectionContainerMappingDetails - VMwareCbt provider specific container mapping details.

func (*VMwareCbtProtectionContainerMappingDetails) GetProtectionContainerMappingProviderSpecificDetails added in v0.2.0

func (v *VMwareCbtProtectionContainerMappingDetails) GetProtectionContainerMappingProviderSpecificDetails() *ProtectionContainerMappingProviderSpecificDetails

GetProtectionContainerMappingProviderSpecificDetails implements the ProtectionContainerMappingProviderSpecificDetailsClassification interface for type VMwareCbtProtectionContainerMappingDetails.

func (VMwareCbtProtectionContainerMappingDetails) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type VMwareCbtProtectionContainerMappingDetails.

func (*VMwareCbtProtectionContainerMappingDetails) UnmarshalJSON

func (v *VMwareCbtProtectionContainerMappingDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VMwareCbtProtectionContainerMappingDetails.

type VMwareCbtResumeReplicationInput added in v1.1.0

type VMwareCbtResumeReplicationInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// A value indicating whether Migration resources to be deleted.
	DeleteMigrationResources *string `json:"deleteMigrationResources,omitempty"`
}

VMwareCbtResumeReplicationInput - VMwareCbt specific resume replication input.

func (*VMwareCbtResumeReplicationInput) GetResumeReplicationProviderSpecificInput added in v1.1.0

func (v *VMwareCbtResumeReplicationInput) GetResumeReplicationProviderSpecificInput() *ResumeReplicationProviderSpecificInput

GetResumeReplicationProviderSpecificInput implements the ResumeReplicationProviderSpecificInputClassification interface for type VMwareCbtResumeReplicationInput.

func (VMwareCbtResumeReplicationInput) MarshalJSON added in v1.1.0

func (v VMwareCbtResumeReplicationInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VMwareCbtResumeReplicationInput.

func (*VMwareCbtResumeReplicationInput) UnmarshalJSON added in v1.1.0

func (v *VMwareCbtResumeReplicationInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VMwareCbtResumeReplicationInput.

type VMwareCbtResyncInput

type VMwareCbtResyncInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; A value indicating whether CBT is to be reset.
	SkipCbtReset *string `json:"skipCbtReset,omitempty"`
}

VMwareCbtResyncInput - VMwareCbt specific resync input.

func (*VMwareCbtResyncInput) GetResyncProviderSpecificInput added in v0.2.0

func (v *VMwareCbtResyncInput) GetResyncProviderSpecificInput() *ResyncProviderSpecificInput

GetResyncProviderSpecificInput implements the ResyncProviderSpecificInputClassification interface for type VMwareCbtResyncInput.

func (VMwareCbtResyncInput) MarshalJSON

func (v VMwareCbtResyncInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VMwareCbtResyncInput.

func (*VMwareCbtResyncInput) UnmarshalJSON

func (v *VMwareCbtResyncInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VMwareCbtResyncInput.

type VMwareCbtTestMigrateInput

type VMwareCbtTestMigrateInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; The test network Id.
	NetworkID *string `json:"networkId,omitempty"`

	// REQUIRED; The recovery point Id.
	RecoveryPointID *string `json:"recoveryPointId,omitempty"`

	// The list of NIC details.
	VMNics []*VMwareCbtNicInput `json:"vmNics,omitempty"`
}

VMwareCbtTestMigrateInput - VMwareCbt specific test migrate input.

func (*VMwareCbtTestMigrateInput) GetTestMigrateProviderSpecificInput added in v0.2.0

func (v *VMwareCbtTestMigrateInput) GetTestMigrateProviderSpecificInput() *TestMigrateProviderSpecificInput

GetTestMigrateProviderSpecificInput implements the TestMigrateProviderSpecificInputClassification interface for type VMwareCbtTestMigrateInput.

func (VMwareCbtTestMigrateInput) MarshalJSON

func (v VMwareCbtTestMigrateInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VMwareCbtTestMigrateInput.

func (*VMwareCbtTestMigrateInput) UnmarshalJSON

func (v *VMwareCbtTestMigrateInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VMwareCbtTestMigrateInput.

type VMwareCbtUpdateDiskInput

type VMwareCbtUpdateDiskInput struct {
	// REQUIRED; The disk Id.
	DiskID *string `json:"diskId,omitempty"`

	// A value indicating whether the disk is the OS disk.
	IsOSDisk *string `json:"isOSDisk,omitempty"`

	// The target disk name.
	TargetDiskName *string `json:"targetDiskName,omitempty"`
}

VMwareCbtUpdateDiskInput - VMwareCbt disk input for update.

func (VMwareCbtUpdateDiskInput) MarshalJSON added in v1.1.0

func (v VMwareCbtUpdateDiskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VMwareCbtUpdateDiskInput.

func (*VMwareCbtUpdateDiskInput) UnmarshalJSON added in v1.1.0

func (v *VMwareCbtUpdateDiskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VMwareCbtUpdateDiskInput.

type VMwareCbtUpdateMigrationItemInput

type VMwareCbtUpdateMigrationItemInput struct {
	// REQUIRED; The class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// The license type.
	LicenseType *LicenseType `json:"licenseType,omitempty"`

	// A value indicating whether auto resync is to be done.
	PerformAutoResync *string `json:"performAutoResync,omitempty"`

	// The SQL Server license type.
	SQLServerLicenseType *SQLServerLicenseType `json:"sqlServerLicenseType,omitempty"`

	// The target availability set ARM Id.
	TargetAvailabilitySetID *string `json:"targetAvailabilitySetId,omitempty"`

	// The target availability zone.
	TargetAvailabilityZone *string `json:"targetAvailabilityZone,omitempty"`

	// The target boot diagnostics storage account ARM Id.
	TargetBootDiagnosticsStorageAccountID *string `json:"targetBootDiagnosticsStorageAccountId,omitempty"`

	// The tags for the target disks.
	TargetDiskTags map[string]*string `json:"targetDiskTags,omitempty"`

	// The target network ARM Id.
	TargetNetworkID *string `json:"targetNetworkId,omitempty"`

	// The tags for the target NICs.
	TargetNicTags map[string]*string `json:"targetNicTags,omitempty"`

	// The target proximity placement group ARM Id.
	TargetProximityPlacementGroupID *string `json:"targetProximityPlacementGroupId,omitempty"`

	// The target resource group ARM Id.
	TargetResourceGroupID *string `json:"targetResourceGroupId,omitempty"`

	// The target VM name.
	TargetVMName *string `json:"targetVmName,omitempty"`

	// The target VM size.
	TargetVMSize *string `json:"targetVmSize,omitempty"`

	// The target VM tags.
	TargetVMTags map[string]*string `json:"targetVmTags,omitempty"`

	// The test network ARM Id.
	TestNetworkID *string `json:"testNetworkId,omitempty"`

	// The list of disk update properties.
	VMDisks []*VMwareCbtUpdateDiskInput `json:"vmDisks,omitempty"`

	// The list of NIC details.
	VMNics []*VMwareCbtNicInput `json:"vmNics,omitempty"`
}

VMwareCbtUpdateMigrationItemInput - VMwareCbt specific update migration item input.

func (*VMwareCbtUpdateMigrationItemInput) GetUpdateMigrationItemProviderSpecificInput added in v0.2.0

func (v *VMwareCbtUpdateMigrationItemInput) GetUpdateMigrationItemProviderSpecificInput() *UpdateMigrationItemProviderSpecificInput

GetUpdateMigrationItemProviderSpecificInput implements the UpdateMigrationItemProviderSpecificInputClassification interface for type VMwareCbtUpdateMigrationItemInput.

func (VMwareCbtUpdateMigrationItemInput) MarshalJSON

func (v VMwareCbtUpdateMigrationItemInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VMwareCbtUpdateMigrationItemInput.

func (*VMwareCbtUpdateMigrationItemInput) UnmarshalJSON

func (v *VMwareCbtUpdateMigrationItemInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VMwareCbtUpdateMigrationItemInput.

type VMwareDetails

type VMwareDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// The number of source and target servers configured to talk to this CS.
	AgentCount *string `json:"agentCount,omitempty"`

	// Agent expiry date.
	AgentExpiryDate *time.Time `json:"agentExpiryDate,omitempty"`

	// The agent Version.
	AgentVersion *string `json:"agentVersion,omitempty"`

	// The agent version details.
	AgentVersionDetails *VersionDetails `json:"agentVersionDetails,omitempty"`

	// The available memory.
	AvailableMemoryInBytes *int64 `json:"availableMemoryInBytes,omitempty"`

	// The available space.
	AvailableSpaceInBytes *int64 `json:"availableSpaceInBytes,omitempty"`

	// The percentage of the CPU load.
	CPULoad *string `json:"cpuLoad,omitempty"`

	// The CPU load status.
	CPULoadStatus *string `json:"cpuLoadStatus,omitempty"`

	// The CS service status.
	CsServiceStatus *string `json:"csServiceStatus,omitempty"`

	// The database server load.
	DatabaseServerLoad *string `json:"databaseServerLoad,omitempty"`

	// The database server load status.
	DatabaseServerLoadStatus *string `json:"databaseServerLoadStatus,omitempty"`

	// The host name.
	HostName *string `json:"hostName,omitempty"`

	// The IP address.
	IPAddress *string `json:"ipAddress,omitempty"`

	// The last heartbeat received from CS server.
	LastHeartbeat *time.Time `json:"lastHeartbeat,omitempty"`

	// The list of Master Target servers associated with the fabric.
	MasterTargetServers []*MasterTargetServer `json:"masterTargetServers,omitempty"`

	// The memory usage status.
	MemoryUsageStatus *string `json:"memoryUsageStatus,omitempty"`

	// The number of process servers.
	ProcessServerCount *string `json:"processServerCount,omitempty"`

	// The list of Process Servers associated with the fabric.
	ProcessServers []*ProcessServer `json:"processServers,omitempty"`

	// The number of protected servers.
	ProtectedServers *string `json:"protectedServers,omitempty"`

	// PS template version.
	PsTemplateVersion *string `json:"psTemplateVersion,omitempty"`

	// The number of replication pairs configured in this CS.
	ReplicationPairCount *string `json:"replicationPairCount,omitempty"`

	// The list of run as accounts created on the server.
	RunAsAccounts []*RunAsAccount `json:"runAsAccounts,omitempty"`

	// CS SSL cert expiry date.
	SSLCertExpiryDate *time.Time `json:"sslCertExpiryDate,omitempty"`

	// CS SSL cert expiry date.
	SSLCertExpiryRemainingDays *int32 `json:"sslCertExpiryRemainingDays,omitempty"`

	// The space usage status.
	SpaceUsageStatus *string `json:"spaceUsageStatus,omitempty"`

	// The switch provider blocking error information.
	SwitchProviderBlockingErrorDetails []*InMageFabricSwitchProviderBlockingErrorDetails `json:"switchProviderBlockingErrorDetails,omitempty"`

	// The percentage of the system load.
	SystemLoad *string `json:"systemLoad,omitempty"`

	// The system load status.
	SystemLoadStatus *string `json:"systemLoadStatus,omitempty"`

	// The total memory.
	TotalMemoryInBytes *int64 `json:"totalMemoryInBytes,omitempty"`

	// The total space.
	TotalSpaceInBytes *int64 `json:"totalSpaceInBytes,omitempty"`

	// Version status.
	VersionStatus *string `json:"versionStatus,omitempty"`

	// The web load.
	WebLoad *string `json:"webLoad,omitempty"`

	// The web load status.
	WebLoadStatus *string `json:"webLoadStatus,omitempty"`
}

VMwareDetails - Store the fabric details specific to the VMware fabric.

func (*VMwareDetails) GetFabricSpecificDetails added in v0.2.0

func (v *VMwareDetails) GetFabricSpecificDetails() *FabricSpecificDetails

GetFabricSpecificDetails implements the FabricSpecificDetailsClassification interface for type VMwareDetails.

func (VMwareDetails) MarshalJSON

func (v VMwareDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VMwareDetails.

func (*VMwareDetails) UnmarshalJSON

func (v *VMwareDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VMwareDetails.

type VMwareV2FabricCreationInput

type VMwareV2FabricCreationInput struct {
	// REQUIRED; Gets the class type.
	InstanceType *string `json:"instanceType,omitempty"`

	// REQUIRED; The ARM Id of the migration solution.
	MigrationSolutionID *string `json:"migrationSolutionId,omitempty"`

	// The ARM Id of the physical site.
	PhysicalSiteID *string `json:"physicalSiteId,omitempty"`

	// The ARM Id of the VMware site.
	VmwareSiteID *string `json:"vmwareSiteId,omitempty"`
}

VMwareV2FabricCreationInput - VMwareV2 fabric provider specific settings.

func (*VMwareV2FabricCreationInput) GetFabricSpecificCreationInput added in v0.2.0

func (v *VMwareV2FabricCreationInput) GetFabricSpecificCreationInput() *FabricSpecificCreationInput

GetFabricSpecificCreationInput implements the FabricSpecificCreationInputClassification interface for type VMwareV2FabricCreationInput.

func (VMwareV2FabricCreationInput) MarshalJSON

func (v VMwareV2FabricCreationInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VMwareV2FabricCreationInput.

func (*VMwareV2FabricCreationInput) UnmarshalJSON

func (v *VMwareV2FabricCreationInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VMwareV2FabricCreationInput.

type VMwareV2FabricSpecificDetails

type VMwareV2FabricSpecificDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// READ-ONLY; The Migration solution ARM Id.
	MigrationSolutionID *string `json:"migrationSolutionId,omitempty" azure:"ro"`

	// READ-ONLY; The ARM Id of the physical site.
	PhysicalSiteID *string `json:"physicalSiteId,omitempty" azure:"ro"`

	// READ-ONLY; The list of process servers.
	ProcessServers []*ProcessServerDetails `json:"processServers,omitempty" azure:"ro"`

	// READ-ONLY; The service container Id.
	ServiceContainerID *string `json:"serviceContainerId,omitempty" azure:"ro"`

	// READ-ONLY; The service endpoint.
	ServiceEndpoint *string `json:"serviceEndpoint,omitempty" azure:"ro"`

	// READ-ONLY; The service resource Id.
	ServiceResourceID *string `json:"serviceResourceId,omitempty" azure:"ro"`

	// READ-ONLY; The ARM Id of the VMware site.
	VmwareSiteID *string `json:"vmwareSiteId,omitempty" azure:"ro"`
}

VMwareV2FabricSpecificDetails - VMwareV2 fabric specific details.

func (*VMwareV2FabricSpecificDetails) GetFabricSpecificDetails added in v0.2.0

func (v *VMwareV2FabricSpecificDetails) GetFabricSpecificDetails() *FabricSpecificDetails

GetFabricSpecificDetails implements the FabricSpecificDetailsClassification interface for type VMwareV2FabricSpecificDetails.

func (VMwareV2FabricSpecificDetails) MarshalJSON

func (v VMwareV2FabricSpecificDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VMwareV2FabricSpecificDetails.

func (*VMwareV2FabricSpecificDetails) UnmarshalJSON

func (v *VMwareV2FabricSpecificDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VMwareV2FabricSpecificDetails.

type VMwareVirtualMachineDetails

type VMwareVirtualMachineDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// The ID generated by the InMage agent after it gets installed on guest. This is the ID to be used during InMage CreateProtection.
	AgentGeneratedID *string `json:"agentGeneratedId,omitempty"`

	// The value indicating if InMage scout agent is installed on guest.
	AgentInstalled *string `json:"agentInstalled,omitempty"`

	// The agent version.
	AgentVersion *string `json:"agentVersion,omitempty"`

	// A value indicating the discovery type of the machine. Value can be vCenter or physical.
	DiscoveryType *string `json:"discoveryType,omitempty"`

	// The disk details.
	DiskDetails []*InMageDiskDetails `json:"diskDetails,omitempty"`

	// The IP address.
	IPAddress *string `json:"ipAddress,omitempty"`

	// The OsType installed on VM.
	OSType *string `json:"osType,omitempty"`

	// The value indicating whether VM is powered on.
	PoweredOn *string `json:"poweredOn,omitempty"`

	// The VCenter infrastructure Id.
	VCenterInfrastructureID *string `json:"vCenterInfrastructureId,omitempty"`

	// The validation errors.
	ValidationErrors []*HealthError `json:"validationErrors,omitempty"`
}

VMwareVirtualMachineDetails - VMware provider specific settings.

func (*VMwareVirtualMachineDetails) GetConfigurationSettings added in v0.2.0

func (v *VMwareVirtualMachineDetails) GetConfigurationSettings() *ConfigurationSettings

GetConfigurationSettings implements the ConfigurationSettingsClassification interface for type VMwareVirtualMachineDetails.

func (VMwareVirtualMachineDetails) MarshalJSON

func (v VMwareVirtualMachineDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VMwareVirtualMachineDetails.

func (*VMwareVirtualMachineDetails) UnmarshalJSON

func (v *VMwareVirtualMachineDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VMwareVirtualMachineDetails.

type VaultHealthDetails

type VaultHealthDetails struct {
	// Resource Location
	Location *string `json:"location,omitempty"`

	// The vault health related data.
	Properties *VaultHealthProperties `json:"properties,omitempty"`

	// READ-ONLY; Resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Resource Name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Resource Type
	Type *string `json:"type,omitempty" azure:"ro"`
}

VaultHealthDetails - Vault health details definition.

func (VaultHealthDetails) MarshalJSON added in v1.1.0

func (v VaultHealthDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VaultHealthDetails.

func (*VaultHealthDetails) UnmarshalJSON added in v1.1.0

func (v *VaultHealthDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VaultHealthDetails.

type VaultHealthProperties

type VaultHealthProperties struct {
	// The list of the health detail of the containers in the vault.
	ContainersHealth *ResourceHealthSummary `json:"containersHealth,omitempty"`

	// The list of the health detail of the fabrics in the vault.
	FabricsHealth *ResourceHealthSummary `json:"fabricsHealth,omitempty"`

	// The list of the health detail of the protected items in the vault.
	ProtectedItemsHealth *ResourceHealthSummary `json:"protectedItemsHealth,omitempty"`

	// The list of errors on the vault.
	VaultErrors []*HealthError `json:"vaultErrors,omitempty"`
}

VaultHealthProperties - class to define the health summary of the Vault.

func (VaultHealthProperties) MarshalJSON

func (v VaultHealthProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VaultHealthProperties.

func (*VaultHealthProperties) UnmarshalJSON added in v1.1.0

func (v *VaultHealthProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VaultHealthProperties.

type VaultSetting

type VaultSetting struct {
	// Resource Location
	Location *string `json:"location,omitempty"`

	// The vault setting properties.
	Properties *VaultSettingProperties `json:"properties,omitempty"`

	// READ-ONLY; Resource Id
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; Resource Name
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; Resource Type
	Type *string `json:"type,omitempty" azure:"ro"`
}

VaultSetting - Vault setting.

func (VaultSetting) MarshalJSON added in v1.1.0

func (v VaultSetting) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VaultSetting.

func (*VaultSetting) UnmarshalJSON added in v1.1.0

func (v *VaultSetting) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VaultSetting.

type VaultSettingCollection

type VaultSettingCollection struct {
	// The value of next link.
	NextLink *string `json:"nextLink,omitempty"`

	// The list of vault setting.
	Value []*VaultSetting `json:"value,omitempty"`
}

VaultSettingCollection - Vault setting collection.

func (VaultSettingCollection) MarshalJSON

func (v VaultSettingCollection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VaultSettingCollection.

func (*VaultSettingCollection) UnmarshalJSON added in v1.1.0

func (v *VaultSettingCollection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VaultSettingCollection.

type VaultSettingCreationInput

type VaultSettingCreationInput struct {
	// REQUIRED; Vault setting creation input properties.
	Properties *VaultSettingCreationInputProperties `json:"properties,omitempty"`
}

VaultSettingCreationInput - Input to create vault setting.

func (VaultSettingCreationInput) MarshalJSON added in v1.1.0

func (v VaultSettingCreationInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VaultSettingCreationInput.

func (*VaultSettingCreationInput) UnmarshalJSON added in v1.1.0

func (v *VaultSettingCreationInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VaultSettingCreationInput.

type VaultSettingCreationInputProperties

type VaultSettingCreationInputProperties struct {
	// The migration solution Id.
	MigrationSolutionID *string `json:"migrationSolutionId,omitempty"`

	// VMware to Azure provider type.
	VmwareToAzureProviderType *string `json:"vmwareToAzureProviderType,omitempty"`
}

VaultSettingCreationInputProperties - Input to create vault setting.

func (VaultSettingCreationInputProperties) MarshalJSON added in v1.1.0

func (v VaultSettingCreationInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VaultSettingCreationInputProperties.

func (*VaultSettingCreationInputProperties) UnmarshalJSON added in v1.1.0

func (v *VaultSettingCreationInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VaultSettingCreationInputProperties.

type VaultSettingProperties

type VaultSettingProperties struct {
	// The migration solution ARM Id.
	MigrationSolutionID *string `json:"migrationSolutionId,omitempty"`

	// VMware to Azure provider type.
	VmwareToAzureProviderType *string `json:"vmwareToAzureProviderType,omitempty"`
}

VaultSettingProperties - Vault setting properties.

func (VaultSettingProperties) MarshalJSON added in v1.1.0

func (v VaultSettingProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VaultSettingProperties.

func (*VaultSettingProperties) UnmarshalJSON added in v1.1.0

func (v *VaultSettingProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VaultSettingProperties.

type VersionDetails

type VersionDetails struct {
	// Version expiry date.
	ExpiryDate *time.Time `json:"expiryDate,omitempty"`

	// A value indicating whether security update required.
	Status *AgentVersionStatus `json:"status,omitempty"`

	// The agent version.
	Version *string `json:"version,omitempty"`
}

VersionDetails - Version related details.

func (VersionDetails) MarshalJSON

func (v VersionDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VersionDetails.

func (*VersionDetails) UnmarshalJSON

func (v *VersionDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VersionDetails.

type VirtualMachineTaskDetails

type VirtualMachineTaskDetails struct {
	// REQUIRED; The type of task details.
	InstanceType *string `json:"instanceType,omitempty"`

	// The job entity.
	JobTask *JobEntity `json:"jobTask,omitempty"`

	// The skipped reason.
	SkippedReason *string `json:"skippedReason,omitempty"`

	// The skipped reason string.
	SkippedReasonString *string `json:"skippedReasonString,omitempty"`
}

VirtualMachineTaskDetails - This class represents the virtual machine task details.

func (*VirtualMachineTaskDetails) GetJobTaskDetails added in v0.2.0

func (v *VirtualMachineTaskDetails) GetJobTaskDetails() *JobTaskDetails

GetJobTaskDetails implements the JobTaskDetailsClassification interface for type VirtualMachineTaskDetails.

func (*VirtualMachineTaskDetails) GetTaskTypeDetails added in v0.2.0

func (v *VirtualMachineTaskDetails) GetTaskTypeDetails() *TaskTypeDetails

GetTaskTypeDetails implements the TaskTypeDetailsClassification interface for type VirtualMachineTaskDetails.

func (VirtualMachineTaskDetails) MarshalJSON

func (v VirtualMachineTaskDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VirtualMachineTaskDetails.

func (*VirtualMachineTaskDetails) UnmarshalJSON

func (v *VirtualMachineTaskDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineTaskDetails.

type VmmDetails

type VmmDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`
}

VmmDetails - VMM fabric specific details.

func (*VmmDetails) GetFabricSpecificDetails added in v0.2.0

func (v *VmmDetails) GetFabricSpecificDetails() *FabricSpecificDetails

GetFabricSpecificDetails implements the FabricSpecificDetailsClassification interface for type VmmDetails.

func (VmmDetails) MarshalJSON

func (v VmmDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VmmDetails.

func (*VmmDetails) UnmarshalJSON added in v0.2.0

func (v *VmmDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VmmDetails.

type VmmToAzureCreateNetworkMappingInput

type VmmToAzureCreateNetworkMappingInput struct {
	// REQUIRED; The instance type.
	InstanceType *string `json:"instanceType,omitempty"`
}

VmmToAzureCreateNetworkMappingInput - Create network mappings input properties/behavior specific to Vmm to Azure Network mapping.

func (*VmmToAzureCreateNetworkMappingInput) GetFabricSpecificCreateNetworkMappingInput added in v0.2.0

func (v *VmmToAzureCreateNetworkMappingInput) GetFabricSpecificCreateNetworkMappingInput() *FabricSpecificCreateNetworkMappingInput

GetFabricSpecificCreateNetworkMappingInput implements the FabricSpecificCreateNetworkMappingInputClassification interface for type VmmToAzureCreateNetworkMappingInput.

func (VmmToAzureCreateNetworkMappingInput) MarshalJSON

func (v VmmToAzureCreateNetworkMappingInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VmmToAzureCreateNetworkMappingInput.

func (*VmmToAzureCreateNetworkMappingInput) UnmarshalJSON added in v0.2.0

func (v *VmmToAzureCreateNetworkMappingInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VmmToAzureCreateNetworkMappingInput.

type VmmToAzureNetworkMappingSettings

type VmmToAzureNetworkMappingSettings struct {
	// REQUIRED; Gets the Instance type.
	InstanceType *string `json:"instanceType,omitempty"`
}

VmmToAzureNetworkMappingSettings - E2A Network Mapping fabric specific settings.

func (*VmmToAzureNetworkMappingSettings) GetNetworkMappingFabricSpecificSettings added in v0.2.0

func (v *VmmToAzureNetworkMappingSettings) GetNetworkMappingFabricSpecificSettings() *NetworkMappingFabricSpecificSettings

GetNetworkMappingFabricSpecificSettings implements the NetworkMappingFabricSpecificSettingsClassification interface for type VmmToAzureNetworkMappingSettings.

func (VmmToAzureNetworkMappingSettings) MarshalJSON

func (v VmmToAzureNetworkMappingSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VmmToAzureNetworkMappingSettings.

func (*VmmToAzureNetworkMappingSettings) UnmarshalJSON added in v0.2.0

func (v *VmmToAzureNetworkMappingSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VmmToAzureNetworkMappingSettings.

type VmmToAzureUpdateNetworkMappingInput

type VmmToAzureUpdateNetworkMappingInput struct {
	// REQUIRED; The instance type.
	InstanceType *string `json:"instanceType,omitempty"`
}

VmmToAzureUpdateNetworkMappingInput - Update network mappings input properties/behavior specific to vmm to azure.

func (*VmmToAzureUpdateNetworkMappingInput) GetFabricSpecificUpdateNetworkMappingInput added in v0.2.0

func (v *VmmToAzureUpdateNetworkMappingInput) GetFabricSpecificUpdateNetworkMappingInput() *FabricSpecificUpdateNetworkMappingInput

GetFabricSpecificUpdateNetworkMappingInput implements the FabricSpecificUpdateNetworkMappingInputClassification interface for type VmmToAzureUpdateNetworkMappingInput.

func (VmmToAzureUpdateNetworkMappingInput) MarshalJSON

func (v VmmToAzureUpdateNetworkMappingInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VmmToAzureUpdateNetworkMappingInput.

func (*VmmToAzureUpdateNetworkMappingInput) UnmarshalJSON added in v0.2.0

func (v *VmmToAzureUpdateNetworkMappingInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VmmToAzureUpdateNetworkMappingInput.

type VmmToVmmCreateNetworkMappingInput

type VmmToVmmCreateNetworkMappingInput struct {
	// REQUIRED; The instance type.
	InstanceType *string `json:"instanceType,omitempty"`
}

VmmToVmmCreateNetworkMappingInput - Create network mappings input properties/behavior specific to vmm to vmm Network mapping.

func (*VmmToVmmCreateNetworkMappingInput) GetFabricSpecificCreateNetworkMappingInput added in v0.2.0

func (v *VmmToVmmCreateNetworkMappingInput) GetFabricSpecificCreateNetworkMappingInput() *FabricSpecificCreateNetworkMappingInput

GetFabricSpecificCreateNetworkMappingInput implements the FabricSpecificCreateNetworkMappingInputClassification interface for type VmmToVmmCreateNetworkMappingInput.

func (VmmToVmmCreateNetworkMappingInput) MarshalJSON

func (v VmmToVmmCreateNetworkMappingInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VmmToVmmCreateNetworkMappingInput.

func (*VmmToVmmCreateNetworkMappingInput) UnmarshalJSON added in v0.2.0

func (v *VmmToVmmCreateNetworkMappingInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VmmToVmmCreateNetworkMappingInput.

type VmmToVmmNetworkMappingSettings

type VmmToVmmNetworkMappingSettings struct {
	// REQUIRED; Gets the Instance type.
	InstanceType *string `json:"instanceType,omitempty"`
}

VmmToVmmNetworkMappingSettings - E2E Network Mapping fabric specific settings.

func (*VmmToVmmNetworkMappingSettings) GetNetworkMappingFabricSpecificSettings added in v0.2.0

func (v *VmmToVmmNetworkMappingSettings) GetNetworkMappingFabricSpecificSettings() *NetworkMappingFabricSpecificSettings

GetNetworkMappingFabricSpecificSettings implements the NetworkMappingFabricSpecificSettingsClassification interface for type VmmToVmmNetworkMappingSettings.

func (VmmToVmmNetworkMappingSettings) MarshalJSON

func (v VmmToVmmNetworkMappingSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VmmToVmmNetworkMappingSettings.

func (*VmmToVmmNetworkMappingSettings) UnmarshalJSON added in v0.2.0

func (v *VmmToVmmNetworkMappingSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VmmToVmmNetworkMappingSettings.

type VmmToVmmUpdateNetworkMappingInput

type VmmToVmmUpdateNetworkMappingInput struct {
	// REQUIRED; The instance type.
	InstanceType *string `json:"instanceType,omitempty"`
}

VmmToVmmUpdateNetworkMappingInput - Update network mappings input properties/behavior specific to vmm to vmm.

func (*VmmToVmmUpdateNetworkMappingInput) GetFabricSpecificUpdateNetworkMappingInput added in v0.2.0

func (v *VmmToVmmUpdateNetworkMappingInput) GetFabricSpecificUpdateNetworkMappingInput() *FabricSpecificUpdateNetworkMappingInput

GetFabricSpecificUpdateNetworkMappingInput implements the FabricSpecificUpdateNetworkMappingInputClassification interface for type VmmToVmmUpdateNetworkMappingInput.

func (VmmToVmmUpdateNetworkMappingInput) MarshalJSON

func (v VmmToVmmUpdateNetworkMappingInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VmmToVmmUpdateNetworkMappingInput.

func (*VmmToVmmUpdateNetworkMappingInput) UnmarshalJSON added in v0.2.0

func (v *VmmToVmmUpdateNetworkMappingInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VmmToVmmUpdateNetworkMappingInput.

type VmmVirtualMachineDetails

type VmmVirtualMachineDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// The Last successful failover time.
	DiskDetails []*DiskDetails `json:"diskDetails,omitempty"`

	// The id of the object in fabric.
	Generation *string `json:"generation,omitempty"`

	// A value indicating whether the VM has a fibre channel adapter attached. String value of SrsDataContract.PresenceStatus
	// enum.
	HasFibreChannelAdapter *PresenceStatus `json:"hasFibreChannelAdapter,omitempty"`

	// A value indicating whether the VM has a physical disk attached. String value of SrsDataContract.PresenceStatus enum.
	HasPhysicalDisk *PresenceStatus `json:"hasPhysicalDisk,omitempty"`

	// A value indicating whether the VM has a shared VHD attached. String value of SrsDataContract.PresenceStatus enum.
	HasSharedVhd *PresenceStatus `json:"hasSharedVhd,omitempty"`

	// The Id of the hyper-v host in fabric.
	HyperVHostID *string `json:"hyperVHostId,omitempty"`

	// The Last replication time.
	OSDetails *OSDetails `json:"osDetails,omitempty"`

	// The source id of the object.
	SourceItemID *string `json:"sourceItemId,omitempty"`
}

VmmVirtualMachineDetails - VMM fabric provider specific VM settings.

func (*VmmVirtualMachineDetails) GetConfigurationSettings added in v0.2.0

func (v *VmmVirtualMachineDetails) GetConfigurationSettings() *ConfigurationSettings

GetConfigurationSettings implements the ConfigurationSettingsClassification interface for type VmmVirtualMachineDetails.

func (*VmmVirtualMachineDetails) GetHyperVVirtualMachineDetails added in v0.2.0

func (v *VmmVirtualMachineDetails) GetHyperVVirtualMachineDetails() *HyperVVirtualMachineDetails

GetHyperVVirtualMachineDetails implements the HyperVVirtualMachineDetailsClassification interface for type VmmVirtualMachineDetails.

func (VmmVirtualMachineDetails) MarshalJSON

func (v VmmVirtualMachineDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VmmVirtualMachineDetails.

func (*VmmVirtualMachineDetails) UnmarshalJSON added in v0.2.0

func (v *VmmVirtualMachineDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VmmVirtualMachineDetails.

type VmwareCbtPolicyDetails

type VmwareCbtPolicyDetails struct {
	// REQUIRED; Gets the class type. Overridden in derived classes.
	InstanceType *string `json:"instanceType,omitempty"`

	// The app consistent snapshot frequency in minutes.
	AppConsistentFrequencyInMinutes *int32 `json:"appConsistentFrequencyInMinutes,omitempty"`

	// The crash consistent snapshot frequency in minutes.
	CrashConsistentFrequencyInMinutes *int32 `json:"crashConsistentFrequencyInMinutes,omitempty"`

	// The duration in minutes until which the recovery points need to be stored.
	RecoveryPointHistoryInMinutes *int32 `json:"recoveryPointHistoryInMinutes,omitempty"`
}

VmwareCbtPolicyDetails - VMware Cbt specific policy details.

func (*VmwareCbtPolicyDetails) GetPolicyProviderSpecificDetails added in v0.2.0

func (v *VmwareCbtPolicyDetails) GetPolicyProviderSpecificDetails() *PolicyProviderSpecificDetails

GetPolicyProviderSpecificDetails implements the PolicyProviderSpecificDetailsClassification interface for type VmwareCbtPolicyDetails.

func (VmwareCbtPolicyDetails) MarshalJSON

func (v VmwareCbtPolicyDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type VmwareCbtPolicyDetails.

func (*VmwareCbtPolicyDetails) UnmarshalJSON

func (v *VmwareCbtPolicyDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type VmwareCbtPolicyDetails.

Jump to

Keyboard shortcuts

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