accountmigrations

package
v0.20230810.1112551 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MPL-2.0 Imports: 8 Imported by: 1

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForMigrationStatus

func PossibleValuesForMigrationStatus() []string

func PossibleValuesForSkuName

func PossibleValuesForSkuName() []string

func ValidateStorageAccountID

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

ValidateStorageAccountID checks that 'input' can be parsed as a Storage Account ID

Types

type AccountMigrationsClient

type AccountMigrationsClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewAccountMigrationsClientWithBaseURI

func NewAccountMigrationsClientWithBaseURI(endpoint string) AccountMigrationsClient

func (AccountMigrationsClient) StorageAccountsCustomerInitiatedMigration

StorageAccountsCustomerInitiatedMigration ...

func (AccountMigrationsClient) StorageAccountsCustomerInitiatedMigrationThenPoll

func (c AccountMigrationsClient) StorageAccountsCustomerInitiatedMigrationThenPoll(ctx context.Context, id StorageAccountId, input StorageAccountMigration) error

StorageAccountsCustomerInitiatedMigrationThenPoll performs StorageAccountsCustomerInitiatedMigration then polls until it's completed

func (AccountMigrationsClient) StorageAccountsGetCustomerInitiatedMigration

func (c AccountMigrationsClient) StorageAccountsGetCustomerInitiatedMigration(ctx context.Context, id 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"
)

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

type StorageAccountId

type StorageAccountId struct {
	SubscriptionId     string
	ResourceGroupName  string
	StorageAccountName string
}

StorageAccountId is a struct representing the Resource ID for a Storage Account

func NewStorageAccountID

func NewStorageAccountID(subscriptionId string, resourceGroupName string, storageAccountName string) StorageAccountId

NewStorageAccountID returns a new StorageAccountId struct

func ParseStorageAccountID

func ParseStorageAccountID(input string) (*StorageAccountId, error)

ParseStorageAccountID parses 'input' into a StorageAccountId

func ParseStorageAccountIDInsensitively

func ParseStorageAccountIDInsensitively(input string) (*StorageAccountId, error)

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

func (StorageAccountId) ID

func (id StorageAccountId) ID() string

ID returns the formatted Storage Account ID

func (StorageAccountId) Segments

func (id StorageAccountId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Storage Account ID

func (StorageAccountId) String

func (id StorageAccountId) String() string

String returns a human-readable description of this Storage Account ID

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 StorageAccountsCustomerInitiatedMigrationOperationResponse

type StorageAccountsCustomerInitiatedMigrationOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type StorageAccountsGetCustomerInitiatedMigrationOperationResponse

type StorageAccountsGetCustomerInitiatedMigrationOperationResponse struct {
	HttpResponse *http.Response
	Model        *StorageAccountMigration
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL