README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationstorageclassifications
Documentation
The replicationstorageclassifications
SDK allows for interaction with the Azure Resource Manager Service recoveryservicessiterecovery
(API Version 2023-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/2023-02-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 ¶
- func ValidateReplicationFabricID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateReplicationStorageClassificationID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateVaultID(input interface{}, key string) (warnings []string, errors []error)
- type GetOperationResponse
- type ListByReplicationFabricsCompleteResult
- type ListByReplicationFabricsOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type ReplicationFabricId
- type ReplicationStorageClassificationId
- func NewReplicationStorageClassificationID(subscriptionId string, resourceGroupName string, vaultName string, ...) ReplicationStorageClassificationId
- func ParseReplicationStorageClassificationID(input string) (*ReplicationStorageClassificationId, error)
- func ParseReplicationStorageClassificationIDInsensitively(input string) (*ReplicationStorageClassificationId, error)
- type ReplicationStorageClassificationsClient
- func (c ReplicationStorageClassificationsClient) Get(ctx context.Context, id ReplicationStorageClassificationId) (result GetOperationResponse, err error)
- func (c ReplicationStorageClassificationsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error)
- func (c ReplicationStorageClassificationsClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error)
- func (c ReplicationStorageClassificationsClient) ListByReplicationFabricsComplete(ctx context.Context, id ReplicationFabricId) (ListByReplicationFabricsCompleteResult, error)
- func (c ReplicationStorageClassificationsClient) ListByReplicationFabricsCompleteMatchingPredicate(ctx context.Context, id ReplicationFabricId, ...) (result ListByReplicationFabricsCompleteResult, err error)
- func (c ReplicationStorageClassificationsClient) ListComplete(ctx context.Context, id VaultId) (ListCompleteResult, error)
- func (c ReplicationStorageClassificationsClient) ListCompleteMatchingPredicate(ctx context.Context, id VaultId, ...) (result ListCompleteResult, err error)
- type StorageClassification
- type StorageClassificationOperationPredicate
- type StorageClassificationProperties
- type VaultId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateReplicationFabricID ¶
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 ¶
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) FromParseResult ¶ added in v0.20231127.1171502
func (id *ReplicationFabricId) FromParseResult(input resourceids.ParseResult) error
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) FromParseResult ¶ added in v0.20231127.1171502
func (id *ReplicationStorageClassificationId) FromParseResult(input resourceids.ParseResult) error
func (ReplicationStorageClassificationId) ID ¶
func (id ReplicationStorageClassificationId) ID() string
ID returns the formatted Replication Storage Classification ID
func (ReplicationStorageClassificationId) Segments ¶
func (id ReplicationStorageClassificationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Replication Storage Classification ID
func (ReplicationStorageClassificationId) String ¶
func (id ReplicationStorageClassificationId) String() 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 ¶
func (c ReplicationStorageClassificationsClient) Get(ctx context.Context, id ReplicationStorageClassificationId) (result GetOperationResponse, err error)
Get ...
func (ReplicationStorageClassificationsClient) List ¶
func (c ReplicationStorageClassificationsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error)
List ...
func (ReplicationStorageClassificationsClient) ListByReplicationFabrics ¶
func (c ReplicationStorageClassificationsClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error)
ListByReplicationFabrics ...
func (ReplicationStorageClassificationsClient) ListByReplicationFabricsComplete ¶
func (c ReplicationStorageClassificationsClient) ListByReplicationFabricsComplete(ctx context.Context, id ReplicationFabricId) (ListByReplicationFabricsCompleteResult, error)
ListByReplicationFabricsComplete retrieves all the results into a single object
func (ReplicationStorageClassificationsClient) ListByReplicationFabricsCompleteMatchingPredicate ¶
func (c ReplicationStorageClassificationsClient) ListByReplicationFabricsCompleteMatchingPredicate(ctx context.Context, id ReplicationFabricId, predicate StorageClassificationOperationPredicate) (result ListByReplicationFabricsCompleteResult, err error)
ListByReplicationFabricsCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ReplicationStorageClassificationsClient) ListComplete ¶
func (c ReplicationStorageClassificationsClient) ListComplete(ctx context.Context, id VaultId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (ReplicationStorageClassificationsClient) ListCompleteMatchingPredicate ¶
func (c ReplicationStorageClassificationsClient) ListCompleteMatchingPredicate(ctx context.Context, id VaultId, predicate StorageClassificationOperationPredicate) (result ListCompleteResult, err error)
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 ¶
func (p StorageClassificationOperationPredicate) Matches(input StorageClassification) bool
type StorageClassificationProperties ¶
type StorageClassificationProperties struct {
FriendlyName *string `json:"friendlyName,omitempty"`
}
type VaultId ¶
VaultId is a struct representing the Resource ID for a Vault
func NewVaultID ¶
NewVaultID returns a new VaultId struct
func ParseVaultID ¶
ParseVaultID parses 'input' into a VaultId
func ParseVaultIDInsensitively ¶
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 ¶ added in v0.20231127.1171502
func (id *VaultId) FromParseResult(input resourceids.ParseResult) error
func (VaultId) Segments ¶
func (id VaultId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Vault ID