Categorygithub.com/hashicorp/go-azure-sdk/resource-managerrecoveryservicessiterecovery2022-10-01replicationjobs
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/replicationjobs
Documentation
The replicationjobs
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/replicationjobs"
Client Initialization
client := replicationjobs.NewReplicationJobsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: ReplicationJobsClient.Cancel
ctx := context.TODO()
id := replicationjobs.NewReplicationJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationJobValue")
if err := client.CancelThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: ReplicationJobsClient.Export
ctx := context.TODO()
id := replicationjobs.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue")
payload := replicationjobs.JobQueryParameter{
// ...
}
if err := client.ExportThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: ReplicationJobsClient.Get
ctx := context.TODO()
id := replicationjobs.NewReplicationJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationJobValue")
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: ReplicationJobsClient.List
ctx := context.TODO()
id := replicationjobs.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue")
// alternatively `client.List(ctx, id, replicationjobs.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, replicationjobs.DefaultListOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: ReplicationJobsClient.Restart
ctx := context.TODO()
id := replicationjobs.NewReplicationJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationJobValue")
if err := client.RestartThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: ReplicationJobsClient.Resume
ctx := context.TODO()
id := replicationjobs.NewReplicationJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationJobValue")
payload := replicationjobs.ResumeJobParams{
// ...
}
if err := client.ResumeThenPoll(ctx, id, payload); err != nil {
// handle the error
}
# Functions
No description provided by the author
NewReplicationJobID returns a new ReplicationJobId struct.
No description provided by the author
NewVaultID returns a new VaultId struct.
ParseReplicationJobID parses 'input' into a ReplicationJobId.
ParseReplicationJobIDInsensitively parses 'input' case-insensitively into a ReplicationJobId 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
ValidateReplicationJobID checks that 'input' can be parsed as a Replication Job 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
# 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
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
RawGroupTaskDetailsImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g.
RawJobDetailsImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g.
RawTaskTypeDetailsImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g.
No description provided by the author
No description provided by the author
ReplicationJobId is a struct representing the Resource ID for a Replication Job.
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
VaultId is a struct representing the Resource ID for a Vault.
No description provided by the author
No description provided by the author
# Interfaces
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