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/2022-10-01/replicationrecoveryservicesproviders Documentation

The replicationrecoveryservicesproviders SDK allows for interaction with the Azure Resource Manager Service recoveryservicessiterecovery (API Version 2022-10-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-10-01/replicationrecoveryservicesproviders"

Client Initialization

client := replicationrecoveryservicesproviders.NewReplicationRecoveryServicesProvidersClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ReplicationRecoveryServicesProvidersClient.Create

ctx := context.TODO()
id := replicationrecoveryservicesproviders.NewReplicationRecoveryServicesProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationRecoveryServicesProviderValue")

payload := replicationrecoveryservicesproviders.AddRecoveryServicesProviderInput{
	// ...
}


if err := client.CreateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: ReplicationRecoveryServicesProvidersClient.Delete

ctx := context.TODO()
id := replicationrecoveryservicesproviders.NewReplicationRecoveryServicesProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationRecoveryServicesProviderValue")

if err := client.DeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: ReplicationRecoveryServicesProvidersClient.Get

ctx := context.TODO()
id := replicationrecoveryservicesproviders.NewReplicationRecoveryServicesProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationRecoveryServicesProviderValue")

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: ReplicationRecoveryServicesProvidersClient.List

ctx := context.TODO()
id := replicationrecoveryservicesproviders.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: ReplicationRecoveryServicesProvidersClient.ListByReplicationFabrics

ctx := context.TODO()
id := replicationrecoveryservicesproviders.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: ReplicationRecoveryServicesProvidersClient.Purge

ctx := context.TODO()
id := replicationrecoveryservicesproviders.NewReplicationRecoveryServicesProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationRecoveryServicesProviderValue")

if err := client.PurgeThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: ReplicationRecoveryServicesProvidersClient.RefreshProvider

ctx := context.TODO()
id := replicationrecoveryservicesproviders.NewReplicationRecoveryServicesProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationRecoveryServicesProviderValue")

if err := client.RefreshProviderThenPoll(ctx, id); err != nil {
	// handle the error
}

# Functions

NewReplicationFabricID returns a new ReplicationFabricId struct.
NewReplicationRecoveryServicesProviderID returns a new ReplicationRecoveryServicesProviderId 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.
ParseReplicationRecoveryServicesProviderID parses 'input' into a ReplicationRecoveryServicesProviderId.
ParseReplicationRecoveryServicesProviderIDInsensitively parses 'input' case-insensitively into a ReplicationRecoveryServicesProviderId 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
No description provided by the author
ValidateReplicationFabricID checks that 'input' can be parsed as a Replication Fabric ID.
ValidateReplicationRecoveryServicesProviderID checks that 'input' can be parsed as a Replication Recovery Services Provider 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
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

# 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
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.
ReplicationRecoveryServicesProviderId is a struct representing the Resource ID for a Replication Recovery Services Provider.
No description provided by the author
VaultId is a struct representing the Resource ID for a Vault.
No description provided by the author

# Type aliases

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