servermigration

package
v0.20240903.1131440 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration Documentation

The servermigration SDK allows for interaction with the Azure Resource Manager Service mysql (API Version 2023-12-30).

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/mysql/2023-12-30/servermigration"

Client Initialization

client := servermigration.NewServerMigrationClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ServerMigrationClient.ServersMigrationCutoverMigration

ctx := context.TODO()
id := servermigration.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue")

if err := client.ServersMigrationCutoverMigrationThenPoll(ctx, id); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForCreateMode

func PossibleValuesForCreateMode() []string

func PossibleValuesForDataEncryptionType

func PossibleValuesForDataEncryptionType() []string

func PossibleValuesForEnableStatusEnum

func PossibleValuesForEnableStatusEnum() []string

func PossibleValuesForHighAvailabilityMode

func PossibleValuesForHighAvailabilityMode() []string

func PossibleValuesForHighAvailabilityState

func PossibleValuesForHighAvailabilityState() []string

func PossibleValuesForImportSourceStorageType

func PossibleValuesForImportSourceStorageType() []string

func PossibleValuesForManagedServiceIdentityType

func PossibleValuesForManagedServiceIdentityType() []string

func PossibleValuesForPrivateEndpointConnectionProvisioningState

func PossibleValuesForPrivateEndpointConnectionProvisioningState() []string

func PossibleValuesForPrivateEndpointServiceConnectionStatus

func PossibleValuesForPrivateEndpointServiceConnectionStatus() []string

func PossibleValuesForReplicationRole

func PossibleValuesForReplicationRole() []string

func PossibleValuesForServerSkuTier

func PossibleValuesForServerSkuTier() []string

func PossibleValuesForServerState

func PossibleValuesForServerState() []string

func PossibleValuesForServerVersion

func PossibleValuesForServerVersion() []string

func ValidateFlexibleServerID

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

ValidateFlexibleServerID checks that 'input' can be parsed as a Flexible Server ID

Types

type Backup

type Backup struct {
	BackupIntervalHours *int64            `json:"backupIntervalHours,omitempty"`
	BackupRetentionDays *int64            `json:"backupRetentionDays,omitempty"`
	EarliestRestoreDate *string           `json:"earliestRestoreDate,omitempty"`
	GeoRedundantBackup  *EnableStatusEnum `json:"geoRedundantBackup,omitempty"`
}

func (*Backup) GetEarliestRestoreDateAsTime

func (o *Backup) GetEarliestRestoreDateAsTime() (*time.Time, error)

func (*Backup) SetEarliestRestoreDateAsTime

func (o *Backup) SetEarliestRestoreDateAsTime(input time.Time)

type CreateMode

type CreateMode string
const (
	CreateModeDefault            CreateMode = "Default"
	CreateModeGeoRestore         CreateMode = "GeoRestore"
	CreateModePointInTimeRestore CreateMode = "PointInTimeRestore"
	CreateModeReplica            CreateMode = "Replica"
)

func (*CreateMode) UnmarshalJSON

func (s *CreateMode) UnmarshalJSON(bytes []byte) error

type DataEncryption

type DataEncryption struct {
	GeoBackupKeyURI                 *string             `json:"geoBackupKeyURI,omitempty"`
	GeoBackupUserAssignedIdentityId *string             `json:"geoBackupUserAssignedIdentityId,omitempty"`
	PrimaryKeyURI                   *string             `json:"primaryKeyURI,omitempty"`
	PrimaryUserAssignedIdentityId   *string             `json:"primaryUserAssignedIdentityId,omitempty"`
	Type                            *DataEncryptionType `json:"type,omitempty"`
}

type DataEncryptionType

type DataEncryptionType string
const (
	DataEncryptionTypeAzureKeyVault DataEncryptionType = "AzureKeyVault"
	DataEncryptionTypeSystemManaged DataEncryptionType = "SystemManaged"
)

func (*DataEncryptionType) UnmarshalJSON

func (s *DataEncryptionType) UnmarshalJSON(bytes []byte) error

type EnableStatusEnum

type EnableStatusEnum string
const (
	EnableStatusEnumDisabled EnableStatusEnum = "Disabled"
	EnableStatusEnumEnabled  EnableStatusEnum = "Enabled"
)

func (*EnableStatusEnum) UnmarshalJSON

func (s *EnableStatusEnum) UnmarshalJSON(bytes []byte) error

type FlexibleServerId

type FlexibleServerId struct {
	SubscriptionId     string
	ResourceGroupName  string
	FlexibleServerName string
}

FlexibleServerId is a struct representing the Resource ID for a Flexible Server

func NewFlexibleServerID

func NewFlexibleServerID(subscriptionId string, resourceGroupName string, flexibleServerName string) FlexibleServerId

NewFlexibleServerID returns a new FlexibleServerId struct

func ParseFlexibleServerID

func ParseFlexibleServerID(input string) (*FlexibleServerId, error)

ParseFlexibleServerID parses 'input' into a FlexibleServerId

func ParseFlexibleServerIDInsensitively

func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error)

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

func (*FlexibleServerId) FromParseResult

func (id *FlexibleServerId) FromParseResult(input resourceids.ParseResult) error

func (FlexibleServerId) ID

func (id FlexibleServerId) ID() string

ID returns the formatted Flexible Server ID

func (FlexibleServerId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Flexible Server ID

func (FlexibleServerId) String

func (id FlexibleServerId) String() string

String returns a human-readable description of this Flexible Server ID

type HighAvailability

type HighAvailability struct {
	Mode                    *HighAvailabilityMode  `json:"mode,omitempty"`
	StandbyAvailabilityZone *string                `json:"standbyAvailabilityZone,omitempty"`
	State                   *HighAvailabilityState `json:"state,omitempty"`
}

type HighAvailabilityMode

type HighAvailabilityMode string
const (
	HighAvailabilityModeDisabled      HighAvailabilityMode = "Disabled"
	HighAvailabilityModeSameZone      HighAvailabilityMode = "SameZone"
	HighAvailabilityModeZoneRedundant HighAvailabilityMode = "ZoneRedundant"
)

func (*HighAvailabilityMode) UnmarshalJSON

func (s *HighAvailabilityMode) UnmarshalJSON(bytes []byte) error

type HighAvailabilityState

type HighAvailabilityState string
const (
	HighAvailabilityStateCreatingStandby HighAvailabilityState = "CreatingStandby"
	HighAvailabilityStateFailingOver     HighAvailabilityState = "FailingOver"
	HighAvailabilityStateHealthy         HighAvailabilityState = "Healthy"
	HighAvailabilityStateNotEnabled      HighAvailabilityState = "NotEnabled"
	HighAvailabilityStateRemovingStandby HighAvailabilityState = "RemovingStandby"
)

func (*HighAvailabilityState) UnmarshalJSON

func (s *HighAvailabilityState) UnmarshalJSON(bytes []byte) error

type ImportSourceProperties

type ImportSourceProperties struct {
	DataDirPath *string                  `json:"dataDirPath,omitempty"`
	SasToken    *string                  `json:"sasToken,omitempty"`
	StorageType *ImportSourceStorageType `json:"storageType,omitempty"`
	StorageUrl  *string                  `json:"storageUrl,omitempty"`
}

type ImportSourceStorageType

type ImportSourceStorageType string
const (
	ImportSourceStorageTypeAzureBlob ImportSourceStorageType = "AzureBlob"
)

func (*ImportSourceStorageType) UnmarshalJSON

func (s *ImportSourceStorageType) UnmarshalJSON(bytes []byte) error

type MaintenanceWindow

type MaintenanceWindow struct {
	CustomWindow *string `json:"customWindow,omitempty"`
	DayOfWeek    *int64  `json:"dayOfWeek,omitempty"`
	StartHour    *int64  `json:"startHour,omitempty"`
	StartMinute  *int64  `json:"startMinute,omitempty"`
}

type ManagedServiceIdentityType

type ManagedServiceIdentityType string
const (
	ManagedServiceIdentityTypeUserAssigned ManagedServiceIdentityType = "UserAssigned"
)

func (*ManagedServiceIdentityType) UnmarshalJSON

func (s *ManagedServiceIdentityType) UnmarshalJSON(bytes []byte) error

type MySQLServerIdentity

type MySQLServerIdentity struct {
	PrincipalId            *string                     `json:"principalId,omitempty"`
	TenantId               *string                     `json:"tenantId,omitempty"`
	Type                   *ManagedServiceIdentityType `json:"type,omitempty"`
	UserAssignedIdentities *map[string]interface{}     `json:"userAssignedIdentities,omitempty"`
}

type MySQLServerSku

type MySQLServerSku struct {
	Name string        `json:"name"`
	Tier ServerSkuTier `json:"tier"`
}

type Network

type Network struct {
	DelegatedSubnetResourceId *string           `json:"delegatedSubnetResourceId,omitempty"`
	PrivateDnsZoneResourceId  *string           `json:"privateDnsZoneResourceId,omitempty"`
	PublicNetworkAccess       *EnableStatusEnum `json:"publicNetworkAccess,omitempty"`
}

type PrivateEndpoint

type PrivateEndpoint struct {
	Id *string `json:"id,omitempty"`
}

type PrivateEndpointConnection

type PrivateEndpointConnection struct {
	Id         *string                              `json:"id,omitempty"`
	Name       *string                              `json:"name,omitempty"`
	Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData               `json:"systemData,omitempty"`
	Type       *string                              `json:"type,omitempty"`
}

type PrivateEndpointConnectionProperties

type PrivateEndpointConnectionProperties struct {
	GroupIds                          *[]string                                   `json:"groupIds,omitempty"`
	PrivateEndpoint                   *PrivateEndpoint                            `json:"privateEndpoint,omitempty"`
	PrivateLinkServiceConnectionState PrivateLinkServiceConnectionState           `json:"privateLinkServiceConnectionState"`
	ProvisioningState                 *PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty"`
}

type PrivateEndpointConnectionProvisioningState

type PrivateEndpointConnectionProvisioningState string
const (
	PrivateEndpointConnectionProvisioningStateCreating  PrivateEndpointConnectionProvisioningState = "Creating"
	PrivateEndpointConnectionProvisioningStateDeleting  PrivateEndpointConnectionProvisioningState = "Deleting"
	PrivateEndpointConnectionProvisioningStateFailed    PrivateEndpointConnectionProvisioningState = "Failed"
	PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded"
)

func (*PrivateEndpointConnectionProvisioningState) UnmarshalJSON

func (s *PrivateEndpointConnectionProvisioningState) UnmarshalJSON(bytes []byte) error

type PrivateEndpointServiceConnectionStatus

type PrivateEndpointServiceConnectionStatus string
const (
	PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved"
	PrivateEndpointServiceConnectionStatusPending  PrivateEndpointServiceConnectionStatus = "Pending"
	PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected"
)

func (*PrivateEndpointServiceConnectionStatus) UnmarshalJSON

func (s *PrivateEndpointServiceConnectionStatus) UnmarshalJSON(bytes []byte) error

type PrivateLinkServiceConnectionState

type PrivateLinkServiceConnectionState struct {
	ActionsRequired *string                                 `json:"actionsRequired,omitempty"`
	Description     *string                                 `json:"description,omitempty"`
	Status          *PrivateEndpointServiceConnectionStatus `json:"status,omitempty"`
}

type ReplicationRole

type ReplicationRole string
const (
	ReplicationRoleNone    ReplicationRole = "None"
	ReplicationRoleReplica ReplicationRole = "Replica"
	ReplicationRoleSource  ReplicationRole = "Source"
)

func (*ReplicationRole) UnmarshalJSON

func (s *ReplicationRole) UnmarshalJSON(bytes []byte) error

type Server

type Server struct {
	Id         *string                `json:"id,omitempty"`
	Identity   *MySQLServerIdentity   `json:"identity,omitempty"`
	Location   string                 `json:"location"`
	Name       *string                `json:"name,omitempty"`
	Properties *ServerProperties      `json:"properties,omitempty"`
	Sku        *MySQLServerSku        `json:"sku,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Tags       *map[string]string     `json:"tags,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type ServerMigrationClient

type ServerMigrationClient struct {
	Client *resourcemanager.Client
}

func NewServerMigrationClientWithBaseURI

func NewServerMigrationClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerMigrationClient, error)

func (ServerMigrationClient) ServersMigrationCutoverMigration

func (c ServerMigrationClient) ServersMigrationCutoverMigration(ctx context.Context, id FlexibleServerId) (result ServersMigrationCutoverMigrationOperationResponse, err error)

ServersMigrationCutoverMigration ...

func (ServerMigrationClient) ServersMigrationCutoverMigrationThenPoll

func (c ServerMigrationClient) ServersMigrationCutoverMigrationThenPoll(ctx context.Context, id FlexibleServerId) error

ServersMigrationCutoverMigrationThenPoll performs ServersMigrationCutoverMigration then polls until it's completed

type ServerProperties

type ServerProperties struct {
	AdministratorLogin         *string                      `json:"administratorLogin,omitempty"`
	AdministratorLoginPassword *string                      `json:"administratorLoginPassword,omitempty"`
	AvailabilityZone           *string                      `json:"availabilityZone,omitempty"`
	Backup                     *Backup                      `json:"backup,omitempty"`
	CreateMode                 *CreateMode                  `json:"createMode,omitempty"`
	DataEncryption             *DataEncryption              `json:"dataEncryption,omitempty"`
	FullyQualifiedDomainName   *string                      `json:"fullyQualifiedDomainName,omitempty"`
	HighAvailability           *HighAvailability            `json:"highAvailability,omitempty"`
	ImportSourceProperties     *ImportSourceProperties      `json:"importSourceProperties,omitempty"`
	MaintenanceWindow          *MaintenanceWindow           `json:"maintenanceWindow,omitempty"`
	Network                    *Network                     `json:"network,omitempty"`
	PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"`
	ReplicaCapacity            *int64                       `json:"replicaCapacity,omitempty"`
	ReplicationRole            *ReplicationRole             `json:"replicationRole,omitempty"`
	RestorePointInTime         *string                      `json:"restorePointInTime,omitempty"`
	SourceServerResourceId     *string                      `json:"sourceServerResourceId,omitempty"`
	State                      *ServerState                 `json:"state,omitempty"`
	Storage                    *Storage                     `json:"storage,omitempty"`
	Version                    *ServerVersion               `json:"version,omitempty"`
}

func (*ServerProperties) GetRestorePointInTimeAsTime

func (o *ServerProperties) GetRestorePointInTimeAsTime() (*time.Time, error)

func (*ServerProperties) SetRestorePointInTimeAsTime

func (o *ServerProperties) SetRestorePointInTimeAsTime(input time.Time)

type ServerSkuTier

type ServerSkuTier string
const (
	ServerSkuTierBurstable       ServerSkuTier = "Burstable"
	ServerSkuTierGeneralPurpose  ServerSkuTier = "GeneralPurpose"
	ServerSkuTierMemoryOptimized ServerSkuTier = "MemoryOptimized"
)

func (*ServerSkuTier) UnmarshalJSON

func (s *ServerSkuTier) UnmarshalJSON(bytes []byte) error

type ServerState

type ServerState string
const (
	ServerStateDisabled ServerState = "Disabled"
	ServerStateDropping ServerState = "Dropping"
	ServerStateReady    ServerState = "Ready"
	ServerStateStarting ServerState = "Starting"
	ServerStateStopped  ServerState = "Stopped"
	ServerStateStopping ServerState = "Stopping"
	ServerStateUpdating ServerState = "Updating"
)

func (*ServerState) UnmarshalJSON

func (s *ServerState) UnmarshalJSON(bytes []byte) error

type ServerVersion

type ServerVersion string
const (
	ServerVersionEightPointZeroPointTwoOne ServerVersion = "8.0.21"
	ServerVersionFivePointSeven            ServerVersion = "5.7"
)

func (*ServerVersion) UnmarshalJSON

func (s *ServerVersion) UnmarshalJSON(bytes []byte) error

type ServersMigrationCutoverMigrationOperationResponse

type ServersMigrationCutoverMigrationOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Server
}

type Storage

type Storage struct {
	AutoGrow      *EnableStatusEnum `json:"autoGrow,omitempty"`
	AutoIoScaling *EnableStatusEnum `json:"autoIoScaling,omitempty"`
	Iops          *int64            `json:"iops,omitempty"`
	LogOnDisk     *EnableStatusEnum `json:"logOnDisk,omitempty"`
	StorageSizeGB *int64            `json:"storageSizeGB,omitempty"`
	StorageSku    *string           `json:"storageSku,omitempty"`
}

Jump to

Keyboard shortcuts

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