migrationrecoverypoints

package
v0.20230210.1121632 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2022-09-10/migrationrecoverypoints Documentation

The migrationrecoverypoints SDK allows for interaction with the Azure Resource Manager Service recoveryservicessiterecovery (API Version 2022-09-10).

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/2022-09-10/migrationrecoverypoints"

Client Initialization

client := migrationrecoverypoints.NewMigrationRecoveryPointsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: MigrationRecoveryPointsClient.Get

ctx := context.TODO()
id := migrationrecoverypoints.NewMigrationRecoveryPointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationMigrationItemValue", "migrationRecoveryPointValue")

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: MigrationRecoveryPointsClient.ListByReplicationMigrationItems

ctx := context.TODO()
id := migrationrecoverypoints.NewReplicationMigrationItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationMigrationItemValue")

// alternatively `client.ListByReplicationMigrationItems(ctx, id)` can be used to do batched pagination
items, err := client.ListByReplicationMigrationItemsComplete(ctx, id)
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 PossibleValuesForMigrationRecoveryPointType

func PossibleValuesForMigrationRecoveryPointType() []string

func ValidateMigrationRecoveryPointID

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

ValidateMigrationRecoveryPointID checks that 'input' can be parsed as a Migration Recovery Point ID

func ValidateReplicationMigrationItemID

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

ValidateReplicationMigrationItemID checks that 'input' can be parsed as a Replication Migration Item ID

Types

type GetOperationResponse

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

type ListByReplicationMigrationItemsCompleteResult

type ListByReplicationMigrationItemsCompleteResult struct {
	Items []MigrationRecoveryPoint
}

type ListByReplicationMigrationItemsOperationResponse

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

func (ListByReplicationMigrationItemsOperationResponse) HasMore

func (ListByReplicationMigrationItemsOperationResponse) LoadMore

type MigrationRecoveryPoint

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

type MigrationRecoveryPointId

type MigrationRecoveryPointId struct {
	SubscriptionId                     string
	ResourceGroupName                  string
	VaultName                          string
	ReplicationFabricName              string
	ReplicationProtectionContainerName string
	ReplicationMigrationItemName       string
	MigrationRecoveryPointName         string
}

MigrationRecoveryPointId is a struct representing the Resource ID for a Migration Recovery Point

func NewMigrationRecoveryPointID

func NewMigrationRecoveryPointID(subscriptionId string, resourceGroupName string, vaultName string, replicationFabricName string, replicationProtectionContainerName string, replicationMigrationItemName string, migrationRecoveryPointName string) MigrationRecoveryPointId

NewMigrationRecoveryPointID returns a new MigrationRecoveryPointId struct

func ParseMigrationRecoveryPointID

func ParseMigrationRecoveryPointID(input string) (*MigrationRecoveryPointId, error)

ParseMigrationRecoveryPointID parses 'input' into a MigrationRecoveryPointId

func ParseMigrationRecoveryPointIDInsensitively

func ParseMigrationRecoveryPointIDInsensitively(input string) (*MigrationRecoveryPointId, error)

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

func (MigrationRecoveryPointId) ID

ID returns the formatted Migration Recovery Point ID

func (MigrationRecoveryPointId) Segments

Segments returns a slice of Resource ID Segments which comprise this Migration Recovery Point ID

func (MigrationRecoveryPointId) String

func (id MigrationRecoveryPointId) String() string

String returns a human-readable description of this Migration Recovery Point ID

type MigrationRecoveryPointOperationPredicate

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

func (MigrationRecoveryPointOperationPredicate) Matches

type MigrationRecoveryPointProperties

type MigrationRecoveryPointProperties struct {
	RecoveryPointTime *string                     `json:"recoveryPointTime,omitempty"`
	RecoveryPointType *MigrationRecoveryPointType `json:"recoveryPointType,omitempty"`
}

func (*MigrationRecoveryPointProperties) GetRecoveryPointTimeAsTime

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

func (*MigrationRecoveryPointProperties) SetRecoveryPointTimeAsTime

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

type MigrationRecoveryPointType

type MigrationRecoveryPointType string
const (
	MigrationRecoveryPointTypeApplicationConsistent MigrationRecoveryPointType = "ApplicationConsistent"
	MigrationRecoveryPointTypeCrashConsistent       MigrationRecoveryPointType = "CrashConsistent"
	MigrationRecoveryPointTypeNotSpecified          MigrationRecoveryPointType = "NotSpecified"
)

type MigrationRecoveryPointsClient

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

func NewMigrationRecoveryPointsClientWithBaseURI

func NewMigrationRecoveryPointsClientWithBaseURI(endpoint string) MigrationRecoveryPointsClient

func (MigrationRecoveryPointsClient) Get

Get ...

func (MigrationRecoveryPointsClient) ListByReplicationMigrationItems

ListByReplicationMigrationItems ...

func (MigrationRecoveryPointsClient) ListByReplicationMigrationItemsComplete

ListByReplicationMigrationItemsComplete retrieves all of the results into a single object

func (MigrationRecoveryPointsClient) ListByReplicationMigrationItemsCompleteMatchingPredicate

func (c MigrationRecoveryPointsClient) ListByReplicationMigrationItemsCompleteMatchingPredicate(ctx context.Context, id ReplicationMigrationItemId, predicate MigrationRecoveryPointOperationPredicate) (resp ListByReplicationMigrationItemsCompleteResult, err error)

ListByReplicationMigrationItemsCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type ReplicationMigrationItemId

type ReplicationMigrationItemId struct {
	SubscriptionId                     string
	ResourceGroupName                  string
	VaultName                          string
	ReplicationFabricName              string
	ReplicationProtectionContainerName string
	ReplicationMigrationItemName       string
}

ReplicationMigrationItemId is a struct representing the Resource ID for a Replication Migration Item

func NewReplicationMigrationItemID

func NewReplicationMigrationItemID(subscriptionId string, resourceGroupName string, vaultName string, replicationFabricName string, replicationProtectionContainerName string, replicationMigrationItemName string) ReplicationMigrationItemId

NewReplicationMigrationItemID returns a new ReplicationMigrationItemId struct

func ParseReplicationMigrationItemID

func ParseReplicationMigrationItemID(input string) (*ReplicationMigrationItemId, error)

ParseReplicationMigrationItemID parses 'input' into a ReplicationMigrationItemId

func ParseReplicationMigrationItemIDInsensitively

func ParseReplicationMigrationItemIDInsensitively(input string) (*ReplicationMigrationItemId, error)

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

func (ReplicationMigrationItemId) ID

ID returns the formatted Replication Migration Item ID

func (ReplicationMigrationItemId) Segments

Segments returns a slice of Resource ID Segments which comprise this Replication Migration Item ID

func (ReplicationMigrationItemId) String

func (id ReplicationMigrationItemId) String() string

String returns a human-readable description of this Replication Migration Item ID

Jump to

Keyboard shortcuts

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