replicationstorageclassifications

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/2022-10-01/replicationstorageclassifications Documentation

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

Client Initialization

client := replicationstorageclassifications.NewReplicationStorageClassificationsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ReplicationStorageClassificationsClient.Get

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

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

ctx := context.TODO()
id := replicationstorageclassifications.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: ReplicationStorageClassificationsClient.ListByReplicationFabrics

ctx := context.TODO()
id := replicationstorageclassifications.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 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 ValidateVaultID

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

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

Types

type GetOperationResponse

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

type ListByReplicationFabricsCompleteResult

type ListByReplicationFabricsCompleteResult struct {
	Items []StorageClassification
}

type ListByReplicationFabricsOperationResponse

type ListByReplicationFabricsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]StorageClassification
}

type ListCompleteResult

type ListCompleteResult struct {
	Items []StorageClassification
}

type ListOperationResponse

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

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

type ReplicationStorageClassificationsClient struct {
	Client *resourcemanager.Client
}

func NewReplicationStorageClassificationsClientWithBaseURI

func NewReplicationStorageClassificationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ReplicationStorageClassificationsClient, error)

func (ReplicationStorageClassificationsClient) Get

Get ...

func (ReplicationStorageClassificationsClient) List

List ...

func (ReplicationStorageClassificationsClient) ListByReplicationFabrics

ListByReplicationFabrics ...

func (ReplicationStorageClassificationsClient) ListByReplicationFabricsComplete

ListByReplicationFabricsComplete retrieves all the results into a single object

func (ReplicationStorageClassificationsClient) ListByReplicationFabricsCompleteMatchingPredicate

ListByReplicationFabricsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ReplicationStorageClassificationsClient) ListComplete

ListComplete retrieves all the results into a single object

func (ReplicationStorageClassificationsClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type StorageClassification

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

type StorageClassificationOperationPredicate

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

func (StorageClassificationOperationPredicate) Matches

type StorageClassificationProperties

type StorageClassificationProperties struct {
	FriendlyName *string `json:"friendlyName,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) 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