replicationprotectionintents

package
v0.20230328.1151521 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotectionintents Documentation

The replicationprotectionintents SDK allows for interaction with the Azure Resource Manager Service recoveryservicessiterecovery (API Version 2023-02-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-02-01/replicationprotectionintents"

Client Initialization

client := replicationprotectionintents.NewReplicationProtectionIntentsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ReplicationProtectionIntentsClient.Create

ctx := context.TODO()
id := replicationprotectionintents.NewReplicationProtectionIntentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationProtectionIntentValue")

payload := replicationprotectionintents.CreateProtectionIntentInput{
	// ...
}


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

Example Usage: ReplicationProtectionIntentsClient.Get

ctx := context.TODO()
id := replicationprotectionintents.NewReplicationProtectionIntentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationProtectionIntentValue")

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

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForA2ARecoveryAvailabilityType

func PossibleValuesForA2ARecoveryAvailabilityType() []string

func PossibleValuesForAgentAutoUpdateStatus

func PossibleValuesForAgentAutoUpdateStatus() []string

func PossibleValuesForAutoProtectionOfDataDisk

func PossibleValuesForAutoProtectionOfDataDisk() []string

func PossibleValuesForAutomationAccountAuthenticationType

func PossibleValuesForAutomationAccountAuthenticationType() []string

func PossibleValuesForSetMultiVMSyncStatus

func PossibleValuesForSetMultiVMSyncStatus() []string

func ValidateReplicationProtectionIntentID

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

ValidateReplicationProtectionIntentID checks that 'input' can be parsed as a Replication Protection Intent 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 A2ACreateProtectionIntentInput

type A2ACreateProtectionIntentInput struct {
	AgentAutoUpdateStatus                      *AgentAutoUpdateStatus                        `json:"agentAutoUpdateStatus,omitempty"`
	AutoProtectionOfDataDisk                   *AutoProtectionOfDataDisk                     `json:"autoProtectionOfDataDisk,omitempty"`
	AutomationAccountArmId                     *string                                       `json:"automationAccountArmId,omitempty"`
	AutomationAccountAuthenticationType        *AutomationAccountAuthenticationType          `json:"automationAccountAuthenticationType,omitempty"`
	DiskEncryptionInfo                         *DiskEncryptionInfo                           `json:"diskEncryptionInfo,omitempty"`
	FabricObjectId                             string                                        `json:"fabricObjectId"`
	MultiVMGroupId                             *string                                       `json:"multiVmGroupId,omitempty"`
	MultiVMGroupName                           *string                                       `json:"multiVmGroupName,omitempty"`
	PrimaryLocation                            string                                        `json:"primaryLocation"`
	PrimaryStagingStorageAccountCustomInput    StorageAccountCustomDetails                   `json:"primaryStagingStorageAccountCustomInput"`
	ProtectionProfileCustomInput               ProtectionProfileCustomDetails                `json:"protectionProfileCustomInput"`
	RecoveryAvailabilitySetCustomInput         RecoveryAvailabilitySetCustomDetails          `json:"recoveryAvailabilitySetCustomInput"`
	RecoveryAvailabilityType                   A2ARecoveryAvailabilityType                   `json:"recoveryAvailabilityType"`
	RecoveryAvailabilityZone                   *string                                       `json:"recoveryAvailabilityZone,omitempty"`
	RecoveryBootDiagStorageAccount             StorageAccountCustomDetails                   `json:"recoveryBootDiagStorageAccount"`
	RecoveryLocation                           string                                        `json:"recoveryLocation"`
	RecoveryProximityPlacementGroupCustomInput RecoveryProximityPlacementGroupCustomDetails  `json:"recoveryProximityPlacementGroupCustomInput"`
	RecoveryResourceGroupId                    string                                        `json:"recoveryResourceGroupId"`
	RecoverySubscriptionId                     string                                        `json:"recoverySubscriptionId"`
	RecoveryVirtualNetworkCustomInput          RecoveryVirtualNetworkCustomDetails           `json:"recoveryVirtualNetworkCustomInput"`
	VMDisks                                    *[]A2AProtectionIntentDiskInputDetails        `json:"vmDisks,omitempty"`
	VMManagedDisks                             *[]A2AProtectionIntentManagedDiskInputDetails `json:"vmManagedDisks,omitempty"`
}

func (A2ACreateProtectionIntentInput) MarshalJSON

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

func (*A2ACreateProtectionIntentInput) UnmarshalJSON

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

type A2AProtectionIntentDiskInputDetails

type A2AProtectionIntentDiskInputDetails struct {
	DiskUri                                 string                      `json:"diskUri"`
	PrimaryStagingStorageAccountCustomInput StorageAccountCustomDetails `json:"primaryStagingStorageAccountCustomInput"`
	RecoveryAzureStorageAccountCustomInput  StorageAccountCustomDetails `json:"recoveryAzureStorageAccountCustomInput"`
}

func (*A2AProtectionIntentDiskInputDetails) UnmarshalJSON

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

type A2AProtectionIntentManagedDiskInputDetails

type A2AProtectionIntentManagedDiskInputDetails struct {
	DiskEncryptionInfo                      *DiskEncryptionInfo                `json:"diskEncryptionInfo,omitempty"`
	DiskId                                  string                             `json:"diskId"`
	PrimaryStagingStorageAccountCustomInput StorageAccountCustomDetails        `json:"primaryStagingStorageAccountCustomInput"`
	RecoveryDiskEncryptionSetId             *string                            `json:"recoveryDiskEncryptionSetId,omitempty"`
	RecoveryReplicaDiskAccountType          *string                            `json:"recoveryReplicaDiskAccountType,omitempty"`
	RecoveryResourceGroupCustomInput        RecoveryResourceGroupCustomDetails `json:"recoveryResourceGroupCustomInput"`
	RecoveryTargetDiskAccountType           *string                            `json:"recoveryTargetDiskAccountType,omitempty"`
}

func (*A2AProtectionIntentManagedDiskInputDetails) UnmarshalJSON

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

type A2ARecoveryAvailabilityType

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

type A2AReplicationIntentDetails

type A2AReplicationIntentDetails struct {
	AgentAutoUpdateStatus               *AgentAutoUpdateStatus                        `json:"agentAutoUpdateStatus,omitempty"`
	AutoProtectionOfDataDisk            *AutoProtectionOfDataDisk                     `json:"autoProtectionOfDataDisk,omitempty"`
	AutomationAccountArmId              *string                                       `json:"automationAccountArmId,omitempty"`
	AutomationAccountAuthenticationType *AutomationAccountAuthenticationType          `json:"automationAccountAuthenticationType,omitempty"`
	DiskEncryptionInfo                  *DiskEncryptionInfo                           `json:"diskEncryptionInfo,omitempty"`
	FabricObjectId                      *string                                       `json:"fabricObjectId,omitempty"`
	MultiVMGroupId                      *string                                       `json:"multiVmGroupId,omitempty"`
	MultiVMGroupName                    *string                                       `json:"multiVmGroupName,omitempty"`
	PrimaryLocation                     *string                                       `json:"primaryLocation,omitempty"`
	PrimaryStagingStorageAccount        StorageAccountCustomDetails                   `json:"primaryStagingStorageAccount"`
	ProtectionProfile                   ProtectionProfileCustomDetails                `json:"protectionProfile"`
	RecoveryAvailabilitySet             RecoveryAvailabilitySetCustomDetails          `json:"recoveryAvailabilitySet"`
	RecoveryAvailabilityType            string                                        `json:"recoveryAvailabilityType"`
	RecoveryAvailabilityZone            *string                                       `json:"recoveryAvailabilityZone,omitempty"`
	RecoveryBootDiagStorageAccount      StorageAccountCustomDetails                   `json:"recoveryBootDiagStorageAccount"`
	RecoveryLocation                    *string                                       `json:"recoveryLocation,omitempty"`
	RecoveryProximityPlacementGroup     RecoveryProximityPlacementGroupCustomDetails  `json:"recoveryProximityPlacementGroup"`
	RecoveryResourceGroupId             *string                                       `json:"recoveryResourceGroupId,omitempty"`
	RecoverySubscriptionId              *string                                       `json:"recoverySubscriptionId,omitempty"`
	RecoveryVirtualNetwork              RecoveryVirtualNetworkCustomDetails           `json:"recoveryVirtualNetwork"`
	VMDisks                             *[]A2AProtectionIntentDiskInputDetails        `json:"vmDisks,omitempty"`
	VMManagedDisks                      *[]A2AProtectionIntentManagedDiskInputDetails `json:"vmManagedDisks,omitempty"`
}

func (A2AReplicationIntentDetails) MarshalJSON

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

func (*A2AReplicationIntentDetails) UnmarshalJSON

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

type AgentAutoUpdateStatus

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

type AutoProtectionOfDataDisk

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

type AutomationAccountAuthenticationType

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

type CreateOperationResponse

type CreateOperationResponse struct {
	HttpResponse *http.Response
	Model        *ReplicationProtectionIntent
}

type CreateProtectionIntentInput

type CreateProtectionIntentInput struct {
	Properties *CreateProtectionIntentProperties `json:"properties,omitempty"`
}

type CreateProtectionIntentProperties

type CreateProtectionIntentProperties struct {
	ProviderSpecificDetails CreateProtectionIntentProviderSpecificDetails `json:"providerSpecificDetails"`
}

func (*CreateProtectionIntentProperties) UnmarshalJSON

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

type CreateProtectionIntentProviderSpecificDetails

type CreateProtectionIntentProviderSpecificDetails interface {
}

type DiskEncryptionInfo

type DiskEncryptionInfo struct {
	DiskEncryptionKeyInfo *DiskEncryptionKeyInfo `json:"diskEncryptionKeyInfo,omitempty"`
	KeyEncryptionKeyInfo  *KeyEncryptionKeyInfo  `json:"keyEncryptionKeyInfo,omitempty"`
}

type DiskEncryptionKeyInfo

type DiskEncryptionKeyInfo struct {
	KeyVaultResourceArmId *string `json:"keyVaultResourceArmId,omitempty"`
	SecretIdentifier      *string `json:"secretIdentifier,omitempty"`
}

type ExistingProtectionProfile

type ExistingProtectionProfile struct {
	ProtectionProfileId string `json:"protectionProfileId"`
}

func (ExistingProtectionProfile) MarshalJSON

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

type ExistingRecoveryAvailabilitySet

type ExistingRecoveryAvailabilitySet struct {
	RecoveryAvailabilitySetId *string `json:"recoveryAvailabilitySetId,omitempty"`
}

func (ExistingRecoveryAvailabilitySet) MarshalJSON

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

type ExistingRecoveryProximityPlacementGroup

type ExistingRecoveryProximityPlacementGroup struct {
	RecoveryProximityPlacementGroupId *string `json:"recoveryProximityPlacementGroupId,omitempty"`
}

func (ExistingRecoveryProximityPlacementGroup) MarshalJSON

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

type ExistingRecoveryRecoveryResourceGroup

type ExistingRecoveryRecoveryResourceGroup struct {
	RecoveryResourceGroupId *string `json:"recoveryResourceGroupId,omitempty"`
}

func (ExistingRecoveryRecoveryResourceGroup) MarshalJSON

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

type ExistingRecoveryVirtualNetwork

type ExistingRecoveryVirtualNetwork struct {
	RecoverySubnetName       *string `json:"recoverySubnetName,omitempty"`
	RecoveryVirtualNetworkId string  `json:"recoveryVirtualNetworkId"`
}

func (ExistingRecoveryVirtualNetwork) MarshalJSON

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

type ExistingStorageAccount

type ExistingStorageAccount struct {
	AzureStorageAccountId string `json:"azureStorageAccountId"`
}

func (ExistingStorageAccount) MarshalJSON

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

type GetOperationResponse

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

type KeyEncryptionKeyInfo

type KeyEncryptionKeyInfo struct {
	KeyIdentifier         *string `json:"keyIdentifier,omitempty"`
	KeyVaultResourceArmId *string `json:"keyVaultResourceArmId,omitempty"`
}

type ListCompleteResult

type ListCompleteResult struct {
	Items []ReplicationProtectionIntent
}

type ListOperationOptions

type ListOperationOptions struct {
	SkipToken *string
	TakeToken *string
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

type ListOperationResponse

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

func (ListOperationResponse) HasMore

func (r ListOperationResponse) HasMore() bool

func (ListOperationResponse) LoadMore

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

type NewProtectionProfile

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

func (NewProtectionProfile) MarshalJSON

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

type NewRecoveryVirtualNetwork

type NewRecoveryVirtualNetwork struct {
	RecoveryVirtualNetworkName              *string `json:"recoveryVirtualNetworkName,omitempty"`
	RecoveryVirtualNetworkResourceGroupName *string `json:"recoveryVirtualNetworkResourceGroupName,omitempty"`
}

func (NewRecoveryVirtualNetwork) MarshalJSON

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

type ProtectionProfileCustomDetails

type ProtectionProfileCustomDetails interface {
}

type RecoveryAvailabilitySetCustomDetails

type RecoveryAvailabilitySetCustomDetails interface {
}

type RecoveryProximityPlacementGroupCustomDetails

type RecoveryProximityPlacementGroupCustomDetails interface {
}

type RecoveryResourceGroupCustomDetails

type RecoveryResourceGroupCustomDetails interface {
}

type RecoveryVirtualNetworkCustomDetails

type RecoveryVirtualNetworkCustomDetails interface {
}

type ReplicationProtectionIntent

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

type ReplicationProtectionIntentId

type ReplicationProtectionIntentId struct {
	SubscriptionId                  string
	ResourceGroupName               string
	VaultName                       string
	ReplicationProtectionIntentName string
}

ReplicationProtectionIntentId is a struct representing the Resource ID for a Replication Protection Intent

func NewReplicationProtectionIntentID

func NewReplicationProtectionIntentID(subscriptionId string, resourceGroupName string, vaultName string, replicationProtectionIntentName string) ReplicationProtectionIntentId

NewReplicationProtectionIntentID returns a new ReplicationProtectionIntentId struct

func ParseReplicationProtectionIntentID

func ParseReplicationProtectionIntentID(input string) (*ReplicationProtectionIntentId, error)

ParseReplicationProtectionIntentID parses 'input' into a ReplicationProtectionIntentId

func ParseReplicationProtectionIntentIDInsensitively

func ParseReplicationProtectionIntentIDInsensitively(input string) (*ReplicationProtectionIntentId, error)

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

func (ReplicationProtectionIntentId) ID

ID returns the formatted Replication Protection Intent ID

func (ReplicationProtectionIntentId) Segments

Segments returns a slice of Resource ID Segments which comprise this Replication Protection Intent ID

func (ReplicationProtectionIntentId) String

String returns a human-readable description of this Replication Protection Intent ID

type ReplicationProtectionIntentOperationPredicate

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

func (ReplicationProtectionIntentOperationPredicate) Matches

type ReplicationProtectionIntentProperties

type ReplicationProtectionIntentProperties struct {
	CreationTimeUTC         *string                                             `json:"creationTimeUTC,omitempty"`
	FriendlyName            *string                                             `json:"friendlyName,omitempty"`
	IsActive                *bool                                               `json:"isActive,omitempty"`
	JobId                   *string                                             `json:"jobId,omitempty"`
	JobState                *string                                             `json:"jobState,omitempty"`
	ProviderSpecificDetails ReplicationProtectionIntentProviderSpecificSettings `json:"providerSpecificDetails"`
}

func (*ReplicationProtectionIntentProperties) UnmarshalJSON

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

type ReplicationProtectionIntentProviderSpecificSettings

type ReplicationProtectionIntentProviderSpecificSettings interface {
}

type ReplicationProtectionIntentsClient

type ReplicationProtectionIntentsClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewReplicationProtectionIntentsClientWithBaseURI

func NewReplicationProtectionIntentsClientWithBaseURI(endpoint string) ReplicationProtectionIntentsClient

func (ReplicationProtectionIntentsClient) Create

Create ...

func (ReplicationProtectionIntentsClient) Get

Get ...

func (ReplicationProtectionIntentsClient) List

List ...

func (ReplicationProtectionIntentsClient) ListComplete

ListComplete retrieves all of the results into a single object

func (ReplicationProtectionIntentsClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type SetMultiVMSyncStatus

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

type StorageAccountCustomDetails

type StorageAccountCustomDetails interface {
}

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