README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationvcenters
Documentation
The replicationvcenters
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/replicationvcenters"
Client Initialization
client := replicationvcenters.NewReplicationvCentersClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: ReplicationvCentersClient.Create
ctx := context.TODO()
id := replicationvcenters.NewReplicationvCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationvCenterValue")
payload := replicationvcenters.AddVCenterRequest{
// ...
}
if err := client.CreateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: ReplicationvCentersClient.Delete
ctx := context.TODO()
id := replicationvcenters.NewReplicationvCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationvCenterValue")
if err := client.DeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: ReplicationvCentersClient.Get
ctx := context.TODO()
id := replicationvcenters.NewReplicationvCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationvCenterValue")
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: ReplicationvCentersClient.List
ctx := context.TODO()
id := replicationvcenters.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue")
// alternatively `client.List(ctx, id)` can be used to do batched pagination
items, err := client.ListComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: ReplicationvCentersClient.ListByReplicationFabrics
ctx := context.TODO()
id := replicationvcenters.NewReplicationFabricID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue")
// alternatively `client.ListByReplicationFabrics(ctx, id)` can be used to do batched pagination
items, err := client.ListByReplicationFabricsComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: ReplicationvCentersClient.Update
ctx := context.TODO()
id := replicationvcenters.NewReplicationvCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationvCenterValue")
payload := replicationvcenters.UpdateVCenterRequest{
// ...
}
if err := client.UpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Documentation ¶
Index ¶
- func PossibleValuesForHealthErrorCustomerResolvability() []string
- func ValidateReplicationFabricID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateReplicationvCenterID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateVaultID(input interface{}, key string) (warnings []string, errors []error)
- type AddVCenterRequest
- type AddVCenterRequestProperties
- type CreateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type HealthError
- type HealthErrorCustomerResolvability
- type InnerHealthError
- type ListByReplicationFabricsCompleteResult
- type ListByReplicationFabricsOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type ReplicationFabricId
- type ReplicationvCenterId
- type ReplicationvCentersClient
- func (c ReplicationvCentersClient) Create(ctx context.Context, id ReplicationvCenterId, input AddVCenterRequest) (result CreateOperationResponse, err error)
- func (c ReplicationvCentersClient) CreateThenPoll(ctx context.Context, id ReplicationvCenterId, input AddVCenterRequest) error
- func (c ReplicationvCentersClient) Delete(ctx context.Context, id ReplicationvCenterId) (result DeleteOperationResponse, err error)
- func (c ReplicationvCentersClient) DeleteThenPoll(ctx context.Context, id ReplicationvCenterId) error
- func (c ReplicationvCentersClient) Get(ctx context.Context, id ReplicationvCenterId) (result GetOperationResponse, err error)
- func (c ReplicationvCentersClient) List(ctx context.Context, id VaultId) (resp ListOperationResponse, err error)
- func (c ReplicationvCentersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (resp ListByReplicationFabricsOperationResponse, err error)
- func (c ReplicationvCentersClient) ListByReplicationFabricsComplete(ctx context.Context, id ReplicationFabricId) (ListByReplicationFabricsCompleteResult, error)
- func (c ReplicationvCentersClient) ListByReplicationFabricsCompleteMatchingPredicate(ctx context.Context, id ReplicationFabricId, ...) (resp ListByReplicationFabricsCompleteResult, err error)
- func (c ReplicationvCentersClient) ListComplete(ctx context.Context, id VaultId) (ListCompleteResult, error)
- func (c ReplicationvCentersClient) ListCompleteMatchingPredicate(ctx context.Context, id VaultId, predicate VCenterOperationPredicate) (resp ListCompleteResult, err error)
- func (c ReplicationvCentersClient) Update(ctx context.Context, id ReplicationvCenterId, input UpdateVCenterRequest) (result UpdateOperationResponse, err error)
- func (c ReplicationvCentersClient) UpdateThenPoll(ctx context.Context, id ReplicationvCenterId, input UpdateVCenterRequest) error
- type UpdateOperationResponse
- type UpdateVCenterRequest
- type UpdateVCenterRequestProperties
- type VCenter
- type VCenterOperationPredicate
- type VCenterProperties
- type VaultId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForHealthErrorCustomerResolvability ¶
func PossibleValuesForHealthErrorCustomerResolvability() []string
func ValidateReplicationFabricID ¶
ValidateReplicationFabricID checks that 'input' can be parsed as a Replication Fabric ID
func ValidateReplicationvCenterID ¶
func ValidateReplicationvCenterID(input interface{}, key string) (warnings []string, errors []error)
ValidateReplicationvCenterID checks that 'input' can be parsed as a Replicationv Center ID
func ValidateVaultID ¶
ValidateVaultID checks that 'input' can be parsed as a Vault ID
Types ¶
type AddVCenterRequest ¶
type AddVCenterRequest struct {
Properties *AddVCenterRequestProperties `json:"properties,omitempty"`
}
type CreateOperationResponse ¶
type CreateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type DeleteOperationResponse ¶
type DeleteOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type GetOperationResponse ¶
type HealthError ¶
type HealthError struct { CreationTimeUtc *string `json:"creationTimeUtc,omitempty"` CustomerResolvability *HealthErrorCustomerResolvability `json:"customerResolvability,omitempty"` EntityId *string `json:"entityId,omitempty"` ErrorCategory *string `json:"errorCategory,omitempty"` ErrorCode *string `json:"errorCode,omitempty"` ErrorId *string `json:"errorId,omitempty"` ErrorLevel *string `json:"errorLevel,omitempty"` ErrorMessage *string `json:"errorMessage,omitempty"` ErrorSource *string `json:"errorSource,omitempty"` ErrorType *string `json:"errorType,omitempty"` InnerHealthErrors *[]InnerHealthError `json:"innerHealthErrors,omitempty"` PossibleCauses *string `json:"possibleCauses,omitempty"` RecommendedAction *string `json:"recommendedAction,omitempty"` RecoveryProviderErrorMessage *string `json:"recoveryProviderErrorMessage,omitempty"` SummaryMessage *string `json:"summaryMessage,omitempty"` }
func (*HealthError) GetCreationTimeUtcAsTime ¶
func (o *HealthError) GetCreationTimeUtcAsTime() (*time.Time, error)
func (*HealthError) SetCreationTimeUtcAsTime ¶
func (o *HealthError) SetCreationTimeUtcAsTime(input time.Time)
type HealthErrorCustomerResolvability ¶
type HealthErrorCustomerResolvability string
const ( HealthErrorCustomerResolvabilityAllowed HealthErrorCustomerResolvability = "Allowed" HealthErrorCustomerResolvabilityNotAllowed HealthErrorCustomerResolvability = "NotAllowed" )
type InnerHealthError ¶
type InnerHealthError struct { CreationTimeUtc *string `json:"creationTimeUtc,omitempty"` CustomerResolvability *HealthErrorCustomerResolvability `json:"customerResolvability,omitempty"` EntityId *string `json:"entityId,omitempty"` ErrorCategory *string `json:"errorCategory,omitempty"` ErrorCode *string `json:"errorCode,omitempty"` ErrorId *string `json:"errorId,omitempty"` ErrorLevel *string `json:"errorLevel,omitempty"` ErrorMessage *string `json:"errorMessage,omitempty"` ErrorSource *string `json:"errorSource,omitempty"` ErrorType *string `json:"errorType,omitempty"` PossibleCauses *string `json:"possibleCauses,omitempty"` RecommendedAction *string `json:"recommendedAction,omitempty"` RecoveryProviderErrorMessage *string `json:"recoveryProviderErrorMessage,omitempty"` SummaryMessage *string `json:"summaryMessage,omitempty"` }
func (*InnerHealthError) GetCreationTimeUtcAsTime ¶
func (o *InnerHealthError) GetCreationTimeUtcAsTime() (*time.Time, error)
func (*InnerHealthError) SetCreationTimeUtcAsTime ¶
func (o *InnerHealthError) SetCreationTimeUtcAsTime(input time.Time)
type ListByReplicationFabricsCompleteResult ¶
type ListByReplicationFabricsCompleteResult struct {
Items []VCenter
}
type ListByReplicationFabricsOperationResponse ¶
type ListByReplicationFabricsOperationResponse struct { HttpResponse *http.Response Model *[]VCenter // contains filtered or unexported fields }
func (ListByReplicationFabricsOperationResponse) HasMore ¶
func (r ListByReplicationFabricsOperationResponse) HasMore() bool
func (ListByReplicationFabricsOperationResponse) LoadMore ¶
func (r ListByReplicationFabricsOperationResponse) LoadMore(ctx context.Context) (resp ListByReplicationFabricsOperationResponse, err error)
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []VCenter
}
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]VCenter // contains filtered or unexported fields }
func (ListOperationResponse) HasMore ¶
func (r ListOperationResponse) HasMore() bool
func (ListOperationResponse) LoadMore ¶
func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)
type ReplicationFabricId ¶
type ReplicationFabricId struct { SubscriptionId string ResourceGroupName string VaultName string ReplicationFabricName string }
ReplicationFabricId is a struct representing the Resource ID for a Replication Fabric
func NewReplicationFabricID ¶
func NewReplicationFabricID(subscriptionId string, resourceGroupName string, vaultName string, replicationFabricName string) ReplicationFabricId
NewReplicationFabricID returns a new ReplicationFabricId struct
func ParseReplicationFabricID ¶
func ParseReplicationFabricID(input string) (*ReplicationFabricId, error)
ParseReplicationFabricID parses 'input' into a ReplicationFabricId
func ParseReplicationFabricIDInsensitively ¶
func ParseReplicationFabricIDInsensitively(input string) (*ReplicationFabricId, error)
ParseReplicationFabricIDInsensitively parses 'input' case-insensitively into a ReplicationFabricId note: this method should only be used for API response data and not user input
func (ReplicationFabricId) ID ¶
func (id ReplicationFabricId) ID() string
ID returns the formatted Replication Fabric ID
func (ReplicationFabricId) Segments ¶
func (id ReplicationFabricId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Replication Fabric ID
func (ReplicationFabricId) String ¶
func (id ReplicationFabricId) String() string
String returns a human-readable description of this Replication Fabric ID
type ReplicationvCenterId ¶
type ReplicationvCenterId struct { SubscriptionId string ResourceGroupName string VaultName string ReplicationFabricName string ReplicationvCenterName string }
ReplicationvCenterId is a struct representing the Resource ID for a Replicationv Center
func NewReplicationvCenterID ¶
func NewReplicationvCenterID(subscriptionId string, resourceGroupName string, vaultName string, replicationFabricName string, replicationvCenterName string) ReplicationvCenterId
NewReplicationvCenterID returns a new ReplicationvCenterId struct
func ParseReplicationvCenterID ¶
func ParseReplicationvCenterID(input string) (*ReplicationvCenterId, error)
ParseReplicationvCenterID parses 'input' into a ReplicationvCenterId
func ParseReplicationvCenterIDInsensitively ¶
func ParseReplicationvCenterIDInsensitively(input string) (*ReplicationvCenterId, error)
ParseReplicationvCenterIDInsensitively parses 'input' case-insensitively into a ReplicationvCenterId note: this method should only be used for API response data and not user input
func (ReplicationvCenterId) ID ¶
func (id ReplicationvCenterId) ID() string
ID returns the formatted Replicationv Center ID
func (ReplicationvCenterId) Segments ¶
func (id ReplicationvCenterId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Replicationv Center ID
func (ReplicationvCenterId) String ¶
func (id ReplicationvCenterId) String() string
String returns a human-readable description of this Replicationv Center ID
type ReplicationvCentersClient ¶
type ReplicationvCentersClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewReplicationvCentersClientWithBaseURI ¶
func NewReplicationvCentersClientWithBaseURI(endpoint string) ReplicationvCentersClient
func (ReplicationvCentersClient) Create ¶
func (c ReplicationvCentersClient) Create(ctx context.Context, id ReplicationvCenterId, input AddVCenterRequest) (result CreateOperationResponse, err error)
Create ...
func (ReplicationvCentersClient) CreateThenPoll ¶
func (c ReplicationvCentersClient) CreateThenPoll(ctx context.Context, id ReplicationvCenterId, input AddVCenterRequest) error
CreateThenPoll performs Create then polls until it's completed
func (ReplicationvCentersClient) Delete ¶
func (c ReplicationvCentersClient) Delete(ctx context.Context, id ReplicationvCenterId) (result DeleteOperationResponse, err error)
Delete ...
func (ReplicationvCentersClient) DeleteThenPoll ¶
func (c ReplicationvCentersClient) DeleteThenPoll(ctx context.Context, id ReplicationvCenterId) error
DeleteThenPoll performs Delete then polls until it's completed
func (ReplicationvCentersClient) Get ¶
func (c ReplicationvCentersClient) Get(ctx context.Context, id ReplicationvCenterId) (result GetOperationResponse, err error)
Get ...
func (ReplicationvCentersClient) List ¶
func (c ReplicationvCentersClient) List(ctx context.Context, id VaultId) (resp ListOperationResponse, err error)
List ...
func (ReplicationvCentersClient) ListByReplicationFabrics ¶
func (c ReplicationvCentersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (resp ListByReplicationFabricsOperationResponse, err error)
ListByReplicationFabrics ...
func (ReplicationvCentersClient) ListByReplicationFabricsComplete ¶
func (c ReplicationvCentersClient) ListByReplicationFabricsComplete(ctx context.Context, id ReplicationFabricId) (ListByReplicationFabricsCompleteResult, error)
ListByReplicationFabricsComplete retrieves all of the results into a single object
func (ReplicationvCentersClient) ListByReplicationFabricsCompleteMatchingPredicate ¶
func (c ReplicationvCentersClient) ListByReplicationFabricsCompleteMatchingPredicate(ctx context.Context, id ReplicationFabricId, predicate VCenterOperationPredicate) (resp ListByReplicationFabricsCompleteResult, err error)
ListByReplicationFabricsCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (ReplicationvCentersClient) ListComplete ¶
func (c ReplicationvCentersClient) ListComplete(ctx context.Context, id VaultId) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (ReplicationvCentersClient) ListCompleteMatchingPredicate ¶
func (c ReplicationvCentersClient) ListCompleteMatchingPredicate(ctx context.Context, id VaultId, predicate VCenterOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (ReplicationvCentersClient) Update ¶
func (c ReplicationvCentersClient) Update(ctx context.Context, id ReplicationvCenterId, input UpdateVCenterRequest) (result UpdateOperationResponse, err error)
Update ...
func (ReplicationvCentersClient) UpdateThenPoll ¶
func (c ReplicationvCentersClient) UpdateThenPoll(ctx context.Context, id ReplicationvCenterId, input UpdateVCenterRequest) error
UpdateThenPoll performs Update then polls until it's completed
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type UpdateVCenterRequest ¶
type UpdateVCenterRequest struct {
Properties *UpdateVCenterRequestProperties `json:"properties,omitempty"`
}
type VCenter ¶
type VCenter struct { Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *VCenterProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type VCenterOperationPredicate ¶
func (VCenterOperationPredicate) Matches ¶
func (p VCenterOperationPredicate) Matches(input VCenter) bool
type VCenterProperties ¶
type VCenterProperties struct { DiscoveryStatus *string `json:"discoveryStatus,omitempty"` FabricArmResourceName *string `json:"fabricArmResourceName,omitempty"` FriendlyName *string `json:"friendlyName,omitempty"` HealthErrors *[]HealthError `json:"healthErrors,omitempty"` IPAddress *string `json:"ipAddress,omitempty"` InfrastructureId *string `json:"infrastructureId,omitempty"` InternalId *string `json:"internalId,omitempty"` LastHeartbeat *string `json:"lastHeartbeat,omitempty"` Port *string `json:"port,omitempty"` ProcessServerId *string `json:"processServerId,omitempty"` RunAsAccountId *string `json:"runAsAccountId,omitempty"` }
func (*VCenterProperties) GetLastHeartbeatAsTime ¶
func (o *VCenterProperties) GetLastHeartbeatAsTime() (*time.Time, error)
func (*VCenterProperties) SetLastHeartbeatAsTime ¶
func (o *VCenterProperties) SetLastHeartbeatAsTime(input time.Time)
type VaultId ¶
VaultId is a struct representing the Resource ID for a Vault
func NewVaultID ¶
NewVaultID returns a new VaultId struct
func ParseVaultID ¶
ParseVaultID parses 'input' into a VaultId
func ParseVaultIDInsensitively ¶
ParseVaultIDInsensitively parses 'input' case-insensitively into a VaultId note: this method should only be used for API response data and not user input
func (VaultId) Segments ¶
func (id VaultId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Vault ID
Source Files ¶
- client.go
- constants.go
- id_replicationfabric.go
- id_replicationvcenter.go
- id_vault.go
- method_create_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_list_autorest.go
- method_listbyreplicationfabrics_autorest.go
- method_update_autorest.go
- model_addvcenterrequest.go
- model_addvcenterrequestproperties.go
- model_healtherror.go
- model_innerhealtherror.go
- model_updatevcenterrequest.go
- model_updatevcenterrequestproperties.go
- model_vcenter.go
- model_vcenterproperties.go
- predicates.go
- version.go