Categorygithub.com/hashicorp/go-azure-sdk/resource-managerrecoveryservicessiterecovery2023-02-01replicationnetworks
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-02-01/replicationnetworks
Documentation
The replicationnetworks
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/replicationnetworks"
Client Initialization
client := replicationnetworks.NewReplicationNetworksClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: ReplicationNetworksClient.Get
ctx := context.TODO()
id := replicationnetworks.NewReplicationNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationNetworkValue")
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: ReplicationNetworksClient.List
ctx := context.TODO()
id := replicationnetworks.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: ReplicationNetworksClient.ListByReplicationFabrics
ctx := context.TODO()
id := replicationnetworks.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
}
# Functions
NewReplicationFabricID returns a new ReplicationFabricId struct.
NewReplicationNetworkID returns a new ReplicationNetworkId 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.
ParseReplicationNetworkID parses 'input' into a ReplicationNetworkId.
ParseReplicationNetworkIDInsensitively parses 'input' case-insensitively into a ReplicationNetworkId 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.
ValidateReplicationFabricID checks that 'input' can be parsed as a Replication Fabric ID.
ValidateReplicationNetworkID checks that 'input' can be parsed as a Replication Network ID.
ValidateVaultID checks that 'input' can be parsed as a Vault ID.
# 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
ReplicationFabricId is a struct representing the Resource ID for a Replication Fabric.
ReplicationNetworkId is a struct representing the Resource ID for a Replication Network.
No description provided by the author
No description provided by the author
VaultId is a struct representing the Resource ID for a Vault.