replicationlogicalnetworks

package
v0.20230823.1052657 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2023 License: MPL-2.0 Imports: 9 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationlogicalnetworks Documentation

The replicationlogicalnetworks 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/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

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateReplicationFabricID

func ValidateReplicationFabricID(input interface{}, key string) (warnings []string, errors []error)

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 {
	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

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) 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) ID

ID returns the formatted Replication Logical Network ID

func (ReplicationLogicalNetworkId) Segments

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

Get ...

func (ReplicationLogicalNetworksClient) ListByReplicationFabrics

ListByReplicationFabrics ...

func (ReplicationLogicalNetworksClient) ListByReplicationFabricsComplete

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL