README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationstorageclassificationmappings
Documentation
The replicationstorageclassificationmappings
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/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 ¶
- func ValidateReplicationStorageClassificationID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateReplicationStorageClassificationMappingID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateVaultID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListByReplicationStorageClassificationsCompleteResult
- type ListByReplicationStorageClassificationsOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type ReplicationStorageClassificationId
- func NewReplicationStorageClassificationID(subscriptionId string, resourceGroupName string, vaultName string, ...) ReplicationStorageClassificationId
- func ParseReplicationStorageClassificationID(input string) (*ReplicationStorageClassificationId, error)
- func ParseReplicationStorageClassificationIDInsensitively(input string) (*ReplicationStorageClassificationId, error)
- type ReplicationStorageClassificationMappingId
- func NewReplicationStorageClassificationMappingID(subscriptionId string, resourceGroupName string, vaultName string, ...) ReplicationStorageClassificationMappingId
- func ParseReplicationStorageClassificationMappingID(input string) (*ReplicationStorageClassificationMappingId, error)
- func ParseReplicationStorageClassificationMappingIDInsensitively(input string) (*ReplicationStorageClassificationMappingId, error)
- func (id *ReplicationStorageClassificationMappingId) FromParseResult(input resourceids.ParseResult) error
- func (id ReplicationStorageClassificationMappingId) ID() string
- func (id ReplicationStorageClassificationMappingId) Segments() []resourceids.Segment
- func (id ReplicationStorageClassificationMappingId) String() string
- type ReplicationStorageClassificationMappingsClient
- func (c ReplicationStorageClassificationMappingsClient) Create(ctx context.Context, id ReplicationStorageClassificationMappingId, ...) (result CreateOperationResponse, err error)
- func (c ReplicationStorageClassificationMappingsClient) CreateThenPoll(ctx context.Context, id ReplicationStorageClassificationMappingId, ...) error
- func (c ReplicationStorageClassificationMappingsClient) Delete(ctx context.Context, id ReplicationStorageClassificationMappingId) (result DeleteOperationResponse, err error)
- func (c ReplicationStorageClassificationMappingsClient) DeleteThenPoll(ctx context.Context, id ReplicationStorageClassificationMappingId) error
- func (c ReplicationStorageClassificationMappingsClient) Get(ctx context.Context, id ReplicationStorageClassificationMappingId) (result GetOperationResponse, err error)
- func (c ReplicationStorageClassificationMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error)
- func (c ReplicationStorageClassificationMappingsClient) ListByReplicationStorageClassifications(ctx context.Context, id ReplicationStorageClassificationId) (result ListByReplicationStorageClassificationsOperationResponse, err error)
- func (c ReplicationStorageClassificationMappingsClient) ListByReplicationStorageClassificationsComplete(ctx context.Context, id ReplicationStorageClassificationId) (ListByReplicationStorageClassificationsCompleteResult, error)
- func (c ReplicationStorageClassificationMappingsClient) ListByReplicationStorageClassificationsCompleteMatchingPredicate(ctx context.Context, id ReplicationStorageClassificationId, ...) (result ListByReplicationStorageClassificationsCompleteResult, err error)
- func (c ReplicationStorageClassificationMappingsClient) ListComplete(ctx context.Context, id VaultId) (ListCompleteResult, error)
- func (c ReplicationStorageClassificationMappingsClient) ListCompleteMatchingPredicate(ctx context.Context, id VaultId, ...) (result ListCompleteResult, err error)
- type StorageClassificationMapping
- type StorageClassificationMappingInput
- type StorageClassificationMappingOperationPredicate
- type StorageClassificationMappingProperties
- type StorageMappingInputProperties
- type VaultId
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 ¶
ValidateVaultID checks that 'input' can be parsed as a Vault ID
Types ¶
type CreateOperationResponse ¶
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *StorageClassificationMapping }
type ListByReplicationStorageClassificationsCompleteResult ¶
type ListByReplicationStorageClassificationsCompleteResult struct { LatestHttpResponse *http.Response Items []StorageClassificationMapping }
type ListByReplicationStorageClassificationsOperationResponse ¶
type ListByReplicationStorageClassificationsOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]StorageClassificationMapping }
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []StorageClassificationMapping }
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 (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 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 (id *ReplicationStorageClassificationMappingId) FromParseResult(input resourceids.ParseResult) error
func (ReplicationStorageClassificationMappingId) ID ¶
func (id ReplicationStorageClassificationMappingId) ID() string
ID returns the formatted Replication Storage Classification Mapping ID
func (ReplicationStorageClassificationMappingId) Segments ¶
func (id ReplicationStorageClassificationMappingId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Replication Storage Classification Mapping ID
func (ReplicationStorageClassificationMappingId) String ¶
func (id ReplicationStorageClassificationMappingId) String() 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 ¶
func (c ReplicationStorageClassificationMappingsClient) Create(ctx context.Context, id ReplicationStorageClassificationMappingId, input StorageClassificationMappingInput) (result CreateOperationResponse, err error)
Create ...
func (ReplicationStorageClassificationMappingsClient) CreateThenPoll ¶
func (c ReplicationStorageClassificationMappingsClient) CreateThenPoll(ctx context.Context, id ReplicationStorageClassificationMappingId, input StorageClassificationMappingInput) error
CreateThenPoll performs Create then polls until it's completed
func (ReplicationStorageClassificationMappingsClient) Delete ¶
func (c ReplicationStorageClassificationMappingsClient) Delete(ctx context.Context, id ReplicationStorageClassificationMappingId) (result DeleteOperationResponse, err error)
Delete ...
func (ReplicationStorageClassificationMappingsClient) DeleteThenPoll ¶
func (c ReplicationStorageClassificationMappingsClient) DeleteThenPoll(ctx context.Context, id ReplicationStorageClassificationMappingId) error
DeleteThenPoll performs Delete then polls until it's completed
func (ReplicationStorageClassificationMappingsClient) Get ¶
func (c ReplicationStorageClassificationMappingsClient) Get(ctx context.Context, id ReplicationStorageClassificationMappingId) (result GetOperationResponse, err error)
Get ...
func (ReplicationStorageClassificationMappingsClient) List ¶
func (c ReplicationStorageClassificationMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error)
List ...
func (ReplicationStorageClassificationMappingsClient) ListByReplicationStorageClassifications ¶
func (c ReplicationStorageClassificationMappingsClient) ListByReplicationStorageClassifications(ctx context.Context, id ReplicationStorageClassificationId) (result ListByReplicationStorageClassificationsOperationResponse, err error)
ListByReplicationStorageClassifications ...
func (ReplicationStorageClassificationMappingsClient) ListByReplicationStorageClassificationsComplete ¶
func (c ReplicationStorageClassificationMappingsClient) ListByReplicationStorageClassificationsComplete(ctx context.Context, id ReplicationStorageClassificationId) (ListByReplicationStorageClassificationsCompleteResult, error)
ListByReplicationStorageClassificationsComplete retrieves all the results into a single object
func (ReplicationStorageClassificationMappingsClient) ListByReplicationStorageClassificationsCompleteMatchingPredicate ¶
func (c ReplicationStorageClassificationMappingsClient) ListByReplicationStorageClassificationsCompleteMatchingPredicate(ctx context.Context, id ReplicationStorageClassificationId, predicate StorageClassificationMappingOperationPredicate) (result ListByReplicationStorageClassificationsCompleteResult, err error)
ListByReplicationStorageClassificationsCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ReplicationStorageClassificationMappingsClient) ListComplete ¶
func (c ReplicationStorageClassificationMappingsClient) ListComplete(ctx context.Context, id VaultId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (ReplicationStorageClassificationMappingsClient) ListCompleteMatchingPredicate ¶
func (c ReplicationStorageClassificationMappingsClient) ListCompleteMatchingPredicate(ctx context.Context, id VaultId, predicate StorageClassificationMappingOperationPredicate) (result ListCompleteResult, err error)
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 ¶
func (p StorageClassificationMappingOperationPredicate) Matches(input StorageClassificationMapping) bool
type StorageClassificationMappingProperties ¶
type StorageClassificationMappingProperties struct {
TargetStorageClassificationId *string `json:"targetStorageClassificationId,omitempty"`
}
type StorageMappingInputProperties ¶
type StorageMappingInputProperties struct {
TargetStorageClassificationId *string `json:"targetStorageClassificationId,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 ¶
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
Source Files ¶
- client.go
- id_replicationstorageclassification.go
- id_replicationstorageclassificationmapping.go
- id_vault.go
- method_create.go
- method_delete.go
- method_get.go
- method_list.go
- method_listbyreplicationstorageclassifications.go
- model_storageclassificationmapping.go
- model_storageclassificationmappinginput.go
- model_storageclassificationmappingproperties.go
- model_storagemappinginputproperties.go
- predicates.go
- version.go