migratemysqlazuredbformysqlofflinetasks

package
v0.20240416.1115834 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/migratemysqlazuredbformysqlofflinetasks Documentation

The migratemysqlazuredbformysqlofflinetasks SDK allows for interaction with the Azure Resource Manager Service datamigration (API Version 2021-06-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/datamigration/2021-06-30/migratemysqlazuredbformysqlofflinetasks"

Client Initialization

client := migratemysqlazuredbformysqlofflinetasks.NewMigrateMySqlAzureDbForMySqlOfflineTasksClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForDatabaseMigrationStage

func PossibleValuesForDatabaseMigrationStage() []string

func PossibleValuesForMigrationState

func PossibleValuesForMigrationState() []string

func PossibleValuesForMigrationStatus

func PossibleValuesForMigrationStatus() []string

Types

type ConnectionInfo

type ConnectionInfo interface {
}

type DataItemMigrationSummaryResult

type DataItemMigrationSummaryResult struct {
	EndedOn             *string         `json:"endedOn,omitempty"`
	ErrorPrefix         *string         `json:"errorPrefix,omitempty"`
	ItemsCompletedCount *int64          `json:"itemsCompletedCount,omitempty"`
	ItemsCount          *int64          `json:"itemsCount,omitempty"`
	Name                *string         `json:"name,omitempty"`
	ResultPrefix        *string         `json:"resultPrefix,omitempty"`
	StartedOn           *string         `json:"startedOn,omitempty"`
	State               *MigrationState `json:"state,omitempty"`
	StatusMessage       *string         `json:"statusMessage,omitempty"`
}

func (*DataItemMigrationSummaryResult) GetEndedOnAsTime

func (o *DataItemMigrationSummaryResult) GetEndedOnAsTime() (*time.Time, error)

func (*DataItemMigrationSummaryResult) GetStartedOnAsTime

func (o *DataItemMigrationSummaryResult) GetStartedOnAsTime() (*time.Time, error)

func (*DataItemMigrationSummaryResult) SetEndedOnAsTime

func (o *DataItemMigrationSummaryResult) SetEndedOnAsTime(input time.Time)

func (*DataItemMigrationSummaryResult) SetStartedOnAsTime

func (o *DataItemMigrationSummaryResult) SetStartedOnAsTime(input time.Time)

type DatabaseMigrationStage

type DatabaseMigrationStage string
const (
	DatabaseMigrationStageBackup     DatabaseMigrationStage = "Backup"
	DatabaseMigrationStageCompleted  DatabaseMigrationStage = "Completed"
	DatabaseMigrationStageFileCopy   DatabaseMigrationStage = "FileCopy"
	DatabaseMigrationStageInitialize DatabaseMigrationStage = "Initialize"
	DatabaseMigrationStageNone       DatabaseMigrationStage = "None"
	DatabaseMigrationStageRestore    DatabaseMigrationStage = "Restore"
)

func (*DatabaseMigrationStage) UnmarshalJSON

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

type DatabaseSummaryResult

type DatabaseSummaryResult struct {
	EndedOn             *string         `json:"endedOn,omitempty"`
	ErrorPrefix         *string         `json:"errorPrefix,omitempty"`
	ItemsCompletedCount *int64          `json:"itemsCompletedCount,omitempty"`
	ItemsCount          *int64          `json:"itemsCount,omitempty"`
	Name                *string         `json:"name,omitempty"`
	ResultPrefix        *string         `json:"resultPrefix,omitempty"`
	SizeMB              *float64        `json:"sizeMB,omitempty"`
	StartedOn           *string         `json:"startedOn,omitempty"`
	State               *MigrationState `json:"state,omitempty"`
	StatusMessage       *string         `json:"statusMessage,omitempty"`
}

func (*DatabaseSummaryResult) GetEndedOnAsTime

func (o *DatabaseSummaryResult) GetEndedOnAsTime() (*time.Time, error)

func (*DatabaseSummaryResult) GetStartedOnAsTime

func (o *DatabaseSummaryResult) GetStartedOnAsTime() (*time.Time, error)

func (*DatabaseSummaryResult) SetEndedOnAsTime

func (o *DatabaseSummaryResult) SetEndedOnAsTime(input time.Time)

func (*DatabaseSummaryResult) SetStartedOnAsTime

func (o *DatabaseSummaryResult) SetStartedOnAsTime(input time.Time)

type MigrateMySqlAzureDbForMySqlOfflineTaskOutput

type MigrateMySqlAzureDbForMySqlOfflineTaskOutput interface {
}

type MigrateMySqlAzureDbForMySqlOfflineTaskOutputDatabaseLevel

type MigrateMySqlAzureDbForMySqlOfflineTaskOutputDatabaseLevel struct {
	DatabaseName             *string                                    `json:"databaseName,omitempty"`
	EndedOn                  *string                                    `json:"endedOn,omitempty"`
	ErrorCount               *int64                                     `json:"errorCount,omitempty"`
	ErrorPrefix              *string                                    `json:"errorPrefix,omitempty"`
	ExceptionsAndWarnings    *[]ReportableException                     `json:"exceptionsAndWarnings,omitempty"`
	LastStorageUpdate        *string                                    `json:"lastStorageUpdate,omitempty"`
	Message                  *string                                    `json:"message,omitempty"`
	NumberOfObjects          *int64                                     `json:"numberOfObjects,omitempty"`
	NumberOfObjectsCompleted *int64                                     `json:"numberOfObjectsCompleted,omitempty"`
	ObjectSummary            *map[string]DataItemMigrationSummaryResult `json:"objectSummary,omitempty"`
	ResultPrefix             *string                                    `json:"resultPrefix,omitempty"`
	Stage                    *DatabaseMigrationStage                    `json:"stage,omitempty"`
	StartedOn                *string                                    `json:"startedOn,omitempty"`
	State                    *MigrationState                            `json:"state,omitempty"`
	StatusMessage            *string                                    `json:"statusMessage,omitempty"`

	// Fields inherited from MigrateMySqlAzureDbForMySqlOfflineTaskOutput
	Id *string `json:"id,omitempty"`
}

func (MigrateMySqlAzureDbForMySqlOfflineTaskOutputDatabaseLevel) MarshalJSON

type MigrateMySqlAzureDbForMySqlOfflineTaskOutputError

type MigrateMySqlAzureDbForMySqlOfflineTaskOutputError struct {
	Error *ReportableException `json:"error,omitempty"`

	// Fields inherited from MigrateMySqlAzureDbForMySqlOfflineTaskOutput
	Id *string `json:"id,omitempty"`
}

func (MigrateMySqlAzureDbForMySqlOfflineTaskOutputError) MarshalJSON

type MigrateMySqlAzureDbForMySqlOfflineTaskOutputMigrationLevel

type MigrateMySqlAzureDbForMySqlOfflineTaskOutputMigrationLevel struct {
	DatabaseSummary          *map[string]DatabaseSummaryResult `json:"databaseSummary,omitempty"`
	Databases                *map[string]string                `json:"databases,omitempty"`
	DurationInSeconds        *int64                            `json:"durationInSeconds,omitempty"`
	EndedOn                  *string                           `json:"endedOn,omitempty"`
	ExceptionsAndWarnings    *[]ReportableException            `json:"exceptionsAndWarnings,omitempty"`
	LastStorageUpdate        *string                           `json:"lastStorageUpdate,omitempty"`
	Message                  *string                           `json:"message,omitempty"`
	MigrationReportResult    *MigrationReportResult            `json:"migrationReportResult,omitempty"`
	SourceServerBrandVersion *string                           `json:"sourceServerBrandVersion,omitempty"`
	SourceServerVersion      *string                           `json:"sourceServerVersion,omitempty"`
	StartedOn                *string                           `json:"startedOn,omitempty"`
	Status                   *MigrationStatus                  `json:"status,omitempty"`
	StatusMessage            *string                           `json:"statusMessage,omitempty"`
	TargetServerBrandVersion *string                           `json:"targetServerBrandVersion,omitempty"`
	TargetServerVersion      *string                           `json:"targetServerVersion,omitempty"`

	// Fields inherited from MigrateMySqlAzureDbForMySqlOfflineTaskOutput
	Id *string `json:"id,omitempty"`
}

func (MigrateMySqlAzureDbForMySqlOfflineTaskOutputMigrationLevel) MarshalJSON

type MigrateMySqlAzureDbForMySqlOfflineTaskOutputTableLevel

type MigrateMySqlAzureDbForMySqlOfflineTaskOutputTableLevel struct {
	EndedOn             *string         `json:"endedOn,omitempty"`
	ErrorPrefix         *string         `json:"errorPrefix,omitempty"`
	ItemsCompletedCount *int64          `json:"itemsCompletedCount,omitempty"`
	ItemsCount          *int64          `json:"itemsCount,omitempty"`
	LastStorageUpdate   *string         `json:"lastStorageUpdate,omitempty"`
	ObjectName          *string         `json:"objectName,omitempty"`
	ResultPrefix        *string         `json:"resultPrefix,omitempty"`
	StartedOn           *string         `json:"startedOn,omitempty"`
	State               *MigrationState `json:"state,omitempty"`
	StatusMessage       *string         `json:"statusMessage,omitempty"`

	// Fields inherited from MigrateMySqlAzureDbForMySqlOfflineTaskOutput
	Id *string `json:"id,omitempty"`
}

func (MigrateMySqlAzureDbForMySqlOfflineTaskOutputTableLevel) MarshalJSON

type MigrateMySqlAzureDbForMySqlOfflineTasksClient

type MigrateMySqlAzureDbForMySqlOfflineTasksClient struct {
	Client *resourcemanager.Client
}

func NewMigrateMySqlAzureDbForMySqlOfflineTasksClientWithBaseURI

func NewMigrateMySqlAzureDbForMySqlOfflineTasksClientWithBaseURI(sdkApi sdkEnv.Api) (*MigrateMySqlAzureDbForMySqlOfflineTasksClient, error)

type MigrationReportResult

type MigrationReportResult struct {
	Id        *string `json:"id,omitempty"`
	ReportUrl *string `json:"reportUrl,omitempty"`
}

type MigrationState

type MigrationState string
const (
	MigrationStateCompleted  MigrationState = "Completed"
	MigrationStateFailed     MigrationState = "Failed"
	MigrationStateInProgress MigrationState = "InProgress"
	MigrationStateNone       MigrationState = "None"
	MigrationStateSkipped    MigrationState = "Skipped"
	MigrationStateStopped    MigrationState = "Stopped"
	MigrationStateWarning    MigrationState = "Warning"
)

func (*MigrationState) UnmarshalJSON

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

type MigrationStatus

type MigrationStatus string
const (
	MigrationStatusCompleted               MigrationStatus = "Completed"
	MigrationStatusCompletedWithWarnings   MigrationStatus = "CompletedWithWarnings"
	MigrationStatusConfigured              MigrationStatus = "Configured"
	MigrationStatusConnecting              MigrationStatus = "Connecting"
	MigrationStatusDefault                 MigrationStatus = "Default"
	MigrationStatusError                   MigrationStatus = "Error"
	MigrationStatusRunning                 MigrationStatus = "Running"
	MigrationStatusSelectLogins            MigrationStatus = "SelectLogins"
	MigrationStatusSourceAndTargetSelected MigrationStatus = "SourceAndTargetSelected"
	MigrationStatusStopped                 MigrationStatus = "Stopped"
)

func (*MigrationStatus) UnmarshalJSON

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

type MySqlConnectionInfo

type MySqlConnectionInfo struct {
	EncryptConnection *bool  `json:"encryptConnection,omitempty"`
	Port              int64  `json:"port"`
	ServerName        string `json:"serverName"`

	// Fields inherited from ConnectionInfo
	Password *string `json:"password,omitempty"`
	UserName *string `json:"userName,omitempty"`
}

func (MySqlConnectionInfo) MarshalJSON

func (s MySqlConnectionInfo) MarshalJSON() ([]byte, error)

type RawConnectionInfoImpl

type RawConnectionInfoImpl struct {
	Type   string
	Values map[string]interface{}
}

RawConnectionInfoImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

type RawMigrateMySqlAzureDbForMySqlOfflineTaskOutputImpl

type RawMigrateMySqlAzureDbForMySqlOfflineTaskOutputImpl struct {
	Type   string
	Values map[string]interface{}
}

RawMigrateMySqlAzureDbForMySqlOfflineTaskOutputImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

type ReportableException

type ReportableException struct {
	ActionableMessage *string `json:"actionableMessage,omitempty"`
	FilePath          *string `json:"filePath,omitempty"`
	HResult           *int64  `json:"hResult,omitempty"`
	LineNumber        *string `json:"lineNumber,omitempty"`
	Message           *string `json:"message,omitempty"`
	StackTrace        *string `json:"stackTrace,omitempty"`
}

Jump to

Keyboard shortcuts

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