README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2023-02-01/migrationrecoverypoints
Documentation
The migrationrecoverypoints
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/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 ¶
- func PossibleValuesForMigrationRecoveryPointType() []string
- func ValidateMigrationRecoveryPointID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateReplicationMigrationItemID(input interface{}, key string) (warnings []string, errors []error)
- type GetOperationResponse
- type ListByReplicationMigrationItemsCompleteResult
- type ListByReplicationMigrationItemsOperationResponse
- type MigrationRecoveryPoint
- type MigrationRecoveryPointId
- func NewMigrationRecoveryPointID(subscriptionId string, resourceGroupName string, vaultName string, ...) MigrationRecoveryPointId
- func ParseMigrationRecoveryPointID(input string) (*MigrationRecoveryPointId, error)
- func ParseMigrationRecoveryPointIDInsensitively(input string) (*MigrationRecoveryPointId, error)
- type MigrationRecoveryPointOperationPredicate
- type MigrationRecoveryPointProperties
- type MigrationRecoveryPointType
- type MigrationRecoveryPointsClient
- func (c MigrationRecoveryPointsClient) Get(ctx context.Context, id MigrationRecoveryPointId) (result GetOperationResponse, err error)
- func (c MigrationRecoveryPointsClient) ListByReplicationMigrationItems(ctx context.Context, id ReplicationMigrationItemId) (resp ListByReplicationMigrationItemsOperationResponse, err error)
- func (c MigrationRecoveryPointsClient) ListByReplicationMigrationItemsComplete(ctx context.Context, id ReplicationMigrationItemId) (ListByReplicationMigrationItemsCompleteResult, error)
- func (c MigrationRecoveryPointsClient) ListByReplicationMigrationItemsCompleteMatchingPredicate(ctx context.Context, id ReplicationMigrationItemId, ...) (resp ListByReplicationMigrationItemsCompleteResult, err error)
- type ReplicationMigrationItemId
- func NewReplicationMigrationItemID(subscriptionId string, resourceGroupName string, vaultName string, ...) ReplicationMigrationItemId
- func ParseReplicationMigrationItemID(input string) (*ReplicationMigrationItemId, error)
- func ParseReplicationMigrationItemIDInsensitively(input string) (*ReplicationMigrationItemId, error)
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 (r ListByReplicationMigrationItemsOperationResponse) HasMore() bool
func (ListByReplicationMigrationItemsOperationResponse) LoadMore ¶
func (r ListByReplicationMigrationItemsOperationResponse) LoadMore(ctx context.Context) (resp ListByReplicationMigrationItemsOperationResponse, err error)
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 ¶
func (id MigrationRecoveryPointId) ID() string
ID returns the formatted Migration Recovery Point ID
func (MigrationRecoveryPointId) Segments ¶
func (id MigrationRecoveryPointId) Segments() []resourceids.Segment
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 ¶
func (p MigrationRecoveryPointOperationPredicate) Matches(input MigrationRecoveryPoint) bool
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 ¶
func (c MigrationRecoveryPointsClient) Get(ctx context.Context, id MigrationRecoveryPointId) (result GetOperationResponse, err error)
Get ...
func (MigrationRecoveryPointsClient) ListByReplicationMigrationItems ¶
func (c MigrationRecoveryPointsClient) ListByReplicationMigrationItems(ctx context.Context, id ReplicationMigrationItemId) (resp ListByReplicationMigrationItemsOperationResponse, err error)
ListByReplicationMigrationItems ...
func (MigrationRecoveryPointsClient) ListByReplicationMigrationItemsComplete ¶
func (c MigrationRecoveryPointsClient) ListByReplicationMigrationItemsComplete(ctx context.Context, id ReplicationMigrationItemId) (ListByReplicationMigrationItemsCompleteResult, error)
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 ¶
func (id ReplicationMigrationItemId) ID() string
ID returns the formatted Replication Migration Item ID
func (ReplicationMigrationItemId) Segments ¶
func (id ReplicationMigrationItemId) Segments() []resourceids.Segment
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