README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2022-05-01/replicationeligibilityresults
Documentation
The replicationeligibilityresults
SDK allows for interaction with the Azure Resource Manager Service recoveryservicessiterecovery
(API Version 2022-05-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/2022-05-01/replicationeligibilityresults"
Client Initialization
client := replicationeligibilityresults.NewReplicationEligibilityResultsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: ReplicationEligibilityResultsClient.Get
ctx := context.TODO()
id := replicationeligibilityresults.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue")
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: ReplicationEligibilityResultsClient.List
ctx := context.TODO()
id := replicationeligibilityresults.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue")
read, err := client.List(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation ¶
Index ¶
- func ValidateVirtualMachineID(input interface{}, key string) (warnings []string, errors []error)
- type GetOperationResponse
- type ListOperationResponse
- type ReplicationEligibilityResults
- type ReplicationEligibilityResultsClient
- type ReplicationEligibilityResultsCollection
- type ReplicationEligibilityResultsErrorInfo
- type ReplicationEligibilityResultsProperties
- type VirtualMachineId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateVirtualMachineID ¶
ValidateVirtualMachineID checks that 'input' can be parsed as a Virtual Machine ID
Types ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *ReplicationEligibilityResults }
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *ReplicationEligibilityResultsCollection }
type ReplicationEligibilityResults ¶
type ReplicationEligibilityResults struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *ReplicationEligibilityResultsProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type ReplicationEligibilityResultsClient ¶
type ReplicationEligibilityResultsClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewReplicationEligibilityResultsClientWithBaseURI ¶
func NewReplicationEligibilityResultsClientWithBaseURI(endpoint string) ReplicationEligibilityResultsClient
func (ReplicationEligibilityResultsClient) Get ¶
func (c ReplicationEligibilityResultsClient) Get(ctx context.Context, id VirtualMachineId) (result GetOperationResponse, err error)
Get ...
func (ReplicationEligibilityResultsClient) List ¶
func (c ReplicationEligibilityResultsClient) List(ctx context.Context, id VirtualMachineId) (result ListOperationResponse, err error)
List ...
type ReplicationEligibilityResultsCollection ¶
type ReplicationEligibilityResultsCollection struct {
Value *[]ReplicationEligibilityResults `json:"value,omitempty"`
}
type ReplicationEligibilityResultsProperties ¶
type ReplicationEligibilityResultsProperties struct { ClientRequestId *string `json:"clientRequestId,omitempty"` Errors *[]ReplicationEligibilityResultsErrorInfo `json:"errors,omitempty"` }
type VirtualMachineId ¶
type VirtualMachineId struct { SubscriptionId string ResourceGroupName string VirtualMachineName string }
VirtualMachineId is a struct representing the Resource ID for a Virtual Machine
func NewVirtualMachineID ¶
func NewVirtualMachineID(subscriptionId string, resourceGroupName string, virtualMachineName string) VirtualMachineId
NewVirtualMachineID returns a new VirtualMachineId struct
func ParseVirtualMachineID ¶
func ParseVirtualMachineID(input string) (*VirtualMachineId, error)
ParseVirtualMachineID parses 'input' into a VirtualMachineId
func ParseVirtualMachineIDInsensitively ¶
func ParseVirtualMachineIDInsensitively(input string) (*VirtualMachineId, error)
ParseVirtualMachineIDInsensitively parses 'input' case-insensitively into a VirtualMachineId note: this method should only be used for API response data and not user input
func (VirtualMachineId) ID ¶
func (id VirtualMachineId) ID() string
ID returns the formatted Virtual Machine ID
func (VirtualMachineId) Segments ¶
func (id VirtualMachineId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Virtual Machine ID
func (VirtualMachineId) String ¶
func (id VirtualMachineId) String() string
String returns a human-readable description of this Virtual Machine ID