README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationnetworks
Documentation
The replicationnetworks
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/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
}
Documentation ¶
Index ¶
- func ValidateReplicationFabricID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateReplicationNetworkID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateVaultID(input interface{}, key string) (warnings []string, errors []error)
- type GetOperationResponse
- type ListByReplicationFabricsCompleteResult
- type ListByReplicationFabricsOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type Network
- type NetworkOperationPredicate
- type NetworkProperties
- type ReplicationFabricId
- type ReplicationNetworkId
- type ReplicationNetworksClient
- func (c ReplicationNetworksClient) Get(ctx context.Context, id ReplicationNetworkId) (result GetOperationResponse, err error)
- func (c ReplicationNetworksClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error)
- func (c ReplicationNetworksClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error)
- func (c ReplicationNetworksClient) ListByReplicationFabricsComplete(ctx context.Context, id ReplicationFabricId) (ListByReplicationFabricsCompleteResult, error)
- func (c ReplicationNetworksClient) ListByReplicationFabricsCompleteMatchingPredicate(ctx context.Context, id ReplicationFabricId, ...) (result ListByReplicationFabricsCompleteResult, err error)
- func (c ReplicationNetworksClient) ListComplete(ctx context.Context, id VaultId) (ListCompleteResult, error)
- func (c ReplicationNetworksClient) ListCompleteMatchingPredicate(ctx context.Context, id VaultId, predicate NetworkOperationPredicate) (result ListCompleteResult, err error)
- type Subnet
- type VaultId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateReplicationFabricID ¶
ValidateReplicationFabricID checks that 'input' can be parsed as a Replication Fabric ID
func ValidateReplicationNetworkID ¶
func ValidateReplicationNetworkID(input interface{}, key string) (warnings []string, errors []error)
ValidateReplicationNetworkID checks that 'input' can be parsed as a Replication Network ID
func ValidateVaultID ¶
ValidateVaultID checks that 'input' can be parsed as a Vault ID
Types ¶
type GetOperationResponse ¶
type ListByReplicationFabricsCompleteResult ¶
type ListByReplicationFabricsCompleteResult struct {
Items []Network
}
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []Network
}
type ListOperationResponse ¶
type Network ¶
type Network struct { Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *NetworkProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type NetworkOperationPredicate ¶
func (NetworkOperationPredicate) Matches ¶
func (p NetworkOperationPredicate) Matches(input Network) bool
type NetworkProperties ¶
type ReplicationFabricId ¶
type ReplicationFabricId struct { SubscriptionId string ResourceGroupName string VaultName string ReplicationFabricName string }
ReplicationFabricId is a struct representing the Resource ID for a Replication Fabric
func NewReplicationFabricID ¶
func NewReplicationFabricID(subscriptionId string, resourceGroupName string, vaultName string, replicationFabricName string) ReplicationFabricId
NewReplicationFabricID returns a new ReplicationFabricId struct
func ParseReplicationFabricID ¶
func ParseReplicationFabricID(input string) (*ReplicationFabricId, error)
ParseReplicationFabricID parses 'input' into a ReplicationFabricId
func ParseReplicationFabricIDInsensitively ¶
func ParseReplicationFabricIDInsensitively(input string) (*ReplicationFabricId, error)
ParseReplicationFabricIDInsensitively parses 'input' case-insensitively into a ReplicationFabricId note: this method should only be used for API response data and not user input
func (ReplicationFabricId) ID ¶
func (id ReplicationFabricId) ID() string
ID returns the formatted Replication Fabric ID
func (ReplicationFabricId) Segments ¶
func (id ReplicationFabricId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Replication Fabric ID
func (ReplicationFabricId) String ¶
func (id ReplicationFabricId) String() string
String returns a human-readable description of this Replication Fabric ID
type ReplicationNetworkId ¶
type ReplicationNetworkId struct { SubscriptionId string ResourceGroupName string VaultName string ReplicationFabricName string ReplicationNetworkName string }
ReplicationNetworkId is a struct representing the Resource ID for a Replication Network
func NewReplicationNetworkID ¶
func NewReplicationNetworkID(subscriptionId string, resourceGroupName string, vaultName string, replicationFabricName string, replicationNetworkName string) ReplicationNetworkId
NewReplicationNetworkID returns a new ReplicationNetworkId struct
func ParseReplicationNetworkID ¶
func ParseReplicationNetworkID(input string) (*ReplicationNetworkId, error)
ParseReplicationNetworkID parses 'input' into a ReplicationNetworkId
func ParseReplicationNetworkIDInsensitively ¶
func ParseReplicationNetworkIDInsensitively(input string) (*ReplicationNetworkId, error)
ParseReplicationNetworkIDInsensitively parses 'input' case-insensitively into a ReplicationNetworkId note: this method should only be used for API response data and not user input
func (ReplicationNetworkId) ID ¶
func (id ReplicationNetworkId) ID() string
ID returns the formatted Replication Network ID
func (ReplicationNetworkId) Segments ¶
func (id ReplicationNetworkId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Replication Network ID
func (ReplicationNetworkId) String ¶
func (id ReplicationNetworkId) String() string
String returns a human-readable description of this Replication Network ID
type ReplicationNetworksClient ¶
type ReplicationNetworksClient struct {
Client *resourcemanager.Client
}
func NewReplicationNetworksClientWithBaseURI ¶
func NewReplicationNetworksClientWithBaseURI(sdkApi sdkEnv.Api) (*ReplicationNetworksClient, error)
func (ReplicationNetworksClient) Get ¶
func (c ReplicationNetworksClient) Get(ctx context.Context, id ReplicationNetworkId) (result GetOperationResponse, err error)
Get ...
func (ReplicationNetworksClient) List ¶
func (c ReplicationNetworksClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error)
List ...
func (ReplicationNetworksClient) ListByReplicationFabrics ¶
func (c ReplicationNetworksClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error)
ListByReplicationFabrics ...
func (ReplicationNetworksClient) ListByReplicationFabricsComplete ¶
func (c ReplicationNetworksClient) ListByReplicationFabricsComplete(ctx context.Context, id ReplicationFabricId) (ListByReplicationFabricsCompleteResult, error)
ListByReplicationFabricsComplete retrieves all the results into a single object
func (ReplicationNetworksClient) ListByReplicationFabricsCompleteMatchingPredicate ¶
func (c ReplicationNetworksClient) ListByReplicationFabricsCompleteMatchingPredicate(ctx context.Context, id ReplicationFabricId, predicate NetworkOperationPredicate) (result ListByReplicationFabricsCompleteResult, err error)
ListByReplicationFabricsCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ReplicationNetworksClient) ListComplete ¶
func (c ReplicationNetworksClient) ListComplete(ctx context.Context, id VaultId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (ReplicationNetworksClient) ListCompleteMatchingPredicate ¶
func (c ReplicationNetworksClient) ListCompleteMatchingPredicate(ctx context.Context, id VaultId, predicate NetworkOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
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