package
0.20240715.1103416
Repository: https://github.com/hashicorp/go-azure-sdk.git
Documentation: pkg.go.dev

# README

github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationvcenters Documentation

The replicationvcenters SDK allows for interaction with the Azure Resource Manager Service recoveryservicessiterecovery (API Version 2023-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/2023-04-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
}

# Functions

NewReplicationFabricID returns a new ReplicationFabricId struct.
NewReplicationvCenterID returns a new ReplicationvCenterId struct.
No description provided by the author
NewVaultID returns a new VaultId struct.
ParseReplicationFabricID parses 'input' into a ReplicationFabricId.
ParseReplicationFabricIDInsensitively parses 'input' case-insensitively into a ReplicationFabricId note: this method should only be used for API response data and not user input.
ParseReplicationvCenterID parses 'input' into a ReplicationvCenterId.
ParseReplicationvCenterIDInsensitively parses 'input' case-insensitively into a ReplicationvCenterId note: this method should only be used for API response data and not user input.
ParseVaultID parses 'input' into a VaultId.
ParseVaultIDInsensitively parses 'input' case-insensitively into a VaultId note: this method should only be used for API response data and not user input.
No description provided by the author
ValidateReplicationFabricID checks that 'input' can be parsed as a Replication Fabric ID.
ValidateReplicationvCenterID checks that 'input' can be parsed as a Replicationv Center ID.
ValidateVaultID checks that 'input' can be parsed as a Vault ID.

# Constants

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ReplicationFabricId is a struct representing the Resource ID for a Replication Fabric.
ReplicationvCenterId is a struct representing the Resource ID for a Replicationv Center.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
VaultId is a struct representing the Resource ID for a Vault.
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author