replicationnetworkmappings

package
v0.20241205.1102105 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-10-01/replicationnetworkmappings Documentation

The replicationnetworkmappings SDK allows for interaction with Azure Resource Manager recoveryservicessiterecovery (API Version 2024-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/2024-10-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", "vaultName", "replicationFabricName", "replicationNetworkName", "replicationNetworkMappingName")

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", "vaultName", "replicationFabricName", "replicationNetworkName", "replicationNetworkMappingName")

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", "vaultName", "replicationFabricName", "replicationNetworkName", "replicationNetworkMappingName")

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", "vaultName")

// 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", "vaultName", "replicationFabricName", "replicationNetworkName")

// 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", "vaultName", "replicationFabricName", "replicationNetworkName", "replicationNetworkMappingName")

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"`

	InstanceType string `json:"instanceType"`
}

func (AzureToAzureCreateNetworkMappingInput) FabricSpecificCreateNetworkMappingInput

func (AzureToAzureCreateNetworkMappingInput) MarshalJSON

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

type AzureToAzureNetworkMappingSettings

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

	InstanceType string `json:"instanceType"`
}

func (AzureToAzureNetworkMappingSettings) MarshalJSON

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

func (AzureToAzureNetworkMappingSettings) NetworkMappingFabricSpecificSettings

type AzureToAzureUpdateNetworkMappingInput

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

	InstanceType string `json:"instanceType"`
}

func (AzureToAzureUpdateNetworkMappingInput) FabricSpecificUpdateNetworkMappingInput

func (AzureToAzureUpdateNetworkMappingInput) MarshalJSON

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

type BaseFabricSpecificCreateNetworkMappingInputImpl

type BaseFabricSpecificCreateNetworkMappingInputImpl struct {
	InstanceType string `json:"instanceType"`
}

func (BaseFabricSpecificCreateNetworkMappingInputImpl) FabricSpecificCreateNetworkMappingInput

type BaseFabricSpecificUpdateNetworkMappingInputImpl

type BaseFabricSpecificUpdateNetworkMappingInputImpl struct {
	InstanceType string `json:"instanceType"`
}

func (BaseFabricSpecificUpdateNetworkMappingInputImpl) FabricSpecificUpdateNetworkMappingInput

type BaseNetworkMappingFabricSpecificSettingsImpl

type BaseNetworkMappingFabricSpecificSettingsImpl struct {
	InstanceType string `json:"instanceType"`
}

func (BaseNetworkMappingFabricSpecificSettingsImpl) NetworkMappingFabricSpecificSettings

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 {
	FabricSpecificCreateNetworkMappingInput() BaseFabricSpecificCreateNetworkMappingInputImpl
}

func UnmarshalFabricSpecificCreateNetworkMappingInputImplementation

func UnmarshalFabricSpecificCreateNetworkMappingInputImplementation(input []byte) (FabricSpecificCreateNetworkMappingInput, error)

type FabricSpecificUpdateNetworkMappingInput

type FabricSpecificUpdateNetworkMappingInput interface {
	FabricSpecificUpdateNetworkMappingInput() BaseFabricSpecificUpdateNetworkMappingInputImpl
}

func UnmarshalFabricSpecificUpdateNetworkMappingInputImplementation

func UnmarshalFabricSpecificUpdateNetworkMappingInputImplementation(input []byte) (FabricSpecificUpdateNetworkMappingInput, error)

type GetOperationResponse

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

type ListByReplicationNetworksCompleteResult

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

type ListByReplicationNetworksCustomPager

type ListByReplicationNetworksCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListByReplicationNetworksCustomPager) NextPageLink() *odata.Link

type ListByReplicationNetworksOperationResponse

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

type ListCompleteResult

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

type ListCustomPager

type ListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListCustomPager) NextPageLink() *odata.Link

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 {
	NetworkMappingFabricSpecificSettings() BaseNetworkMappingFabricSpecificSettingsImpl
}

func UnmarshalNetworkMappingFabricSpecificSettingsImplementation

func UnmarshalNetworkMappingFabricSpecificSettingsImplementation(input []byte) (NetworkMappingFabricSpecificSettings, error)

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{}
	// contains filtered or unexported fields
}

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

func (RawFabricSpecificCreateNetworkMappingInputImpl) FabricSpecificCreateNetworkMappingInput

type RawFabricSpecificUpdateNetworkMappingInputImpl

type RawFabricSpecificUpdateNetworkMappingInputImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

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

func (RawFabricSpecificUpdateNetworkMappingInputImpl) FabricSpecificUpdateNetworkMappingInput

type RawNetworkMappingFabricSpecificSettingsImpl

type RawNetworkMappingFabricSpecificSettingsImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

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

func (RawNetworkMappingFabricSpecificSettingsImpl) NetworkMappingFabricSpecificSettings

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 {
	InstanceType string `json:"instanceType"`
}

func (VMmToAzureCreateNetworkMappingInput) FabricSpecificCreateNetworkMappingInput

func (VMmToAzureCreateNetworkMappingInput) MarshalJSON

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

type VMmToAzureNetworkMappingSettings

type VMmToAzureNetworkMappingSettings struct {
	InstanceType string `json:"instanceType"`
}

func (VMmToAzureNetworkMappingSettings) MarshalJSON

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

func (VMmToAzureNetworkMappingSettings) NetworkMappingFabricSpecificSettings

func (s VMmToAzureNetworkMappingSettings) NetworkMappingFabricSpecificSettings() BaseNetworkMappingFabricSpecificSettingsImpl

type VMmToAzureUpdateNetworkMappingInput

type VMmToAzureUpdateNetworkMappingInput struct {
	InstanceType string `json:"instanceType"`
}

func (VMmToAzureUpdateNetworkMappingInput) FabricSpecificUpdateNetworkMappingInput

func (VMmToAzureUpdateNetworkMappingInput) MarshalJSON

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

type VMmToVMmCreateNetworkMappingInput

type VMmToVMmCreateNetworkMappingInput struct {
	InstanceType string `json:"instanceType"`
}

func (VMmToVMmCreateNetworkMappingInput) FabricSpecificCreateNetworkMappingInput

func (s VMmToVMmCreateNetworkMappingInput) FabricSpecificCreateNetworkMappingInput() BaseFabricSpecificCreateNetworkMappingInputImpl

func (VMmToVMmCreateNetworkMappingInput) MarshalJSON

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

type VMmToVMmNetworkMappingSettings

type VMmToVMmNetworkMappingSettings struct {
	InstanceType string `json:"instanceType"`
}

func (VMmToVMmNetworkMappingSettings) MarshalJSON

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

func (VMmToVMmNetworkMappingSettings) NetworkMappingFabricSpecificSettings

func (s VMmToVMmNetworkMappingSettings) NetworkMappingFabricSpecificSettings() BaseNetworkMappingFabricSpecificSettingsImpl

type VMmToVMmUpdateNetworkMappingInput

type VMmToVMmUpdateNetworkMappingInput struct {
	InstanceType string `json:"instanceType"`
}

func (VMmToVMmUpdateNetworkMappingInput) FabricSpecificUpdateNetworkMappingInput

func (s VMmToVMmUpdateNetworkMappingInput) FabricSpecificUpdateNetworkMappingInput() BaseFabricSpecificUpdateNetworkMappingInputImpl

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