armdatamigration

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 15 Imported by: 2

README

Azure Data Migration Module for Go

PkgGoDev

The armdatamigration module provides operations for working with Azure Data Migration.

Source code

Getting started

Prerequisites

  • an Azure subscription
  • Go 1.18 or above (You could download and install the latest version of Go from here. It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this doc.)

Install the package

This project uses Go modules for versioning and dependency management.

Install the Azure Data Migration module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration

Authorization

When creating a client, you will need to provide a credential for authenticating with Azure Data Migration. The azidentity module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more.

cred, err := azidentity.NewDefaultAzureCredential(nil)

For more information on authentication, please see the documentation for azidentity at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity.

Client Factory

Azure Data Migration module consists of one or more clients. We provide a client factory which could be used to create any client in this module.

clientFactory, err := armdatamigration.NewClientFactory(<subscription ID>, cred, nil)

You can use ClientOptions in package github.com/Azure/azure-sdk-for-go/sdk/azcore/arm to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for azcore at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore.

options := arm.ClientOptions {
    ClientOptions: azcore.ClientOptions {
        Cloud: cloud.AzureChina,
    },
}
clientFactory, err := armdatamigration.NewClientFactory(<subscription ID>, cred, &options)

Clients

A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory.

client := clientFactory.NewServicesClient()

Fakes

The fake package contains types used for constructing in-memory fake servers used in unit tests. This allows writing tests to cover various success/error conditions without the need for connecting to a live service.

Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes.

Provide Feedback

If you encounter bugs or have suggestions, please open an issue and assign the Data Migration label.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {
	// Error information in OData format
	Error *ODataError

	// READ-ONLY; Metadata pertaining to creation and last modification of the resource.
	SystemData *SystemData
}

APIError - Error information.

func (APIError) MarshalJSON added in v1.1.0

func (a APIError) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type APIError.

func (*APIError) UnmarshalJSON added in v1.1.0

func (a *APIError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type APIError.

type AuthenticationType

type AuthenticationType string

AuthenticationType - An enumeration of possible authentication types when connecting

const (
	AuthenticationTypeActiveDirectoryIntegrated AuthenticationType = "ActiveDirectoryIntegrated"
	AuthenticationTypeActiveDirectoryPassword   AuthenticationType = "ActiveDirectoryPassword"
	AuthenticationTypeNone                      AuthenticationType = "None"
	AuthenticationTypeSQLAuthentication         AuthenticationType = "SqlAuthentication"
	AuthenticationTypeWindowsAuthentication     AuthenticationType = "WindowsAuthentication"
)

func PossibleAuthenticationTypeValues

func PossibleAuthenticationTypeValues() []AuthenticationType

PossibleAuthenticationTypeValues returns the possible values for the AuthenticationType const type.

type AvailableServiceSKU

type AvailableServiceSKU struct {
	// A description of the scaling capacities of the SKU
	Capacity *AvailableServiceSKUCapacity

	// The resource type, including the provider namespace
	ResourceType *string

	// SKU name, tier, etc.
	SKU *AvailableServiceSKUSKU
}

AvailableServiceSKU - Describes the available service SKU.

func (AvailableServiceSKU) MarshalJSON added in v1.1.0

func (a AvailableServiceSKU) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AvailableServiceSKU.

func (*AvailableServiceSKU) UnmarshalJSON added in v1.1.0

func (a *AvailableServiceSKU) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AvailableServiceSKU.

type AvailableServiceSKUCapacity

type AvailableServiceSKUCapacity struct {
	// The default capacity
	Default *int32

	// The maximum capacity
	Maximum *int32

	// The minimum capacity, usually 0 or 1.
	Minimum *int32

	// The scalability approach
	ScaleType *ServiceScalability
}

AvailableServiceSKUCapacity - A description of the scaling capacities of the SKU

func (AvailableServiceSKUCapacity) MarshalJSON added in v1.1.0

func (a AvailableServiceSKUCapacity) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AvailableServiceSKUCapacity.

func (*AvailableServiceSKUCapacity) UnmarshalJSON added in v1.1.0

func (a *AvailableServiceSKUCapacity) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AvailableServiceSKUCapacity.

type AvailableServiceSKUSKU

type AvailableServiceSKUSKU struct {
	// SKU family
	Family *string

	// The name of the SKU
	Name *string

	// SKU size
	Size *string

	// The tier of the SKU, such as "Basic", "General Purpose", or "Business Critical"
	Tier *string
}

AvailableServiceSKUSKU - SKU name, tier, etc.

func (AvailableServiceSKUSKU) MarshalJSON added in v1.1.0

func (a AvailableServiceSKUSKU) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AvailableServiceSKUSKU.

func (*AvailableServiceSKUSKU) UnmarshalJSON added in v1.1.0

func (a *AvailableServiceSKUSKU) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AvailableServiceSKUSKU.

type AzureActiveDirectoryApp

type AzureActiveDirectoryApp struct {
	// REQUIRED; Key used to authenticate to the Azure Active Directory Application
	AppKey *string

	// REQUIRED; Application ID of the Azure Active Directory Application
	ApplicationID *string

	// REQUIRED; Tenant id of the customer
	TenantID *string
}

AzureActiveDirectoryApp - Azure Active Directory Application

func (AzureActiveDirectoryApp) MarshalJSON added in v1.1.0

func (a AzureActiveDirectoryApp) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureActiveDirectoryApp.

func (*AzureActiveDirectoryApp) UnmarshalJSON added in v1.1.0

func (a *AzureActiveDirectoryApp) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureActiveDirectoryApp.

type BackupFileInfo

type BackupFileInfo struct {
	// Sequence number of the backup file in the backup set
	FamilySequenceNumber *int32

	// Location of the backup file in shared folder
	FileLocation *string

	// Status of the backup file during migration
	Status *BackupFileStatus
}

BackupFileInfo - Information of the backup file

func (BackupFileInfo) MarshalJSON added in v1.1.0

func (b BackupFileInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type BackupFileInfo.

func (*BackupFileInfo) UnmarshalJSON added in v1.1.0

func (b *BackupFileInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type BackupFileInfo.

type BackupFileStatus

type BackupFileStatus string

BackupFileStatus - An enumeration of Status of the log backup file.

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

func PossibleBackupFileStatusValues

func PossibleBackupFileStatusValues() []BackupFileStatus

PossibleBackupFileStatusValues returns the possible values for the BackupFileStatus const type.

type BackupMode

type BackupMode string

BackupMode - An enumeration of backup modes

const (
	BackupModeCreateBackup   BackupMode = "CreateBackup"
	BackupModeExistingBackup BackupMode = "ExistingBackup"
)

func PossibleBackupModeValues

func PossibleBackupModeValues() []BackupMode

PossibleBackupModeValues returns the possible values for the BackupMode const type.

type BackupSetInfo

type BackupSetInfo struct {
	// Date and time that the backup operation finished
	BackupFinishedDate *time.Time

	// Id for the set of backup files
	BackupSetID *string

	// Date and time that the backup operation began
	BackupStartDate *time.Time

	// Enum of the different backup types
	BackupType *BackupType

	// Name of the database to which the backup set belongs
	DatabaseName *string

	// First log sequence number of the backup file
	FirstLsn *string

	// Whether the backup set is restored or not
	IsBackupRestored *bool

	// Last log sequence number of the backup file
	LastLsn *string

	// Last modified time of the backup file in share location
	LastModifiedTime *time.Time

	// List of files in the backup set
	ListOfBackupFiles []*BackupFileInfo
}

BackupSetInfo - Information of backup set

func (BackupSetInfo) MarshalJSON

func (b BackupSetInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type BackupSetInfo.

func (*BackupSetInfo) UnmarshalJSON

func (b *BackupSetInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type BackupSetInfo.

type BackupType

type BackupType string

BackupType - Enum of the different backup types.

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

func PossibleBackupTypeValues

func PossibleBackupTypeValues() []BackupType

PossibleBackupTypeValues returns the possible values for the BackupType const type.

type BlobShare

type BlobShare struct {
	// REQUIRED; SAS URI of Azure Storage Account Container.
	SasURI *string
}

BlobShare - Blob container storage information.

func (BlobShare) MarshalJSON added in v1.1.0

func (b BlobShare) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type BlobShare.

func (*BlobShare) UnmarshalJSON added in v1.1.0

func (b *BlobShare) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type BlobShare.

type CheckOCIDriverTaskInput

type CheckOCIDriverTaskInput struct {
	// Version of the source server to check against. Optional.
	ServerVersion *string
}

CheckOCIDriverTaskInput - Input for the service task to check for OCI drivers.

func (CheckOCIDriverTaskInput) MarshalJSON added in v1.1.0

func (c CheckOCIDriverTaskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CheckOCIDriverTaskInput.

func (*CheckOCIDriverTaskInput) UnmarshalJSON added in v1.1.0

func (c *CheckOCIDriverTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CheckOCIDriverTaskInput.

type CheckOCIDriverTaskOutput

type CheckOCIDriverTaskOutput struct {
	// Information about the installed driver if found and valid.
	InstalledDriver *OracleOCIDriverInfo

	// READ-ONLY; Validation errors
	ValidationErrors []*ReportableException
}

CheckOCIDriverTaskOutput - Output for the service task to check for OCI drivers.

func (CheckOCIDriverTaskOutput) MarshalJSON

func (c CheckOCIDriverTaskOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CheckOCIDriverTaskOutput.

func (*CheckOCIDriverTaskOutput) UnmarshalJSON added in v1.1.0

func (c *CheckOCIDriverTaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CheckOCIDriverTaskOutput.

type CheckOCIDriverTaskProperties

type CheckOCIDriverTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Input for the service task to check for OCI drivers.
	Input *CheckOCIDriverTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []*CheckOCIDriverTaskOutput

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

CheckOCIDriverTaskProperties - Properties for the task that checks for OCI drivers.

func (*CheckOCIDriverTaskProperties) GetProjectTaskProperties

func (c *CheckOCIDriverTaskProperties) GetProjectTaskProperties() *ProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type CheckOCIDriverTaskProperties.

func (CheckOCIDriverTaskProperties) MarshalJSON

func (c CheckOCIDriverTaskProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CheckOCIDriverTaskProperties.

func (*CheckOCIDriverTaskProperties) UnmarshalJSON

func (c *CheckOCIDriverTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CheckOCIDriverTaskProperties.

type ClientFactory added in v1.1.0

type ClientFactory struct {
	// contains filtered or unexported fields
}

ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.

func NewClientFactory added in v1.1.0

func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)

NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.

  • subscriptionID - Identifier of the subscription
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*ClientFactory) NewFilesClient added in v1.1.0

func (c *ClientFactory) NewFilesClient() *FilesClient

NewFilesClient creates a new instance of FilesClient.

func (*ClientFactory) NewOperationsClient added in v1.1.0

func (c *ClientFactory) NewOperationsClient() *OperationsClient

NewOperationsClient creates a new instance of OperationsClient.

func (*ClientFactory) NewProjectsClient added in v1.1.0

func (c *ClientFactory) NewProjectsClient() *ProjectsClient

NewProjectsClient creates a new instance of ProjectsClient.

func (*ClientFactory) NewResourceSKUsClient added in v1.1.0

func (c *ClientFactory) NewResourceSKUsClient() *ResourceSKUsClient

NewResourceSKUsClient creates a new instance of ResourceSKUsClient.

func (*ClientFactory) NewServiceTasksClient added in v1.1.0

func (c *ClientFactory) NewServiceTasksClient() *ServiceTasksClient

NewServiceTasksClient creates a new instance of ServiceTasksClient.

func (*ClientFactory) NewServicesClient added in v1.1.0

func (c *ClientFactory) NewServicesClient() *ServicesClient

NewServicesClient creates a new instance of ServicesClient.

func (*ClientFactory) NewTasksClient added in v1.1.0

func (c *ClientFactory) NewTasksClient() *TasksClient

NewTasksClient creates a new instance of TasksClient.

func (*ClientFactory) NewUsagesClient added in v1.1.0

func (c *ClientFactory) NewUsagesClient() *UsagesClient

NewUsagesClient creates a new instance of UsagesClient.

type CommandProperties

type CommandProperties struct {
	// REQUIRED; Command type.
	CommandType *string

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; The state of the command. This is ignored if submitted.
	State *CommandState
}

CommandProperties - Base class for all types of DMS command properties. If command is not supported by current client, this object is returned.

func (*CommandProperties) GetCommandProperties

func (c *CommandProperties) GetCommandProperties() *CommandProperties

GetCommandProperties implements the CommandPropertiesClassification interface for type CommandProperties.

func (CommandProperties) MarshalJSON

func (c CommandProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CommandProperties.

func (*CommandProperties) UnmarshalJSON added in v1.1.0

func (c *CommandProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CommandProperties.

type CommandPropertiesClassification

type CommandPropertiesClassification interface {
	// GetCommandProperties returns the CommandProperties content of the underlying type.
	GetCommandProperties() *CommandProperties
}

CommandPropertiesClassification provides polymorphic access to related types. Call the interface's GetCommandProperties() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *CommandProperties, *MigrateMISyncCompleteCommandProperties, *MigrateSyncCompleteCommandProperties, *MongoDbCancelCommand, - *MongoDbFinishCommand, *MongoDbRestartCommand

type CommandState

type CommandState string

CommandState - The state of the command. This is ignored if submitted.

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

func PossibleCommandStateValues

func PossibleCommandStateValues() []CommandState

PossibleCommandStateValues returns the possible values for the CommandState const type.

type ConnectToMongoDbTaskProperties

type ConnectToMongoDbTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Describes a connection to a MongoDB data source
	Input *MongoDbConnectionInfo

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; An array containing a single MongoDbClusterInfo object
	Output []*MongoDbClusterInfo

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

ConnectToMongoDbTaskProperties - Properties for the task that validates the connection to and provides information about a MongoDB server

func (*ConnectToMongoDbTaskProperties) GetProjectTaskProperties

func (c *ConnectToMongoDbTaskProperties) GetProjectTaskProperties() *ProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type ConnectToMongoDbTaskProperties.

func (ConnectToMongoDbTaskProperties) MarshalJSON

func (c ConnectToMongoDbTaskProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectToMongoDbTaskProperties.

func (*ConnectToMongoDbTaskProperties) UnmarshalJSON

func (c *ConnectToMongoDbTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToMongoDbTaskProperties.

type ConnectToSourceMySQLTaskInput

type ConnectToSourceMySQLTaskInput struct {
	// REQUIRED; Information for connecting to MySQL source
	SourceConnectionInfo *MySQLConnectionInfo

	// Permission group for validations
	CheckPermissionsGroup *ServerLevelPermissionsGroup

	// Flag for whether or not the migration is offline
	IsOfflineMigration *bool

	// Target Platform for the migration
	TargetPlatform *MySQLTargetPlatformType
}

ConnectToSourceMySQLTaskInput - Input for the task that validates MySQL database connection

func (ConnectToSourceMySQLTaskInput) MarshalJSON added in v1.1.0

func (c ConnectToSourceMySQLTaskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectToSourceMySQLTaskInput.

func (*ConnectToSourceMySQLTaskInput) UnmarshalJSON added in v1.1.0

func (c *ConnectToSourceMySQLTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToSourceMySQLTaskInput.

type ConnectToSourceMySQLTaskProperties

type ConnectToSourceMySQLTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *ConnectToSourceMySQLTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []*ConnectToSourceNonSQLTaskOutput

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

ConnectToSourceMySQLTaskProperties - Properties for the task that validates MySQL database connection

func (*ConnectToSourceMySQLTaskProperties) GetProjectTaskProperties

func (c *ConnectToSourceMySQLTaskProperties) GetProjectTaskProperties() *ProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type ConnectToSourceMySQLTaskProperties.

func (ConnectToSourceMySQLTaskProperties) MarshalJSON

func (c ConnectToSourceMySQLTaskProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectToSourceMySQLTaskProperties.

func (*ConnectToSourceMySQLTaskProperties) UnmarshalJSON

func (c *ConnectToSourceMySQLTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToSourceMySQLTaskProperties.

type ConnectToSourceNonSQLTaskOutput

type ConnectToSourceNonSQLTaskOutput struct {
	// READ-ONLY; List of databases on the server
	Databases []*string

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Server properties
	ServerProperties *ServerProperties

	// READ-ONLY; Server brand version
	SourceServerBrandVersion *string

	// READ-ONLY; Validation errors associated with the task
	ValidationErrors []*ReportableException
}

ConnectToSourceNonSQLTaskOutput - Output for connect to MySQL type source

func (ConnectToSourceNonSQLTaskOutput) MarshalJSON

func (c ConnectToSourceNonSQLTaskOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectToSourceNonSQLTaskOutput.

func (*ConnectToSourceNonSQLTaskOutput) UnmarshalJSON added in v1.1.0

func (c *ConnectToSourceNonSQLTaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToSourceNonSQLTaskOutput.

type ConnectToSourceOracleSyncTaskInput

type ConnectToSourceOracleSyncTaskInput struct {
	// REQUIRED; Information for connecting to Oracle source
	SourceConnectionInfo *OracleConnectionInfo
}

ConnectToSourceOracleSyncTaskInput - Input for the task that validates Oracle database connection

func (ConnectToSourceOracleSyncTaskInput) MarshalJSON added in v1.1.0

func (c ConnectToSourceOracleSyncTaskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectToSourceOracleSyncTaskInput.

func (*ConnectToSourceOracleSyncTaskInput) UnmarshalJSON added in v1.1.0

func (c *ConnectToSourceOracleSyncTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToSourceOracleSyncTaskInput.

type ConnectToSourceOracleSyncTaskOutput

type ConnectToSourceOracleSyncTaskOutput struct {
	// READ-ONLY; List of schemas on source server
	Databases []*string

	// READ-ONLY; Source server brand version
	SourceServerBrandVersion *string

	// READ-ONLY; Version of the source server
	SourceServerVersion *string

	// READ-ONLY; Validation errors associated with the task
	ValidationErrors []*ReportableException
}

ConnectToSourceOracleSyncTaskOutput - Output for the task that validates Oracle database connection

func (ConnectToSourceOracleSyncTaskOutput) MarshalJSON

func (c ConnectToSourceOracleSyncTaskOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectToSourceOracleSyncTaskOutput.

func (*ConnectToSourceOracleSyncTaskOutput) UnmarshalJSON added in v1.1.0

func (c *ConnectToSourceOracleSyncTaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToSourceOracleSyncTaskOutput.

type ConnectToSourceOracleSyncTaskProperties

type ConnectToSourceOracleSyncTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *ConnectToSourceOracleSyncTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []*ConnectToSourceOracleSyncTaskOutput

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

ConnectToSourceOracleSyncTaskProperties - Properties for the task that validates Oracle database connection

func (*ConnectToSourceOracleSyncTaskProperties) GetProjectTaskProperties

func (c *ConnectToSourceOracleSyncTaskProperties) GetProjectTaskProperties() *ProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type ConnectToSourceOracleSyncTaskProperties.

func (ConnectToSourceOracleSyncTaskProperties) MarshalJSON

func (c ConnectToSourceOracleSyncTaskProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectToSourceOracleSyncTaskProperties.

func (*ConnectToSourceOracleSyncTaskProperties) UnmarshalJSON

func (c *ConnectToSourceOracleSyncTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToSourceOracleSyncTaskProperties.

type ConnectToSourcePostgreSQLSyncTaskInput

type ConnectToSourcePostgreSQLSyncTaskInput struct {
	// REQUIRED; Connection information for source PostgreSQL server
	SourceConnectionInfo *PostgreSQLConnectionInfo
}

ConnectToSourcePostgreSQLSyncTaskInput - Input for the task that validates connection to PostgreSQL and source server requirements

func (ConnectToSourcePostgreSQLSyncTaskInput) MarshalJSON added in v1.1.0

func (c ConnectToSourcePostgreSQLSyncTaskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectToSourcePostgreSQLSyncTaskInput.

func (*ConnectToSourcePostgreSQLSyncTaskInput) UnmarshalJSON added in v1.1.0

func (c *ConnectToSourcePostgreSQLSyncTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToSourcePostgreSQLSyncTaskInput.

type ConnectToSourcePostgreSQLSyncTaskOutput

type ConnectToSourcePostgreSQLSyncTaskOutput struct {
	// READ-ONLY; List of databases on source server
	Databases []*string

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Source server brand version
	SourceServerBrandVersion *string

	// READ-ONLY; Version of the source server
	SourceServerVersion *string

	// READ-ONLY; Validation errors associated with the task
	ValidationErrors []*ReportableException
}

ConnectToSourcePostgreSQLSyncTaskOutput - Output for the task that validates connection to PostgreSQL and source server requirements

func (ConnectToSourcePostgreSQLSyncTaskOutput) MarshalJSON

func (c ConnectToSourcePostgreSQLSyncTaskOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectToSourcePostgreSQLSyncTaskOutput.

func (*ConnectToSourcePostgreSQLSyncTaskOutput) UnmarshalJSON added in v1.1.0

func (c *ConnectToSourcePostgreSQLSyncTaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToSourcePostgreSQLSyncTaskOutput.

type ConnectToSourcePostgreSQLSyncTaskProperties

type ConnectToSourcePostgreSQLSyncTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *ConnectToSourcePostgreSQLSyncTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []*ConnectToSourcePostgreSQLSyncTaskOutput

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

ConnectToSourcePostgreSQLSyncTaskProperties - Properties for the task that validates connection to PostgreSQL server and source server requirements for online migration

func (*ConnectToSourcePostgreSQLSyncTaskProperties) GetProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type ConnectToSourcePostgreSQLSyncTaskProperties.

func (ConnectToSourcePostgreSQLSyncTaskProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type ConnectToSourcePostgreSQLSyncTaskProperties.

func (*ConnectToSourcePostgreSQLSyncTaskProperties) UnmarshalJSON

func (c *ConnectToSourcePostgreSQLSyncTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToSourcePostgreSQLSyncTaskProperties.

type ConnectToSourceSQLServerSyncTaskProperties

type ConnectToSourceSQLServerSyncTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *ConnectToSourceSQLServerTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []ConnectToSourceSQLServerTaskOutputClassification

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

ConnectToSourceSQLServerSyncTaskProperties - Properties for the task that validates connection to SQL Server and source server requirements for online migration

func (*ConnectToSourceSQLServerSyncTaskProperties) GetProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type ConnectToSourceSQLServerSyncTaskProperties.

func (ConnectToSourceSQLServerSyncTaskProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type ConnectToSourceSQLServerSyncTaskProperties.

func (*ConnectToSourceSQLServerSyncTaskProperties) UnmarshalJSON

func (c *ConnectToSourceSQLServerSyncTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToSourceSQLServerSyncTaskProperties.

type ConnectToSourceSQLServerTaskInput

type ConnectToSourceSQLServerTaskInput struct {
	// REQUIRED; Connection information for Source SQL Server
	SourceConnectionInfo *SQLConnectionInfo

	// Permission group for validations
	CheckPermissionsGroup *ServerLevelPermissionsGroup

	// Flag for whether to collect agent jobs from source server.
	CollectAgentJobs *bool

	// Flag for whether to collect databases from source server.
	CollectDatabases *bool

	// Flag for whether to collect logins from source server.
	CollectLogins *bool

	// Flag for whether to collect TDE Certificate names from source server.
	CollectTdeCertificateInfo *bool

	// Flag for whether to validate SSIS catalog is reachable on the source server.
	ValidateSsisCatalogOnly *bool
}

ConnectToSourceSQLServerTaskInput - Input for the task that validates connection to SQL Server and also validates source server requirements

func (ConnectToSourceSQLServerTaskInput) MarshalJSON added in v1.1.0

func (c ConnectToSourceSQLServerTaskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectToSourceSQLServerTaskInput.

func (*ConnectToSourceSQLServerTaskInput) UnmarshalJSON added in v1.1.0

func (c *ConnectToSourceSQLServerTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToSourceSQLServerTaskInput.

type ConnectToSourceSQLServerTaskOutput

type ConnectToSourceSQLServerTaskOutput struct {
	// REQUIRED; Type of result - database level or task level
	ResultType *string

	// READ-ONLY; Result identifier
	ID *string
}

ConnectToSourceSQLServerTaskOutput - Output for the task that validates connection to SQL Server and also validates source server requirements

func (*ConnectToSourceSQLServerTaskOutput) GetConnectToSourceSQLServerTaskOutput

func (c *ConnectToSourceSQLServerTaskOutput) GetConnectToSourceSQLServerTaskOutput() *ConnectToSourceSQLServerTaskOutput

GetConnectToSourceSQLServerTaskOutput implements the ConnectToSourceSQLServerTaskOutputClassification interface for type ConnectToSourceSQLServerTaskOutput.

func (ConnectToSourceSQLServerTaskOutput) MarshalJSON added in v1.1.0

func (c ConnectToSourceSQLServerTaskOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectToSourceSQLServerTaskOutput.

func (*ConnectToSourceSQLServerTaskOutput) UnmarshalJSON added in v1.1.0

func (c *ConnectToSourceSQLServerTaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToSourceSQLServerTaskOutput.

type ConnectToSourceSQLServerTaskOutputAgentJobLevel

type ConnectToSourceSQLServerTaskOutputAgentJobLevel struct {
	// REQUIRED; Type of result - database level or task level
	ResultType *string

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; The state of the original Agent Job.
	IsEnabled *bool

	// READ-ONLY; The type of Agent Job.
	JobCategory *string

	// READ-ONLY; The owner of the Agent Job
	JobOwner *string

	// READ-ONLY; UTC Date and time when the Agent Job was last executed.
	LastExecutedOn *time.Time

	// READ-ONLY; Information about eligibility of agent job for migration.
	MigrationEligibility *MigrationEligibilityInfo

	// READ-ONLY; Agent Job name
	Name *string

	// READ-ONLY; Validation errors
	ValidationErrors []*ReportableException
}

ConnectToSourceSQLServerTaskOutputAgentJobLevel - Agent Job level output for the task that validates connection to SQL Server and also validates source server requirements

func (*ConnectToSourceSQLServerTaskOutputAgentJobLevel) GetConnectToSourceSQLServerTaskOutput

func (c *ConnectToSourceSQLServerTaskOutputAgentJobLevel) GetConnectToSourceSQLServerTaskOutput() *ConnectToSourceSQLServerTaskOutput

GetConnectToSourceSQLServerTaskOutput implements the ConnectToSourceSQLServerTaskOutputClassification interface for type ConnectToSourceSQLServerTaskOutputAgentJobLevel.

func (ConnectToSourceSQLServerTaskOutputAgentJobLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type ConnectToSourceSQLServerTaskOutputAgentJobLevel.

func (*ConnectToSourceSQLServerTaskOutputAgentJobLevel) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToSourceSQLServerTaskOutputAgentJobLevel.

type ConnectToSourceSQLServerTaskOutputClassification

type ConnectToSourceSQLServerTaskOutputClassification interface {
	// GetConnectToSourceSQLServerTaskOutput returns the ConnectToSourceSQLServerTaskOutput content of the underlying type.
	GetConnectToSourceSQLServerTaskOutput() *ConnectToSourceSQLServerTaskOutput
}

ConnectToSourceSQLServerTaskOutputClassification provides polymorphic access to related types. Call the interface's GetConnectToSourceSQLServerTaskOutput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *ConnectToSourceSQLServerTaskOutput, *ConnectToSourceSQLServerTaskOutputAgentJobLevel, *ConnectToSourceSQLServerTaskOutputDatabaseLevel, - *ConnectToSourceSQLServerTaskOutputLoginLevel, *ConnectToSourceSQLServerTaskOutputTaskLevel

type ConnectToSourceSQLServerTaskOutputDatabaseLevel

type ConnectToSourceSQLServerTaskOutputDatabaseLevel struct {
	// REQUIRED; Type of result - database level or task level
	ResultType *string

	// READ-ONLY; SQL Server compatibility level of database
	CompatibilityLevel *DatabaseCompatLevel

	// READ-ONLY; The list of database files
	DatabaseFiles []*DatabaseFileInfo

	// READ-ONLY; State of the database
	DatabaseState *DatabaseState

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Database name
	Name *string

	// READ-ONLY; Size of the file in megabytes
	SizeMB *float64
}

ConnectToSourceSQLServerTaskOutputDatabaseLevel - Database level output for the task that validates connection to SQL Server and also validates source server requirements

func (*ConnectToSourceSQLServerTaskOutputDatabaseLevel) GetConnectToSourceSQLServerTaskOutput

func (c *ConnectToSourceSQLServerTaskOutputDatabaseLevel) GetConnectToSourceSQLServerTaskOutput() *ConnectToSourceSQLServerTaskOutput

GetConnectToSourceSQLServerTaskOutput implements the ConnectToSourceSQLServerTaskOutputClassification interface for type ConnectToSourceSQLServerTaskOutputDatabaseLevel.

func (ConnectToSourceSQLServerTaskOutputDatabaseLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type ConnectToSourceSQLServerTaskOutputDatabaseLevel.

func (*ConnectToSourceSQLServerTaskOutputDatabaseLevel) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToSourceSQLServerTaskOutputDatabaseLevel.

type ConnectToSourceSQLServerTaskOutputLoginLevel

type ConnectToSourceSQLServerTaskOutputLoginLevel struct {
	// REQUIRED; Type of result - database level or task level
	ResultType *string

	// READ-ONLY; The default database for the login.
	DefaultDatabase *string

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; The state of the login.
	IsEnabled *bool

	// READ-ONLY; The type of login.
	LoginType *LoginType

	// READ-ONLY; Information about eligibility of login for migration.
	MigrationEligibility *MigrationEligibilityInfo

	// READ-ONLY; Login name.
	Name *string
}

ConnectToSourceSQLServerTaskOutputLoginLevel - Login level output for the task that validates connection to SQL Server and also validates source server requirements

func (*ConnectToSourceSQLServerTaskOutputLoginLevel) GetConnectToSourceSQLServerTaskOutput

func (c *ConnectToSourceSQLServerTaskOutputLoginLevel) GetConnectToSourceSQLServerTaskOutput() *ConnectToSourceSQLServerTaskOutput

GetConnectToSourceSQLServerTaskOutput implements the ConnectToSourceSQLServerTaskOutputClassification interface for type ConnectToSourceSQLServerTaskOutputLoginLevel.

func (ConnectToSourceSQLServerTaskOutputLoginLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type ConnectToSourceSQLServerTaskOutputLoginLevel.

func (*ConnectToSourceSQLServerTaskOutputLoginLevel) UnmarshalJSON

func (c *ConnectToSourceSQLServerTaskOutputLoginLevel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToSourceSQLServerTaskOutputLoginLevel.

type ConnectToSourceSQLServerTaskOutputTaskLevel

type ConnectToSourceSQLServerTaskOutputTaskLevel struct {
	// REQUIRED; Type of result - database level or task level
	ResultType *string

	// READ-ONLY; Source agent jobs as a map from agent job name to id.
	AgentJobs *string

	// READ-ONLY; Mapping from database name to TDE certificate name, if applicable
	DatabaseTdeCertificateMapping *string

	// READ-ONLY; Source databases as a map from database name to database id
	Databases *string

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Source logins as a map from login name to login id.
	Logins *string

	// READ-ONLY; Source server brand version
	SourceServerBrandVersion *string

	// READ-ONLY; Source server version
	SourceServerVersion *string

	// READ-ONLY; Validation errors
	ValidationErrors []*ReportableException
}

ConnectToSourceSQLServerTaskOutputTaskLevel - Task level output for the task that validates connection to SQL Server and also validates source server requirements

func (*ConnectToSourceSQLServerTaskOutputTaskLevel) GetConnectToSourceSQLServerTaskOutput

func (c *ConnectToSourceSQLServerTaskOutputTaskLevel) GetConnectToSourceSQLServerTaskOutput() *ConnectToSourceSQLServerTaskOutput

GetConnectToSourceSQLServerTaskOutput implements the ConnectToSourceSQLServerTaskOutputClassification interface for type ConnectToSourceSQLServerTaskOutputTaskLevel.

func (ConnectToSourceSQLServerTaskOutputTaskLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type ConnectToSourceSQLServerTaskOutputTaskLevel.

func (*ConnectToSourceSQLServerTaskOutputTaskLevel) UnmarshalJSON

func (c *ConnectToSourceSQLServerTaskOutputTaskLevel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToSourceSQLServerTaskOutputTaskLevel.

type ConnectToSourceSQLServerTaskProperties

type ConnectToSourceSQLServerTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *ConnectToSourceSQLServerTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []ConnectToSourceSQLServerTaskOutputClassification

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

ConnectToSourceSQLServerTaskProperties - Properties for the task that validates connection to SQL Server and also validates source server requirements

func (*ConnectToSourceSQLServerTaskProperties) GetProjectTaskProperties

func (c *ConnectToSourceSQLServerTaskProperties) GetProjectTaskProperties() *ProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type ConnectToSourceSQLServerTaskProperties.

func (ConnectToSourceSQLServerTaskProperties) MarshalJSON

func (c ConnectToSourceSQLServerTaskProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectToSourceSQLServerTaskProperties.

func (*ConnectToSourceSQLServerTaskProperties) UnmarshalJSON

func (c *ConnectToSourceSQLServerTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToSourceSQLServerTaskProperties.

type ConnectToTargetAzureDbForMySQLTaskInput

type ConnectToTargetAzureDbForMySQLTaskInput struct {
	// REQUIRED; Connection information for source MySQL server
	SourceConnectionInfo *MySQLConnectionInfo

	// REQUIRED; Connection information for target Azure Database for MySQL server
	TargetConnectionInfo *MySQLConnectionInfo

	// Flag for whether or not the migration is offline
	IsOfflineMigration *bool
}

ConnectToTargetAzureDbForMySQLTaskInput - Input for the task that validates connection to Azure Database for MySQL and target server requirements

func (ConnectToTargetAzureDbForMySQLTaskInput) MarshalJSON added in v1.1.0

func (c ConnectToTargetAzureDbForMySQLTaskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetAzureDbForMySQLTaskInput.

func (*ConnectToTargetAzureDbForMySQLTaskInput) UnmarshalJSON added in v1.1.0

func (c *ConnectToTargetAzureDbForMySQLTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToTargetAzureDbForMySQLTaskInput.

type ConnectToTargetAzureDbForMySQLTaskOutput

type ConnectToTargetAzureDbForMySQLTaskOutput struct {
	// READ-ONLY; List of databases on target server
	Databases []*string

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Version of the target server
	ServerVersion *string

	// READ-ONLY; Target server brand version
	TargetServerBrandVersion *string

	// READ-ONLY; Validation errors associated with the task
	ValidationErrors []*ReportableException
}

ConnectToTargetAzureDbForMySQLTaskOutput - Output for the task that validates connection to Azure Database for MySQL and target server requirements

func (ConnectToTargetAzureDbForMySQLTaskOutput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetAzureDbForMySQLTaskOutput.

func (*ConnectToTargetAzureDbForMySQLTaskOutput) UnmarshalJSON added in v1.1.0

func (c *ConnectToTargetAzureDbForMySQLTaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToTargetAzureDbForMySQLTaskOutput.

type ConnectToTargetAzureDbForMySQLTaskProperties

type ConnectToTargetAzureDbForMySQLTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *ConnectToTargetAzureDbForMySQLTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []*ConnectToTargetAzureDbForMySQLTaskOutput

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

ConnectToTargetAzureDbForMySQLTaskProperties - Properties for the task that validates connection to Azure Database for MySQL and target server requirements

func (*ConnectToTargetAzureDbForMySQLTaskProperties) GetProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type ConnectToTargetAzureDbForMySQLTaskProperties.

func (ConnectToTargetAzureDbForMySQLTaskProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetAzureDbForMySQLTaskProperties.

func (*ConnectToTargetAzureDbForMySQLTaskProperties) UnmarshalJSON

func (c *ConnectToTargetAzureDbForMySQLTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToTargetAzureDbForMySQLTaskProperties.

type ConnectToTargetAzureDbForPostgreSQLSyncTaskInput

type ConnectToTargetAzureDbForPostgreSQLSyncTaskInput struct {
	// REQUIRED; Connection information for source PostgreSQL server
	SourceConnectionInfo *PostgreSQLConnectionInfo

	// REQUIRED; Connection information for target Azure Database for PostgreSQL server
	TargetConnectionInfo *PostgreSQLConnectionInfo
}

ConnectToTargetAzureDbForPostgreSQLSyncTaskInput - Input for the task that validates connection to Azure Database for PostgreSQL and target server requirements

func (ConnectToTargetAzureDbForPostgreSQLSyncTaskInput) MarshalJSON added in v1.1.0

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetAzureDbForPostgreSQLSyncTaskInput.

func (*ConnectToTargetAzureDbForPostgreSQLSyncTaskInput) UnmarshalJSON added in v1.1.0

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToTargetAzureDbForPostgreSQLSyncTaskInput.

type ConnectToTargetAzureDbForPostgreSQLSyncTaskOutput

type ConnectToTargetAzureDbForPostgreSQLSyncTaskOutput struct {
	// READ-ONLY; List of databases on target server
	Databases []*string

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Target server brand version
	TargetServerBrandVersion *string

	// READ-ONLY; Version of the target server
	TargetServerVersion *string

	// READ-ONLY; Validation errors associated with the task
	ValidationErrors []*ReportableException
}

ConnectToTargetAzureDbForPostgreSQLSyncTaskOutput - Output for the task that validates connection to Azure Database for PostgreSQL and target server requirements

func (ConnectToTargetAzureDbForPostgreSQLSyncTaskOutput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetAzureDbForPostgreSQLSyncTaskOutput.

func (*ConnectToTargetAzureDbForPostgreSQLSyncTaskOutput) UnmarshalJSON added in v1.1.0

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToTargetAzureDbForPostgreSQLSyncTaskOutput.

type ConnectToTargetAzureDbForPostgreSQLSyncTaskProperties

type ConnectToTargetAzureDbForPostgreSQLSyncTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *ConnectToTargetAzureDbForPostgreSQLSyncTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []*ConnectToTargetAzureDbForPostgreSQLSyncTaskOutput

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

ConnectToTargetAzureDbForPostgreSQLSyncTaskProperties - Properties for the task that validates connection to Azure Database For PostgreSQL server and target server requirements for online migration

func (*ConnectToTargetAzureDbForPostgreSQLSyncTaskProperties) GetProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type ConnectToTargetAzureDbForPostgreSQLSyncTaskProperties.

func (ConnectToTargetAzureDbForPostgreSQLSyncTaskProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetAzureDbForPostgreSQLSyncTaskProperties.

func (*ConnectToTargetAzureDbForPostgreSQLSyncTaskProperties) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToTargetAzureDbForPostgreSQLSyncTaskProperties.

type ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskInput

type ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskInput struct {
	// REQUIRED; Connection information for target Azure Database for PostgreSQL server
	TargetConnectionInfo *PostgreSQLConnectionInfo
}

ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskInput - Input for the task that validates connection to Azure Database for PostgreSQL and target server requirements for Oracle source.

func (ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskInput) MarshalJSON added in v1.1.0

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskInput.

func (*ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskInput) UnmarshalJSON added in v1.1.0

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskInput.

type ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskOutput

type ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskOutput struct {
	// Mapping of schemas per database
	DatabaseSchemaMap []*ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskOutputDatabaseSchemaMapItem

	// READ-ONLY; List of databases on target server
	Databases []*string

	// READ-ONLY; Target server brand version
	TargetServerBrandVersion *string

	// READ-ONLY; Version of the target server
	TargetServerVersion *string

	// READ-ONLY; Validation errors associated with the task
	ValidationErrors []*ReportableException
}

ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskOutput - Output for the task that validates connection to Azure Database for PostgreSQL and target server requirements for Oracle source.

func (ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskOutput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskOutput.

func (*ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskOutput) UnmarshalJSON added in v1.1.0

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskOutput.

type ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskOutputDatabaseSchemaMapItem

type ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskOutputDatabaseSchemaMapItem struct {
	Database *string
	Schemas  []*string
}

func (ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskOutputDatabaseSchemaMapItem) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskOutputDatabaseSchemaMapItem.

func (*ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskOutputDatabaseSchemaMapItem) UnmarshalJSON added in v1.1.0

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskOutputDatabaseSchemaMapItem.

type ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskProperties

type ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []*ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskOutput

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskProperties - Properties for the task that validates connection to Azure Database For PostgreSQL server and target server requirements for online migration for Oracle source.

func (*ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskProperties) GetProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskProperties.

func (ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskProperties.

func (*ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskProperties) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskProperties.

type ConnectToTargetSQLDbSyncTaskInput

type ConnectToTargetSQLDbSyncTaskInput struct {
	// REQUIRED; Connection information for source SQL Server
	SourceConnectionInfo *SQLConnectionInfo

	// REQUIRED; Connection information for target SQL DB
	TargetConnectionInfo *SQLConnectionInfo
}

ConnectToTargetSQLDbSyncTaskInput - Input for the task that validates connection to Azure SQL DB and target server requirements

func (ConnectToTargetSQLDbSyncTaskInput) MarshalJSON added in v1.1.0

func (c ConnectToTargetSQLDbSyncTaskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetSQLDbSyncTaskInput.

func (*ConnectToTargetSQLDbSyncTaskInput) UnmarshalJSON added in v1.1.0

func (c *ConnectToTargetSQLDbSyncTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToTargetSQLDbSyncTaskInput.

type ConnectToTargetSQLDbSyncTaskProperties

type ConnectToTargetSQLDbSyncTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *ConnectToTargetSQLDbSyncTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []*ConnectToTargetSQLDbTaskOutput

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

ConnectToTargetSQLDbSyncTaskProperties - Properties for the task that validates connection to SQL DB and target server requirements for online migration

func (*ConnectToTargetSQLDbSyncTaskProperties) GetProjectTaskProperties

func (c *ConnectToTargetSQLDbSyncTaskProperties) GetProjectTaskProperties() *ProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type ConnectToTargetSQLDbSyncTaskProperties.

func (ConnectToTargetSQLDbSyncTaskProperties) MarshalJSON

func (c ConnectToTargetSQLDbSyncTaskProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetSQLDbSyncTaskProperties.

func (*ConnectToTargetSQLDbSyncTaskProperties) UnmarshalJSON

func (c *ConnectToTargetSQLDbSyncTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToTargetSQLDbSyncTaskProperties.

type ConnectToTargetSQLDbTaskInput

type ConnectToTargetSQLDbTaskInput struct {
	// REQUIRED; Connection information for target SQL DB
	TargetConnectionInfo *SQLConnectionInfo
}

ConnectToTargetSQLDbTaskInput - Input for the task that validates connection to SQL DB and target server requirements

func (ConnectToTargetSQLDbTaskInput) MarshalJSON added in v1.1.0

func (c ConnectToTargetSQLDbTaskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetSQLDbTaskInput.

func (*ConnectToTargetSQLDbTaskInput) UnmarshalJSON added in v1.1.0

func (c *ConnectToTargetSQLDbTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToTargetSQLDbTaskInput.

type ConnectToTargetSQLDbTaskOutput

type ConnectToTargetSQLDbTaskOutput struct {
	// READ-ONLY; Source databases as a map from database name to database id
	Databases *string

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Target server brand version
	TargetServerBrandVersion *string

	// READ-ONLY; Version of the target server
	TargetServerVersion *string
}

ConnectToTargetSQLDbTaskOutput - Output for the task that validates connection to SQL DB and target server requirements

func (ConnectToTargetSQLDbTaskOutput) MarshalJSON added in v1.1.0

func (c ConnectToTargetSQLDbTaskOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetSQLDbTaskOutput.

func (*ConnectToTargetSQLDbTaskOutput) UnmarshalJSON added in v1.1.0

func (c *ConnectToTargetSQLDbTaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToTargetSQLDbTaskOutput.

type ConnectToTargetSQLDbTaskProperties

type ConnectToTargetSQLDbTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *ConnectToTargetSQLDbTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []*ConnectToTargetSQLDbTaskOutput

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

ConnectToTargetSQLDbTaskProperties - Properties for the task that validates connection to SQL DB and target server requirements

func (*ConnectToTargetSQLDbTaskProperties) GetProjectTaskProperties

func (c *ConnectToTargetSQLDbTaskProperties) GetProjectTaskProperties() *ProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type ConnectToTargetSQLDbTaskProperties.

func (ConnectToTargetSQLDbTaskProperties) MarshalJSON

func (c ConnectToTargetSQLDbTaskProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetSQLDbTaskProperties.

func (*ConnectToTargetSQLDbTaskProperties) UnmarshalJSON

func (c *ConnectToTargetSQLDbTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToTargetSQLDbTaskProperties.

type ConnectToTargetSQLMISyncTaskInput

type ConnectToTargetSQLMISyncTaskInput struct {
	// REQUIRED; Azure Active Directory Application the DMS instance will use to connect to the target instance of Azure SQL Database
	// Managed Instance and the Azure Storage Account
	AzureApp *AzureActiveDirectoryApp

	// REQUIRED; Connection information for Azure SQL Database Managed Instance
	TargetConnectionInfo *MiSQLConnectionInfo
}

ConnectToTargetSQLMISyncTaskInput - Input for the task that validates connection to Azure SQL Database Managed Instance online scenario.

func (ConnectToTargetSQLMISyncTaskInput) MarshalJSON added in v1.1.0

func (c ConnectToTargetSQLMISyncTaskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetSQLMISyncTaskInput.

func (*ConnectToTargetSQLMISyncTaskInput) UnmarshalJSON added in v1.1.0

func (c *ConnectToTargetSQLMISyncTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToTargetSQLMISyncTaskInput.

type ConnectToTargetSQLMISyncTaskOutput

type ConnectToTargetSQLMISyncTaskOutput struct {
	// READ-ONLY; Target server brand version
	TargetServerBrandVersion *string

	// READ-ONLY; Target server version
	TargetServerVersion *string

	// READ-ONLY; Validation errors
	ValidationErrors []*ReportableException
}

ConnectToTargetSQLMISyncTaskOutput - Output for the task that validates connection to Azure SQL Database Managed Instance.

func (ConnectToTargetSQLMISyncTaskOutput) MarshalJSON

func (c ConnectToTargetSQLMISyncTaskOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetSQLMISyncTaskOutput.

func (*ConnectToTargetSQLMISyncTaskOutput) UnmarshalJSON added in v1.1.0

func (c *ConnectToTargetSQLMISyncTaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToTargetSQLMISyncTaskOutput.

type ConnectToTargetSQLMISyncTaskProperties

type ConnectToTargetSQLMISyncTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *ConnectToTargetSQLMISyncTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []*ConnectToTargetSQLMISyncTaskOutput

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

ConnectToTargetSQLMISyncTaskProperties - Properties for the task that validates connection to Azure SQL Database Managed Instance

func (*ConnectToTargetSQLMISyncTaskProperties) GetProjectTaskProperties

func (c *ConnectToTargetSQLMISyncTaskProperties) GetProjectTaskProperties() *ProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type ConnectToTargetSQLMISyncTaskProperties.

func (ConnectToTargetSQLMISyncTaskProperties) MarshalJSON

func (c ConnectToTargetSQLMISyncTaskProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetSQLMISyncTaskProperties.

func (*ConnectToTargetSQLMISyncTaskProperties) UnmarshalJSON

func (c *ConnectToTargetSQLMISyncTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToTargetSQLMISyncTaskProperties.

type ConnectToTargetSQLMITaskInput

type ConnectToTargetSQLMITaskInput struct {
	// REQUIRED; Connection information for target SQL Server
	TargetConnectionInfo *SQLConnectionInfo

	// Flag for whether to collect agent jobs from target SQL MI server.
	CollectAgentJobs *bool

	// Flag for whether to collect logins from target SQL MI server.
	CollectLogins *bool

	// Flag for whether to validate SSIS catalog is reachable on the target SQL MI server.
	ValidateSsisCatalogOnly *bool
}

ConnectToTargetSQLMITaskInput - Input for the task that validates connection to Azure SQL Database Managed Instance.

func (ConnectToTargetSQLMITaskInput) MarshalJSON added in v1.1.0

func (c ConnectToTargetSQLMITaskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetSQLMITaskInput.

func (*ConnectToTargetSQLMITaskInput) UnmarshalJSON added in v1.1.0

func (c *ConnectToTargetSQLMITaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToTargetSQLMITaskInput.

type ConnectToTargetSQLMITaskOutput

type ConnectToTargetSQLMITaskOutput struct {
	// READ-ONLY; List of agent jobs on the target server.
	AgentJobs []*string

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; List of logins on the target server.
	Logins []*string

	// READ-ONLY; Target server brand version
	TargetServerBrandVersion *string

	// READ-ONLY; Target server version
	TargetServerVersion *string

	// READ-ONLY; Validation errors
	ValidationErrors []*ReportableException
}

ConnectToTargetSQLMITaskOutput - Output for the task that validates connection to Azure SQL Database Managed Instance.

func (ConnectToTargetSQLMITaskOutput) MarshalJSON

func (c ConnectToTargetSQLMITaskOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetSQLMITaskOutput.

func (*ConnectToTargetSQLMITaskOutput) UnmarshalJSON added in v1.1.0

func (c *ConnectToTargetSQLMITaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToTargetSQLMITaskOutput.

type ConnectToTargetSQLMITaskProperties

type ConnectToTargetSQLMITaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *ConnectToTargetSQLMITaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []*ConnectToTargetSQLMITaskOutput

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

ConnectToTargetSQLMITaskProperties - Properties for the task that validates connection to Azure SQL Database Managed Instance

func (*ConnectToTargetSQLMITaskProperties) GetProjectTaskProperties

func (c *ConnectToTargetSQLMITaskProperties) GetProjectTaskProperties() *ProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type ConnectToTargetSQLMITaskProperties.

func (ConnectToTargetSQLMITaskProperties) MarshalJSON

func (c ConnectToTargetSQLMITaskProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetSQLMITaskProperties.

func (*ConnectToTargetSQLMITaskProperties) UnmarshalJSON

func (c *ConnectToTargetSQLMITaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToTargetSQLMITaskProperties.

type ConnectionInfo

type ConnectionInfo struct {
	// REQUIRED; Type of connection info
	Type *string

	// Password credential.
	Password *string

	// User name
	UserName *string
}

ConnectionInfo - Defines the connection properties of a server

func (*ConnectionInfo) GetConnectionInfo

func (c *ConnectionInfo) GetConnectionInfo() *ConnectionInfo

GetConnectionInfo implements the ConnectionInfoClassification interface for type ConnectionInfo.

func (ConnectionInfo) MarshalJSON added in v1.1.0

func (c ConnectionInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ConnectionInfo.

func (*ConnectionInfo) UnmarshalJSON added in v1.1.0

func (c *ConnectionInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectionInfo.

type ConnectionInfoClassification

type ConnectionInfoClassification interface {
	// GetConnectionInfo returns the ConnectionInfo content of the underlying type.
	GetConnectionInfo() *ConnectionInfo
}

ConnectionInfoClassification provides polymorphic access to related types. Call the interface's GetConnectionInfo() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *ConnectionInfo, *MiSQLConnectionInfo, *MongoDbConnectionInfo, *MySQLConnectionInfo, *OracleConnectionInfo, *PostgreSQLConnectionInfo, - *SQLConnectionInfo

type CreatedByType

type CreatedByType string

CreatedByType - The type of identity that created the resource.

const (
	CreatedByTypeApplication     CreatedByType = "Application"
	CreatedByTypeKey             CreatedByType = "Key"
	CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
	CreatedByTypeUser            CreatedByType = "User"
)

func PossibleCreatedByTypeValues

func PossibleCreatedByTypeValues() []CreatedByType

PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.

type DataIntegrityValidationResult

type DataIntegrityValidationResult struct {
	// List of failed table names of source and target pair
	FailedObjects map[string]*string

	// List of errors that happened while performing data integrity validation
	ValidationErrors *ValidationError
}

DataIntegrityValidationResult - Results for checksum based Data Integrity validation results

func (DataIntegrityValidationResult) MarshalJSON

func (d DataIntegrityValidationResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DataIntegrityValidationResult.

func (*DataIntegrityValidationResult) UnmarshalJSON added in v1.1.0

func (d *DataIntegrityValidationResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DataIntegrityValidationResult.

type DataItemMigrationSummaryResult

type DataItemMigrationSummaryResult struct {
	// READ-ONLY; Migration end time
	EndedOn *time.Time

	// READ-ONLY; Wildcard string prefix to use for querying all errors of the item
	ErrorPrefix *string

	// READ-ONLY; Number of successfully completed items
	ItemsCompletedCount *int64

	// READ-ONLY; Number of items
	ItemsCount *int64

	// READ-ONLY; Name of the item
	Name *string

	// READ-ONLY; Wildcard string prefix to use for querying all sub-tem results of the item
	ResultPrefix *string

	// READ-ONLY; Migration start time
	StartedOn *time.Time

	// READ-ONLY; Current state of migration
	State *MigrationState

	// READ-ONLY; Status message
	StatusMessage *string
}

DataItemMigrationSummaryResult - Basic summary of a data item migration

func (DataItemMigrationSummaryResult) MarshalJSON added in v1.1.0

func (d DataItemMigrationSummaryResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DataItemMigrationSummaryResult.

func (*DataItemMigrationSummaryResult) UnmarshalJSON

func (d *DataItemMigrationSummaryResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DataItemMigrationSummaryResult.

type DataMigrationResultCode

type DataMigrationResultCode string

DataMigrationResultCode - Result code of the data migration

const (
	DataMigrationResultCodeCompleted                  DataMigrationResultCode = "Completed"
	DataMigrationResultCodeFatalError                 DataMigrationResultCode = "FatalError"
	DataMigrationResultCodeInitial                    DataMigrationResultCode = "Initial"
	DataMigrationResultCodeObjectNotExistsInSource    DataMigrationResultCode = "ObjectNotExistsInSource"
	DataMigrationResultCodeObjectNotExistsInTarget    DataMigrationResultCode = "ObjectNotExistsInTarget"
	DataMigrationResultCodeTargetObjectIsInaccessible DataMigrationResultCode = "TargetObjectIsInaccessible"
)

func PossibleDataMigrationResultCodeValues

func PossibleDataMigrationResultCodeValues() []DataMigrationResultCode

PossibleDataMigrationResultCodeValues returns the possible values for the DataMigrationResultCode const type.

type Database

type Database struct {
	// Collation name of the database
	Collation *string

	// SQL Server compatibility level of database
	CompatibilityLevel *DatabaseCompatLevel

	// State of the database
	DatabaseState *DatabaseState

	// Fully qualified name
	Fqdn *string

	// Unique identifier for the database
	ID *string

	// Install id of the database
	InstallID *string

	// Name of the database
	Name *string

	// Number of cores on the server
	ServerCoreCount *int32

	// Default path of the backup folder
	ServerDefaultBackupPath *string

	// Default path of the data files
	ServerDefaultDataPath *string

	// Default path of the log files
	ServerDefaultLogPath *string

	// Edition of the server
	ServerEdition *string

	// The unique Server Id
	ServerID *string

	// Product level of the server (RTM, SP, CTP).
	ServerLevel *string

	// Name of the server
	ServerName *string

	// Version of the server
	ServerVersion *string

	// Number of cores on the server that have VISIBLE ONLINE status
	ServerVisibleOnlineCoreCount *int32
}

Database - Information about a single database

func (Database) MarshalJSON added in v1.1.0

func (d Database) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Database.

func (*Database) UnmarshalJSON added in v1.1.0

func (d *Database) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Database.

type DatabaseBackupInfo

type DatabaseBackupInfo struct {
	// READ-ONLY; The list of backup files for the current database.
	BackupFiles []*string

	// READ-ONLY; Date and time when the backup operation finished.
	BackupFinishDate *time.Time

	// READ-ONLY; Backup Type.
	BackupType *BackupType

	// READ-ONLY; Database name.
	DatabaseName *string

	// READ-ONLY; Number of files in the backup set.
	FamilyCount *int32

	// READ-ONLY; Whether the backup set is compressed
	IsCompressed *bool

	// READ-ONLY; Database was damaged when backed up, but the backup operation was requested to continue despite errors.
	IsDamaged *bool

	// READ-ONLY; Position of current database backup in the file.
	Position *int32
}

DatabaseBackupInfo - Information about backup files when existing backup mode is used.

func (DatabaseBackupInfo) MarshalJSON

func (d DatabaseBackupInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DatabaseBackupInfo.

func (*DatabaseBackupInfo) UnmarshalJSON

func (d *DatabaseBackupInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseBackupInfo.

type DatabaseCompatLevel

type DatabaseCompatLevel string

DatabaseCompatLevel - An enumeration of SQL Server database compatibility levels

const (
	DatabaseCompatLevelCompatLevel100 DatabaseCompatLevel = "CompatLevel100"
	DatabaseCompatLevelCompatLevel110 DatabaseCompatLevel = "CompatLevel110"
	DatabaseCompatLevelCompatLevel120 DatabaseCompatLevel = "CompatLevel120"
	DatabaseCompatLevelCompatLevel130 DatabaseCompatLevel = "CompatLevel130"
	DatabaseCompatLevelCompatLevel140 DatabaseCompatLevel = "CompatLevel140"
	DatabaseCompatLevelCompatLevel80  DatabaseCompatLevel = "CompatLevel80"
	DatabaseCompatLevelCompatLevel90  DatabaseCompatLevel = "CompatLevel90"
)

func PossibleDatabaseCompatLevelValues

func PossibleDatabaseCompatLevelValues() []DatabaseCompatLevel

PossibleDatabaseCompatLevelValues returns the possible values for the DatabaseCompatLevel const type.

type DatabaseFileInfo

type DatabaseFileInfo struct {
	// Name of the database
	DatabaseName *string

	// Database file type
	FileType *DatabaseFileType

	// Unique identifier for database file
	ID *string

	// Logical name of the file
	LogicalName *string

	// Operating-system full path of the file
	PhysicalFullName *string

	// Suggested full path of the file for restoring
	RestoreFullName *string

	// Size of the file in megabytes
	SizeMB *float64
}

DatabaseFileInfo - Database file specific information

func (DatabaseFileInfo) MarshalJSON added in v1.1.0

func (d DatabaseFileInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DatabaseFileInfo.

func (*DatabaseFileInfo) UnmarshalJSON added in v1.1.0

func (d *DatabaseFileInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseFileInfo.

type DatabaseFileInput

type DatabaseFileInput struct {
	// Database file type
	FileType *DatabaseFileType

	// Unique identifier for database file
	ID *string

	// Logical name of the file
	LogicalName *string

	// Operating-system full path of the file
	PhysicalFullName *string

	// Suggested full path of the file for restoring
	RestoreFullName *string
}

DatabaseFileInput - Database file specific information for input

func (DatabaseFileInput) MarshalJSON added in v1.1.0

func (d DatabaseFileInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DatabaseFileInput.

func (*DatabaseFileInput) UnmarshalJSON added in v1.1.0

func (d *DatabaseFileInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseFileInput.

type DatabaseFileType

type DatabaseFileType string

DatabaseFileType - An enumeration of SQL Server database file types

const (
	DatabaseFileTypeFilestream   DatabaseFileType = "Filestream"
	DatabaseFileTypeFulltext     DatabaseFileType = "Fulltext"
	DatabaseFileTypeLog          DatabaseFileType = "Log"
	DatabaseFileTypeNotSupported DatabaseFileType = "NotSupported"
	DatabaseFileTypeRows         DatabaseFileType = "Rows"
)

func PossibleDatabaseFileTypeValues

func PossibleDatabaseFileTypeValues() []DatabaseFileType

PossibleDatabaseFileTypeValues returns the possible values for the DatabaseFileType const type.

type DatabaseInfo

type DatabaseInfo struct {
	// REQUIRED; Name of the database
	SourceDatabaseName *string
}

DatabaseInfo - Project Database Details

func (DatabaseInfo) MarshalJSON added in v1.1.0

func (d DatabaseInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DatabaseInfo.

func (*DatabaseInfo) UnmarshalJSON added in v1.1.0

func (d *DatabaseInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseInfo.

type DatabaseMigrationStage

type DatabaseMigrationStage string

DatabaseMigrationStage - Current stage of migration

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

func PossibleDatabaseMigrationStageValues

func PossibleDatabaseMigrationStageValues() []DatabaseMigrationStage

PossibleDatabaseMigrationStageValues returns the possible values for the DatabaseMigrationStage const type.

type DatabaseMigrationState

type DatabaseMigrationState string

DatabaseMigrationState - Database level migration state.

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 PossibleDatabaseMigrationStateValues

func PossibleDatabaseMigrationStateValues() []DatabaseMigrationState

PossibleDatabaseMigrationStateValues returns the possible values for the DatabaseMigrationState const type.

type DatabaseObjectName

type DatabaseObjectName struct {
	// Type of the object in the database
	ObjectType *ObjectType

	// READ-ONLY; The unescaped name of the database containing the object
	DatabaseName *string

	// READ-ONLY; The unescaped name of the object
	ObjectName *string

	// READ-ONLY; The unescaped name of the schema containing the object
	SchemaName *string
}

DatabaseObjectName - A representation of the name of an object in a database

func (DatabaseObjectName) MarshalJSON added in v1.1.0

func (d DatabaseObjectName) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DatabaseObjectName.

func (*DatabaseObjectName) UnmarshalJSON added in v1.1.0

func (d *DatabaseObjectName) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseObjectName.

type DatabaseState

type DatabaseState string

DatabaseState - An enumeration of SQL Server Database states

const (
	DatabaseStateCopying          DatabaseState = "Copying"
	DatabaseStateEmergency        DatabaseState = "Emergency"
	DatabaseStateOffline          DatabaseState = "Offline"
	DatabaseStateOfflineSecondary DatabaseState = "OfflineSecondary"
	DatabaseStateOnline           DatabaseState = "Online"
	DatabaseStateRecovering       DatabaseState = "Recovering"
	DatabaseStateRecoveryPending  DatabaseState = "RecoveryPending"
	DatabaseStateRestoring        DatabaseState = "Restoring"
	DatabaseStateSuspect          DatabaseState = "Suspect"
)

func PossibleDatabaseStateValues

func PossibleDatabaseStateValues() []DatabaseState

PossibleDatabaseStateValues returns the possible values for the DatabaseState const type.

type DatabaseSummaryResult

type DatabaseSummaryResult struct {
	// READ-ONLY; Migration end time
	EndedOn *time.Time

	// READ-ONLY; Wildcard string prefix to use for querying all errors of the item
	ErrorPrefix *string

	// READ-ONLY; Number of successfully completed items
	ItemsCompletedCount *int64

	// READ-ONLY; Number of items
	ItemsCount *int64

	// READ-ONLY; Name of the item
	Name *string

	// READ-ONLY; Wildcard string prefix to use for querying all sub-tem results of the item
	ResultPrefix *string

	// READ-ONLY; Size of the database in megabytes
	SizeMB *float64

	// READ-ONLY; Migration start time
	StartedOn *time.Time

	// READ-ONLY; Current state of migration
	State *MigrationState

	// READ-ONLY; Status message
	StatusMessage *string
}

DatabaseSummaryResult - Summary of database results in the migration

func (DatabaseSummaryResult) MarshalJSON added in v1.1.0

func (d DatabaseSummaryResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DatabaseSummaryResult.

func (*DatabaseSummaryResult) UnmarshalJSON

func (d *DatabaseSummaryResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseSummaryResult.

type DatabaseTable

type DatabaseTable struct {
	// READ-ONLY; Indicates whether table is empty or not
	HasRows *bool

	// READ-ONLY; Schema-qualified name of the table
	Name *string
}

DatabaseTable - Table properties

func (DatabaseTable) MarshalJSON added in v1.1.0

func (d DatabaseTable) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DatabaseTable.

func (*DatabaseTable) UnmarshalJSON added in v1.1.0

func (d *DatabaseTable) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseTable.

type Error

type Error struct {
	// Error type
	Type *ErrorType

	// READ-ONLY; Error description
	Message *string
}

Error - Migration Task errors

func (Error) MarshalJSON added in v1.1.0

func (e Error) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Error.

func (*Error) UnmarshalJSON added in v1.1.0

func (e *Error) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Error.

type ErrorType

type ErrorType string

ErrorType - Error type

const (
	ErrorTypeDefault ErrorType = "Default"
	ErrorTypeError   ErrorType = "Error"
	ErrorTypeWarning ErrorType = "Warning"
)

func PossibleErrorTypeValues

func PossibleErrorTypeValues() []ErrorType

PossibleErrorTypeValues returns the possible values for the ErrorType const type.

type ExecutionStatistics

type ExecutionStatistics struct {
	// CPU Time in millisecond(s) for the query execution
	CPUTimeMs *float32

	// Time taken in millisecond(s) for executing the query
	ElapsedTimeMs *float32

	// No. of query executions
	ExecutionCount *int64

	// Indicates whether the query resulted in an error
	HasErrors *bool

	// List of sql Errors
	SQLErrors []*string

	// Dictionary of sql query execution wait types and the respective statistics
	WaitStats map[string]*WaitStatistics
}

ExecutionStatistics - Description about the errors happen while performing migration validation

func (ExecutionStatistics) MarshalJSON

func (e ExecutionStatistics) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ExecutionStatistics.

func (*ExecutionStatistics) UnmarshalJSON added in v1.1.0

func (e *ExecutionStatistics) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ExecutionStatistics.

type FileList

type FileList struct {
	// URL to load the next page of files
	NextLink *string

	// List of files
	Value []*ProjectFile
}

FileList - OData page of files

func (FileList) MarshalJSON added in v1.1.0

func (f FileList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FileList.

func (*FileList) UnmarshalJSON added in v1.1.0

func (f *FileList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FileList.

type FileShare

type FileShare struct {
	// REQUIRED; The folder path for this share.
	Path *string

	// Password credential used to connect to the share location.
	Password *string

	// User name credential to connect to the share location
	UserName *string
}

FileShare - File share information with Path, Username, and Password.

func (FileShare) MarshalJSON added in v1.1.0

func (f FileShare) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FileShare.

func (*FileShare) UnmarshalJSON added in v1.1.0

func (f *FileShare) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FileShare.

type FileStorageInfo

type FileStorageInfo struct {
	// Dictionary of
	Headers map[string]*string

	// A URI that can be used to access the file content.
	URI *string
}

FileStorageInfo - File storage information.

func (FileStorageInfo) MarshalJSON added in v1.1.0

func (f FileStorageInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FileStorageInfo.

func (*FileStorageInfo) UnmarshalJSON added in v1.1.0

func (f *FileStorageInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FileStorageInfo.

type FilesClient

type FilesClient struct {
	// contains filtered or unexported fields
}

FilesClient contains the methods for the Files group. Don't use this type directly, use NewFilesClient() instead.

func NewFilesClient

func NewFilesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FilesClient, error)

NewFilesClient creates a new instance of FilesClient with the specified values.

  • subscriptionID - Identifier of the subscription
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*FilesClient) CreateOrUpdate

func (client *FilesClient) CreateOrUpdate(ctx context.Context, groupName string, serviceName string, projectName string, fileName string, parameters ProjectFile, options *FilesClientCreateOrUpdateOptions) (FilesClientCreateOrUpdateResponse, error)

CreateOrUpdate - The PUT method creates a new file or updates an existing one. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • projectName - Name of the project
  • fileName - Name of the File
  • parameters - Information about the file
  • options - FilesClientCreateOrUpdateOptions contains the optional parameters for the FilesClient.CreateOrUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Files_CreateOrUpdate.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewFilesClient().CreateOrUpdate(ctx, "DmsSdkRg", "DmsSdkService", "DmsSdkProject", "x114d023d8", armdatamigration.ProjectFile{
		Properties: &armdatamigration.ProjectFileProperties{
			FilePath: to.Ptr("DmsSdkFilePath/DmsSdkFile.sql"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ProjectFile = armdatamigration.ProjectFile{
	// 	Name: to.Ptr("x114d023d8"),
	// 	Type: to.Ptr("Microsoft.DataMigration/services/projects/files"),
	// 	ID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService/projects/DmsSdkProject/files/x114d023d8"),
	// 	Etag: to.Ptr("C2WE6C3yt2I0hunjpjzffY8LhTLqrJZHJ20gkuq2ZOA="),
	// 	Properties: &armdatamigration.ProjectFileProperties{
	// 		Extension: to.Ptr("sql"),
	// 		FilePath: to.Ptr("DmsSdkFilePath/DmsSdkFile.sql"),
	// 	},
	// }
}
Output:

func (*FilesClient) Delete

func (client *FilesClient) Delete(ctx context.Context, groupName string, serviceName string, projectName string, fileName string, options *FilesClientDeleteOptions) (FilesClientDeleteResponse, error)

Delete - This method deletes a file. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • projectName - Name of the project
  • fileName - Name of the File
  • options - FilesClientDeleteOptions contains the optional parameters for the FilesClient.Delete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Files_Delete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewFilesClient().Delete(ctx, "DmsSdkRg", "DmsSdkService", "DmsSdkProject", "x114d023d8", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

func (*FilesClient) Get

func (client *FilesClient) Get(ctx context.Context, groupName string, serviceName string, projectName string, fileName string, options *FilesClientGetOptions) (FilesClientGetResponse, error)

Get - The files resource is a nested, proxy-only resource representing a file stored under the project resource. This method retrieves information about a file. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • projectName - Name of the project
  • fileName - Name of the File
  • options - FilesClientGetOptions contains the optional parameters for the FilesClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Files_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewFilesClient().Get(ctx, "DmsSdkRg", "DmsSdkService", "DmsSdkProject", "x114d023d8", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ProjectFile = armdatamigration.ProjectFile{
	// 	Name: to.Ptr("x114d023d8"),
	// 	Type: to.Ptr("Microsoft.DataMigration/services/projects/files"),
	// 	ID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService/projects/DmsSdkProject/files/x114d023d8"),
	// 	Properties: &armdatamigration.ProjectFileProperties{
	// 		Extension: to.Ptr("sql"),
	// 		FilePath: to.Ptr("SchemaInput/DmsSdkFile.sql"),
	// 		LastModified: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T20:01:33.000Z"); return t}()),
	// 		MediaType: to.Ptr("text/plain"),
	// 		Size: to.Ptr[int64](51835),
	// 	},
	// }
}
Output:

func (*FilesClient) NewListPager

func (client *FilesClient) NewListPager(groupName string, serviceName string, projectName string, options *FilesClientListOptions) *runtime.Pager[FilesClientListResponse]

NewListPager - The project resource is a nested resource representing a stored migration project. This method returns a list of files owned by a project resource.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • projectName - Name of the project
  • options - FilesClientListOptions contains the optional parameters for the FilesClient.NewListPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Files_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewFilesClient().NewListPager("DmsSdkRg", "DmsSdkService", "DmsSdkProject", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.FileList = armdatamigration.FileList{
		// 	Value: []*armdatamigration.ProjectFile{
		// 		{
		// 			Name: to.Ptr("x114d023d8"),
		// 			Type: to.Ptr("Microsoft.DataMigration/services/projects/files"),
		// 			ID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService/projects/DmsSdkProject/files/x114d023d8"),
		// 			Properties: &armdatamigration.ProjectFileProperties{
		// 				Extension: to.Ptr("sql"),
		// 				FilePath: to.Ptr("SchemaInput/DmsSdkFile.sql"),
		// 				LastModified: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-15T20:01:33.000Z"); return t}()),
		// 				MediaType: to.Ptr("text/plain"),
		// 				Size: to.Ptr[int64](51835),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("pfpu7fxqcpziyg2h3qj2vb7d8jpbbg7p"),
		// 			Type: to.Ptr("Microsoft.DataMigration/services/projects/files"),
		// 			ID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService/projects/DmsSdkProject/files/pfpu7fxqcpziyg2h3qj2vb7d8jpbbg7p"),
		// 			Properties: &armdatamigration.ProjectFileProperties{
		// 				Extension: to.Ptr("sql"),
		// 				FilePath: to.Ptr("7daf055f-82b0-483e-9da0-4244b4eaa9b0/AdventureWorks2008.sql"),
		// 				LastModified: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-10-05T16:51:03.000Z"); return t}()),
		// 				MediaType: to.Ptr("text/plain"),
		// 				Size: to.Ptr[int64](910278),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*FilesClient) Read

func (client *FilesClient) Read(ctx context.Context, groupName string, serviceName string, projectName string, fileName string, options *FilesClientReadOptions) (FilesClientReadResponse, error)

Read - This method is used for requesting storage information using which contents of the file can be downloaded. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • projectName - Name of the project
  • fileName - Name of the File
  • options - FilesClientReadOptions contains the optional parameters for the FilesClient.Read method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Files_Read.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewFilesClient().Read(ctx, "DmsSdkRg", "DmsSdkService", "DmsSdkProject", "x114d023d8", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.FileStorageInfo = armdatamigration.FileStorageInfo{
	// 	Headers: map[string]*string{
	// 		"x-ms-blob-type": to.Ptr("BlockBlob"),
	// 	},
	// 	URI: to.Ptr("https://dmssdkservicestorage.blob.core.windows.net/dmssdkservicecontainer/_rpfiles/dmssdkproject/pfpu7fxqcpziyg2h3qj2vb7d8jpbbg7p?sv=2016-05-31&sr=b&sig=sassignature&se=2018-10-05T18%3A21%3A42Z&sp=r"),
	// }
}
Output:

func (*FilesClient) ReadWrite

func (client *FilesClient) ReadWrite(ctx context.Context, groupName string, serviceName string, projectName string, fileName string, options *FilesClientReadWriteOptions) (FilesClientReadWriteResponse, error)

ReadWrite - This method is used for requesting information for reading and writing the file content. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • projectName - Name of the project
  • fileName - Name of the File
  • options - FilesClientReadWriteOptions contains the optional parameters for the FilesClient.ReadWrite method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Files_ReadWrite.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewFilesClient().ReadWrite(ctx, "DmsSdkRg", "DmsSdkService", "DmsSdkProject", "x114d023d8", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.FileStorageInfo = armdatamigration.FileStorageInfo{
	// 	Headers: map[string]*string{
	// 		"x-ms-blob-type": to.Ptr("BlockBlob"),
	// 	},
	// 	URI: to.Ptr("https://dmssdkservicestorage.blob.core.windows.net/dmssdkservicecontainer/_rpfiles/dmssdkproject/pfpu7fxqcpziyg2h3qj2vb7d8jpbbg7p?sv=2016-05-31&sr=b&sig=sassignature&se=2018-10-05T18%3A21%3A42Z&sp=racwd"),
	// }
}
Output:

func (*FilesClient) Update

func (client *FilesClient) Update(ctx context.Context, groupName string, serviceName string, projectName string, fileName string, parameters ProjectFile, options *FilesClientUpdateOptions) (FilesClientUpdateResponse, error)

Update - This method updates an existing file. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • projectName - Name of the project
  • fileName - Name of the File
  • parameters - Information about the file
  • options - FilesClientUpdateOptions contains the optional parameters for the FilesClient.Update method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Files_Update.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewFilesClient().Update(ctx, "DmsSdkRg", "DmsSdkService", "DmsSdkProject", "x114d023d8", armdatamigration.ProjectFile{
		Properties: &armdatamigration.ProjectFileProperties{
			FilePath: to.Ptr("DmsSdkFilePath/DmsSdkFile.sql"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ProjectFile = armdatamigration.ProjectFile{
	// 	Name: to.Ptr("x114d023d8"),
	// 	Type: to.Ptr("Microsoft.DataMigration/services/projects/files"),
	// 	ID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService/projects/DmsSdkProject/files/x114d023d8"),
	// 	Etag: to.Ptr("C2WE6C3yt2I0hunjpjzffY8LhTLqrJZHJ20gkuq2ZOA="),
	// 	Properties: &armdatamigration.ProjectFileProperties{
	// 		Extension: to.Ptr("sql"),
	// 		FilePath: to.Ptr("DmsSdkFilePath/DmsSdkFile.sql"),
	// 	},
	// }
}
Output:

type FilesClientCreateOrUpdateOptions

type FilesClientCreateOrUpdateOptions struct {
}

FilesClientCreateOrUpdateOptions contains the optional parameters for the FilesClient.CreateOrUpdate method.

type FilesClientCreateOrUpdateResponse

type FilesClientCreateOrUpdateResponse struct {
	// A file resource
	ProjectFile
}

FilesClientCreateOrUpdateResponse contains the response from method FilesClient.CreateOrUpdate.

type FilesClientDeleteOptions

type FilesClientDeleteOptions struct {
}

FilesClientDeleteOptions contains the optional parameters for the FilesClient.Delete method.

type FilesClientDeleteResponse

type FilesClientDeleteResponse struct {
}

FilesClientDeleteResponse contains the response from method FilesClient.Delete.

type FilesClientGetOptions

type FilesClientGetOptions struct {
}

FilesClientGetOptions contains the optional parameters for the FilesClient.Get method.

type FilesClientGetResponse

type FilesClientGetResponse struct {
	// A file resource
	ProjectFile
}

FilesClientGetResponse contains the response from method FilesClient.Get.

type FilesClientListOptions

type FilesClientListOptions struct {
}

FilesClientListOptions contains the optional parameters for the FilesClient.NewListPager method.

type FilesClientListResponse

type FilesClientListResponse struct {
	// OData page of files
	FileList
}

FilesClientListResponse contains the response from method FilesClient.NewListPager.

type FilesClientReadOptions

type FilesClientReadOptions struct {
}

FilesClientReadOptions contains the optional parameters for the FilesClient.Read method.

type FilesClientReadResponse

type FilesClientReadResponse struct {
	// File storage information.
	FileStorageInfo
}

FilesClientReadResponse contains the response from method FilesClient.Read.

type FilesClientReadWriteOptions

type FilesClientReadWriteOptions struct {
}

FilesClientReadWriteOptions contains the optional parameters for the FilesClient.ReadWrite method.

type FilesClientReadWriteResponse

type FilesClientReadWriteResponse struct {
	// File storage information.
	FileStorageInfo
}

FilesClientReadWriteResponse contains the response from method FilesClient.ReadWrite.

type FilesClientUpdateOptions

type FilesClientUpdateOptions struct {
}

FilesClientUpdateOptions contains the optional parameters for the FilesClient.Update method.

type FilesClientUpdateResponse

type FilesClientUpdateResponse struct {
	// A file resource
	ProjectFile
}

FilesClientUpdateResponse contains the response from method FilesClient.Update.

type GetProjectDetailsNonSQLTaskInput

type GetProjectDetailsNonSQLTaskInput struct {
	// REQUIRED; A URL that points to the location to access project artifacts
	ProjectLocation *string

	// REQUIRED; Name of the migration project
	ProjectName *string
}

GetProjectDetailsNonSQLTaskInput - Input for the task that reads configuration from project artifacts

func (GetProjectDetailsNonSQLTaskInput) MarshalJSON added in v1.1.0

func (g GetProjectDetailsNonSQLTaskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GetProjectDetailsNonSQLTaskInput.

func (*GetProjectDetailsNonSQLTaskInput) UnmarshalJSON added in v1.1.0

func (g *GetProjectDetailsNonSQLTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GetProjectDetailsNonSQLTaskInput.

type GetTdeCertificatesSQLTaskInput

type GetTdeCertificatesSQLTaskInput struct {
	// REQUIRED; Backup file share information for file share to be used for temporarily storing files.
	BackupFileShare *FileShare

	// REQUIRED; Connection information for SQL Server
	ConnectionInfo *SQLConnectionInfo

	// REQUIRED; List containing certificate names and corresponding password to use for encrypting the exported certificate.
	SelectedCertificates []*SelectedCertificateInput
}

GetTdeCertificatesSQLTaskInput - Input for the task that gets TDE certificates in Base64 encoded format.

func (GetTdeCertificatesSQLTaskInput) MarshalJSON

func (g GetTdeCertificatesSQLTaskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GetTdeCertificatesSQLTaskInput.

func (*GetTdeCertificatesSQLTaskInput) UnmarshalJSON added in v1.1.0

func (g *GetTdeCertificatesSQLTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GetTdeCertificatesSQLTaskInput.

type GetTdeCertificatesSQLTaskOutput

type GetTdeCertificatesSQLTaskOutput struct {
	// READ-ONLY; Mapping from certificate name to base 64 encoded format.
	Base64EncodedCertificates *string

	// READ-ONLY; Validation errors
	ValidationErrors []*ReportableException
}

GetTdeCertificatesSQLTaskOutput - Output of the task that gets TDE certificates in Base64 encoded format.

func (GetTdeCertificatesSQLTaskOutput) MarshalJSON

func (g GetTdeCertificatesSQLTaskOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GetTdeCertificatesSQLTaskOutput.

func (*GetTdeCertificatesSQLTaskOutput) UnmarshalJSON added in v1.1.0

func (g *GetTdeCertificatesSQLTaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GetTdeCertificatesSQLTaskOutput.

type GetTdeCertificatesSQLTaskProperties

type GetTdeCertificatesSQLTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *GetTdeCertificatesSQLTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []*GetTdeCertificatesSQLTaskOutput

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

GetTdeCertificatesSQLTaskProperties - Properties for the task that gets TDE certificates in Base64 encoded format.

func (*GetTdeCertificatesSQLTaskProperties) GetProjectTaskProperties

func (g *GetTdeCertificatesSQLTaskProperties) GetProjectTaskProperties() *ProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type GetTdeCertificatesSQLTaskProperties.

func (GetTdeCertificatesSQLTaskProperties) MarshalJSON

func (g GetTdeCertificatesSQLTaskProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GetTdeCertificatesSQLTaskProperties.

func (*GetTdeCertificatesSQLTaskProperties) UnmarshalJSON

func (g *GetTdeCertificatesSQLTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GetTdeCertificatesSQLTaskProperties.

type GetUserTablesMySQLTaskInput

type GetUserTablesMySQLTaskInput struct {
	// REQUIRED; Connection information for SQL Server
	ConnectionInfo *MySQLConnectionInfo

	// REQUIRED; List of database names to collect tables for
	SelectedDatabases []*string
}

GetUserTablesMySQLTaskInput - Input for the task that collects user tables for the given list of databases

func (GetUserTablesMySQLTaskInput) MarshalJSON

func (g GetUserTablesMySQLTaskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GetUserTablesMySQLTaskInput.

func (*GetUserTablesMySQLTaskInput) UnmarshalJSON added in v1.1.0

func (g *GetUserTablesMySQLTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GetUserTablesMySQLTaskInput.

type GetUserTablesMySQLTaskOutput

type GetUserTablesMySQLTaskOutput struct {
	// READ-ONLY; Mapping from database name to list of tables
	DatabasesToTables *string

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Validation errors
	ValidationErrors []*ReportableException
}

GetUserTablesMySQLTaskOutput - Output of the task that collects user tables for the given list of databases

func (GetUserTablesMySQLTaskOutput) MarshalJSON

func (g GetUserTablesMySQLTaskOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GetUserTablesMySQLTaskOutput.

func (*GetUserTablesMySQLTaskOutput) UnmarshalJSON added in v1.1.0

func (g *GetUserTablesMySQLTaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GetUserTablesMySQLTaskOutput.

type GetUserTablesMySQLTaskProperties

type GetUserTablesMySQLTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *GetUserTablesMySQLTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []*GetUserTablesMySQLTaskOutput

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

GetUserTablesMySQLTaskProperties - Properties for the task that collects user tables for the given list of databases

func (*GetUserTablesMySQLTaskProperties) GetProjectTaskProperties

func (g *GetUserTablesMySQLTaskProperties) GetProjectTaskProperties() *ProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type GetUserTablesMySQLTaskProperties.

func (GetUserTablesMySQLTaskProperties) MarshalJSON

func (g GetUserTablesMySQLTaskProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GetUserTablesMySQLTaskProperties.

func (*GetUserTablesMySQLTaskProperties) UnmarshalJSON

func (g *GetUserTablesMySQLTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GetUserTablesMySQLTaskProperties.

type GetUserTablesOracleTaskInput

type GetUserTablesOracleTaskInput struct {
	// REQUIRED; Information for connecting to Oracle source
	ConnectionInfo *OracleConnectionInfo

	// REQUIRED; List of Oracle schemas for which to collect tables
	SelectedSchemas []*string
}

GetUserTablesOracleTaskInput - Input for the task that gets the list of tables contained within a provided list of Oracle schemas.

func (GetUserTablesOracleTaskInput) MarshalJSON

func (g GetUserTablesOracleTaskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GetUserTablesOracleTaskInput.

func (*GetUserTablesOracleTaskInput) UnmarshalJSON added in v1.1.0

func (g *GetUserTablesOracleTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GetUserTablesOracleTaskInput.

type GetUserTablesOracleTaskOutput

type GetUserTablesOracleTaskOutput struct {
	// READ-ONLY; The schema this result is for
	SchemaName *string

	// READ-ONLY; List of valid tables found for this schema
	Tables []*DatabaseTable

	// READ-ONLY; Validation errors associated with the task
	ValidationErrors []*ReportableException
}

GetUserTablesOracleTaskOutput - Output for the task that gets the list of tables contained within a provided list of Oracle schemas.

func (GetUserTablesOracleTaskOutput) MarshalJSON

func (g GetUserTablesOracleTaskOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GetUserTablesOracleTaskOutput.

func (*GetUserTablesOracleTaskOutput) UnmarshalJSON added in v1.1.0

func (g *GetUserTablesOracleTaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GetUserTablesOracleTaskOutput.

type GetUserTablesOracleTaskProperties

type GetUserTablesOracleTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *GetUserTablesOracleTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []*GetUserTablesOracleTaskOutput

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

GetUserTablesOracleTaskProperties - Properties for the task that collects user tables for the given list of Oracle schemas

func (*GetUserTablesOracleTaskProperties) GetProjectTaskProperties

func (g *GetUserTablesOracleTaskProperties) GetProjectTaskProperties() *ProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type GetUserTablesOracleTaskProperties.

func (GetUserTablesOracleTaskProperties) MarshalJSON

func (g GetUserTablesOracleTaskProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GetUserTablesOracleTaskProperties.

func (*GetUserTablesOracleTaskProperties) UnmarshalJSON

func (g *GetUserTablesOracleTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GetUserTablesOracleTaskProperties.

type GetUserTablesPostgreSQLTaskInput

type GetUserTablesPostgreSQLTaskInput struct {
	// REQUIRED; Information for connecting to PostgreSQL source
	ConnectionInfo *PostgreSQLConnectionInfo

	// REQUIRED; List of PostgreSQL databases for which to collect tables
	SelectedDatabases []*string
}

GetUserTablesPostgreSQLTaskInput - Input for the task that gets the list of tables for a provided list of PostgreSQL databases.

func (GetUserTablesPostgreSQLTaskInput) MarshalJSON

func (g GetUserTablesPostgreSQLTaskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GetUserTablesPostgreSQLTaskInput.

func (*GetUserTablesPostgreSQLTaskInput) UnmarshalJSON added in v1.1.0

func (g *GetUserTablesPostgreSQLTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GetUserTablesPostgreSQLTaskInput.

type GetUserTablesPostgreSQLTaskOutput

type GetUserTablesPostgreSQLTaskOutput struct {
	// READ-ONLY; The database this result is for
	DatabaseName *string

	// READ-ONLY; List of valid tables found for this database
	Tables []*DatabaseTable

	// READ-ONLY; Validation errors associated with the task
	ValidationErrors []*ReportableException
}

GetUserTablesPostgreSQLTaskOutput - Output for the task that gets the list of tables for a provided list of PostgreSQL databases.

func (GetUserTablesPostgreSQLTaskOutput) MarshalJSON

func (g GetUserTablesPostgreSQLTaskOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GetUserTablesPostgreSQLTaskOutput.

func (*GetUserTablesPostgreSQLTaskOutput) UnmarshalJSON added in v1.1.0

func (g *GetUserTablesPostgreSQLTaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GetUserTablesPostgreSQLTaskOutput.

type GetUserTablesPostgreSQLTaskProperties

type GetUserTablesPostgreSQLTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *GetUserTablesPostgreSQLTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []*GetUserTablesPostgreSQLTaskOutput

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

GetUserTablesPostgreSQLTaskProperties - Properties for the task that collects user tables for the given list of databases

func (*GetUserTablesPostgreSQLTaskProperties) GetProjectTaskProperties

func (g *GetUserTablesPostgreSQLTaskProperties) GetProjectTaskProperties() *ProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type GetUserTablesPostgreSQLTaskProperties.

func (GetUserTablesPostgreSQLTaskProperties) MarshalJSON

func (g GetUserTablesPostgreSQLTaskProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GetUserTablesPostgreSQLTaskProperties.

func (*GetUserTablesPostgreSQLTaskProperties) UnmarshalJSON

func (g *GetUserTablesPostgreSQLTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GetUserTablesPostgreSQLTaskProperties.

type GetUserTablesSQLSyncTaskInput

type GetUserTablesSQLSyncTaskInput struct {
	// REQUIRED; List of source database names to collect tables for
	SelectedSourceDatabases []*string

	// REQUIRED; List of target database names to collect tables for
	SelectedTargetDatabases []*string

	// REQUIRED; Connection information for SQL Server
	SourceConnectionInfo *SQLConnectionInfo

	// REQUIRED; Connection information for SQL DB
	TargetConnectionInfo *SQLConnectionInfo
}

GetUserTablesSQLSyncTaskInput - Input for the task that collects user tables for the given list of databases

func (GetUserTablesSQLSyncTaskInput) MarshalJSON

func (g GetUserTablesSQLSyncTaskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GetUserTablesSQLSyncTaskInput.

func (*GetUserTablesSQLSyncTaskInput) UnmarshalJSON added in v1.1.0

func (g *GetUserTablesSQLSyncTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GetUserTablesSQLSyncTaskInput.

type GetUserTablesSQLSyncTaskOutput

type GetUserTablesSQLSyncTaskOutput struct {
	// READ-ONLY; Mapping from database name to list of source tables
	DatabasesToSourceTables *string

	// READ-ONLY; Mapping from database name to list of target tables
	DatabasesToTargetTables *string

	// READ-ONLY; Mapping from database name to list of validation errors
	TableValidationErrors *string

	// READ-ONLY; Validation errors
	ValidationErrors []*ReportableException
}

GetUserTablesSQLSyncTaskOutput - Output of the task that collects user tables for the given list of databases

func (GetUserTablesSQLSyncTaskOutput) MarshalJSON

func (g GetUserTablesSQLSyncTaskOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GetUserTablesSQLSyncTaskOutput.

func (*GetUserTablesSQLSyncTaskOutput) UnmarshalJSON added in v1.1.0

func (g *GetUserTablesSQLSyncTaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GetUserTablesSQLSyncTaskOutput.

type GetUserTablesSQLSyncTaskProperties

type GetUserTablesSQLSyncTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *GetUserTablesSQLSyncTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []*GetUserTablesSQLSyncTaskOutput

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

GetUserTablesSQLSyncTaskProperties - Properties for the task that collects user tables for the given list of databases

func (*GetUserTablesSQLSyncTaskProperties) GetProjectTaskProperties

func (g *GetUserTablesSQLSyncTaskProperties) GetProjectTaskProperties() *ProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type GetUserTablesSQLSyncTaskProperties.

func (GetUserTablesSQLSyncTaskProperties) MarshalJSON

func (g GetUserTablesSQLSyncTaskProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GetUserTablesSQLSyncTaskProperties.

func (*GetUserTablesSQLSyncTaskProperties) UnmarshalJSON

func (g *GetUserTablesSQLSyncTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GetUserTablesSQLSyncTaskProperties.

type GetUserTablesSQLTaskInput

type GetUserTablesSQLTaskInput struct {
	// REQUIRED; Connection information for SQL Server
	ConnectionInfo *SQLConnectionInfo

	// REQUIRED; List of database names to collect tables for
	SelectedDatabases []*string
}

GetUserTablesSQLTaskInput - Input for the task that collects user tables for the given list of databases

func (GetUserTablesSQLTaskInput) MarshalJSON

func (g GetUserTablesSQLTaskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GetUserTablesSQLTaskInput.

func (*GetUserTablesSQLTaskInput) UnmarshalJSON added in v1.1.0

func (g *GetUserTablesSQLTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GetUserTablesSQLTaskInput.

type GetUserTablesSQLTaskOutput

type GetUserTablesSQLTaskOutput struct {
	// READ-ONLY; Mapping from database name to list of tables
	DatabasesToTables *string

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Validation errors
	ValidationErrors []*ReportableException
}

GetUserTablesSQLTaskOutput - Output of the task that collects user tables for the given list of databases

func (GetUserTablesSQLTaskOutput) MarshalJSON

func (g GetUserTablesSQLTaskOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GetUserTablesSQLTaskOutput.

func (*GetUserTablesSQLTaskOutput) UnmarshalJSON added in v1.1.0

func (g *GetUserTablesSQLTaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GetUserTablesSQLTaskOutput.

type GetUserTablesSQLTaskProperties

type GetUserTablesSQLTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *GetUserTablesSQLTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []*GetUserTablesSQLTaskOutput

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

GetUserTablesSQLTaskProperties - Properties for the task that collects user tables for the given list of databases

func (*GetUserTablesSQLTaskProperties) GetProjectTaskProperties

func (g *GetUserTablesSQLTaskProperties) GetProjectTaskProperties() *ProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type GetUserTablesSQLTaskProperties.

func (GetUserTablesSQLTaskProperties) MarshalJSON

func (g GetUserTablesSQLTaskProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GetUserTablesSQLTaskProperties.

func (*GetUserTablesSQLTaskProperties) UnmarshalJSON

func (g *GetUserTablesSQLTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GetUserTablesSQLTaskProperties.

type InstallOCIDriverTaskInput

type InstallOCIDriverTaskInput struct {
	// Name of the uploaded driver package to install.
	DriverPackageName *string
}

InstallOCIDriverTaskInput - Input for the service task to install an OCI driver.

func (InstallOCIDriverTaskInput) MarshalJSON added in v1.1.0

func (i InstallOCIDriverTaskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InstallOCIDriverTaskInput.

func (*InstallOCIDriverTaskInput) UnmarshalJSON added in v1.1.0

func (i *InstallOCIDriverTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InstallOCIDriverTaskInput.

type InstallOCIDriverTaskOutput

type InstallOCIDriverTaskOutput struct {
	// READ-ONLY; Validation errors
	ValidationErrors []*ReportableException
}

InstallOCIDriverTaskOutput - Output for the service task to install an OCI driver.

func (InstallOCIDriverTaskOutput) MarshalJSON

func (i InstallOCIDriverTaskOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InstallOCIDriverTaskOutput.

func (*InstallOCIDriverTaskOutput) UnmarshalJSON added in v1.1.0

func (i *InstallOCIDriverTaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InstallOCIDriverTaskOutput.

type InstallOCIDriverTaskProperties

type InstallOCIDriverTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Input for the service task to install an OCI driver.
	Input *InstallOCIDriverTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []*InstallOCIDriverTaskOutput

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

InstallOCIDriverTaskProperties - Properties for the task that installs an OCI driver.

func (*InstallOCIDriverTaskProperties) GetProjectTaskProperties

func (i *InstallOCIDriverTaskProperties) GetProjectTaskProperties() *ProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type InstallOCIDriverTaskProperties.

func (InstallOCIDriverTaskProperties) MarshalJSON

func (i InstallOCIDriverTaskProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InstallOCIDriverTaskProperties.

func (*InstallOCIDriverTaskProperties) UnmarshalJSON

func (i *InstallOCIDriverTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InstallOCIDriverTaskProperties.

type LoginMigrationStage

type LoginMigrationStage string

LoginMigrationStage - Enum of the different stage of login migration.

const (
	LoginMigrationStageAssignRoleMembership       LoginMigrationStage = "AssignRoleMembership"
	LoginMigrationStageAssignRoleOwnership        LoginMigrationStage = "AssignRoleOwnership"
	LoginMigrationStageCompleted                  LoginMigrationStage = "Completed"
	LoginMigrationStageEstablishObjectPermissions LoginMigrationStage = "EstablishObjectPermissions"
	LoginMigrationStageEstablishServerPermissions LoginMigrationStage = "EstablishServerPermissions"
	LoginMigrationStageEstablishUserMapping       LoginMigrationStage = "EstablishUserMapping"
	LoginMigrationStageInitialize                 LoginMigrationStage = "Initialize"
	LoginMigrationStageLoginMigration             LoginMigrationStage = "LoginMigration"
	LoginMigrationStageNone                       LoginMigrationStage = "None"
)

func PossibleLoginMigrationStageValues

func PossibleLoginMigrationStageValues() []LoginMigrationStage

PossibleLoginMigrationStageValues returns the possible values for the LoginMigrationStage const type.

type LoginType

type LoginType string

LoginType - Enum mapping of SMO LoginType.

const (
	LoginTypeAsymmetricKey LoginType = "AsymmetricKey"
	LoginTypeCertificate   LoginType = "Certificate"
	LoginTypeExternalGroup LoginType = "ExternalGroup"
	LoginTypeExternalUser  LoginType = "ExternalUser"
	LoginTypeSQLLogin      LoginType = "SqlLogin"
	LoginTypeWindowsGroup  LoginType = "WindowsGroup"
	LoginTypeWindowsUser   LoginType = "WindowsUser"
)

func PossibleLoginTypeValues

func PossibleLoginTypeValues() []LoginType

PossibleLoginTypeValues returns the possible values for the LoginType const type.

type MiSQLConnectionInfo

type MiSQLConnectionInfo struct {
	// REQUIRED; Resource id for Azure SQL database Managed instance
	ManagedInstanceResourceID *string

	// REQUIRED; Type of connection info
	Type *string

	// Password credential.
	Password *string

	// User name
	UserName *string
}

MiSQLConnectionInfo - Properties required to create a connection to Azure SQL database Managed instance

func (*MiSQLConnectionInfo) GetConnectionInfo

func (m *MiSQLConnectionInfo) GetConnectionInfo() *ConnectionInfo

GetConnectionInfo implements the ConnectionInfoClassification interface for type MiSQLConnectionInfo.

func (MiSQLConnectionInfo) MarshalJSON

func (m MiSQLConnectionInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MiSQLConnectionInfo.

func (*MiSQLConnectionInfo) UnmarshalJSON

func (m *MiSQLConnectionInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MiSQLConnectionInfo.

type MigrateMISyncCompleteCommandInput

type MigrateMISyncCompleteCommandInput struct {
	// REQUIRED; Name of managed instance database
	SourceDatabaseName *string
}

MigrateMISyncCompleteCommandInput - Input for command that completes online migration for an Azure SQL Database Managed Instance.

func (MigrateMISyncCompleteCommandInput) MarshalJSON added in v1.1.0

func (m MigrateMISyncCompleteCommandInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateMISyncCompleteCommandInput.

func (*MigrateMISyncCompleteCommandInput) UnmarshalJSON added in v1.1.0

func (m *MigrateMISyncCompleteCommandInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateMISyncCompleteCommandInput.

type MigrateMISyncCompleteCommandOutput

type MigrateMISyncCompleteCommandOutput struct {
	// List of errors that happened during the command execution
	Errors []*ReportableException
}

MigrateMISyncCompleteCommandOutput - Output for command that completes online migration for an Azure SQL Database Managed Instance.

func (MigrateMISyncCompleteCommandOutput) MarshalJSON

func (m MigrateMISyncCompleteCommandOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateMISyncCompleteCommandOutput.

func (*MigrateMISyncCompleteCommandOutput) UnmarshalJSON added in v1.1.0

func (m *MigrateMISyncCompleteCommandOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateMISyncCompleteCommandOutput.

type MigrateMISyncCompleteCommandProperties

type MigrateMISyncCompleteCommandProperties struct {
	// REQUIRED; Command type.
	CommandType *string

	// Command input
	Input *MigrateMISyncCompleteCommandInput

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Command output. This is ignored if submitted.
	Output *MigrateMISyncCompleteCommandOutput

	// READ-ONLY; The state of the command. This is ignored if submitted.
	State *CommandState
}

MigrateMISyncCompleteCommandProperties - Properties for the command that completes online migration for an Azure SQL Database Managed Instance.

func (*MigrateMISyncCompleteCommandProperties) GetCommandProperties

func (m *MigrateMISyncCompleteCommandProperties) GetCommandProperties() *CommandProperties

GetCommandProperties implements the CommandPropertiesClassification interface for type MigrateMISyncCompleteCommandProperties.

func (MigrateMISyncCompleteCommandProperties) MarshalJSON

func (m MigrateMISyncCompleteCommandProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateMISyncCompleteCommandProperties.

func (*MigrateMISyncCompleteCommandProperties) UnmarshalJSON

func (m *MigrateMISyncCompleteCommandProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateMISyncCompleteCommandProperties.

type MigrateMongoDbTaskProperties

type MigrateMongoDbTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Describes how a MongoDB data migration should be performed
	Input *MongoDbMigrationSettings

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY
	Output []MongoDbProgressClassification

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

MigrateMongoDbTaskProperties - Properties for the task that migrates data between MongoDB data sources

func (*MigrateMongoDbTaskProperties) GetProjectTaskProperties

func (m *MigrateMongoDbTaskProperties) GetProjectTaskProperties() *ProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type MigrateMongoDbTaskProperties.

func (MigrateMongoDbTaskProperties) MarshalJSON

func (m MigrateMongoDbTaskProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateMongoDbTaskProperties.

func (*MigrateMongoDbTaskProperties) UnmarshalJSON

func (m *MigrateMongoDbTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateMongoDbTaskProperties.

type MigrateMySQLAzureDbForMySQLOfflineDatabaseInput

type MigrateMySQLAzureDbForMySQLOfflineDatabaseInput struct {
	// Name of the database
	Name *string

	// Mapping of source to target tables
	TableMap map[string]*string

	// Name of target database. Note: Target database will be truncated before starting migration.
	TargetDatabaseName *string
}

MigrateMySQLAzureDbForMySQLOfflineDatabaseInput - Database specific information for offline MySQL to Azure Database for MySQL migration task inputs

func (MigrateMySQLAzureDbForMySQLOfflineDatabaseInput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateMySQLAzureDbForMySQLOfflineDatabaseInput.

func (*MigrateMySQLAzureDbForMySQLOfflineDatabaseInput) UnmarshalJSON added in v1.1.0

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateMySQLAzureDbForMySQLOfflineDatabaseInput.

type MigrateMySQLAzureDbForMySQLOfflineTaskInput

type MigrateMySQLAzureDbForMySQLOfflineTaskInput struct {
	// REQUIRED; Databases to migrate
	SelectedDatabases []*MigrateMySQLAzureDbForMySQLOfflineDatabaseInput

	// REQUIRED; Connection information for source MySQL
	SourceConnectionInfo *MySQLConnectionInfo

	// REQUIRED; Connection information for target Azure Database for MySQL
	TargetConnectionInfo *MySQLConnectionInfo

	// Setting to set the source server read only
	MakeSourceServerReadOnly *bool

	// Optional parameters for fine tuning the data transfer rate during migration
	OptionalAgentSettings map[string]*string

	// Parameter to specify when the migration started
	StartedOn *time.Time
}

MigrateMySQLAzureDbForMySQLOfflineTaskInput - Input for the task that migrates MySQL databases to Azure Database for MySQL for offline migrations

func (MigrateMySQLAzureDbForMySQLOfflineTaskInput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateMySQLAzureDbForMySQLOfflineTaskInput.

func (*MigrateMySQLAzureDbForMySQLOfflineTaskInput) UnmarshalJSON

func (m *MigrateMySQLAzureDbForMySQLOfflineTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateMySQLAzureDbForMySQLOfflineTaskInput.

type MigrateMySQLAzureDbForMySQLOfflineTaskOutput

type MigrateMySQLAzureDbForMySQLOfflineTaskOutput struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Result identifier
	ID *string
}

MigrateMySQLAzureDbForMySQLOfflineTaskOutput - Output for the task that migrates MySQL databases to Azure Database for MySQL for offline migrations

func (*MigrateMySQLAzureDbForMySQLOfflineTaskOutput) GetMigrateMySQLAzureDbForMySQLOfflineTaskOutput

func (m *MigrateMySQLAzureDbForMySQLOfflineTaskOutput) GetMigrateMySQLAzureDbForMySQLOfflineTaskOutput() *MigrateMySQLAzureDbForMySQLOfflineTaskOutput

GetMigrateMySQLAzureDbForMySQLOfflineTaskOutput implements the MigrateMySQLAzureDbForMySQLOfflineTaskOutputClassification interface for type MigrateMySQLAzureDbForMySQLOfflineTaskOutput.

func (MigrateMySQLAzureDbForMySQLOfflineTaskOutput) MarshalJSON added in v1.1.0

MarshalJSON implements the json.Marshaller interface for type MigrateMySQLAzureDbForMySQLOfflineTaskOutput.

func (*MigrateMySQLAzureDbForMySQLOfflineTaskOutput) UnmarshalJSON added in v1.1.0

func (m *MigrateMySQLAzureDbForMySQLOfflineTaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateMySQLAzureDbForMySQLOfflineTaskOutput.

type MigrateMySQLAzureDbForMySQLOfflineTaskOutputClassification

type MigrateMySQLAzureDbForMySQLOfflineTaskOutputClassification interface {
	// GetMigrateMySQLAzureDbForMySQLOfflineTaskOutput returns the MigrateMySQLAzureDbForMySQLOfflineTaskOutput content of the underlying type.
	GetMigrateMySQLAzureDbForMySQLOfflineTaskOutput() *MigrateMySQLAzureDbForMySQLOfflineTaskOutput
}

MigrateMySQLAzureDbForMySQLOfflineTaskOutputClassification provides polymorphic access to related types. Call the interface's GetMigrateMySQLAzureDbForMySQLOfflineTaskOutput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *MigrateMySQLAzureDbForMySQLOfflineTaskOutput, *MigrateMySQLAzureDbForMySQLOfflineTaskOutputDatabaseLevel, *MigrateMySQLAzureDbForMySQLOfflineTaskOutputError, - *MigrateMySQLAzureDbForMySQLOfflineTaskOutputMigrationLevel, *MigrateMySQLAzureDbForMySQLOfflineTaskOutputTableLevel

type MigrateMySQLAzureDbForMySQLOfflineTaskOutputDatabaseLevel

type MigrateMySQLAzureDbForMySQLOfflineTaskOutputDatabaseLevel struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Name of the database
	DatabaseName *string

	// READ-ONLY; Migration end time
	EndedOn *time.Time

	// READ-ONLY; Number of database/object errors.
	ErrorCount *int64

	// READ-ONLY; Wildcard string prefix to use for querying all errors of the item
	ErrorPrefix *string

	// READ-ONLY; Migration exceptions and warnings.
	ExceptionsAndWarnings []*ReportableException

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Last time the storage was updated
	LastStorageUpdate *time.Time

	// READ-ONLY; Migration progress message
	Message *string

	// READ-ONLY; Number of objects
	NumberOfObjects *int64

	// READ-ONLY; Number of successfully completed objects
	NumberOfObjectsCompleted *int64

	// READ-ONLY; Summary of object results in the migration
	ObjectSummary *string

	// READ-ONLY; Wildcard string prefix to use for querying all sub-tem results of the item
	ResultPrefix *string

	// READ-ONLY; Migration stage that this database is in
	Stage *DatabaseMigrationStage

	// READ-ONLY; Migration start time
	StartedOn *time.Time

	// READ-ONLY; Current state of migration
	State *MigrationState

	// READ-ONLY; Status message
	StatusMessage *string
}

func (*MigrateMySQLAzureDbForMySQLOfflineTaskOutputDatabaseLevel) GetMigrateMySQLAzureDbForMySQLOfflineTaskOutput

GetMigrateMySQLAzureDbForMySQLOfflineTaskOutput implements the MigrateMySQLAzureDbForMySQLOfflineTaskOutputClassification interface for type MigrateMySQLAzureDbForMySQLOfflineTaskOutputDatabaseLevel.

func (MigrateMySQLAzureDbForMySQLOfflineTaskOutputDatabaseLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateMySQLAzureDbForMySQLOfflineTaskOutputDatabaseLevel.

func (*MigrateMySQLAzureDbForMySQLOfflineTaskOutputDatabaseLevel) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateMySQLAzureDbForMySQLOfflineTaskOutputDatabaseLevel.

type MigrateMySQLAzureDbForMySQLOfflineTaskOutputError

type MigrateMySQLAzureDbForMySQLOfflineTaskOutputError struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Migration error
	Error *ReportableException

	// READ-ONLY; Result identifier
	ID *string
}

func (*MigrateMySQLAzureDbForMySQLOfflineTaskOutputError) GetMigrateMySQLAzureDbForMySQLOfflineTaskOutput

func (m *MigrateMySQLAzureDbForMySQLOfflineTaskOutputError) GetMigrateMySQLAzureDbForMySQLOfflineTaskOutput() *MigrateMySQLAzureDbForMySQLOfflineTaskOutput

GetMigrateMySQLAzureDbForMySQLOfflineTaskOutput implements the MigrateMySQLAzureDbForMySQLOfflineTaskOutputClassification interface for type MigrateMySQLAzureDbForMySQLOfflineTaskOutputError.

func (MigrateMySQLAzureDbForMySQLOfflineTaskOutputError) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateMySQLAzureDbForMySQLOfflineTaskOutputError.

func (*MigrateMySQLAzureDbForMySQLOfflineTaskOutputError) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateMySQLAzureDbForMySQLOfflineTaskOutputError.

type MigrateMySQLAzureDbForMySQLOfflineTaskOutputMigrationLevel

type MigrateMySQLAzureDbForMySQLOfflineTaskOutputMigrationLevel struct {
	// REQUIRED; Result type
	ResultType *string

	// Selected databases as a map from database name to database id
	Databases *string

	// Migration Report Result, provides unique url for downloading your migration report.
	MigrationReportResult *MigrationReportResult

	// READ-ONLY; Summary of database results in the migration
	DatabaseSummary *string

	// READ-ONLY; Duration of task execution in seconds.
	DurationInSeconds *int64

	// READ-ONLY; Migration end time
	EndedOn *time.Time

	// READ-ONLY; Migration exceptions and warnings.
	ExceptionsAndWarnings []*ReportableException

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Last time the storage was updated
	LastStorageUpdate *time.Time

	// READ-ONLY; Migration progress message
	Message *string

	// READ-ONLY; Source server brand version
	SourceServerBrandVersion *string

	// READ-ONLY; Source server version
	SourceServerVersion *string

	// READ-ONLY; Migration start time
	StartedOn *time.Time

	// READ-ONLY; Current status of migration
	Status *MigrationStatus

	// READ-ONLY; Migration status message
	StatusMessage *string

	// READ-ONLY; Target server brand version
	TargetServerBrandVersion *string

	// READ-ONLY; Target server version
	TargetServerVersion *string
}

func (*MigrateMySQLAzureDbForMySQLOfflineTaskOutputMigrationLevel) GetMigrateMySQLAzureDbForMySQLOfflineTaskOutput

GetMigrateMySQLAzureDbForMySQLOfflineTaskOutput implements the MigrateMySQLAzureDbForMySQLOfflineTaskOutputClassification interface for type MigrateMySQLAzureDbForMySQLOfflineTaskOutputMigrationLevel.

func (MigrateMySQLAzureDbForMySQLOfflineTaskOutputMigrationLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateMySQLAzureDbForMySQLOfflineTaskOutputMigrationLevel.

func (*MigrateMySQLAzureDbForMySQLOfflineTaskOutputMigrationLevel) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateMySQLAzureDbForMySQLOfflineTaskOutputMigrationLevel.

type MigrateMySQLAzureDbForMySQLOfflineTaskOutputTableLevel

type MigrateMySQLAzureDbForMySQLOfflineTaskOutputTableLevel struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Migration end time
	EndedOn *time.Time

	// READ-ONLY; Wildcard string prefix to use for querying all errors of the item
	ErrorPrefix *string

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Number of successfully completed items
	ItemsCompletedCount *int64

	// READ-ONLY; Number of items
	ItemsCount *int64

	// READ-ONLY; Last time the storage was updated
	LastStorageUpdate *time.Time

	// READ-ONLY; Name of the item
	ObjectName *string

	// READ-ONLY; Wildcard string prefix to use for querying all sub-tem results of the item
	ResultPrefix *string

	// READ-ONLY; Migration start time
	StartedOn *time.Time

	// READ-ONLY; Current state of migration
	State *MigrationState

	// READ-ONLY; Status message
	StatusMessage *string
}

func (*MigrateMySQLAzureDbForMySQLOfflineTaskOutputTableLevel) GetMigrateMySQLAzureDbForMySQLOfflineTaskOutput

GetMigrateMySQLAzureDbForMySQLOfflineTaskOutput implements the MigrateMySQLAzureDbForMySQLOfflineTaskOutputClassification interface for type MigrateMySQLAzureDbForMySQLOfflineTaskOutputTableLevel.

func (MigrateMySQLAzureDbForMySQLOfflineTaskOutputTableLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateMySQLAzureDbForMySQLOfflineTaskOutputTableLevel.

func (*MigrateMySQLAzureDbForMySQLOfflineTaskOutputTableLevel) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateMySQLAzureDbForMySQLOfflineTaskOutputTableLevel.

type MigrateMySQLAzureDbForMySQLOfflineTaskProperties

type MigrateMySQLAzureDbForMySQLOfflineTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *MigrateMySQLAzureDbForMySQLOfflineTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []MigrateMySQLAzureDbForMySQLOfflineTaskOutputClassification

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

MigrateMySQLAzureDbForMySQLOfflineTaskProperties - Properties for the task that migrates MySQL databases to Azure Database for MySQL for offline migrations

func (*MigrateMySQLAzureDbForMySQLOfflineTaskProperties) GetProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type MigrateMySQLAzureDbForMySQLOfflineTaskProperties.

func (MigrateMySQLAzureDbForMySQLOfflineTaskProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateMySQLAzureDbForMySQLOfflineTaskProperties.

func (*MigrateMySQLAzureDbForMySQLOfflineTaskProperties) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateMySQLAzureDbForMySQLOfflineTaskProperties.

type MigrateMySQLAzureDbForMySQLSyncDatabaseInput

type MigrateMySQLAzureDbForMySQLSyncDatabaseInput struct {
	// Migration settings which tune the migration behavior
	MigrationSetting map[string]*string

	// Name of the database
	Name *string

	// Source settings to tune source endpoint migration behavior
	SourceSetting map[string]*string

	// Mapping of source to target tables
	TableMap map[string]*string

	// Name of target database. Note: Target database will be truncated before starting migration.
	TargetDatabaseName *string

	// Target settings to tune target endpoint migration behavior
	TargetSetting map[string]*string
}

MigrateMySQLAzureDbForMySQLSyncDatabaseInput - Database specific information for MySQL to Azure Database for MySQL migration task inputs

func (MigrateMySQLAzureDbForMySQLSyncDatabaseInput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateMySQLAzureDbForMySQLSyncDatabaseInput.

func (*MigrateMySQLAzureDbForMySQLSyncDatabaseInput) UnmarshalJSON added in v1.1.0

func (m *MigrateMySQLAzureDbForMySQLSyncDatabaseInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateMySQLAzureDbForMySQLSyncDatabaseInput.

type MigrateMySQLAzureDbForMySQLSyncTaskInput

type MigrateMySQLAzureDbForMySQLSyncTaskInput struct {
	// REQUIRED; Databases to migrate
	SelectedDatabases []*MigrateMySQLAzureDbForMySQLSyncDatabaseInput

	// REQUIRED; Connection information for source MySQL
	SourceConnectionInfo *MySQLConnectionInfo

	// REQUIRED; Connection information for target Azure Database for MySQL
	TargetConnectionInfo *MySQLConnectionInfo
}

MigrateMySQLAzureDbForMySQLSyncTaskInput - Input for the task that migrates MySQL databases to Azure Database for MySQL for online migrations

func (MigrateMySQLAzureDbForMySQLSyncTaskInput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateMySQLAzureDbForMySQLSyncTaskInput.

func (*MigrateMySQLAzureDbForMySQLSyncTaskInput) UnmarshalJSON added in v1.1.0

func (m *MigrateMySQLAzureDbForMySQLSyncTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateMySQLAzureDbForMySQLSyncTaskInput.

type MigrateMySQLAzureDbForMySQLSyncTaskOutput

type MigrateMySQLAzureDbForMySQLSyncTaskOutput struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Result identifier
	ID *string
}

MigrateMySQLAzureDbForMySQLSyncTaskOutput - Output for the task that migrates MySQL databases to Azure Database for MySQL for online migrations

func (*MigrateMySQLAzureDbForMySQLSyncTaskOutput) GetMigrateMySQLAzureDbForMySQLSyncTaskOutput

func (m *MigrateMySQLAzureDbForMySQLSyncTaskOutput) GetMigrateMySQLAzureDbForMySQLSyncTaskOutput() *MigrateMySQLAzureDbForMySQLSyncTaskOutput

GetMigrateMySQLAzureDbForMySQLSyncTaskOutput implements the MigrateMySQLAzureDbForMySQLSyncTaskOutputClassification interface for type MigrateMySQLAzureDbForMySQLSyncTaskOutput.

func (MigrateMySQLAzureDbForMySQLSyncTaskOutput) MarshalJSON added in v1.1.0

MarshalJSON implements the json.Marshaller interface for type MigrateMySQLAzureDbForMySQLSyncTaskOutput.

func (*MigrateMySQLAzureDbForMySQLSyncTaskOutput) UnmarshalJSON added in v1.1.0

func (m *MigrateMySQLAzureDbForMySQLSyncTaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateMySQLAzureDbForMySQLSyncTaskOutput.

type MigrateMySQLAzureDbForMySQLSyncTaskOutputClassification

type MigrateMySQLAzureDbForMySQLSyncTaskOutputClassification interface {
	// GetMigrateMySQLAzureDbForMySQLSyncTaskOutput returns the MigrateMySQLAzureDbForMySQLSyncTaskOutput content of the underlying type.
	GetMigrateMySQLAzureDbForMySQLSyncTaskOutput() *MigrateMySQLAzureDbForMySQLSyncTaskOutput
}

MigrateMySQLAzureDbForMySQLSyncTaskOutputClassification provides polymorphic access to related types. Call the interface's GetMigrateMySQLAzureDbForMySQLSyncTaskOutput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *MigrateMySQLAzureDbForMySQLSyncTaskOutput, *MigrateMySQLAzureDbForMySQLSyncTaskOutputDatabaseError, *MigrateMySQLAzureDbForMySQLSyncTaskOutputDatabaseLevel, - *MigrateMySQLAzureDbForMySQLSyncTaskOutputError, *MigrateMySQLAzureDbForMySQLSyncTaskOutputMigrationLevel, *MigrateMySQLAzureDbForMySQLSyncTaskOutputTableLevel

type MigrateMySQLAzureDbForMySQLSyncTaskOutputDatabaseError

type MigrateMySQLAzureDbForMySQLSyncTaskOutputDatabaseError struct {
	// REQUIRED; Result type
	ResultType *string

	// Error message
	ErrorMessage *string

	// List of error events.
	Events []*SyncMigrationDatabaseErrorEvent

	// READ-ONLY; Result identifier
	ID *string
}

func (*MigrateMySQLAzureDbForMySQLSyncTaskOutputDatabaseError) GetMigrateMySQLAzureDbForMySQLSyncTaskOutput

GetMigrateMySQLAzureDbForMySQLSyncTaskOutput implements the MigrateMySQLAzureDbForMySQLSyncTaskOutputClassification interface for type MigrateMySQLAzureDbForMySQLSyncTaskOutputDatabaseError.

func (MigrateMySQLAzureDbForMySQLSyncTaskOutputDatabaseError) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateMySQLAzureDbForMySQLSyncTaskOutputDatabaseError.

func (*MigrateMySQLAzureDbForMySQLSyncTaskOutputDatabaseError) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateMySQLAzureDbForMySQLSyncTaskOutputDatabaseError.

type MigrateMySQLAzureDbForMySQLSyncTaskOutputDatabaseLevel

type MigrateMySQLAzureDbForMySQLSyncTaskOutputDatabaseLevel struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Number of applied changes
	AppliedChanges *int64

	// READ-ONLY; Number of cdc deletes
	CdcDeleteCounter *int64

	// READ-ONLY; Number of cdc inserts
	CdcInsertCounter *int64

	// READ-ONLY; Number of cdc updates
	CdcUpdateCounter *int64

	// READ-ONLY; Name of the database
	DatabaseName *string

	// READ-ONLY; Migration end time
	EndedOn *time.Time

	// READ-ONLY; Number of tables completed in full load
	FullLoadCompletedTables *int64

	// READ-ONLY; Number of tables errored in full load
	FullLoadErroredTables *int64

	// READ-ONLY; Number of tables loading in full load
	FullLoadLoadingTables *int64

	// READ-ONLY; Number of tables queued in full load
	FullLoadQueuedTables *int64

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Number of incoming changes
	IncomingChanges *int64

	// READ-ONLY; Indicates if initial load (full load) has been completed
	InitializationCompleted *bool

	// READ-ONLY; CDC apply latency
	Latency *int64

	// READ-ONLY; Migration state that this database is in
	MigrationState *SyncDatabaseMigrationReportingState

	// READ-ONLY; Migration start time
	StartedOn *time.Time
}

func (*MigrateMySQLAzureDbForMySQLSyncTaskOutputDatabaseLevel) GetMigrateMySQLAzureDbForMySQLSyncTaskOutput

GetMigrateMySQLAzureDbForMySQLSyncTaskOutput implements the MigrateMySQLAzureDbForMySQLSyncTaskOutputClassification interface for type MigrateMySQLAzureDbForMySQLSyncTaskOutputDatabaseLevel.

func (MigrateMySQLAzureDbForMySQLSyncTaskOutputDatabaseLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateMySQLAzureDbForMySQLSyncTaskOutputDatabaseLevel.

func (*MigrateMySQLAzureDbForMySQLSyncTaskOutputDatabaseLevel) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateMySQLAzureDbForMySQLSyncTaskOutputDatabaseLevel.

type MigrateMySQLAzureDbForMySQLSyncTaskOutputError

type MigrateMySQLAzureDbForMySQLSyncTaskOutputError struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Migration error
	Error *ReportableException

	// READ-ONLY; Result identifier
	ID *string
}

func (*MigrateMySQLAzureDbForMySQLSyncTaskOutputError) GetMigrateMySQLAzureDbForMySQLSyncTaskOutput

func (m *MigrateMySQLAzureDbForMySQLSyncTaskOutputError) GetMigrateMySQLAzureDbForMySQLSyncTaskOutput() *MigrateMySQLAzureDbForMySQLSyncTaskOutput

GetMigrateMySQLAzureDbForMySQLSyncTaskOutput implements the MigrateMySQLAzureDbForMySQLSyncTaskOutputClassification interface for type MigrateMySQLAzureDbForMySQLSyncTaskOutputError.

func (MigrateMySQLAzureDbForMySQLSyncTaskOutputError) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateMySQLAzureDbForMySQLSyncTaskOutputError.

func (*MigrateMySQLAzureDbForMySQLSyncTaskOutputError) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateMySQLAzureDbForMySQLSyncTaskOutputError.

type MigrateMySQLAzureDbForMySQLSyncTaskOutputMigrationLevel

type MigrateMySQLAzureDbForMySQLSyncTaskOutputMigrationLevel struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Migration end time
	EndedOn *time.Time

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Source server name
	SourceServer *string

	// READ-ONLY; Source server version
	SourceServerVersion *string

	// READ-ONLY; Migration start time
	StartedOn *time.Time

	// READ-ONLY; Target server name
	TargetServer *string

	// READ-ONLY; Target server version
	TargetServerVersion *string
}

func (*MigrateMySQLAzureDbForMySQLSyncTaskOutputMigrationLevel) GetMigrateMySQLAzureDbForMySQLSyncTaskOutput

GetMigrateMySQLAzureDbForMySQLSyncTaskOutput implements the MigrateMySQLAzureDbForMySQLSyncTaskOutputClassification interface for type MigrateMySQLAzureDbForMySQLSyncTaskOutputMigrationLevel.

func (MigrateMySQLAzureDbForMySQLSyncTaskOutputMigrationLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateMySQLAzureDbForMySQLSyncTaskOutputMigrationLevel.

func (*MigrateMySQLAzureDbForMySQLSyncTaskOutputMigrationLevel) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateMySQLAzureDbForMySQLSyncTaskOutputMigrationLevel.

type MigrateMySQLAzureDbForMySQLSyncTaskOutputTableLevel

type MigrateMySQLAzureDbForMySQLSyncTaskOutputTableLevel struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Number of applied deletes
	CdcDeleteCounter *string

	// READ-ONLY; Number of applied inserts
	CdcInsertCounter *string

	// READ-ONLY; Number of applied updates
	CdcUpdateCounter *string

	// READ-ONLY; Number of data errors occurred
	DataErrorsCounter *int64

	// READ-ONLY; Name of the database
	DatabaseName *string

	// READ-ONLY; Full load end time
	FullLoadEndedOn *time.Time

	// READ-ONLY; Estimate to finish full load
	FullLoadEstFinishTime *time.Time

	// READ-ONLY; Full load start time
	FullLoadStartedOn *time.Time

	// READ-ONLY; Number of rows applied in full load
	FullLoadTotalRows *int64

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Last modified time on target
	LastModifiedTime *time.Time

	// READ-ONLY; Current state of the table migration
	State *SyncTableMigrationState

	// READ-ONLY; Name of the table
	TableName *string

	// READ-ONLY; Total number of applied changes
	TotalChangesApplied *int64
}

func (*MigrateMySQLAzureDbForMySQLSyncTaskOutputTableLevel) GetMigrateMySQLAzureDbForMySQLSyncTaskOutput

GetMigrateMySQLAzureDbForMySQLSyncTaskOutput implements the MigrateMySQLAzureDbForMySQLSyncTaskOutputClassification interface for type MigrateMySQLAzureDbForMySQLSyncTaskOutputTableLevel.

func (MigrateMySQLAzureDbForMySQLSyncTaskOutputTableLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateMySQLAzureDbForMySQLSyncTaskOutputTableLevel.

func (*MigrateMySQLAzureDbForMySQLSyncTaskOutputTableLevel) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateMySQLAzureDbForMySQLSyncTaskOutputTableLevel.

type MigrateMySQLAzureDbForMySQLSyncTaskProperties

type MigrateMySQLAzureDbForMySQLSyncTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *MigrateMySQLAzureDbForMySQLSyncTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []MigrateMySQLAzureDbForMySQLSyncTaskOutputClassification

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

MigrateMySQLAzureDbForMySQLSyncTaskProperties - Properties for the task that migrates MySQL databases to Azure Database for MySQL for online migrations

func (*MigrateMySQLAzureDbForMySQLSyncTaskProperties) GetProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type MigrateMySQLAzureDbForMySQLSyncTaskProperties.

func (MigrateMySQLAzureDbForMySQLSyncTaskProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateMySQLAzureDbForMySQLSyncTaskProperties.

func (*MigrateMySQLAzureDbForMySQLSyncTaskProperties) UnmarshalJSON

func (m *MigrateMySQLAzureDbForMySQLSyncTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateMySQLAzureDbForMySQLSyncTaskProperties.

type MigrateOracleAzureDbForPostgreSQLSyncTaskProperties

type MigrateOracleAzureDbForPostgreSQLSyncTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *MigrateOracleAzureDbPostgreSQLSyncTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []MigrateOracleAzureDbPostgreSQLSyncTaskOutputClassification

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

MigrateOracleAzureDbForPostgreSQLSyncTaskProperties - Properties for the task that migrates Oracle to Azure Database for PostgreSQL for online migrations

func (*MigrateOracleAzureDbForPostgreSQLSyncTaskProperties) GetProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type MigrateOracleAzureDbForPostgreSQLSyncTaskProperties.

func (MigrateOracleAzureDbForPostgreSQLSyncTaskProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateOracleAzureDbForPostgreSQLSyncTaskProperties.

func (*MigrateOracleAzureDbForPostgreSQLSyncTaskProperties) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateOracleAzureDbForPostgreSQLSyncTaskProperties.

type MigrateOracleAzureDbPostgreSQLSyncDatabaseInput

type MigrateOracleAzureDbPostgreSQLSyncDatabaseInput struct {
	// How to handle object name casing: either Preserve or ToLower
	CaseManipulation *string

	// Migration settings which tune the migration behavior
	MigrationSetting map[string]*string

	// Name of the migration pipeline
	Name *string

	// Name of the source schema
	SchemaName *string

	// Source settings to tune source endpoint migration behavior
	SourceSetting map[string]*string

	// Mapping of source to target tables
	TableMap map[string]*string

	// Name of target database. Note: Target database will be truncated before starting migration.
	TargetDatabaseName *string

	// Target settings to tune target endpoint migration behavior
	TargetSetting map[string]*string
}

MigrateOracleAzureDbPostgreSQLSyncDatabaseInput - Database specific information for Oracle to Azure Database for PostgreSQL migration task inputs

func (MigrateOracleAzureDbPostgreSQLSyncDatabaseInput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateOracleAzureDbPostgreSQLSyncDatabaseInput.

func (*MigrateOracleAzureDbPostgreSQLSyncDatabaseInput) UnmarshalJSON added in v1.1.0

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateOracleAzureDbPostgreSQLSyncDatabaseInput.

type MigrateOracleAzureDbPostgreSQLSyncTaskInput

type MigrateOracleAzureDbPostgreSQLSyncTaskInput struct {
	// REQUIRED; Databases to migrate
	SelectedDatabases []*MigrateOracleAzureDbPostgreSQLSyncDatabaseInput

	// REQUIRED; Connection information for source Oracle
	SourceConnectionInfo *OracleConnectionInfo

	// REQUIRED; Connection information for target Azure Database for PostgreSQL
	TargetConnectionInfo *PostgreSQLConnectionInfo
}

MigrateOracleAzureDbPostgreSQLSyncTaskInput - Input for the task that migrates Oracle databases to Azure Database for PostgreSQL for online migrations

func (MigrateOracleAzureDbPostgreSQLSyncTaskInput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateOracleAzureDbPostgreSQLSyncTaskInput.

func (*MigrateOracleAzureDbPostgreSQLSyncTaskInput) UnmarshalJSON added in v1.1.0

func (m *MigrateOracleAzureDbPostgreSQLSyncTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateOracleAzureDbPostgreSQLSyncTaskInput.

type MigrateOracleAzureDbPostgreSQLSyncTaskOutput

type MigrateOracleAzureDbPostgreSQLSyncTaskOutput struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Result identifier
	ID *string
}

MigrateOracleAzureDbPostgreSQLSyncTaskOutput - Output for the task that migrates Oracle databases to Azure Database for PostgreSQL for online migrations

func (*MigrateOracleAzureDbPostgreSQLSyncTaskOutput) GetMigrateOracleAzureDbPostgreSQLSyncTaskOutput

func (m *MigrateOracleAzureDbPostgreSQLSyncTaskOutput) GetMigrateOracleAzureDbPostgreSQLSyncTaskOutput() *MigrateOracleAzureDbPostgreSQLSyncTaskOutput

GetMigrateOracleAzureDbPostgreSQLSyncTaskOutput implements the MigrateOracleAzureDbPostgreSQLSyncTaskOutputClassification interface for type MigrateOracleAzureDbPostgreSQLSyncTaskOutput.

func (MigrateOracleAzureDbPostgreSQLSyncTaskOutput) MarshalJSON added in v1.1.0

MarshalJSON implements the json.Marshaller interface for type MigrateOracleAzureDbPostgreSQLSyncTaskOutput.

func (*MigrateOracleAzureDbPostgreSQLSyncTaskOutput) UnmarshalJSON added in v1.1.0

func (m *MigrateOracleAzureDbPostgreSQLSyncTaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateOracleAzureDbPostgreSQLSyncTaskOutput.

type MigrateOracleAzureDbPostgreSQLSyncTaskOutputClassification

type MigrateOracleAzureDbPostgreSQLSyncTaskOutputClassification interface {
	// GetMigrateOracleAzureDbPostgreSQLSyncTaskOutput returns the MigrateOracleAzureDbPostgreSQLSyncTaskOutput content of the underlying type.
	GetMigrateOracleAzureDbPostgreSQLSyncTaskOutput() *MigrateOracleAzureDbPostgreSQLSyncTaskOutput
}

MigrateOracleAzureDbPostgreSQLSyncTaskOutputClassification provides polymorphic access to related types. Call the interface's GetMigrateOracleAzureDbPostgreSQLSyncTaskOutput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *MigrateOracleAzureDbPostgreSQLSyncTaskOutput, *MigrateOracleAzureDbPostgreSQLSyncTaskOutputDatabaseError, *MigrateOracleAzureDbPostgreSQLSyncTaskOutputDatabaseLevel, - *MigrateOracleAzureDbPostgreSQLSyncTaskOutputError, *MigrateOracleAzureDbPostgreSQLSyncTaskOutputMigrationLevel, *MigrateOracleAzureDbPostgreSQLSyncTaskOutputTableLevel

type MigrateOracleAzureDbPostgreSQLSyncTaskOutputDatabaseError

type MigrateOracleAzureDbPostgreSQLSyncTaskOutputDatabaseError struct {
	// REQUIRED; Result type
	ResultType *string

	// Error message
	ErrorMessage *string

	// List of error events.
	Events []*SyncMigrationDatabaseErrorEvent

	// READ-ONLY; Result identifier
	ID *string
}

func (*MigrateOracleAzureDbPostgreSQLSyncTaskOutputDatabaseError) GetMigrateOracleAzureDbPostgreSQLSyncTaskOutput

GetMigrateOracleAzureDbPostgreSQLSyncTaskOutput implements the MigrateOracleAzureDbPostgreSQLSyncTaskOutputClassification interface for type MigrateOracleAzureDbPostgreSQLSyncTaskOutputDatabaseError.

func (MigrateOracleAzureDbPostgreSQLSyncTaskOutputDatabaseError) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateOracleAzureDbPostgreSQLSyncTaskOutputDatabaseError.

func (*MigrateOracleAzureDbPostgreSQLSyncTaskOutputDatabaseError) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateOracleAzureDbPostgreSQLSyncTaskOutputDatabaseError.

type MigrateOracleAzureDbPostgreSQLSyncTaskOutputDatabaseLevel

type MigrateOracleAzureDbPostgreSQLSyncTaskOutputDatabaseLevel struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Number of applied changes
	AppliedChanges *int64

	// READ-ONLY; Number of cdc deletes
	CdcDeleteCounter *int64

	// READ-ONLY; Number of cdc inserts
	CdcInsertCounter *int64

	// READ-ONLY; Number of cdc updates
	CdcUpdateCounter *int64

	// READ-ONLY; Name of the database
	DatabaseName *string

	// READ-ONLY; Migration end time
	EndedOn *time.Time

	// READ-ONLY; Number of tables completed in full load
	FullLoadCompletedTables *int64

	// READ-ONLY; Number of tables errored in full load
	FullLoadErroredTables *int64

	// READ-ONLY; Number of tables loading in full load
	FullLoadLoadingTables *int64

	// READ-ONLY; Number of tables queued in full load
	FullLoadQueuedTables *int64

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Number of incoming changes
	IncomingChanges *int64

	// READ-ONLY; Indicates if initial load (full load) has been completed
	InitializationCompleted *bool

	// READ-ONLY; CDC apply latency
	Latency *int64

	// READ-ONLY; Migration state that this database is in
	MigrationState *SyncDatabaseMigrationReportingState

	// READ-ONLY; Migration start time
	StartedOn *time.Time
}

func (*MigrateOracleAzureDbPostgreSQLSyncTaskOutputDatabaseLevel) GetMigrateOracleAzureDbPostgreSQLSyncTaskOutput

GetMigrateOracleAzureDbPostgreSQLSyncTaskOutput implements the MigrateOracleAzureDbPostgreSQLSyncTaskOutputClassification interface for type MigrateOracleAzureDbPostgreSQLSyncTaskOutputDatabaseLevel.

func (MigrateOracleAzureDbPostgreSQLSyncTaskOutputDatabaseLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateOracleAzureDbPostgreSQLSyncTaskOutputDatabaseLevel.

func (*MigrateOracleAzureDbPostgreSQLSyncTaskOutputDatabaseLevel) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateOracleAzureDbPostgreSQLSyncTaskOutputDatabaseLevel.

type MigrateOracleAzureDbPostgreSQLSyncTaskOutputError

type MigrateOracleAzureDbPostgreSQLSyncTaskOutputError struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Migration error
	Error *ReportableException

	// READ-ONLY; Result identifier
	ID *string
}

func (*MigrateOracleAzureDbPostgreSQLSyncTaskOutputError) GetMigrateOracleAzureDbPostgreSQLSyncTaskOutput

func (m *MigrateOracleAzureDbPostgreSQLSyncTaskOutputError) GetMigrateOracleAzureDbPostgreSQLSyncTaskOutput() *MigrateOracleAzureDbPostgreSQLSyncTaskOutput

GetMigrateOracleAzureDbPostgreSQLSyncTaskOutput implements the MigrateOracleAzureDbPostgreSQLSyncTaskOutputClassification interface for type MigrateOracleAzureDbPostgreSQLSyncTaskOutputError.

func (MigrateOracleAzureDbPostgreSQLSyncTaskOutputError) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateOracleAzureDbPostgreSQLSyncTaskOutputError.

func (*MigrateOracleAzureDbPostgreSQLSyncTaskOutputError) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateOracleAzureDbPostgreSQLSyncTaskOutputError.

type MigrateOracleAzureDbPostgreSQLSyncTaskOutputMigrationLevel

type MigrateOracleAzureDbPostgreSQLSyncTaskOutputMigrationLevel struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Migration end time
	EndedOn *time.Time

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Source server name
	SourceServer *string

	// READ-ONLY; Source server version
	SourceServerVersion *string

	// READ-ONLY; Migration start time
	StartedOn *time.Time

	// READ-ONLY; Target server name
	TargetServer *string

	// READ-ONLY; Target server version
	TargetServerVersion *string
}

func (*MigrateOracleAzureDbPostgreSQLSyncTaskOutputMigrationLevel) GetMigrateOracleAzureDbPostgreSQLSyncTaskOutput

GetMigrateOracleAzureDbPostgreSQLSyncTaskOutput implements the MigrateOracleAzureDbPostgreSQLSyncTaskOutputClassification interface for type MigrateOracleAzureDbPostgreSQLSyncTaskOutputMigrationLevel.

func (MigrateOracleAzureDbPostgreSQLSyncTaskOutputMigrationLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateOracleAzureDbPostgreSQLSyncTaskOutputMigrationLevel.

func (*MigrateOracleAzureDbPostgreSQLSyncTaskOutputMigrationLevel) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateOracleAzureDbPostgreSQLSyncTaskOutputMigrationLevel.

type MigrateOracleAzureDbPostgreSQLSyncTaskOutputTableLevel

type MigrateOracleAzureDbPostgreSQLSyncTaskOutputTableLevel struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Number of applied deletes
	CdcDeleteCounter *int64

	// READ-ONLY; Number of applied inserts
	CdcInsertCounter *int64

	// READ-ONLY; Number of applied updates
	CdcUpdateCounter *int64

	// READ-ONLY; Number of data errors occurred
	DataErrorsCounter *int64

	// READ-ONLY; Name of the database
	DatabaseName *string

	// READ-ONLY; Full load end time
	FullLoadEndedOn *time.Time

	// READ-ONLY; Estimate to finish full load
	FullLoadEstFinishTime *time.Time

	// READ-ONLY; Full load start time
	FullLoadStartedOn *time.Time

	// READ-ONLY; Number of rows applied in full load
	FullLoadTotalRows *int64

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Last modified time on target
	LastModifiedTime *time.Time

	// READ-ONLY; Current state of the table migration
	State *SyncTableMigrationState

	// READ-ONLY; Name of the table
	TableName *string

	// READ-ONLY; Total number of applied changes
	TotalChangesApplied *int64
}

func (*MigrateOracleAzureDbPostgreSQLSyncTaskOutputTableLevel) GetMigrateOracleAzureDbPostgreSQLSyncTaskOutput

GetMigrateOracleAzureDbPostgreSQLSyncTaskOutput implements the MigrateOracleAzureDbPostgreSQLSyncTaskOutputClassification interface for type MigrateOracleAzureDbPostgreSQLSyncTaskOutputTableLevel.

func (MigrateOracleAzureDbPostgreSQLSyncTaskOutputTableLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateOracleAzureDbPostgreSQLSyncTaskOutputTableLevel.

func (*MigrateOracleAzureDbPostgreSQLSyncTaskOutputTableLevel) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateOracleAzureDbPostgreSQLSyncTaskOutputTableLevel.

type MigratePostgreSQLAzureDbForPostgreSQLSyncDatabaseInput

type MigratePostgreSQLAzureDbForPostgreSQLSyncDatabaseInput struct {
	// Migration settings which tune the migration behavior
	MigrationSetting map[string]*string

	// Name of the database
	Name *string

	// Tables selected for migration
	SelectedTables []*MigratePostgreSQLAzureDbForPostgreSQLSyncDatabaseTableInput

	// Source settings to tune source endpoint migration behavior
	SourceSetting map[string]*string

	// Name of target database. Note: Target database will be truncated before starting migration.
	TargetDatabaseName *string

	// Target settings to tune target endpoint migration behavior
	TargetSetting map[string]*string
}

MigratePostgreSQLAzureDbForPostgreSQLSyncDatabaseInput - Database specific information for PostgreSQL to Azure Database for PostgreSQL migration task inputs

func (MigratePostgreSQLAzureDbForPostgreSQLSyncDatabaseInput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncDatabaseInput.

func (*MigratePostgreSQLAzureDbForPostgreSQLSyncDatabaseInput) UnmarshalJSON added in v1.1.0

UnmarshalJSON implements the json.Unmarshaller interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncDatabaseInput.

type MigratePostgreSQLAzureDbForPostgreSQLSyncDatabaseTableInput

type MigratePostgreSQLAzureDbForPostgreSQLSyncDatabaseTableInput struct {
	// Name of the table to migrate
	Name *string
}

MigratePostgreSQLAzureDbForPostgreSQLSyncDatabaseTableInput - Selected tables for the migration

func (MigratePostgreSQLAzureDbForPostgreSQLSyncDatabaseTableInput) MarshalJSON added in v1.1.0

MarshalJSON implements the json.Marshaller interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncDatabaseTableInput.

func (*MigratePostgreSQLAzureDbForPostgreSQLSyncDatabaseTableInput) UnmarshalJSON added in v1.1.0

UnmarshalJSON implements the json.Unmarshaller interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncDatabaseTableInput.

type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskInput

type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskInput struct {
	// REQUIRED; Databases to migrate
	SelectedDatabases []*MigratePostgreSQLAzureDbForPostgreSQLSyncDatabaseInput

	// REQUIRED; Connection information for source PostgreSQL
	SourceConnectionInfo *PostgreSQLConnectionInfo

	// REQUIRED; Connection information for target Azure Database for PostgreSQL
	TargetConnectionInfo *PostgreSQLConnectionInfo
}

MigratePostgreSQLAzureDbForPostgreSQLSyncTaskInput - Input for the task that migrates PostgreSQL databases to Azure Database for PostgreSQL for online migrations

func (MigratePostgreSQLAzureDbForPostgreSQLSyncTaskInput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskInput.

func (*MigratePostgreSQLAzureDbForPostgreSQLSyncTaskInput) UnmarshalJSON added in v1.1.0

UnmarshalJSON implements the json.Unmarshaller interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskInput.

type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput

type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Result identifier
	ID *string
}

MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput - Output for the task that migrates PostgreSQL databases to Azure Database for PostgreSQL for online migrations

func (*MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput) GetMigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput

func (m *MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput) GetMigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput() *MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput

GetMigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput implements the MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputClassification interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput.

func (MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput) MarshalJSON added in v1.1.0

MarshalJSON implements the json.Marshaller interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput.

func (*MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput) UnmarshalJSON added in v1.1.0

UnmarshalJSON implements the json.Unmarshaller interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput.

type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputClassification

type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputClassification interface {
	// GetMigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput returns the MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput content of the underlying type.
	GetMigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput() *MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput
}

MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputClassification provides polymorphic access to related types. Call the interface's GetMigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput, *MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputDatabaseError, - *MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputDatabaseLevel, *MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputError, - *MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputMigrationLevel, *MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputTableLevel

type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputDatabaseError

type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputDatabaseError struct {
	// REQUIRED; Result type
	ResultType *string

	// Error message
	ErrorMessage *string

	// List of error events.
	Events []*SyncMigrationDatabaseErrorEvent

	// READ-ONLY; Result identifier
	ID *string
}

func (*MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputDatabaseError) GetMigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput

GetMigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput implements the MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputClassification interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputDatabaseError.

func (MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputDatabaseError) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputDatabaseError.

func (*MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputDatabaseError) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputDatabaseError.

type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputDatabaseLevel

type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputDatabaseLevel struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Number of applied changes
	AppliedChanges *int64

	// READ-ONLY; Number of cdc deletes
	CdcDeleteCounter *int64

	// READ-ONLY; Number of cdc inserts
	CdcInsertCounter *int64

	// READ-ONLY; Number of cdc updates
	CdcUpdateCounter *int64

	// READ-ONLY; Name of the database
	DatabaseName *string

	// READ-ONLY; Migration end time
	EndedOn *time.Time

	// READ-ONLY; Number of tables completed in full load
	FullLoadCompletedTables *int64

	// READ-ONLY; Number of tables errored in full load
	FullLoadErroredTables *int64

	// READ-ONLY; Number of tables loading in full load
	FullLoadLoadingTables *int64

	// READ-ONLY; Number of tables queued in full load
	FullLoadQueuedTables *int64

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Number of incoming changes
	IncomingChanges *int64

	// READ-ONLY; Indicates if initial load (full load) has been completed
	InitializationCompleted *bool

	// READ-ONLY; CDC apply latency
	Latency *int64

	// READ-ONLY; Migration state that this database is in
	MigrationState *SyncDatabaseMigrationReportingState

	// READ-ONLY; Migration start time
	StartedOn *time.Time
}

func (*MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputDatabaseLevel) GetMigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput

GetMigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput implements the MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputClassification interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputDatabaseLevel.

func (MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputDatabaseLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputDatabaseLevel.

func (*MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputDatabaseLevel) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputDatabaseLevel.

type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputError

type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputError struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Migration error
	Error *ReportableException

	// READ-ONLY; Result identifier
	ID *string
}

func (*MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputError) GetMigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput

GetMigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput implements the MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputClassification interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputError.

func (MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputError) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputError.

func (*MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputError) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputError.

type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputMigrationLevel

type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputMigrationLevel struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Migration end time
	EndedOn *time.Time

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Source server name
	SourceServer *string

	// READ-ONLY; Source server type.
	SourceServerType *ScenarioSource

	// READ-ONLY; Source server version
	SourceServerVersion *string

	// READ-ONLY; Migration start time
	StartedOn *time.Time

	// READ-ONLY; Migration status
	State *ReplicateMigrationState

	// READ-ONLY; Target server name
	TargetServer *string

	// READ-ONLY; Target server type.
	TargetServerType *ScenarioTarget

	// READ-ONLY; Target server version
	TargetServerVersion *string
}

func (*MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputMigrationLevel) GetMigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput

GetMigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput implements the MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputClassification interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputMigrationLevel.

func (MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputMigrationLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputMigrationLevel.

func (*MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputMigrationLevel) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputMigrationLevel.

type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputTableLevel

type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputTableLevel struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Number of applied deletes
	CdcDeleteCounter *int64

	// READ-ONLY; Number of applied inserts
	CdcInsertCounter *int64

	// READ-ONLY; Number of applied updates
	CdcUpdateCounter *int64

	// READ-ONLY; Number of data errors occurred
	DataErrorsCounter *int64

	// READ-ONLY; Name of the database
	DatabaseName *string

	// READ-ONLY; Full load end time
	FullLoadEndedOn *time.Time

	// READ-ONLY; Estimate to finish full load
	FullLoadEstFinishTime *time.Time

	// READ-ONLY; Full load start time
	FullLoadStartedOn *time.Time

	// READ-ONLY; Number of rows applied in full load
	FullLoadTotalRows *int64

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Last modified time on target
	LastModifiedTime *time.Time

	// READ-ONLY; Current state of the table migration
	State *SyncTableMigrationState

	// READ-ONLY; Name of the table
	TableName *string

	// READ-ONLY; Total number of applied changes
	TotalChangesApplied *int64
}

func (*MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputTableLevel) GetMigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput

GetMigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput implements the MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputClassification interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputTableLevel.

func (MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputTableLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputTableLevel.

func (*MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputTableLevel) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputTableLevel.

type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskProperties

type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *MigratePostgreSQLAzureDbForPostgreSQLSyncTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutputClassification

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

MigratePostgreSQLAzureDbForPostgreSQLSyncTaskProperties - Properties for the task that migrates PostgreSQL databases to Azure Database for PostgreSQL for online migrations

func (*MigratePostgreSQLAzureDbForPostgreSQLSyncTaskProperties) GetProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskProperties.

func (MigratePostgreSQLAzureDbForPostgreSQLSyncTaskProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskProperties.

func (*MigratePostgreSQLAzureDbForPostgreSQLSyncTaskProperties) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskProperties.

type MigrateSQLServerDatabaseInput

type MigrateSQLServerDatabaseInput struct {
	// The backup and restore folder
	BackupAndRestoreFolder *string

	// The list of database files
	DatabaseFiles []*DatabaseFileInput

	// Name of the database
	Name *string

	// Name of the database at destination
	RestoreDatabaseName *string
}

MigrateSQLServerDatabaseInput - Database specific information for SQL to SQL migration task inputs

func (MigrateSQLServerDatabaseInput) MarshalJSON added in v1.1.0

func (m MigrateSQLServerDatabaseInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerDatabaseInput.

func (*MigrateSQLServerDatabaseInput) UnmarshalJSON added in v1.1.0

func (m *MigrateSQLServerDatabaseInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerDatabaseInput.

type MigrateSQLServerSQLDbDatabaseInput

type MigrateSQLServerSQLDbDatabaseInput struct {
	// Whether to set database read only before migration
	MakeSourceDbReadOnly *bool

	// Name of the database
	Name *string

	// Mapping of source to target tables
	TableMap map[string]*string

	// Name of target database. Note: Target database will be truncated before starting migration.
	TargetDatabaseName *string
}

MigrateSQLServerSQLDbDatabaseInput - Database specific information for SQL to Azure SQL DB migration task inputs

func (MigrateSQLServerSQLDbDatabaseInput) MarshalJSON

func (m MigrateSQLServerSQLDbDatabaseInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLDbDatabaseInput.

func (*MigrateSQLServerSQLDbDatabaseInput) UnmarshalJSON added in v1.1.0

func (m *MigrateSQLServerSQLDbDatabaseInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLDbDatabaseInput.

type MigrateSQLServerSQLDbSyncDatabaseInput

type MigrateSQLServerSQLDbSyncDatabaseInput struct {
	// Unique identifier for database
	ID *string

	// Migration settings which tune the migration behavior
	MigrationSetting map[string]*string

	// Name of database
	Name *string

	// Schema name to be migrated
	SchemaName *string

	// Source settings to tune source endpoint migration behavior
	SourceSetting map[string]*string

	// Mapping of source to target tables
	TableMap map[string]*string

	// Target database name
	TargetDatabaseName *string

	// Target settings to tune target endpoint migration behavior
	TargetSetting map[string]*string
}

MigrateSQLServerSQLDbSyncDatabaseInput - Database specific information for SQL to Azure SQL DB sync migration task inputs

func (MigrateSQLServerSQLDbSyncDatabaseInput) MarshalJSON

func (m MigrateSQLServerSQLDbSyncDatabaseInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLDbSyncDatabaseInput.

func (*MigrateSQLServerSQLDbSyncDatabaseInput) UnmarshalJSON added in v1.1.0

func (m *MigrateSQLServerSQLDbSyncDatabaseInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLDbSyncDatabaseInput.

type MigrateSQLServerSQLDbSyncTaskInput

type MigrateSQLServerSQLDbSyncTaskInput struct {
	// REQUIRED; Databases to migrate
	SelectedDatabases []*MigrateSQLServerSQLDbSyncDatabaseInput

	// REQUIRED; Information for connecting to source
	SourceConnectionInfo *SQLConnectionInfo

	// REQUIRED; Information for connecting to target
	TargetConnectionInfo *SQLConnectionInfo

	// Validation options
	ValidationOptions *MigrationValidationOptions
}

MigrateSQLServerSQLDbSyncTaskInput - Input for the task that migrates on-prem SQL Server databases to Azure SQL Database for online migrations

func (MigrateSQLServerSQLDbSyncTaskInput) MarshalJSON

func (m MigrateSQLServerSQLDbSyncTaskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLDbSyncTaskInput.

func (*MigrateSQLServerSQLDbSyncTaskInput) UnmarshalJSON added in v1.1.0

func (m *MigrateSQLServerSQLDbSyncTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLDbSyncTaskInput.

type MigrateSQLServerSQLDbSyncTaskOutput

type MigrateSQLServerSQLDbSyncTaskOutput struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Result identifier
	ID *string
}

MigrateSQLServerSQLDbSyncTaskOutput - Output for the task that migrates on-prem SQL Server databases to Azure SQL Database for online migrations

func (*MigrateSQLServerSQLDbSyncTaskOutput) GetMigrateSQLServerSQLDbSyncTaskOutput

func (m *MigrateSQLServerSQLDbSyncTaskOutput) GetMigrateSQLServerSQLDbSyncTaskOutput() *MigrateSQLServerSQLDbSyncTaskOutput

GetMigrateSQLServerSQLDbSyncTaskOutput implements the MigrateSQLServerSQLDbSyncTaskOutputClassification interface for type MigrateSQLServerSQLDbSyncTaskOutput.

func (MigrateSQLServerSQLDbSyncTaskOutput) MarshalJSON added in v1.1.0

func (m MigrateSQLServerSQLDbSyncTaskOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLDbSyncTaskOutput.

func (*MigrateSQLServerSQLDbSyncTaskOutput) UnmarshalJSON added in v1.1.0

func (m *MigrateSQLServerSQLDbSyncTaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLDbSyncTaskOutput.

type MigrateSQLServerSQLDbSyncTaskOutputClassification

type MigrateSQLServerSQLDbSyncTaskOutputClassification interface {
	// GetMigrateSQLServerSQLDbSyncTaskOutput returns the MigrateSQLServerSQLDbSyncTaskOutput content of the underlying type.
	GetMigrateSQLServerSQLDbSyncTaskOutput() *MigrateSQLServerSQLDbSyncTaskOutput
}

MigrateSQLServerSQLDbSyncTaskOutputClassification provides polymorphic access to related types. Call the interface's GetMigrateSQLServerSQLDbSyncTaskOutput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *MigrateSQLServerSQLDbSyncTaskOutput, *MigrateSQLServerSQLDbSyncTaskOutputDatabaseError, *MigrateSQLServerSQLDbSyncTaskOutputDatabaseLevel, - *MigrateSQLServerSQLDbSyncTaskOutputError, *MigrateSQLServerSQLDbSyncTaskOutputMigrationLevel, *MigrateSQLServerSQLDbSyncTaskOutputTableLevel

type MigrateSQLServerSQLDbSyncTaskOutputDatabaseError

type MigrateSQLServerSQLDbSyncTaskOutputDatabaseError struct {
	// REQUIRED; Result type
	ResultType *string

	// Error message
	ErrorMessage *string

	// List of error events.
	Events []*SyncMigrationDatabaseErrorEvent

	// READ-ONLY; Result identifier
	ID *string
}

func (*MigrateSQLServerSQLDbSyncTaskOutputDatabaseError) GetMigrateSQLServerSQLDbSyncTaskOutput

GetMigrateSQLServerSQLDbSyncTaskOutput implements the MigrateSQLServerSQLDbSyncTaskOutputClassification interface for type MigrateSQLServerSQLDbSyncTaskOutputDatabaseError.

func (MigrateSQLServerSQLDbSyncTaskOutputDatabaseError) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLDbSyncTaskOutputDatabaseError.

func (*MigrateSQLServerSQLDbSyncTaskOutputDatabaseError) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLDbSyncTaskOutputDatabaseError.

type MigrateSQLServerSQLDbSyncTaskOutputDatabaseLevel

type MigrateSQLServerSQLDbSyncTaskOutputDatabaseLevel struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Number of applied changes
	AppliedChanges *int64

	// READ-ONLY; Number of cdc deletes
	CdcDeleteCounter *int64

	// READ-ONLY; Number of cdc inserts
	CdcInsertCounter *int64

	// READ-ONLY; Number of cdc updates
	CdcUpdateCounter *int64

	// READ-ONLY; Name of the database
	DatabaseName *string

	// READ-ONLY; Migration end time
	EndedOn *time.Time

	// READ-ONLY; Number of tables completed in full load
	FullLoadCompletedTables *int64

	// READ-ONLY; Number of tables errored in full load
	FullLoadErroredTables *int64

	// READ-ONLY; Number of tables loading in full load
	FullLoadLoadingTables *int64

	// READ-ONLY; Number of tables queued in full load
	FullLoadQueuedTables *int64

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Number of incoming changes
	IncomingChanges *int64

	// READ-ONLY; Indicates if initial load (full load) has been completed
	InitializationCompleted *bool

	// READ-ONLY; CDC apply latency
	Latency *int64

	// READ-ONLY; Migration state that this database is in
	MigrationState *SyncDatabaseMigrationReportingState

	// READ-ONLY; Migration start time
	StartedOn *time.Time
}

func (*MigrateSQLServerSQLDbSyncTaskOutputDatabaseLevel) GetMigrateSQLServerSQLDbSyncTaskOutput

GetMigrateSQLServerSQLDbSyncTaskOutput implements the MigrateSQLServerSQLDbSyncTaskOutputClassification interface for type MigrateSQLServerSQLDbSyncTaskOutputDatabaseLevel.

func (MigrateSQLServerSQLDbSyncTaskOutputDatabaseLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLDbSyncTaskOutputDatabaseLevel.

func (*MigrateSQLServerSQLDbSyncTaskOutputDatabaseLevel) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLDbSyncTaskOutputDatabaseLevel.

type MigrateSQLServerSQLDbSyncTaskOutputError

type MigrateSQLServerSQLDbSyncTaskOutputError struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Migration error
	Error *ReportableException

	// READ-ONLY; Result identifier
	ID *string
}

func (*MigrateSQLServerSQLDbSyncTaskOutputError) GetMigrateSQLServerSQLDbSyncTaskOutput

func (m *MigrateSQLServerSQLDbSyncTaskOutputError) GetMigrateSQLServerSQLDbSyncTaskOutput() *MigrateSQLServerSQLDbSyncTaskOutput

GetMigrateSQLServerSQLDbSyncTaskOutput implements the MigrateSQLServerSQLDbSyncTaskOutputClassification interface for type MigrateSQLServerSQLDbSyncTaskOutputError.

func (MigrateSQLServerSQLDbSyncTaskOutputError) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLDbSyncTaskOutputError.

func (*MigrateSQLServerSQLDbSyncTaskOutputError) UnmarshalJSON

func (m *MigrateSQLServerSQLDbSyncTaskOutputError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLDbSyncTaskOutputError.

type MigrateSQLServerSQLDbSyncTaskOutputMigrationLevel

type MigrateSQLServerSQLDbSyncTaskOutputMigrationLevel struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Count of databases
	DatabaseCount *int32

	// READ-ONLY; Migration end time
	EndedOn *time.Time

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Source server name
	SourceServer *string

	// READ-ONLY; Source server version
	SourceServerVersion *string

	// READ-ONLY; Migration start time
	StartedOn *time.Time

	// READ-ONLY; Target server name
	TargetServer *string

	// READ-ONLY; Target server version
	TargetServerVersion *string
}

func (*MigrateSQLServerSQLDbSyncTaskOutputMigrationLevel) GetMigrateSQLServerSQLDbSyncTaskOutput

GetMigrateSQLServerSQLDbSyncTaskOutput implements the MigrateSQLServerSQLDbSyncTaskOutputClassification interface for type MigrateSQLServerSQLDbSyncTaskOutputMigrationLevel.

func (MigrateSQLServerSQLDbSyncTaskOutputMigrationLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLDbSyncTaskOutputMigrationLevel.

func (*MigrateSQLServerSQLDbSyncTaskOutputMigrationLevel) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLDbSyncTaskOutputMigrationLevel.

type MigrateSQLServerSQLDbSyncTaskOutputTableLevel

type MigrateSQLServerSQLDbSyncTaskOutputTableLevel struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Number of applied deletes
	CdcDeleteCounter *int64

	// READ-ONLY; Number of applied inserts
	CdcInsertCounter *int64

	// READ-ONLY; Number of applied updates
	CdcUpdateCounter *int64

	// READ-ONLY; Number of data errors occurred
	DataErrorsCounter *int64

	// READ-ONLY; Name of the database
	DatabaseName *string

	// READ-ONLY; Full load end time
	FullLoadEndedOn *time.Time

	// READ-ONLY; Estimate to finish full load
	FullLoadEstFinishTime *time.Time

	// READ-ONLY; Full load start time
	FullLoadStartedOn *time.Time

	// READ-ONLY; Number of rows applied in full load
	FullLoadTotalRows *int64

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Last modified time on target
	LastModifiedTime *time.Time

	// READ-ONLY; Current state of the table migration
	State *SyncTableMigrationState

	// READ-ONLY; Name of the table
	TableName *string

	// READ-ONLY; Total number of applied changes
	TotalChangesApplied *int64
}

func (*MigrateSQLServerSQLDbSyncTaskOutputTableLevel) GetMigrateSQLServerSQLDbSyncTaskOutput

func (m *MigrateSQLServerSQLDbSyncTaskOutputTableLevel) GetMigrateSQLServerSQLDbSyncTaskOutput() *MigrateSQLServerSQLDbSyncTaskOutput

GetMigrateSQLServerSQLDbSyncTaskOutput implements the MigrateSQLServerSQLDbSyncTaskOutputClassification interface for type MigrateSQLServerSQLDbSyncTaskOutputTableLevel.

func (MigrateSQLServerSQLDbSyncTaskOutputTableLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLDbSyncTaskOutputTableLevel.

func (*MigrateSQLServerSQLDbSyncTaskOutputTableLevel) UnmarshalJSON

func (m *MigrateSQLServerSQLDbSyncTaskOutputTableLevel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLDbSyncTaskOutputTableLevel.

type MigrateSQLServerSQLDbSyncTaskProperties

type MigrateSQLServerSQLDbSyncTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *MigrateSQLServerSQLDbSyncTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []MigrateSQLServerSQLDbSyncTaskOutputClassification

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

MigrateSQLServerSQLDbSyncTaskProperties - Properties for the task that migrates on-prem SQL Server databases to Azure SQL Database for online migrations

func (*MigrateSQLServerSQLDbSyncTaskProperties) GetProjectTaskProperties

func (m *MigrateSQLServerSQLDbSyncTaskProperties) GetProjectTaskProperties() *ProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type MigrateSQLServerSQLDbSyncTaskProperties.

func (MigrateSQLServerSQLDbSyncTaskProperties) MarshalJSON

func (m MigrateSQLServerSQLDbSyncTaskProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLDbSyncTaskProperties.

func (*MigrateSQLServerSQLDbSyncTaskProperties) UnmarshalJSON

func (m *MigrateSQLServerSQLDbSyncTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLDbSyncTaskProperties.

type MigrateSQLServerSQLDbTaskInput

type MigrateSQLServerSQLDbTaskInput struct {
	// REQUIRED; Databases to migrate
	SelectedDatabases []*MigrateSQLServerSQLDbDatabaseInput

	// REQUIRED; Information for connecting to source
	SourceConnectionInfo *SQLConnectionInfo

	// REQUIRED; Information for connecting to target
	TargetConnectionInfo *SQLConnectionInfo

	// Options for enabling various post migration validations. Available options, 1.) Data Integrity Check: Performs a checksum
	// based comparison on source and target tables after the migration to ensure the
	// correctness of the data. 2.) Schema Validation: Performs a thorough schema comparison between the source and target tables
	// and provides a list of differences between the source and target database,
	// 3.) Query Analysis: Executes a set of queries picked up automatically either from the Query Plan Cache or Query Store and
	// execute them and compares the execution time between the source and target
	// database.
	ValidationOptions *MigrationValidationOptions
}

MigrateSQLServerSQLDbTaskInput - Input for the task that migrates on-prem SQL Server databases to Azure SQL Database

func (MigrateSQLServerSQLDbTaskInput) MarshalJSON

func (m MigrateSQLServerSQLDbTaskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLDbTaskInput.

func (*MigrateSQLServerSQLDbTaskInput) UnmarshalJSON added in v1.1.0

func (m *MigrateSQLServerSQLDbTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLDbTaskInput.

type MigrateSQLServerSQLDbTaskOutput

type MigrateSQLServerSQLDbTaskOutput struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Result identifier
	ID *string
}

MigrateSQLServerSQLDbTaskOutput - Output for the task that migrates on-prem SQL Server databases to Azure SQL Database

func (*MigrateSQLServerSQLDbTaskOutput) GetMigrateSQLServerSQLDbTaskOutput

func (m *MigrateSQLServerSQLDbTaskOutput) GetMigrateSQLServerSQLDbTaskOutput() *MigrateSQLServerSQLDbTaskOutput

GetMigrateSQLServerSQLDbTaskOutput implements the MigrateSQLServerSQLDbTaskOutputClassification interface for type MigrateSQLServerSQLDbTaskOutput.

func (MigrateSQLServerSQLDbTaskOutput) MarshalJSON added in v1.1.0

func (m MigrateSQLServerSQLDbTaskOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLDbTaskOutput.

func (*MigrateSQLServerSQLDbTaskOutput) UnmarshalJSON added in v1.1.0

func (m *MigrateSQLServerSQLDbTaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLDbTaskOutput.

type MigrateSQLServerSQLDbTaskOutputClassification

type MigrateSQLServerSQLDbTaskOutputClassification interface {
	// GetMigrateSQLServerSQLDbTaskOutput returns the MigrateSQLServerSQLDbTaskOutput content of the underlying type.
	GetMigrateSQLServerSQLDbTaskOutput() *MigrateSQLServerSQLDbTaskOutput
}

MigrateSQLServerSQLDbTaskOutputClassification provides polymorphic access to related types. Call the interface's GetMigrateSQLServerSQLDbTaskOutput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *MigrateSQLServerSQLDbTaskOutput, *MigrateSQLServerSQLDbTaskOutputDatabaseLevel, *MigrateSQLServerSQLDbTaskOutputDatabaseLevelValidationResult, - *MigrateSQLServerSQLDbTaskOutputError, *MigrateSQLServerSQLDbTaskOutputMigrationLevel, *MigrateSQLServerSQLDbTaskOutputTableLevel, - *MigrateSQLServerSQLDbTaskOutputValidationResult

type MigrateSQLServerSQLDbTaskOutputDatabaseLevel

type MigrateSQLServerSQLDbTaskOutputDatabaseLevel struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Name of the item
	DatabaseName *string

	// READ-ONLY; Migration end time
	EndedOn *time.Time

	// READ-ONLY; Number of database/object errors.
	ErrorCount *int64

	// READ-ONLY; Wildcard string prefix to use for querying all errors of the item
	ErrorPrefix *string

	// READ-ONLY; Migration exceptions and warnings.
	ExceptionsAndWarnings []*ReportableException

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Migration progress message
	Message *string

	// READ-ONLY; Number of objects
	NumberOfObjects *int64

	// READ-ONLY; Number of successfully completed objects
	NumberOfObjectsCompleted *int64

	// READ-ONLY; Summary of object results in the migration
	ObjectSummary *string

	// READ-ONLY; Wildcard string prefix to use for querying all sub-tem results of the item
	ResultPrefix *string

	// READ-ONLY; Migration stage that this database is in
	Stage *DatabaseMigrationStage

	// READ-ONLY; Migration start time
	StartedOn *time.Time

	// READ-ONLY; Current state of migration
	State *MigrationState

	// READ-ONLY; Status message
	StatusMessage *string
}

func (*MigrateSQLServerSQLDbTaskOutputDatabaseLevel) GetMigrateSQLServerSQLDbTaskOutput

func (m *MigrateSQLServerSQLDbTaskOutputDatabaseLevel) GetMigrateSQLServerSQLDbTaskOutput() *MigrateSQLServerSQLDbTaskOutput

GetMigrateSQLServerSQLDbTaskOutput implements the MigrateSQLServerSQLDbTaskOutputClassification interface for type MigrateSQLServerSQLDbTaskOutputDatabaseLevel.

func (MigrateSQLServerSQLDbTaskOutputDatabaseLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLDbTaskOutputDatabaseLevel.

func (*MigrateSQLServerSQLDbTaskOutputDatabaseLevel) UnmarshalJSON

func (m *MigrateSQLServerSQLDbTaskOutputDatabaseLevel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLDbTaskOutputDatabaseLevel.

type MigrateSQLServerSQLDbTaskOutputDatabaseLevelValidationResult

type MigrateSQLServerSQLDbTaskOutputDatabaseLevelValidationResult struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Provides data integrity validation result between the source and target tables that are migrated.
	DataIntegrityValidationResult *DataIntegrityValidationResult

	// READ-ONLY; Validation end time
	EndedOn *time.Time

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Migration Identifier
	MigrationID *string

	// READ-ONLY; Results of some of the query execution result between source and target database
	QueryAnalysisValidationResult *QueryAnalysisValidationResult

	// READ-ONLY; Provides schema comparison result between source and target database
	SchemaValidationResult *SchemaComparisonValidationResult

	// READ-ONLY; Name of the source database
	SourceDatabaseName *string

	// READ-ONLY; Validation start time
	StartedOn *time.Time

	// READ-ONLY; Current status of validation at the database level
	Status *ValidationStatus

	// READ-ONLY; Name of the target database
	TargetDatabaseName *string
}

func (*MigrateSQLServerSQLDbTaskOutputDatabaseLevelValidationResult) GetMigrateSQLServerSQLDbTaskOutput

GetMigrateSQLServerSQLDbTaskOutput implements the MigrateSQLServerSQLDbTaskOutputClassification interface for type MigrateSQLServerSQLDbTaskOutputDatabaseLevelValidationResult.

func (MigrateSQLServerSQLDbTaskOutputDatabaseLevelValidationResult) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLDbTaskOutputDatabaseLevelValidationResult.

func (*MigrateSQLServerSQLDbTaskOutputDatabaseLevelValidationResult) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLDbTaskOutputDatabaseLevelValidationResult.

type MigrateSQLServerSQLDbTaskOutputError

type MigrateSQLServerSQLDbTaskOutputError struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Migration error
	Error *ReportableException

	// READ-ONLY; Result identifier
	ID *string
}

func (*MigrateSQLServerSQLDbTaskOutputError) GetMigrateSQLServerSQLDbTaskOutput

func (m *MigrateSQLServerSQLDbTaskOutputError) GetMigrateSQLServerSQLDbTaskOutput() *MigrateSQLServerSQLDbTaskOutput

GetMigrateSQLServerSQLDbTaskOutput implements the MigrateSQLServerSQLDbTaskOutputClassification interface for type MigrateSQLServerSQLDbTaskOutputError.

func (MigrateSQLServerSQLDbTaskOutputError) MarshalJSON

func (m MigrateSQLServerSQLDbTaskOutputError) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLDbTaskOutputError.

func (*MigrateSQLServerSQLDbTaskOutputError) UnmarshalJSON

func (m *MigrateSQLServerSQLDbTaskOutputError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLDbTaskOutputError.

type MigrateSQLServerSQLDbTaskOutputMigrationLevel

type MigrateSQLServerSQLDbTaskOutputMigrationLevel struct {
	// REQUIRED; Result type
	ResultType *string

	// Migration Report Result, provides unique url for downloading your migration report.
	MigrationReportResult *MigrationReportResult

	// Migration Validation Results
	MigrationValidationResult *MigrationValidationResult

	// READ-ONLY; Summary of database results in the migration
	DatabaseSummary *string

	// READ-ONLY; Selected databases as a map from database name to database id
	Databases *string

	// READ-ONLY; Duration of task execution in seconds.
	DurationInSeconds *int64

	// READ-ONLY; Migration end time
	EndedOn *time.Time

	// READ-ONLY; Migration exceptions and warnings.
	ExceptionsAndWarnings []*ReportableException

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Migration progress message
	Message *string

	// READ-ONLY; Source server brand version
	SourceServerBrandVersion *string

	// READ-ONLY; Source server version
	SourceServerVersion *string

	// READ-ONLY; Migration start time
	StartedOn *time.Time

	// READ-ONLY; Current status of migration
	Status *MigrationStatus

	// READ-ONLY; Migration status message
	StatusMessage *string

	// READ-ONLY; Target server brand version
	TargetServerBrandVersion *string

	// READ-ONLY; Target server version
	TargetServerVersion *string
}

func (*MigrateSQLServerSQLDbTaskOutputMigrationLevel) GetMigrateSQLServerSQLDbTaskOutput

func (m *MigrateSQLServerSQLDbTaskOutputMigrationLevel) GetMigrateSQLServerSQLDbTaskOutput() *MigrateSQLServerSQLDbTaskOutput

GetMigrateSQLServerSQLDbTaskOutput implements the MigrateSQLServerSQLDbTaskOutputClassification interface for type MigrateSQLServerSQLDbTaskOutputMigrationLevel.

func (MigrateSQLServerSQLDbTaskOutputMigrationLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLDbTaskOutputMigrationLevel.

func (*MigrateSQLServerSQLDbTaskOutputMigrationLevel) UnmarshalJSON

func (m *MigrateSQLServerSQLDbTaskOutputMigrationLevel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLDbTaskOutputMigrationLevel.

type MigrateSQLServerSQLDbTaskOutputTableLevel

type MigrateSQLServerSQLDbTaskOutputTableLevel struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Migration end time
	EndedOn *time.Time

	// READ-ONLY; Wildcard string prefix to use for querying all errors of the item
	ErrorPrefix *string

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Number of successfully completed items
	ItemsCompletedCount *int64

	// READ-ONLY; Number of items
	ItemsCount *int64

	// READ-ONLY; Name of the item
	ObjectName *string

	// READ-ONLY; Wildcard string prefix to use for querying all sub-tem results of the item
	ResultPrefix *string

	// READ-ONLY; Migration start time
	StartedOn *time.Time

	// READ-ONLY; Current state of migration
	State *MigrationState

	// READ-ONLY; Status message
	StatusMessage *string
}

func (*MigrateSQLServerSQLDbTaskOutputTableLevel) GetMigrateSQLServerSQLDbTaskOutput

func (m *MigrateSQLServerSQLDbTaskOutputTableLevel) GetMigrateSQLServerSQLDbTaskOutput() *MigrateSQLServerSQLDbTaskOutput

GetMigrateSQLServerSQLDbTaskOutput implements the MigrateSQLServerSQLDbTaskOutputClassification interface for type MigrateSQLServerSQLDbTaskOutputTableLevel.

func (MigrateSQLServerSQLDbTaskOutputTableLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLDbTaskOutputTableLevel.

func (*MigrateSQLServerSQLDbTaskOutputTableLevel) UnmarshalJSON

func (m *MigrateSQLServerSQLDbTaskOutputTableLevel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLDbTaskOutputTableLevel.

type MigrateSQLServerSQLDbTaskOutputValidationResult

type MigrateSQLServerSQLDbTaskOutputValidationResult struct {
	// REQUIRED; Result type
	ResultType *string

	// Validation summary results for each database
	SummaryResults map[string]*MigrationValidationDatabaseSummaryResult

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Migration Identifier
	MigrationID *string

	// READ-ONLY; Current status of validation at the migration level. Status from the database validation result status will
	// be aggregated here.
	Status *ValidationStatus
}

func (*MigrateSQLServerSQLDbTaskOutputValidationResult) GetMigrateSQLServerSQLDbTaskOutput

GetMigrateSQLServerSQLDbTaskOutput implements the MigrateSQLServerSQLDbTaskOutputClassification interface for type MigrateSQLServerSQLDbTaskOutputValidationResult.

func (MigrateSQLServerSQLDbTaskOutputValidationResult) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLDbTaskOutputValidationResult.

func (*MigrateSQLServerSQLDbTaskOutputValidationResult) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLDbTaskOutputValidationResult.

type MigrateSQLServerSQLDbTaskProperties

type MigrateSQLServerSQLDbTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *MigrateSQLServerSQLDbTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []MigrateSQLServerSQLDbTaskOutputClassification

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

MigrateSQLServerSQLDbTaskProperties - Properties for the task that migrates on-prem SQL Server databases to Azure SQL Database

func (*MigrateSQLServerSQLDbTaskProperties) GetProjectTaskProperties

func (m *MigrateSQLServerSQLDbTaskProperties) GetProjectTaskProperties() *ProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type MigrateSQLServerSQLDbTaskProperties.

func (MigrateSQLServerSQLDbTaskProperties) MarshalJSON

func (m MigrateSQLServerSQLDbTaskProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLDbTaskProperties.

func (*MigrateSQLServerSQLDbTaskProperties) UnmarshalJSON

func (m *MigrateSQLServerSQLDbTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLDbTaskProperties.

type MigrateSQLServerSQLMIDatabaseInput

type MigrateSQLServerSQLMIDatabaseInput struct {
	// REQUIRED; Name of the database
	Name *string

	// REQUIRED; Name of the database at destination
	RestoreDatabaseName *string

	// The list of backup files to be used in case of existing backups.
	BackupFilePaths []*string

	// Backup file share information for backing up this database.
	BackupFileShare *FileShare
}

MigrateSQLServerSQLMIDatabaseInput - Database specific information for SQL to Azure SQL DB Managed Instance migration task inputs

func (MigrateSQLServerSQLMIDatabaseInput) MarshalJSON

func (m MigrateSQLServerSQLMIDatabaseInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLMIDatabaseInput.

func (*MigrateSQLServerSQLMIDatabaseInput) UnmarshalJSON added in v1.1.0

func (m *MigrateSQLServerSQLMIDatabaseInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLMIDatabaseInput.

type MigrateSQLServerSQLMISyncTaskInput

type MigrateSQLServerSQLMISyncTaskInput struct {
	// REQUIRED; Azure Active Directory Application the DMS instance will use to connect to the target instance of Azure SQL Database
	// Managed Instance and the Azure Storage Account
	AzureApp *AzureActiveDirectoryApp

	// REQUIRED; Databases to migrate
	SelectedDatabases []*MigrateSQLServerSQLMIDatabaseInput

	// REQUIRED; Connection information for source SQL Server
	SourceConnectionInfo *SQLConnectionInfo

	// REQUIRED; Fully qualified resourceId of storage
	StorageResourceID *string

	// REQUIRED; Connection information for Azure SQL Database Managed Instance
	TargetConnectionInfo *MiSQLConnectionInfo

	// Backup file share information for all selected databases.
	BackupFileShare *FileShare
}

MigrateSQLServerSQLMISyncTaskInput - Input for task that migrates SQL Server databases to Azure SQL Database Managed Instance online scenario.

func (MigrateSQLServerSQLMISyncTaskInput) MarshalJSON

func (m MigrateSQLServerSQLMISyncTaskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLMISyncTaskInput.

func (*MigrateSQLServerSQLMISyncTaskInput) UnmarshalJSON added in v1.1.0

func (m *MigrateSQLServerSQLMISyncTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLMISyncTaskInput.

type MigrateSQLServerSQLMISyncTaskOutput

type MigrateSQLServerSQLMISyncTaskOutput struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Result identifier
	ID *string
}

MigrateSQLServerSQLMISyncTaskOutput - Output for task that migrates SQL Server databases to Azure SQL Database Managed Instance using Log Replay Service.

func (*MigrateSQLServerSQLMISyncTaskOutput) GetMigrateSQLServerSQLMISyncTaskOutput

func (m *MigrateSQLServerSQLMISyncTaskOutput) GetMigrateSQLServerSQLMISyncTaskOutput() *MigrateSQLServerSQLMISyncTaskOutput

GetMigrateSQLServerSQLMISyncTaskOutput implements the MigrateSQLServerSQLMISyncTaskOutputClassification interface for type MigrateSQLServerSQLMISyncTaskOutput.

func (MigrateSQLServerSQLMISyncTaskOutput) MarshalJSON added in v1.1.0

func (m MigrateSQLServerSQLMISyncTaskOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLMISyncTaskOutput.

func (*MigrateSQLServerSQLMISyncTaskOutput) UnmarshalJSON added in v1.1.0

func (m *MigrateSQLServerSQLMISyncTaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLMISyncTaskOutput.

type MigrateSQLServerSQLMISyncTaskOutputClassification

type MigrateSQLServerSQLMISyncTaskOutputClassification interface {
	// GetMigrateSQLServerSQLMISyncTaskOutput returns the MigrateSQLServerSQLMISyncTaskOutput content of the underlying type.
	GetMigrateSQLServerSQLMISyncTaskOutput() *MigrateSQLServerSQLMISyncTaskOutput
}

MigrateSQLServerSQLMISyncTaskOutputClassification provides polymorphic access to related types. Call the interface's GetMigrateSQLServerSQLMISyncTaskOutput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *MigrateSQLServerSQLMISyncTaskOutput, *MigrateSQLServerSQLMISyncTaskOutputDatabaseLevel, *MigrateSQLServerSQLMISyncTaskOutputError, - *MigrateSQLServerSQLMISyncTaskOutputMigrationLevel

type MigrateSQLServerSQLMISyncTaskOutputDatabaseLevel

type MigrateSQLServerSQLMISyncTaskOutputDatabaseLevel struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Backup sets that are currently active (Either being uploaded or getting restored)
	ActiveBackupSets []*BackupSetInfo

	// READ-ONLY; Name of container created in the Azure Storage account where backups are copied to
	ContainerName *string

	// READ-ONLY; Database migration end time
	EndedOn *time.Time

	// READ-ONLY; prefix string to use for querying errors for this database
	ErrorPrefix *string

	// READ-ONLY; Migration exceptions and warnings
	ExceptionsAndWarnings []*ReportableException

	// READ-ONLY; Details of full backup set
	FullBackupSetInfo *BackupSetInfo

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Whether full backup has been applied to the target database or not
	IsFullBackupRestored *bool

	// READ-ONLY; Last applied backup set information
	LastRestoredBackupSetInfo *BackupSetInfo

	// READ-ONLY; Current state of database
	MigrationState *DatabaseMigrationState

	// READ-ONLY; Name of the database
	SourceDatabaseName *string

	// READ-ONLY; Database migration start time
	StartedOn *time.Time
}

func (*MigrateSQLServerSQLMISyncTaskOutputDatabaseLevel) GetMigrateSQLServerSQLMISyncTaskOutput

GetMigrateSQLServerSQLMISyncTaskOutput implements the MigrateSQLServerSQLMISyncTaskOutputClassification interface for type MigrateSQLServerSQLMISyncTaskOutputDatabaseLevel.

func (MigrateSQLServerSQLMISyncTaskOutputDatabaseLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLMISyncTaskOutputDatabaseLevel.

func (*MigrateSQLServerSQLMISyncTaskOutputDatabaseLevel) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLMISyncTaskOutputDatabaseLevel.

type MigrateSQLServerSQLMISyncTaskOutputError

type MigrateSQLServerSQLMISyncTaskOutputError struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Migration error
	Error *ReportableException

	// READ-ONLY; Result identifier
	ID *string
}

func (*MigrateSQLServerSQLMISyncTaskOutputError) GetMigrateSQLServerSQLMISyncTaskOutput

func (m *MigrateSQLServerSQLMISyncTaskOutputError) GetMigrateSQLServerSQLMISyncTaskOutput() *MigrateSQLServerSQLMISyncTaskOutput

GetMigrateSQLServerSQLMISyncTaskOutput implements the MigrateSQLServerSQLMISyncTaskOutputClassification interface for type MigrateSQLServerSQLMISyncTaskOutputError.

func (MigrateSQLServerSQLMISyncTaskOutputError) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLMISyncTaskOutputError.

func (*MigrateSQLServerSQLMISyncTaskOutputError) UnmarshalJSON

func (m *MigrateSQLServerSQLMISyncTaskOutputError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLMISyncTaskOutputError.

type MigrateSQLServerSQLMISyncTaskOutputMigrationLevel

type MigrateSQLServerSQLMISyncTaskOutputMigrationLevel struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Count of databases
	DatabaseCount *int32

	// READ-ONLY; Number of database level errors
	DatabaseErrorCount *int32

	// READ-ONLY; Migration end time
	EndedOn *time.Time

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Source server brand version
	SourceServerBrandVersion *string

	// READ-ONLY; Source server name
	SourceServerName *string

	// READ-ONLY; Source server version
	SourceServerVersion *string

	// READ-ONLY; Migration start time
	StartedOn *time.Time

	// READ-ONLY; Current state of migration
	State *MigrationState

	// READ-ONLY; Target server brand version
	TargetServerBrandVersion *string

	// READ-ONLY; Target server name
	TargetServerName *string

	// READ-ONLY; Target server version
	TargetServerVersion *string
}

func (*MigrateSQLServerSQLMISyncTaskOutputMigrationLevel) GetMigrateSQLServerSQLMISyncTaskOutput

GetMigrateSQLServerSQLMISyncTaskOutput implements the MigrateSQLServerSQLMISyncTaskOutputClassification interface for type MigrateSQLServerSQLMISyncTaskOutputMigrationLevel.

func (MigrateSQLServerSQLMISyncTaskOutputMigrationLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLMISyncTaskOutputMigrationLevel.

func (*MigrateSQLServerSQLMISyncTaskOutputMigrationLevel) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLMISyncTaskOutputMigrationLevel.

type MigrateSQLServerSQLMISyncTaskProperties

type MigrateSQLServerSQLMISyncTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *MigrateSQLServerSQLMISyncTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []MigrateSQLServerSQLMISyncTaskOutputClassification

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

MigrateSQLServerSQLMISyncTaskProperties - Properties for task that migrates SQL Server databases to Azure SQL Database Managed Instance sync scenario

func (*MigrateSQLServerSQLMISyncTaskProperties) GetProjectTaskProperties

func (m *MigrateSQLServerSQLMISyncTaskProperties) GetProjectTaskProperties() *ProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type MigrateSQLServerSQLMISyncTaskProperties.

func (MigrateSQLServerSQLMISyncTaskProperties) MarshalJSON

func (m MigrateSQLServerSQLMISyncTaskProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLMISyncTaskProperties.

func (*MigrateSQLServerSQLMISyncTaskProperties) UnmarshalJSON

func (m *MigrateSQLServerSQLMISyncTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLMISyncTaskProperties.

type MigrateSQLServerSQLMITaskInput

type MigrateSQLServerSQLMITaskInput struct {
	// REQUIRED; SAS URI of Azure Storage Account Container to be used for storing backup files.
	BackupBlobShare *BlobShare

	// REQUIRED; Databases to migrate
	SelectedDatabases []*MigrateSQLServerSQLMIDatabaseInput

	// REQUIRED; Information for connecting to source
	SourceConnectionInfo *SQLConnectionInfo

	// REQUIRED; Information for connecting to target
	TargetConnectionInfo *SQLConnectionInfo

	// Azure Active Directory domain name in the format of 'contoso.com' for federated Azure AD or 'contoso.onmicrosoft.com' for
	// managed domain, required if and only if Windows logins are selected
	AADDomainName *string

	// Backup file share information for all selected databases.
	BackupFileShare *FileShare

	// Backup Mode to specify whether to use existing backup or create new backup. If using existing backups, backup file paths
	// are required to be provided in selectedDatabases.
	BackupMode *BackupMode

	// Agent Jobs to migrate.
	SelectedAgentJobs []*string

	// Logins to migrate.
	SelectedLogins []*string
}

MigrateSQLServerSQLMITaskInput - Input for task that migrates SQL Server databases to Azure SQL Database Managed Instance.

func (MigrateSQLServerSQLMITaskInput) MarshalJSON

func (m MigrateSQLServerSQLMITaskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLMITaskInput.

func (*MigrateSQLServerSQLMITaskInput) UnmarshalJSON added in v1.1.0

func (m *MigrateSQLServerSQLMITaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLMITaskInput.

type MigrateSQLServerSQLMITaskOutput

type MigrateSQLServerSQLMITaskOutput struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Result identifier
	ID *string
}

MigrateSQLServerSQLMITaskOutput - Output for task that migrates SQL Server databases to Azure SQL Database Managed Instance.

func (*MigrateSQLServerSQLMITaskOutput) GetMigrateSQLServerSQLMITaskOutput

func (m *MigrateSQLServerSQLMITaskOutput) GetMigrateSQLServerSQLMITaskOutput() *MigrateSQLServerSQLMITaskOutput

GetMigrateSQLServerSQLMITaskOutput implements the MigrateSQLServerSQLMITaskOutputClassification interface for type MigrateSQLServerSQLMITaskOutput.

func (MigrateSQLServerSQLMITaskOutput) MarshalJSON added in v1.1.0

func (m MigrateSQLServerSQLMITaskOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLMITaskOutput.

func (*MigrateSQLServerSQLMITaskOutput) UnmarshalJSON added in v1.1.0

func (m *MigrateSQLServerSQLMITaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLMITaskOutput.

type MigrateSQLServerSQLMITaskOutputAgentJobLevel

type MigrateSQLServerSQLMITaskOutputAgentJobLevel struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Migration end time
	EndedOn *time.Time

	// READ-ONLY; Migration errors and warnings per job
	ExceptionsAndWarnings []*ReportableException

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; The state of the original Agent Job.
	IsEnabled *bool

	// READ-ONLY; Migration progress message
	Message *string

	// READ-ONLY; Agent Job name.
	Name *string

	// READ-ONLY; Migration start time
	StartedOn *time.Time

	// READ-ONLY; Current state of migration
	State *MigrationState
}

func (*MigrateSQLServerSQLMITaskOutputAgentJobLevel) GetMigrateSQLServerSQLMITaskOutput

func (m *MigrateSQLServerSQLMITaskOutputAgentJobLevel) GetMigrateSQLServerSQLMITaskOutput() *MigrateSQLServerSQLMITaskOutput

GetMigrateSQLServerSQLMITaskOutput implements the MigrateSQLServerSQLMITaskOutputClassification interface for type MigrateSQLServerSQLMITaskOutputAgentJobLevel.

func (MigrateSQLServerSQLMITaskOutputAgentJobLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLMITaskOutputAgentJobLevel.

func (*MigrateSQLServerSQLMITaskOutputAgentJobLevel) UnmarshalJSON

func (m *MigrateSQLServerSQLMITaskOutputAgentJobLevel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLMITaskOutputAgentJobLevel.

type MigrateSQLServerSQLMITaskOutputClassification

type MigrateSQLServerSQLMITaskOutputClassification interface {
	// GetMigrateSQLServerSQLMITaskOutput returns the MigrateSQLServerSQLMITaskOutput content of the underlying type.
	GetMigrateSQLServerSQLMITaskOutput() *MigrateSQLServerSQLMITaskOutput
}

MigrateSQLServerSQLMITaskOutputClassification provides polymorphic access to related types. Call the interface's GetMigrateSQLServerSQLMITaskOutput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *MigrateSQLServerSQLMITaskOutput, *MigrateSQLServerSQLMITaskOutputAgentJobLevel, *MigrateSQLServerSQLMITaskOutputDatabaseLevel, - *MigrateSQLServerSQLMITaskOutputError, *MigrateSQLServerSQLMITaskOutputLoginLevel, *MigrateSQLServerSQLMITaskOutputMigrationLevel

type MigrateSQLServerSQLMITaskOutputDatabaseLevel

type MigrateSQLServerSQLMITaskOutputDatabaseLevel struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Name of the database
	DatabaseName *string

	// READ-ONLY; Migration end time
	EndedOn *time.Time

	// READ-ONLY; Migration exceptions and warnings
	ExceptionsAndWarnings []*ReportableException

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Migration progress message
	Message *string

	// READ-ONLY; Size of the database in megabytes
	SizeMB *float64

	// READ-ONLY; Current stage of migration
	Stage *DatabaseMigrationStage

	// READ-ONLY; Migration start time
	StartedOn *time.Time

	// READ-ONLY; Current state of migration
	State *MigrationState
}

func (*MigrateSQLServerSQLMITaskOutputDatabaseLevel) GetMigrateSQLServerSQLMITaskOutput

func (m *MigrateSQLServerSQLMITaskOutputDatabaseLevel) GetMigrateSQLServerSQLMITaskOutput() *MigrateSQLServerSQLMITaskOutput

GetMigrateSQLServerSQLMITaskOutput implements the MigrateSQLServerSQLMITaskOutputClassification interface for type MigrateSQLServerSQLMITaskOutputDatabaseLevel.

func (MigrateSQLServerSQLMITaskOutputDatabaseLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLMITaskOutputDatabaseLevel.

func (*MigrateSQLServerSQLMITaskOutputDatabaseLevel) UnmarshalJSON

func (m *MigrateSQLServerSQLMITaskOutputDatabaseLevel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLMITaskOutputDatabaseLevel.

type MigrateSQLServerSQLMITaskOutputError

type MigrateSQLServerSQLMITaskOutputError struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Migration error
	Error *ReportableException

	// READ-ONLY; Result identifier
	ID *string
}

func (*MigrateSQLServerSQLMITaskOutputError) GetMigrateSQLServerSQLMITaskOutput

func (m *MigrateSQLServerSQLMITaskOutputError) GetMigrateSQLServerSQLMITaskOutput() *MigrateSQLServerSQLMITaskOutput

GetMigrateSQLServerSQLMITaskOutput implements the MigrateSQLServerSQLMITaskOutputClassification interface for type MigrateSQLServerSQLMITaskOutputError.

func (MigrateSQLServerSQLMITaskOutputError) MarshalJSON

func (m MigrateSQLServerSQLMITaskOutputError) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLMITaskOutputError.

func (*MigrateSQLServerSQLMITaskOutputError) UnmarshalJSON

func (m *MigrateSQLServerSQLMITaskOutputError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLMITaskOutputError.

type MigrateSQLServerSQLMITaskOutputLoginLevel

type MigrateSQLServerSQLMITaskOutputLoginLevel struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Login migration end time
	EndedOn *time.Time

	// READ-ONLY; Login migration errors and warnings per login
	ExceptionsAndWarnings []*ReportableException

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Login name.
	LoginName *string

	// READ-ONLY; Login migration progress message
	Message *string

	// READ-ONLY; Current stage of login
	Stage *LoginMigrationStage

	// READ-ONLY; Login migration start time
	StartedOn *time.Time

	// READ-ONLY; Current state of login
	State *MigrationState
}

func (*MigrateSQLServerSQLMITaskOutputLoginLevel) GetMigrateSQLServerSQLMITaskOutput

func (m *MigrateSQLServerSQLMITaskOutputLoginLevel) GetMigrateSQLServerSQLMITaskOutput() *MigrateSQLServerSQLMITaskOutput

GetMigrateSQLServerSQLMITaskOutput implements the MigrateSQLServerSQLMITaskOutputClassification interface for type MigrateSQLServerSQLMITaskOutputLoginLevel.

func (MigrateSQLServerSQLMITaskOutputLoginLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLMITaskOutputLoginLevel.

func (*MigrateSQLServerSQLMITaskOutputLoginLevel) UnmarshalJSON

func (m *MigrateSQLServerSQLMITaskOutputLoginLevel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLMITaskOutputLoginLevel.

type MigrateSQLServerSQLMITaskOutputMigrationLevel

type MigrateSQLServerSQLMITaskOutputMigrationLevel struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Selected agent jobs as a map from name to id
	AgentJobs *string

	// READ-ONLY; Selected databases as a map from database name to database id
	Databases *string

	// READ-ONLY; Migration end time
	EndedOn *time.Time

	// READ-ONLY; Migration exceptions and warnings.
	ExceptionsAndWarnings []*ReportableException

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Selected logins as a map from name to id
	Logins *string

	// READ-ONLY; Migration progress message
	Message *string

	// READ-ONLY; List of orphaned users.
	OrphanedUsersInfo []*OrphanedUserInfo

	// READ-ONLY; Map of server role migration results.
	ServerRoleResults *string

	// READ-ONLY; Source server brand version
	SourceServerBrandVersion *string

	// READ-ONLY; Source server version
	SourceServerVersion *string

	// READ-ONLY; Migration start time
	StartedOn *time.Time

	// READ-ONLY; Current state of migration
	State *MigrationState

	// READ-ONLY; Current status of migration
	Status *MigrationStatus

	// READ-ONLY; Target server brand version
	TargetServerBrandVersion *string

	// READ-ONLY; Target server version
	TargetServerVersion *string
}

func (*MigrateSQLServerSQLMITaskOutputMigrationLevel) GetMigrateSQLServerSQLMITaskOutput

func (m *MigrateSQLServerSQLMITaskOutputMigrationLevel) GetMigrateSQLServerSQLMITaskOutput() *MigrateSQLServerSQLMITaskOutput

GetMigrateSQLServerSQLMITaskOutput implements the MigrateSQLServerSQLMITaskOutputClassification interface for type MigrateSQLServerSQLMITaskOutputMigrationLevel.

func (MigrateSQLServerSQLMITaskOutputMigrationLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLMITaskOutputMigrationLevel.

func (*MigrateSQLServerSQLMITaskOutputMigrationLevel) UnmarshalJSON

func (m *MigrateSQLServerSQLMITaskOutputMigrationLevel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLMITaskOutputMigrationLevel.

type MigrateSQLServerSQLMITaskProperties

type MigrateSQLServerSQLMITaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *MigrateSQLServerSQLMITaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []MigrateSQLServerSQLMITaskOutputClassification

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

MigrateSQLServerSQLMITaskProperties - Properties for task that migrates SQL Server databases to Azure SQL Database Managed Instance

func (*MigrateSQLServerSQLMITaskProperties) GetProjectTaskProperties

func (m *MigrateSQLServerSQLMITaskProperties) GetProjectTaskProperties() *ProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type MigrateSQLServerSQLMITaskProperties.

func (MigrateSQLServerSQLMITaskProperties) MarshalJSON

func (m MigrateSQLServerSQLMITaskProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLMITaskProperties.

func (*MigrateSQLServerSQLMITaskProperties) UnmarshalJSON

func (m *MigrateSQLServerSQLMITaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerSQLMITaskProperties.

type MigrateSchemaSQLServerSQLDbDatabaseInput

type MigrateSchemaSQLServerSQLDbDatabaseInput struct {
	// Name of source database
	Name *string

	// Database schema migration settings
	SchemaSetting *SchemaMigrationSetting

	// Name of target database
	TargetDatabaseName *string
}

MigrateSchemaSQLServerSQLDbDatabaseInput - Database input for migrate schema Sql Server to Azure SQL Server scenario

func (MigrateSchemaSQLServerSQLDbDatabaseInput) MarshalJSON added in v1.1.0

MarshalJSON implements the json.Marshaller interface for type MigrateSchemaSQLServerSQLDbDatabaseInput.

func (*MigrateSchemaSQLServerSQLDbDatabaseInput) UnmarshalJSON added in v1.1.0

func (m *MigrateSchemaSQLServerSQLDbDatabaseInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSchemaSQLServerSQLDbDatabaseInput.

type MigrateSchemaSQLServerSQLDbTaskInput

type MigrateSchemaSQLServerSQLDbTaskInput struct {
	// REQUIRED; Databases to migrate
	SelectedDatabases []*MigrateSchemaSQLServerSQLDbDatabaseInput

	// REQUIRED; Information for connecting to source
	SourceConnectionInfo *SQLConnectionInfo

	// REQUIRED; Information for connecting to target
	TargetConnectionInfo *SQLConnectionInfo
}

MigrateSchemaSQLServerSQLDbTaskInput - Input for task that migrates Schema for SQL Server databases to Azure SQL databases

func (MigrateSchemaSQLServerSQLDbTaskInput) MarshalJSON

func (m MigrateSchemaSQLServerSQLDbTaskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSchemaSQLServerSQLDbTaskInput.

func (*MigrateSchemaSQLServerSQLDbTaskInput) UnmarshalJSON added in v1.1.0

func (m *MigrateSchemaSQLServerSQLDbTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSchemaSQLServerSQLDbTaskInput.

type MigrateSchemaSQLServerSQLDbTaskOutput

type MigrateSchemaSQLServerSQLDbTaskOutput struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Result identifier
	ID *string
}

MigrateSchemaSQLServerSQLDbTaskOutput - Output for the task that migrates Schema for SQL Server databases to Azure SQL databases

func (*MigrateSchemaSQLServerSQLDbTaskOutput) GetMigrateSchemaSQLServerSQLDbTaskOutput

func (m *MigrateSchemaSQLServerSQLDbTaskOutput) GetMigrateSchemaSQLServerSQLDbTaskOutput() *MigrateSchemaSQLServerSQLDbTaskOutput

GetMigrateSchemaSQLServerSQLDbTaskOutput implements the MigrateSchemaSQLServerSQLDbTaskOutputClassification interface for type MigrateSchemaSQLServerSQLDbTaskOutput.

func (MigrateSchemaSQLServerSQLDbTaskOutput) MarshalJSON added in v1.1.0

func (m MigrateSchemaSQLServerSQLDbTaskOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSchemaSQLServerSQLDbTaskOutput.

func (*MigrateSchemaSQLServerSQLDbTaskOutput) UnmarshalJSON added in v1.1.0

func (m *MigrateSchemaSQLServerSQLDbTaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSchemaSQLServerSQLDbTaskOutput.

type MigrateSchemaSQLServerSQLDbTaskOutputClassification

type MigrateSchemaSQLServerSQLDbTaskOutputClassification interface {
	// GetMigrateSchemaSQLServerSQLDbTaskOutput returns the MigrateSchemaSQLServerSQLDbTaskOutput content of the underlying type.
	GetMigrateSchemaSQLServerSQLDbTaskOutput() *MigrateSchemaSQLServerSQLDbTaskOutput
}

MigrateSchemaSQLServerSQLDbTaskOutputClassification provides polymorphic access to related types. Call the interface's GetMigrateSchemaSQLServerSQLDbTaskOutput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *MigrateSchemaSQLServerSQLDbTaskOutput, *MigrateSchemaSQLServerSQLDbTaskOutputDatabaseLevel, *MigrateSchemaSQLServerSQLDbTaskOutputError, - *MigrateSchemaSQLServerSQLDbTaskOutputMigrationLevel, *MigrateSchemaSQLTaskOutputError

type MigrateSchemaSQLServerSQLDbTaskOutputDatabaseLevel

type MigrateSchemaSQLServerSQLDbTaskOutputDatabaseLevel struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Prefix string to use for querying errors for this database
	DatabaseErrorResultPrefix *string

	// READ-ONLY; The name of the database
	DatabaseName *string

	// READ-ONLY; Migration end time
	EndedOn *time.Time

	// READ-ONLY; Identifier for the file resource containing the schema of this database
	FileID *string

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Number of failed operations for this database
	NumberOfFailedOperations *int64

	// READ-ONLY; Number of successful operations for this database
	NumberOfSuccessfulOperations *int64

	// READ-ONLY; Prefix string to use for querying schema errors for this database
	SchemaErrorResultPrefix *string

	// READ-ONLY; Schema migration stage for this database
	Stage *SchemaMigrationStage

	// READ-ONLY; Migration start time
	StartedOn *time.Time

	// READ-ONLY; State of the schema migration for this database
	State *MigrationState
}

func (*MigrateSchemaSQLServerSQLDbTaskOutputDatabaseLevel) GetMigrateSchemaSQLServerSQLDbTaskOutput

GetMigrateSchemaSQLServerSQLDbTaskOutput implements the MigrateSchemaSQLServerSQLDbTaskOutputClassification interface for type MigrateSchemaSQLServerSQLDbTaskOutputDatabaseLevel.

func (MigrateSchemaSQLServerSQLDbTaskOutputDatabaseLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateSchemaSQLServerSQLDbTaskOutputDatabaseLevel.

func (*MigrateSchemaSQLServerSQLDbTaskOutputDatabaseLevel) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSchemaSQLServerSQLDbTaskOutputDatabaseLevel.

type MigrateSchemaSQLServerSQLDbTaskOutputError

type MigrateSchemaSQLServerSQLDbTaskOutputError struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Schema command which failed
	CommandText *string

	// READ-ONLY; Reason of failure
	ErrorText *string

	// READ-ONLY; Result identifier
	ID *string
}

func (*MigrateSchemaSQLServerSQLDbTaskOutputError) GetMigrateSchemaSQLServerSQLDbTaskOutput

func (m *MigrateSchemaSQLServerSQLDbTaskOutputError) GetMigrateSchemaSQLServerSQLDbTaskOutput() *MigrateSchemaSQLServerSQLDbTaskOutput

GetMigrateSchemaSQLServerSQLDbTaskOutput implements the MigrateSchemaSQLServerSQLDbTaskOutputClassification interface for type MigrateSchemaSQLServerSQLDbTaskOutputError.

func (MigrateSchemaSQLServerSQLDbTaskOutputError) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateSchemaSQLServerSQLDbTaskOutputError.

func (*MigrateSchemaSQLServerSQLDbTaskOutputError) UnmarshalJSON

func (m *MigrateSchemaSQLServerSQLDbTaskOutputError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSchemaSQLServerSQLDbTaskOutputError.

type MigrateSchemaSQLServerSQLDbTaskOutputMigrationLevel

type MigrateSchemaSQLServerSQLDbTaskOutputMigrationLevel struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Migration end time
	EndedOn *time.Time

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Source server brand version
	SourceServerBrandVersion *string

	// READ-ONLY; Source server version
	SourceServerVersion *string

	// READ-ONLY; Migration start time
	StartedOn *time.Time

	// READ-ONLY; Overall state of the schema migration
	State *MigrationState

	// READ-ONLY; Target server brand version
	TargetServerBrandVersion *string

	// READ-ONLY; Target server version
	TargetServerVersion *string
}

func (*MigrateSchemaSQLServerSQLDbTaskOutputMigrationLevel) GetMigrateSchemaSQLServerSQLDbTaskOutput

GetMigrateSchemaSQLServerSQLDbTaskOutput implements the MigrateSchemaSQLServerSQLDbTaskOutputClassification interface for type MigrateSchemaSQLServerSQLDbTaskOutputMigrationLevel.

func (MigrateSchemaSQLServerSQLDbTaskOutputMigrationLevel) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateSchemaSQLServerSQLDbTaskOutputMigrationLevel.

func (*MigrateSchemaSQLServerSQLDbTaskOutputMigrationLevel) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSchemaSQLServerSQLDbTaskOutputMigrationLevel.

type MigrateSchemaSQLServerSQLDbTaskProperties

type MigrateSchemaSQLServerSQLDbTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *MigrateSchemaSQLServerSQLDbTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []MigrateSchemaSQLServerSQLDbTaskOutputClassification

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

MigrateSchemaSQLServerSQLDbTaskProperties - Properties for task that migrates Schema for SQL Server databases to Azure SQL databases

func (*MigrateSchemaSQLServerSQLDbTaskProperties) GetProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type MigrateSchemaSQLServerSQLDbTaskProperties.

func (MigrateSchemaSQLServerSQLDbTaskProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrateSchemaSQLServerSQLDbTaskProperties.

func (*MigrateSchemaSQLServerSQLDbTaskProperties) UnmarshalJSON

func (m *MigrateSchemaSQLServerSQLDbTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSchemaSQLServerSQLDbTaskProperties.

type MigrateSchemaSQLTaskOutputError

type MigrateSchemaSQLTaskOutputError struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Migration error
	Error *ReportableException

	// READ-ONLY; Result identifier
	ID *string
}

func (*MigrateSchemaSQLTaskOutputError) GetMigrateSchemaSQLServerSQLDbTaskOutput

func (m *MigrateSchemaSQLTaskOutputError) GetMigrateSchemaSQLServerSQLDbTaskOutput() *MigrateSchemaSQLServerSQLDbTaskOutput

GetMigrateSchemaSQLServerSQLDbTaskOutput implements the MigrateSchemaSQLServerSQLDbTaskOutputClassification interface for type MigrateSchemaSQLTaskOutputError.

func (MigrateSchemaSQLTaskOutputError) MarshalJSON

func (m MigrateSchemaSQLTaskOutputError) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSchemaSQLTaskOutputError.

func (*MigrateSchemaSQLTaskOutputError) UnmarshalJSON

func (m *MigrateSchemaSQLTaskOutputError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSchemaSQLTaskOutputError.

type MigrateSsisTaskInput

type MigrateSsisTaskInput struct {
	// REQUIRED; Information for connecting to source
	SourceConnectionInfo *SQLConnectionInfo

	// REQUIRED; SSIS package migration information.
	SsisMigrationInfo *SsisMigrationInfo

	// REQUIRED; Information for connecting to target
	TargetConnectionInfo *SQLConnectionInfo
}

MigrateSsisTaskInput - Input for task that migrates SSIS packages from SQL Server to Azure SQL Database Managed Instance.

func (MigrateSsisTaskInput) MarshalJSON added in v1.1.0

func (m MigrateSsisTaskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSsisTaskInput.

func (*MigrateSsisTaskInput) UnmarshalJSON added in v1.1.0

func (m *MigrateSsisTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSsisTaskInput.

type MigrateSsisTaskOutput

type MigrateSsisTaskOutput struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Result identifier
	ID *string
}

MigrateSsisTaskOutput - Output for task that migrates SSIS packages from SQL Server to Azure SQL Database Managed Instance.

func (*MigrateSsisTaskOutput) GetMigrateSsisTaskOutput

func (m *MigrateSsisTaskOutput) GetMigrateSsisTaskOutput() *MigrateSsisTaskOutput

GetMigrateSsisTaskOutput implements the MigrateSsisTaskOutputClassification interface for type MigrateSsisTaskOutput.

func (MigrateSsisTaskOutput) MarshalJSON added in v1.1.0

func (m MigrateSsisTaskOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSsisTaskOutput.

func (*MigrateSsisTaskOutput) UnmarshalJSON added in v1.1.0

func (m *MigrateSsisTaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSsisTaskOutput.

type MigrateSsisTaskOutputClassification

type MigrateSsisTaskOutputClassification interface {
	// GetMigrateSsisTaskOutput returns the MigrateSsisTaskOutput content of the underlying type.
	GetMigrateSsisTaskOutput() *MigrateSsisTaskOutput
}

MigrateSsisTaskOutputClassification provides polymorphic access to related types. Call the interface's GetMigrateSsisTaskOutput() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *MigrateSsisTaskOutput, *MigrateSsisTaskOutputMigrationLevel, *MigrateSsisTaskOutputProjectLevel

type MigrateSsisTaskOutputMigrationLevel

type MigrateSsisTaskOutputMigrationLevel struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Migration end time
	EndedOn *time.Time

	// READ-ONLY; Migration exceptions and warnings.
	ExceptionsAndWarnings []*ReportableException

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Migration progress message
	Message *string

	// READ-ONLY; Source server brand version
	SourceServerBrandVersion *string

	// READ-ONLY; Source server version
	SourceServerVersion *string

	// READ-ONLY; Stage of SSIS migration.
	Stage *SsisMigrationStage

	// READ-ONLY; Migration start time
	StartedOn *time.Time

	// READ-ONLY; Current status of migration
	Status *MigrationStatus

	// READ-ONLY; Target server brand version
	TargetServerBrandVersion *string

	// READ-ONLY; Target server version
	TargetServerVersion *string
}

func (*MigrateSsisTaskOutputMigrationLevel) GetMigrateSsisTaskOutput

func (m *MigrateSsisTaskOutputMigrationLevel) GetMigrateSsisTaskOutput() *MigrateSsisTaskOutput

GetMigrateSsisTaskOutput implements the MigrateSsisTaskOutputClassification interface for type MigrateSsisTaskOutputMigrationLevel.

func (MigrateSsisTaskOutputMigrationLevel) MarshalJSON

func (m MigrateSsisTaskOutputMigrationLevel) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSsisTaskOutputMigrationLevel.

func (*MigrateSsisTaskOutputMigrationLevel) UnmarshalJSON

func (m *MigrateSsisTaskOutputMigrationLevel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSsisTaskOutputMigrationLevel.

type MigrateSsisTaskOutputProjectLevel

type MigrateSsisTaskOutputProjectLevel struct {
	// REQUIRED; Result type
	ResultType *string

	// READ-ONLY; Migration end time
	EndedOn *time.Time

	// READ-ONLY; Migration exceptions and warnings
	ExceptionsAndWarnings []*ReportableException

	// READ-ONLY; Name of the folder
	FolderName *string

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Migration progress message
	Message *string

	// READ-ONLY; Name of the project
	ProjectName *string

	// READ-ONLY; Stage of SSIS migration.
	Stage *SsisMigrationStage

	// READ-ONLY; Migration start time
	StartedOn *time.Time

	// READ-ONLY; Current state of migration
	State *MigrationState
}

func (*MigrateSsisTaskOutputProjectLevel) GetMigrateSsisTaskOutput

func (m *MigrateSsisTaskOutputProjectLevel) GetMigrateSsisTaskOutput() *MigrateSsisTaskOutput

GetMigrateSsisTaskOutput implements the MigrateSsisTaskOutputClassification interface for type MigrateSsisTaskOutputProjectLevel.

func (MigrateSsisTaskOutputProjectLevel) MarshalJSON

func (m MigrateSsisTaskOutputProjectLevel) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSsisTaskOutputProjectLevel.

func (*MigrateSsisTaskOutputProjectLevel) UnmarshalJSON

func (m *MigrateSsisTaskOutputProjectLevel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSsisTaskOutputProjectLevel.

type MigrateSsisTaskProperties

type MigrateSsisTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *MigrateSsisTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []MigrateSsisTaskOutputClassification

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

MigrateSsisTaskProperties - Properties for task that migrates SSIS packages from SQL Server databases to Azure SQL Database Managed Instance.

func (*MigrateSsisTaskProperties) GetProjectTaskProperties

func (m *MigrateSsisTaskProperties) GetProjectTaskProperties() *ProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type MigrateSsisTaskProperties.

func (MigrateSsisTaskProperties) MarshalJSON

func (m MigrateSsisTaskProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSsisTaskProperties.

func (*MigrateSsisTaskProperties) UnmarshalJSON

func (m *MigrateSsisTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSsisTaskProperties.

type MigrateSyncCompleteCommandInput

type MigrateSyncCompleteCommandInput struct {
	// REQUIRED; Name of database
	DatabaseName *string

	// Time stamp to complete
	CommitTimeStamp *time.Time
}

MigrateSyncCompleteCommandInput - Input for command that completes sync migration for a database.

func (MigrateSyncCompleteCommandInput) MarshalJSON

func (m MigrateSyncCompleteCommandInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSyncCompleteCommandInput.

func (*MigrateSyncCompleteCommandInput) UnmarshalJSON

func (m *MigrateSyncCompleteCommandInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSyncCompleteCommandInput.

type MigrateSyncCompleteCommandOutput

type MigrateSyncCompleteCommandOutput struct {
	// READ-ONLY; List of errors that happened during the command execution
	Errors []*ReportableException

	// READ-ONLY; Result identifier
	ID *string
}

MigrateSyncCompleteCommandOutput - Output for command that completes sync migration for a database.

func (MigrateSyncCompleteCommandOutput) MarshalJSON

func (m MigrateSyncCompleteCommandOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSyncCompleteCommandOutput.

func (*MigrateSyncCompleteCommandOutput) UnmarshalJSON added in v1.1.0

func (m *MigrateSyncCompleteCommandOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSyncCompleteCommandOutput.

type MigrateSyncCompleteCommandProperties

type MigrateSyncCompleteCommandProperties struct {
	// REQUIRED; Command type.
	CommandType *string

	// Command input
	Input *MigrateSyncCompleteCommandInput

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Command output. This is ignored if submitted.
	Output *MigrateSyncCompleteCommandOutput

	// READ-ONLY; The state of the command. This is ignored if submitted.
	State *CommandState
}

MigrateSyncCompleteCommandProperties - Properties for the command that completes sync migration for a database.

func (*MigrateSyncCompleteCommandProperties) GetCommandProperties

func (m *MigrateSyncCompleteCommandProperties) GetCommandProperties() *CommandProperties

GetCommandProperties implements the CommandPropertiesClassification interface for type MigrateSyncCompleteCommandProperties.

func (MigrateSyncCompleteCommandProperties) MarshalJSON

func (m MigrateSyncCompleteCommandProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrateSyncCompleteCommandProperties.

func (*MigrateSyncCompleteCommandProperties) UnmarshalJSON

func (m *MigrateSyncCompleteCommandProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSyncCompleteCommandProperties.

type MigrationEligibilityInfo

type MigrationEligibilityInfo struct {
	// READ-ONLY; Whether object is eligible for migration or not.
	IsEligibleForMigration *bool

	// READ-ONLY; Information about eligibility failure for the server object.
	ValidationMessages []*string
}

MigrationEligibilityInfo - Information about migration eligibility of a server object

func (MigrationEligibilityInfo) MarshalJSON

func (m MigrationEligibilityInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrationEligibilityInfo.

func (*MigrationEligibilityInfo) UnmarshalJSON added in v1.1.0

func (m *MigrationEligibilityInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrationEligibilityInfo.

type MigrationReportResult

type MigrationReportResult struct {
	// Migration validation result identifier
	ID *string

	// The url of the report.
	ReportURL *string
}

MigrationReportResult - Migration validation report result, contains the url for downloading the generated report.

func (MigrationReportResult) MarshalJSON added in v1.1.0

func (m MigrationReportResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrationReportResult.

func (*MigrationReportResult) UnmarshalJSON added in v1.1.0

func (m *MigrationReportResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrationReportResult.

type MigrationState

type MigrationState string

MigrationState - Current state of migration

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

func PossibleMigrationStateValues

func PossibleMigrationStateValues() []MigrationState

PossibleMigrationStateValues returns the possible values for the MigrationState const type.

type MigrationStatus

type MigrationStatus string

MigrationStatus - Current status of migration

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 PossibleMigrationStatusValues

func PossibleMigrationStatusValues() []MigrationStatus

PossibleMigrationStatusValues returns the possible values for the MigrationStatus const type.

type MigrationTableMetadata

type MigrationTableMetadata struct {
	// READ-ONLY; Source table name
	SourceTableName *string

	// READ-ONLY; Target table name
	TargetTableName *string
}

MigrationTableMetadata - Metadata for tables selected in migration project

func (MigrationTableMetadata) MarshalJSON added in v1.1.0

func (m MigrationTableMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrationTableMetadata.

func (*MigrationTableMetadata) UnmarshalJSON added in v1.1.0

func (m *MigrationTableMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrationTableMetadata.

type MigrationValidationDatabaseLevelResult

type MigrationValidationDatabaseLevelResult struct {
	// READ-ONLY; Provides data integrity validation result between the source and target tables that are migrated.
	DataIntegrityValidationResult *DataIntegrityValidationResult

	// READ-ONLY; Validation end time
	EndedOn *time.Time

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Migration Identifier
	MigrationID *string

	// READ-ONLY; Results of some of the query execution result between source and target database
	QueryAnalysisValidationResult *QueryAnalysisValidationResult

	// READ-ONLY; Provides schema comparison result between source and target database
	SchemaValidationResult *SchemaComparisonValidationResult

	// READ-ONLY; Name of the source database
	SourceDatabaseName *string

	// READ-ONLY; Validation start time
	StartedOn *time.Time

	// READ-ONLY; Current status of validation at the database level
	Status *ValidationStatus

	// READ-ONLY; Name of the target database
	TargetDatabaseName *string
}

MigrationValidationDatabaseLevelResult - Database level validation results

func (MigrationValidationDatabaseLevelResult) MarshalJSON

func (m MigrationValidationDatabaseLevelResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrationValidationDatabaseLevelResult.

func (*MigrationValidationDatabaseLevelResult) UnmarshalJSON

func (m *MigrationValidationDatabaseLevelResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrationValidationDatabaseLevelResult.

type MigrationValidationDatabaseSummaryResult

type MigrationValidationDatabaseSummaryResult struct {
	// READ-ONLY; Validation end time
	EndedOn *time.Time

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Migration Identifier
	MigrationID *string

	// READ-ONLY; Name of the source database
	SourceDatabaseName *string

	// READ-ONLY; Validation start time
	StartedOn *time.Time

	// READ-ONLY; Current status of validation at the database level
	Status *ValidationStatus

	// READ-ONLY; Name of the target database
	TargetDatabaseName *string
}

MigrationValidationDatabaseSummaryResult - Migration Validation Database level summary result

func (MigrationValidationDatabaseSummaryResult) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type MigrationValidationDatabaseSummaryResult.

func (*MigrationValidationDatabaseSummaryResult) UnmarshalJSON

func (m *MigrationValidationDatabaseSummaryResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrationValidationDatabaseSummaryResult.

type MigrationValidationOptions

type MigrationValidationOptions struct {
	// Allows to perform a checksum based data integrity validation between source and target for the selected database / tables
	// .
	EnableDataIntegrityValidation *bool

	// Allows to perform a quick and intelligent query analysis by retrieving queries from the source database and executes them
	// in the target. The result will have execution statistics for executions in
	// source and target databases for the extracted queries.
	EnableQueryAnalysisValidation *bool

	// Allows to compare the schema information between source and target.
	EnableSchemaValidation *bool
}

MigrationValidationOptions - Types of validations to run after the migration

func (MigrationValidationOptions) MarshalJSON added in v1.1.0

func (m MigrationValidationOptions) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrationValidationOptions.

func (*MigrationValidationOptions) UnmarshalJSON added in v1.1.0

func (m *MigrationValidationOptions) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrationValidationOptions.

type MigrationValidationResult

type MigrationValidationResult struct {
	// Validation summary results for each database
	SummaryResults map[string]*MigrationValidationDatabaseSummaryResult

	// READ-ONLY; Migration validation result identifier
	ID *string

	// READ-ONLY; Migration Identifier
	MigrationID *string

	// READ-ONLY; Current status of validation at the migration level. Status from the database validation result status will
	// be aggregated here.
	Status *ValidationStatus
}

MigrationValidationResult - Migration Validation Result

func (MigrationValidationResult) MarshalJSON

func (m MigrationValidationResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MigrationValidationResult.

func (*MigrationValidationResult) UnmarshalJSON added in v1.1.0

func (m *MigrationValidationResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MigrationValidationResult.

type MongoDbCancelCommand

type MongoDbCancelCommand struct {
	// REQUIRED; Command type.
	CommandType *string

	// Command input
	Input *MongoDbCommandInput

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; The state of the command. This is ignored if submitted.
	State *CommandState
}

MongoDbCancelCommand - Properties for the command that cancels a migration in whole or in part

func (*MongoDbCancelCommand) GetCommandProperties

func (m *MongoDbCancelCommand) GetCommandProperties() *CommandProperties

GetCommandProperties implements the CommandPropertiesClassification interface for type MongoDbCancelCommand.

func (MongoDbCancelCommand) MarshalJSON

func (m MongoDbCancelCommand) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MongoDbCancelCommand.

func (*MongoDbCancelCommand) UnmarshalJSON

func (m *MongoDbCancelCommand) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbCancelCommand.

type MongoDbClusterInfo

type MongoDbClusterInfo struct {
	// REQUIRED; A list of non-system databases in the cluster
	Databases []*MongoDbDatabaseInfo

	// REQUIRED; Whether the cluster supports sharded collections
	SupportsSharding *bool

	// REQUIRED; The type of data source
	Type *MongoDbClusterType

	// REQUIRED; The version of the data source in the form x.y.z (e.g. 3.6.7). Not used if Type is BlobContainer.
	Version *string
}

MongoDbClusterInfo - Describes a MongoDB data source

func (MongoDbClusterInfo) MarshalJSON

func (m MongoDbClusterInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MongoDbClusterInfo.

func (*MongoDbClusterInfo) UnmarshalJSON added in v1.1.0

func (m *MongoDbClusterInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbClusterInfo.

type MongoDbClusterType

type MongoDbClusterType string

MongoDbClusterType - The type of data source

const (
	MongoDbClusterTypeBlobContainer MongoDbClusterType = "BlobContainer"
	MongoDbClusterTypeCosmosDb      MongoDbClusterType = "CosmosDb"
	MongoDbClusterTypeMongoDb       MongoDbClusterType = "MongoDb"
)

func PossibleMongoDbClusterTypeValues

func PossibleMongoDbClusterTypeValues() []MongoDbClusterType

PossibleMongoDbClusterTypeValues returns the possible values for the MongoDbClusterType const type.

type MongoDbCollectionInfo

type MongoDbCollectionInfo struct {
	// REQUIRED; The average document size, or -1 if the average size is unknown
	AverageDocumentSize *int64

	// REQUIRED; The estimated total data size, in bytes, or -1 if the size is unknown.
	DataSize *int64

	// REQUIRED; The name of the database containing the collection
	DatabaseName *string

	// REQUIRED; The estimated total number of documents, or -1 if the document count is unknown
	DocumentCount *int64

	// REQUIRED; Whether the collection is a capped collection (i.e. whether it has a fixed size and acts like a circular buffer)
	IsCapped *bool

	// REQUIRED; Whether the collection is system collection
	IsSystemCollection *bool

	// REQUIRED; Whether the collection is a view of another collection
	IsView *bool

	// REQUIRED; The unqualified name of the database or collection
	Name *string

	// REQUIRED; The qualified name of the database or collection. For a collection, this is the database-qualified name.
	QualifiedName *string

	// REQUIRED; Whether the database has sharding enabled. Note that the migration task will enable sharding on the target if
	// necessary.
	SupportsSharding *bool

	// The shard key on the collection, or null if the collection is not sharded
	ShardKey *MongoDbShardKeyInfo

	// The name of the collection that this is a view of, if IsView is true
	ViewOf *string
}

MongoDbCollectionInfo - Describes a supported collection within a MongoDB database

func (MongoDbCollectionInfo) MarshalJSON added in v1.1.0

func (m MongoDbCollectionInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MongoDbCollectionInfo.

func (*MongoDbCollectionInfo) UnmarshalJSON added in v1.1.0

func (m *MongoDbCollectionInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbCollectionInfo.

type MongoDbCollectionProgress

type MongoDbCollectionProgress struct {
	// REQUIRED; The number of document bytes copied during the Copying stage
	BytesCopied *int64

	// REQUIRED; The number of documents copied during the Copying stage
	DocumentsCopied *int64

	// REQUIRED; The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format)
	ElapsedTime *string

	// REQUIRED; The errors and warnings that have occurred for the current object. The keys are the error codes.
	Errors map[string]*MongoDbError

	// REQUIRED; The number of oplog events awaiting replay
	EventsPending *int64

	// REQUIRED; The number of oplog events replayed so far
	EventsReplayed *int64

	// REQUIRED; The type of progress object
	ResultType *MongoDbProgressResultType

	// REQUIRED
	State *MongoDbMigrationState

	// REQUIRED; The total number of document bytes on the source at the beginning of the Copying stage, or -1 if the total size
	// was unknown
	TotalBytes *int64

	// REQUIRED; The total number of documents on the source at the beginning of the Copying stage, or -1 if the total count was
	// unknown
	TotalDocuments *int64

	// The timestamp of the last oplog event received, or null if no oplog event has been received yet
	LastEventTime *time.Time

	// The timestamp of the last oplog event replayed, or null if no oplog event has been replayed yet
	LastReplayTime *time.Time

	// The name of the progress object. For a collection, this is the unqualified collection name. For a database, this is the
	// database name. For the overall migration, this is null.
	Name *string

	// The qualified name of the progress object. For a collection, this is the database-qualified name. For a database, this
	// is the database name. For the overall migration, this is null.
	QualifiedName *string
}

MongoDbCollectionProgress - Describes the progress of a collection

func (*MongoDbCollectionProgress) GetMongoDbProgress

func (m *MongoDbCollectionProgress) GetMongoDbProgress() *MongoDbProgress

GetMongoDbProgress implements the MongoDbProgressClassification interface for type MongoDbCollectionProgress.

func (MongoDbCollectionProgress) MarshalJSON

func (m MongoDbCollectionProgress) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MongoDbCollectionProgress.

func (*MongoDbCollectionProgress) UnmarshalJSON

func (m *MongoDbCollectionProgress) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbCollectionProgress.

type MongoDbCollectionSettings

type MongoDbCollectionSettings struct {
	// Whether the migrator is allowed to drop the target collection in the course of performing a migration. The default is true.
	CanDelete *bool

	// Describes a MongoDB shard key
	ShardKey *MongoDbShardKeySetting

	// The RUs that should be configured on a CosmosDB target, or null to use the default. This has no effect on non-CosmosDB
	// targets.
	TargetRUs *int32
}

MongoDbCollectionSettings - Describes how an individual MongoDB collection should be migrated

func (MongoDbCollectionSettings) MarshalJSON added in v1.1.0

func (m MongoDbCollectionSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MongoDbCollectionSettings.

func (*MongoDbCollectionSettings) UnmarshalJSON added in v1.1.0

func (m *MongoDbCollectionSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbCollectionSettings.

type MongoDbCommandInput

type MongoDbCommandInput struct {
	// The qualified name of a database or collection to act upon, or null to act upon the entire migration
	ObjectName *string
}

MongoDbCommandInput - Describes the input to the 'cancel' and 'restart' MongoDB migration commands

func (MongoDbCommandInput) MarshalJSON added in v1.1.0

func (m MongoDbCommandInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MongoDbCommandInput.

func (*MongoDbCommandInput) UnmarshalJSON added in v1.1.0

func (m *MongoDbCommandInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbCommandInput.

type MongoDbConnectionInfo

type MongoDbConnectionInfo struct {
	// REQUIRED; A MongoDB connection string or blob container URL. The user name and password can be specified here or in the
	// userName and password properties
	ConnectionString *string

	// REQUIRED; Type of connection info
	Type *string

	// Password credential.
	Password *string

	// User name
	UserName *string
}

MongoDbConnectionInfo - Describes a connection to a MongoDB data source

func (*MongoDbConnectionInfo) GetConnectionInfo

func (m *MongoDbConnectionInfo) GetConnectionInfo() *ConnectionInfo

GetConnectionInfo implements the ConnectionInfoClassification interface for type MongoDbConnectionInfo.

func (MongoDbConnectionInfo) MarshalJSON

func (m MongoDbConnectionInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MongoDbConnectionInfo.

func (*MongoDbConnectionInfo) UnmarshalJSON

func (m *MongoDbConnectionInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbConnectionInfo.

type MongoDbDatabaseInfo

type MongoDbDatabaseInfo struct {
	// REQUIRED; The average document size, or -1 if the average size is unknown
	AverageDocumentSize *int64

	// REQUIRED; A list of supported collections in a MongoDB database
	Collections []*MongoDbCollectionInfo

	// REQUIRED; The estimated total data size, in bytes, or -1 if the size is unknown.
	DataSize *int64

	// REQUIRED; The estimated total number of documents, or -1 if the document count is unknown
	DocumentCount *int64

	// REQUIRED; The unqualified name of the database or collection
	Name *string

	// REQUIRED; The qualified name of the database or collection. For a collection, this is the database-qualified name.
	QualifiedName *string

	// REQUIRED; Whether the database has sharding enabled. Note that the migration task will enable sharding on the target if
	// necessary.
	SupportsSharding *bool
}

MongoDbDatabaseInfo - Describes a database within a MongoDB data source

func (MongoDbDatabaseInfo) MarshalJSON

func (m MongoDbDatabaseInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MongoDbDatabaseInfo.

func (*MongoDbDatabaseInfo) UnmarshalJSON added in v1.1.0

func (m *MongoDbDatabaseInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbDatabaseInfo.

type MongoDbDatabaseProgress

type MongoDbDatabaseProgress struct {
	// REQUIRED; The number of document bytes copied during the Copying stage
	BytesCopied *int64

	// REQUIRED; The number of documents copied during the Copying stage
	DocumentsCopied *int64

	// REQUIRED; The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format)
	ElapsedTime *string

	// REQUIRED; The errors and warnings that have occurred for the current object. The keys are the error codes.
	Errors map[string]*MongoDbError

	// REQUIRED; The number of oplog events awaiting replay
	EventsPending *int64

	// REQUIRED; The number of oplog events replayed so far
	EventsReplayed *int64

	// REQUIRED; The type of progress object
	ResultType *MongoDbProgressResultType

	// REQUIRED
	State *MongoDbMigrationState

	// REQUIRED; The total number of document bytes on the source at the beginning of the Copying stage, or -1 if the total size
	// was unknown
	TotalBytes *int64

	// REQUIRED; The total number of documents on the source at the beginning of the Copying stage, or -1 if the total count was
	// unknown
	TotalDocuments *int64

	// The progress of the collections in the database. The keys are the unqualified names of the collections
	Collections map[string]*MongoDbCollectionProgress

	// The timestamp of the last oplog event received, or null if no oplog event has been received yet
	LastEventTime *time.Time

	// The timestamp of the last oplog event replayed, or null if no oplog event has been replayed yet
	LastReplayTime *time.Time

	// The name of the progress object. For a collection, this is the unqualified collection name. For a database, this is the
	// database name. For the overall migration, this is null.
	Name *string

	// The qualified name of the progress object. For a collection, this is the database-qualified name. For a database, this
	// is the database name. For the overall migration, this is null.
	QualifiedName *string
}

MongoDbDatabaseProgress - Describes the progress of a database

func (*MongoDbDatabaseProgress) GetMongoDbProgress

func (m *MongoDbDatabaseProgress) GetMongoDbProgress() *MongoDbProgress

GetMongoDbProgress implements the MongoDbProgressClassification interface for type MongoDbDatabaseProgress.

func (MongoDbDatabaseProgress) MarshalJSON

func (m MongoDbDatabaseProgress) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MongoDbDatabaseProgress.

func (*MongoDbDatabaseProgress) UnmarshalJSON

func (m *MongoDbDatabaseProgress) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbDatabaseProgress.

type MongoDbDatabaseSettings

type MongoDbDatabaseSettings struct {
	// REQUIRED; The collections on the source database to migrate to the target. The keys are the unqualified names of the collections.
	Collections map[string]*MongoDbCollectionSettings

	// The RUs that should be configured on a CosmosDB target, or null to use the default, or 0 if throughput should not be provisioned
	// for the database. This has no effect on non-CosmosDB targets.
	TargetRUs *int32
}

MongoDbDatabaseSettings - Describes how an individual MongoDB database should be migrated

func (MongoDbDatabaseSettings) MarshalJSON

func (m MongoDbDatabaseSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MongoDbDatabaseSettings.

func (*MongoDbDatabaseSettings) UnmarshalJSON added in v1.1.0

func (m *MongoDbDatabaseSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbDatabaseSettings.

type MongoDbError

type MongoDbError struct {
	// The non-localized, machine-readable code that describes the error or warning
	Code *string

	// The number of times the error or warning has occurred
	Count *int32

	// The localized, human-readable message that describes the error or warning
	Message *string

	// The type of error or warning
	Type *MongoDbErrorType
}

MongoDbError - Describes an error or warning that occurred during a MongoDB migration

func (MongoDbError) MarshalJSON added in v1.1.0

func (m MongoDbError) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MongoDbError.

func (*MongoDbError) UnmarshalJSON added in v1.1.0

func (m *MongoDbError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbError.

type MongoDbErrorType

type MongoDbErrorType string

MongoDbErrorType - The type of error or warning

const (
	MongoDbErrorTypeError           MongoDbErrorType = "Error"
	MongoDbErrorTypeValidationError MongoDbErrorType = "ValidationError"
	MongoDbErrorTypeWarning         MongoDbErrorType = "Warning"
)

func PossibleMongoDbErrorTypeValues

func PossibleMongoDbErrorTypeValues() []MongoDbErrorType

PossibleMongoDbErrorTypeValues returns the possible values for the MongoDbErrorType const type.

type MongoDbFinishCommand

type MongoDbFinishCommand struct {
	// REQUIRED; Command type.
	CommandType *string

	// Command input
	Input *MongoDbFinishCommandInput

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; The state of the command. This is ignored if submitted.
	State *CommandState
}

MongoDbFinishCommand - Properties for the command that finishes a migration in whole or in part

func (*MongoDbFinishCommand) GetCommandProperties

func (m *MongoDbFinishCommand) GetCommandProperties() *CommandProperties

GetCommandProperties implements the CommandPropertiesClassification interface for type MongoDbFinishCommand.

func (MongoDbFinishCommand) MarshalJSON

func (m MongoDbFinishCommand) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MongoDbFinishCommand.

func (*MongoDbFinishCommand) UnmarshalJSON

func (m *MongoDbFinishCommand) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbFinishCommand.

type MongoDbFinishCommandInput

type MongoDbFinishCommandInput struct {
	// REQUIRED; If true, replication for the affected objects will be stopped immediately. If false, the migrator will finish
	// replaying queued events before finishing the replication.
	Immediate *bool

	// The qualified name of a database or collection to act upon, or null to act upon the entire migration
	ObjectName *string
}

MongoDbFinishCommandInput - Describes the input to the 'finish' MongoDB migration command

func (MongoDbFinishCommandInput) MarshalJSON added in v1.1.0

func (m MongoDbFinishCommandInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MongoDbFinishCommandInput.

func (*MongoDbFinishCommandInput) UnmarshalJSON added in v1.1.0

func (m *MongoDbFinishCommandInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbFinishCommandInput.

type MongoDbMigrationProgress

type MongoDbMigrationProgress struct {
	// REQUIRED; The number of document bytes copied during the Copying stage
	BytesCopied *int64

	// REQUIRED; The number of documents copied during the Copying stage
	DocumentsCopied *int64

	// REQUIRED; The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format)
	ElapsedTime *string

	// REQUIRED; The errors and warnings that have occurred for the current object. The keys are the error codes.
	Errors map[string]*MongoDbError

	// REQUIRED; The number of oplog events awaiting replay
	EventsPending *int64

	// REQUIRED; The number of oplog events replayed so far
	EventsReplayed *int64

	// REQUIRED; The type of progress object
	ResultType *MongoDbProgressResultType

	// REQUIRED
	State *MongoDbMigrationState

	// REQUIRED; The total number of document bytes on the source at the beginning of the Copying stage, or -1 if the total size
	// was unknown
	TotalBytes *int64

	// REQUIRED; The total number of documents on the source at the beginning of the Copying stage, or -1 if the total count was
	// unknown
	TotalDocuments *int64

	// The progress of the databases in the migration. The keys are the names of the databases
	Databases map[string]*MongoDbDatabaseProgress

	// The timestamp of the last oplog event received, or null if no oplog event has been received yet
	LastEventTime *time.Time

	// The timestamp of the last oplog event replayed, or null if no oplog event has been replayed yet
	LastReplayTime *time.Time

	// The name of the progress object. For a collection, this is the unqualified collection name. For a database, this is the
	// database name. For the overall migration, this is null.
	Name *string

	// The qualified name of the progress object. For a collection, this is the database-qualified name. For a database, this
	// is the database name. For the overall migration, this is null.
	QualifiedName *string
}

MongoDbMigrationProgress - Describes the progress of the overall migration

func (*MongoDbMigrationProgress) GetMongoDbProgress

func (m *MongoDbMigrationProgress) GetMongoDbProgress() *MongoDbProgress

GetMongoDbProgress implements the MongoDbProgressClassification interface for type MongoDbMigrationProgress.

func (MongoDbMigrationProgress) MarshalJSON

func (m MongoDbMigrationProgress) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MongoDbMigrationProgress.

func (*MongoDbMigrationProgress) UnmarshalJSON

func (m *MongoDbMigrationProgress) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbMigrationProgress.

type MongoDbMigrationSettings

type MongoDbMigrationSettings struct {
	// REQUIRED; The databases on the source cluster to migrate to the target. The keys are the names of the databases.
	Databases map[string]*MongoDbDatabaseSettings

	// REQUIRED; Settings used to connect to the source cluster
	Source *MongoDbConnectionInfo

	// REQUIRED; Settings used to connect to the target cluster
	Target *MongoDbConnectionInfo

	// The RU limit on a CosmosDB target that collections will be temporarily increased to (if lower) during the initial copy
	// of a migration, from 10,000 to 1,000,000, or 0 to use the default boost (which is
	// generally the maximum), or null to not boost the RUs. This setting has no effect on non-CosmosDB targets.
	BoostRUs *int32

	// Describes how changes will be replicated from the source to the target. The default is OneTime.
	Replication *MongoDbReplication

	// Settings used to limit the resource usage of the migration
	Throttling *MongoDbThrottlingSettings
}

MongoDbMigrationSettings - Describes how a MongoDB data migration should be performed

func (MongoDbMigrationSettings) MarshalJSON

func (m MongoDbMigrationSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MongoDbMigrationSettings.

func (*MongoDbMigrationSettings) UnmarshalJSON added in v1.1.0

func (m *MongoDbMigrationSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbMigrationSettings.

type MongoDbMigrationState

type MongoDbMigrationState string
const (
	MongoDbMigrationStateCanceled        MongoDbMigrationState = "Canceled"
	MongoDbMigrationStateComplete        MongoDbMigrationState = "Complete"
	MongoDbMigrationStateCopying         MongoDbMigrationState = "Copying"
	MongoDbMigrationStateFailed          MongoDbMigrationState = "Failed"
	MongoDbMigrationStateFinalizing      MongoDbMigrationState = "Finalizing"
	MongoDbMigrationStateInitialReplay   MongoDbMigrationState = "InitialReplay"
	MongoDbMigrationStateInitializing    MongoDbMigrationState = "Initializing"
	MongoDbMigrationStateNotStarted      MongoDbMigrationState = "NotStarted"
	MongoDbMigrationStateReplaying       MongoDbMigrationState = "Replaying"
	MongoDbMigrationStateRestarting      MongoDbMigrationState = "Restarting"
	MongoDbMigrationStateValidatingInput MongoDbMigrationState = "ValidatingInput"
)

func PossibleMongoDbMigrationStateValues

func PossibleMongoDbMigrationStateValues() []MongoDbMigrationState

PossibleMongoDbMigrationStateValues returns the possible values for the MongoDbMigrationState const type.

type MongoDbObjectInfo

type MongoDbObjectInfo struct {
	// REQUIRED; The average document size, or -1 if the average size is unknown
	AverageDocumentSize *int64

	// REQUIRED; The estimated total data size, in bytes, or -1 if the size is unknown.
	DataSize *int64

	// REQUIRED; The estimated total number of documents, or -1 if the document count is unknown
	DocumentCount *int64

	// REQUIRED; The unqualified name of the database or collection
	Name *string

	// REQUIRED; The qualified name of the database or collection. For a collection, this is the database-qualified name.
	QualifiedName *string
}

MongoDbObjectInfo - Describes a database or collection within a MongoDB data source

func (MongoDbObjectInfo) MarshalJSON added in v1.1.0

func (m MongoDbObjectInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MongoDbObjectInfo.

func (*MongoDbObjectInfo) UnmarshalJSON added in v1.1.0

func (m *MongoDbObjectInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbObjectInfo.

type MongoDbProgress

type MongoDbProgress struct {
	// REQUIRED; The number of document bytes copied during the Copying stage
	BytesCopied *int64

	// REQUIRED; The number of documents copied during the Copying stage
	DocumentsCopied *int64

	// REQUIRED; The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format)
	ElapsedTime *string

	// REQUIRED; The errors and warnings that have occurred for the current object. The keys are the error codes.
	Errors map[string]*MongoDbError

	// REQUIRED; The number of oplog events awaiting replay
	EventsPending *int64

	// REQUIRED; The number of oplog events replayed so far
	EventsReplayed *int64

	// REQUIRED; The type of progress object
	ResultType *MongoDbProgressResultType

	// REQUIRED
	State *MongoDbMigrationState

	// REQUIRED; The total number of document bytes on the source at the beginning of the Copying stage, or -1 if the total size
	// was unknown
	TotalBytes *int64

	// REQUIRED; The total number of documents on the source at the beginning of the Copying stage, or -1 if the total count was
	// unknown
	TotalDocuments *int64

	// The timestamp of the last oplog event received, or null if no oplog event has been received yet
	LastEventTime *time.Time

	// The timestamp of the last oplog event replayed, or null if no oplog event has been replayed yet
	LastReplayTime *time.Time

	// The name of the progress object. For a collection, this is the unqualified collection name. For a database, this is the
	// database name. For the overall migration, this is null.
	Name *string

	// The qualified name of the progress object. For a collection, this is the database-qualified name. For a database, this
	// is the database name. For the overall migration, this is null.
	QualifiedName *string
}

MongoDbProgress - Base class for MongoDB migration outputs

func (*MongoDbProgress) GetMongoDbProgress

func (m *MongoDbProgress) GetMongoDbProgress() *MongoDbProgress

GetMongoDbProgress implements the MongoDbProgressClassification interface for type MongoDbProgress.

func (MongoDbProgress) MarshalJSON

func (m MongoDbProgress) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MongoDbProgress.

func (*MongoDbProgress) UnmarshalJSON

func (m *MongoDbProgress) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbProgress.

type MongoDbProgressClassification

type MongoDbProgressClassification interface {
	// GetMongoDbProgress returns the MongoDbProgress content of the underlying type.
	GetMongoDbProgress() *MongoDbProgress
}

MongoDbProgressClassification provides polymorphic access to related types. Call the interface's GetMongoDbProgress() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *MongoDbCollectionProgress, *MongoDbDatabaseProgress, *MongoDbMigrationProgress, *MongoDbProgress

type MongoDbProgressResultType

type MongoDbProgressResultType string

MongoDbProgressResultType - The type of progress object

const (
	MongoDbProgressResultTypeCollection MongoDbProgressResultType = "Collection"
	MongoDbProgressResultTypeDatabase   MongoDbProgressResultType = "Database"
	MongoDbProgressResultTypeMigration  MongoDbProgressResultType = "Migration"
)

func PossibleMongoDbProgressResultTypeValues

func PossibleMongoDbProgressResultTypeValues() []MongoDbProgressResultType

PossibleMongoDbProgressResultTypeValues returns the possible values for the MongoDbProgressResultType const type.

type MongoDbReplication

type MongoDbReplication string

MongoDbReplication - Describes how changes will be replicated from the source to the target. The default is OneTime.

const (
	MongoDbReplicationContinuous MongoDbReplication = "Continuous"
	MongoDbReplicationDisabled   MongoDbReplication = "Disabled"
	MongoDbReplicationOneTime    MongoDbReplication = "OneTime"
)

func PossibleMongoDbReplicationValues

func PossibleMongoDbReplicationValues() []MongoDbReplication

PossibleMongoDbReplicationValues returns the possible values for the MongoDbReplication const type.

type MongoDbRestartCommand

type MongoDbRestartCommand struct {
	// REQUIRED; Command type.
	CommandType *string

	// Command input
	Input *MongoDbCommandInput

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; The state of the command. This is ignored if submitted.
	State *CommandState
}

MongoDbRestartCommand - Properties for the command that restarts a migration in whole or in part

func (*MongoDbRestartCommand) GetCommandProperties

func (m *MongoDbRestartCommand) GetCommandProperties() *CommandProperties

GetCommandProperties implements the CommandPropertiesClassification interface for type MongoDbRestartCommand.

func (MongoDbRestartCommand) MarshalJSON

func (m MongoDbRestartCommand) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MongoDbRestartCommand.

func (*MongoDbRestartCommand) UnmarshalJSON

func (m *MongoDbRestartCommand) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbRestartCommand.

type MongoDbShardKeyField

type MongoDbShardKeyField struct {
	// REQUIRED; The name of the field
	Name *string

	// REQUIRED; The field ordering
	Order *MongoDbShardKeyOrder
}

MongoDbShardKeyField - Describes a field reference within a MongoDB shard key

func (MongoDbShardKeyField) MarshalJSON added in v1.1.0

func (m MongoDbShardKeyField) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MongoDbShardKeyField.

func (*MongoDbShardKeyField) UnmarshalJSON added in v1.1.0

func (m *MongoDbShardKeyField) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbShardKeyField.

type MongoDbShardKeyInfo

type MongoDbShardKeyInfo struct {
	// REQUIRED; The fields within the shard key
	Fields []*MongoDbShardKeyField

	// REQUIRED; Whether the shard key is unique
	IsUnique *bool
}

MongoDbShardKeyInfo - Describes a MongoDB shard key

func (MongoDbShardKeyInfo) MarshalJSON

func (m MongoDbShardKeyInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MongoDbShardKeyInfo.

func (*MongoDbShardKeyInfo) UnmarshalJSON added in v1.1.0

func (m *MongoDbShardKeyInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbShardKeyInfo.

type MongoDbShardKeyOrder

type MongoDbShardKeyOrder string

MongoDbShardKeyOrder - The field ordering

const (
	MongoDbShardKeyOrderForward MongoDbShardKeyOrder = "Forward"
	MongoDbShardKeyOrderHashed  MongoDbShardKeyOrder = "Hashed"
	MongoDbShardKeyOrderReverse MongoDbShardKeyOrder = "Reverse"
)

func PossibleMongoDbShardKeyOrderValues

func PossibleMongoDbShardKeyOrderValues() []MongoDbShardKeyOrder

PossibleMongoDbShardKeyOrderValues returns the possible values for the MongoDbShardKeyOrder const type.

type MongoDbShardKeySetting

type MongoDbShardKeySetting struct {
	// REQUIRED; The fields within the shard key
	Fields []*MongoDbShardKeyField

	// REQUIRED; Whether the shard key is unique
	IsUnique *bool
}

MongoDbShardKeySetting - Describes a MongoDB shard key

func (MongoDbShardKeySetting) MarshalJSON

func (m MongoDbShardKeySetting) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MongoDbShardKeySetting.

func (*MongoDbShardKeySetting) UnmarshalJSON added in v1.1.0

func (m *MongoDbShardKeySetting) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbShardKeySetting.

type MongoDbThrottlingSettings

type MongoDbThrottlingSettings struct {
	// The maximum number of work items (e.g. collection copies) that will be processed in parallel
	MaxParallelism *int32

	// The percentage of CPU time that the migrator will try to avoid using, from 0 to 100
	MinFreeCPU *int32

	// The number of megabytes of RAM that the migrator will try to avoid using
	MinFreeMemoryMb *int32
}

MongoDbThrottlingSettings - Specifies resource limits for the migration

func (MongoDbThrottlingSettings) MarshalJSON added in v1.1.0

func (m MongoDbThrottlingSettings) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MongoDbThrottlingSettings.

func (*MongoDbThrottlingSettings) UnmarshalJSON added in v1.1.0

func (m *MongoDbThrottlingSettings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbThrottlingSettings.

type MySQLConnectionInfo

type MySQLConnectionInfo struct {
	// REQUIRED; Port for Server
	Port *int32

	// REQUIRED; Name of the server
	ServerName *string

	// REQUIRED; Type of connection info
	Type *string

	// Whether to encrypt the connection
	EncryptConnection *bool

	// Password credential.
	Password *string

	// User name
	UserName *string
}

MySQLConnectionInfo - Information for connecting to MySQL server

func (*MySQLConnectionInfo) GetConnectionInfo

func (m *MySQLConnectionInfo) GetConnectionInfo() *ConnectionInfo

GetConnectionInfo implements the ConnectionInfoClassification interface for type MySQLConnectionInfo.

func (MySQLConnectionInfo) MarshalJSON

func (m MySQLConnectionInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MySQLConnectionInfo.

func (*MySQLConnectionInfo) UnmarshalJSON

func (m *MySQLConnectionInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type MySQLConnectionInfo.

type MySQLTargetPlatformType

type MySQLTargetPlatformType string

MySQLTargetPlatformType - An enumeration of possible target types when migrating from MySQL

const (
	MySQLTargetPlatformTypeAzureDbForMySQL MySQLTargetPlatformType = "AzureDbForMySQL"
	MySQLTargetPlatformTypeSQLServer       MySQLTargetPlatformType = "SqlServer"
)

func PossibleMySQLTargetPlatformTypeValues

func PossibleMySQLTargetPlatformTypeValues() []MySQLTargetPlatformType

PossibleMySQLTargetPlatformTypeValues returns the possible values for the MySQLTargetPlatformType const type.

type NameAvailabilityRequest

type NameAvailabilityRequest struct {
	// The proposed resource name
	Name *string

	// The resource type chain (e.g. virtualMachines/extensions)
	Type *string
}

NameAvailabilityRequest - A resource type and proposed name

func (NameAvailabilityRequest) MarshalJSON added in v1.1.0

func (n NameAvailabilityRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NameAvailabilityRequest.

func (*NameAvailabilityRequest) UnmarshalJSON added in v1.1.0

func (n *NameAvailabilityRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NameAvailabilityRequest.

type NameAvailabilityResponse

type NameAvailabilityResponse struct {
	// The localized reason why the name is not available, if nameAvailable is false
	Message *string

	// If true, the name is valid and available. If false, 'reason' describes why not.
	NameAvailable *bool

	// The reason why the name is not available, if nameAvailable is false
	Reason *NameCheckFailureReason
}

NameAvailabilityResponse - Indicates whether a proposed resource name is available

func (NameAvailabilityResponse) MarshalJSON added in v1.1.0

func (n NameAvailabilityResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NameAvailabilityResponse.

func (*NameAvailabilityResponse) UnmarshalJSON added in v1.1.0

func (n *NameAvailabilityResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NameAvailabilityResponse.

type NameCheckFailureReason

type NameCheckFailureReason string

NameCheckFailureReason - The reason why the name is not available, if nameAvailable is false

const (
	NameCheckFailureReasonAlreadyExists NameCheckFailureReason = "AlreadyExists"
	NameCheckFailureReasonInvalid       NameCheckFailureReason = "Invalid"
)

func PossibleNameCheckFailureReasonValues

func PossibleNameCheckFailureReasonValues() []NameCheckFailureReason

PossibleNameCheckFailureReasonValues returns the possible values for the NameCheckFailureReason const type.

type NonSQLDataMigrationTable

type NonSQLDataMigrationTable struct {
	// Source table name
	SourceName *string
}

NonSQLDataMigrationTable - Defines metadata for table to be migrated

func (NonSQLDataMigrationTable) MarshalJSON added in v1.1.0

func (n NonSQLDataMigrationTable) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NonSQLDataMigrationTable.

func (*NonSQLDataMigrationTable) UnmarshalJSON added in v1.1.0

func (n *NonSQLDataMigrationTable) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NonSQLDataMigrationTable.

type NonSQLDataMigrationTableResult

type NonSQLDataMigrationTableResult struct {
	// READ-ONLY; Time taken to migrate the data
	ElapsedTimeInMiliseconds *float64

	// READ-ONLY; List of errors, if any, during migration
	Errors []*Error

	// READ-ONLY; Result code of the data migration
	ResultCode *DataMigrationResultCode

	// READ-ONLY; Name of the source table
	SourceName *string

	// READ-ONLY; Number of rows in the source table
	SourceRowCount *int64

	// READ-ONLY; Name of the target table
	TargetName *string

	// READ-ONLY; Number of rows in the target table
	TargetRowCount *int64
}

NonSQLDataMigrationTableResult - Object used to report the data migration results of a table

func (NonSQLDataMigrationTableResult) MarshalJSON added in v1.1.0

func (n NonSQLDataMigrationTableResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NonSQLDataMigrationTableResult.

func (*NonSQLDataMigrationTableResult) UnmarshalJSON added in v1.1.0

func (n *NonSQLDataMigrationTableResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NonSQLDataMigrationTableResult.

type NonSQLMigrationTaskInput

type NonSQLMigrationTaskInput struct {
	// REQUIRED; A URL that points to the drop location to access project artifacts
	ProjectLocation *string

	// REQUIRED; Name of the migration project
	ProjectName *string

	// REQUIRED; Metadata of the tables selected for migration
	SelectedTables []*NonSQLDataMigrationTable

	// REQUIRED; Information for connecting to target
	TargetConnectionInfo *SQLConnectionInfo

	// REQUIRED; Target database name
	TargetDatabaseName *string
}

NonSQLMigrationTaskInput - Base class for non sql migration task input

func (NonSQLMigrationTaskInput) MarshalJSON added in v1.1.0

func (n NonSQLMigrationTaskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NonSQLMigrationTaskInput.

func (*NonSQLMigrationTaskInput) UnmarshalJSON added in v1.1.0

func (n *NonSQLMigrationTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NonSQLMigrationTaskInput.

type NonSQLMigrationTaskOutput

type NonSQLMigrationTaskOutput struct {
	// READ-ONLY; Results of the migration. The key contains the table name and the value the table result object
	DataMigrationTableResults *string

	// READ-ONLY; Migration end time
	EndedOn *time.Time

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Message about the progress of the migration
	ProgressMessage *string

	// READ-ONLY; Name of source server
	SourceServerName *string

	// READ-ONLY; Migration start time
	StartedOn *time.Time

	// READ-ONLY; Current state of migration
	Status *MigrationStatus

	// READ-ONLY; Name of target server
	TargetServerName *string
}

NonSQLMigrationTaskOutput - Base class for non sql migration task output

func (NonSQLMigrationTaskOutput) MarshalJSON added in v1.1.0

func (n NonSQLMigrationTaskOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NonSQLMigrationTaskOutput.

func (*NonSQLMigrationTaskOutput) UnmarshalJSON

func (n *NonSQLMigrationTaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NonSQLMigrationTaskOutput.

type ODataError

type ODataError struct {
	// The machine-readable description of the error, such as 'InvalidRequest' or 'InternalServerError'
	Code *string

	// Inner errors that caused this error
	Details []*ODataError

	// The human-readable description of the error
	Message *string
}

ODataError - Error information in OData format.

func (ODataError) MarshalJSON

func (o ODataError) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ODataError.

func (*ODataError) UnmarshalJSON added in v1.1.0

func (o *ODataError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ODataError.

type ObjectType

type ObjectType string

ObjectType - An enumeration of type of objects

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

func PossibleObjectTypeValues

func PossibleObjectTypeValues() []ObjectType

PossibleObjectTypeValues returns the possible values for the ObjectType const type.

type OperationsClient

type OperationsClient struct {
	// contains filtered or unexported fields
}

OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.

func NewOperationsClient

func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)

NewOperationsClient creates a new instance of OperationsClient with the specified values.

  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*OperationsClient) NewListPager

NewListPager - Lists all available actions exposed by the Database Migration Service resource provider.

Generated from API version 2021-06-30

  • options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Operations_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewOperationsClient().NewListPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.ServiceOperationList = armdatamigration.ServiceOperationList{
		// 	Value: []*armdatamigration.ServiceOperation{
		// 		{
		// 			Name: to.Ptr("Microsoft.DataMigration/services/read"),
		// 			Display: &armdatamigration.ServiceOperationDisplay{
		// 				Description: to.Ptr("Read information about services."),
		// 				Operation: to.Ptr("Read"),
		// 				Provider: to.Ptr("Database Migration Service"),
		// 				Resource: to.Ptr("Database Migration Service"),
		// 			},
		// 	}},
		// }
	}
}
Output:

type OperationsClientListOptions

type OperationsClientListOptions struct {
}

OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.

type OperationsClientListResponse

type OperationsClientListResponse struct {
	// OData page of action (operation) objects
	ServiceOperationList
}

OperationsClientListResponse contains the response from method OperationsClient.NewListPager.

type OracleConnectionInfo

type OracleConnectionInfo struct {
	// REQUIRED; EZConnect or TNSName connection string.
	DataSource *string

	// REQUIRED; Type of connection info
	Type *string

	// Password credential.
	Password *string

	// User name
	UserName *string
}

OracleConnectionInfo - Information for connecting to Oracle server

func (*OracleConnectionInfo) GetConnectionInfo

func (o *OracleConnectionInfo) GetConnectionInfo() *ConnectionInfo

GetConnectionInfo implements the ConnectionInfoClassification interface for type OracleConnectionInfo.

func (OracleConnectionInfo) MarshalJSON

func (o OracleConnectionInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OracleConnectionInfo.

func (*OracleConnectionInfo) UnmarshalJSON

func (o *OracleConnectionInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OracleConnectionInfo.

type OracleOCIDriverInfo

type OracleOCIDriverInfo struct {
	// READ-ONLY; The MD5 Base64 encoded checksum for the driver package.
	ArchiveChecksum *string

	// READ-ONLY; Version listed in the OCI assembly 'oci.dll'
	AssemblyVersion *string

	// READ-ONLY; The name of the driver package
	DriverName *string

	// READ-ONLY; The size in bytes of the driver package
	DriverSize *string

	// READ-ONLY; The checksum for the driver package provided by Oracle.
	OracleChecksum *string

	// READ-ONLY; List of Oracle database versions supported by this driver. Only major minor of the version is listed.
	SupportedOracleVersions []*string
}

OracleOCIDriverInfo - Information about an Oracle OCI driver.

func (OracleOCIDriverInfo) MarshalJSON

func (o OracleOCIDriverInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OracleOCIDriverInfo.

func (*OracleOCIDriverInfo) UnmarshalJSON added in v1.1.0

func (o *OracleOCIDriverInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OracleOCIDriverInfo.

type OrphanedUserInfo

type OrphanedUserInfo struct {
	// Parent database of the user
	DatabaseName *string

	// Name of the orphaned user
	Name *string
}

OrphanedUserInfo - Information of orphaned users on the SQL server database.

func (OrphanedUserInfo) MarshalJSON added in v1.1.0

func (o OrphanedUserInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OrphanedUserInfo.

func (*OrphanedUserInfo) UnmarshalJSON added in v1.1.0

func (o *OrphanedUserInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OrphanedUserInfo.

type PostgreSQLConnectionInfo

type PostgreSQLConnectionInfo struct {
	// REQUIRED; Port for Server
	Port *int32

	// REQUIRED; Name of the server
	ServerName *string

	// REQUIRED; Type of connection info
	Type *string

	// Name of the database
	DatabaseName *string

	// Whether to encrypt the connection
	EncryptConnection *bool

	// Password credential.
	Password *string

	// Whether to trust the server certificate
	TrustServerCertificate *bool

	// User name
	UserName *string
}

PostgreSQLConnectionInfo - Information for connecting to PostgreSQL server

func (*PostgreSQLConnectionInfo) GetConnectionInfo

func (p *PostgreSQLConnectionInfo) GetConnectionInfo() *ConnectionInfo

GetConnectionInfo implements the ConnectionInfoClassification interface for type PostgreSQLConnectionInfo.

func (PostgreSQLConnectionInfo) MarshalJSON

func (p PostgreSQLConnectionInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PostgreSQLConnectionInfo.

func (*PostgreSQLConnectionInfo) UnmarshalJSON

func (p *PostgreSQLConnectionInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PostgreSQLConnectionInfo.

type Project

type Project struct {
	// REQUIRED; Resource location.
	Location *string

	// Project properties
	Properties *ProjectProperties

	// Resource tags.
	Tags map[string]*string

	// READ-ONLY; Resource ID.
	ID *string

	// READ-ONLY; Resource name.
	Name *string

	// READ-ONLY; Metadata pertaining to creation and last modification of the resource.
	SystemData *SystemData

	// READ-ONLY; Resource type.
	Type *string
}

Project - A project resource

func (Project) MarshalJSON

func (p Project) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Project.

func (*Project) UnmarshalJSON added in v1.1.0

func (p *Project) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Project.

type ProjectFile

type ProjectFile struct {
	// HTTP strong entity tag value. This is ignored if submitted.
	Etag *string

	// Custom file properties
	Properties *ProjectFileProperties

	// READ-ONLY; Resource ID.
	ID *string

	// READ-ONLY; Resource name.
	Name *string

	// READ-ONLY; Metadata pertaining to creation and last modification of the resource.
	SystemData *SystemData

	// READ-ONLY; Resource type.
	Type *string
}

ProjectFile - A file resource

func (ProjectFile) MarshalJSON

func (p ProjectFile) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProjectFile.

func (*ProjectFile) UnmarshalJSON added in v1.1.0

func (p *ProjectFile) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProjectFile.

type ProjectFileProperties

type ProjectFileProperties struct {
	// Optional File extension. If submitted it should not have a leading period and must match the extension from filePath.
	Extension *string

	// Relative path of this file resource. This property can be set when creating or updating the file resource.
	FilePath *string

	// File content type. This property can be modified to reflect the file content type.
	MediaType *string

	// READ-ONLY; Modification DateTime.
	LastModified *time.Time

	// READ-ONLY; File size.
	Size *int64
}

ProjectFileProperties - Base class for file properties.

func (ProjectFileProperties) MarshalJSON

func (p ProjectFileProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProjectFileProperties.

func (*ProjectFileProperties) UnmarshalJSON

func (p *ProjectFileProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProjectFileProperties.

type ProjectList

type ProjectList struct {
	// URL to load the next page of projects
	NextLink *string

	// List of projects
	Value []*Project
}

ProjectList - OData page of project resources

func (ProjectList) MarshalJSON added in v1.1.0

func (p ProjectList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProjectList.

func (*ProjectList) UnmarshalJSON added in v1.1.0

func (p *ProjectList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProjectList.

type ProjectMetadata

type ProjectMetadata struct {
	// READ-ONLY; List of tables selected for migration
	SelectedMigrationTables []*MigrationTableMetadata

	// READ-ONLY; Source server name
	SourceServerName *string

	// READ-ONLY; Source server port number
	SourceServerPort *string

	// READ-ONLY; Source username
	SourceUsername *string

	// READ-ONLY; Target database name
	TargetDbName *string

	// READ-ONLY; Target server name
	TargetServerName *string

	// READ-ONLY; Target username
	TargetUsername *string

	// READ-ONLY; Whether target connection is Windows authentication
	TargetUsingWinAuth *bool
}

ProjectMetadata - Common metadata for migration projects

func (ProjectMetadata) MarshalJSON added in v1.1.0

func (p ProjectMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProjectMetadata.

func (*ProjectMetadata) UnmarshalJSON added in v1.1.0

func (p *ProjectMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProjectMetadata.

type ProjectProperties

type ProjectProperties struct {
	// REQUIRED; Source platform for the project
	SourcePlatform *ProjectSourcePlatform

	// REQUIRED; Target platform for the project
	TargetPlatform *ProjectTargetPlatform

	// List of DatabaseInfo
	DatabasesInfo []*DatabaseInfo

	// Information for connecting to source
	SourceConnectionInfo ConnectionInfoClassification

	// Information for connecting to target
	TargetConnectionInfo ConnectionInfoClassification

	// READ-ONLY; UTC Date and time when project was created
	CreationTime *time.Time

	// READ-ONLY; The project's provisioning state
	ProvisioningState *ProjectProvisioningState
}

ProjectProperties - Project-specific properties

func (ProjectProperties) MarshalJSON

func (p ProjectProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProjectProperties.

func (*ProjectProperties) UnmarshalJSON

func (p *ProjectProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProjectProperties.

type ProjectProvisioningState

type ProjectProvisioningState string

ProjectProvisioningState - The project's provisioning state

const (
	ProjectProvisioningStateDeleting  ProjectProvisioningState = "Deleting"
	ProjectProvisioningStateSucceeded ProjectProvisioningState = "Succeeded"
)

func PossibleProjectProvisioningStateValues

func PossibleProjectProvisioningStateValues() []ProjectProvisioningState

PossibleProjectProvisioningStateValues returns the possible values for the ProjectProvisioningState const type.

type ProjectSourcePlatform

type ProjectSourcePlatform string

ProjectSourcePlatform - Source platform of the project

const (
	ProjectSourcePlatformMongoDb    ProjectSourcePlatform = "MongoDb"
	ProjectSourcePlatformMySQL      ProjectSourcePlatform = "MySQL"
	ProjectSourcePlatformPostgreSQL ProjectSourcePlatform = "PostgreSql"
	ProjectSourcePlatformSQL        ProjectSourcePlatform = "SQL"
	ProjectSourcePlatformUnknown    ProjectSourcePlatform = "Unknown"
)

func PossibleProjectSourcePlatformValues

func PossibleProjectSourcePlatformValues() []ProjectSourcePlatform

PossibleProjectSourcePlatformValues returns the possible values for the ProjectSourcePlatform const type.

type ProjectTargetPlatform

type ProjectTargetPlatform string

ProjectTargetPlatform - Target platform of the project

const (
	ProjectTargetPlatformAzureDbForMySQL      ProjectTargetPlatform = "AzureDbForMySql"
	ProjectTargetPlatformAzureDbForPostgreSQL ProjectTargetPlatform = "AzureDbForPostgreSql"
	ProjectTargetPlatformMongoDb              ProjectTargetPlatform = "MongoDb"
	ProjectTargetPlatformSQLDB                ProjectTargetPlatform = "SQLDB"
	ProjectTargetPlatformSQLMI                ProjectTargetPlatform = "SQLMI"
	ProjectTargetPlatformUnknown              ProjectTargetPlatform = "Unknown"
)

func PossibleProjectTargetPlatformValues

func PossibleProjectTargetPlatformValues() []ProjectTargetPlatform

PossibleProjectTargetPlatformValues returns the possible values for the ProjectTargetPlatform const type.

type ProjectTask

type ProjectTask struct {
	// HTTP strong entity tag value. This is ignored if submitted.
	Etag *string

	// Custom task properties
	Properties ProjectTaskPropertiesClassification

	// READ-ONLY; Resource ID.
	ID *string

	// READ-ONLY; Resource name.
	Name *string

	// READ-ONLY; Metadata pertaining to creation and last modification of the resource.
	SystemData *SystemData

	// READ-ONLY; Resource type.
	Type *string
}

ProjectTask - A task resource

func (ProjectTask) MarshalJSON

func (p ProjectTask) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProjectTask.

func (*ProjectTask) UnmarshalJSON

func (p *ProjectTask) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProjectTask.

type ProjectTaskProperties

type ProjectTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

ProjectTaskProperties - Base class for all types of DMS task properties. If task is not supported by current client, this object is returned.

func (*ProjectTaskProperties) GetProjectTaskProperties

func (p *ProjectTaskProperties) GetProjectTaskProperties() *ProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type ProjectTaskProperties.

func (ProjectTaskProperties) MarshalJSON

func (p ProjectTaskProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProjectTaskProperties.

func (*ProjectTaskProperties) UnmarshalJSON

func (p *ProjectTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProjectTaskProperties.

type ProjectTaskPropertiesClassification

type ProjectTaskPropertiesClassification interface {
	// GetProjectTaskProperties returns the ProjectTaskProperties content of the underlying type.
	GetProjectTaskProperties() *ProjectTaskProperties
}

ProjectTaskPropertiesClassification provides polymorphic access to related types. Call the interface's GetProjectTaskProperties() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *CheckOCIDriverTaskProperties, *ConnectToMongoDbTaskProperties, *ConnectToSourceMySQLTaskProperties, *ConnectToSourceOracleSyncTaskProperties, - *ConnectToSourcePostgreSQLSyncTaskProperties, *ConnectToSourceSQLServerSyncTaskProperties, *ConnectToSourceSQLServerTaskProperties, - *ConnectToTargetAzureDbForMySQLTaskProperties, *ConnectToTargetAzureDbForPostgreSQLSyncTaskProperties, *ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskProperties, - *ConnectToTargetSQLDbSyncTaskProperties, *ConnectToTargetSQLDbTaskProperties, *ConnectToTargetSQLMISyncTaskProperties, - *ConnectToTargetSQLMITaskProperties, *GetTdeCertificatesSQLTaskProperties, *GetUserTablesMySQLTaskProperties, *GetUserTablesOracleTaskProperties, - *GetUserTablesPostgreSQLTaskProperties, *GetUserTablesSQLSyncTaskProperties, *GetUserTablesSQLTaskProperties, *InstallOCIDriverTaskProperties, - *MigrateMongoDbTaskProperties, *MigrateMySQLAzureDbForMySQLOfflineTaskProperties, *MigrateMySQLAzureDbForMySQLSyncTaskProperties, - *MigrateOracleAzureDbForPostgreSQLSyncTaskProperties, *MigratePostgreSQLAzureDbForPostgreSQLSyncTaskProperties, *MigrateSQLServerSQLDbSyncTaskProperties, - *MigrateSQLServerSQLDbTaskProperties, *MigrateSQLServerSQLMISyncTaskProperties, *MigrateSQLServerSQLMITaskProperties, - *MigrateSchemaSQLServerSQLDbTaskProperties, *MigrateSsisTaskProperties, *ProjectTaskProperties, *UploadOCIDriverTaskProperties, - *ValidateMigrationInputSQLServerSQLDbSyncTaskProperties, *ValidateMigrationInputSQLServerSQLMISyncTaskProperties, *ValidateMigrationInputSQLServerSQLMITaskProperties, - *ValidateMongoDbTaskProperties, *ValidateOracleAzureDbForPostgreSQLSyncTaskProperties

type ProjectsClient

type ProjectsClient struct {
	// contains filtered or unexported fields
}

ProjectsClient contains the methods for the Projects group. Don't use this type directly, use NewProjectsClient() instead.

func NewProjectsClient

func NewProjectsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ProjectsClient, error)

NewProjectsClient creates a new instance of ProjectsClient with the specified values.

  • subscriptionID - Identifier of the subscription
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*ProjectsClient) CreateOrUpdate

func (client *ProjectsClient) CreateOrUpdate(ctx context.Context, groupName string, serviceName string, projectName string, parameters Project, options *ProjectsClientCreateOrUpdateOptions) (ProjectsClientCreateOrUpdateResponse, error)

CreateOrUpdate - The project resource is a nested resource representing a stored migration project. The PUT method creates a new project or updates an existing one. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • projectName - Name of the project
  • parameters - Information about the project
  • options - ProjectsClientCreateOrUpdateOptions contains the optional parameters for the ProjectsClient.CreateOrUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Projects_CreateOrUpdate.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewProjectsClient().CreateOrUpdate(ctx, "DmsSdkRg", "DmsSdkService", "DmsSdkProject", armdatamigration.Project{
		Location: to.Ptr("southcentralus"),
		Properties: &armdatamigration.ProjectProperties{
			SourcePlatform: to.Ptr(armdatamigration.ProjectSourcePlatformSQL),
			TargetPlatform: to.Ptr(armdatamigration.ProjectTargetPlatformSQLDB),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.Project = armdatamigration.Project{
	// 	Name: to.Ptr("DmsSdkProject"),
	// 	Type: to.Ptr("Microsoft.DataMigration/services/projects"),
	// 	ID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService/projects/DmsSdkProject"),
	// 	Location: to.Ptr("southcentralus"),
	// 	Properties: &armdatamigration.ProjectProperties{
	// 		CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-03T09:14:54.245Z"); return t}()),
	// 		ProvisioningState: to.Ptr(armdatamigration.ProjectProvisioningStateSucceeded),
	// 		SourcePlatform: to.Ptr(armdatamigration.ProjectSourcePlatformSQL),
	// 		TargetPlatform: to.Ptr(armdatamigration.ProjectTargetPlatformSQLDB),
	// 	},
	// }
}
Output:

func (*ProjectsClient) Delete

func (client *ProjectsClient) Delete(ctx context.Context, groupName string, serviceName string, projectName string, options *ProjectsClientDeleteOptions) (ProjectsClientDeleteResponse, error)

Delete - The project resource is a nested resource representing a stored migration project. The DELETE method deletes a project. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • projectName - Name of the project
  • options - ProjectsClientDeleteOptions contains the optional parameters for the ProjectsClient.Delete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Projects_Delete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewProjectsClient().Delete(ctx, "DmsSdkRg", "DmsSdkService", "DmsSdkProject", &armdatamigration.ProjectsClientDeleteOptions{DeleteRunningTasks: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

func (*ProjectsClient) Get

func (client *ProjectsClient) Get(ctx context.Context, groupName string, serviceName string, projectName string, options *ProjectsClientGetOptions) (ProjectsClientGetResponse, error)

Get - The project resource is a nested resource representing a stored migration project. The GET method retrieves information about a project. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • projectName - Name of the project
  • options - ProjectsClientGetOptions contains the optional parameters for the ProjectsClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Projects_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewProjectsClient().Get(ctx, "DmsSdkRg", "DmsSdkService", "DmsSdkProject", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.Project = armdatamigration.Project{
	// 	Name: to.Ptr("DmsSdkProject"),
	// 	Type: to.Ptr("Microsoft.DataMigration/services/projects"),
	// 	ID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService/projects/DmsSdkProject"),
	// 	Location: to.Ptr("southcentralus"),
	// 	Properties: &armdatamigration.ProjectProperties{
	// 		CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-03T09:35:11.656Z"); return t}()),
	// 		ProvisioningState: to.Ptr(armdatamigration.ProjectProvisioningStateSucceeded),
	// 		SourcePlatform: to.Ptr(armdatamigration.ProjectSourcePlatformSQL),
	// 		TargetPlatform: to.Ptr(armdatamigration.ProjectTargetPlatformSQLDB),
	// 	},
	// }
}
Output:

func (*ProjectsClient) NewListPager

func (client *ProjectsClient) NewListPager(groupName string, serviceName string, options *ProjectsClientListOptions) *runtime.Pager[ProjectsClientListResponse]

NewListPager - The project resource is a nested resource representing a stored migration project. This method returns a list of projects owned by a service resource.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • options - ProjectsClientListOptions contains the optional parameters for the ProjectsClient.NewListPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Projects_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewProjectsClient().NewListPager("DmsSdkRg", "DmsSdkService", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.ProjectList = armdatamigration.ProjectList{
		// 	Value: []*armdatamigration.Project{
		// 		{
		// 			Name: to.Ptr("project1"),
		// 			Type: to.Ptr("Microsoft.DataMigration/services/projects"),
		// 			ID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService/projects/project1"),
		// 			Location: to.Ptr("southcentralus"),
		// 			Properties: &armdatamigration.ProjectProperties{
		// 				CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-14T01:29:56.304Z"); return t}()),
		// 				ProvisioningState: to.Ptr(armdatamigration.ProjectProvisioningStateSucceeded),
		// 				SourcePlatform: to.Ptr(armdatamigration.ProjectSourcePlatformSQL),
		// 				TargetPlatform: to.Ptr(armdatamigration.ProjectTargetPlatformSQLDB),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("project2"),
		// 			Type: to.Ptr("Microsoft.DataMigration/services/projects"),
		// 			ID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService/projects/project2"),
		// 			Location: to.Ptr("southcentralus"),
		// 			Properties: &armdatamigration.ProjectProperties{
		// 				CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-14T01:30:05.618Z"); return t}()),
		// 				ProvisioningState: to.Ptr(armdatamigration.ProjectProvisioningStateSucceeded),
		// 				SourcePlatform: to.Ptr(armdatamigration.ProjectSourcePlatformSQL),
		// 				TargetPlatform: to.Ptr(armdatamigration.ProjectTargetPlatformSQLDB),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*ProjectsClient) Update

func (client *ProjectsClient) Update(ctx context.Context, groupName string, serviceName string, projectName string, parameters Project, options *ProjectsClientUpdateOptions) (ProjectsClientUpdateResponse, error)

Update - The project resource is a nested resource representing a stored migration project. The PATCH method updates an existing project. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • projectName - Name of the project
  • parameters - Information about the project
  • options - ProjectsClientUpdateOptions contains the optional parameters for the ProjectsClient.Update method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Projects_Update.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewProjectsClient().Update(ctx, "DmsSdkRg", "DmsSdkService", "DmsSdkProject", armdatamigration.Project{
		Location: to.Ptr("southcentralus"),
		Properties: &armdatamigration.ProjectProperties{
			SourcePlatform: to.Ptr(armdatamigration.ProjectSourcePlatformSQL),
			TargetPlatform: to.Ptr(armdatamigration.ProjectTargetPlatformSQLDB),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.Project = armdatamigration.Project{
	// 	Name: to.Ptr("DmsSdkProject"),
	// 	Type: to.Ptr("Microsoft.DataMigration/services/projects"),
	// 	ID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService/projects/DmsSdkProject"),
	// 	Location: to.Ptr("southcentralus"),
	// 	Properties: &armdatamigration.ProjectProperties{
	// 		CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-03T09:14:54.245Z"); return t}()),
	// 		ProvisioningState: to.Ptr(armdatamigration.ProjectProvisioningStateSucceeded),
	// 		SourcePlatform: to.Ptr(armdatamigration.ProjectSourcePlatformSQL),
	// 		TargetPlatform: to.Ptr(armdatamigration.ProjectTargetPlatformSQLDB),
	// 	},
	// }
}
Output:

type ProjectsClientCreateOrUpdateOptions

type ProjectsClientCreateOrUpdateOptions struct {
}

ProjectsClientCreateOrUpdateOptions contains the optional parameters for the ProjectsClient.CreateOrUpdate method.

type ProjectsClientCreateOrUpdateResponse

type ProjectsClientCreateOrUpdateResponse struct {
	// A project resource
	Project
}

ProjectsClientCreateOrUpdateResponse contains the response from method ProjectsClient.CreateOrUpdate.

type ProjectsClientDeleteOptions

type ProjectsClientDeleteOptions struct {
	// Delete the resource even if it contains running tasks
	DeleteRunningTasks *bool
}

ProjectsClientDeleteOptions contains the optional parameters for the ProjectsClient.Delete method.

type ProjectsClientDeleteResponse

type ProjectsClientDeleteResponse struct {
}

ProjectsClientDeleteResponse contains the response from method ProjectsClient.Delete.

type ProjectsClientGetOptions

type ProjectsClientGetOptions struct {
}

ProjectsClientGetOptions contains the optional parameters for the ProjectsClient.Get method.

type ProjectsClientGetResponse

type ProjectsClientGetResponse struct {
	// A project resource
	Project
}

ProjectsClientGetResponse contains the response from method ProjectsClient.Get.

type ProjectsClientListOptions

type ProjectsClientListOptions struct {
}

ProjectsClientListOptions contains the optional parameters for the ProjectsClient.NewListPager method.

type ProjectsClientListResponse

type ProjectsClientListResponse struct {
	// OData page of project resources
	ProjectList
}

ProjectsClientListResponse contains the response from method ProjectsClient.NewListPager.

type ProjectsClientUpdateOptions

type ProjectsClientUpdateOptions struct {
}

ProjectsClientUpdateOptions contains the optional parameters for the ProjectsClient.Update method.

type ProjectsClientUpdateResponse

type ProjectsClientUpdateResponse struct {
	// A project resource
	Project
}

ProjectsClientUpdateResponse contains the response from method ProjectsClient.Update.

type QueryAnalysisValidationResult

type QueryAnalysisValidationResult struct {
	// List of queries executed and it's execution results in source and target
	QueryResults *QueryExecutionResult

	// Errors that are part of the execution
	ValidationErrors *ValidationError
}

QueryAnalysisValidationResult - Results for query analysis comparison between the source and target

func (QueryAnalysisValidationResult) MarshalJSON added in v1.1.0

func (q QueryAnalysisValidationResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type QueryAnalysisValidationResult.

func (*QueryAnalysisValidationResult) UnmarshalJSON added in v1.1.0

func (q *QueryAnalysisValidationResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type QueryAnalysisValidationResult.

type QueryExecutionResult

type QueryExecutionResult struct {
	// Query text retrieved from the source server
	QueryText *string

	// Query analysis result from the source
	SourceResult *ExecutionStatistics

	// Total no. of statements in the batch
	StatementsInBatch *int64

	// Query analysis result from the target
	TargetResult *ExecutionStatistics
}

QueryExecutionResult - Describes query analysis results for execution in source and target

func (QueryExecutionResult) MarshalJSON added in v1.1.0

func (q QueryExecutionResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type QueryExecutionResult.

func (*QueryExecutionResult) UnmarshalJSON added in v1.1.0

func (q *QueryExecutionResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type QueryExecutionResult.

type Quota

type Quota struct {
	// The current value of the quota. If null or missing, the current value cannot be determined in the context of the request.
	CurrentValue *float64

	// The resource ID of the quota object
	ID *string

	// The maximum value of the quota. If null or missing, the quota has no maximum, in which case it merely tracks usage.
	Limit *float64

	// The name of the quota
	Name *QuotaName

	// The unit for the quota, such as Count, Bytes, BytesPerSecond, etc.
	Unit *string
}

Quota - Describes a quota for or usage details about a resource

func (Quota) MarshalJSON added in v1.1.0

func (q Quota) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Quota.

func (*Quota) UnmarshalJSON added in v1.1.0

func (q *Quota) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Quota.

type QuotaList

type QuotaList struct {
	// URL to load the next page of quotas, or null or missing if this is the last page
	NextLink *string

	// List of quotas
	Value []*Quota
}

QuotaList - OData page of quota objects

func (QuotaList) MarshalJSON added in v1.1.0

func (q QuotaList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type QuotaList.

func (*QuotaList) UnmarshalJSON added in v1.1.0

func (q *QuotaList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type QuotaList.

type QuotaName

type QuotaName struct {
	// The localized name of the quota
	LocalizedValue *string

	// The unlocalized name (or ID) of the quota
	Value *string
}

QuotaName - The name of the quota

func (QuotaName) MarshalJSON added in v1.1.0

func (q QuotaName) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type QuotaName.

func (*QuotaName) UnmarshalJSON added in v1.1.0

func (q *QuotaName) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type QuotaName.

type ReplicateMigrationState

type ReplicateMigrationState string

ReplicateMigrationState - Wrapper for replicate reported migration states.

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

func PossibleReplicateMigrationStateValues

func PossibleReplicateMigrationStateValues() []ReplicateMigrationState

PossibleReplicateMigrationStateValues returns the possible values for the ReplicateMigrationState const type.

type ReportableException

type ReportableException struct {
	// Actionable steps for this exception
	ActionableMessage *string

	// The path to the file where exception occurred
	FilePath *string

	// Coded numerical value that is assigned to a specific exception
	HResult *int32

	// The line number where exception occurred
	LineNumber *string

	// Error message
	Message *string

	// Stack trace
	StackTrace *string
}

ReportableException - Exception object for all custom exceptions

func (ReportableException) MarshalJSON added in v1.1.0

func (r ReportableException) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ReportableException.

func (*ReportableException) UnmarshalJSON added in v1.1.0

func (r *ReportableException) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ReportableException.

type Resource

type Resource struct {
	// READ-ONLY; Resource ID.
	ID *string

	// READ-ONLY; Resource name.
	Name *string

	// READ-ONLY; Resource type.
	Type *string
}

Resource - ARM resource.

func (Resource) MarshalJSON added in v1.1.0

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Resource.

func (*Resource) UnmarshalJSON added in v1.1.0

func (r *Resource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Resource.

type ResourceSKU

type ResourceSKU struct {
	// READ-ONLY; The api versions that support this SKU.
	APIVersions []*string

	// READ-ONLY; A name value pair to describe the capability.
	Capabilities []*ResourceSKUCapabilities

	// READ-ONLY; Not used.
	Capacity *ResourceSKUCapacity

	// READ-ONLY; Metadata for retrieving price info.
	Costs []*ResourceSKUCosts

	// READ-ONLY; The Family of this particular SKU.
	Family *string

	// READ-ONLY; The Kind of resources that are supported in this SKU.
	Kind *string

	// READ-ONLY; The set of locations that the SKU is available.
	Locations []*string

	// READ-ONLY; The name of SKU.
	Name *string

	// READ-ONLY; The type of resource the SKU applies to.
	ResourceType *string

	// READ-ONLY; The restrictions because of which SKU cannot be used. This is empty if there are no restrictions.
	Restrictions []*ResourceSKURestrictions

	// READ-ONLY; The Size of the SKU.
	Size *string

	// READ-ONLY; Specifies the tier of DMS in a scale set.
	Tier *string
}

ResourceSKU - Describes an available DMS SKU.

func (ResourceSKU) MarshalJSON added in v1.1.0

func (r ResourceSKU) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResourceSKU.

func (*ResourceSKU) UnmarshalJSON added in v1.1.0

func (r *ResourceSKU) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSKU.

type ResourceSKUCapabilities

type ResourceSKUCapabilities struct {
	// READ-ONLY; An invariant to describe the feature.
	Name *string

	// READ-ONLY; An invariant if the feature is measured by quantity.
	Value *string
}

ResourceSKUCapabilities - Describes The SKU capabilities object.

func (ResourceSKUCapabilities) MarshalJSON added in v1.1.0

func (r ResourceSKUCapabilities) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResourceSKUCapabilities.

func (*ResourceSKUCapabilities) UnmarshalJSON added in v1.1.0

func (r *ResourceSKUCapabilities) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSKUCapabilities.

type ResourceSKUCapacity

type ResourceSKUCapacity struct {
	// READ-ONLY; The default capacity.
	Default *int64

	// READ-ONLY; The maximum capacity.
	Maximum *int64

	// READ-ONLY; The minimum capacity.
	Minimum *int64

	// READ-ONLY; The scale type applicable to the SKU.
	ScaleType *ResourceSKUCapacityScaleType
}

ResourceSKUCapacity - Describes scaling information of a SKU.

func (ResourceSKUCapacity) MarshalJSON added in v1.1.0

func (r ResourceSKUCapacity) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResourceSKUCapacity.

func (*ResourceSKUCapacity) UnmarshalJSON added in v1.1.0

func (r *ResourceSKUCapacity) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSKUCapacity.

type ResourceSKUCapacityScaleType

type ResourceSKUCapacityScaleType string

ResourceSKUCapacityScaleType - The scale type applicable to the SKU.

const (
	ResourceSKUCapacityScaleTypeAutomatic ResourceSKUCapacityScaleType = "Automatic"
	ResourceSKUCapacityScaleTypeManual    ResourceSKUCapacityScaleType = "Manual"
	ResourceSKUCapacityScaleTypeNone      ResourceSKUCapacityScaleType = "None"
)

func PossibleResourceSKUCapacityScaleTypeValues

func PossibleResourceSKUCapacityScaleTypeValues() []ResourceSKUCapacityScaleType

PossibleResourceSKUCapacityScaleTypeValues returns the possible values for the ResourceSKUCapacityScaleType const type.

type ResourceSKUCosts

type ResourceSKUCosts struct {
	// READ-ONLY; An invariant to show the extended unit.
	ExtendedUnit *string

	// READ-ONLY; Used for querying price from commerce.
	MeterID *string

	// READ-ONLY; The multiplier is needed to extend the base metered cost.
	Quantity *int64
}

ResourceSKUCosts - Describes metadata for retrieving price info.

func (ResourceSKUCosts) MarshalJSON added in v1.1.0

func (r ResourceSKUCosts) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResourceSKUCosts.

func (*ResourceSKUCosts) UnmarshalJSON added in v1.1.0

func (r *ResourceSKUCosts) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSKUCosts.

type ResourceSKURestrictions

type ResourceSKURestrictions struct {
	// READ-ONLY; The reason code for restriction.
	ReasonCode *ResourceSKURestrictionsReasonCode

	// READ-ONLY; The type of restrictions.
	Type *ResourceSKURestrictionsType

	// READ-ONLY; The value of restrictions. If the restriction type is set to location. This would be different locations where
	// the SKU is restricted.
	Values []*string
}

ResourceSKURestrictions - Describes scaling information of a SKU.

func (ResourceSKURestrictions) MarshalJSON added in v1.1.0

func (r ResourceSKURestrictions) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResourceSKURestrictions.

func (*ResourceSKURestrictions) UnmarshalJSON added in v1.1.0

func (r *ResourceSKURestrictions) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSKURestrictions.

type ResourceSKURestrictionsReasonCode

type ResourceSKURestrictionsReasonCode string

ResourceSKURestrictionsReasonCode - The reason code for restriction.

const (
	ResourceSKURestrictionsReasonCodeNotAvailableForSubscription ResourceSKURestrictionsReasonCode = "NotAvailableForSubscription"
	ResourceSKURestrictionsReasonCodeQuotaID                     ResourceSKURestrictionsReasonCode = "QuotaId"
)

func PossibleResourceSKURestrictionsReasonCodeValues

func PossibleResourceSKURestrictionsReasonCodeValues() []ResourceSKURestrictionsReasonCode

PossibleResourceSKURestrictionsReasonCodeValues returns the possible values for the ResourceSKURestrictionsReasonCode const type.

type ResourceSKURestrictionsType

type ResourceSKURestrictionsType string

ResourceSKURestrictionsType - The type of restrictions.

const (
	ResourceSKURestrictionsTypeLocation ResourceSKURestrictionsType = "location"
)

func PossibleResourceSKURestrictionsTypeValues

func PossibleResourceSKURestrictionsTypeValues() []ResourceSKURestrictionsType

PossibleResourceSKURestrictionsTypeValues returns the possible values for the ResourceSKURestrictionsType const type.

type ResourceSKUsClient

type ResourceSKUsClient struct {
	// contains filtered or unexported fields
}

ResourceSKUsClient contains the methods for the ResourceSKUs group. Don't use this type directly, use NewResourceSKUsClient() instead.

func NewResourceSKUsClient

func NewResourceSKUsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ResourceSKUsClient, error)

NewResourceSKUsClient creates a new instance of ResourceSKUsClient with the specified values.

  • subscriptionID - Identifier of the subscription
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*ResourceSKUsClient) NewListSKUsPager

NewListSKUsPager - The skus action returns the list of SKUs that DMS supports.

Generated from API version 2021-06-30

  • options - ResourceSKUsClientListSKUsOptions contains the optional parameters for the ResourceSKUsClient.NewListSKUsPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/ResourceSkus_ListSkus.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewResourceSKUsClient().NewListSKUsPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.ResourceSKUsResult = armdatamigration.ResourceSKUsResult{
		// 	Value: []*armdatamigration.ResourceSKU{
		// 		{
		// 			Name: to.Ptr("PP1"),
		// 			Locations: []*string{
		// 				to.Ptr("East Asia"),
		// 				to.Ptr("Southeast Asia"),
		// 				to.Ptr("Australia East"),
		// 				to.Ptr("Australia Southeast"),
		// 				to.Ptr("Brazil South"),
		// 				to.Ptr("Canada Central"),
		// 				to.Ptr("Canada East"),
		// 				to.Ptr("North Europe"),
		// 				to.Ptr("West Europe"),
		// 				to.Ptr("Central India"),
		// 				to.Ptr("South India"),
		// 				to.Ptr("West India"),
		// 				to.Ptr("Japan East"),
		// 				to.Ptr("Japan West"),
		// 				to.Ptr("Korea South"),
		// 				to.Ptr("Korea Central"),
		// 				to.Ptr("UK South"),
		// 				to.Ptr("UK South 2"),
		// 				to.Ptr("UK North"),
		// 				to.Ptr("UK West"),
		// 				to.Ptr("East US 2 EUAP"),
		// 				to.Ptr("Central US"),
		// 				to.Ptr("East US"),
		// 				to.Ptr("East US 2"),
		// 				to.Ptr("North Central US"),
		// 				to.Ptr("South Central US"),
		// 				to.Ptr("West Central US"),
		// 				to.Ptr("West US"),
		// 				to.Ptr("West US 2")},
		// 				ResourceType: to.Ptr("services"),
		// 				Restrictions: []*armdatamigration.ResourceSKURestrictions{
		// 				},
		// 		}},
		// 	}
	}
}
Output:

type ResourceSKUsClientListSKUsOptions

type ResourceSKUsClientListSKUsOptions struct {
}

ResourceSKUsClientListSKUsOptions contains the optional parameters for the ResourceSKUsClient.NewListSKUsPager method.

type ResourceSKUsClientListSKUsResponse

type ResourceSKUsClientListSKUsResponse struct {
	// The DMS List SKUs operation response.
	ResourceSKUsResult
}

ResourceSKUsClientListSKUsResponse contains the response from method ResourceSKUsClient.NewListSKUsPager.

type ResourceSKUsResult

type ResourceSKUsResult struct {
	// REQUIRED; The list of SKUs available for the subscription.
	Value []*ResourceSKU

	// The uri to fetch the next page of DMS SKUs. Call ListNext() with this to fetch the next page of DMS SKUs.
	NextLink *string
}

ResourceSKUsResult - The DMS List SKUs operation response.

func (ResourceSKUsResult) MarshalJSON added in v1.1.0

func (r ResourceSKUsResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResourceSKUsResult.

func (*ResourceSKUsResult) UnmarshalJSON added in v1.1.0

func (r *ResourceSKUsResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSKUsResult.

type SQLConnectionInfo

type SQLConnectionInfo struct {
	// REQUIRED; Data source in the format Protocol:MachineName\SQLServerInstanceName,PortNumber
	DataSource *string

	// REQUIRED; Type of connection info
	Type *string

	// Additional connection settings
	AdditionalSettings *string

	// Authentication type to use for connection
	Authentication *AuthenticationType

	// Whether to encrypt the connection
	EncryptConnection *bool

	// Password credential.
	Password *string

	// Server platform type for connection
	Platform *SQLSourcePlatform

	// Whether to trust the server certificate
	TrustServerCertificate *bool

	// User name
	UserName *string
}

SQLConnectionInfo - Information for connecting to SQL database server

func (*SQLConnectionInfo) GetConnectionInfo

func (s *SQLConnectionInfo) GetConnectionInfo() *ConnectionInfo

GetConnectionInfo implements the ConnectionInfoClassification interface for type SQLConnectionInfo.

func (SQLConnectionInfo) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SQLConnectionInfo.

func (*SQLConnectionInfo) UnmarshalJSON

func (s *SQLConnectionInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SQLConnectionInfo.

type SQLMigrationTaskInput

type SQLMigrationTaskInput struct {
	// REQUIRED; Information for connecting to source
	SourceConnectionInfo *SQLConnectionInfo

	// REQUIRED; Information for connecting to target
	TargetConnectionInfo *SQLConnectionInfo
}

SQLMigrationTaskInput - Base class for migration task input

func (SQLMigrationTaskInput) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type SQLMigrationTaskInput.

func (*SQLMigrationTaskInput) UnmarshalJSON added in v1.1.0

func (s *SQLMigrationTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SQLMigrationTaskInput.

type SQLServerSQLMISyncTaskInput

type SQLServerSQLMISyncTaskInput struct {
	// REQUIRED; Azure Active Directory Application the DMS instance will use to connect to the target instance of Azure SQL Database
	// Managed Instance and the Azure Storage Account
	AzureApp *AzureActiveDirectoryApp

	// REQUIRED; Databases to migrate
	SelectedDatabases []*MigrateSQLServerSQLMIDatabaseInput

	// REQUIRED; Connection information for source SQL Server
	SourceConnectionInfo *SQLConnectionInfo

	// REQUIRED; Fully qualified resourceId of storage
	StorageResourceID *string

	// REQUIRED; Connection information for Azure SQL Database Managed Instance
	TargetConnectionInfo *MiSQLConnectionInfo

	// Backup file share information for all selected databases.
	BackupFileShare *FileShare
}

SQLServerSQLMISyncTaskInput - Input for task that migrates SQL Server databases to Azure SQL Database Managed Instance online scenario.

func (SQLServerSQLMISyncTaskInput) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SQLServerSQLMISyncTaskInput.

func (*SQLServerSQLMISyncTaskInput) UnmarshalJSON added in v1.1.0

func (s *SQLServerSQLMISyncTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SQLServerSQLMISyncTaskInput.

type SQLSourcePlatform

type SQLSourcePlatform string

SQLSourcePlatform - An enumeration of source platform types

const (
	SQLSourcePlatformSQLOnPrem SQLSourcePlatform = "SqlOnPrem"
)

func PossibleSQLSourcePlatformValues

func PossibleSQLSourcePlatformValues() []SQLSourcePlatform

PossibleSQLSourcePlatformValues returns the possible values for the SQLSourcePlatform const type.

type ScenarioSource

type ScenarioSource string

ScenarioSource - An enumeration of source type

const (
	ScenarioSourceAccess        ScenarioSource = "Access"
	ScenarioSourceDB2           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 PossibleScenarioSourceValues

func PossibleScenarioSourceValues() []ScenarioSource

PossibleScenarioSourceValues returns the possible values for the ScenarioSource const type.

type ScenarioTarget

type ScenarioTarget string

ScenarioTarget - An enumeration of target type

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

func PossibleScenarioTargetValues

func PossibleScenarioTargetValues() []ScenarioTarget

PossibleScenarioTargetValues returns the possible values for the ScenarioTarget const type.

type SchemaComparisonValidationResult

type SchemaComparisonValidationResult struct {
	// List of schema differences between the source and target databases
	SchemaDifferences *SchemaComparisonValidationResultType

	// Count of source database objects
	SourceDatabaseObjectCount map[string]*int64

	// Count of target database objects
	TargetDatabaseObjectCount map[string]*int64

	// List of errors that happened while performing schema compare validation
	ValidationErrors *ValidationError
}

SchemaComparisonValidationResult - Results for schema comparison between the source and target

func (SchemaComparisonValidationResult) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SchemaComparisonValidationResult.

func (*SchemaComparisonValidationResult) UnmarshalJSON added in v1.1.0

func (s *SchemaComparisonValidationResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SchemaComparisonValidationResult.

type SchemaComparisonValidationResultType

type SchemaComparisonValidationResultType struct {
	// Name of the object that has the difference
	ObjectName *string

	// Type of the object that has the difference. e.g (Table/View/StoredProcedure)
	ObjectType *ObjectType

	// Update action type with respect to target
	UpdateAction *UpdateActionType
}

SchemaComparisonValidationResultType - Description about the errors happen while performing migration validation

func (SchemaComparisonValidationResultType) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type SchemaComparisonValidationResultType.

func (*SchemaComparisonValidationResultType) UnmarshalJSON added in v1.1.0

func (s *SchemaComparisonValidationResultType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SchemaComparisonValidationResultType.

type SchemaMigrationOption

type SchemaMigrationOption string

SchemaMigrationOption - Option for how schema is extracted and applied to target

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

func PossibleSchemaMigrationOptionValues

func PossibleSchemaMigrationOptionValues() []SchemaMigrationOption

PossibleSchemaMigrationOptionValues returns the possible values for the SchemaMigrationOption const type.

type SchemaMigrationSetting

type SchemaMigrationSetting struct {
	// Resource Identifier of a file resource containing the uploaded schema file
	FileID *string

	// Option on how to migrate the schema
	SchemaOption *SchemaMigrationOption
}

SchemaMigrationSetting - Settings for migrating schema from source to target

func (SchemaMigrationSetting) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type SchemaMigrationSetting.

func (*SchemaMigrationSetting) UnmarshalJSON added in v1.1.0

func (s *SchemaMigrationSetting) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SchemaMigrationSetting.

type SchemaMigrationStage

type SchemaMigrationStage string

SchemaMigrationStage - Current stage of schema migration

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 PossibleSchemaMigrationStageValues

func PossibleSchemaMigrationStageValues() []SchemaMigrationStage

PossibleSchemaMigrationStageValues returns the possible values for the SchemaMigrationStage const type.

type SelectedCertificateInput

type SelectedCertificateInput struct {
	// REQUIRED; Name of certificate to be exported.
	CertificateName *string

	// REQUIRED; Password to use for encrypting the exported certificate.
	Password *string
}

SelectedCertificateInput - Info for certificate to be exported for TDE enabled databases.

func (SelectedCertificateInput) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type SelectedCertificateInput.

func (*SelectedCertificateInput) UnmarshalJSON added in v1.1.0

func (s *SelectedCertificateInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SelectedCertificateInput.

type ServerLevelPermissionsGroup

type ServerLevelPermissionsGroup string

ServerLevelPermissionsGroup - Permission group for validations. These groups will run a set of permissions for validating user activity. Select the permission group for the activity that you are performing.

const (
	ServerLevelPermissionsGroupDefault                             ServerLevelPermissionsGroup = "Default"
	ServerLevelPermissionsGroupMigrationFromMySQLToAzureDBForMySQL ServerLevelPermissionsGroup = "MigrationFromMySQLToAzureDBForMySQL"
	ServerLevelPermissionsGroupMigrationFromSQLServerToAzureDB     ServerLevelPermissionsGroup = "MigrationFromSqlServerToAzureDB"
	ServerLevelPermissionsGroupMigrationFromSQLServerToAzureMI     ServerLevelPermissionsGroup = "MigrationFromSqlServerToAzureMI"
)

func PossibleServerLevelPermissionsGroupValues

func PossibleServerLevelPermissionsGroupValues() []ServerLevelPermissionsGroup

PossibleServerLevelPermissionsGroupValues returns the possible values for the ServerLevelPermissionsGroup const type.

type ServerProperties

type ServerProperties struct {
	// READ-ONLY; Number of databases in the server
	ServerDatabaseCount *int32

	// READ-ONLY; Edition of the database server
	ServerEdition *string

	// READ-ONLY; Name of the server
	ServerName *string

	// READ-ONLY; Version of the operating system
	ServerOperatingSystemVersion *string

	// READ-ONLY; Name of the server platform
	ServerPlatform *string

	// READ-ONLY; Version of the database server
	ServerVersion *string
}

ServerProperties - Server properties for MySQL type source

func (ServerProperties) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ServerProperties.

func (*ServerProperties) UnmarshalJSON added in v1.1.0

func (s *ServerProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ServerProperties.

type Service

type Service struct {
	// REQUIRED; Resource location.
	Location *string

	// HTTP strong entity tag value. Ignored if submitted
	Etag *string

	// The resource kind. Only 'vm' (the default) is supported.
	Kind *string

	// Custom service properties
	Properties *ServiceProperties

	// Service SKU
	SKU *ServiceSKU

	// Resource tags.
	Tags map[string]*string

	// READ-ONLY; Resource ID.
	ID *string

	// READ-ONLY; Resource name.
	Name *string

	// READ-ONLY; Metadata pertaining to creation and last modification of the resource.
	SystemData *SystemData

	// READ-ONLY; Resource type.
	Type *string
}

Service - A Database Migration Service resource

func (Service) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type Service.

func (*Service) UnmarshalJSON added in v1.1.0

func (s *Service) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Service.

type ServiceList

type ServiceList struct {
	// URL to load the next page of services
	NextLink *string

	// List of services
	Value []*Service
}

ServiceList - OData page of service objects

func (ServiceList) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ServiceList.

func (*ServiceList) UnmarshalJSON added in v1.1.0

func (s *ServiceList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ServiceList.

type ServiceOperation

type ServiceOperation struct {
	// Localized display text
	Display *ServiceOperationDisplay

	// The fully qualified action name, e.g. Microsoft.DataMigration/services/read
	Name *string
}

ServiceOperation - Description of an action supported by the Database Migration Service

func (ServiceOperation) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ServiceOperation.

func (*ServiceOperation) UnmarshalJSON added in v1.1.0

func (s *ServiceOperation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ServiceOperation.

type ServiceOperationDisplay

type ServiceOperationDisplay struct {
	// The localized operation description
	Description *string

	// The localized operation name
	Operation *string

	// The localized resource provider name
	Provider *string

	// The localized resource type name
	Resource *string
}

ServiceOperationDisplay - Localized display text

func (ServiceOperationDisplay) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ServiceOperationDisplay.

func (*ServiceOperationDisplay) UnmarshalJSON added in v1.1.0

func (s *ServiceOperationDisplay) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ServiceOperationDisplay.

type ServiceOperationList

type ServiceOperationList struct {
	// URL to load the next page of actions
	NextLink *string

	// List of actions
	Value []*ServiceOperation
}

ServiceOperationList - OData page of action (operation) objects

func (ServiceOperationList) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ServiceOperationList.

func (*ServiceOperationList) UnmarshalJSON added in v1.1.0

func (s *ServiceOperationList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ServiceOperationList.

type ServiceProperties

type ServiceProperties struct {
	// REQUIRED; The ID of the Microsoft.Network/virtualNetworks/subnets resource to which the service should be joined
	VirtualSubnetID *string

	// The public key of the service, used to encrypt secrets sent to the service
	PublicKey *string

	// The ID of the Microsoft.Network/networkInterfaces resource which the service have
	VirtualNicID *string

	// READ-ONLY; The resource's provisioning state
	ProvisioningState *ServiceProvisioningState
}

ServiceProperties - Properties of the Database Migration Service instance

func (ServiceProperties) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ServiceProperties.

func (*ServiceProperties) UnmarshalJSON added in v1.1.0

func (s *ServiceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ServiceProperties.

type ServiceProvisioningState

type ServiceProvisioningState string

ServiceProvisioningState - The resource's provisioning state

const (
	ServiceProvisioningStateAccepted      ServiceProvisioningState = "Accepted"
	ServiceProvisioningStateDeleting      ServiceProvisioningState = "Deleting"
	ServiceProvisioningStateDeploying     ServiceProvisioningState = "Deploying"
	ServiceProvisioningStateFailed        ServiceProvisioningState = "Failed"
	ServiceProvisioningStateFailedToStart ServiceProvisioningState = "FailedToStart"
	ServiceProvisioningStateFailedToStop  ServiceProvisioningState = "FailedToStop"
	ServiceProvisioningStateStarting      ServiceProvisioningState = "Starting"
	ServiceProvisioningStateStopped       ServiceProvisioningState = "Stopped"
	ServiceProvisioningStateStopping      ServiceProvisioningState = "Stopping"
	ServiceProvisioningStateSucceeded     ServiceProvisioningState = "Succeeded"
)

func PossibleServiceProvisioningStateValues

func PossibleServiceProvisioningStateValues() []ServiceProvisioningState

PossibleServiceProvisioningStateValues returns the possible values for the ServiceProvisioningState const type.

type ServiceSKU

type ServiceSKU struct {
	// The capacity of the SKU, if it supports scaling
	Capacity *int32

	// The SKU family, used when the service has multiple performance classes within a tier, such as 'A', 'D', etc. for virtual
	// machines
	Family *string

	// The unique name of the SKU, such as 'P3'
	Name *string

	// The size of the SKU, used when the name alone does not denote a service size or when a SKU has multiple performance classes
	// within a family, e.g. 'A1' for virtual machines
	Size *string

	// The tier of the SKU, such as 'Basic', 'General Purpose', or 'Business Critical'
	Tier *string
}

ServiceSKU - An Azure SKU instance

func (ServiceSKU) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ServiceSKU.

func (*ServiceSKU) UnmarshalJSON added in v1.1.0

func (s *ServiceSKU) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ServiceSKU.

type ServiceSKUList

type ServiceSKUList struct {
	// URL to load the next page of service SKUs
	NextLink *string

	// List of service SKUs
	Value []*AvailableServiceSKU
}

ServiceSKUList - OData page of available SKUs

func (ServiceSKUList) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ServiceSKUList.

func (*ServiceSKUList) UnmarshalJSON added in v1.1.0

func (s *ServiceSKUList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ServiceSKUList.

type ServiceScalability

type ServiceScalability string

ServiceScalability - The scalability approach

const (
	ServiceScalabilityAutomatic ServiceScalability = "automatic"
	ServiceScalabilityManual    ServiceScalability = "manual"
	ServiceScalabilityNone      ServiceScalability = "none"
)

func PossibleServiceScalabilityValues

func PossibleServiceScalabilityValues() []ServiceScalability

PossibleServiceScalabilityValues returns the possible values for the ServiceScalability const type.

type ServiceStatusResponse

type ServiceStatusResponse struct {
	// The DMS instance agent version
	AgentVersion *string

	// The machine-readable status, such as 'Initializing', 'Offline', 'Online', 'Deploying', 'Deleting', 'Stopped', 'Stopping',
	// 'Starting', 'FailedToStart', 'FailedToStop' or 'Failed'
	Status *string

	// The list of supported task types
	SupportedTaskTypes []*string

	// The services virtual machine size, such as 'StandardD2v2'
	VMSize *string
}

ServiceStatusResponse - Service health status

func (ServiceStatusResponse) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type ServiceStatusResponse.

func (*ServiceStatusResponse) UnmarshalJSON added in v1.1.0

func (s *ServiceStatusResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ServiceStatusResponse.

type ServiceTasksClient

type ServiceTasksClient struct {
	// contains filtered or unexported fields
}

ServiceTasksClient contains the methods for the ServiceTasks group. Don't use this type directly, use NewServiceTasksClient() instead.

func NewServiceTasksClient

func NewServiceTasksClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ServiceTasksClient, error)

NewServiceTasksClient creates a new instance of ServiceTasksClient with the specified values.

  • subscriptionID - Identifier of the subscription
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*ServiceTasksClient) Cancel

func (client *ServiceTasksClient) Cancel(ctx context.Context, groupName string, serviceName string, taskName string, options *ServiceTasksClientCancelOptions) (ServiceTasksClientCancelResponse, error)

Cancel - The service tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. This method cancels a service task if it's currently queued or running. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • taskName - Name of the Task
  • options - ServiceTasksClientCancelOptions contains the optional parameters for the ServiceTasksClient.Cancel method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/ServiceTasks_Cancel.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewServiceTasksClient().Cancel(ctx, "DmsSdkRg", "DmsSdkService", "DmsSdkTask", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ProjectTask = armdatamigration.ProjectTask{
	// 	Name: to.Ptr("DmsSdkTask"),
	// 	Type: to.Ptr("Microsoft.DataMigration/services/serviceTasks"),
	// 	ID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService/serviceTasks/DmsSdkTask"),
	// 	Etag: to.Ptr("0vPYxzfnDaDH9yhOJAnqTyTRpa09Kb7pm+LEukDBbw8="),
	// 	Properties: &armdatamigration.CheckOCIDriverTaskProperties{
	// 		State: to.Ptr(armdatamigration.TaskStateQueued),
	// 		TaskType: to.Ptr("Service.Check.OCI"),
	// 		Input: &armdatamigration.CheckOCIDriverTaskInput{
	// 			ServerVersion: to.Ptr("NA"),
	// 		},
	// 	},
	// }
}
Output:

func (*ServiceTasksClient) CreateOrUpdate

func (client *ServiceTasksClient) CreateOrUpdate(ctx context.Context, groupName string, serviceName string, taskName string, parameters ProjectTask, options *ServiceTasksClientCreateOrUpdateOptions) (ServiceTasksClientCreateOrUpdateResponse, error)

CreateOrUpdate - The service tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The PUT method creates a new service task or updates an existing one, although since service tasks have no mutable custom properties, there is little reason to update an existing one. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • taskName - Name of the Task
  • parameters - Information about the task
  • options - ServiceTasksClientCreateOrUpdateOptions contains the optional parameters for the ServiceTasksClient.CreateOrUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/ServiceTasks_CreateOrUpdate.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewServiceTasksClient().CreateOrUpdate(ctx, "DmsSdkRg", "DmsSdkService", "DmsSdkTask", armdatamigration.ProjectTask{
		Properties: &armdatamigration.CheckOCIDriverTaskProperties{
			TaskType: to.Ptr("Service.Check.OCI"),
			Input: &armdatamigration.CheckOCIDriverTaskInput{
				ServerVersion: to.Ptr("NA"),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ProjectTask = armdatamigration.ProjectTask{
	// 	Name: to.Ptr("DmsSdkTask"),
	// 	Type: to.Ptr("Microsoft.DataMigration/services/serviceTasks"),
	// 	ID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService/serviceTasks/DmsSdkTask"),
	// 	Etag: to.Ptr("0vPYxzfnDaDH9yhOJAnqTyTRpa09Kb7pm+LEukDBbw8="),
	// 	Properties: &armdatamigration.CheckOCIDriverTaskProperties{
	// 		State: to.Ptr(armdatamigration.TaskStateQueued),
	// 		TaskType: to.Ptr("Service.Check.OCI"),
	// 		Input: &armdatamigration.CheckOCIDriverTaskInput{
	// 			ServerVersion: to.Ptr("NA"),
	// 		},
	// 	},
	// }
}
Output:

func (*ServiceTasksClient) Delete

func (client *ServiceTasksClient) Delete(ctx context.Context, groupName string, serviceName string, taskName string, options *ServiceTasksClientDeleteOptions) (ServiceTasksClientDeleteResponse, error)

Delete - The service tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The DELETE method deletes a service task, canceling it first if it's running. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • taskName - Name of the Task
  • options - ServiceTasksClientDeleteOptions contains the optional parameters for the ServiceTasksClient.Delete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/ServiceTasks_Delete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewServiceTasksClient().Delete(ctx, "DmsSdkRg", "DmsSdkService", "DmsSdkTask", &armdatamigration.ServiceTasksClientDeleteOptions{DeleteRunningTasks: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

func (*ServiceTasksClient) Get

func (client *ServiceTasksClient) Get(ctx context.Context, groupName string, serviceName string, taskName string, options *ServiceTasksClientGetOptions) (ServiceTasksClientGetResponse, error)

Get - The service tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The GET method retrieves information about a service task. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • taskName - Name of the Task
  • options - ServiceTasksClientGetOptions contains the optional parameters for the ServiceTasksClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/ServiceTasks_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewServiceTasksClient().Get(ctx, "DmsSdkRg", "DmsSdkService", "DmsSdkTask", &armdatamigration.ServiceTasksClientGetOptions{Expand: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ProjectTask = armdatamigration.ProjectTask{
	// 	Name: to.Ptr("DmsSdkTask"),
	// 	Type: to.Ptr("Microsoft.DataMigration/services/serviceTasks"),
	// 	ID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService/serviceTasks/DmsSdkTask"),
	// 	Etag: to.Ptr("0vPYxzfnDaDH9yhOJAnqTyTRpa09Kb7pm+LEukDBbw8="),
	// 	Properties: &armdatamigration.CheckOCIDriverTaskProperties{
	// 		State: to.Ptr(armdatamigration.TaskStateQueued),
	// 		TaskType: to.Ptr("Service.Check.OCI"),
	// 		Input: &armdatamigration.CheckOCIDriverTaskInput{
	// 			ServerVersion: to.Ptr("NA"),
	// 		},
	// 	},
	// }
}
Output:

func (*ServiceTasksClient) NewListPager

func (client *ServiceTasksClient) NewListPager(groupName string, serviceName string, options *ServiceTasksClientListOptions) *runtime.Pager[ServiceTasksClientListResponse]

NewListPager - The services resource is the top-level resource that represents the Database Migration Service. This method returns a list of service level tasks owned by a service resource. Some tasks may have a status of Unknown, which indicates that an error occurred while querying the status of that task.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • options - ServiceTasksClientListOptions contains the optional parameters for the ServiceTasksClient.NewListPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/ServiceTasks_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewServiceTasksClient().NewListPager("DmsSdkRg", "DmsSdkService", &armdatamigration.ServiceTasksClientListOptions{TaskType: nil})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.TaskList = armdatamigration.TaskList{
		// 	Value: []*armdatamigration.ProjectTask{
		// 		{
		// 			Name: to.Ptr("DmsSdkTask"),
		// 			Type: to.Ptr("Microsoft.DataMigration/services/serviceTasks"),
		// 			ID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService/serviceTasks/DmsSdkTask"),
		// 			Etag: to.Ptr("0vPYxzfnDaDH9yhOJAnqTyTRpa09Kb7pm+LEukDBbw8="),
		// 			Properties: &armdatamigration.CheckOCIDriverTaskProperties{
		// 				State: to.Ptr(armdatamigration.TaskStateQueued),
		// 				TaskType: to.Ptr("Service.Check.OCI"),
		// 				Input: &armdatamigration.CheckOCIDriverTaskInput{
		// 					ServerVersion: to.Ptr("NA"),
		// 				},
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*ServiceTasksClient) Update

func (client *ServiceTasksClient) Update(ctx context.Context, groupName string, serviceName string, taskName string, parameters ProjectTask, options *ServiceTasksClientUpdateOptions) (ServiceTasksClientUpdateResponse, error)

Update - The service tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The PATCH method updates an existing service task, but since service tasks have no mutable custom properties, there is little reason to do so. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • taskName - Name of the Task
  • parameters - Information about the task
  • options - ServiceTasksClientUpdateOptions contains the optional parameters for the ServiceTasksClient.Update method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/ServiceTasks_Update.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewServiceTasksClient().Update(ctx, "DmsSdkRg", "DmsSdkService", "DmsSdkTask", armdatamigration.ProjectTask{
		Properties: &armdatamigration.CheckOCIDriverTaskProperties{
			TaskType: to.Ptr("Service.Check.OCI"),
			Input: &armdatamigration.CheckOCIDriverTaskInput{
				ServerVersion: to.Ptr("NA"),
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ProjectTask = armdatamigration.ProjectTask{
	// 	Name: to.Ptr("DmsSdkTask"),
	// 	Type: to.Ptr("Microsoft.DataMigration/services/serviceTasks"),
	// 	ID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService/serviceTasks/DmsSdkTask"),
	// 	Etag: to.Ptr("0vPYxzfnDaDH9yhOJAnqTyTRpa09Kb7pm+LEukDBbw8="),
	// 	Properties: &armdatamigration.CheckOCIDriverTaskProperties{
	// 		State: to.Ptr(armdatamigration.TaskStateQueued),
	// 		TaskType: to.Ptr("Service.Check.OCI"),
	// 		Input: &armdatamigration.CheckOCIDriverTaskInput{
	// 			ServerVersion: to.Ptr("NA"),
	// 		},
	// 	},
	// }
}
Output:

type ServiceTasksClientCancelOptions

type ServiceTasksClientCancelOptions struct {
}

ServiceTasksClientCancelOptions contains the optional parameters for the ServiceTasksClient.Cancel method.

type ServiceTasksClientCancelResponse

type ServiceTasksClientCancelResponse struct {
	// A task resource
	ProjectTask
}

ServiceTasksClientCancelResponse contains the response from method ServiceTasksClient.Cancel.

type ServiceTasksClientCreateOrUpdateOptions

type ServiceTasksClientCreateOrUpdateOptions struct {
}

ServiceTasksClientCreateOrUpdateOptions contains the optional parameters for the ServiceTasksClient.CreateOrUpdate method.

type ServiceTasksClientCreateOrUpdateResponse

type ServiceTasksClientCreateOrUpdateResponse struct {
	// A task resource
	ProjectTask
}

ServiceTasksClientCreateOrUpdateResponse contains the response from method ServiceTasksClient.CreateOrUpdate.

type ServiceTasksClientDeleteOptions

type ServiceTasksClientDeleteOptions struct {
	// Delete the resource even if it contains running tasks
	DeleteRunningTasks *bool
}

ServiceTasksClientDeleteOptions contains the optional parameters for the ServiceTasksClient.Delete method.

type ServiceTasksClientDeleteResponse

type ServiceTasksClientDeleteResponse struct {
}

ServiceTasksClientDeleteResponse contains the response from method ServiceTasksClient.Delete.

type ServiceTasksClientGetOptions

type ServiceTasksClientGetOptions struct {
	// Expand the response
	Expand *string
}

ServiceTasksClientGetOptions contains the optional parameters for the ServiceTasksClient.Get method.

type ServiceTasksClientGetResponse

type ServiceTasksClientGetResponse struct {
	// A task resource
	ProjectTask
}

ServiceTasksClientGetResponse contains the response from method ServiceTasksClient.Get.

type ServiceTasksClientListOptions

type ServiceTasksClientListOptions struct {
	// Filter tasks by task type
	TaskType *string
}

ServiceTasksClientListOptions contains the optional parameters for the ServiceTasksClient.NewListPager method.

type ServiceTasksClientListResponse

type ServiceTasksClientListResponse struct {
	// OData page of tasks
	TaskList
}

ServiceTasksClientListResponse contains the response from method ServiceTasksClient.NewListPager.

type ServiceTasksClientUpdateOptions

type ServiceTasksClientUpdateOptions struct {
}

ServiceTasksClientUpdateOptions contains the optional parameters for the ServiceTasksClient.Update method.

type ServiceTasksClientUpdateResponse

type ServiceTasksClientUpdateResponse struct {
	// A task resource
	ProjectTask
}

ServiceTasksClientUpdateResponse contains the response from method ServiceTasksClient.Update.

type ServicesClient

type ServicesClient struct {
	// contains filtered or unexported fields
}

ServicesClient contains the methods for the Services group. Don't use this type directly, use NewServicesClient() instead.

func NewServicesClient

func NewServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ServicesClient, error)

NewServicesClient creates a new instance of ServicesClient with the specified values.

  • subscriptionID - Identifier of the subscription
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*ServicesClient) BeginCreateOrUpdate

func (client *ServicesClient) BeginCreateOrUpdate(ctx context.Context, groupName string, serviceName string, parameters Service, options *ServicesClientBeginCreateOrUpdateOptions) (*runtime.Poller[ServicesClientCreateOrUpdateResponse], error)

BeginCreateOrUpdate - The services resource is the top-level resource that represents the Database Migration Service. The PUT method creates a new service or updates an existing one. When a service is updated, existing child resources (i.e. tasks) are unaffected. Services currently support a single kind, "vm", which refers to a VM-based service, although other kinds may be added in the future. This method can change the kind, SKU, and network of the service, but if tasks are currently running (i.e. the service is busy), this will fail with 400 Bad Request ("ServiceIsBusy"). The provider will reply when successful with 200 OK or 201 Created. Long-running operations use the provisioningState property. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • parameters - Information about the service
  • options - ServicesClientBeginCreateOrUpdateOptions contains the optional parameters for the ServicesClient.BeginCreateOrUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Services_CreateOrUpdate.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewServicesClient().BeginCreateOrUpdate(ctx, "DmsSdkRg", "DmsSdkService", armdatamigration.Service{
		Location: to.Ptr("southcentralus"),
		Properties: &armdatamigration.ServiceProperties{
			VirtualSubnetID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkTestNetwork/providers/Microsoft.Network/virtualNetworks/DmsSdkTestNetwork/subnets/default"),
		},
		SKU: &armdatamigration.ServiceSKU{
			Name: to.Ptr("Basic_1vCore"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.Service = armdatamigration.Service{
	// 	Name: to.Ptr("DmsSdkService"),
	// 	Type: to.Ptr("Microsoft.DataMigration/services"),
	// 	ID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService"),
	// 	Location: to.Ptr("southcentralus"),
	// 	Etag: to.Ptr("9QuK/U0GvTJpjIrlOzITXVy68+bmmQ3bFkHudLxmkUw="),
	// 	Properties: &armdatamigration.ServiceProperties{
	// 		ProvisioningState: to.Ptr(armdatamigration.ServiceProvisioningStateSucceeded),
	// 		VirtualSubnetID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkTestNetwork/providers/Microsoft.Network/virtualNetworks/DmsSdkTestNetwork/subnets/default"),
	// 	},
	// 	SKU: &armdatamigration.ServiceSKU{
	// 		Name: to.Ptr("Basic_1vCore"),
	// 		Size: to.Ptr("1 vCore"),
	// 		Tier: to.Ptr("Basic"),
	// 	},
	// }
}
Output:

func (*ServicesClient) BeginDelete

func (client *ServicesClient) BeginDelete(ctx context.Context, groupName string, serviceName string, options *ServicesClientBeginDeleteOptions) (*runtime.Poller[ServicesClientDeleteResponse], error)

BeginDelete - The services resource is the top-level resource that represents the Database Migration Service. The DELETE method deletes a service. Any running tasks will be canceled. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • options - ServicesClientBeginDeleteOptions contains the optional parameters for the ServicesClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Services_Delete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewServicesClient().BeginDelete(ctx, "DmsSdkRg", "DmsSdkService", &armdatamigration.ServicesClientBeginDeleteOptions{DeleteRunningTasks: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*ServicesClient) BeginStart

func (client *ServicesClient) BeginStart(ctx context.Context, groupName string, serviceName string, options *ServicesClientBeginStartOptions) (*runtime.Poller[ServicesClientStartResponse], error)

BeginStart - The services resource is the top-level resource that represents the Database Migration Service. This action starts the service and the service can be used for data migration. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • options - ServicesClientBeginStartOptions contains the optional parameters for the ServicesClient.BeginStart method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Services_Start.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewServicesClient().BeginStart(ctx, "DmsSdkRg", "DmsSdkService", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*ServicesClient) BeginStop

func (client *ServicesClient) BeginStop(ctx context.Context, groupName string, serviceName string, options *ServicesClientBeginStopOptions) (*runtime.Poller[ServicesClientStopResponse], error)

BeginStop - The services resource is the top-level resource that represents the Database Migration Service. This action stops the service and the service cannot be used for data migration. The service owner won't be billed when the service is stopped. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • options - ServicesClientBeginStopOptions contains the optional parameters for the ServicesClient.BeginStop method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Services_Stop.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewServicesClient().BeginStop(ctx, "DmsSdkRg", "DmsSdkService", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	_, err = poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
}
Output:

func (*ServicesClient) BeginUpdate

func (client *ServicesClient) BeginUpdate(ctx context.Context, groupName string, serviceName string, parameters Service, options *ServicesClientBeginUpdateOptions) (*runtime.Poller[ServicesClientUpdateResponse], error)

BeginUpdate - The services resource is the top-level resource that represents the Database Migration Service. The PATCH method updates an existing service. This method can change the kind, SKU, and network of the service, but if tasks are currently running (i.e. the service is busy), this will fail with 400 Bad Request ("ServiceIsBusy"). If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • parameters - Information about the service
  • options - ServicesClientBeginUpdateOptions contains the optional parameters for the ServicesClient.BeginUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Services_Update.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewServicesClient().BeginUpdate(ctx, "DmsSdkRg", "DmsSdkService", armdatamigration.Service{
		Location: to.Ptr("southcentralus"),
		Properties: &armdatamigration.ServiceProperties{
			VirtualSubnetID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkTestNetwork/providers/Microsoft.Network/virtualNetworks/DmsSdkTestNetwork/subnets/default"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	res, err := poller.PollUntilDone(ctx, nil)
	if err != nil {
		log.Fatalf("failed to pull the result: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.Service = armdatamigration.Service{
	// 	Name: to.Ptr("DmsSdkService"),
	// 	Type: to.Ptr("Microsoft.DataMigration/services"),
	// 	ID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService"),
	// 	Location: to.Ptr("southcentralus"),
	// 	Etag: to.Ptr("9QuK/U0GvTJpjIrlOzITXVy68+bmmQ3bFkHudLxmkUw="),
	// 	Properties: &armdatamigration.ServiceProperties{
	// 		ProvisioningState: to.Ptr(armdatamigration.ServiceProvisioningStateSucceeded),
	// 		VirtualSubnetID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkTestNetwork/providers/Microsoft.Network/virtualNetworks/DmsSdkTestNetwork/subnets/default"),
	// 	},
	// 	SKU: &armdatamigration.ServiceSKU{
	// 		Name: to.Ptr("Basic_1vCore"),
	// 		Size: to.Ptr("1 vCore"),
	// 		Tier: to.Ptr("Basic"),
	// 	},
	// }
}
Output:

func (*ServicesClient) CheckChildrenNameAvailability

CheckChildrenNameAvailability - This method checks whether a proposed nested resource name is valid and available. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • parameters - Requested name to validate
  • options - ServicesClientCheckChildrenNameAvailabilityOptions contains the optional parameters for the ServicesClient.CheckChildrenNameAvailability method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Services_CheckChildrenNameAvailability.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewServicesClient().CheckChildrenNameAvailability(ctx, "DmsSdkRg", "DmsSdkService", armdatamigration.NameAvailabilityRequest{}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.NameAvailabilityResponse = armdatamigration.NameAvailabilityResponse{
	// 	NameAvailable: to.Ptr(true),
	// }
}
Output:

func (*ServicesClient) CheckNameAvailability

CheckNameAvailability - This method checks whether a proposed top-level resource name is valid and available. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • location - The Azure region of the operation
  • parameters - Requested name to validate
  • options - ServicesClientCheckNameAvailabilityOptions contains the optional parameters for the ServicesClient.CheckNameAvailability method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Services_CheckNameAvailability.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewServicesClient().CheckNameAvailability(ctx, "eastus", armdatamigration.NameAvailabilityRequest{}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.NameAvailabilityResponse = armdatamigration.NameAvailabilityResponse{
	// 	NameAvailable: to.Ptr(true),
	// }
}
Output:

func (*ServicesClient) CheckStatus

func (client *ServicesClient) CheckStatus(ctx context.Context, groupName string, serviceName string, options *ServicesClientCheckStatusOptions) (ServicesClientCheckStatusResponse, error)

CheckStatus - The services resource is the top-level resource that represents the Database Migration Service. This action performs a health check and returns the status of the service and virtual machine size. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • options - ServicesClientCheckStatusOptions contains the optional parameters for the ServicesClient.CheckStatus method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Services_CheckStatus.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewServicesClient().CheckStatus(ctx, "DmsSdkRg", "DmsSdkService", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ServiceStatusResponse = armdatamigration.ServiceStatusResponse{
	// 	AgentVersion: to.Ptr("3.3.3871.6"),
	// 	Status: to.Ptr("Online"),
	// 	SupportedTaskTypes: []*string{
	// 		to.Ptr("diagnostic.count"),
	// 		to.Ptr("diagnostic.echo"),
	// 		to.Ptr("diagnostic.error"),
	// 		to.Ptr("diagnostic.fastCount"),
	// 		to.Ptr("ConnectToSource.SqlServer.Sync"),
	// 		to.Ptr("SyncMigrationOperationalTelemetry.LogCollector"),
	// 		to.Ptr("GetUserTables.AzureSqlDb.Sync"),
	// 		to.Ptr("ConnectToTarget.SqlDb.Sync"),
	// 		to.Ptr("Migrate.MySql.AzureDbForMySql.Sync"),
	// 		to.Ptr("Migrate.SqlServer.AzureSqlDb.Sync"),
	// 		to.Ptr("ValidateMigrationInput.SqlServer.SqlDb.Sync"),
	// 		to.Ptr("DataMigration.AzureSqlDbPostMigrationValidationScenarioId"),
	// 		to.Ptr("GetTDECertificates.Sql"),
	// 		to.Ptr("Migrate.SqlServer.AzureSqlDbMI"),
	// 		to.Ptr("ValidateMigrationInput.SqlServer.AzureSqlDbMI"),
	// 		to.Ptr("ConnectToTarget.AzureDbForMySql"),
	// 		to.Ptr("ConnectToSource.SqlServer"),
	// 		to.Ptr("GetUserTables.Sql"),
	// 		to.Ptr("ConnectToTarget.AzureSqlDbMI"),
	// 		to.Ptr("ConnectToTarget.SqlDb"),
	// 		to.Ptr("Migrate.SqlServer.SqlDb"),
	// 		to.Ptr("ConnectToSource.MySql")},
	// 		VMSize: to.Ptr("Standard_A4_v2"),
	// 	}
}
Output:

func (*ServicesClient) Get

func (client *ServicesClient) Get(ctx context.Context, groupName string, serviceName string, options *ServicesClientGetOptions) (ServicesClientGetResponse, error)

Get - The services resource is the top-level resource that represents the Database Migration Service. The GET method retrieves information about a service instance. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • options - ServicesClientGetOptions contains the optional parameters for the ServicesClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Services_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewServicesClient().Get(ctx, "DmsSdkRg", "DmsSdkService", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.Service = armdatamigration.Service{
	// 	Name: to.Ptr("DmsSdkService"),
	// 	Type: to.Ptr("Microsoft.DataMigration/services"),
	// 	ID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService"),
	// 	Location: to.Ptr("southcentralus"),
	// 	Etag: to.Ptr("qt85+bWDN84/6PR8Gllxf63krZcXZX1h3wxAbs6pCjc="),
	// 	Properties: &armdatamigration.ServiceProperties{
	// 		ProvisioningState: to.Ptr(armdatamigration.ServiceProvisioningStateSucceeded),
	// 		PublicKey: to.Ptr("0;AQAB;sCMXX00QDnuOIEQdXyY96h3VPSk3ccsBeYOGxntqg7y6oXbq4JbQHf8GnUhf5NsmUYBq1rO+6xSumIuLLANIIqNPpHCT8x7W+tcuShlju4fdSKfpyKbJnTJJzGLhRJYG97hDPo9D76qpEYQN66k0IfkKJVDTh7LAxqcE3lxdA98LB2EDM6vYoZ+raKXygYc1UUHDpkfksLk2YRTVCaayTFBh5HT/+CY+48V+rbx/nruvEEEbSg720m5Fc0k8ivM3A+RGkeK9pzQx+TtskSCDXiWL50a8Rrb5ORkBusgY+s0XLyKOuxZCIUOEO8JzUjCeZYdOfLJzx8yfTxEmSlOPqQ=="),
	// 		VirtualSubnetID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkTestNetwork/providers/Microsoft.Network/virtualNetworks/DmsSdkTestNetwork/subnets/default"),
	// 	},
	// 	SKU: &armdatamigration.ServiceSKU{
	// 		Name: to.Ptr("Basic_1vCore"),
	// 		Size: to.Ptr("1 vCore"),
	// 		Tier: to.Ptr("Basic"),
	// 	},
	// }
}
Output:

func (*ServicesClient) NewListByResourceGroupPager

NewListByResourceGroupPager - The Services resource is the top-level resource that represents the Database Migration Service. This method returns a list of service resources in a resource group.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • options - ServicesClientListByResourceGroupOptions contains the optional parameters for the ServicesClient.NewListByResourceGroupPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Services_ListByResourceGroup.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewServicesClient().NewListByResourceGroupPager("DmsSdkRg", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.ServiceList = armdatamigration.ServiceList{
		// 	Value: []*armdatamigration.Service{
		// 		{
		// 			Name: to.Ptr("DmsSdkService1"),
		// 			Type: to.Ptr("Microsoft.DataMigration/services"),
		// 			ID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService1"),
		// 			Location: to.Ptr("southcentralus"),
		// 			SKU: &armdatamigration.ServiceSKU{
		// 				Name: to.Ptr("GeneralPurpose_4vCores"),
		// 				Size: to.Ptr("4 vCores"),
		// 				Tier: to.Ptr("General Purpose"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("DmsSdkService2"),
		// 			Type: to.Ptr("Microsoft.DataMigration/services"),
		// 			ID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService2"),
		// 			Location: to.Ptr("southcentralus"),
		// 			SKU: &armdatamigration.ServiceSKU{
		// 				Name: to.Ptr("Basic_2vCores"),
		// 				Size: to.Ptr("2 vCores"),
		// 				Tier: to.Ptr("Basic"),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*ServicesClient) NewListPager

NewListPager - The services resource is the top-level resource that represents the Database Migration Service. This method returns a list of service resources in a subscription.

Generated from API version 2021-06-30

  • options - ServicesClientListOptions contains the optional parameters for the ServicesClient.NewListPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Services_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewServicesClient().NewListPager(nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.ServiceList = armdatamigration.ServiceList{
		// 	Value: []*armdatamigration.Service{
		// 		{
		// 			Name: to.Ptr("DmsSdkService1"),
		// 			Type: to.Ptr("Microsoft.DataMigration/services"),
		// 			ID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg1/providers/Microsoft.DataMigration/services/DmsSdkService1"),
		// 			Location: to.Ptr("southcentralus"),
		// 			SKU: &armdatamigration.ServiceSKU{
		// 				Name: to.Ptr("GeneralPurpose_4vCores"),
		// 				Size: to.Ptr("4 vCores"),
		// 				Tier: to.Ptr("General Purpose"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("DmsSdkService2"),
		// 			Type: to.Ptr("Microsoft.DataMigration/services"),
		// 			ID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg2/providers/Microsoft.DataMigration/services/DmsSdkService2"),
		// 			Location: to.Ptr("centralus"),
		// 			SKU: &armdatamigration.ServiceSKU{
		// 				Name: to.Ptr("Basic_2vCores"),
		// 				Size: to.Ptr("2 vCores"),
		// 				Tier: to.Ptr("Basic"),
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*ServicesClient) NewListSKUsPager

func (client *ServicesClient) NewListSKUsPager(groupName string, serviceName string, options *ServicesClientListSKUsOptions) *runtime.Pager[ServicesClientListSKUsResponse]

NewListSKUsPager - The services resource is the top-level resource that represents the Database Migration Service. The skus action returns the list of SKUs that a service resource can be updated to.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • options - ServicesClientListSKUsOptions contains the optional parameters for the ServicesClient.NewListSKUsPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Services_ListSkus.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewServicesClient().NewListSKUsPager("DmsSdkRg", "DmsSdkService", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.ServiceSKUList = armdatamigration.ServiceSKUList{
		// 	Value: []*armdatamigration.AvailableServiceSKU{
		// 		{
		// 			ResourceType: to.Ptr("Microsoft.DataMigration/services"),
		// 			SKU: &armdatamigration.AvailableServiceSKUSKU{
		// 				Name: to.Ptr("Basic_1vCore"),
		// 				Size: to.Ptr("1 vCore"),
		// 				Tier: to.Ptr("Basic"),
		// 			},
		// 	}},
		// }
	}
}
Output:

type ServicesClientBeginCreateOrUpdateOptions

type ServicesClientBeginCreateOrUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ServicesClientBeginCreateOrUpdateOptions contains the optional parameters for the ServicesClient.BeginCreateOrUpdate method.

type ServicesClientBeginDeleteOptions

type ServicesClientBeginDeleteOptions struct {
	// Delete the resource even if it contains running tasks
	DeleteRunningTasks *bool

	// Resumes the LRO from the provided token.
	ResumeToken string
}

ServicesClientBeginDeleteOptions contains the optional parameters for the ServicesClient.BeginDelete method.

type ServicesClientBeginStartOptions

type ServicesClientBeginStartOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ServicesClientBeginStartOptions contains the optional parameters for the ServicesClient.BeginStart method.

type ServicesClientBeginStopOptions

type ServicesClientBeginStopOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ServicesClientBeginStopOptions contains the optional parameters for the ServicesClient.BeginStop method.

type ServicesClientBeginUpdateOptions

type ServicesClientBeginUpdateOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ServicesClientBeginUpdateOptions contains the optional parameters for the ServicesClient.BeginUpdate method.

type ServicesClientCheckChildrenNameAvailabilityOptions

type ServicesClientCheckChildrenNameAvailabilityOptions struct {
}

ServicesClientCheckChildrenNameAvailabilityOptions contains the optional parameters for the ServicesClient.CheckChildrenNameAvailability method.

type ServicesClientCheckChildrenNameAvailabilityResponse

type ServicesClientCheckChildrenNameAvailabilityResponse struct {
	// Indicates whether a proposed resource name is available
	NameAvailabilityResponse
}

ServicesClientCheckChildrenNameAvailabilityResponse contains the response from method ServicesClient.CheckChildrenNameAvailability.

type ServicesClientCheckNameAvailabilityOptions

type ServicesClientCheckNameAvailabilityOptions struct {
}

ServicesClientCheckNameAvailabilityOptions contains the optional parameters for the ServicesClient.CheckNameAvailability method.

type ServicesClientCheckNameAvailabilityResponse

type ServicesClientCheckNameAvailabilityResponse struct {
	// Indicates whether a proposed resource name is available
	NameAvailabilityResponse
}

ServicesClientCheckNameAvailabilityResponse contains the response from method ServicesClient.CheckNameAvailability.

type ServicesClientCheckStatusOptions

type ServicesClientCheckStatusOptions struct {
}

ServicesClientCheckStatusOptions contains the optional parameters for the ServicesClient.CheckStatus method.

type ServicesClientCheckStatusResponse

type ServicesClientCheckStatusResponse struct {
	// Service health status
	ServiceStatusResponse
}

ServicesClientCheckStatusResponse contains the response from method ServicesClient.CheckStatus.

type ServicesClientCreateOrUpdateResponse

type ServicesClientCreateOrUpdateResponse struct {
	// A Database Migration Service resource
	Service
}

ServicesClientCreateOrUpdateResponse contains the response from method ServicesClient.BeginCreateOrUpdate.

type ServicesClientDeleteResponse

type ServicesClientDeleteResponse struct {
}

ServicesClientDeleteResponse contains the response from method ServicesClient.BeginDelete.

type ServicesClientGetOptions

type ServicesClientGetOptions struct {
}

ServicesClientGetOptions contains the optional parameters for the ServicesClient.Get method.

type ServicesClientGetResponse

type ServicesClientGetResponse struct {
	// A Database Migration Service resource
	Service
}

ServicesClientGetResponse contains the response from method ServicesClient.Get.

type ServicesClientListByResourceGroupOptions

type ServicesClientListByResourceGroupOptions struct {
}

ServicesClientListByResourceGroupOptions contains the optional parameters for the ServicesClient.NewListByResourceGroupPager method.

type ServicesClientListByResourceGroupResponse

type ServicesClientListByResourceGroupResponse struct {
	// OData page of service objects
	ServiceList
}

ServicesClientListByResourceGroupResponse contains the response from method ServicesClient.NewListByResourceGroupPager.

type ServicesClientListOptions

type ServicesClientListOptions struct {
}

ServicesClientListOptions contains the optional parameters for the ServicesClient.NewListPager method.

type ServicesClientListResponse

type ServicesClientListResponse struct {
	// OData page of service objects
	ServiceList
}

ServicesClientListResponse contains the response from method ServicesClient.NewListPager.

type ServicesClientListSKUsOptions

type ServicesClientListSKUsOptions struct {
}

ServicesClientListSKUsOptions contains the optional parameters for the ServicesClient.NewListSKUsPager method.

type ServicesClientListSKUsResponse

type ServicesClientListSKUsResponse struct {
	// OData page of available SKUs
	ServiceSKUList
}

ServicesClientListSKUsResponse contains the response from method ServicesClient.NewListSKUsPager.

type ServicesClientStartResponse

type ServicesClientStartResponse struct {
}

ServicesClientStartResponse contains the response from method ServicesClient.BeginStart.

type ServicesClientStopResponse

type ServicesClientStopResponse struct {
}

ServicesClientStopResponse contains the response from method ServicesClient.BeginStop.

type ServicesClientUpdateResponse

type ServicesClientUpdateResponse struct {
	// A Database Migration Service resource
	Service
}

ServicesClientUpdateResponse contains the response from method ServicesClient.BeginUpdate.

type Severity

type Severity string

Severity - Severity of the validation error

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

func PossibleSeverityValues

func PossibleSeverityValues() []Severity

PossibleSeverityValues returns the possible values for the Severity const type.

type SsisMigrationInfo

type SsisMigrationInfo struct {
	// The overwrite option for the SSIS environment migration
	EnvironmentOverwriteOption *SsisMigrationOverwriteOption

	// The overwrite option for the SSIS project migration
	ProjectOverwriteOption *SsisMigrationOverwriteOption

	// The SSIS store type of source, only SSIS catalog is supported now in DMS
	SsisStoreType *SsisStoreType
}

SsisMigrationInfo - SSIS migration info with SSIS store type, overwrite policy.

func (SsisMigrationInfo) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type SsisMigrationInfo.

func (*SsisMigrationInfo) UnmarshalJSON added in v1.1.0

func (s *SsisMigrationInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SsisMigrationInfo.

type SsisMigrationOverwriteOption

type SsisMigrationOverwriteOption string

SsisMigrationOverwriteOption - The overwrite option for SSIS object migration, only ignore and overwrite are supported in DMS now and future may add Reuse option for container object

const (
	SsisMigrationOverwriteOptionIgnore    SsisMigrationOverwriteOption = "Ignore"
	SsisMigrationOverwriteOptionOverwrite SsisMigrationOverwriteOption = "Overwrite"
)

func PossibleSsisMigrationOverwriteOptionValues

func PossibleSsisMigrationOverwriteOptionValues() []SsisMigrationOverwriteOption

PossibleSsisMigrationOverwriteOptionValues returns the possible values for the SsisMigrationOverwriteOption const type.

type SsisMigrationStage

type SsisMigrationStage string

SsisMigrationStage - Current stage of SSIS migration

const (
	SsisMigrationStageCompleted  SsisMigrationStage = "Completed"
	SsisMigrationStageInProgress SsisMigrationStage = "InProgress"
	SsisMigrationStageInitialize SsisMigrationStage = "Initialize"
	SsisMigrationStageNone       SsisMigrationStage = "None"
)

func PossibleSsisMigrationStageValues

func PossibleSsisMigrationStageValues() []SsisMigrationStage

PossibleSsisMigrationStageValues returns the possible values for the SsisMigrationStage const type.

type SsisStoreType

type SsisStoreType string

SsisStoreType - An enumeration of supported source SSIS store type in DMS

const (
	SsisStoreTypeSsisCatalog SsisStoreType = "SsisCatalog"
)

func PossibleSsisStoreTypeValues

func PossibleSsisStoreTypeValues() []SsisStoreType

PossibleSsisStoreTypeValues returns the possible values for the SsisStoreType const type.

type StartMigrationScenarioServerRoleResult

type StartMigrationScenarioServerRoleResult struct {
	// READ-ONLY; Migration exceptions and warnings.
	ExceptionsAndWarnings []*ReportableException

	// READ-ONLY; Name of server role.
	Name *string

	// READ-ONLY; Current state of migration
	State *MigrationState
}

StartMigrationScenarioServerRoleResult - Server role migration result

func (StartMigrationScenarioServerRoleResult) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type StartMigrationScenarioServerRoleResult.

func (*StartMigrationScenarioServerRoleResult) UnmarshalJSON added in v1.1.0

func (s *StartMigrationScenarioServerRoleResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type StartMigrationScenarioServerRoleResult.

type SyncDatabaseMigrationReportingState

type SyncDatabaseMigrationReportingState string

SyncDatabaseMigrationReportingState - Enum of the different state of database level online migration.

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 PossibleSyncDatabaseMigrationReportingStateValues

func PossibleSyncDatabaseMigrationReportingStateValues() []SyncDatabaseMigrationReportingState

PossibleSyncDatabaseMigrationReportingStateValues returns the possible values for the SyncDatabaseMigrationReportingState const type.

type SyncMigrationDatabaseErrorEvent

type SyncMigrationDatabaseErrorEvent struct {
	// READ-ONLY; Event text.
	EventText *string

	// READ-ONLY; Event type.
	EventTypeString *string

	// READ-ONLY; String value of timestamp.
	TimestampString *string
}

SyncMigrationDatabaseErrorEvent - Database migration errors for online migration

func (SyncMigrationDatabaseErrorEvent) MarshalJSON added in v1.1.0

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

MarshalJSON implements the json.Marshaller interface for type SyncMigrationDatabaseErrorEvent.

func (*SyncMigrationDatabaseErrorEvent) UnmarshalJSON added in v1.1.0

func (s *SyncMigrationDatabaseErrorEvent) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SyncMigrationDatabaseErrorEvent.

type SyncTableMigrationState

type SyncTableMigrationState string

SyncTableMigrationState - Enum of the different state of table level online migration.

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

func PossibleSyncTableMigrationStateValues

func PossibleSyncTableMigrationStateValues() []SyncTableMigrationState

PossibleSyncTableMigrationStateValues returns the possible values for the SyncTableMigrationState const type.

type SystemData

type SystemData struct {
	// The timestamp of resource creation (UTC).
	CreatedAt *time.Time

	// The identity that created the resource.
	CreatedBy *string

	// The type of identity that created the resource.
	CreatedByType *CreatedByType

	// The timestamp of resource last modification (UTC)
	LastModifiedAt *time.Time

	// The identity that last modified the resource.
	LastModifiedBy *string

	// The type of identity that last modified the resource.
	LastModifiedByType *CreatedByType
}

SystemData - Metadata pertaining to creation and last modification of the resource.

func (SystemData) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SystemData.

func (*SystemData) UnmarshalJSON

func (s *SystemData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.

type TaskList

type TaskList struct {
	// URL to load the next page of tasks
	NextLink *string

	// List of tasks
	Value []*ProjectTask
}

TaskList - OData page of tasks

func (TaskList) MarshalJSON added in v1.1.0

func (t TaskList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TaskList.

func (*TaskList) UnmarshalJSON added in v1.1.0

func (t *TaskList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TaskList.

type TaskState

type TaskState string

TaskState - The state of the task. This is ignored if submitted.

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 PossibleTaskStateValues

func PossibleTaskStateValues() []TaskState

PossibleTaskStateValues returns the possible values for the TaskState const type.

type TasksClient

type TasksClient struct {
	// contains filtered or unexported fields
}

TasksClient contains the methods for the Tasks group. Don't use this type directly, use NewTasksClient() instead.

func NewTasksClient

func NewTasksClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TasksClient, error)

NewTasksClient creates a new instance of TasksClient with the specified values.

  • subscriptionID - Identifier of the subscription
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*TasksClient) Cancel

func (client *TasksClient) Cancel(ctx context.Context, groupName string, serviceName string, projectName string, taskName string, options *TasksClientCancelOptions) (TasksClientCancelResponse, error)

Cancel - The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. This method cancels a task if it's currently queued or running. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • projectName - Name of the project
  • taskName - Name of the Task
  • options - TasksClientCancelOptions contains the optional parameters for the TasksClient.Cancel method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Tasks_Cancel.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewTasksClient().Cancel(ctx, "DmsSdkRg", "DmsSdkService", "DmsSdkProject", "DmsSdkTask", nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ProjectTask = armdatamigration.ProjectTask{
	// 	Name: to.Ptr("DmsSdkTask"),
	// 	Type: to.Ptr("Microsoft.DataMigration/services/projects/tasks"),
	// 	ID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService/projects/DmsSdkProject/tasks/DmsSdkTask"),
	// 	Etag: to.Ptr("0vPYxzfnDaDH9yhOJAnqTyTRpa09Kb7pm+LEukDBbw8="),
	// 	Properties: &armdatamigration.ConnectToTargetSQLDbTaskProperties{
	// 		State: to.Ptr(armdatamigration.TaskStateQueued),
	// 		TaskType: to.Ptr("ConnectToTarget.SqlDb"),
	// 		Input: &armdatamigration.ConnectToTargetSQLDbTaskInput{
	// 			TargetConnectionInfo: &armdatamigration.SQLConnectionInfo{
	// 				Type: to.Ptr("SqlConnectionInfo"),
	// 				UserName: to.Ptr("testuser"),
	// 				Authentication: to.Ptr(armdatamigration.AuthenticationTypeSQLAuthentication),
	// 				DataSource: to.Ptr("ssma-test-server.database.windows.net"),
	// 				EncryptConnection: to.Ptr(true),
	// 				TrustServerCertificate: to.Ptr(true),
	// 			},
	// 		},
	// 	},
	// }
}
Output:

func (*TasksClient) Command

func (client *TasksClient) Command(ctx context.Context, groupName string, serviceName string, projectName string, taskName string, parameters CommandPropertiesClassification, options *TasksClientCommandOptions) (TasksClientCommandResponse, error)

Command - The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. This method executes a command on a running task. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • projectName - Name of the project
  • taskName - Name of the Task
  • parameters - Command to execute
  • options - TasksClientCommandOptions contains the optional parameters for the TasksClient.Command method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Tasks_Command.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewTasksClient().Command(ctx, "DmsSdkRg", "DmsSdkService", "DmsSdkProject", "DmsSdkTask", &armdatamigration.MigrateSyncCompleteCommandProperties{
		CommandType: to.Ptr("Migrate.Sync.Complete.Database"),
		Input: &armdatamigration.MigrateSyncCompleteCommandInput{
			DatabaseName: to.Ptr("TestDatabase"),
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res = armdatamigration.TasksClientCommandResponse{
	// 	                            CommandPropertiesClassification: &armdatamigration.MigrateSyncCompleteCommandProperties{
	// 		CommandType: to.Ptr("Migrate.Sync.Complete.Database"),
	// 		State: to.Ptr(armdatamigration.CommandStateAccepted),
	// 		Input: &armdatamigration.MigrateSyncCompleteCommandInput{
	// 			DatabaseName: to.Ptr("TestDatabase"),
	// 		},
	// 	},
	// 	                        }
}
Output:

func (*TasksClient) CreateOrUpdate

func (client *TasksClient) CreateOrUpdate(ctx context.Context, groupName string, serviceName string, projectName string, taskName string, parameters ProjectTask, options *TasksClientCreateOrUpdateOptions) (TasksClientCreateOrUpdateResponse, error)

CreateOrUpdate - The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The PUT method creates a new task or updates an existing one, although since tasks have no mutable custom properties, there is little reason to update an existing one. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • projectName - Name of the project
  • taskName - Name of the Task
  • parameters - Information about the task
  • options - TasksClientCreateOrUpdateOptions contains the optional parameters for the TasksClient.CreateOrUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Tasks_CreateOrUpdate.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewTasksClient().CreateOrUpdate(ctx, "DmsSdkRg", "DmsSdkService", "DmsSdkProject", "DmsSdkTask", armdatamigration.ProjectTask{
		Properties: &armdatamigration.ConnectToTargetSQLDbTaskProperties{
			TaskType: to.Ptr("ConnectToTarget.SqlDb"),
			Input: &armdatamigration.ConnectToTargetSQLDbTaskInput{
				TargetConnectionInfo: &armdatamigration.SQLConnectionInfo{
					Type:                   to.Ptr("SqlConnectionInfo"),
					Password:               to.Ptr("testpassword"),
					UserName:               to.Ptr("testuser"),
					Authentication:         to.Ptr(armdatamigration.AuthenticationTypeSQLAuthentication),
					DataSource:             to.Ptr("ssma-test-server.database.windows.net"),
					EncryptConnection:      to.Ptr(true),
					TrustServerCertificate: to.Ptr(true),
				},
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ProjectTask = armdatamigration.ProjectTask{
	// 	Name: to.Ptr("DmsSdkTask"),
	// 	Type: to.Ptr("Microsoft.DataMigration/services/projects/tasks"),
	// 	ID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService/projects/DmsSdkProject/tasks/DmsSdkTask"),
	// 	Etag: to.Ptr("0vPYxzfnDaDH9yhOJAnqTyTRpa09Kb7pm+LEukDBbw8="),
	// 	Properties: &armdatamigration.ConnectToTargetSQLDbTaskProperties{
	// 		State: to.Ptr(armdatamigration.TaskStateQueued),
	// 		TaskType: to.Ptr("ConnectToTarget.SqlDb"),
	// 		Input: &armdatamigration.ConnectToTargetSQLDbTaskInput{
	// 			TargetConnectionInfo: &armdatamigration.SQLConnectionInfo{
	// 				Type: to.Ptr("SqlConnectionInfo"),
	// 				UserName: to.Ptr("testuser"),
	// 				Authentication: to.Ptr(armdatamigration.AuthenticationTypeSQLAuthentication),
	// 				DataSource: to.Ptr("ssma-test-server.database.windows.net"),
	// 				EncryptConnection: to.Ptr(true),
	// 				TrustServerCertificate: to.Ptr(true),
	// 			},
	// 		},
	// 	},
	// }
}
Output:

func (*TasksClient) Delete

func (client *TasksClient) Delete(ctx context.Context, groupName string, serviceName string, projectName string, taskName string, options *TasksClientDeleteOptions) (TasksClientDeleteResponse, error)

Delete - The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The DELETE method deletes a task, canceling it first if it's running. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • projectName - Name of the project
  • taskName - Name of the Task
  • options - TasksClientDeleteOptions contains the optional parameters for the TasksClient.Delete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Tasks_Delete.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	_, err = clientFactory.NewTasksClient().Delete(ctx, "DmsSdkRg", "DmsSdkService", "DmsSdkProject", "DmsSdkTask", &armdatamigration.TasksClientDeleteOptions{DeleteRunningTasks: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
}
Output:

func (*TasksClient) Get

func (client *TasksClient) Get(ctx context.Context, groupName string, serviceName string, projectName string, taskName string, options *TasksClientGetOptions) (TasksClientGetResponse, error)

Get - The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The GET method retrieves information about a task. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • projectName - Name of the project
  • taskName - Name of the Task
  • options - TasksClientGetOptions contains the optional parameters for the TasksClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Tasks_Get.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewTasksClient().Get(ctx, "DmsSdkRg", "DmsSdkService", "DmsSdkProject", "DmsSdkTask", &armdatamigration.TasksClientGetOptions{Expand: nil})
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ProjectTask = armdatamigration.ProjectTask{
	// 	Name: to.Ptr("DmsSdkTask"),
	// 	Type: to.Ptr("Microsoft.DataMigration/services/projects/tasks"),
	// 	ID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService/projects/DmsSdkProject/tasks/DmsSdkTask"),
	// 	Etag: to.Ptr("0vPYxzfnDaDH9yhOJAnqTyTRpa09Kb7pm+LEukDBbw8="),
	// 	Properties: &armdatamigration.ConnectToTargetSQLDbTaskProperties{
	// 		State: to.Ptr(armdatamigration.TaskStateQueued),
	// 		TaskType: to.Ptr("ConnectToTarget.SqlDb"),
	// 		Input: &armdatamigration.ConnectToTargetSQLDbTaskInput{
	// 			TargetConnectionInfo: &armdatamigration.SQLConnectionInfo{
	// 				Type: to.Ptr("SqlConnectionInfo"),
	// 				UserName: to.Ptr("testuser"),
	// 				Authentication: to.Ptr(armdatamigration.AuthenticationTypeSQLAuthentication),
	// 				DataSource: to.Ptr("ssma-test-server.database.windows.net"),
	// 				EncryptConnection: to.Ptr(true),
	// 				TrustServerCertificate: to.Ptr(true),
	// 			},
	// 		},
	// 	},
	// }
}
Output:

func (*TasksClient) NewListPager

func (client *TasksClient) NewListPager(groupName string, serviceName string, projectName string, options *TasksClientListOptions) *runtime.Pager[TasksClientListResponse]

NewListPager - The services resource is the top-level resource that represents the Database Migration Service. This method returns a list of tasks owned by a service resource. Some tasks may have a status of Unknown, which indicates that an error occurred while querying the status of that task.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • projectName - Name of the project
  • options - TasksClientListOptions contains the optional parameters for the TasksClient.NewListPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Tasks_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewTasksClient().NewListPager("DmsSdkRg", "DmsSdkService", "DmsSdkProject", &armdatamigration.TasksClientListOptions{TaskType: nil})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.TaskList = armdatamigration.TaskList{
		// 	Value: []*armdatamigration.ProjectTask{
		// 		{
		// 			Name: to.Ptr("DmsSdkTask"),
		// 			Type: to.Ptr("Microsoft.DataMigration/services/projects/tasks"),
		// 			ID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService/projects/DmsSdkProject/tasks/DmsSdkTask"),
		// 			Etag: to.Ptr("0vPYxzfnDaDH9yhOJAnqTyTRpa09Kb7pm+LEukDBbw8="),
		// 			Properties: &armdatamigration.ConnectToTargetSQLDbTaskProperties{
		// 				State: to.Ptr(armdatamigration.TaskStateQueued),
		// 				TaskType: to.Ptr("ConnectToTarget.SqlDb"),
		// 				Input: &armdatamigration.ConnectToTargetSQLDbTaskInput{
		// 					TargetConnectionInfo: &armdatamigration.SQLConnectionInfo{
		// 						Type: to.Ptr("SqlConnectionInfo"),
		// 						UserName: to.Ptr("testuser"),
		// 						Authentication: to.Ptr(armdatamigration.AuthenticationTypeSQLAuthentication),
		// 						DataSource: to.Ptr("ssma-test-server.database.windows.net"),
		// 						EncryptConnection: to.Ptr(true),
		// 						TrustServerCertificate: to.Ptr(true),
		// 					},
		// 				},
		// 			},
		// 	}},
		// }
	}
}
Output:

func (*TasksClient) Update

func (client *TasksClient) Update(ctx context.Context, groupName string, serviceName string, projectName string, taskName string, parameters ProjectTask, options *TasksClientUpdateOptions) (TasksClientUpdateResponse, error)

Update - The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The PATCH method updates an existing task, but since tasks have no mutable custom properties, there is little reason to do so. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-06-30

  • groupName - Name of the resource group
  • serviceName - Name of the service
  • projectName - Name of the project
  • taskName - Name of the Task
  • parameters - Information about the task
  • options - TasksClientUpdateOptions contains the optional parameters for the TasksClient.Update method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Tasks_Update.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewTasksClient().Update(ctx, "DmsSdkRg", "DmsSdkService", "DmsSdkProject", "DmsSdkTask", armdatamigration.ProjectTask{
		Properties: &armdatamigration.ConnectToTargetSQLDbTaskProperties{
			TaskType: to.Ptr("ConnectToTarget.SqlDb"),
			Input: &armdatamigration.ConnectToTargetSQLDbTaskInput{
				TargetConnectionInfo: &armdatamigration.SQLConnectionInfo{
					Type:                   to.Ptr("SqlConnectionInfo"),
					Password:               to.Ptr("testpassword"),
					UserName:               to.Ptr("testuser"),
					Authentication:         to.Ptr(armdatamigration.AuthenticationTypeSQLAuthentication),
					DataSource:             to.Ptr("ssma-test-server.database.windows.net"),
					EncryptConnection:      to.Ptr(true),
					TrustServerCertificate: to.Ptr(true),
				},
			},
		},
	}, nil)
	if err != nil {
		log.Fatalf("failed to finish the request: %v", err)
	}
	// You could use response here. We use blank identifier for just demo purposes.
	_ = res
	// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// res.ProjectTask = armdatamigration.ProjectTask{
	// 	Name: to.Ptr("DmsSdkTask"),
	// 	Type: to.Ptr("Microsoft.DataMigration/services/projects/tasks"),
	// 	ID: to.Ptr("/subscriptions/fc04246f-04c5-437e-ac5e-206a19e7193f/resourceGroups/DmsSdkRg/providers/Microsoft.DataMigration/services/DmsSdkService/projects/DmsSdkProject/tasks/DmsSdkTask"),
	// 	Etag: to.Ptr("0vPYxzfnDaDH9yhOJAnqTyTRpa09Kb7pm+LEukDBbw8="),
	// 	Properties: &armdatamigration.ConnectToTargetSQLDbTaskProperties{
	// 		State: to.Ptr(armdatamigration.TaskStateQueued),
	// 		TaskType: to.Ptr("ConnectToTarget.SqlDb"),
	// 		Input: &armdatamigration.ConnectToTargetSQLDbTaskInput{
	// 			TargetConnectionInfo: &armdatamigration.SQLConnectionInfo{
	// 				Type: to.Ptr("SqlConnectionInfo"),
	// 				UserName: to.Ptr("testuser"),
	// 				Authentication: to.Ptr(armdatamigration.AuthenticationTypeSQLAuthentication),
	// 				DataSource: to.Ptr("ssma-test-server.database.windows.net"),
	// 				EncryptConnection: to.Ptr(true),
	// 				TrustServerCertificate: to.Ptr(true),
	// 			},
	// 		},
	// 	},
	// }
}
Output:

type TasksClientCancelOptions

type TasksClientCancelOptions struct {
}

TasksClientCancelOptions contains the optional parameters for the TasksClient.Cancel method.

type TasksClientCancelResponse

type TasksClientCancelResponse struct {
	// A task resource
	ProjectTask
}

TasksClientCancelResponse contains the response from method TasksClient.Cancel.

type TasksClientCommandOptions

type TasksClientCommandOptions struct {
}

TasksClientCommandOptions contains the optional parameters for the TasksClient.Command method.

type TasksClientCommandResponse

type TasksClientCommandResponse struct {
	// Base class for all types of DMS command properties. If command is not supported by current client, this object is returned.
	CommandPropertiesClassification
}

TasksClientCommandResponse contains the response from method TasksClient.Command.

func (*TasksClientCommandResponse) UnmarshalJSON

func (t *TasksClientCommandResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TasksClientCommandResponse.

type TasksClientCreateOrUpdateOptions

type TasksClientCreateOrUpdateOptions struct {
}

TasksClientCreateOrUpdateOptions contains the optional parameters for the TasksClient.CreateOrUpdate method.

type TasksClientCreateOrUpdateResponse

type TasksClientCreateOrUpdateResponse struct {
	// A task resource
	ProjectTask
}

TasksClientCreateOrUpdateResponse contains the response from method TasksClient.CreateOrUpdate.

type TasksClientDeleteOptions

type TasksClientDeleteOptions struct {
	// Delete the resource even if it contains running tasks
	DeleteRunningTasks *bool
}

TasksClientDeleteOptions contains the optional parameters for the TasksClient.Delete method.

type TasksClientDeleteResponse

type TasksClientDeleteResponse struct {
}

TasksClientDeleteResponse contains the response from method TasksClient.Delete.

type TasksClientGetOptions

type TasksClientGetOptions struct {
	// Expand the response
	Expand *string
}

TasksClientGetOptions contains the optional parameters for the TasksClient.Get method.

type TasksClientGetResponse

type TasksClientGetResponse struct {
	// A task resource
	ProjectTask
}

TasksClientGetResponse contains the response from method TasksClient.Get.

type TasksClientListOptions

type TasksClientListOptions struct {
	// Filter tasks by task type
	TaskType *string
}

TasksClientListOptions contains the optional parameters for the TasksClient.NewListPager method.

type TasksClientListResponse

type TasksClientListResponse struct {
	// OData page of tasks
	TaskList
}

TasksClientListResponse contains the response from method TasksClient.NewListPager.

type TasksClientUpdateOptions

type TasksClientUpdateOptions struct {
}

TasksClientUpdateOptions contains the optional parameters for the TasksClient.Update method.

type TasksClientUpdateResponse

type TasksClientUpdateResponse struct {
	// A task resource
	ProjectTask
}

TasksClientUpdateResponse contains the response from method TasksClient.Update.

type TrackedResource

type TrackedResource struct {
	// REQUIRED; Resource location.
	Location *string

	// Resource tags.
	Tags map[string]*string

	// READ-ONLY; Resource ID.
	ID *string

	// READ-ONLY; Resource name.
	Name *string

	// READ-ONLY; Metadata pertaining to creation and last modification of the resource.
	SystemData *SystemData

	// READ-ONLY; Resource type.
	Type *string
}

TrackedResource - ARM tracked top level resource.

func (TrackedResource) MarshalJSON

func (t TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TrackedResource.

func (*TrackedResource) UnmarshalJSON added in v1.1.0

func (t *TrackedResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TrackedResource.

type UpdateActionType

type UpdateActionType string

UpdateActionType - Type of the actual difference for the compared object, while performing schema comparison

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

func PossibleUpdateActionTypeValues

func PossibleUpdateActionTypeValues() []UpdateActionType

PossibleUpdateActionTypeValues returns the possible values for the UpdateActionType const type.

type UploadOCIDriverTaskInput

type UploadOCIDriverTaskInput struct {
	// File share information for the OCI driver archive.
	DriverShare *FileShare
}

UploadOCIDriverTaskInput - Input for the service task to upload an OCI driver.

func (UploadOCIDriverTaskInput) MarshalJSON added in v1.1.0

func (u UploadOCIDriverTaskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UploadOCIDriverTaskInput.

func (*UploadOCIDriverTaskInput) UnmarshalJSON added in v1.1.0

func (u *UploadOCIDriverTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UploadOCIDriverTaskInput.

type UploadOCIDriverTaskOutput

type UploadOCIDriverTaskOutput struct {
	// READ-ONLY; The name of the driver package that was validated and uploaded.
	DriverPackageName *string

	// READ-ONLY; Validation errors
	ValidationErrors []*ReportableException
}

UploadOCIDriverTaskOutput - Output for the service task to upload an OCI driver.

func (UploadOCIDriverTaskOutput) MarshalJSON

func (u UploadOCIDriverTaskOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UploadOCIDriverTaskOutput.

func (*UploadOCIDriverTaskOutput) UnmarshalJSON added in v1.1.0

func (u *UploadOCIDriverTaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UploadOCIDriverTaskOutput.

type UploadOCIDriverTaskProperties

type UploadOCIDriverTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Input for the service task to upload an OCI driver.
	Input *UploadOCIDriverTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []*UploadOCIDriverTaskOutput

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

UploadOCIDriverTaskProperties - Properties for the task that uploads an OCI driver.

func (*UploadOCIDriverTaskProperties) GetProjectTaskProperties

func (u *UploadOCIDriverTaskProperties) GetProjectTaskProperties() *ProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type UploadOCIDriverTaskProperties.

func (UploadOCIDriverTaskProperties) MarshalJSON

func (u UploadOCIDriverTaskProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UploadOCIDriverTaskProperties.

func (*UploadOCIDriverTaskProperties) UnmarshalJSON

func (u *UploadOCIDriverTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UploadOCIDriverTaskProperties.

type UsagesClient

type UsagesClient struct {
	// contains filtered or unexported fields
}

UsagesClient contains the methods for the Usages group. Don't use this type directly, use NewUsagesClient() instead.

func NewUsagesClient

func NewUsagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*UsagesClient, error)

NewUsagesClient creates a new instance of UsagesClient with the specified values.

  • subscriptionID - Identifier of the subscription
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*UsagesClient) NewListPager

func (client *UsagesClient) NewListPager(location string, options *UsagesClientListOptions) *runtime.Pager[UsagesClientListResponse]

NewListPager - This method returns region-specific quotas and resource usage information for the Database Migration Service.

Generated from API version 2021-06-30

  • location - The Azure region of the operation
  • options - UsagesClientListOptions contains the optional parameters for the UsagesClient.NewListPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/163e27c0ca7570bc39e00a46f255740d9b3ba3cb/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2021-06-30/examples/Usages_List.json

package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatamigration.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewUsagesClient().NewListPager("westus", nil)
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.QuotaList = armdatamigration.QuotaList{
		// 	Value: []*armdatamigration.Quota{
		// 		{
		// 			Name: &armdatamigration.QuotaName{
		// 				LocalizedValue: to.Ptr("DMS service instances per region"),
		// 				Value: to.Ptr("Services"),
		// 			},
		// 			CurrentValue: to.Ptr[float64](1),
		// 			ID: to.Ptr("/subscriptions/90fb80a6-0f71-4761-8f03-921e7396f3c0/providers/Microsoft.DataMigration/locations/westus/usages/Services"),
		// 			Limit: to.Ptr[float64](2),
		// 			Unit: to.Ptr("Count"),
		// 	}},
		// }
	}
}
Output:

type UsagesClientListOptions

type UsagesClientListOptions struct {
}

UsagesClientListOptions contains the optional parameters for the UsagesClient.NewListPager method.

type UsagesClientListResponse

type UsagesClientListResponse struct {
	// OData page of quota objects
	QuotaList
}

UsagesClientListResponse contains the response from method UsagesClient.NewListPager.

type ValidateMigrationInputSQLServerSQLDbSyncTaskProperties

type ValidateMigrationInputSQLServerSQLDbSyncTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *ValidateSyncMigrationInputSQLServerTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []*ValidateSyncMigrationInputSQLServerTaskOutput

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

ValidateMigrationInputSQLServerSQLDbSyncTaskProperties - Properties for task that validates migration input for SQL to Azure SQL DB sync migrations

func (*ValidateMigrationInputSQLServerSQLDbSyncTaskProperties) GetProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type ValidateMigrationInputSQLServerSQLDbSyncTaskProperties.

func (ValidateMigrationInputSQLServerSQLDbSyncTaskProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type ValidateMigrationInputSQLServerSQLDbSyncTaskProperties.

func (*ValidateMigrationInputSQLServerSQLDbSyncTaskProperties) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type ValidateMigrationInputSQLServerSQLDbSyncTaskProperties.

type ValidateMigrationInputSQLServerSQLMISyncTaskInput

type ValidateMigrationInputSQLServerSQLMISyncTaskInput struct {
	// REQUIRED; Azure Active Directory Application the DMS instance will use to connect to the target instance of Azure SQL Database
	// Managed Instance and the Azure Storage Account
	AzureApp *AzureActiveDirectoryApp

	// REQUIRED; Databases to migrate
	SelectedDatabases []*MigrateSQLServerSQLMIDatabaseInput

	// REQUIRED; Connection information for source SQL Server
	SourceConnectionInfo *SQLConnectionInfo

	// REQUIRED; Fully qualified resourceId of storage
	StorageResourceID *string

	// REQUIRED; Connection information for Azure SQL Database Managed Instance
	TargetConnectionInfo *MiSQLConnectionInfo

	// Backup file share information for all selected databases.
	BackupFileShare *FileShare
}

ValidateMigrationInputSQLServerSQLMISyncTaskInput - Input for task that migrates SQL Server databases to Azure SQL Database Managed Instance online scenario.

func (ValidateMigrationInputSQLServerSQLMISyncTaskInput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type ValidateMigrationInputSQLServerSQLMISyncTaskInput.

func (*ValidateMigrationInputSQLServerSQLMISyncTaskInput) UnmarshalJSON added in v1.1.0

UnmarshalJSON implements the json.Unmarshaller interface for type ValidateMigrationInputSQLServerSQLMISyncTaskInput.

type ValidateMigrationInputSQLServerSQLMISyncTaskOutput

type ValidateMigrationInputSQLServerSQLMISyncTaskOutput struct {
	// READ-ONLY; Database identifier
	ID *string

	// READ-ONLY; Name of database
	Name *string

	// READ-ONLY; Errors associated with a selected database object
	ValidationErrors []*ReportableException
}

ValidateMigrationInputSQLServerSQLMISyncTaskOutput - Output for task that validates migration input for Azure SQL Database Managed Instance online migration

func (ValidateMigrationInputSQLServerSQLMISyncTaskOutput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type ValidateMigrationInputSQLServerSQLMISyncTaskOutput.

func (*ValidateMigrationInputSQLServerSQLMISyncTaskOutput) UnmarshalJSON added in v1.1.0

UnmarshalJSON implements the json.Unmarshaller interface for type ValidateMigrationInputSQLServerSQLMISyncTaskOutput.

type ValidateMigrationInputSQLServerSQLMISyncTaskProperties

type ValidateMigrationInputSQLServerSQLMISyncTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *ValidateMigrationInputSQLServerSQLMISyncTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []*ValidateMigrationInputSQLServerSQLMISyncTaskOutput

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

ValidateMigrationInputSQLServerSQLMISyncTaskProperties - Properties for task that validates migration input for SQL to Azure SQL Database Managed Instance sync scenario

func (*ValidateMigrationInputSQLServerSQLMISyncTaskProperties) GetProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type ValidateMigrationInputSQLServerSQLMISyncTaskProperties.

func (ValidateMigrationInputSQLServerSQLMISyncTaskProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type ValidateMigrationInputSQLServerSQLMISyncTaskProperties.

func (*ValidateMigrationInputSQLServerSQLMISyncTaskProperties) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type ValidateMigrationInputSQLServerSQLMISyncTaskProperties.

type ValidateMigrationInputSQLServerSQLMITaskInput

type ValidateMigrationInputSQLServerSQLMITaskInput struct {
	// REQUIRED; SAS URI of Azure Storage Account Container to be used for storing backup files.
	BackupBlobShare *BlobShare

	// REQUIRED; Databases to migrate
	SelectedDatabases []*MigrateSQLServerSQLMIDatabaseInput

	// REQUIRED; Information for connecting to source
	SourceConnectionInfo *SQLConnectionInfo

	// REQUIRED; Information for connecting to target
	TargetConnectionInfo *SQLConnectionInfo

	// Backup file share information for all selected databases.
	BackupFileShare *FileShare

	// Backup Mode to specify whether to use existing backup or create new backup.
	BackupMode *BackupMode

	// Logins to migrate
	SelectedLogins []*string
}

ValidateMigrationInputSQLServerSQLMITaskInput - Input for task that validates migration input for SQL to Azure SQL Managed Instance

func (ValidateMigrationInputSQLServerSQLMITaskInput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type ValidateMigrationInputSQLServerSQLMITaskInput.

func (*ValidateMigrationInputSQLServerSQLMITaskInput) UnmarshalJSON added in v1.1.0

func (v *ValidateMigrationInputSQLServerSQLMITaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ValidateMigrationInputSQLServerSQLMITaskInput.

type ValidateMigrationInputSQLServerSQLMITaskOutput

type ValidateMigrationInputSQLServerSQLMITaskOutput struct {
	// Information about backup files when existing backup mode is used.
	DatabaseBackupInfo *DatabaseBackupInfo

	// READ-ONLY; Errors associated with the BackupFolder path
	BackupFolderErrors []*ReportableException

	// READ-ONLY; Errors associated with backup share user name and password credentials
	BackupShareCredentialsErrors []*ReportableException

	// READ-ONLY; Errors associated with the storage account provided.
	BackupStorageAccountErrors []*ReportableException

	// READ-ONLY; Errors associated with existing backup files.
	ExistingBackupErrors []*ReportableException

	// READ-ONLY; Result identifier
	ID *string

	// READ-ONLY; Name of database
	Name *string

	// READ-ONLY; Errors associated with the RestoreDatabaseName
	RestoreDatabaseNameErrors []*ReportableException
}

ValidateMigrationInputSQLServerSQLMITaskOutput - Output for task that validates migration input for SQL to Azure SQL Managed Instance migrations

func (ValidateMigrationInputSQLServerSQLMITaskOutput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type ValidateMigrationInputSQLServerSQLMITaskOutput.

func (*ValidateMigrationInputSQLServerSQLMITaskOutput) UnmarshalJSON added in v1.1.0

UnmarshalJSON implements the json.Unmarshaller interface for type ValidateMigrationInputSQLServerSQLMITaskOutput.

type ValidateMigrationInputSQLServerSQLMITaskProperties

type ValidateMigrationInputSQLServerSQLMITaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Task input
	Input *ValidateMigrationInputSQLServerSQLMITaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; Task output. This is ignored if submitted.
	Output []*ValidateMigrationInputSQLServerSQLMITaskOutput

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

ValidateMigrationInputSQLServerSQLMITaskProperties - Properties for task that validates migration input for SQL to Azure SQL Database Managed Instance

func (*ValidateMigrationInputSQLServerSQLMITaskProperties) GetProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type ValidateMigrationInputSQLServerSQLMITaskProperties.

func (ValidateMigrationInputSQLServerSQLMITaskProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type ValidateMigrationInputSQLServerSQLMITaskProperties.

func (*ValidateMigrationInputSQLServerSQLMITaskProperties) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type ValidateMigrationInputSQLServerSQLMITaskProperties.

type ValidateMongoDbTaskProperties

type ValidateMongoDbTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Describes how a MongoDB data migration should be performed
	Input *MongoDbMigrationSettings

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; An array containing a single MongoDbMigrationProgress object
	Output []*MongoDbMigrationProgress

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

ValidateMongoDbTaskProperties - Properties for the task that validates a migration between MongoDB data sources

func (*ValidateMongoDbTaskProperties) GetProjectTaskProperties

func (v *ValidateMongoDbTaskProperties) GetProjectTaskProperties() *ProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type ValidateMongoDbTaskProperties.

func (ValidateMongoDbTaskProperties) MarshalJSON

func (v ValidateMongoDbTaskProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ValidateMongoDbTaskProperties.

func (*ValidateMongoDbTaskProperties) UnmarshalJSON

func (v *ValidateMongoDbTaskProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ValidateMongoDbTaskProperties.

type ValidateOracleAzureDbForPostgreSQLSyncTaskProperties

type ValidateOracleAzureDbForPostgreSQLSyncTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *string

	// Key value pairs of client data to attach meta data information to task
	ClientData map[string]*string

	// Input for the task that migrates Oracle databases to Azure Database for PostgreSQL for online migrations
	Input *MigrateOracleAzureDbPostgreSQLSyncTaskInput

	// READ-ONLY; Array of command properties.
	Commands []CommandPropertiesClassification

	// READ-ONLY; Array of errors. This is ignored if submitted.
	Errors []*ODataError

	// READ-ONLY; An array containing a single validation error response object
	Output []*ValidateOracleAzureDbPostgreSQLSyncTaskOutput

	// READ-ONLY; The state of the task. This is ignored if submitted.
	State *TaskState
}

ValidateOracleAzureDbForPostgreSQLSyncTaskProperties - Properties for the task that validates a migration for Oracle to Azure Database for PostgreSQL for online migrations

func (*ValidateOracleAzureDbForPostgreSQLSyncTaskProperties) GetProjectTaskProperties

GetProjectTaskProperties implements the ProjectTaskPropertiesClassification interface for type ValidateOracleAzureDbForPostgreSQLSyncTaskProperties.

func (ValidateOracleAzureDbForPostgreSQLSyncTaskProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type ValidateOracleAzureDbForPostgreSQLSyncTaskProperties.

func (*ValidateOracleAzureDbForPostgreSQLSyncTaskProperties) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type ValidateOracleAzureDbForPostgreSQLSyncTaskProperties.

type ValidateOracleAzureDbPostgreSQLSyncTaskOutput

type ValidateOracleAzureDbPostgreSQLSyncTaskOutput struct {
	// READ-ONLY; Errors associated with a selected database object
	ValidationErrors []*ReportableException
}

ValidateOracleAzureDbPostgreSQLSyncTaskOutput - Output for task that validates migration input for Oracle to Azure Database for PostgreSQL for online migrations

func (ValidateOracleAzureDbPostgreSQLSyncTaskOutput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type ValidateOracleAzureDbPostgreSQLSyncTaskOutput.

func (*ValidateOracleAzureDbPostgreSQLSyncTaskOutput) UnmarshalJSON added in v1.1.0

func (v *ValidateOracleAzureDbPostgreSQLSyncTaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ValidateOracleAzureDbPostgreSQLSyncTaskOutput.

type ValidateSyncMigrationInputSQLServerTaskInput

type ValidateSyncMigrationInputSQLServerTaskInput struct {
	// REQUIRED; Databases to migrate
	SelectedDatabases []*MigrateSQLServerSQLDbSyncDatabaseInput

	// REQUIRED; Information for connecting to source SQL server
	SourceConnectionInfo *SQLConnectionInfo

	// REQUIRED; Information for connecting to target
	TargetConnectionInfo *SQLConnectionInfo
}

ValidateSyncMigrationInputSQLServerTaskInput - Input for task that validates migration input for SQL sync migrations

func (ValidateSyncMigrationInputSQLServerTaskInput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type ValidateSyncMigrationInputSQLServerTaskInput.

func (*ValidateSyncMigrationInputSQLServerTaskInput) UnmarshalJSON added in v1.1.0

func (v *ValidateSyncMigrationInputSQLServerTaskInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ValidateSyncMigrationInputSQLServerTaskInput.

type ValidateSyncMigrationInputSQLServerTaskOutput

type ValidateSyncMigrationInputSQLServerTaskOutput struct {
	// READ-ONLY; Database identifier
	ID *string

	// READ-ONLY; Name of database
	Name *string

	// READ-ONLY; Errors associated with a selected database object
	ValidationErrors []*ReportableException
}

ValidateSyncMigrationInputSQLServerTaskOutput - Output for task that validates migration input for SQL sync migrations

func (ValidateSyncMigrationInputSQLServerTaskOutput) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type ValidateSyncMigrationInputSQLServerTaskOutput.

func (*ValidateSyncMigrationInputSQLServerTaskOutput) UnmarshalJSON added in v1.1.0

func (v *ValidateSyncMigrationInputSQLServerTaskOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ValidateSyncMigrationInputSQLServerTaskOutput.

type ValidationError

type ValidationError struct {
	// Severity of the error
	Severity *Severity

	// Error Text
	Text *string
}

ValidationError - Description about the errors happen while performing migration validation

func (ValidationError) MarshalJSON added in v1.1.0

func (v ValidationError) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ValidationError.

func (*ValidationError) UnmarshalJSON added in v1.1.0

func (v *ValidationError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ValidationError.

type ValidationStatus

type ValidationStatus string

ValidationStatus - Current status of the validation

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 PossibleValidationStatusValues

func PossibleValidationStatusValues() []ValidationStatus

PossibleValidationStatusValues returns the possible values for the ValidationStatus const type.

type WaitStatistics

type WaitStatistics struct {
	// Total no. of waits
	WaitCount *int64

	// Total wait time in millisecond(s)
	WaitTimeMs *float32

	// Type of the Wait
	WaitType *string
}

WaitStatistics - Wait statistics gathered during query batch execution

func (WaitStatistics) MarshalJSON added in v1.1.0

func (w WaitStatistics) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type WaitStatistics.

func (*WaitStatistics) UnmarshalJSON added in v1.1.0

func (w *WaitStatistics) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type WaitStatistics.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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