replicationnetworkmappings

package
v0.20240527.1094340 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationnetworkmappings Documentation

The replicationnetworkmappings 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/replicationnetworkmappings"

Client Initialization

client := replicationnetworkmappings.NewReplicationNetworkMappingsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ReplicationNetworkMappingsClient.Create

ctx := context.TODO()
id := replicationnetworkmappings.NewReplicationNetworkMappingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationNetworkValue", "replicationNetworkMappingValue")

payload := replicationnetworkmappings.CreateNetworkMappingInput{
	// ...
}


if err := client.CreateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: ReplicationNetworkMappingsClient.Delete

ctx := context.TODO()
id := replicationnetworkmappings.NewReplicationNetworkMappingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationNetworkValue", "replicationNetworkMappingValue")

if err := client.DeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: ReplicationNetworkMappingsClient.Get

ctx := context.TODO()
id := replicationnetworkmappings.NewReplicationNetworkMappingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationNetworkValue", "replicationNetworkMappingValue")

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: ReplicationNetworkMappingsClient.List

ctx := context.TODO()
id := replicationnetworkmappings.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: ReplicationNetworkMappingsClient.ListByReplicationNetworks

ctx := context.TODO()
id := replicationnetworkmappings.NewReplicationNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationNetworkValue")

// alternatively `client.ListByReplicationNetworks(ctx, id)` can be used to do batched pagination
items, err := client.ListByReplicationNetworksComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: ReplicationNetworkMappingsClient.Update

ctx := context.TODO()
id := replicationnetworkmappings.NewReplicationNetworkMappingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationNetworkValue", "replicationNetworkMappingValue")

payload := replicationnetworkmappings.UpdateNetworkMappingInput{
	// ...
}


if err := client.UpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 ValidateReplicationNetworkMappingID

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

ValidateReplicationNetworkMappingID checks that 'input' can be parsed as a Replication Network Mapping ID

func ValidateVaultID

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

ValidateVaultID checks that 'input' can be parsed as a Vault ID

Types

type AzureToAzureCreateNetworkMappingInput

type AzureToAzureCreateNetworkMappingInput struct {
	PrimaryNetworkId string `json:"primaryNetworkId"`
}

func (AzureToAzureCreateNetworkMappingInput) MarshalJSON

func (s AzureToAzureCreateNetworkMappingInput) MarshalJSON() ([]byte, error)

type AzureToAzureNetworkMappingSettings

type AzureToAzureNetworkMappingSettings struct {
	PrimaryFabricLocation  *string `json:"primaryFabricLocation,omitempty"`
	RecoveryFabricLocation *string `json:"recoveryFabricLocation,omitempty"`
}

func (AzureToAzureNetworkMappingSettings) MarshalJSON

func (s AzureToAzureNetworkMappingSettings) MarshalJSON() ([]byte, error)

type AzureToAzureUpdateNetworkMappingInput

type AzureToAzureUpdateNetworkMappingInput struct {
	PrimaryNetworkId *string `json:"primaryNetworkId,omitempty"`
}

func (AzureToAzureUpdateNetworkMappingInput) MarshalJSON

func (s AzureToAzureUpdateNetworkMappingInput) MarshalJSON() ([]byte, error)

type CreateNetworkMappingInput

type CreateNetworkMappingInput struct {
	Properties CreateNetworkMappingInputProperties `json:"properties"`
}

type CreateNetworkMappingInputProperties

type CreateNetworkMappingInputProperties struct {
	FabricSpecificDetails FabricSpecificCreateNetworkMappingInput `json:"fabricSpecificDetails"`
	RecoveryFabricName    *string                                 `json:"recoveryFabricName,omitempty"`
	RecoveryNetworkId     string                                  `json:"recoveryNetworkId"`
}

func (*CreateNetworkMappingInputProperties) UnmarshalJSON

func (s *CreateNetworkMappingInputProperties) UnmarshalJSON(bytes []byte) error

type CreateOperationResponse

type CreateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *NetworkMapping
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type FabricSpecificCreateNetworkMappingInput

type FabricSpecificCreateNetworkMappingInput interface {
}

type FabricSpecificUpdateNetworkMappingInput

type FabricSpecificUpdateNetworkMappingInput interface {
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *NetworkMapping
}

type ListByReplicationNetworksCompleteResult

type ListByReplicationNetworksCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []NetworkMapping
}

type ListByReplicationNetworksOperationResponse

type ListByReplicationNetworksOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]NetworkMapping
}

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []NetworkMapping
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]NetworkMapping
}

type NetworkMapping

type NetworkMapping struct {
	Id         *string                   `json:"id,omitempty"`
	Location   *string                   `json:"location,omitempty"`
	Name       *string                   `json:"name,omitempty"`
	Properties *NetworkMappingProperties `json:"properties,omitempty"`
	Type       *string                   `json:"type,omitempty"`
}

type NetworkMappingFabricSpecificSettings

type NetworkMappingFabricSpecificSettings interface {
}

type NetworkMappingOperationPredicate

type NetworkMappingOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (NetworkMappingOperationPredicate) Matches

type NetworkMappingProperties

type NetworkMappingProperties struct {
	FabricSpecificSettings      NetworkMappingFabricSpecificSettings `json:"fabricSpecificSettings"`
	PrimaryFabricFriendlyName   *string                              `json:"primaryFabricFriendlyName,omitempty"`
	PrimaryNetworkFriendlyName  *string                              `json:"primaryNetworkFriendlyName,omitempty"`
	PrimaryNetworkId            *string                              `json:"primaryNetworkId,omitempty"`
	RecoveryFabricArmId         *string                              `json:"recoveryFabricArmId,omitempty"`
	RecoveryFabricFriendlyName  *string                              `json:"recoveryFabricFriendlyName,omitempty"`
	RecoveryNetworkFriendlyName *string                              `json:"recoveryNetworkFriendlyName,omitempty"`
	RecoveryNetworkId           *string                              `json:"recoveryNetworkId,omitempty"`
	State                       *string                              `json:"state,omitempty"`
}

func (*NetworkMappingProperties) UnmarshalJSON

func (s *NetworkMappingProperties) UnmarshalJSON(bytes []byte) error

type RawFabricSpecificCreateNetworkMappingInputImpl

type RawFabricSpecificCreateNetworkMappingInputImpl struct {
	Type   string
	Values map[string]interface{}
}

RawFabricSpecificCreateNetworkMappingInputImpl 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. this cannot be used as a Request Payload).

type RawFabricSpecificUpdateNetworkMappingInputImpl

type RawFabricSpecificUpdateNetworkMappingInputImpl struct {
	Type   string
	Values map[string]interface{}
}

RawFabricSpecificUpdateNetworkMappingInputImpl 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. this cannot be used as a Request Payload).

type RawNetworkMappingFabricSpecificSettingsImpl

type RawNetworkMappingFabricSpecificSettingsImpl struct {
	Type   string
	Values map[string]interface{}
}

RawNetworkMappingFabricSpecificSettingsImpl 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. this cannot be used as a Request Payload).

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

func (id *ReplicationNetworkId) FromParseResult(input resourceids.ParseResult) error

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 ReplicationNetworkMappingId

type ReplicationNetworkMappingId struct {
	SubscriptionId                string
	ResourceGroupName             string
	VaultName                     string
	ReplicationFabricName         string
	ReplicationNetworkName        string
	ReplicationNetworkMappingName string
}

ReplicationNetworkMappingId is a struct representing the Resource ID for a Replication Network Mapping

func NewReplicationNetworkMappingID

func NewReplicationNetworkMappingID(subscriptionId string, resourceGroupName string, vaultName string, replicationFabricName string, replicationNetworkName string, replicationNetworkMappingName string) ReplicationNetworkMappingId

NewReplicationNetworkMappingID returns a new ReplicationNetworkMappingId struct

func ParseReplicationNetworkMappingID

func ParseReplicationNetworkMappingID(input string) (*ReplicationNetworkMappingId, error)

ParseReplicationNetworkMappingID parses 'input' into a ReplicationNetworkMappingId

func ParseReplicationNetworkMappingIDInsensitively

func ParseReplicationNetworkMappingIDInsensitively(input string) (*ReplicationNetworkMappingId, error)

ParseReplicationNetworkMappingIDInsensitively parses 'input' case-insensitively into a ReplicationNetworkMappingId note: this method should only be used for API response data and not user input

func (*ReplicationNetworkMappingId) FromParseResult

func (id *ReplicationNetworkMappingId) FromParseResult(input resourceids.ParseResult) error

func (ReplicationNetworkMappingId) ID

ID returns the formatted Replication Network Mapping ID

func (ReplicationNetworkMappingId) Segments

Segments returns a slice of Resource ID Segments which comprise this Replication Network Mapping ID

func (ReplicationNetworkMappingId) String

func (id ReplicationNetworkMappingId) String() string

String returns a human-readable description of this Replication Network Mapping ID

type ReplicationNetworkMappingsClient

type ReplicationNetworkMappingsClient struct {
	Client *resourcemanager.Client
}

func NewReplicationNetworkMappingsClientWithBaseURI

func NewReplicationNetworkMappingsClientWithBaseURI(sdkApi sdkEnv.Api) (*ReplicationNetworkMappingsClient, error)

func (ReplicationNetworkMappingsClient) Create

Create ...

func (ReplicationNetworkMappingsClient) CreateThenPoll

CreateThenPoll performs Create then polls until it's completed

func (ReplicationNetworkMappingsClient) Delete

Delete ...

func (ReplicationNetworkMappingsClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (ReplicationNetworkMappingsClient) Get

Get ...

func (ReplicationNetworkMappingsClient) List

List ...

func (ReplicationNetworkMappingsClient) ListByReplicationNetworks

ListByReplicationNetworks ...

func (ReplicationNetworkMappingsClient) ListByReplicationNetworksComplete

ListByReplicationNetworksComplete retrieves all the results into a single object

func (ReplicationNetworkMappingsClient) ListByReplicationNetworksCompleteMatchingPredicate

func (c ReplicationNetworkMappingsClient) ListByReplicationNetworksCompleteMatchingPredicate(ctx context.Context, id ReplicationNetworkId, predicate NetworkMappingOperationPredicate) (result ListByReplicationNetworksCompleteResult, err error)

ListByReplicationNetworksCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ReplicationNetworkMappingsClient) ListComplete

ListComplete retrieves all the results into a single object

func (ReplicationNetworkMappingsClient) ListCompleteMatchingPredicate

func (c ReplicationNetworkMappingsClient) ListCompleteMatchingPredicate(ctx context.Context, id VaultId, predicate NetworkMappingOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ReplicationNetworkMappingsClient) Update

Update ...

func (ReplicationNetworkMappingsClient) UpdateThenPoll

UpdateThenPoll performs Update then polls until it's completed

type UpdateNetworkMappingInput

type UpdateNetworkMappingInput struct {
	Properties *UpdateNetworkMappingInputProperties `json:"properties,omitempty"`
}

type UpdateNetworkMappingInputProperties

type UpdateNetworkMappingInputProperties struct {
	FabricSpecificDetails FabricSpecificUpdateNetworkMappingInput `json:"fabricSpecificDetails"`
	RecoveryFabricName    *string                                 `json:"recoveryFabricName,omitempty"`
	RecoveryNetworkId     *string                                 `json:"recoveryNetworkId,omitempty"`
}

func (*UpdateNetworkMappingInputProperties) UnmarshalJSON

func (s *UpdateNetworkMappingInputProperties) UnmarshalJSON(bytes []byte) error

type UpdateOperationResponse

type UpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *NetworkMapping
}

type VMmToAzureCreateNetworkMappingInput

type VMmToAzureCreateNetworkMappingInput struct {
}

func (VMmToAzureCreateNetworkMappingInput) MarshalJSON

func (s VMmToAzureCreateNetworkMappingInput) MarshalJSON() ([]byte, error)

type VMmToAzureNetworkMappingSettings

type VMmToAzureNetworkMappingSettings struct {
}

func (VMmToAzureNetworkMappingSettings) MarshalJSON

func (s VMmToAzureNetworkMappingSettings) MarshalJSON() ([]byte, error)

type VMmToAzureUpdateNetworkMappingInput

type VMmToAzureUpdateNetworkMappingInput struct {
}

func (VMmToAzureUpdateNetworkMappingInput) MarshalJSON

func (s VMmToAzureUpdateNetworkMappingInput) MarshalJSON() ([]byte, error)

type VMmToVMmCreateNetworkMappingInput

type VMmToVMmCreateNetworkMappingInput struct {
}

func (VMmToVMmCreateNetworkMappingInput) MarshalJSON

func (s VMmToVMmCreateNetworkMappingInput) MarshalJSON() ([]byte, error)

type VMmToVMmNetworkMappingSettings

type VMmToVMmNetworkMappingSettings struct {
}

func (VMmToVMmNetworkMappingSettings) MarshalJSON

func (s VMmToVMmNetworkMappingSettings) MarshalJSON() ([]byte, error)

type VMmToVMmUpdateNetworkMappingInput

type VMmToVMmUpdateNetworkMappingInput struct {
}

func (VMmToVMmUpdateNetworkMappingInput) MarshalJSON

func (s VMmToVMmUpdateNetworkMappingInput) MarshalJSON() ([]byte, error)

type VaultId

type VaultId struct {
	SubscriptionId    string
	ResourceGroupName string
	VaultName         string
}

VaultId is a struct representing the Resource ID for a Vault

func NewVaultID

func NewVaultID(subscriptionId string, resourceGroupName string, vaultName string) VaultId

NewVaultID returns a new VaultId struct

func ParseVaultID

func ParseVaultID(input string) (*VaultId, error)

ParseVaultID parses 'input' into a VaultId

func ParseVaultIDInsensitively

func ParseVaultIDInsensitively(input string) (*VaultId, error)

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

func (id *VaultId) FromParseResult(input resourceids.ParseResult) error

func (VaultId) ID

func (id VaultId) ID() string

ID returns the formatted Vault ID

func (VaultId) Segments

func (id VaultId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Vault ID

func (VaultId) String

func (id VaultId) String() string

String returns a human-readable description of this Vault ID

Jump to

Keyboard shortcuts

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