README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/accountmigrations
Documentation
The accountmigrations
SDK allows for interaction with the Azure Resource Manager Service storage
(API Version 2023-01-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/storage/2023-01-01/accountmigrations"
Client Initialization
client := accountmigrations.NewAccountMigrationsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: AccountMigrationsClient.StorageAccountsCustomerInitiatedMigration
ctx := context.TODO()
id := accountmigrations.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue")
payload := accountmigrations.StorageAccountMigration{
// ...
}
if err := client.StorageAccountsCustomerInitiatedMigrationThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: AccountMigrationsClient.StorageAccountsGetCustomerInitiatedMigration
ctx := context.TODO()
id := accountmigrations.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue")
read, err := client.StorageAccountsGetCustomerInitiatedMigration(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation ¶
Index ¶
- func PossibleValuesForMigrationStatus() []string
- func PossibleValuesForSkuName() []string
- type AccountMigrationsClient
- func (c AccountMigrationsClient) StorageAccountsCustomerInitiatedMigration(ctx context.Context, id commonids.StorageAccountId, ...) (result StorageAccountsCustomerInitiatedMigrationOperationResponse, err error)
- func (c AccountMigrationsClient) StorageAccountsCustomerInitiatedMigrationThenPoll(ctx context.Context, id commonids.StorageAccountId, ...) error
- func (c AccountMigrationsClient) StorageAccountsGetCustomerInitiatedMigration(ctx context.Context, id commonids.StorageAccountId) (result StorageAccountsGetCustomerInitiatedMigrationOperationResponse, ...)
- type MigrationStatus
- type SkuName
- type StorageAccountMigration
- type StorageAccountMigrationProperties
- type StorageAccountsCustomerInitiatedMigrationOperationResponse
- type StorageAccountsGetCustomerInitiatedMigrationOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForMigrationStatus ¶
func PossibleValuesForMigrationStatus() []string
func PossibleValuesForSkuName ¶
func PossibleValuesForSkuName() []string
Types ¶
type AccountMigrationsClient ¶
type AccountMigrationsClient struct {
Client *resourcemanager.Client
}
func NewAccountMigrationsClientWithBaseURI ¶
func NewAccountMigrationsClientWithBaseURI(sdkApi sdkEnv.Api) (*AccountMigrationsClient, error)
func (AccountMigrationsClient) StorageAccountsCustomerInitiatedMigration ¶
func (c AccountMigrationsClient) StorageAccountsCustomerInitiatedMigration(ctx context.Context, id commonids.StorageAccountId, input StorageAccountMigration) (result StorageAccountsCustomerInitiatedMigrationOperationResponse, err error)
StorageAccountsCustomerInitiatedMigration ...
func (AccountMigrationsClient) StorageAccountsCustomerInitiatedMigrationThenPoll ¶
func (c AccountMigrationsClient) StorageAccountsCustomerInitiatedMigrationThenPoll(ctx context.Context, id commonids.StorageAccountId, input StorageAccountMigration) error
StorageAccountsCustomerInitiatedMigrationThenPoll performs StorageAccountsCustomerInitiatedMigration then polls until it's completed
func (AccountMigrationsClient) StorageAccountsGetCustomerInitiatedMigration ¶
func (c AccountMigrationsClient) StorageAccountsGetCustomerInitiatedMigration(ctx context.Context, id commonids.StorageAccountId) (result StorageAccountsGetCustomerInitiatedMigrationOperationResponse, err error)
StorageAccountsGetCustomerInitiatedMigration ...
type MigrationStatus ¶
type MigrationStatus string
const ( MigrationStatusComplete MigrationStatus = "Complete" MigrationStatusFailed MigrationStatus = "Failed" MigrationStatusInProgress MigrationStatus = "InProgress" MigrationStatusInvalid MigrationStatus = "Invalid" MigrationStatusSubmittedForConversion MigrationStatus = "SubmittedForConversion" )
func (*MigrationStatus) UnmarshalJSON ¶
func (s *MigrationStatus) UnmarshalJSON(bytes []byte) error
type SkuName ¶
type SkuName string
const ( SkuNamePremiumLRS SkuName = "Premium_LRS" SkuNamePremiumZRS SkuName = "Premium_ZRS" SkuNameStandardGRS SkuName = "Standard_GRS" SkuNameStandardGZRS SkuName = "Standard_GZRS" SkuNameStandardLRS SkuName = "Standard_LRS" SkuNameStandardRAGRS SkuName = "Standard_RAGRS" SkuNameStandardRAGZRS SkuName = "Standard_RAGZRS" SkuNameStandardZRS SkuName = "Standard_ZRS" )
func (*SkuName) UnmarshalJSON ¶
type StorageAccountMigration ¶
type StorageAccountMigration struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties StorageAccountMigrationProperties `json:"properties"` Type *string `json:"type,omitempty"` }
type StorageAccountMigrationProperties ¶
type StorageAccountMigrationProperties struct { MigrationFailedDetailedReason *string `json:"migrationFailedDetailedReason,omitempty"` MigrationFailedReason *string `json:"migrationFailedReason,omitempty"` MigrationStatus *MigrationStatus `json:"migrationStatus,omitempty"` TargetSkuName SkuName `json:"targetSkuName"` }
type StorageAccountsGetCustomerInitiatedMigrationOperationResponse ¶
type StorageAccountsGetCustomerInitiatedMigrationOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *StorageAccountMigration }
Click to show internal directories.
Click to hide internal directories.