README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationvaultsetting
Documentation
The replicationvaultsetting
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/replicationvaultsetting"
Client Initialization
client := replicationvaultsetting.NewReplicationVaultSettingClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: ReplicationVaultSettingClient.Create
ctx := context.TODO()
id := replicationvaultsetting.NewReplicationVaultSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationVaultSettingValue")
payload := replicationvaultsetting.VaultSettingCreationInput{
// ...
}
if err := client.CreateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: ReplicationVaultSettingClient.Get
ctx := context.TODO()
id := replicationvaultsetting.NewReplicationVaultSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationVaultSettingValue")
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: ReplicationVaultSettingClient.List
ctx := context.TODO()
id := replicationvaultsetting.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
}
Documentation ¶
Index ¶
- func ValidateReplicationVaultSettingID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateVaultID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOperationResponse
- type GetOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type ReplicationVaultSettingClient
- func (c ReplicationVaultSettingClient) Create(ctx context.Context, id ReplicationVaultSettingId, ...) (result CreateOperationResponse, err error)
- func (c ReplicationVaultSettingClient) CreateThenPoll(ctx context.Context, id ReplicationVaultSettingId, ...) error
- func (c ReplicationVaultSettingClient) Get(ctx context.Context, id ReplicationVaultSettingId) (result GetOperationResponse, err error)
- func (c ReplicationVaultSettingClient) List(ctx context.Context, id VaultId) (resp ListOperationResponse, err error)
- func (c ReplicationVaultSettingClient) ListComplete(ctx context.Context, id VaultId) (ListCompleteResult, error)
- func (c ReplicationVaultSettingClient) ListCompleteMatchingPredicate(ctx context.Context, id VaultId, predicate VaultSettingOperationPredicate) (resp ListCompleteResult, err error)
- type ReplicationVaultSettingId
- func NewReplicationVaultSettingID(subscriptionId string, resourceGroupName string, vaultName string, ...) ReplicationVaultSettingId
- func ParseReplicationVaultSettingID(input string) (*ReplicationVaultSettingId, error)
- func ParseReplicationVaultSettingIDInsensitively(input string) (*ReplicationVaultSettingId, error)
- type VaultId
- type VaultSetting
- type VaultSettingCreationInput
- type VaultSettingCreationInputProperties
- type VaultSettingOperationPredicate
- type VaultSettingProperties
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateReplicationVaultSettingID ¶
func ValidateReplicationVaultSettingID(input interface{}, key string) (warnings []string, errors []error)
ValidateReplicationVaultSettingID checks that 'input' can be parsed as a Replication Vault Setting ID
func ValidateVaultID ¶
ValidateVaultID checks that 'input' can be parsed as a Vault ID
Types ¶
type CreateOperationResponse ¶
type CreateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *VaultSetting }
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []VaultSetting
}
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]VaultSetting // 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 ReplicationVaultSettingClient ¶
type ReplicationVaultSettingClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewReplicationVaultSettingClientWithBaseURI ¶
func NewReplicationVaultSettingClientWithBaseURI(endpoint string) ReplicationVaultSettingClient
func (ReplicationVaultSettingClient) Create ¶
func (c ReplicationVaultSettingClient) Create(ctx context.Context, id ReplicationVaultSettingId, input VaultSettingCreationInput) (result CreateOperationResponse, err error)
Create ...
func (ReplicationVaultSettingClient) CreateThenPoll ¶
func (c ReplicationVaultSettingClient) CreateThenPoll(ctx context.Context, id ReplicationVaultSettingId, input VaultSettingCreationInput) error
CreateThenPoll performs Create then polls until it's completed
func (ReplicationVaultSettingClient) Get ¶
func (c ReplicationVaultSettingClient) Get(ctx context.Context, id ReplicationVaultSettingId) (result GetOperationResponse, err error)
Get ...
func (ReplicationVaultSettingClient) List ¶
func (c ReplicationVaultSettingClient) List(ctx context.Context, id VaultId) (resp ListOperationResponse, err error)
List ...
func (ReplicationVaultSettingClient) ListComplete ¶
func (c ReplicationVaultSettingClient) ListComplete(ctx context.Context, id VaultId) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (ReplicationVaultSettingClient) ListCompleteMatchingPredicate ¶
func (c ReplicationVaultSettingClient) ListCompleteMatchingPredicate(ctx context.Context, id VaultId, predicate VaultSettingOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
type ReplicationVaultSettingId ¶
type ReplicationVaultSettingId struct { SubscriptionId string ResourceGroupName string VaultName string ReplicationVaultSettingName string }
ReplicationVaultSettingId is a struct representing the Resource ID for a Replication Vault Setting
func NewReplicationVaultSettingID ¶
func NewReplicationVaultSettingID(subscriptionId string, resourceGroupName string, vaultName string, replicationVaultSettingName string) ReplicationVaultSettingId
NewReplicationVaultSettingID returns a new ReplicationVaultSettingId struct
func ParseReplicationVaultSettingID ¶
func ParseReplicationVaultSettingID(input string) (*ReplicationVaultSettingId, error)
ParseReplicationVaultSettingID parses 'input' into a ReplicationVaultSettingId
func ParseReplicationVaultSettingIDInsensitively ¶
func ParseReplicationVaultSettingIDInsensitively(input string) (*ReplicationVaultSettingId, error)
ParseReplicationVaultSettingIDInsensitively parses 'input' case-insensitively into a ReplicationVaultSettingId note: this method should only be used for API response data and not user input
func (ReplicationVaultSettingId) ID ¶
func (id ReplicationVaultSettingId) ID() string
ID returns the formatted Replication Vault Setting ID
func (ReplicationVaultSettingId) Segments ¶
func (id ReplicationVaultSettingId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Replication Vault Setting ID
func (ReplicationVaultSettingId) String ¶
func (id ReplicationVaultSettingId) String() string
String returns a human-readable description of this Replication Vault Setting ID
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
type VaultSetting ¶
type VaultSetting struct { Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *VaultSettingProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type VaultSettingCreationInput ¶
type VaultSettingCreationInput struct {
Properties VaultSettingCreationInputProperties `json:"properties"`
}
type VaultSettingOperationPredicate ¶
type VaultSettingOperationPredicate struct { Id *string Location *string Name *string Type *string }
func (VaultSettingOperationPredicate) Matches ¶
func (p VaultSettingOperationPredicate) Matches(input VaultSetting) bool