migratesqlserversqlmisynctasks

package
v0.20240403.1161138 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := migratesqlserversqlmisynctasks.NewMigrateSqlServerSqlMiSyncTasksClientWithBaseURI("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 PossibleValuesForBackupFileStatus

func PossibleValuesForBackupFileStatus() []string

func PossibleValuesForBackupType

func PossibleValuesForBackupType() []string

func PossibleValuesForDatabaseMigrationState

func PossibleValuesForDatabaseMigrationState() []string

func PossibleValuesForMigrationState

func PossibleValuesForMigrationState() []string

func PossibleValuesForSqlSourcePlatform

func PossibleValuesForSqlSourcePlatform() []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 BackupFileInfo

type BackupFileInfo struct {
	FamilySequenceNumber *int64            `json:"familySequenceNumber,omitempty"`
	FileLocation         *string           `json:"fileLocation,omitempty"`
	Status               *BackupFileStatus `json:"status,omitempty"`
}

type BackupFileStatus

type BackupFileStatus string
const (
	BackupFileStatusArrived   BackupFileStatus = "Arrived"
	BackupFileStatusCancelled BackupFileStatus = "Cancelled"
	BackupFileStatusQueued    BackupFileStatus = "Queued"
	BackupFileStatusRestored  BackupFileStatus = "Restored"
	BackupFileStatusRestoring BackupFileStatus = "Restoring"
	BackupFileStatusUploaded  BackupFileStatus = "Uploaded"
	BackupFileStatusUploading BackupFileStatus = "Uploading"
)

func (*BackupFileStatus) UnmarshalJSON

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

type BackupSetInfo

type BackupSetInfo struct {
	BackupFinishedDate *string           `json:"backupFinishedDate,omitempty"`
	BackupSetId        *string           `json:"backupSetId,omitempty"`
	BackupStartDate    *string           `json:"backupStartDate,omitempty"`
	BackupType         *BackupType       `json:"backupType,omitempty"`
	DatabaseName       *string           `json:"databaseName,omitempty"`
	FirstLsn           *string           `json:"firstLsn,omitempty"`
	IsBackupRestored   *bool             `json:"isBackupRestored,omitempty"`
	LastLsn            *string           `json:"lastLsn,omitempty"`
	LastModifiedTime   *string           `json:"lastModifiedTime,omitempty"`
	ListOfBackupFiles  *[]BackupFileInfo `json:"listOfBackupFiles,omitempty"`
}

func (*BackupSetInfo) GetBackupFinishedDateAsTime

func (o *BackupSetInfo) GetBackupFinishedDateAsTime() (*time.Time, error)

func (*BackupSetInfo) GetBackupStartDateAsTime

func (o *BackupSetInfo) GetBackupStartDateAsTime() (*time.Time, error)

func (*BackupSetInfo) GetLastModifiedTimeAsTime

func (o *BackupSetInfo) GetLastModifiedTimeAsTime() (*time.Time, error)

func (*BackupSetInfo) SetBackupFinishedDateAsTime

func (o *BackupSetInfo) SetBackupFinishedDateAsTime(input time.Time)

func (*BackupSetInfo) SetBackupStartDateAsTime

func (o *BackupSetInfo) SetBackupStartDateAsTime(input time.Time)

func (*BackupSetInfo) SetLastModifiedTimeAsTime

func (o *BackupSetInfo) SetLastModifiedTimeAsTime(input time.Time)

type BackupType

type BackupType string
const (
	BackupTypeDatabase             BackupType = "Database"
	BackupTypeDifferentialDatabase BackupType = "DifferentialDatabase"
	BackupTypeDifferentialFile     BackupType = "DifferentialFile"
	BackupTypeDifferentialPartial  BackupType = "DifferentialPartial"
	BackupTypeFile                 BackupType = "File"
	BackupTypePartial              BackupType = "Partial"
	BackupTypeTransactionLog       BackupType = "TransactionLog"
)

func (*BackupType) UnmarshalJSON

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

type ConnectionInfo

type ConnectionInfo interface {
}

type DatabaseMigrationState

type DatabaseMigrationState string
const (
	DatabaseMigrationStateCANCELLED             DatabaseMigrationState = "CANCELLED"
	DatabaseMigrationStateCOMPLETED             DatabaseMigrationState = "COMPLETED"
	DatabaseMigrationStateCUTOVERSTART          DatabaseMigrationState = "CUTOVER_START"
	DatabaseMigrationStateFAILED                DatabaseMigrationState = "FAILED"
	DatabaseMigrationStateFULLBACKUPUPLOADSTART DatabaseMigrationState = "FULL_BACKUP_UPLOAD_START"
	DatabaseMigrationStateINITIAL               DatabaseMigrationState = "INITIAL"
	DatabaseMigrationStateLOGSHIPPINGSTART      DatabaseMigrationState = "LOG_SHIPPING_START"
	DatabaseMigrationStatePOSTCUTOVERCOMPLETE   DatabaseMigrationState = "POST_CUTOVER_COMPLETE"
	DatabaseMigrationStateUNDEFINED             DatabaseMigrationState = "UNDEFINED"
	DatabaseMigrationStateUPLOADLOGFILESSTART   DatabaseMigrationState = "UPLOAD_LOG_FILES_START"
)

func (*DatabaseMigrationState) UnmarshalJSON

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

type MiSqlConnectionInfo

type MiSqlConnectionInfo struct {
	ManagedInstanceResourceId string `json:"managedInstanceResourceId"`

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

func (MiSqlConnectionInfo) MarshalJSON

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

type MigrateSqlServerSqlMISyncTaskOutput

type MigrateSqlServerSqlMISyncTaskOutput interface {
}

type MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel

type MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel struct {
	ActiveBackupSets          *[]BackupSetInfo        `json:"activeBackupSets,omitempty"`
	ContainerName             *string                 `json:"containerName,omitempty"`
	EndedOn                   *string                 `json:"endedOn,omitempty"`
	ErrorPrefix               *string                 `json:"errorPrefix,omitempty"`
	ExceptionsAndWarnings     *[]ReportableException  `json:"exceptionsAndWarnings,omitempty"`
	FullBackupSetInfo         *BackupSetInfo          `json:"fullBackupSetInfo,omitempty"`
	IsFullBackupRestored      *bool                   `json:"isFullBackupRestored,omitempty"`
	LastRestoredBackupSetInfo *BackupSetInfo          `json:"lastRestoredBackupSetInfo,omitempty"`
	MigrationState            *DatabaseMigrationState `json:"migrationState,omitempty"`
	SourceDatabaseName        *string                 `json:"sourceDatabaseName,omitempty"`
	StartedOn                 *string                 `json:"startedOn,omitempty"`

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

func (MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel) MarshalJSON

type MigrateSqlServerSqlMISyncTaskOutputError

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

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

func (MigrateSqlServerSqlMISyncTaskOutputError) MarshalJSON

type MigrateSqlServerSqlMISyncTaskOutputMigrationLevel

type MigrateSqlServerSqlMISyncTaskOutputMigrationLevel struct {
	DatabaseCount            *int64          `json:"databaseCount,omitempty"`
	DatabaseErrorCount       *int64          `json:"databaseErrorCount,omitempty"`
	EndedOn                  *string         `json:"endedOn,omitempty"`
	SourceServerBrandVersion *string         `json:"sourceServerBrandVersion,omitempty"`
	SourceServerName         *string         `json:"sourceServerName,omitempty"`
	SourceServerVersion      *string         `json:"sourceServerVersion,omitempty"`
	StartedOn                *string         `json:"startedOn,omitempty"`
	State                    *MigrationState `json:"state,omitempty"`
	TargetServerBrandVersion *string         `json:"targetServerBrandVersion,omitempty"`
	TargetServerName         *string         `json:"targetServerName,omitempty"`
	TargetServerVersion      *string         `json:"targetServerVersion,omitempty"`

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

func (MigrateSqlServerSqlMISyncTaskOutputMigrationLevel) MarshalJSON

type MigrateSqlServerSqlMiSyncTasksClient

type MigrateSqlServerSqlMiSyncTasksClient struct {
	Client *resourcemanager.Client
}

func NewMigrateSqlServerSqlMiSyncTasksClientWithBaseURI

func NewMigrateSqlServerSqlMiSyncTasksClientWithBaseURI(sdkApi sdkEnv.Api) (*MigrateSqlServerSqlMiSyncTasksClient, 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 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 RawMigrateSqlServerSqlMISyncTaskOutputImpl

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

RawMigrateSqlServerSqlMISyncTaskOutputImpl 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 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

Jump to

Keyboard shortcuts

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