replicationstorageclassificationmappings

package
v0.20240715.1100358 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationstorageclassificationmappings Documentation

The replicationstorageclassificationmappings SDK allows for interaction with the Azure Resource Manager Service recoveryservicessiterecovery (API Version 2024-02-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-02-01/replicationstorageclassificationmappings"

Client Initialization

client := replicationstorageclassificationmappings.NewReplicationStorageClassificationMappingsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ReplicationStorageClassificationMappingsClient.Create

ctx := context.TODO()
id := replicationstorageclassificationmappings.NewReplicationStorageClassificationMappingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationStorageClassificationValue", "replicationStorageClassificationMappingValue")

payload := replicationstorageclassificationmappings.StorageClassificationMappingInput{
	// ...
}


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

Example Usage: ReplicationStorageClassificationMappingsClient.Delete

ctx := context.TODO()
id := replicationstorageclassificationmappings.NewReplicationStorageClassificationMappingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationStorageClassificationValue", "replicationStorageClassificationMappingValue")

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

Example Usage: ReplicationStorageClassificationMappingsClient.Get

ctx := context.TODO()
id := replicationstorageclassificationmappings.NewReplicationStorageClassificationMappingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationStorageClassificationValue", "replicationStorageClassificationMappingValue")

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

ctx := context.TODO()
id := replicationstorageclassificationmappings.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: ReplicationStorageClassificationMappingsClient.ListByReplicationStorageClassifications

ctx := context.TODO()
id := replicationstorageclassificationmappings.NewReplicationStorageClassificationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationStorageClassificationValue")

// alternatively `client.ListByReplicationStorageClassifications(ctx, id)` can be used to do batched pagination
items, err := client.ListByReplicationStorageClassificationsComplete(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 ValidateReplicationStorageClassificationID

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

ValidateReplicationStorageClassificationID checks that 'input' can be parsed as a Replication Storage Classification ID

func ValidateReplicationStorageClassificationMappingID

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

ValidateReplicationStorageClassificationMappingID checks that 'input' can be parsed as a Replication Storage Classification 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 CreateOperationResponse

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

type DeleteOperationResponse

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

type GetOperationResponse

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

type ListByReplicationStorageClassificationsCompleteResult

type ListByReplicationStorageClassificationsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []StorageClassificationMapping
}

type ListByReplicationStorageClassificationsCustomPager added in v0.20240628.1153531

type ListByReplicationStorageClassificationsCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}

type ListByReplicationStorageClassificationsOperationResponse

type ListByReplicationStorageClassificationsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]StorageClassificationMapping
}

type ListCompleteResult

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

type ListCustomPager added in v0.20240628.1153531

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        *[]StorageClassificationMapping
}

type ReplicationStorageClassificationId

type ReplicationStorageClassificationId struct {
	SubscriptionId                       string
	ResourceGroupName                    string
	VaultName                            string
	ReplicationFabricName                string
	ReplicationStorageClassificationName string
}

ReplicationStorageClassificationId is a struct representing the Resource ID for a Replication Storage Classification

func NewReplicationStorageClassificationID

func NewReplicationStorageClassificationID(subscriptionId string, resourceGroupName string, vaultName string, replicationFabricName string, replicationStorageClassificationName string) ReplicationStorageClassificationId

NewReplicationStorageClassificationID returns a new ReplicationStorageClassificationId struct

func ParseReplicationStorageClassificationID

func ParseReplicationStorageClassificationID(input string) (*ReplicationStorageClassificationId, error)

ParseReplicationStorageClassificationID parses 'input' into a ReplicationStorageClassificationId

func ParseReplicationStorageClassificationIDInsensitively

func ParseReplicationStorageClassificationIDInsensitively(input string) (*ReplicationStorageClassificationId, error)

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

func (*ReplicationStorageClassificationId) FromParseResult

func (ReplicationStorageClassificationId) ID

ID returns the formatted Replication Storage Classification ID

func (ReplicationStorageClassificationId) Segments

Segments returns a slice of Resource ID Segments which comprise this Replication Storage Classification ID

func (ReplicationStorageClassificationId) String

String returns a human-readable description of this Replication Storage Classification ID

type ReplicationStorageClassificationMappingId

type ReplicationStorageClassificationMappingId struct {
	SubscriptionId                              string
	ResourceGroupName                           string
	VaultName                                   string
	ReplicationFabricName                       string
	ReplicationStorageClassificationName        string
	ReplicationStorageClassificationMappingName string
}

ReplicationStorageClassificationMappingId is a struct representing the Resource ID for a Replication Storage Classification Mapping

func NewReplicationStorageClassificationMappingID

func NewReplicationStorageClassificationMappingID(subscriptionId string, resourceGroupName string, vaultName string, replicationFabricName string, replicationStorageClassificationName string, replicationStorageClassificationMappingName string) ReplicationStorageClassificationMappingId

NewReplicationStorageClassificationMappingID returns a new ReplicationStorageClassificationMappingId struct

func ParseReplicationStorageClassificationMappingID

func ParseReplicationStorageClassificationMappingID(input string) (*ReplicationStorageClassificationMappingId, error)

ParseReplicationStorageClassificationMappingID parses 'input' into a ReplicationStorageClassificationMappingId

func ParseReplicationStorageClassificationMappingIDInsensitively

func ParseReplicationStorageClassificationMappingIDInsensitively(input string) (*ReplicationStorageClassificationMappingId, error)

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

func (*ReplicationStorageClassificationMappingId) FromParseResult

func (ReplicationStorageClassificationMappingId) ID

ID returns the formatted Replication Storage Classification Mapping ID

func (ReplicationStorageClassificationMappingId) Segments

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

func (ReplicationStorageClassificationMappingId) String

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

type ReplicationStorageClassificationMappingsClient

type ReplicationStorageClassificationMappingsClient struct {
	Client *resourcemanager.Client
}

func NewReplicationStorageClassificationMappingsClientWithBaseURI

func NewReplicationStorageClassificationMappingsClientWithBaseURI(sdkApi sdkEnv.Api) (*ReplicationStorageClassificationMappingsClient, error)

func (ReplicationStorageClassificationMappingsClient) Create

Create ...

func (ReplicationStorageClassificationMappingsClient) CreateThenPoll

CreateThenPoll performs Create then polls until it's completed

func (ReplicationStorageClassificationMappingsClient) Delete

Delete ...

func (ReplicationStorageClassificationMappingsClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (ReplicationStorageClassificationMappingsClient) Get

Get ...

func (ReplicationStorageClassificationMappingsClient) List

List ...

func (ReplicationStorageClassificationMappingsClient) ListByReplicationStorageClassifications

ListByReplicationStorageClassifications ...

func (ReplicationStorageClassificationMappingsClient) ListByReplicationStorageClassificationsComplete

ListByReplicationStorageClassificationsComplete retrieves all the results into a single object

func (ReplicationStorageClassificationMappingsClient) ListByReplicationStorageClassificationsCompleteMatchingPredicate

ListByReplicationStorageClassificationsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ReplicationStorageClassificationMappingsClient) ListComplete

ListComplete retrieves all the results into a single object

func (ReplicationStorageClassificationMappingsClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type StorageClassificationMapping

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

type StorageClassificationMappingInput

type StorageClassificationMappingInput struct {
	Properties *StorageMappingInputProperties `json:"properties,omitempty"`
}

type StorageClassificationMappingOperationPredicate

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

func (StorageClassificationMappingOperationPredicate) Matches

type StorageClassificationMappingProperties

type StorageClassificationMappingProperties struct {
	TargetStorageClassificationId *string `json:"targetStorageClassificationId,omitempty"`
}

type StorageMappingInputProperties

type StorageMappingInputProperties struct {
	TargetStorageClassificationId *string `json:"targetStorageClassificationId,omitempty"`
}

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