clusterrecoverypoint

package
v0.20241212.1154051 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-02-01/clusterrecoverypoint Documentation

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

Client Initialization

client := clusterrecoverypoint.NewClusterRecoveryPointClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ClusterRecoveryPointClient.Get

ctx := context.TODO()
id := clusterrecoverypoint.NewReplicationProtectionClusterRecoveryPointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "replicationFabricName", "replicationProtectionContainerName", "replicationProtectionClusterName", "recoveryPointName")

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
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForClusterRecoveryPointType

func PossibleValuesForClusterRecoveryPointType() []string

func PossibleValuesForRecoveryPointSyncType

func PossibleValuesForRecoveryPointSyncType() []string

func ValidateReplicationProtectionClusterRecoveryPointID

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

ValidateReplicationProtectionClusterRecoveryPointID checks that 'input' can be parsed as a Replication Protection Cluster Recovery Point ID

Types

type A2AClusterRecoveryPointDetails

type A2AClusterRecoveryPointDetails struct {
	Nodes                 *[]string              `json:"nodes,omitempty"`
	RecoveryPointSyncType *RecoveryPointSyncType `json:"recoveryPointSyncType,omitempty"`

	InstanceType string `json:"instanceType"`
}

func (A2AClusterRecoveryPointDetails) ClusterProviderSpecificRecoveryPointDetails added in v0.20240920.1135249

func (s A2AClusterRecoveryPointDetails) ClusterProviderSpecificRecoveryPointDetails() BaseClusterProviderSpecificRecoveryPointDetailsImpl

func (A2AClusterRecoveryPointDetails) MarshalJSON

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

type BaseClusterProviderSpecificRecoveryPointDetailsImpl added in v0.20240920.1135249

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

func (BaseClusterProviderSpecificRecoveryPointDetailsImpl) ClusterProviderSpecificRecoveryPointDetails added in v0.20240920.1135249

type ClusterProviderSpecificRecoveryPointDetails

type ClusterProviderSpecificRecoveryPointDetails interface {
	ClusterProviderSpecificRecoveryPointDetails() BaseClusterProviderSpecificRecoveryPointDetailsImpl
}

func UnmarshalClusterProviderSpecificRecoveryPointDetailsImplementation added in v0.20240920.1135249

func UnmarshalClusterProviderSpecificRecoveryPointDetailsImplementation(input []byte) (ClusterProviderSpecificRecoveryPointDetails, error)

type ClusterRecoveryPoint

type ClusterRecoveryPoint struct {
	Id         *string                         `json:"id,omitempty"`
	Name       *string                         `json:"name,omitempty"`
	Properties *ClusterRecoveryPointProperties `json:"properties,omitempty"`
	Type       *string                         `json:"type,omitempty"`
}

type ClusterRecoveryPointClient

type ClusterRecoveryPointClient struct {
	Client *resourcemanager.Client
}

func NewClusterRecoveryPointClientWithBaseURI

func NewClusterRecoveryPointClientWithBaseURI(sdkApi sdkEnv.Api) (*ClusterRecoveryPointClient, error)

func (ClusterRecoveryPointClient) Get

Get ...

type ClusterRecoveryPointProperties

type ClusterRecoveryPointProperties struct {
	ProviderSpecificDetails ClusterProviderSpecificRecoveryPointDetails `json:"providerSpecificDetails"`
	RecoveryPointTime       *string                                     `json:"recoveryPointTime,omitempty"`
	RecoveryPointType       *ClusterRecoveryPointType                   `json:"recoveryPointType,omitempty"`
}

func (*ClusterRecoveryPointProperties) GetRecoveryPointTimeAsTime

func (o *ClusterRecoveryPointProperties) GetRecoveryPointTimeAsTime() (*time.Time, error)

func (*ClusterRecoveryPointProperties) SetRecoveryPointTimeAsTime

func (o *ClusterRecoveryPointProperties) SetRecoveryPointTimeAsTime(input time.Time)

func (*ClusterRecoveryPointProperties) UnmarshalJSON

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

type ClusterRecoveryPointType

type ClusterRecoveryPointType string
const (
	ClusterRecoveryPointTypeApplicationConsistent ClusterRecoveryPointType = "ApplicationConsistent"
	ClusterRecoveryPointTypeCrashConsistent       ClusterRecoveryPointType = "CrashConsistent"
	ClusterRecoveryPointTypeNotSpecified          ClusterRecoveryPointType = "NotSpecified"
)

func (*ClusterRecoveryPointType) UnmarshalJSON

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

type GetOperationResponse

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

type RawClusterProviderSpecificRecoveryPointDetailsImpl

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

RawClusterProviderSpecificRecoveryPointDetailsImpl 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 (RawClusterProviderSpecificRecoveryPointDetailsImpl) ClusterProviderSpecificRecoveryPointDetails added in v0.20240920.1135249

type RecoveryPointSyncType

type RecoveryPointSyncType string
const (
	RecoveryPointSyncTypeMultiVMSyncRecoveryPoint RecoveryPointSyncType = "MultiVmSyncRecoveryPoint"
)

func (*RecoveryPointSyncType) UnmarshalJSON

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

type ReplicationProtectionClusterRecoveryPointId

type ReplicationProtectionClusterRecoveryPointId struct {
	SubscriptionId                     string
	ResourceGroupName                  string
	VaultName                          string
	ReplicationFabricName              string
	ReplicationProtectionContainerName string
	ReplicationProtectionClusterName   string
	RecoveryPointName                  string
}

ReplicationProtectionClusterRecoveryPointId is a struct representing the Resource ID for a Replication Protection Cluster Recovery Point

func NewReplicationProtectionClusterRecoveryPointID

func NewReplicationProtectionClusterRecoveryPointID(subscriptionId string, resourceGroupName string, vaultName string, replicationFabricName string, replicationProtectionContainerName string, replicationProtectionClusterName string, recoveryPointName string) ReplicationProtectionClusterRecoveryPointId

NewReplicationProtectionClusterRecoveryPointID returns a new ReplicationProtectionClusterRecoveryPointId struct

func ParseReplicationProtectionClusterRecoveryPointID

func ParseReplicationProtectionClusterRecoveryPointID(input string) (*ReplicationProtectionClusterRecoveryPointId, error)

ParseReplicationProtectionClusterRecoveryPointID parses 'input' into a ReplicationProtectionClusterRecoveryPointId

func ParseReplicationProtectionClusterRecoveryPointIDInsensitively

func ParseReplicationProtectionClusterRecoveryPointIDInsensitively(input string) (*ReplicationProtectionClusterRecoveryPointId, error)

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

func (*ReplicationProtectionClusterRecoveryPointId) FromParseResult

func (ReplicationProtectionClusterRecoveryPointId) ID

ID returns the formatted Replication Protection Cluster Recovery Point ID

func (ReplicationProtectionClusterRecoveryPointId) Segments

Segments returns a slice of Resource ID Segments which comprise this Replication Protection Cluster Recovery Point ID

func (ReplicationProtectionClusterRecoveryPointId) String

String returns a human-readable description of this Replication Protection Cluster Recovery Point ID

Jump to

Keyboard shortcuts

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