migratesqlserversqldbtasks

package
v0.20240223.1145617 Latest Latest
Warning

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

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

README

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

The migratesqlserversqldbtasks 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/migratesqlserversqldbtasks"

Client Initialization

client := migratesqlserversqldbtasks.NewMigrateSqlServerSqlDbTasksClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAuthenticationType

func PossibleValuesForAuthenticationType() []string

func PossibleValuesForDatabaseMigrationStage

func PossibleValuesForDatabaseMigrationStage() []string

func PossibleValuesForMigrationState

func PossibleValuesForMigrationState() []string

func PossibleValuesForMigrationStatus

func PossibleValuesForMigrationStatus() []string

func PossibleValuesForObjectType

func PossibleValuesForObjectType() []string

func PossibleValuesForSeverity

func PossibleValuesForSeverity() []string

func PossibleValuesForSqlSourcePlatform

func PossibleValuesForSqlSourcePlatform() []string

func PossibleValuesForUpdateActionType

func PossibleValuesForUpdateActionType() []string

func PossibleValuesForValidationStatus

func PossibleValuesForValidationStatus() []string

Types

type AuthenticationType

type AuthenticationType string
const (
	AuthenticationTypeActiveDirectoryIntegrated AuthenticationType = "ActiveDirectoryIntegrated"
	AuthenticationTypeActiveDirectoryPassword   AuthenticationType = "ActiveDirectoryPassword"
	AuthenticationTypeNone                      AuthenticationType = "None"
	AuthenticationTypeSqlAuthentication         AuthenticationType = "SqlAuthentication"
	AuthenticationTypeWindowsAuthentication     AuthenticationType = "WindowsAuthentication"
)

func (*AuthenticationType) UnmarshalJSON

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

type ConnectionInfo

type ConnectionInfo interface {
}

type DataIntegrityValidationResult

type DataIntegrityValidationResult struct {
	FailedObjects    *map[string]string `json:"failedObjects,omitempty"`
	ValidationErrors *ValidationError   `json:"validationErrors,omitempty"`
}

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 ExecutionStatistics

type ExecutionStatistics struct {
	CpuTimeMs      *float64                   `json:"cpuTimeMs,omitempty"`
	ElapsedTimeMs  *float64                   `json:"elapsedTimeMs,omitempty"`
	ExecutionCount *int64                     `json:"executionCount,omitempty"`
	HasErrors      *bool                      `json:"hasErrors,omitempty"`
	SqlErrors      *[]string                  `json:"sqlErrors,omitempty"`
	WaitStats      *map[string]WaitStatistics `json:"waitStats,omitempty"`
}

type MigrateSqlServerSqlDbTaskOutput

type MigrateSqlServerSqlDbTaskOutput interface {
}

type MigrateSqlServerSqlDbTaskOutputDatabaseLevel

type MigrateSqlServerSqlDbTaskOutputDatabaseLevel 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"`
	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 MigrateSqlServerSqlDbTaskOutput
	Id *string `json:"id,omitempty"`
}

func (MigrateSqlServerSqlDbTaskOutputDatabaseLevel) MarshalJSON

type MigrateSqlServerSqlDbTaskOutputDatabaseLevelValidationResult

type MigrateSqlServerSqlDbTaskOutputDatabaseLevelValidationResult struct {
	DataIntegrityValidationResult *DataIntegrityValidationResult    `json:"dataIntegrityValidationResult,omitempty"`
	EndedOn                       *string                           `json:"endedOn,omitempty"`
	MigrationId                   *string                           `json:"migrationId,omitempty"`
	QueryAnalysisValidationResult *QueryAnalysisValidationResult    `json:"queryAnalysisValidationResult,omitempty"`
	SchemaValidationResult        *SchemaComparisonValidationResult `json:"schemaValidationResult,omitempty"`
	SourceDatabaseName            *string                           `json:"sourceDatabaseName,omitempty"`
	StartedOn                     *string                           `json:"startedOn,omitempty"`
	Status                        *ValidationStatus                 `json:"status,omitempty"`
	TargetDatabaseName            *string                           `json:"targetDatabaseName,omitempty"`

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

func (MigrateSqlServerSqlDbTaskOutputDatabaseLevelValidationResult) MarshalJSON

type MigrateSqlServerSqlDbTaskOutputError

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

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

func (MigrateSqlServerSqlDbTaskOutputError) MarshalJSON

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

type MigrateSqlServerSqlDbTaskOutputMigrationLevel

type MigrateSqlServerSqlDbTaskOutputMigrationLevel 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"`
	Message                   *string                           `json:"message,omitempty"`
	MigrationReportResult     *MigrationReportResult            `json:"migrationReportResult,omitempty"`
	MigrationValidationResult *MigrationValidationResult        `json:"migrationValidationResult,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 MigrateSqlServerSqlDbTaskOutput
	Id *string `json:"id,omitempty"`
}

func (MigrateSqlServerSqlDbTaskOutputMigrationLevel) MarshalJSON

type MigrateSqlServerSqlDbTaskOutputTableLevel

type MigrateSqlServerSqlDbTaskOutputTableLevel struct {
	EndedOn             *string         `json:"endedOn,omitempty"`
	ErrorPrefix         *string         `json:"errorPrefix,omitempty"`
	ItemsCompletedCount *int64          `json:"itemsCompletedCount,omitempty"`
	ItemsCount          *int64          `json:"itemsCount,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 MigrateSqlServerSqlDbTaskOutput
	Id *string `json:"id,omitempty"`
}

func (MigrateSqlServerSqlDbTaskOutputTableLevel) MarshalJSON

type MigrateSqlServerSqlDbTaskOutputValidationResult

type MigrateSqlServerSqlDbTaskOutputValidationResult struct {
	MigrationId    *string                                              `json:"migrationId,omitempty"`
	Status         *ValidationStatus                                    `json:"status,omitempty"`
	SummaryResults *map[string]MigrationValidationDatabaseSummaryResult `json:"summaryResults,omitempty"`

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

func (MigrateSqlServerSqlDbTaskOutputValidationResult) MarshalJSON

type MigrateSqlServerSqlDbTasksClient

type MigrateSqlServerSqlDbTasksClient struct {
	Client *resourcemanager.Client
}

func NewMigrateSqlServerSqlDbTasksClientWithBaseURI

func NewMigrateSqlServerSqlDbTasksClientWithBaseURI(sdkApi sdkEnv.Api) (*MigrateSqlServerSqlDbTasksClient, 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 MigrationValidationDatabaseSummaryResult

type MigrationValidationDatabaseSummaryResult struct {
	EndedOn            *string           `json:"endedOn,omitempty"`
	Id                 *string           `json:"id,omitempty"`
	MigrationId        *string           `json:"migrationId,omitempty"`
	SourceDatabaseName *string           `json:"sourceDatabaseName,omitempty"`
	StartedOn          *string           `json:"startedOn,omitempty"`
	Status             *ValidationStatus `json:"status,omitempty"`
	TargetDatabaseName *string           `json:"targetDatabaseName,omitempty"`
}

func (*MigrationValidationDatabaseSummaryResult) GetEndedOnAsTime

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

func (*MigrationValidationDatabaseSummaryResult) GetStartedOnAsTime

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

func (*MigrationValidationDatabaseSummaryResult) SetEndedOnAsTime

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

func (*MigrationValidationDatabaseSummaryResult) SetStartedOnAsTime

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

type MigrationValidationResult

type MigrationValidationResult struct {
	Id             *string                                              `json:"id,omitempty"`
	MigrationId    *string                                              `json:"migrationId,omitempty"`
	Status         *ValidationStatus                                    `json:"status,omitempty"`
	SummaryResults *map[string]MigrationValidationDatabaseSummaryResult `json:"summaryResults,omitempty"`
}

type ObjectType

type ObjectType string
const (
	ObjectTypeFunction         ObjectType = "Function"
	ObjectTypeStoredProcedures ObjectType = "StoredProcedures"
	ObjectTypeTable            ObjectType = "Table"
	ObjectTypeUser             ObjectType = "User"
	ObjectTypeView             ObjectType = "View"
)

func (*ObjectType) UnmarshalJSON

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

type QueryAnalysisValidationResult

type QueryAnalysisValidationResult struct {
	QueryResults     *QueryExecutionResult `json:"queryResults,omitempty"`
	ValidationErrors *ValidationError      `json:"validationErrors,omitempty"`
}

type QueryExecutionResult

type QueryExecutionResult struct {
	QueryText         *string              `json:"queryText,omitempty"`
	SourceResult      *ExecutionStatistics `json:"sourceResult,omitempty"`
	StatementsInBatch *int64               `json:"statementsInBatch,omitempty"`
	TargetResult      *ExecutionStatistics `json:"targetResult,omitempty"`
}

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 RawMigrateSqlServerSqlDbTaskOutputImpl

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

RawMigrateSqlServerSqlDbTaskOutputImpl 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"`
}

type SchemaComparisonValidationResult

type SchemaComparisonValidationResult struct {
	SchemaDifferences         *SchemaComparisonValidationResultType `json:"schemaDifferences,omitempty"`
	SourceDatabaseObjectCount *map[string]int64                     `json:"sourceDatabaseObjectCount,omitempty"`
	TargetDatabaseObjectCount *map[string]int64                     `json:"targetDatabaseObjectCount,omitempty"`
	ValidationErrors          *ValidationError                      `json:"validationErrors,omitempty"`
}

type SchemaComparisonValidationResultType

type SchemaComparisonValidationResultType struct {
	ObjectName   *string           `json:"objectName,omitempty"`
	ObjectType   *ObjectType       `json:"objectType,omitempty"`
	UpdateAction *UpdateActionType `json:"updateAction,omitempty"`
}

type Severity

type Severity string
const (
	SeverityError   Severity = "Error"
	SeverityMessage Severity = "Message"
	SeverityWarning Severity = "Warning"
)

func (*Severity) UnmarshalJSON

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

type SqlConnectionInfo

type SqlConnectionInfo struct {
	AdditionalSettings     *string             `json:"additionalSettings,omitempty"`
	Authentication         *AuthenticationType `json:"authentication,omitempty"`
	DataSource             string              `json:"dataSource"`
	EncryptConnection      *bool               `json:"encryptConnection,omitempty"`
	Platform               *SqlSourcePlatform  `json:"platform,omitempty"`
	TrustServerCertificate *bool               `json:"trustServerCertificate,omitempty"`

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

func (SqlConnectionInfo) MarshalJSON

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

type SqlSourcePlatform

type SqlSourcePlatform string
const (
	SqlSourcePlatformSqlOnPrem SqlSourcePlatform = "SqlOnPrem"
)

func (*SqlSourcePlatform) UnmarshalJSON

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

type UpdateActionType

type UpdateActionType string
const (
	UpdateActionTypeAddedOnTarget   UpdateActionType = "AddedOnTarget"
	UpdateActionTypeChangedOnTarget UpdateActionType = "ChangedOnTarget"
	UpdateActionTypeDeletedOnTarget UpdateActionType = "DeletedOnTarget"
)

func (*UpdateActionType) UnmarshalJSON

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

type ValidationError

type ValidationError struct {
	Severity *Severity `json:"severity,omitempty"`
	Text     *string   `json:"text,omitempty"`
}

type ValidationStatus

type ValidationStatus string
const (
	ValidationStatusCompleted           ValidationStatus = "Completed"
	ValidationStatusCompletedWithIssues ValidationStatus = "CompletedWithIssues"
	ValidationStatusDefault             ValidationStatus = "Default"
	ValidationStatusFailed              ValidationStatus = "Failed"
	ValidationStatusInProgress          ValidationStatus = "InProgress"
	ValidationStatusInitialized         ValidationStatus = "Initialized"
	ValidationStatusNotStarted          ValidationStatus = "NotStarted"
	ValidationStatusStopped             ValidationStatus = "Stopped"
)

func (*ValidationStatus) UnmarshalJSON

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

type WaitStatistics

type WaitStatistics struct {
	WaitCount  *int64   `json:"waitCount,omitempty"`
	WaitTimeMs *float64 `json:"waitTimeMs,omitempty"`
	WaitType   *string  `json:"waitType,omitempty"`
}

Jump to

Keyboard shortcuts

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