README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationlogicalnetworks
Documentation
The replicationlogicalnetworks
SDK allows for interaction with the Azure Resource Manager Service recoveryservicessiterecovery
(API Version 2023-06-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-06-01/replicationlogicalnetworks"
Client Initialization
client := replicationlogicalnetworks.NewReplicationLogicalNetworksClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: ReplicationLogicalNetworksClient.Get
ctx := context.TODO()
id := replicationlogicalnetworks.NewReplicationLogicalNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationLogicalNetworkValue")
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: ReplicationLogicalNetworksClient.ListByReplicationFabrics
ctx := context.TODO()
id := replicationlogicalnetworks.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 ValidateReplicationLogicalNetworkID(input interface{}, key string) (warnings []string, errors []error)
- type GetOperationResponse
- type ListByReplicationFabricsCompleteResult
- type ListByReplicationFabricsOperationResponse
- type LogicalNetwork
- type LogicalNetworkOperationPredicate
- type LogicalNetworkProperties
- type ReplicationFabricId
- type ReplicationLogicalNetworkId
- func NewReplicationLogicalNetworkID(subscriptionId string, resourceGroupName string, vaultName string, ...) ReplicationLogicalNetworkId
- func ParseReplicationLogicalNetworkID(input string) (*ReplicationLogicalNetworkId, error)
- func ParseReplicationLogicalNetworkIDInsensitively(input string) (*ReplicationLogicalNetworkId, error)
- type ReplicationLogicalNetworksClient
- func (c ReplicationLogicalNetworksClient) Get(ctx context.Context, id ReplicationLogicalNetworkId) (result GetOperationResponse, err error)
- func (c ReplicationLogicalNetworksClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error)
- func (c ReplicationLogicalNetworksClient) ListByReplicationFabricsComplete(ctx context.Context, id ReplicationFabricId) (ListByReplicationFabricsCompleteResult, error)
- func (c ReplicationLogicalNetworksClient) ListByReplicationFabricsCompleteMatchingPredicate(ctx context.Context, id ReplicationFabricId, ...) (result ListByReplicationFabricsCompleteResult, err error)
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 ValidateReplicationLogicalNetworkID ¶
func ValidateReplicationLogicalNetworkID(input interface{}, key string) (warnings []string, errors []error)
ValidateReplicationLogicalNetworkID checks that 'input' can be parsed as a Replication Logical Network ID
Types ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *LogicalNetwork }
type ListByReplicationFabricsCompleteResult ¶
type ListByReplicationFabricsCompleteResult struct { LatestHttpResponse *http.Response Items []LogicalNetwork }
type ListByReplicationFabricsOperationResponse ¶
type ListByReplicationFabricsOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]LogicalNetwork }
type LogicalNetwork ¶
type LogicalNetwork struct { Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *LogicalNetworkProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type LogicalNetworkOperationPredicate ¶
type LogicalNetworkOperationPredicate struct { Id *string Location *string Name *string Type *string }
func (LogicalNetworkOperationPredicate) Matches ¶
func (p LogicalNetworkOperationPredicate) Matches(input LogicalNetwork) bool
type LogicalNetworkProperties ¶
type LogicalNetworkProperties struct { FriendlyName *string `json:"friendlyName,omitempty"` LogicalNetworkDefinitionsStatus *string `json:"logicalNetworkDefinitionsStatus,omitempty"` LogicalNetworkUsage *string `json:"logicalNetworkUsage,omitempty"` NetworkVirtualizationStatus *string `json:"networkVirtualizationStatus,omitempty"` }
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) FromParseResult ¶
func (id *ReplicationFabricId) FromParseResult(input resourceids.ParseResult) error
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 ReplicationLogicalNetworkId ¶
type ReplicationLogicalNetworkId struct { SubscriptionId string ResourceGroupName string VaultName string ReplicationFabricName string ReplicationLogicalNetworkName string }
ReplicationLogicalNetworkId is a struct representing the Resource ID for a Replication Logical Network
func NewReplicationLogicalNetworkID ¶
func NewReplicationLogicalNetworkID(subscriptionId string, resourceGroupName string, vaultName string, replicationFabricName string, replicationLogicalNetworkName string) ReplicationLogicalNetworkId
NewReplicationLogicalNetworkID returns a new ReplicationLogicalNetworkId struct
func ParseReplicationLogicalNetworkID ¶
func ParseReplicationLogicalNetworkID(input string) (*ReplicationLogicalNetworkId, error)
ParseReplicationLogicalNetworkID parses 'input' into a ReplicationLogicalNetworkId
func ParseReplicationLogicalNetworkIDInsensitively ¶
func ParseReplicationLogicalNetworkIDInsensitively(input string) (*ReplicationLogicalNetworkId, error)
ParseReplicationLogicalNetworkIDInsensitively parses 'input' case-insensitively into a ReplicationLogicalNetworkId note: this method should only be used for API response data and not user input
func (*ReplicationLogicalNetworkId) FromParseResult ¶
func (id *ReplicationLogicalNetworkId) FromParseResult(input resourceids.ParseResult) error
func (ReplicationLogicalNetworkId) ID ¶
func (id ReplicationLogicalNetworkId) ID() string
ID returns the formatted Replication Logical Network ID
func (ReplicationLogicalNetworkId) Segments ¶
func (id ReplicationLogicalNetworkId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Replication Logical Network ID
func (ReplicationLogicalNetworkId) String ¶
func (id ReplicationLogicalNetworkId) String() string
String returns a human-readable description of this Replication Logical Network ID
type ReplicationLogicalNetworksClient ¶
type ReplicationLogicalNetworksClient struct {
Client *resourcemanager.Client
}
func NewReplicationLogicalNetworksClientWithBaseURI ¶
func NewReplicationLogicalNetworksClientWithBaseURI(sdkApi sdkEnv.Api) (*ReplicationLogicalNetworksClient, error)
func (ReplicationLogicalNetworksClient) Get ¶
func (c ReplicationLogicalNetworksClient) Get(ctx context.Context, id ReplicationLogicalNetworkId) (result GetOperationResponse, err error)
Get ...
func (ReplicationLogicalNetworksClient) ListByReplicationFabrics ¶
func (c ReplicationLogicalNetworksClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error)
ListByReplicationFabrics ...
func (ReplicationLogicalNetworksClient) ListByReplicationFabricsComplete ¶
func (c ReplicationLogicalNetworksClient) ListByReplicationFabricsComplete(ctx context.Context, id ReplicationFabricId) (ListByReplicationFabricsCompleteResult, error)
ListByReplicationFabricsComplete retrieves all the results into a single object
func (ReplicationLogicalNetworksClient) ListByReplicationFabricsCompleteMatchingPredicate ¶
func (c ReplicationLogicalNetworksClient) ListByReplicationFabricsCompleteMatchingPredicate(ctx context.Context, id ReplicationFabricId, predicate LogicalNetworkOperationPredicate) (result ListByReplicationFabricsCompleteResult, err error)
ListByReplicationFabricsCompleteMatchingPredicate retrieves all the results and then applies the predicate