migrateschemasqlserversqldbtasks

package
v0.20240513.1085605 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

README

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

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

Client Initialization

client := migrateschemasqlserversqldbtasks.NewMigrateSchemaSqlServerSqlDbTasksClientWithBaseURI("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 PossibleValuesForCommandState

func PossibleValuesForCommandState() []string

func PossibleValuesForMigrationState

func PossibleValuesForMigrationState() []string

func PossibleValuesForSchemaMigrationOption

func PossibleValuesForSchemaMigrationOption() []string

func PossibleValuesForSchemaMigrationStage

func PossibleValuesForSchemaMigrationStage() []string

func PossibleValuesForSqlSourcePlatform

func PossibleValuesForSqlSourcePlatform() []string

func PossibleValuesForTaskState

func PossibleValuesForTaskState() []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 CommandProperties

type CommandProperties struct {
	CommandType string        `json:"commandType"`
	Errors      *[]ODataError `json:"errors,omitempty"`
	State       *CommandState `json:"state,omitempty"`
}

type CommandState

type CommandState string
const (
	CommandStateAccepted  CommandState = "Accepted"
	CommandStateFailed    CommandState = "Failed"
	CommandStateRunning   CommandState = "Running"
	CommandStateSucceeded CommandState = "Succeeded"
	CommandStateUnknown   CommandState = "Unknown"
)

func (*CommandState) UnmarshalJSON

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

type ConnectionInfo

type ConnectionInfo interface {
}

type MigrateSchemaSqlServerSqlDbDatabaseInput

type MigrateSchemaSqlServerSqlDbDatabaseInput struct {
	Name               *string                 `json:"name,omitempty"`
	SchemaSetting      *SchemaMigrationSetting `json:"schemaSetting,omitempty"`
	TargetDatabaseName *string                 `json:"targetDatabaseName,omitempty"`
}

type MigrateSchemaSqlServerSqlDbTaskInput

type MigrateSchemaSqlServerSqlDbTaskInput struct {
	SelectedDatabases    []MigrateSchemaSqlServerSqlDbDatabaseInput `json:"selectedDatabases"`
	SourceConnectionInfo SqlConnectionInfo                          `json:"sourceConnectionInfo"`
	TargetConnectionInfo SqlConnectionInfo                          `json:"targetConnectionInfo"`
}

type MigrateSchemaSqlServerSqlDbTaskOutput

type MigrateSchemaSqlServerSqlDbTaskOutput interface {
}

type MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel

type MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel struct {
	DatabaseErrorResultPrefix    *string               `json:"databaseErrorResultPrefix,omitempty"`
	DatabaseName                 *string               `json:"databaseName,omitempty"`
	EndedOn                      *string               `json:"endedOn,omitempty"`
	FileId                       *string               `json:"fileId,omitempty"`
	NumberOfFailedOperations     *int64                `json:"numberOfFailedOperations,omitempty"`
	NumberOfSuccessfulOperations *int64                `json:"numberOfSuccessfulOperations,omitempty"`
	SchemaErrorResultPrefix      *string               `json:"schemaErrorResultPrefix,omitempty"`
	Stage                        *SchemaMigrationStage `json:"stage,omitempty"`
	StartedOn                    *string               `json:"startedOn,omitempty"`
	State                        *MigrationState       `json:"state,omitempty"`

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

func (MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel) MarshalJSON

type MigrateSchemaSqlServerSqlDbTaskOutputError

type MigrateSchemaSqlServerSqlDbTaskOutputError struct {
	CommandText *string `json:"commandText,omitempty"`
	ErrorText   *string `json:"errorText,omitempty"`

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

func (MigrateSchemaSqlServerSqlDbTaskOutputError) MarshalJSON

type MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel

type MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel struct {
	EndedOn                  *string         `json:"endedOn,omitempty"`
	SourceServerBrandVersion *string         `json:"sourceServerBrandVersion,omitempty"`
	SourceServerVersion      *string         `json:"sourceServerVersion,omitempty"`
	StartedOn                *string         `json:"startedOn,omitempty"`
	State                    *MigrationState `json:"state,omitempty"`
	TargetServerBrandVersion *string         `json:"targetServerBrandVersion,omitempty"`
	TargetServerVersion      *string         `json:"targetServerVersion,omitempty"`

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

func (MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel) MarshalJSON

type MigrateSchemaSqlServerSqlDbTaskProperties

type MigrateSchemaSqlServerSqlDbTaskProperties struct {
	Input  *MigrateSchemaSqlServerSqlDbTaskInput    `json:"input,omitempty"`
	Output *[]MigrateSchemaSqlServerSqlDbTaskOutput `json:"output,omitempty"`

	// Fields inherited from ProjectTaskProperties
	ClientData *map[string]string   `json:"clientData,omitempty"`
	Commands   *[]CommandProperties `json:"commands,omitempty"`
	Errors     *[]ODataError        `json:"errors,omitempty"`
	State      *TaskState           `json:"state,omitempty"`
}

func (MigrateSchemaSqlServerSqlDbTaskProperties) MarshalJSON

func (*MigrateSchemaSqlServerSqlDbTaskProperties) UnmarshalJSON

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

type MigrateSchemaSqlServerSqlDbTasksClient

type MigrateSchemaSqlServerSqlDbTasksClient struct {
	Client *resourcemanager.Client
}

func NewMigrateSchemaSqlServerSqlDbTasksClientWithBaseURI

func NewMigrateSchemaSqlServerSqlDbTasksClientWithBaseURI(sdkApi sdkEnv.Api) (*MigrateSchemaSqlServerSqlDbTasksClient, error)

type MigrateSchemaSqlTaskOutputError

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

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

func (MigrateSchemaSqlTaskOutputError) MarshalJSON

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

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 ODataError

type ODataError struct {
	Code    *string       `json:"code,omitempty"`
	Details *[]ODataError `json:"details,omitempty"`
	Message *string       `json:"message,omitempty"`
}

type ProjectTaskProperties

type ProjectTaskProperties interface {
}

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 RawMigrateSchemaSqlServerSqlDbTaskOutputImpl

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

RawMigrateSchemaSqlServerSqlDbTaskOutputImpl 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 RawProjectTaskPropertiesImpl

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

RawProjectTaskPropertiesImpl 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 SchemaMigrationOption

type SchemaMigrationOption string
const (
	SchemaMigrationOptionExtractFromSource SchemaMigrationOption = "ExtractFromSource"
	SchemaMigrationOptionNone              SchemaMigrationOption = "None"
	SchemaMigrationOptionUseStorageFile    SchemaMigrationOption = "UseStorageFile"
)

func (*SchemaMigrationOption) UnmarshalJSON

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

type SchemaMigrationSetting

type SchemaMigrationSetting struct {
	FileId       *string                `json:"fileId,omitempty"`
	SchemaOption *SchemaMigrationOption `json:"schemaOption,omitempty"`
}

type SchemaMigrationStage

type SchemaMigrationStage string
const (
	SchemaMigrationStageCollectingObjects     SchemaMigrationStage = "CollectingObjects"
	SchemaMigrationStageCompleted             SchemaMigrationStage = "Completed"
	SchemaMigrationStageCompletedWithWarnings SchemaMigrationStage = "CompletedWithWarnings"
	SchemaMigrationStageDeployingSchema       SchemaMigrationStage = "DeployingSchema"
	SchemaMigrationStageDownloadingScript     SchemaMigrationStage = "DownloadingScript"
	SchemaMigrationStageFailed                SchemaMigrationStage = "Failed"
	SchemaMigrationStageGeneratingScript      SchemaMigrationStage = "GeneratingScript"
	SchemaMigrationStageNotStarted            SchemaMigrationStage = "NotStarted"
	SchemaMigrationStageUploadingScript       SchemaMigrationStage = "UploadingScript"
	SchemaMigrationStageValidatingInputs      SchemaMigrationStage = "ValidatingInputs"
)

func (*SchemaMigrationStage) UnmarshalJSON

func (s *SchemaMigrationStage) 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 TaskState

type TaskState string
const (
	TaskStateCanceled              TaskState = "Canceled"
	TaskStateFailed                TaskState = "Failed"
	TaskStateFailedInputValidation TaskState = "FailedInputValidation"
	TaskStateFaulted               TaskState = "Faulted"
	TaskStateQueued                TaskState = "Queued"
	TaskStateRunning               TaskState = "Running"
	TaskStateSucceeded             TaskState = "Succeeded"
	TaskStateUnknown               TaskState = "Unknown"
)

func (*TaskState) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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