replicationpolicies

package
v0.20230907.1113401 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MPL-2.0 Imports: 11 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 the Azure Resource Manager Service 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", "vaultValue", "replicationPolicyValue")

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

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

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

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

Example Usage: ReplicationPoliciesClient.Update

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

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

func (A2ACrossClusterMigrationPolicyCreationInput) MarshalJSON

type A2APolicyCreationInput

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

func (A2APolicyCreationInput) MarshalJSON

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

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

func (A2APolicyDetails) MarshalJSON

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

type CreateOperationResponse

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

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

func (HyperVReplicaAzurePolicyDetails) MarshalJSON

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

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

func (HyperVReplicaAzurePolicyInput) MarshalJSON

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

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

func (HyperVReplicaBasePolicyDetails) MarshalJSON

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

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

func (HyperVReplicaBluePolicyDetails) MarshalJSON

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

type HyperVReplicaBluePolicyInput

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

	// Fields inherited from HyperVReplicaPolicyInput
	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"`
}

func (HyperVReplicaBluePolicyInput) MarshalJSON

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

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

func (HyperVReplicaPolicyDetails) MarshalJSON

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

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

func (HyperVReplicaPolicyInput) MarshalJSON

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

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

func (InMageAzureV2PolicyDetails) MarshalJSON

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

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

func (InMageAzureV2PolicyInput) MarshalJSON

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

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

func (InMageBasePolicyDetails) MarshalJSON

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

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

func (InMagePolicyDetails) MarshalJSON

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

type InMagePolicyInput

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

func (InMagePolicyInput) MarshalJSON

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

type InMageRcmFailbackPolicyCreationInput

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

func (InMageRcmFailbackPolicyCreationInput) MarshalJSON

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

type InMageRcmFailbackPolicyDetails

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

func (InMageRcmFailbackPolicyDetails) MarshalJSON

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

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

func (InMageRcmPolicyCreationInput) MarshalJSON

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

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

func (InMageRcmPolicyDetails) MarshalJSON

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

type ListCompleteResult

type ListCompleteResult struct {
	Items []Policy
}

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

type PolicyProviderSpecificInput

type PolicyProviderSpecificInput interface {
}

type RawPolicyProviderSpecificDetailsImpl

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

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

type RawPolicyProviderSpecificInputImpl

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

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

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

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

func (VMwareCbtPolicyCreationInput) MarshalJSON

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

type VMwareCbtPolicyDetails

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

func (VMwareCbtPolicyDetails) MarshalJSON

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

type VaultId

type VaultId struct {
	SubscriptionId    string
	ResourceGroupName string
	VaultName         string
}

VaultId is a struct representing the Resource ID for a Vault

func NewVaultID

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

NewVaultID returns a new VaultId struct

func ParseVaultID

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

ParseVaultID parses 'input' into a VaultId

func ParseVaultIDInsensitively

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

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

func (VaultId) ID

func (id VaultId) ID() string

ID returns the formatted Vault ID

func (VaultId) Segments

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

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

func (VaultId) String

func (id VaultId) String() string

String returns a human-readable description of this Vault ID

Jump to

Keyboard shortcuts

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