replicationpolicies

package
v0.20240923.1151247 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationpolicies Documentation

The replicationpolicies SDK allows for interaction with Azure Resource Manager recoveryservicessiterecovery (API Version 2023-06-01).

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

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationpolicies"

Client Initialization

client := replicationpolicies.NewReplicationPoliciesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ReplicationPoliciesClient.Create

ctx := context.TODO()
id := replicationpolicies.NewReplicationPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "policyName")

payload := replicationpolicies.CreatePolicyInput{
	// ...
}


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

Example Usage: ReplicationPoliciesClient.Delete

ctx := context.TODO()
id := replicationpolicies.NewReplicationPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "policyName")

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

Example Usage: ReplicationPoliciesClient.Get

ctx := context.TODO()
id := replicationpolicies.NewReplicationPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "policyName")

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

Example Usage: ReplicationPoliciesClient.List

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

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

Example Usage: ReplicationPoliciesClient.Update

ctx := context.TODO()
id := replicationpolicies.NewReplicationPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "policyName")

payload := replicationpolicies.UpdatePolicyInput{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForSetMultiVMSyncStatus

func PossibleValuesForSetMultiVMSyncStatus() []string

func ValidateReplicationPolicyID

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

ValidateReplicationPolicyID checks that 'input' can be parsed as a Replication Policy ID

func ValidateVaultID

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

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

Types

type A2ACrossClusterMigrationPolicyCreationInput

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

func (A2ACrossClusterMigrationPolicyCreationInput) MarshalJSON

func (A2ACrossClusterMigrationPolicyCreationInput) PolicyProviderSpecificInput added in v0.20240920.1135249

type A2APolicyCreationInput

type A2APolicyCreationInput struct {
	AppConsistentFrequencyInMinutes   *int64               `json:"appConsistentFrequencyInMinutes,omitempty"`
	CrashConsistentFrequencyInMinutes *int64               `json:"crashConsistentFrequencyInMinutes,omitempty"`
	MultiVMSyncStatus                 SetMultiVMSyncStatus `json:"multiVmSyncStatus"`
	RecoveryPointHistory              *int64               `json:"recoveryPointHistory,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (A2APolicyCreationInput) MarshalJSON

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

func (A2APolicyCreationInput) PolicyProviderSpecificInput added in v0.20240920.1135249

func (s A2APolicyCreationInput) PolicyProviderSpecificInput() BasePolicyProviderSpecificInputImpl

type A2APolicyDetails

type A2APolicyDetails struct {
	AppConsistentFrequencyInMinutes   *int64  `json:"appConsistentFrequencyInMinutes,omitempty"`
	CrashConsistentFrequencyInMinutes *int64  `json:"crashConsistentFrequencyInMinutes,omitempty"`
	MultiVMSyncStatus                 *string `json:"multiVmSyncStatus,omitempty"`
	RecoveryPointHistory              *int64  `json:"recoveryPointHistory,omitempty"`
	RecoveryPointThresholdInMinutes   *int64  `json:"recoveryPointThresholdInMinutes,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (A2APolicyDetails) MarshalJSON

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

func (A2APolicyDetails) PolicyProviderSpecificDetails added in v0.20240920.1135249

func (s A2APolicyDetails) PolicyProviderSpecificDetails() BasePolicyProviderSpecificDetailsImpl

type BasePolicyProviderSpecificDetailsImpl added in v0.20240920.1135249

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

func (BasePolicyProviderSpecificDetailsImpl) PolicyProviderSpecificDetails added in v0.20240920.1135249

type BasePolicyProviderSpecificInputImpl added in v0.20240920.1135249

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

func (BasePolicyProviderSpecificInputImpl) PolicyProviderSpecificInput added in v0.20240920.1135249

type CreateOperationResponse

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

type CreatePolicyInput

type CreatePolicyInput struct {
	Properties *CreatePolicyInputProperties `json:"properties,omitempty"`
}

type CreatePolicyInputProperties

type CreatePolicyInputProperties struct {
	ProviderSpecificInput PolicyProviderSpecificInput `json:"providerSpecificInput"`
}

func (*CreatePolicyInputProperties) UnmarshalJSON

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

type DeleteOperationResponse

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

type GetOperationResponse

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

type HyperVReplicaAzurePolicyDetails

type HyperVReplicaAzurePolicyDetails struct {
	ActiveStorageAccountId                        *string `json:"activeStorageAccountId,omitempty"`
	ApplicationConsistentSnapshotFrequencyInHours *int64  `json:"applicationConsistentSnapshotFrequencyInHours,omitempty"`
	Encryption                                    *string `json:"encryption,omitempty"`
	OnlineReplicationStartTime                    *string `json:"onlineReplicationStartTime,omitempty"`
	RecoveryPointHistoryDurationInHours           *int64  `json:"recoveryPointHistoryDurationInHours,omitempty"`
	ReplicationInterval                           *int64  `json:"replicationInterval,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (HyperVReplicaAzurePolicyDetails) MarshalJSON

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

func (HyperVReplicaAzurePolicyDetails) PolicyProviderSpecificDetails added in v0.20240920.1135249

type HyperVReplicaAzurePolicyInput

type HyperVReplicaAzurePolicyInput struct {
	ApplicationConsistentSnapshotFrequencyInHours *int64    `json:"applicationConsistentSnapshotFrequencyInHours,omitempty"`
	OnlineReplicationStartTime                    *string   `json:"onlineReplicationStartTime,omitempty"`
	RecoveryPointHistoryDuration                  *int64    `json:"recoveryPointHistoryDuration,omitempty"`
	ReplicationInterval                           *int64    `json:"replicationInterval,omitempty"`
	StorageAccounts                               *[]string `json:"storageAccounts,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (HyperVReplicaAzurePolicyInput) MarshalJSON

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

func (HyperVReplicaAzurePolicyInput) PolicyProviderSpecificInput added in v0.20240920.1135249

type HyperVReplicaBasePolicyDetails

type HyperVReplicaBasePolicyDetails struct {
	AllowedAuthenticationType                     *int64  `json:"allowedAuthenticationType,omitempty"`
	ApplicationConsistentSnapshotFrequencyInHours *int64  `json:"applicationConsistentSnapshotFrequencyInHours,omitempty"`
	Compression                                   *string `json:"compression,omitempty"`
	InitialReplicationMethod                      *string `json:"initialReplicationMethod,omitempty"`
	OfflineReplicationExportPath                  *string `json:"offlineReplicationExportPath,omitempty"`
	OfflineReplicationImportPath                  *string `json:"offlineReplicationImportPath,omitempty"`
	OnlineReplicationStartTime                    *string `json:"onlineReplicationStartTime,omitempty"`
	RecoveryPoints                                *int64  `json:"recoveryPoints,omitempty"`
	ReplicaDeletionOption                         *string `json:"replicaDeletionOption,omitempty"`
	ReplicationPort                               *int64  `json:"replicationPort,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (HyperVReplicaBasePolicyDetails) MarshalJSON

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

func (HyperVReplicaBasePolicyDetails) PolicyProviderSpecificDetails added in v0.20240920.1135249

type HyperVReplicaBluePolicyDetails

type HyperVReplicaBluePolicyDetails struct {
	AllowedAuthenticationType                     *int64  `json:"allowedAuthenticationType,omitempty"`
	ApplicationConsistentSnapshotFrequencyInHours *int64  `json:"applicationConsistentSnapshotFrequencyInHours,omitempty"`
	Compression                                   *string `json:"compression,omitempty"`
	InitialReplicationMethod                      *string `json:"initialReplicationMethod,omitempty"`
	OfflineReplicationExportPath                  *string `json:"offlineReplicationExportPath,omitempty"`
	OfflineReplicationImportPath                  *string `json:"offlineReplicationImportPath,omitempty"`
	OnlineReplicationStartTime                    *string `json:"onlineReplicationStartTime,omitempty"`
	RecoveryPoints                                *int64  `json:"recoveryPoints,omitempty"`
	ReplicaDeletionOption                         *string `json:"replicaDeletionOption,omitempty"`
	ReplicationFrequencyInSeconds                 *int64  `json:"replicationFrequencyInSeconds,omitempty"`
	ReplicationPort                               *int64  `json:"replicationPort,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (HyperVReplicaBluePolicyDetails) MarshalJSON

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

func (HyperVReplicaBluePolicyDetails) PolicyProviderSpecificDetails added in v0.20240920.1135249

type HyperVReplicaBluePolicyInput

type HyperVReplicaBluePolicyInput struct {
	ReplicationFrequencyInSeconds *int64 `json:"replicationFrequencyInSeconds,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (HyperVReplicaBluePolicyInput) MarshalJSON

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

func (HyperVReplicaBluePolicyInput) PolicyProviderSpecificInput added in v0.20240920.1135249

func (s HyperVReplicaBluePolicyInput) PolicyProviderSpecificInput() BasePolicyProviderSpecificInputImpl

type HyperVReplicaPolicyDetails

type HyperVReplicaPolicyDetails struct {
	AllowedAuthenticationType                     *int64  `json:"allowedAuthenticationType,omitempty"`
	ApplicationConsistentSnapshotFrequencyInHours *int64  `json:"applicationConsistentSnapshotFrequencyInHours,omitempty"`
	Compression                                   *string `json:"compression,omitempty"`
	InitialReplicationMethod                      *string `json:"initialReplicationMethod,omitempty"`
	OfflineReplicationExportPath                  *string `json:"offlineReplicationExportPath,omitempty"`
	OfflineReplicationImportPath                  *string `json:"offlineReplicationImportPath,omitempty"`
	OnlineReplicationStartTime                    *string `json:"onlineReplicationStartTime,omitempty"`
	RecoveryPoints                                *int64  `json:"recoveryPoints,omitempty"`
	ReplicaDeletionOption                         *string `json:"replicaDeletionOption,omitempty"`
	ReplicationPort                               *int64  `json:"replicationPort,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (HyperVReplicaPolicyDetails) MarshalJSON

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

func (HyperVReplicaPolicyDetails) PolicyProviderSpecificDetails added in v0.20240920.1135249

func (s HyperVReplicaPolicyDetails) PolicyProviderSpecificDetails() BasePolicyProviderSpecificDetailsImpl

type HyperVReplicaPolicyInput

type HyperVReplicaPolicyInput struct {
	AllowedAuthenticationType                     *int64  `json:"allowedAuthenticationType,omitempty"`
	ApplicationConsistentSnapshotFrequencyInHours *int64  `json:"applicationConsistentSnapshotFrequencyInHours,omitempty"`
	Compression                                   *string `json:"compression,omitempty"`
	InitialReplicationMethod                      *string `json:"initialReplicationMethod,omitempty"`
	OfflineReplicationExportPath                  *string `json:"offlineReplicationExportPath,omitempty"`
	OfflineReplicationImportPath                  *string `json:"offlineReplicationImportPath,omitempty"`
	OnlineReplicationStartTime                    *string `json:"onlineReplicationStartTime,omitempty"`
	RecoveryPoints                                *int64  `json:"recoveryPoints,omitempty"`
	ReplicaDeletion                               *string `json:"replicaDeletion,omitempty"`
	ReplicationPort                               *int64  `json:"replicationPort,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (HyperVReplicaPolicyInput) MarshalJSON

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

func (HyperVReplicaPolicyInput) PolicyProviderSpecificInput added in v0.20240920.1135249

func (s HyperVReplicaPolicyInput) PolicyProviderSpecificInput() BasePolicyProviderSpecificInputImpl

type InMageAzureV2PolicyDetails

type InMageAzureV2PolicyDetails struct {
	AppConsistentFrequencyInMinutes   *int64  `json:"appConsistentFrequencyInMinutes,omitempty"`
	CrashConsistentFrequencyInMinutes *int64  `json:"crashConsistentFrequencyInMinutes,omitempty"`
	MultiVMSyncStatus                 *string `json:"multiVmSyncStatus,omitempty"`
	RecoveryPointHistory              *int64  `json:"recoveryPointHistory,omitempty"`
	RecoveryPointThresholdInMinutes   *int64  `json:"recoveryPointThresholdInMinutes,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (InMageAzureV2PolicyDetails) MarshalJSON

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

func (InMageAzureV2PolicyDetails) PolicyProviderSpecificDetails added in v0.20240920.1135249

func (s InMageAzureV2PolicyDetails) PolicyProviderSpecificDetails() BasePolicyProviderSpecificDetailsImpl

type InMageAzureV2PolicyInput

type InMageAzureV2PolicyInput struct {
	AppConsistentFrequencyInMinutes   *int64               `json:"appConsistentFrequencyInMinutes,omitempty"`
	CrashConsistentFrequencyInMinutes *int64               `json:"crashConsistentFrequencyInMinutes,omitempty"`
	MultiVMSyncStatus                 SetMultiVMSyncStatus `json:"multiVmSyncStatus"`
	RecoveryPointHistory              *int64               `json:"recoveryPointHistory,omitempty"`
	RecoveryPointThresholdInMinutes   *int64               `json:"recoveryPointThresholdInMinutes,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (InMageAzureV2PolicyInput) MarshalJSON

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

func (InMageAzureV2PolicyInput) PolicyProviderSpecificInput added in v0.20240920.1135249

func (s InMageAzureV2PolicyInput) PolicyProviderSpecificInput() BasePolicyProviderSpecificInputImpl

type InMageBasePolicyDetails

type InMageBasePolicyDetails struct {
	AppConsistentFrequencyInMinutes *int64  `json:"appConsistentFrequencyInMinutes,omitempty"`
	MultiVMSyncStatus               *string `json:"multiVmSyncStatus,omitempty"`
	RecoveryPointHistory            *int64  `json:"recoveryPointHistory,omitempty"`
	RecoveryPointThresholdInMinutes *int64  `json:"recoveryPointThresholdInMinutes,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (InMageBasePolicyDetails) MarshalJSON

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

func (InMageBasePolicyDetails) PolicyProviderSpecificDetails added in v0.20240920.1135249

func (s InMageBasePolicyDetails) PolicyProviderSpecificDetails() BasePolicyProviderSpecificDetailsImpl

type InMagePolicyDetails

type InMagePolicyDetails struct {
	AppConsistentFrequencyInMinutes *int64  `json:"appConsistentFrequencyInMinutes,omitempty"`
	MultiVMSyncStatus               *string `json:"multiVmSyncStatus,omitempty"`
	RecoveryPointHistory            *int64  `json:"recoveryPointHistory,omitempty"`
	RecoveryPointThresholdInMinutes *int64  `json:"recoveryPointThresholdInMinutes,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (InMagePolicyDetails) MarshalJSON

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

func (InMagePolicyDetails) PolicyProviderSpecificDetails added in v0.20240920.1135249

func (s InMagePolicyDetails) PolicyProviderSpecificDetails() BasePolicyProviderSpecificDetailsImpl

type InMagePolicyInput

type InMagePolicyInput struct {
	AppConsistentFrequencyInMinutes *int64               `json:"appConsistentFrequencyInMinutes,omitempty"`
	MultiVMSyncStatus               SetMultiVMSyncStatus `json:"multiVmSyncStatus"`
	RecoveryPointHistory            *int64               `json:"recoveryPointHistory,omitempty"`
	RecoveryPointThresholdInMinutes *int64               `json:"recoveryPointThresholdInMinutes,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (InMagePolicyInput) MarshalJSON

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

func (InMagePolicyInput) PolicyProviderSpecificInput added in v0.20240920.1135249

func (s InMagePolicyInput) PolicyProviderSpecificInput() BasePolicyProviderSpecificInputImpl

type InMageRcmFailbackPolicyCreationInput

type InMageRcmFailbackPolicyCreationInput struct {
	AppConsistentFrequencyInMinutes   *int64 `json:"appConsistentFrequencyInMinutes,omitempty"`
	CrashConsistentFrequencyInMinutes *int64 `json:"crashConsistentFrequencyInMinutes,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (InMageRcmFailbackPolicyCreationInput) MarshalJSON

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

func (InMageRcmFailbackPolicyCreationInput) PolicyProviderSpecificInput added in v0.20240920.1135249

type InMageRcmFailbackPolicyDetails

type InMageRcmFailbackPolicyDetails struct {
	AppConsistentFrequencyInMinutes   *int64 `json:"appConsistentFrequencyInMinutes,omitempty"`
	CrashConsistentFrequencyInMinutes *int64 `json:"crashConsistentFrequencyInMinutes,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (InMageRcmFailbackPolicyDetails) MarshalJSON

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

func (InMageRcmFailbackPolicyDetails) PolicyProviderSpecificDetails added in v0.20240920.1135249

type InMageRcmPolicyCreationInput

type InMageRcmPolicyCreationInput struct {
	AppConsistentFrequencyInMinutes   *int64  `json:"appConsistentFrequencyInMinutes,omitempty"`
	CrashConsistentFrequencyInMinutes *int64  `json:"crashConsistentFrequencyInMinutes,omitempty"`
	EnableMultiVMSync                 *string `json:"enableMultiVmSync,omitempty"`
	RecoveryPointHistoryInMinutes     *int64  `json:"recoveryPointHistoryInMinutes,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (InMageRcmPolicyCreationInput) MarshalJSON

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

func (InMageRcmPolicyCreationInput) PolicyProviderSpecificInput added in v0.20240920.1135249

func (s InMageRcmPolicyCreationInput) PolicyProviderSpecificInput() BasePolicyProviderSpecificInputImpl

type InMageRcmPolicyDetails

type InMageRcmPolicyDetails struct {
	AppConsistentFrequencyInMinutes   *int64  `json:"appConsistentFrequencyInMinutes,omitempty"`
	CrashConsistentFrequencyInMinutes *int64  `json:"crashConsistentFrequencyInMinutes,omitempty"`
	EnableMultiVMSync                 *string `json:"enableMultiVmSync,omitempty"`
	RecoveryPointHistoryInMinutes     *int64  `json:"recoveryPointHistoryInMinutes,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (InMageRcmPolicyDetails) MarshalJSON

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

func (InMageRcmPolicyDetails) PolicyProviderSpecificDetails added in v0.20240920.1135249

func (s InMageRcmPolicyDetails) PolicyProviderSpecificDetails() BasePolicyProviderSpecificDetailsImpl

type ListCompleteResult

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

type ListCustomPager added in v0.20240628.1153531

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

type ListOperationResponse

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

type Policy

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

type PolicyOperationPredicate

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

func (PolicyOperationPredicate) Matches

func (p PolicyOperationPredicate) Matches(input Policy) bool

type PolicyProperties

type PolicyProperties struct {
	FriendlyName            *string                       `json:"friendlyName,omitempty"`
	ProviderSpecificDetails PolicyProviderSpecificDetails `json:"providerSpecificDetails"`
}

func (*PolicyProperties) UnmarshalJSON

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

type PolicyProviderSpecificDetails

type PolicyProviderSpecificDetails interface {
	PolicyProviderSpecificDetails() BasePolicyProviderSpecificDetailsImpl
}

func UnmarshalPolicyProviderSpecificDetailsImplementation added in v0.20240920.1135249

func UnmarshalPolicyProviderSpecificDetailsImplementation(input []byte) (PolicyProviderSpecificDetails, error)

type PolicyProviderSpecificInput

type PolicyProviderSpecificInput interface {
	PolicyProviderSpecificInput() BasePolicyProviderSpecificInputImpl
}

func UnmarshalPolicyProviderSpecificInputImplementation added in v0.20240920.1135249

func UnmarshalPolicyProviderSpecificInputImplementation(input []byte) (PolicyProviderSpecificInput, error)

type RawPolicyProviderSpecificDetailsImpl

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

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

func (RawPolicyProviderSpecificDetailsImpl) PolicyProviderSpecificDetails added in v0.20240920.1135249

type RawPolicyProviderSpecificInputImpl

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

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

func (RawPolicyProviderSpecificInputImpl) PolicyProviderSpecificInput added in v0.20240920.1135249

type ReplicationPoliciesClient

type ReplicationPoliciesClient struct {
	Client *resourcemanager.Client
}

func NewReplicationPoliciesClientWithBaseURI

func NewReplicationPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*ReplicationPoliciesClient, error)

func (ReplicationPoliciesClient) Create

Create ...

func (ReplicationPoliciesClient) CreateThenPoll

CreateThenPoll performs Create then polls until it's completed

func (ReplicationPoliciesClient) Delete

Delete ...

func (ReplicationPoliciesClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (ReplicationPoliciesClient) Get

Get ...

func (ReplicationPoliciesClient) List

List ...

func (ReplicationPoliciesClient) ListComplete

ListComplete retrieves all the results into a single object

func (ReplicationPoliciesClient) ListCompleteMatchingPredicate

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

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ReplicationPoliciesClient) Update

Update ...

func (ReplicationPoliciesClient) UpdateThenPoll

UpdateThenPoll performs Update then polls until it's completed

type ReplicationPolicyId

type ReplicationPolicyId struct {
	SubscriptionId        string
	ResourceGroupName     string
	VaultName             string
	ReplicationPolicyName string
}

ReplicationPolicyId is a struct representing the Resource ID for a Replication Policy

func NewReplicationPolicyID

func NewReplicationPolicyID(subscriptionId string, resourceGroupName string, vaultName string, replicationPolicyName string) ReplicationPolicyId

NewReplicationPolicyID returns a new ReplicationPolicyId struct

func ParseReplicationPolicyID

func ParseReplicationPolicyID(input string) (*ReplicationPolicyId, error)

ParseReplicationPolicyID parses 'input' into a ReplicationPolicyId

func ParseReplicationPolicyIDInsensitively

func ParseReplicationPolicyIDInsensitively(input string) (*ReplicationPolicyId, error)

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

func (*ReplicationPolicyId) FromParseResult

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

func (ReplicationPolicyId) ID

func (id ReplicationPolicyId) ID() string

ID returns the formatted Replication Policy ID

func (ReplicationPolicyId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Replication Policy ID

func (ReplicationPolicyId) String

func (id ReplicationPolicyId) String() string

String returns a human-readable description of this Replication Policy ID

type SetMultiVMSyncStatus

type SetMultiVMSyncStatus string
const (
	SetMultiVMSyncStatusDisable SetMultiVMSyncStatus = "Disable"
	SetMultiVMSyncStatusEnable  SetMultiVMSyncStatus = "Enable"
)

func (*SetMultiVMSyncStatus) UnmarshalJSON

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

type UpdateOperationResponse

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

type UpdatePolicyInput

type UpdatePolicyInput struct {
	Properties *UpdatePolicyInputProperties `json:"properties,omitempty"`
}

type UpdatePolicyInputProperties

type UpdatePolicyInputProperties struct {
	ReplicationProviderSettings PolicyProviderSpecificInput `json:"replicationProviderSettings"`
}

func (*UpdatePolicyInputProperties) UnmarshalJSON

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

type VMwareCbtPolicyCreationInput

type VMwareCbtPolicyCreationInput struct {
	AppConsistentFrequencyInMinutes   *int64 `json:"appConsistentFrequencyInMinutes,omitempty"`
	CrashConsistentFrequencyInMinutes *int64 `json:"crashConsistentFrequencyInMinutes,omitempty"`
	RecoveryPointHistoryInMinutes     *int64 `json:"recoveryPointHistoryInMinutes,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (VMwareCbtPolicyCreationInput) MarshalJSON

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

func (VMwareCbtPolicyCreationInput) PolicyProviderSpecificInput added in v0.20240920.1135249

func (s VMwareCbtPolicyCreationInput) PolicyProviderSpecificInput() BasePolicyProviderSpecificInputImpl

type VMwareCbtPolicyDetails

type VMwareCbtPolicyDetails struct {
	AppConsistentFrequencyInMinutes   *int64 `json:"appConsistentFrequencyInMinutes,omitempty"`
	CrashConsistentFrequencyInMinutes *int64 `json:"crashConsistentFrequencyInMinutes,omitempty"`
	RecoveryPointHistoryInMinutes     *int64 `json:"recoveryPointHistoryInMinutes,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (VMwareCbtPolicyDetails) MarshalJSON

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

func (VMwareCbtPolicyDetails) PolicyProviderSpecificDetails added in v0.20240920.1135249

func (s VMwareCbtPolicyDetails) PolicyProviderSpecificDetails() BasePolicyProviderSpecificDetailsImpl

type VaultId

type VaultId struct {
	SubscriptionId    string
	ResourceGroupName string
	VaultName         string
}

VaultId is a struct representing the Resource ID for a Vault

func NewVaultID

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

NewVaultID returns a new VaultId struct

func ParseVaultID

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

ParseVaultID parses 'input' into a VaultId

func ParseVaultIDInsensitively

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

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

func (*VaultId) FromParseResult

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

func (VaultId) ID

func (id VaultId) ID() string

ID returns the formatted Vault ID

func (VaultId) Segments

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

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

func (VaultId) String

func (id VaultId) String() string

String returns a human-readable description of this Vault ID

Jump to

Keyboard shortcuts

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