migratepostgresqlazuredbforpostgresqlsynctasks

package
v0.20240422.1195251 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := migratepostgresqlazuredbforpostgresqlsynctasks.NewMigratePostgreSqlAzureDbForPostgreSqlSyncTasksClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForReplicateMigrationState

func PossibleValuesForReplicateMigrationState() []string

func PossibleValuesForScenarioSource

func PossibleValuesForScenarioSource() []string

func PossibleValuesForScenarioTarget

func PossibleValuesForScenarioTarget() []string

func PossibleValuesForSyncDatabaseMigrationReportingState

func PossibleValuesForSyncDatabaseMigrationReportingState() []string

func PossibleValuesForSyncTableMigrationState

func PossibleValuesForSyncTableMigrationState() []string

Types

type ConnectionInfo

type ConnectionInfo interface {
}

type MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput

type MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput interface {
}

type MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError

type MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError struct {
	ErrorMessage *string                            `json:"errorMessage,omitempty"`
	Events       *[]SyncMigrationDatabaseErrorEvent `json:"events,omitempty"`

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

func (MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError) MarshalJSON

type MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel

type MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel struct {
	AppliedChanges          *int64                               `json:"appliedChanges,omitempty"`
	CdcDeleteCounter        *int64                               `json:"cdcDeleteCounter,omitempty"`
	CdcInsertCounter        *int64                               `json:"cdcInsertCounter,omitempty"`
	CdcUpdateCounter        *int64                               `json:"cdcUpdateCounter,omitempty"`
	DatabaseName            *string                              `json:"databaseName,omitempty"`
	EndedOn                 *string                              `json:"endedOn,omitempty"`
	FullLoadCompletedTables *int64                               `json:"fullLoadCompletedTables,omitempty"`
	FullLoadErroredTables   *int64                               `json:"fullLoadErroredTables,omitempty"`
	FullLoadLoadingTables   *int64                               `json:"fullLoadLoadingTables,omitempty"`
	FullLoadQueuedTables    *int64                               `json:"fullLoadQueuedTables,omitempty"`
	IncomingChanges         *int64                               `json:"incomingChanges,omitempty"`
	InitializationCompleted *bool                                `json:"initializationCompleted,omitempty"`
	Latency                 *int64                               `json:"latency,omitempty"`
	MigrationState          *SyncDatabaseMigrationReportingState `json:"migrationState,omitempty"`
	StartedOn               *string                              `json:"startedOn,omitempty"`

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

func (MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel) MarshalJSON

type MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError

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

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

func (MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError) MarshalJSON

type MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel

type MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel struct {
	EndedOn             *string                  `json:"endedOn,omitempty"`
	SourceServer        *string                  `json:"sourceServer,omitempty"`
	SourceServerType    *ScenarioSource          `json:"sourceServerType,omitempty"`
	SourceServerVersion *string                  `json:"sourceServerVersion,omitempty"`
	StartedOn           *string                  `json:"startedOn,omitempty"`
	State               *ReplicateMigrationState `json:"state,omitempty"`
	TargetServer        *string                  `json:"targetServer,omitempty"`
	TargetServerType    *ScenarioTarget          `json:"targetServerType,omitempty"`
	TargetServerVersion *string                  `json:"targetServerVersion,omitempty"`

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

func (MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel) MarshalJSON

type MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel

type MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel struct {
	CdcDeleteCounter      *int64                   `json:"cdcDeleteCounter,omitempty"`
	CdcInsertCounter      *int64                   `json:"cdcInsertCounter,omitempty"`
	CdcUpdateCounter      *int64                   `json:"cdcUpdateCounter,omitempty"`
	DataErrorsCounter     *int64                   `json:"dataErrorsCounter,omitempty"`
	DatabaseName          *string                  `json:"databaseName,omitempty"`
	FullLoadEndedOn       *string                  `json:"fullLoadEndedOn,omitempty"`
	FullLoadEstFinishTime *string                  `json:"fullLoadEstFinishTime,omitempty"`
	FullLoadStartedOn     *string                  `json:"fullLoadStartedOn,omitempty"`
	FullLoadTotalRows     *int64                   `json:"fullLoadTotalRows,omitempty"`
	LastModifiedTime      *string                  `json:"lastModifiedTime,omitempty"`
	State                 *SyncTableMigrationState `json:"state,omitempty"`
	TableName             *string                  `json:"tableName,omitempty"`
	TotalChangesApplied   *int64                   `json:"totalChangesApplied,omitempty"`

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

func (MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel) MarshalJSON

type MigratePostgreSqlAzureDbForPostgreSqlSyncTasksClient

type MigratePostgreSqlAzureDbForPostgreSqlSyncTasksClient struct {
	Client *resourcemanager.Client
}

func NewMigratePostgreSqlAzureDbForPostgreSqlSyncTasksClientWithBaseURI

func NewMigratePostgreSqlAzureDbForPostgreSqlSyncTasksClientWithBaseURI(sdkApi sdkEnv.Api) (*MigratePostgreSqlAzureDbForPostgreSqlSyncTasksClient, error)

type PostgreSqlConnectionInfo

type PostgreSqlConnectionInfo struct {
	DatabaseName           *string `json:"databaseName,omitempty"`
	EncryptConnection      *bool   `json:"encryptConnection,omitempty"`
	Port                   int64   `json:"port"`
	ServerName             string  `json:"serverName"`
	TrustServerCertificate *bool   `json:"trustServerCertificate,omitempty"`

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

func (PostgreSqlConnectionInfo) MarshalJSON

func (s PostgreSqlConnectionInfo) 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 RawMigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputImpl

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

RawMigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputImpl 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 ReplicateMigrationState

type ReplicateMigrationState string
const (
	ReplicateMigrationStateACTIONREQUIRED ReplicateMigrationState = "ACTION_REQUIRED"
	ReplicateMigrationStateCOMPLETE       ReplicateMigrationState = "COMPLETE"
	ReplicateMigrationStateFAILED         ReplicateMigrationState = "FAILED"
	ReplicateMigrationStatePENDING        ReplicateMigrationState = "PENDING"
	ReplicateMigrationStateUNDEFINED      ReplicateMigrationState = "UNDEFINED"
	ReplicateMigrationStateVALIDATING     ReplicateMigrationState = "VALIDATING"
)

func (*ReplicateMigrationState) UnmarshalJSON

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

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 ScenarioSource

type ScenarioSource string
const (
	ScenarioSourceAccess        ScenarioSource = "Access"
	ScenarioSourceDBTwo         ScenarioSource = "DB2"
	ScenarioSourceMongoDB       ScenarioSource = "MongoDB"
	ScenarioSourceMySQL         ScenarioSource = "MySQL"
	ScenarioSourceMySQLRDS      ScenarioSource = "MySQLRDS"
	ScenarioSourceOracle        ScenarioSource = "Oracle"
	ScenarioSourcePostgreSQL    ScenarioSource = "PostgreSQL"
	ScenarioSourcePostgreSQLRDS ScenarioSource = "PostgreSQLRDS"
	ScenarioSourceSQL           ScenarioSource = "SQL"
	ScenarioSourceSQLRDS        ScenarioSource = "SQLRDS"
	ScenarioSourceSybase        ScenarioSource = "Sybase"
)

func (*ScenarioSource) UnmarshalJSON

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

type ScenarioTarget

type ScenarioTarget string
const (
	ScenarioTargetAzureDBForMySql       ScenarioTarget = "AzureDBForMySql"
	ScenarioTargetAzureDBForPostgresSQL ScenarioTarget = "AzureDBForPostgresSQL"
	ScenarioTargetMongoDB               ScenarioTarget = "MongoDB"
	ScenarioTargetSQLDB                 ScenarioTarget = "SQLDB"
	ScenarioTargetSQLDW                 ScenarioTarget = "SQLDW"
	ScenarioTargetSQLMI                 ScenarioTarget = "SQLMI"
	ScenarioTargetSQLServer             ScenarioTarget = "SQLServer"
)

func (*ScenarioTarget) UnmarshalJSON

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

type SyncDatabaseMigrationReportingState

type SyncDatabaseMigrationReportingState string
const (
	SyncDatabaseMigrationReportingStateBACKUPCOMPLETED    SyncDatabaseMigrationReportingState = "BACKUP_COMPLETED"
	SyncDatabaseMigrationReportingStateBACKUPINPROGRESS   SyncDatabaseMigrationReportingState = "BACKUP_IN_PROGRESS"
	SyncDatabaseMigrationReportingStateCANCELLED          SyncDatabaseMigrationReportingState = "CANCELLED"
	SyncDatabaseMigrationReportingStateCANCELLING         SyncDatabaseMigrationReportingState = "CANCELLING"
	SyncDatabaseMigrationReportingStateCOMPLETE           SyncDatabaseMigrationReportingState = "COMPLETE"
	SyncDatabaseMigrationReportingStateCOMPLETING         SyncDatabaseMigrationReportingState = "COMPLETING"
	SyncDatabaseMigrationReportingStateCONFIGURING        SyncDatabaseMigrationReportingState = "CONFIGURING"
	SyncDatabaseMigrationReportingStateFAILED             SyncDatabaseMigrationReportingState = "FAILED"
	SyncDatabaseMigrationReportingStateINITIALIAZING      SyncDatabaseMigrationReportingState = "INITIALIAZING"
	SyncDatabaseMigrationReportingStateREADYTOCOMPLETE    SyncDatabaseMigrationReportingState = "READY_TO_COMPLETE"
	SyncDatabaseMigrationReportingStateRESTORECOMPLETED   SyncDatabaseMigrationReportingState = "RESTORE_COMPLETED"
	SyncDatabaseMigrationReportingStateRESTOREINPROGRESS  SyncDatabaseMigrationReportingState = "RESTORE_IN_PROGRESS"
	SyncDatabaseMigrationReportingStateRUNNING            SyncDatabaseMigrationReportingState = "RUNNING"
	SyncDatabaseMigrationReportingStateSTARTING           SyncDatabaseMigrationReportingState = "STARTING"
	SyncDatabaseMigrationReportingStateUNDEFINED          SyncDatabaseMigrationReportingState = "UNDEFINED"
	SyncDatabaseMigrationReportingStateVALIDATING         SyncDatabaseMigrationReportingState = "VALIDATING"
	SyncDatabaseMigrationReportingStateVALIDATIONCOMPLETE SyncDatabaseMigrationReportingState = "VALIDATION_COMPLETE"
	SyncDatabaseMigrationReportingStateVALIDATIONFAILED   SyncDatabaseMigrationReportingState = "VALIDATION_FAILED"
)

func (*SyncDatabaseMigrationReportingState) UnmarshalJSON

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

type SyncMigrationDatabaseErrorEvent

type SyncMigrationDatabaseErrorEvent struct {
	EventText       *string `json:"eventText,omitempty"`
	EventTypeString *string `json:"eventTypeString,omitempty"`
	TimestampString *string `json:"timestampString,omitempty"`
}

type SyncTableMigrationState

type SyncTableMigrationState string
const (
	SyncTableMigrationStateBEFORELOAD SyncTableMigrationState = "BEFORE_LOAD"
	SyncTableMigrationStateCANCELED   SyncTableMigrationState = "CANCELED"
	SyncTableMigrationStateCOMPLETED  SyncTableMigrationState = "COMPLETED"
	SyncTableMigrationStateERROR      SyncTableMigrationState = "ERROR"
	SyncTableMigrationStateFAILED     SyncTableMigrationState = "FAILED"
	SyncTableMigrationStateFULLLOAD   SyncTableMigrationState = "FULL_LOAD"
)

func (*SyncTableMigrationState) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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