clusterrecoverypoint

package
v0.20240627.1143641 Latest Latest
Warning

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

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

README

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

The clusterrecoverypoint SDK allows for interaction with the Azure Resource Manager Service recoveryservicessiterecovery (API Version 2024-04-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-04-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", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectionClusterValue", "recoveryPointValue")

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

func (A2AClusterRecoveryPointDetails) MarshalJSON

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

type ClusterProviderSpecificRecoveryPointDetails

type ClusterProviderSpecificRecoveryPointDetails interface {
}

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

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).

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