armdatamigration

package module
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: MIT Imports: 15 Imported by: 0

README

Azure Data Migration Module for Go

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

Source code

Getting started

Prerequisites

  • an Azure subscription
  • Supported version of Go (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/v2

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(, 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(, 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.NewDatabaseMigrationsMongoToCosmosDbRUMongoClient()

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

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

MarshalJSON implements the json.Marshaller interface for type APIError.

func (*APIError) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type APIError.

type AuthType

type AuthType string

AuthType - Authentication type used for accessing Azure Blob Storage.

const (
	// AuthTypeAccountKey - Use an account key for authentication.
	AuthTypeAccountKey AuthType = "AccountKey"
	// AuthTypeManagedIdentity - Use a managed identity for authentication.
	AuthTypeManagedIdentity AuthType = "ManagedIdentity"
)

func PossibleAuthTypeValues

func PossibleAuthTypeValues() []AuthType

PossibleAuthTypeValues returns the possible values for the AuthType const type.

type AuthenticationKeys

type AuthenticationKeys struct {
	// The first authentication key.
	AuthKey1 *string

	// The second authentication key.
	AuthKey2 *string
}

AuthenticationKeys - An authentication key.

func (AuthenticationKeys) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type AuthenticationKeys.

func (*AuthenticationKeys) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type AuthenticationKeys.

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

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

MarshalJSON implements the json.Marshaller interface for type AvailableServiceSKU.

func (*AvailableServiceSKU) UnmarshalJSON

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

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

MarshalJSON implements the json.Marshaller interface for type AvailableServiceSKUCapacity.

func (*AvailableServiceSKUCapacity) UnmarshalJSON

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

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

MarshalJSON implements the json.Marshaller interface for type AvailableServiceSKUSKU.

func (*AvailableServiceSKUSKU) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type AvailableServiceSKUSKU.

type AzureActiveDirectoryApp

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

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

	// Ignore checking azure permissions on the AAD app
	IgnoreAzurePermissions *bool

	// Tenant id of the customer
	TenantID *string
}

AzureActiveDirectoryApp - Azure Active Directory Application

func (AzureActiveDirectoryApp) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type AzureActiveDirectoryApp.

func (*AzureActiveDirectoryApp) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type AzureActiveDirectoryApp.

type AzureBlob

type AzureBlob struct {
	// Storage Account Key.
	AccountKey *string

	// Authentication type used for accessing Azure Blob Storage.
	AuthType *AuthType

	// Blob container name where backups are stored.
	BlobContainerName *string

	// Identity details for authentication using a Managed Identity.
	Identity *ManagedServiceIdentity

	// Resource Id of the storage account where backups are stored.
	StorageAccountResourceID *string
}

AzureBlob - Azure Blob Details

func (AzureBlob) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type AzureBlob.

func (*AzureBlob) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type AzureBlob.

type BackupConfiguration

type BackupConfiguration struct {
	// Source location of backups.
	SourceLocation *SourceLocation

	// Target location for copying backups.
	TargetLocation *TargetLocation
}

BackupConfiguration - Backup Configuration

func (BackupConfiguration) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type BackupConfiguration.

func (*BackupConfiguration) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type BackupConfiguration.

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

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

MarshalJSON implements the json.Marshaller interface for type BackupFileInfo.

func (*BackupFileInfo) UnmarshalJSON

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 {
	// SAS URI of Azure Storage Account Container.
	SasURI *string
}

BlobShare - Blob container storage information.

func (BlobShare) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type BlobShare.

func (*BlobShare) UnmarshalJSON

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

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

MarshalJSON implements the json.Marshaller interface for type CheckOCIDriverTaskInput.

func (*CheckOCIDriverTaskInput) UnmarshalJSON

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

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 *TaskType

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

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

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 - Subscription ID that identifies an Azure subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*ClientFactory) NewDatabaseMigrationsMongoToCosmosDbRUMongoClient

func (c *ClientFactory) NewDatabaseMigrationsMongoToCosmosDbRUMongoClient() *DatabaseMigrationsMongoToCosmosDbRUMongoClient

NewDatabaseMigrationsMongoToCosmosDbRUMongoClient creates a new instance of DatabaseMigrationsMongoToCosmosDbRUMongoClient.

func (*ClientFactory) NewDatabaseMigrationsMongoToCosmosDbvCoreMongoClient

func (c *ClientFactory) NewDatabaseMigrationsMongoToCosmosDbvCoreMongoClient() *DatabaseMigrationsMongoToCosmosDbvCoreMongoClient

NewDatabaseMigrationsMongoToCosmosDbvCoreMongoClient creates a new instance of DatabaseMigrationsMongoToCosmosDbvCoreMongoClient.

func (*ClientFactory) NewDatabaseMigrationsSQLDbClient

func (c *ClientFactory) NewDatabaseMigrationsSQLDbClient() *DatabaseMigrationsSQLDbClient

NewDatabaseMigrationsSQLDbClient creates a new instance of DatabaseMigrationsSQLDbClient.

func (*ClientFactory) NewDatabaseMigrationsSQLMiClient

func (c *ClientFactory) NewDatabaseMigrationsSQLMiClient() *DatabaseMigrationsSQLMiClient

NewDatabaseMigrationsSQLMiClient creates a new instance of DatabaseMigrationsSQLMiClient.

func (*ClientFactory) NewDatabaseMigrationsSQLVMClient

func (c *ClientFactory) NewDatabaseMigrationsSQLVMClient() *DatabaseMigrationsSQLVMClient

NewDatabaseMigrationsSQLVMClient creates a new instance of DatabaseMigrationsSQLVMClient.

func (*ClientFactory) NewFilesClient

func (c *ClientFactory) NewFilesClient() *FilesClient

NewFilesClient creates a new instance of FilesClient.

func (*ClientFactory) NewMigrationServicesClient

func (c *ClientFactory) NewMigrationServicesClient() *MigrationServicesClient

NewMigrationServicesClient creates a new instance of MigrationServicesClient.

func (*ClientFactory) NewOperationsClient

func (c *ClientFactory) NewOperationsClient() *OperationsClient

NewOperationsClient creates a new instance of OperationsClient.

func (*ClientFactory) NewProjectsClient

func (c *ClientFactory) NewProjectsClient() *ProjectsClient

NewProjectsClient creates a new instance of ProjectsClient.

func (*ClientFactory) NewResourceSKUsClient

func (c *ClientFactory) NewResourceSKUsClient() *ResourceSKUsClient

NewResourceSKUsClient creates a new instance of ResourceSKUsClient.

func (*ClientFactory) NewSQLMigrationServicesClient

func (c *ClientFactory) NewSQLMigrationServicesClient() *SQLMigrationServicesClient

NewSQLMigrationServicesClient creates a new instance of SQLMigrationServicesClient.

func (*ClientFactory) NewServiceTasksClient

func (c *ClientFactory) NewServiceTasksClient() *ServiceTasksClient

NewServiceTasksClient creates a new instance of ServiceTasksClient.

func (*ClientFactory) NewServicesClient

func (c *ClientFactory) NewServicesClient() *ServicesClient

NewServicesClient creates a new instance of ServicesClient.

func (*ClientFactory) NewTasksClient

func (c *ClientFactory) NewTasksClient() *TasksClient

NewTasksClient creates a new instance of TasksClient.

func (*ClientFactory) NewUsagesClient

func (c *ClientFactory) NewUsagesClient() *UsagesClient

NewUsagesClient creates a new instance of UsagesClient.

type CommandProperties

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

	// 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 (classic) 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

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 CommandType

type CommandType string

CommandType - Command type.

const (
	CommandTypeCancel                               CommandType = "cancel"
	CommandTypeFinish                               CommandType = "finish"
	CommandTypeMigrateSQLServerAzureDbSQLMiComplete CommandType = "Migrate.SqlServer.AzureDbSqlMi.Complete"
	CommandTypeMigrateSyncCompleteDatabase          CommandType = "Migrate.Sync.Complete.Database"
	CommandTypeRestart                              CommandType = "restart"
)

func PossibleCommandTypeValues

func PossibleCommandTypeValues() []CommandType

PossibleCommandTypeValues returns the possible values for the CommandType const type.

type ConnectToMongoDbTaskProperties

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

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

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

MarshalJSON implements the json.Marshaller interface for type ConnectToSourceMySQLTaskInput.

func (*ConnectToSourceMySQLTaskInput) UnmarshalJSON

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 *TaskType

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

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

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

MarshalJSON implements the json.Marshaller interface for type ConnectToSourceOracleSyncTaskInput.

func (*ConnectToSourceOracleSyncTaskInput) UnmarshalJSON

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

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 *TaskType

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

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

MarshalJSON implements the json.Marshaller interface for type ConnectToSourcePostgreSQLSyncTaskInput.

func (*ConnectToSourcePostgreSQLSyncTaskInput) UnmarshalJSON

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

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 *TaskType

	// 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 *TaskType

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

	// encrypted key for secure fields
	EncryptedKeyForSecureFields *string

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

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

MarshalJSON implements the json.Marshaller interface for type ConnectToSourceSQLServerTaskInput.

func (*ConnectToSourceSQLServerTaskInput) UnmarshalJSON

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

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

MarshalJSON implements the json.Marshaller interface for type ConnectToSourceSQLServerTaskOutput.

func (*ConnectToSourceSQLServerTaskOutput) UnmarshalJSON

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 *TaskType

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

	// Task input
	Input *ConnectToSourceSQLServerTaskInput

	// Task id
	TaskID *string

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

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

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetAzureDbForMySQLTaskInput.

func (*ConnectToTargetAzureDbForMySQLTaskInput) UnmarshalJSON

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

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 *TaskType

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

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetAzureDbForPostgreSQLSyncTaskInput.

func (*ConnectToTargetAzureDbForPostgreSQLSyncTaskInput) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToTargetAzureDbForPostgreSQLSyncTaskOutput.

type ConnectToTargetAzureDbForPostgreSQLSyncTaskProperties

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

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

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskInput.

func (*ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskInput) UnmarshalJSON

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

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

UnmarshalJSON implements the json.Unmarshaller interface for type ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskOutputDatabaseSchemaMapItem.

type ConnectToTargetOracleAzureDbForPostgreSQLSyncTaskProperties

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

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

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

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetSQLDbSyncTaskInput.

func (*ConnectToTargetSQLDbSyncTaskInput) UnmarshalJSON

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 *TaskType

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

	// Boolean flag indicating whether to query object counts for each database on the target server
	QueryObjectCounts *bool
}

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

func (ConnectToTargetSQLDbTaskInput) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetSQLDbTaskInput.

func (*ConnectToTargetSQLDbTaskInput) UnmarshalJSON

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

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

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetSQLDbTaskOutput.

func (*ConnectToTargetSQLDbTaskOutput) UnmarshalJSON

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 *TaskType

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

	// DateTime in UTC when the task was created
	CreatedOn *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 (classic) 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

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

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetSQLMISyncTaskInput.

func (*ConnectToTargetSQLMISyncTaskInput) UnmarshalJSON

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

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 *TaskType

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

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

MarshalJSON implements the json.Marshaller interface for type ConnectToTargetSQLMITaskInput.

func (*ConnectToTargetSQLMITaskInput) UnmarshalJSON

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

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 *TaskType

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

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

MarshalJSON implements the json.Marshaller interface for type ConnectionInfo.

func (*ConnectionInfo) UnmarshalJSON

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 CopyProgressDetails

type CopyProgressDetails struct {
	// READ-ONLY; Copy Duration in seconds
	CopyDuration *int32

	// READ-ONLY; Copy Start
	CopyStart *time.Time

	// READ-ONLY; Copy throughput in KBps
	CopyThroughput *float64

	// READ-ONLY; Bytes read
	DataRead *int64

	// READ-ONLY; Bytes written
	DataWritten *int64

	// READ-ONLY; Type of parallel copy (Dynamic range, Physical partition, none).
	ParallelCopyType *string

	// READ-ONLY; Rows Copied
	RowsCopied *int64

	// READ-ONLY; Rows read
	RowsRead *int64

	// READ-ONLY; Status of the Copy activity (InProgress, Succeeded, Failed, Canceled).
	Status *string

	// READ-ONLY; Table Name
	TableName *string

	// READ-ONLY; The degree of parallelization.
	UsedParallelCopies *int32
}

CopyProgressDetails - Details on progress of ADF copy activity

func (CopyProgressDetails) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type CopyProgressDetails.

func (*CopyProgressDetails) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type CopyProgressDetails.

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

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

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

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

MarshalJSON implements the json.Marshaller interface for type Database.

func (*Database) UnmarshalJSON

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

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

MarshalJSON implements the json.Marshaller interface for type DatabaseFileInfo.

func (*DatabaseFileInfo) UnmarshalJSON

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

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

MarshalJSON implements the json.Marshaller interface for type DatabaseFileInput.

func (*DatabaseFileInput) UnmarshalJSON

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

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

MarshalJSON implements the json.Marshaller interface for type DatabaseInfo.

func (*DatabaseInfo) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseInfo.

type DatabaseMigration

type DatabaseMigration struct {
	// Database Migration Resource properties.
	Properties DatabaseMigrationPropertiesClassification

	// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

DatabaseMigration - Database Migration Resource.

func (DatabaseMigration) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type DatabaseMigration.

func (*DatabaseMigration) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseMigration.

type DatabaseMigrationBase

type DatabaseMigrationBase struct {
	// Database Migration Base Resource properties.
	Properties DatabaseMigrationBasePropertiesClassification

	// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

DatabaseMigrationBase - Database Migration Resource.

func (DatabaseMigrationBase) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type DatabaseMigrationBase.

func (*DatabaseMigrationBase) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseMigrationBase.

type DatabaseMigrationBaseListResult

type DatabaseMigrationBaseListResult struct {
	// READ-ONLY
	NextLink *string

	// READ-ONLY
	Value []*DatabaseMigrationBase
}

DatabaseMigrationBaseListResult - A list of Database Migrations.

func (DatabaseMigrationBaseListResult) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type DatabaseMigrationBaseListResult.

func (*DatabaseMigrationBaseListResult) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseMigrationBaseListResult.

type DatabaseMigrationBaseProperties

type DatabaseMigrationBaseProperties struct {
	// REQUIRED
	Kind *ResourceType

	// ID for current migration operation.
	MigrationOperationID *string

	// Resource Id of the Migration Service.
	MigrationService *string

	// Error message for migration provisioning failure, if any.
	ProvisioningError *string

	// Resource Id of the target resource.
	Scope *string

	// READ-ONLY; Database migration end time.
	EndedOn *time.Time

	// READ-ONLY; Error details in case of migration failure.
	MigrationFailureError *ErrorInfo

	// READ-ONLY; Migration status.
	MigrationStatus *string

	// READ-ONLY; Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed
	// and migration has started.
	ProvisioningState *ProvisioningState

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

DatabaseMigrationBaseProperties - Database Migration Base Resource properties.

func (*DatabaseMigrationBaseProperties) GetDatabaseMigrationBaseProperties

func (d *DatabaseMigrationBaseProperties) GetDatabaseMigrationBaseProperties() *DatabaseMigrationBaseProperties

GetDatabaseMigrationBaseProperties implements the DatabaseMigrationBasePropertiesClassification interface for type DatabaseMigrationBaseProperties.

func (DatabaseMigrationBaseProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type DatabaseMigrationBaseProperties.

func (*DatabaseMigrationBaseProperties) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseMigrationBaseProperties.

type DatabaseMigrationBasePropertiesClassification

type DatabaseMigrationBasePropertiesClassification interface {
	// GetDatabaseMigrationBaseProperties returns the DatabaseMigrationBaseProperties content of the underlying type.
	GetDatabaseMigrationBaseProperties() *DatabaseMigrationBaseProperties
}

DatabaseMigrationBasePropertiesClassification provides polymorphic access to related types. Call the interface's GetDatabaseMigrationBaseProperties() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *DatabaseMigrationBaseProperties, *DatabaseMigrationProperties, *DatabaseMigrationPropertiesCosmosDbMongo, *DatabaseMigrationPropertiesSQLDb, - *DatabaseMigrationPropertiesSQLMi, *DatabaseMigrationPropertiesSQLVM

type DatabaseMigrationCosmosDbMongo

type DatabaseMigrationCosmosDbMongo struct {
	// Database Migration Resource properties for CosmosDb for Mongo.
	Properties *DatabaseMigrationPropertiesCosmosDbMongo

	// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

DatabaseMigrationCosmosDbMongo - Database Migration Resource for Mongo to CosmosDb.

func (DatabaseMigrationCosmosDbMongo) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type DatabaseMigrationCosmosDbMongo.

func (*DatabaseMigrationCosmosDbMongo) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseMigrationCosmosDbMongo.

type DatabaseMigrationCosmosDbMongoListResult

type DatabaseMigrationCosmosDbMongoListResult struct {
	// READ-ONLY
	NextLink *string

	// READ-ONLY
	Value []*DatabaseMigrationCosmosDbMongo
}

DatabaseMigrationCosmosDbMongoListResult - A list of Database Migrations.

func (DatabaseMigrationCosmosDbMongoListResult) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type DatabaseMigrationCosmosDbMongoListResult.

func (*DatabaseMigrationCosmosDbMongoListResult) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseMigrationCosmosDbMongoListResult.

type DatabaseMigrationListResult

type DatabaseMigrationListResult struct {
	// READ-ONLY
	NextLink *string

	// READ-ONLY
	Value []*DatabaseMigration
}

DatabaseMigrationListResult - A list of Database Migrations.

func (DatabaseMigrationListResult) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type DatabaseMigrationListResult.

func (*DatabaseMigrationListResult) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseMigrationListResult.

type DatabaseMigrationProperties

type DatabaseMigrationProperties struct {
	// REQUIRED
	Kind *ResourceType

	// ID for current migration operation.
	MigrationOperationID *string

	// Resource Id of the Migration Service.
	MigrationService *string

	// Error message for migration provisioning failure, if any.
	ProvisioningError *string

	// Resource Id of the target resource.
	Scope *string

	// Name of the source database.
	SourceDatabaseName *string

	// Source SQL Server connection details.
	SourceSQLConnection *SQLConnectionInformation

	// Database collation to be used for the target database.
	TargetDatabaseCollation *string

	// READ-ONLY; Database migration end time.
	EndedOn *time.Time

	// READ-ONLY; Error details in case of migration failure.
	MigrationFailureError *ErrorInfo

	// READ-ONLY; Migration status.
	MigrationStatus *string

	// READ-ONLY; Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed
	// and migration has started.
	ProvisioningState *ProvisioningState

	// READ-ONLY; Name of the source sql server.
	SourceServerName *string

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

DatabaseMigrationProperties - Database Migration Resource properties.

func (*DatabaseMigrationProperties) GetDatabaseMigrationBaseProperties

func (d *DatabaseMigrationProperties) GetDatabaseMigrationBaseProperties() *DatabaseMigrationBaseProperties

GetDatabaseMigrationBaseProperties implements the DatabaseMigrationBasePropertiesClassification interface for type DatabaseMigrationProperties.

func (*DatabaseMigrationProperties) GetDatabaseMigrationProperties

func (d *DatabaseMigrationProperties) GetDatabaseMigrationProperties() *DatabaseMigrationProperties

GetDatabaseMigrationProperties implements the DatabaseMigrationPropertiesClassification interface for type DatabaseMigrationProperties.

func (DatabaseMigrationProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type DatabaseMigrationProperties.

func (*DatabaseMigrationProperties) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseMigrationProperties.

type DatabaseMigrationPropertiesClassification

type DatabaseMigrationPropertiesClassification interface {
	DatabaseMigrationBasePropertiesClassification
	// GetDatabaseMigrationProperties returns the DatabaseMigrationProperties content of the underlying type.
	GetDatabaseMigrationProperties() *DatabaseMigrationProperties
}

DatabaseMigrationPropertiesClassification provides polymorphic access to related types. Call the interface's GetDatabaseMigrationProperties() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *DatabaseMigrationProperties, *DatabaseMigrationPropertiesSQLDb, *DatabaseMigrationPropertiesSQLMi, *DatabaseMigrationPropertiesSQLVM

type DatabaseMigrationPropertiesCosmosDbMongo

type DatabaseMigrationPropertiesCosmosDbMongo struct {
	// REQUIRED
	Kind *ResourceType

	// List of Mongo Collections to be migrated.
	CollectionList []*MongoMigrationCollection

	// ID for current migration operation.
	MigrationOperationID *string

	// Resource Id of the Migration Service.
	MigrationService *string

	// Error message for migration provisioning failure, if any.
	ProvisioningError *string

	// Resource Id of the target resource.
	Scope *string

	// Source Mongo connection details.
	SourceMongoConnection *MongoConnectionInformation

	// Target Cosmos DB Mongo connection details.
	TargetMongoConnection *MongoConnectionInformation

	// READ-ONLY; Database migration end time.
	EndedOn *time.Time

	// READ-ONLY; Error details in case of migration failure.
	MigrationFailureError *ErrorInfo

	// READ-ONLY; Migration status.
	MigrationStatus *string

	// READ-ONLY; Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed
	// and migration has started.
	ProvisioningState *ProvisioningState

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

DatabaseMigrationPropertiesCosmosDbMongo - Database Migration Resource properties for CosmosDb for Mongo.

func (*DatabaseMigrationPropertiesCosmosDbMongo) GetDatabaseMigrationBaseProperties

func (d *DatabaseMigrationPropertiesCosmosDbMongo) GetDatabaseMigrationBaseProperties() *DatabaseMigrationBaseProperties

GetDatabaseMigrationBaseProperties implements the DatabaseMigrationBasePropertiesClassification interface for type DatabaseMigrationPropertiesCosmosDbMongo.

func (DatabaseMigrationPropertiesCosmosDbMongo) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type DatabaseMigrationPropertiesCosmosDbMongo.

func (*DatabaseMigrationPropertiesCosmosDbMongo) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseMigrationPropertiesCosmosDbMongo.

type DatabaseMigrationPropertiesSQLDb

type DatabaseMigrationPropertiesSQLDb struct {
	// REQUIRED
	Kind *ResourceType

	// ID for current migration operation.
	MigrationOperationID *string

	// Resource Id of the Migration Service.
	MigrationService *string

	// Error message for migration provisioning failure, if any.
	ProvisioningError *string

	// Resource Id of the target resource.
	Scope *string

	// Name of the source database.
	SourceDatabaseName *string

	// Source SQL Server connection details.
	SourceSQLConnection *SQLConnectionInformation

	// List of tables to copy.
	TableList []*string

	// Database collation to be used for the target database.
	TargetDatabaseCollation *string

	// Target SQL DB connection details.
	TargetSQLConnection *SQLConnectionInformation

	// READ-ONLY; Database migration end time.
	EndedOn *time.Time

	// READ-ONLY; Error details in case of migration failure.
	MigrationFailureError *ErrorInfo

	// READ-ONLY; Migration status.
	MigrationStatus *string

	// READ-ONLY; Detailed migration status. Not included by default.
	MigrationStatusDetails *SQLDbMigrationStatusDetails

	// READ-ONLY; Offline configuration.
	OfflineConfiguration *SQLDbOfflineConfiguration

	// READ-ONLY; Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed
	// and migration has started.
	ProvisioningState *ProvisioningState

	// READ-ONLY; Name of the source sql server.
	SourceServerName *string

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

DatabaseMigrationPropertiesSQLDb - Database Migration Resource properties for SQL database.

func (*DatabaseMigrationPropertiesSQLDb) GetDatabaseMigrationBaseProperties

func (d *DatabaseMigrationPropertiesSQLDb) GetDatabaseMigrationBaseProperties() *DatabaseMigrationBaseProperties

GetDatabaseMigrationBaseProperties implements the DatabaseMigrationBasePropertiesClassification interface for type DatabaseMigrationPropertiesSQLDb.

func (*DatabaseMigrationPropertiesSQLDb) GetDatabaseMigrationProperties

func (d *DatabaseMigrationPropertiesSQLDb) GetDatabaseMigrationProperties() *DatabaseMigrationProperties

GetDatabaseMigrationProperties implements the DatabaseMigrationPropertiesClassification interface for type DatabaseMigrationPropertiesSQLDb.

func (DatabaseMigrationPropertiesSQLDb) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type DatabaseMigrationPropertiesSQLDb.

func (*DatabaseMigrationPropertiesSQLDb) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseMigrationPropertiesSQLDb.

type DatabaseMigrationPropertiesSQLMi

type DatabaseMigrationPropertiesSQLMi struct {
	// REQUIRED
	Kind *ResourceType

	// Backup configuration info.
	BackupConfiguration *BackupConfiguration

	// ID for current migration operation.
	MigrationOperationID *string

	// Resource Id of the Migration Service.
	MigrationService *string

	// Offline configuration.
	OfflineConfiguration *OfflineConfiguration

	// Error message for migration provisioning failure, if any.
	ProvisioningError *string

	// Resource Id of the target resource.
	Scope *string

	// Name of the source database.
	SourceDatabaseName *string

	// Source SQL Server connection details.
	SourceSQLConnection *SQLConnectionInformation

	// Database collation to be used for the target database.
	TargetDatabaseCollation *string

	// READ-ONLY; Database migration end time.
	EndedOn *time.Time

	// READ-ONLY; Error details in case of migration failure.
	MigrationFailureError *ErrorInfo

	// READ-ONLY; Migration status.
	MigrationStatus *string

	// READ-ONLY; Detailed migration status. Not included by default.
	MigrationStatusDetails *MigrationStatusDetails

	// READ-ONLY; Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed
	// and migration has started.
	ProvisioningState *ProvisioningState

	// READ-ONLY; Name of the source sql server.
	SourceServerName *string

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

DatabaseMigrationPropertiesSQLMi - Database Migration Resource properties for SQL Managed Instance.

func (*DatabaseMigrationPropertiesSQLMi) GetDatabaseMigrationBaseProperties

func (d *DatabaseMigrationPropertiesSQLMi) GetDatabaseMigrationBaseProperties() *DatabaseMigrationBaseProperties

GetDatabaseMigrationBaseProperties implements the DatabaseMigrationBasePropertiesClassification interface for type DatabaseMigrationPropertiesSQLMi.

func (*DatabaseMigrationPropertiesSQLMi) GetDatabaseMigrationProperties

func (d *DatabaseMigrationPropertiesSQLMi) GetDatabaseMigrationProperties() *DatabaseMigrationProperties

GetDatabaseMigrationProperties implements the DatabaseMigrationPropertiesClassification interface for type DatabaseMigrationPropertiesSQLMi.

func (DatabaseMigrationPropertiesSQLMi) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type DatabaseMigrationPropertiesSQLMi.

func (*DatabaseMigrationPropertiesSQLMi) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseMigrationPropertiesSQLMi.

type DatabaseMigrationPropertiesSQLVM

type DatabaseMigrationPropertiesSQLVM struct {
	// REQUIRED
	Kind *ResourceType

	// Backup configuration info.
	BackupConfiguration *BackupConfiguration

	// ID for current migration operation.
	MigrationOperationID *string

	// Resource Id of the Migration Service.
	MigrationService *string

	// Offline configuration.
	OfflineConfiguration *OfflineConfiguration

	// Error message for migration provisioning failure, if any.
	ProvisioningError *string

	// Resource Id of the target resource.
	Scope *string

	// Name of the source database.
	SourceDatabaseName *string

	// Source SQL Server connection details.
	SourceSQLConnection *SQLConnectionInformation

	// Database collation to be used for the target database.
	TargetDatabaseCollation *string

	// READ-ONLY; Database migration end time.
	EndedOn *time.Time

	// READ-ONLY; Error details in case of migration failure.
	MigrationFailureError *ErrorInfo

	// READ-ONLY; Migration status.
	MigrationStatus *string

	// READ-ONLY; Detailed migration status. Not included by default.
	MigrationStatusDetails *MigrationStatusDetails

	// READ-ONLY; Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed
	// and migration has started.
	ProvisioningState *ProvisioningState

	// READ-ONLY; Name of the source sql server.
	SourceServerName *string

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

DatabaseMigrationPropertiesSQLVM - Database Migration Resource properties for SQL Virtual Machine.

func (*DatabaseMigrationPropertiesSQLVM) GetDatabaseMigrationBaseProperties

func (d *DatabaseMigrationPropertiesSQLVM) GetDatabaseMigrationBaseProperties() *DatabaseMigrationBaseProperties

GetDatabaseMigrationBaseProperties implements the DatabaseMigrationBasePropertiesClassification interface for type DatabaseMigrationPropertiesSQLVM.

func (*DatabaseMigrationPropertiesSQLVM) GetDatabaseMigrationProperties

func (d *DatabaseMigrationPropertiesSQLVM) GetDatabaseMigrationProperties() *DatabaseMigrationProperties

GetDatabaseMigrationProperties implements the DatabaseMigrationPropertiesClassification interface for type DatabaseMigrationPropertiesSQLVM.

func (DatabaseMigrationPropertiesSQLVM) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type DatabaseMigrationPropertiesSQLVM.

func (*DatabaseMigrationPropertiesSQLVM) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseMigrationPropertiesSQLVM.

type DatabaseMigrationSQLDb

type DatabaseMigrationSQLDb struct {
	// Database Migration Resource properties for SQL database.
	Properties *DatabaseMigrationPropertiesSQLDb

	// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

DatabaseMigrationSQLDb - Database Migration Resource for SQL Database.

func (DatabaseMigrationSQLDb) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type DatabaseMigrationSQLDb.

func (*DatabaseMigrationSQLDb) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseMigrationSQLDb.

type DatabaseMigrationSQLMi

type DatabaseMigrationSQLMi struct {
	// Database Migration Resource properties for SQL Managed Instance.
	Properties *DatabaseMigrationPropertiesSQLMi

	// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

DatabaseMigrationSQLMi - Database Migration Resource for SQL Managed Instance.

func (DatabaseMigrationSQLMi) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type DatabaseMigrationSQLMi.

func (*DatabaseMigrationSQLMi) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseMigrationSQLMi.

type DatabaseMigrationSQLVM

type DatabaseMigrationSQLVM struct {
	// Database Migration Resource properties for SQL Virtual Machine.
	Properties *DatabaseMigrationPropertiesSQLVM

	// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

DatabaseMigrationSQLVM - Database Migration Resource for SQL Virtual Machine.

func (DatabaseMigrationSQLVM) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type DatabaseMigrationSQLVM.

func (*DatabaseMigrationSQLVM) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseMigrationSQLVM.

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 DatabaseMigrationsMongoToCosmosDbRUMongoClient

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

DatabaseMigrationsMongoToCosmosDbRUMongoClient contains the methods for the DatabaseMigrationsMongoToCosmosDbRUMongo group. Don't use this type directly, use NewDatabaseMigrationsMongoToCosmosDbRUMongoClient() instead.

func NewDatabaseMigrationsMongoToCosmosDbRUMongoClient

func NewDatabaseMigrationsMongoToCosmosDbRUMongoClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DatabaseMigrationsMongoToCosmosDbRUMongoClient, error)

NewDatabaseMigrationsMongoToCosmosDbRUMongoClient creates a new instance of DatabaseMigrationsMongoToCosmosDbRUMongoClient with the specified values.

  • subscriptionID - Subscription ID that identifies an Azure subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*DatabaseMigrationsMongoToCosmosDbRUMongoClient) BeginCreate

BeginCreate - Create or Update Database Migration resource. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • targetResourceName - The name of the target resource/account.
  • migrationName - Name of the migration.
  • parameters - Details of CosmosDB for Mongo API Migration resource.
  • options - DatabaseMigrationsMongoToCosmosDbRUMongoClientBeginCreateOptions contains the optional parameters for the DatabaseMigrationsMongoToCosmosDbRUMongoClient.BeginCreate method.
Example (CreateMongoToCosmosDbMongoRuDatabaseMigrationResourceWithMaximumParameters)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CosmosDbMongoCreateOrUpdateDatabaseMigrationMAX.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDatabaseMigrationsMongoToCosmosDbRUMongoClient().BeginCreate(ctx, "testrg", "targetCosmosDbClusterName", "migrationRequest", armdatamigration.DatabaseMigrationCosmosDbMongo{
		Properties: &armdatamigration.DatabaseMigrationPropertiesCosmosDbMongo{
			Kind:             to.Ptr(armdatamigration.ResourceTypeMongoToCosmosDbMongo),
			MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/MigrationServices/testMigrationService"),
			Scope:            to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName"),
			CollectionList: []*armdatamigration.MongoMigrationCollection{
				{
					SourceCollection: to.Ptr("sourceCol1"),
					SourceDatabase:   to.Ptr("sourceDb1"),
					TargetCollection: to.Ptr("targetCol1"),
					TargetDatabase:   to.Ptr("targetDb1"),
				},
				{
					SourceCollection: to.Ptr("sourceCol2"),
					SourceDatabase:   to.Ptr("sourceDb2"),
					TargetCollection: to.Ptr("sourceCol2"),
					TargetDatabase:   to.Ptr("sourceDb2"),
				}},
			SourceMongoConnection: &armdatamigration.MongoConnectionInformation{
				Host:     to.Ptr("abc.mongodb.com"),
				Password: to.Ptr("placeholder"),
				Port:     to.Ptr[int32](88),
				UseSSL:   to.Ptr(true),
				UserName: to.Ptr("abc"),
			},
			TargetMongoConnection: &armdatamigration.MongoConnectionInformation{
				Host:     to.Ptr("xyz.mongocluster.cosmos.azure.com"),
				Password: to.Ptr("placeholder"),
				Port:     to.Ptr[int32](10255),
				UseSSL:   to.Ptr(true),
				UserName: to.Ptr("def"),
			},
		},
	}, 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.DatabaseMigrationCosmosDbMongo = armdatamigration.DatabaseMigrationCosmosDbMongo{
	// 	Name: to.Ptr("migrationRequest"),
	// 	Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName/providers/Microsoft.DataMigration/databaseMigrations/migrationRequest"),
	// 	Properties: &armdatamigration.DatabaseMigrationPropertiesCosmosDbMongo{
	// 		Kind: to.Ptr(armdatamigration.ResourceTypeMongoToCosmosDbMongo),
	// 		MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/migrationServices/testMigrationService"),
	// 		ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
	// 		Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName"),
	// 		CollectionList: []*armdatamigration.MongoMigrationCollection{
	// 			{
	// 				SourceCollection: to.Ptr("sourceCol1"),
	// 				SourceDatabase: to.Ptr("sourceDb1"),
	// 				TargetCollection: to.Ptr("targetCol1"),
	// 				TargetDatabase: to.Ptr("targetDb1"),
	// 			},
	// 			{
	// 				SourceCollection: to.Ptr("sourceCol2"),
	// 				SourceDatabase: to.Ptr("sourceDb2"),
	// 				TargetCollection: to.Ptr("sourceCol2"),
	// 				TargetDatabase: to.Ptr("sourceDb2"),
	// 		}},
	// 		SourceMongoConnection: &armdatamigration.MongoConnectionInformation{
	// 			Host: to.Ptr("abc.mongodb.com"),
	// 			Port: to.Ptr[int32](88),
	// 		},
	// 		TargetMongoConnection: &armdatamigration.MongoConnectionInformation{
	// 			Host: to.Ptr("xyz.mongocluster.cosmos.azure.com"),
	// 			Port: to.Ptr[int32](10255),
	// 		},
	// 	},
	// }
}
Example (CreateMongoToCosmosDbMongoRuDatabaseMigrationResourceWithMinimumParameters)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CosmosDbMongoCreateOrUpdateDatabaseMigrationMIN.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDatabaseMigrationsMongoToCosmosDbRUMongoClient().BeginCreate(ctx, "testrg", "targetCosmosDbClusterName", "migrationRequest", armdatamigration.DatabaseMigrationCosmosDbMongo{
		Properties: &armdatamigration.DatabaseMigrationPropertiesCosmosDbMongo{
			Kind:             to.Ptr(armdatamigration.ResourceTypeMongoToCosmosDbMongo),
			MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/MigrationServices/testMigrationService"),
			Scope:            to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName"),
			CollectionList: []*armdatamigration.MongoMigrationCollection{
				{
					SourceCollection: to.Ptr("sourceCol1"),
					SourceDatabase:   to.Ptr("sourceDb1"),
					TargetCollection: to.Ptr("targetCol1"),
					TargetDatabase:   to.Ptr("targetDb1"),
				},
				{
					SourceCollection: to.Ptr("sourceCol2"),
					SourceDatabase:   to.Ptr("sourceDb2"),
				}},
			SourceMongoConnection: &armdatamigration.MongoConnectionInformation{
				Host:     to.Ptr("abc.mongodb.com"),
				Password: to.Ptr("placeholder"),
				Port:     to.Ptr[int32](88),
				UseSSL:   to.Ptr(true),
				UserName: to.Ptr("abc"),
			},
			TargetMongoConnection: &armdatamigration.MongoConnectionInformation{
				ConnectionString: to.Ptr("placeholder"),
			},
		},
	}, 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.DatabaseMigrationCosmosDbMongo = armdatamigration.DatabaseMigrationCosmosDbMongo{
	// 	Name: to.Ptr("migrationRequest"),
	// 	Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName/providers/Microsoft.DataMigration/databaseMigrations/migrationRequest"),
	// 	Properties: &armdatamigration.DatabaseMigrationPropertiesCosmosDbMongo{
	// 		Kind: to.Ptr(armdatamigration.ResourceTypeMongoToCosmosDbMongo),
	// 		MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/migrationServices/testMigrationService"),
	// 		ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
	// 		Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName"),
	// 		CollectionList: []*armdatamigration.MongoMigrationCollection{
	// 			{
	// 				SourceCollection: to.Ptr("sourceCol1"),
	// 				SourceDatabase: to.Ptr("sourceDb1"),
	// 				TargetCollection: to.Ptr("targetCol1"),
	// 				TargetDatabase: to.Ptr("targetDb1"),
	// 			},
	// 			{
	// 				SourceCollection: to.Ptr("sourceCol2"),
	// 				SourceDatabase: to.Ptr("sourceDb2"),
	// 				TargetCollection: to.Ptr("sourceCol2"),
	// 				TargetDatabase: to.Ptr("sourceDb2"),
	// 		}},
	// 		SourceMongoConnection: &armdatamigration.MongoConnectionInformation{
	// 			Host: to.Ptr("abc.mongodb.com"),
	// 			Port: to.Ptr[int32](88),
	// 		},
	// 		TargetMongoConnection: &armdatamigration.MongoConnectionInformation{
	// 			Host: to.Ptr("xyz.mongo.cosmos.azure.com"),
	// 			Port: to.Ptr[int32](10255),
	// 		},
	// 	},
	// }
}

func (*DatabaseMigrationsMongoToCosmosDbRUMongoClient) BeginDelete

BeginDelete - Delete Database Migration resource. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • targetResourceName - The name of the target resource/account.
  • migrationName - Name of the migration.
  • options - DatabaseMigrationsMongoToCosmosDbRUMongoClientBeginDeleteOptions contains the optional parameters for the DatabaseMigrationsMongoToCosmosDbRUMongoClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CosmosDbMongoDeleteDatabaseMigration.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDatabaseMigrationsMongoToCosmosDbRUMongoClient().BeginDelete(ctx, "testrg", "targetCosmosDbClusterName", "migrationRequest", &armdatamigration.DatabaseMigrationsMongoToCosmosDbRUMongoClientBeginDeleteOptions{Force: 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)
	}
}

func (*DatabaseMigrationsMongoToCosmosDbRUMongoClient) Get

Get - Get Database Migration resource. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • targetResourceName - The name of the target resource/account.
  • migrationName - Name of the migration.
  • options - DatabaseMigrationsMongoToCosmosDbRUMongoClientGetOptions contains the optional parameters for the DatabaseMigrationsMongoToCosmosDbRUMongoClient.Get method.
Example (GetMongoToCosmosDbMongoRuDatabaseMigrationWithTheExpandParameter)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CosmosDbMongoGetDatabaseMigrationExpanded.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewDatabaseMigrationsMongoToCosmosDbRUMongoClient().Get(ctx, "testrg", "targetCosmosDbClusterName", "migrationRequest", 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.DatabaseMigrationCosmosDbMongo = armdatamigration.DatabaseMigrationCosmosDbMongo{
	// 	Name: to.Ptr("migrationRequest"),
	// 	Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName/providers/Microsoft.DataMigration/databaseMigrations/migrationRequest"),
	// 	Properties: &armdatamigration.DatabaseMigrationPropertiesCosmosDbMongo{
	// 		EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T09:00:00.000Z"); return t}()),
	// 		Kind: to.Ptr(armdatamigration.ResourceTypeMongoToCosmosDbMongo),
	// 		MigrationOperationID: to.Ptr("858ba109-5ab7-4fa1-8aea-bea487cacdcd"),
	// 		MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/migrationServices/testMigrationService"),
	// 		MigrationStatus: to.Ptr("Succeeded"),
	// 		ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
	// 		Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName"),
	// 		StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		CollectionList: []*armdatamigration.MongoMigrationCollection{
	// 			{
	// 				MigrationProgressDetails: &armdatamigration.MongoMigrationProgressDetails{
	// 					DurationInSeconds: to.Ptr[int32](400),
	// 					MigrationStatus: to.Ptr(armdatamigration.MongoMigrationStatusCompleted),
	// 					ProcessedDocumentCount: to.Ptr[int64](25544),
	// 					SourceDocumentCount: to.Ptr[int64](25544),
	// 				},
	// 				SourceCollection: to.Ptr("sourceCol1"),
	// 				SourceDatabase: to.Ptr("sourceDb1"),
	// 				TargetCollection: to.Ptr("targetCol1"),
	// 				TargetDatabase: to.Ptr("targetDb1"),
	// 			},
	// 			{
	// 				MigrationProgressDetails: &armdatamigration.MongoMigrationProgressDetails{
	// 					DurationInSeconds: to.Ptr[int32](100),
	// 					MigrationStatus: to.Ptr(armdatamigration.MongoMigrationStatusCompleted),
	// 					ProcessedDocumentCount: to.Ptr[int64](255),
	// 					SourceDocumentCount: to.Ptr[int64](255),
	// 				},
	// 				SourceCollection: to.Ptr("sourceCol2"),
	// 				SourceDatabase: to.Ptr("sourceDb2"),
	// 				TargetCollection: to.Ptr("sourceCol2"),
	// 				TargetDatabase: to.Ptr("sourceDb2"),
	// 		}},
	// 		SourceMongoConnection: &armdatamigration.MongoConnectionInformation{
	// 			Host: to.Ptr("abc.mongodb.com"),
	// 			Port: to.Ptr[int32](88),
	// 		},
	// 		TargetMongoConnection: &armdatamigration.MongoConnectionInformation{
	// 			Host: to.Ptr("xyz.mongocluster.cosmos.azure.com"),
	// 			Port: to.Ptr[int32](10255),
	// 		},
	// 	},
	// }
}
Example (GetMongoToCosmosDbMongoRuDatabaseMigrationWithoutTheExpandParameter)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CosmosDbMongoGetDatabaseMigration.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewDatabaseMigrationsMongoToCosmosDbRUMongoClient().Get(ctx, "testrg", "targetCosmosDbClusterName", "migrationRequest", 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.DatabaseMigrationCosmosDbMongo = armdatamigration.DatabaseMigrationCosmosDbMongo{
	// 	Name: to.Ptr("migrationRequest"),
	// 	Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName/providers/Microsoft.DataMigration/databaseMigrations/migrationRequest"),
	// 	Properties: &armdatamigration.DatabaseMigrationPropertiesCosmosDbMongo{
	// 		Kind: to.Ptr(armdatamigration.ResourceTypeMongoToCosmosDbMongo),
	// 		MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/migrationServices/testMigrationService"),
	// 		MigrationStatus: to.Ptr("Creating"),
	// 		ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
	// 		Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName"),
	// 		CollectionList: []*armdatamigration.MongoMigrationCollection{
	// 			{
	// 				SourceCollection: to.Ptr("sourceCol1"),
	// 				SourceDatabase: to.Ptr("sourceDb1"),
	// 				TargetCollection: to.Ptr("targetCol1"),
	// 				TargetDatabase: to.Ptr("targetDb1"),
	// 			},
	// 			{
	// 				SourceCollection: to.Ptr("sourceCol2"),
	// 				SourceDatabase: to.Ptr("sourceDb2"),
	// 				TargetCollection: to.Ptr("sourceCol2"),
	// 				TargetDatabase: to.Ptr("sourceDb2"),
	// 		}},
	// 		SourceMongoConnection: &armdatamigration.MongoConnectionInformation{
	// 			Host: to.Ptr("abc.mongodb.com"),
	// 			Port: to.Ptr[int32](88),
	// 		},
	// 		TargetMongoConnection: &armdatamigration.MongoConnectionInformation{
	// 			Host: to.Ptr("xyz.mongocluster.cosmos.azure.com"),
	// 			Port: to.Ptr[int32](10255),
	// 		},
	// 	},
	// }
}

func (*DatabaseMigrationsMongoToCosmosDbRUMongoClient) NewGetForScopePager

NewGetForScopePager - Get Database Migration resources for the scope.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • targetResourceName - The name of the target resource/account.
  • options - DatabaseMigrationsMongoToCosmosDbRUMongoClientGetForScopeOptions contains the optional parameters for the DatabaseMigrationsMongoToCosmosDbRUMongoClient.NewGetForScopePager method.
Example (GetMongoToCosmosDbMongoRuDatabaseMigrationWithTheExpandParameter)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CosmosDbMongoListByScopeDatabaseMigration.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewDatabaseMigrationsMongoToCosmosDbRUMongoClient().NewGetForScopePager("testrg", "targetCosmosDbClusterName", 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.DatabaseMigrationCosmosDbMongoListResult = armdatamigration.DatabaseMigrationCosmosDbMongoListResult{
		// 	Value: []*armdatamigration.DatabaseMigrationCosmosDbMongo{
		// 		{
		// 			Name: to.Ptr("migrationRequest1"),
		// 			Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
		// 			ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName/providers/Microsoft.DataMigration/databaseMigrations/migrationRequest1"),
		// 			Properties: &armdatamigration.DatabaseMigrationPropertiesCosmosDbMongo{
		// 				Kind: to.Ptr(armdatamigration.ResourceTypeMongoToCosmosDbMongo),
		// 				MigrationOperationID: to.Ptr("858ba109-5ab7-4fa1-8aea-bea487cacdcd"),
		// 				MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/migrationServices/testMigrationService"),
		// 				MigrationStatus: to.Ptr("InProgress"),
		// 				ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
		// 				Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName"),
		// 				StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
		// 				SourceMongoConnection: &armdatamigration.MongoConnectionInformation{
		// 					Host: to.Ptr("abc.mongodb.com"),
		// 					Port: to.Ptr[int32](88),
		// 				},
		// 				TargetMongoConnection: &armdatamigration.MongoConnectionInformation{
		// 					Host: to.Ptr("xyz.mongocluster.cosmos.azure.com"),
		// 					Port: to.Ptr[int32](10255),
		// 				},
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("migrationRequest2"),
		// 			Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
		// 			ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName/providers/Microsoft.DataMigration/databaseMigrations/migrationRequest2"),
		// 			Properties: &armdatamigration.DatabaseMigrationPropertiesCosmosDbMongo{
		// 				EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:01:00.000Z"); return t}()),
		// 				Kind: to.Ptr(armdatamigration.ResourceTypeMongoToCosmosDbMongo),
		// 				MigrationFailureError: &armdatamigration.ErrorInfo{
		// 					Code: to.Ptr("400"),
		// 					Message: to.Ptr("Source or Target database connectivity could not be validated."),
		// 				},
		// 				MigrationOperationID: to.Ptr("858ba109-5ab7-4fa1-8aea-bea487cacdcd"),
		// 				MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/migrationServices/testMigrationService"),
		// 				MigrationStatus: to.Ptr("Failed"),
		// 				ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
		// 				Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName"),
		// 				StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
		// 				SourceMongoConnection: &armdatamigration.MongoConnectionInformation{
		// 					Host: to.Ptr("abc.mongodb.com"),
		// 					Port: to.Ptr[int32](88),
		// 				},
		// 				TargetMongoConnection: &armdatamigration.MongoConnectionInformation{
		// 					Host: to.Ptr("xyz.mongocluster.cosmos.azure.com"),
		// 					Port: to.Ptr[int32](10255),
		// 				},
		// 			},
		// 	}},
		// }
	}
}
Example (GetMongoToCosmosDbMongoRuDatabaseMigrationWithoutTheExpandParameter)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CosmosDbMongoListByScopeDatabaseMigration.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewDatabaseMigrationsMongoToCosmosDbRUMongoClient().NewGetForScopePager("testrg", "targetCosmosDbClusterName", 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.DatabaseMigrationCosmosDbMongoListResult = armdatamigration.DatabaseMigrationCosmosDbMongoListResult{
		// 	Value: []*armdatamigration.DatabaseMigrationCosmosDbMongo{
		// 		{
		// 			Name: to.Ptr("migrationRequest1"),
		// 			Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
		// 			ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName/providers/Microsoft.DataMigration/databaseMigrations/migrationRequest1"),
		// 			Properties: &armdatamigration.DatabaseMigrationPropertiesCosmosDbMongo{
		// 				Kind: to.Ptr(armdatamigration.ResourceTypeMongoToCosmosDbMongo),
		// 				MigrationOperationID: to.Ptr("858ba109-5ab7-4fa1-8aea-bea487cacdcd"),
		// 				MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/migrationServices/testMigrationService"),
		// 				MigrationStatus: to.Ptr("InProgress"),
		// 				ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
		// 				Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName"),
		// 				StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
		// 				SourceMongoConnection: &armdatamigration.MongoConnectionInformation{
		// 					Host: to.Ptr("abc.mongodb.com"),
		// 					Port: to.Ptr[int32](88),
		// 				},
		// 				TargetMongoConnection: &armdatamigration.MongoConnectionInformation{
		// 					Host: to.Ptr("xyz.mongocluster.cosmos.azure.com"),
		// 					Port: to.Ptr[int32](10255),
		// 				},
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("migrationRequest2"),
		// 			Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
		// 			ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName/providers/Microsoft.DataMigration/databaseMigrations/migrationRequest2"),
		// 			Properties: &armdatamigration.DatabaseMigrationPropertiesCosmosDbMongo{
		// 				EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:01:00.000Z"); return t}()),
		// 				Kind: to.Ptr(armdatamigration.ResourceTypeMongoToCosmosDbMongo),
		// 				MigrationFailureError: &armdatamigration.ErrorInfo{
		// 					Code: to.Ptr("400"),
		// 					Message: to.Ptr("Source or Target database connectivity could not be validated."),
		// 				},
		// 				MigrationOperationID: to.Ptr("858ba109-5ab7-4fa1-8aea-bea487cacdcd"),
		// 				MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/migrationServices/testMigrationService"),
		// 				MigrationStatus: to.Ptr("Failed"),
		// 				ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
		// 				Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName"),
		// 				StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
		// 				SourceMongoConnection: &armdatamigration.MongoConnectionInformation{
		// 					Host: to.Ptr("abc.mongodb.com"),
		// 					Port: to.Ptr[int32](88),
		// 				},
		// 				TargetMongoConnection: &armdatamigration.MongoConnectionInformation{
		// 					Host: to.Ptr("xyz.mongocluster.cosmos.azure.com"),
		// 					Port: to.Ptr[int32](10255),
		// 				},
		// 			},
		// 	}},
		// }
	}
}

type DatabaseMigrationsMongoToCosmosDbRUMongoClientBeginCreateOptions

type DatabaseMigrationsMongoToCosmosDbRUMongoClientBeginCreateOptions struct {
	// Resumes the long-running operation from the provided token.
	ResumeToken string
}

DatabaseMigrationsMongoToCosmosDbRUMongoClientBeginCreateOptions contains the optional parameters for the DatabaseMigrationsMongoToCosmosDbRUMongoClient.BeginCreate method.

type DatabaseMigrationsMongoToCosmosDbRUMongoClientBeginDeleteOptions

type DatabaseMigrationsMongoToCosmosDbRUMongoClientBeginDeleteOptions struct {
	// Optional force delete boolean. If this is provided as true, migration will be deleted even if active.
	Force *bool

	// Resumes the long-running operation from the provided token.
	ResumeToken string
}

DatabaseMigrationsMongoToCosmosDbRUMongoClientBeginDeleteOptions contains the optional parameters for the DatabaseMigrationsMongoToCosmosDbRUMongoClient.BeginDelete method.

type DatabaseMigrationsMongoToCosmosDbRUMongoClientCreateResponse

type DatabaseMigrationsMongoToCosmosDbRUMongoClientCreateResponse struct {
	// Database Migration Resource for Mongo to CosmosDb.
	DatabaseMigrationCosmosDbMongo
}

DatabaseMigrationsMongoToCosmosDbRUMongoClientCreateResponse contains the response from method DatabaseMigrationsMongoToCosmosDbRUMongoClient.BeginCreate.

type DatabaseMigrationsMongoToCosmosDbRUMongoClientDeleteResponse

type DatabaseMigrationsMongoToCosmosDbRUMongoClientDeleteResponse struct {
}

DatabaseMigrationsMongoToCosmosDbRUMongoClientDeleteResponse contains the response from method DatabaseMigrationsMongoToCosmosDbRUMongoClient.BeginDelete.

type DatabaseMigrationsMongoToCosmosDbRUMongoClientGetForScopeOptions

type DatabaseMigrationsMongoToCosmosDbRUMongoClientGetForScopeOptions struct {
}

DatabaseMigrationsMongoToCosmosDbRUMongoClientGetForScopeOptions contains the optional parameters for the DatabaseMigrationsMongoToCosmosDbRUMongoClient.NewGetForScopePager method.

type DatabaseMigrationsMongoToCosmosDbRUMongoClientGetForScopeResponse

type DatabaseMigrationsMongoToCosmosDbRUMongoClientGetForScopeResponse struct {
	// A list of Database Migrations.
	DatabaseMigrationCosmosDbMongoListResult
}

DatabaseMigrationsMongoToCosmosDbRUMongoClientGetForScopeResponse contains the response from method DatabaseMigrationsMongoToCosmosDbRUMongoClient.NewGetForScopePager.

type DatabaseMigrationsMongoToCosmosDbRUMongoClientGetOptions

type DatabaseMigrationsMongoToCosmosDbRUMongoClientGetOptions struct {
}

DatabaseMigrationsMongoToCosmosDbRUMongoClientGetOptions contains the optional parameters for the DatabaseMigrationsMongoToCosmosDbRUMongoClient.Get method.

type DatabaseMigrationsMongoToCosmosDbRUMongoClientGetResponse

type DatabaseMigrationsMongoToCosmosDbRUMongoClientGetResponse struct {
	// Database Migration Resource for Mongo to CosmosDb.
	DatabaseMigrationCosmosDbMongo
}

DatabaseMigrationsMongoToCosmosDbRUMongoClientGetResponse contains the response from method DatabaseMigrationsMongoToCosmosDbRUMongoClient.Get.

type DatabaseMigrationsMongoToCosmosDbvCoreMongoClient

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

DatabaseMigrationsMongoToCosmosDbvCoreMongoClient contains the methods for the DatabaseMigrationsMongoToCosmosDbvCoreMongo group. Don't use this type directly, use NewDatabaseMigrationsMongoToCosmosDbvCoreMongoClient() instead.

func NewDatabaseMigrationsMongoToCosmosDbvCoreMongoClient

func NewDatabaseMigrationsMongoToCosmosDbvCoreMongoClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DatabaseMigrationsMongoToCosmosDbvCoreMongoClient, error)

NewDatabaseMigrationsMongoToCosmosDbvCoreMongoClient creates a new instance of DatabaseMigrationsMongoToCosmosDbvCoreMongoClient with the specified values.

  • subscriptionID - Subscription ID that identifies an Azure subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*DatabaseMigrationsMongoToCosmosDbvCoreMongoClient) BeginCreate

BeginCreate - Create or Update Database Migration resource. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • targetResourceName - The name of the target resource/account.
  • migrationName - Name of the migration.
  • parameters - Details of CosmosDB for Mongo API Migration resource.
  • options - DatabaseMigrationsMongoToCosmosDbvCoreMongoClientBeginCreateOptions contains the optional parameters for the DatabaseMigrationsMongoToCosmosDbvCoreMongoClient.BeginCreate method.
Example (CreateMongoToCosmosDbMongoVCoreDatabaseMigrationResourceWithMaximumParameters)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CosmosDbMongoCreateOrUpdateDatabaseMigrationMAX.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDatabaseMigrationsMongoToCosmosDbvCoreMongoClient().BeginCreate(ctx, "testrg", "targetCosmosDbClusterName", "migrationRequest", armdatamigration.DatabaseMigrationCosmosDbMongo{
		Properties: &armdatamigration.DatabaseMigrationPropertiesCosmosDbMongo{
			Kind:             to.Ptr(armdatamigration.ResourceTypeMongoToCosmosDbMongo),
			MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/MigrationServices/testMigrationService"),
			Scope:            to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName"),
			CollectionList: []*armdatamigration.MongoMigrationCollection{
				{
					SourceCollection: to.Ptr("sourceCol1"),
					SourceDatabase:   to.Ptr("sourceDb1"),
					TargetCollection: to.Ptr("targetCol1"),
					TargetDatabase:   to.Ptr("targetDb1"),
				},
				{
					SourceCollection: to.Ptr("sourceCol2"),
					SourceDatabase:   to.Ptr("sourceDb2"),
					TargetCollection: to.Ptr("sourceCol2"),
					TargetDatabase:   to.Ptr("sourceDb2"),
				}},
			SourceMongoConnection: &armdatamigration.MongoConnectionInformation{
				Host:     to.Ptr("abc.mongodb.com"),
				Password: to.Ptr("placeholder"),
				Port:     to.Ptr[int32](88),
				UseSSL:   to.Ptr(true),
				UserName: to.Ptr("abc"),
			},
			TargetMongoConnection: &armdatamigration.MongoConnectionInformation{
				Host:     to.Ptr("xyz.mongocluster.cosmos.azure.com"),
				Password: to.Ptr("placeholder"),
				Port:     to.Ptr[int32](10255),
				UseSSL:   to.Ptr(true),
				UserName: to.Ptr("def"),
			},
		},
	}, 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.DatabaseMigrationCosmosDbMongo = armdatamigration.DatabaseMigrationCosmosDbMongo{
	// 	Name: to.Ptr("migrationRequest"),
	// 	Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName/providers/Microsoft.DataMigration/databaseMigrations/migrationRequest"),
	// 	Properties: &armdatamigration.DatabaseMigrationPropertiesCosmosDbMongo{
	// 		Kind: to.Ptr(armdatamigration.ResourceTypeMongoToCosmosDbMongo),
	// 		MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/migrationServices/testMigrationService"),
	// 		ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
	// 		Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName"),
	// 		CollectionList: []*armdatamigration.MongoMigrationCollection{
	// 			{
	// 				SourceCollection: to.Ptr("sourceCol1"),
	// 				SourceDatabase: to.Ptr("sourceDb1"),
	// 				TargetCollection: to.Ptr("targetCol1"),
	// 				TargetDatabase: to.Ptr("targetDb1"),
	// 			},
	// 			{
	// 				SourceCollection: to.Ptr("sourceCol2"),
	// 				SourceDatabase: to.Ptr("sourceDb2"),
	// 				TargetCollection: to.Ptr("sourceCol2"),
	// 				TargetDatabase: to.Ptr("sourceDb2"),
	// 		}},
	// 		SourceMongoConnection: &armdatamigration.MongoConnectionInformation{
	// 			Host: to.Ptr("abc.mongodb.com"),
	// 			Port: to.Ptr[int32](88),
	// 		},
	// 		TargetMongoConnection: &armdatamigration.MongoConnectionInformation{
	// 			Host: to.Ptr("xyz.mongocluster.cosmos.azure.com"),
	// 			Port: to.Ptr[int32](10255),
	// 		},
	// 	},
	// }
}
Example (CreateMongoToCosmosDbMongoVCoreDatabaseMigrationResourceWithMinimumParameters)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CosmosDbMongoCreateOrUpdateDatabaseMigrationMIN.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDatabaseMigrationsMongoToCosmosDbvCoreMongoClient().BeginCreate(ctx, "testrg", "targetCosmosDbClusterName", "migrationRequest", armdatamigration.DatabaseMigrationCosmosDbMongo{
		Properties: &armdatamigration.DatabaseMigrationPropertiesCosmosDbMongo{
			Kind:             to.Ptr(armdatamigration.ResourceTypeMongoToCosmosDbMongo),
			MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/MigrationServices/testMigrationService"),
			Scope:            to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName"),
			CollectionList: []*armdatamigration.MongoMigrationCollection{
				{
					SourceCollection: to.Ptr("sourceCol1"),
					SourceDatabase:   to.Ptr("sourceDb1"),
					TargetCollection: to.Ptr("targetCol1"),
					TargetDatabase:   to.Ptr("targetDb1"),
				},
				{
					SourceCollection: to.Ptr("sourceCol2"),
					SourceDatabase:   to.Ptr("sourceDb2"),
				}},
			SourceMongoConnection: &armdatamigration.MongoConnectionInformation{
				Host:     to.Ptr("abc.mongodb.com"),
				Password: to.Ptr("placeholder"),
				Port:     to.Ptr[int32](88),
				UseSSL:   to.Ptr(true),
				UserName: to.Ptr("abc"),
			},
			TargetMongoConnection: &armdatamigration.MongoConnectionInformation{
				ConnectionString: to.Ptr("placeholder"),
			},
		},
	}, 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.DatabaseMigrationCosmosDbMongo = armdatamigration.DatabaseMigrationCosmosDbMongo{
	// 	Name: to.Ptr("migrationRequest"),
	// 	Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName/providers/Microsoft.DataMigration/databaseMigrations/migrationRequest"),
	// 	Properties: &armdatamigration.DatabaseMigrationPropertiesCosmosDbMongo{
	// 		Kind: to.Ptr(armdatamigration.ResourceTypeMongoToCosmosDbMongo),
	// 		MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/migrationServices/testMigrationService"),
	// 		ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
	// 		Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName"),
	// 		CollectionList: []*armdatamigration.MongoMigrationCollection{
	// 			{
	// 				SourceCollection: to.Ptr("sourceCol1"),
	// 				SourceDatabase: to.Ptr("sourceDb1"),
	// 				TargetCollection: to.Ptr("targetCol1"),
	// 				TargetDatabase: to.Ptr("targetDb1"),
	// 			},
	// 			{
	// 				SourceCollection: to.Ptr("sourceCol2"),
	// 				SourceDatabase: to.Ptr("sourceDb2"),
	// 				TargetCollection: to.Ptr("sourceCol2"),
	// 				TargetDatabase: to.Ptr("sourceDb2"),
	// 		}},
	// 		SourceMongoConnection: &armdatamigration.MongoConnectionInformation{
	// 			Host: to.Ptr("abc.mongodb.com"),
	// 			Port: to.Ptr[int32](88),
	// 		},
	// 		TargetMongoConnection: &armdatamigration.MongoConnectionInformation{
	// 			Host: to.Ptr("xyz.mongo.cosmos.azure.com"),
	// 			Port: to.Ptr[int32](10255),
	// 		},
	// 	},
	// }
}

func (*DatabaseMigrationsMongoToCosmosDbvCoreMongoClient) BeginDelete

BeginDelete - Delete Database Migration resource. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • targetResourceName - The name of the target resource/account.
  • migrationName - Name of the migration.
  • options - DatabaseMigrationsMongoToCosmosDbvCoreMongoClientBeginDeleteOptions contains the optional parameters for the DatabaseMigrationsMongoToCosmosDbvCoreMongoClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CosmosDbMongoDeleteDatabaseMigration.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDatabaseMigrationsMongoToCosmosDbvCoreMongoClient().BeginDelete(ctx, "testrg", "targetCosmosDbClusterName", "migrationRequest", &armdatamigration.DatabaseMigrationsMongoToCosmosDbvCoreMongoClientBeginDeleteOptions{Force: 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)
	}
}

func (*DatabaseMigrationsMongoToCosmosDbvCoreMongoClient) Get

Get - Get Database Migration resource. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • targetResourceName - The name of the target resource/account.
  • migrationName - Name of the migration.
  • options - DatabaseMigrationsMongoToCosmosDbvCoreMongoClientGetOptions contains the optional parameters for the DatabaseMigrationsMongoToCosmosDbvCoreMongoClient.Get method.
Example (GetMongoToCosmosDbMongoVCoreDatabaseMigrationWithTheExpandParameter)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CosmosDbMongoGetDatabaseMigrationExpanded.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewDatabaseMigrationsMongoToCosmosDbvCoreMongoClient().Get(ctx, "testrg", "targetCosmosDbClusterName", "migrationRequest", 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.DatabaseMigrationCosmosDbMongo = armdatamigration.DatabaseMigrationCosmosDbMongo{
	// 	Name: to.Ptr("migrationRequest"),
	// 	Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName/providers/Microsoft.DataMigration/databaseMigrations/migrationRequest"),
	// 	Properties: &armdatamigration.DatabaseMigrationPropertiesCosmosDbMongo{
	// 		EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T09:00:00.000Z"); return t}()),
	// 		Kind: to.Ptr(armdatamigration.ResourceTypeMongoToCosmosDbMongo),
	// 		MigrationOperationID: to.Ptr("858ba109-5ab7-4fa1-8aea-bea487cacdcd"),
	// 		MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/migrationServices/testMigrationService"),
	// 		MigrationStatus: to.Ptr("Succeeded"),
	// 		ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
	// 		Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName"),
	// 		StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		CollectionList: []*armdatamigration.MongoMigrationCollection{
	// 			{
	// 				MigrationProgressDetails: &armdatamigration.MongoMigrationProgressDetails{
	// 					DurationInSeconds: to.Ptr[int32](400),
	// 					MigrationStatus: to.Ptr(armdatamigration.MongoMigrationStatusCompleted),
	// 					ProcessedDocumentCount: to.Ptr[int64](25544),
	// 					SourceDocumentCount: to.Ptr[int64](25544),
	// 				},
	// 				SourceCollection: to.Ptr("sourceCol1"),
	// 				SourceDatabase: to.Ptr("sourceDb1"),
	// 				TargetCollection: to.Ptr("targetCol1"),
	// 				TargetDatabase: to.Ptr("targetDb1"),
	// 			},
	// 			{
	// 				MigrationProgressDetails: &armdatamigration.MongoMigrationProgressDetails{
	// 					DurationInSeconds: to.Ptr[int32](100),
	// 					MigrationStatus: to.Ptr(armdatamigration.MongoMigrationStatusCompleted),
	// 					ProcessedDocumentCount: to.Ptr[int64](255),
	// 					SourceDocumentCount: to.Ptr[int64](255),
	// 				},
	// 				SourceCollection: to.Ptr("sourceCol2"),
	// 				SourceDatabase: to.Ptr("sourceDb2"),
	// 				TargetCollection: to.Ptr("sourceCol2"),
	// 				TargetDatabase: to.Ptr("sourceDb2"),
	// 		}},
	// 		SourceMongoConnection: &armdatamigration.MongoConnectionInformation{
	// 			Host: to.Ptr("abc.mongodb.com"),
	// 			Port: to.Ptr[int32](88),
	// 		},
	// 		TargetMongoConnection: &armdatamigration.MongoConnectionInformation{
	// 			Host: to.Ptr("xyz.mongocluster.cosmos.azure.com"),
	// 			Port: to.Ptr[int32](10255),
	// 		},
	// 	},
	// }
}
Example (GetMongoToCosmosDbMongoVCoreDatabaseMigrationWithoutTheExpandParameter)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CosmosDbMongoGetDatabaseMigration.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewDatabaseMigrationsMongoToCosmosDbvCoreMongoClient().Get(ctx, "testrg", "targetCosmosDbClusterName", "migrationRequest", 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.DatabaseMigrationCosmosDbMongo = armdatamigration.DatabaseMigrationCosmosDbMongo{
	// 	Name: to.Ptr("migrationRequest"),
	// 	Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName/providers/Microsoft.DataMigration/databaseMigrations/migrationRequest"),
	// 	Properties: &armdatamigration.DatabaseMigrationPropertiesCosmosDbMongo{
	// 		Kind: to.Ptr(armdatamigration.ResourceTypeMongoToCosmosDbMongo),
	// 		MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/migrationServices/testMigrationService"),
	// 		MigrationStatus: to.Ptr("Creating"),
	// 		ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
	// 		Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName"),
	// 		CollectionList: []*armdatamigration.MongoMigrationCollection{
	// 			{
	// 				SourceCollection: to.Ptr("sourceCol1"),
	// 				SourceDatabase: to.Ptr("sourceDb1"),
	// 				TargetCollection: to.Ptr("targetCol1"),
	// 				TargetDatabase: to.Ptr("targetDb1"),
	// 			},
	// 			{
	// 				SourceCollection: to.Ptr("sourceCol2"),
	// 				SourceDatabase: to.Ptr("sourceDb2"),
	// 				TargetCollection: to.Ptr("sourceCol2"),
	// 				TargetDatabase: to.Ptr("sourceDb2"),
	// 		}},
	// 		SourceMongoConnection: &armdatamigration.MongoConnectionInformation{
	// 			Host: to.Ptr("abc.mongodb.com"),
	// 			Port: to.Ptr[int32](88),
	// 		},
	// 		TargetMongoConnection: &armdatamigration.MongoConnectionInformation{
	// 			Host: to.Ptr("xyz.mongocluster.cosmos.azure.com"),
	// 			Port: to.Ptr[int32](10255),
	// 		},
	// 	},
	// }
}

func (*DatabaseMigrationsMongoToCosmosDbvCoreMongoClient) NewGetForScopePager

NewGetForScopePager - Get Database Migration resources for the scope.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • targetResourceName - The name of the target resource/account.
  • options - DatabaseMigrationsMongoToCosmosDbvCoreMongoClientGetForScopeOptions contains the optional parameters for the DatabaseMigrationsMongoToCosmosDbvCoreMongoClient.NewGetForScopePager method.
Example (GetMongoToCosmosDbMongoVCoreDatabaseMigrationWithTheExpandParameter)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CosmosDbMongoListByScopeDatabaseMigration.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewDatabaseMigrationsMongoToCosmosDbvCoreMongoClient().NewGetForScopePager("testrg", "targetCosmosDbClusterName", 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.DatabaseMigrationCosmosDbMongoListResult = armdatamigration.DatabaseMigrationCosmosDbMongoListResult{
		// 	Value: []*armdatamigration.DatabaseMigrationCosmosDbMongo{
		// 		{
		// 			Name: to.Ptr("migrationRequest1"),
		// 			Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
		// 			ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName/providers/Microsoft.DataMigration/databaseMigrations/migrationRequest1"),
		// 			Properties: &armdatamigration.DatabaseMigrationPropertiesCosmosDbMongo{
		// 				Kind: to.Ptr(armdatamigration.ResourceTypeMongoToCosmosDbMongo),
		// 				MigrationOperationID: to.Ptr("858ba109-5ab7-4fa1-8aea-bea487cacdcd"),
		// 				MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/migrationServices/testMigrationService"),
		// 				MigrationStatus: to.Ptr("InProgress"),
		// 				ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
		// 				Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName"),
		// 				StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
		// 				SourceMongoConnection: &armdatamigration.MongoConnectionInformation{
		// 					Host: to.Ptr("abc.mongodb.com"),
		// 					Port: to.Ptr[int32](88),
		// 				},
		// 				TargetMongoConnection: &armdatamigration.MongoConnectionInformation{
		// 					Host: to.Ptr("xyz.mongocluster.cosmos.azure.com"),
		// 					Port: to.Ptr[int32](10255),
		// 				},
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("migrationRequest2"),
		// 			Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
		// 			ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName/providers/Microsoft.DataMigration/databaseMigrations/migrationRequest2"),
		// 			Properties: &armdatamigration.DatabaseMigrationPropertiesCosmosDbMongo{
		// 				EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:01:00.000Z"); return t}()),
		// 				Kind: to.Ptr(armdatamigration.ResourceTypeMongoToCosmosDbMongo),
		// 				MigrationFailureError: &armdatamigration.ErrorInfo{
		// 					Code: to.Ptr("400"),
		// 					Message: to.Ptr("Source or Target database connectivity could not be validated."),
		// 				},
		// 				MigrationOperationID: to.Ptr("858ba109-5ab7-4fa1-8aea-bea487cacdcd"),
		// 				MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/migrationServices/testMigrationService"),
		// 				MigrationStatus: to.Ptr("Failed"),
		// 				ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
		// 				Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName"),
		// 				StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
		// 				SourceMongoConnection: &armdatamigration.MongoConnectionInformation{
		// 					Host: to.Ptr("abc.mongodb.com"),
		// 					Port: to.Ptr[int32](88),
		// 				},
		// 				TargetMongoConnection: &armdatamigration.MongoConnectionInformation{
		// 					Host: to.Ptr("xyz.mongocluster.cosmos.azure.com"),
		// 					Port: to.Ptr[int32](10255),
		// 				},
		// 			},
		// 	}},
		// }
	}
}
Example (GetMongoToCosmosDbMongoVCoreDatabaseMigrationWithoutTheExpandParameter)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CosmosDbMongoListByScopeDatabaseMigration.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewDatabaseMigrationsMongoToCosmosDbvCoreMongoClient().NewGetForScopePager("testrg", "targetCosmosDbClusterName", 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.DatabaseMigrationCosmosDbMongoListResult = armdatamigration.DatabaseMigrationCosmosDbMongoListResult{
		// 	Value: []*armdatamigration.DatabaseMigrationCosmosDbMongo{
		// 		{
		// 			Name: to.Ptr("migrationRequest1"),
		// 			Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
		// 			ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName/providers/Microsoft.DataMigration/databaseMigrations/migrationRequest1"),
		// 			Properties: &armdatamigration.DatabaseMigrationPropertiesCosmosDbMongo{
		// 				Kind: to.Ptr(armdatamigration.ResourceTypeMongoToCosmosDbMongo),
		// 				MigrationOperationID: to.Ptr("858ba109-5ab7-4fa1-8aea-bea487cacdcd"),
		// 				MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/migrationServices/testMigrationService"),
		// 				MigrationStatus: to.Ptr("InProgress"),
		// 				ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
		// 				Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName"),
		// 				StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
		// 				SourceMongoConnection: &armdatamigration.MongoConnectionInformation{
		// 					Host: to.Ptr("abc.mongodb.com"),
		// 					Port: to.Ptr[int32](88),
		// 				},
		// 				TargetMongoConnection: &armdatamigration.MongoConnectionInformation{
		// 					Host: to.Ptr("xyz.mongocluster.cosmos.azure.com"),
		// 					Port: to.Ptr[int32](10255),
		// 				},
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("migrationRequest2"),
		// 			Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
		// 			ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName/providers/Microsoft.DataMigration/databaseMigrations/migrationRequest2"),
		// 			Properties: &armdatamigration.DatabaseMigrationPropertiesCosmosDbMongo{
		// 				EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:01:00.000Z"); return t}()),
		// 				Kind: to.Ptr(armdatamigration.ResourceTypeMongoToCosmosDbMongo),
		// 				MigrationFailureError: &armdatamigration.ErrorInfo{
		// 					Code: to.Ptr("400"),
		// 					Message: to.Ptr("Source or Target database connectivity could not be validated."),
		// 				},
		// 				MigrationOperationID: to.Ptr("858ba109-5ab7-4fa1-8aea-bea487cacdcd"),
		// 				MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/migrationServices/testMigrationService"),
		// 				MigrationStatus: to.Ptr("Failed"),
		// 				ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
		// 				Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName"),
		// 				StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
		// 				SourceMongoConnection: &armdatamigration.MongoConnectionInformation{
		// 					Host: to.Ptr("abc.mongodb.com"),
		// 					Port: to.Ptr[int32](88),
		// 				},
		// 				TargetMongoConnection: &armdatamigration.MongoConnectionInformation{
		// 					Host: to.Ptr("xyz.mongocluster.cosmos.azure.com"),
		// 					Port: to.Ptr[int32](10255),
		// 				},
		// 			},
		// 	}},
		// }
	}
}

type DatabaseMigrationsMongoToCosmosDbvCoreMongoClientBeginCreateOptions

type DatabaseMigrationsMongoToCosmosDbvCoreMongoClientBeginCreateOptions struct {
	// Resumes the long-running operation from the provided token.
	ResumeToken string
}

DatabaseMigrationsMongoToCosmosDbvCoreMongoClientBeginCreateOptions contains the optional parameters for the DatabaseMigrationsMongoToCosmosDbvCoreMongoClient.BeginCreate method.

type DatabaseMigrationsMongoToCosmosDbvCoreMongoClientBeginDeleteOptions

type DatabaseMigrationsMongoToCosmosDbvCoreMongoClientBeginDeleteOptions struct {
	// Optional force delete boolean. If this is provided as true, migration will be deleted even if active.
	Force *bool

	// Resumes the long-running operation from the provided token.
	ResumeToken string
}

DatabaseMigrationsMongoToCosmosDbvCoreMongoClientBeginDeleteOptions contains the optional parameters for the DatabaseMigrationsMongoToCosmosDbvCoreMongoClient.BeginDelete method.

type DatabaseMigrationsMongoToCosmosDbvCoreMongoClientCreateResponse

type DatabaseMigrationsMongoToCosmosDbvCoreMongoClientCreateResponse struct {
	// Database Migration Resource for Mongo to CosmosDb.
	DatabaseMigrationCosmosDbMongo
}

DatabaseMigrationsMongoToCosmosDbvCoreMongoClientCreateResponse contains the response from method DatabaseMigrationsMongoToCosmosDbvCoreMongoClient.BeginCreate.

type DatabaseMigrationsMongoToCosmosDbvCoreMongoClientDeleteResponse

type DatabaseMigrationsMongoToCosmosDbvCoreMongoClientDeleteResponse struct {
}

DatabaseMigrationsMongoToCosmosDbvCoreMongoClientDeleteResponse contains the response from method DatabaseMigrationsMongoToCosmosDbvCoreMongoClient.BeginDelete.

type DatabaseMigrationsMongoToCosmosDbvCoreMongoClientGetForScopeOptions

type DatabaseMigrationsMongoToCosmosDbvCoreMongoClientGetForScopeOptions struct {
}

DatabaseMigrationsMongoToCosmosDbvCoreMongoClientGetForScopeOptions contains the optional parameters for the DatabaseMigrationsMongoToCosmosDbvCoreMongoClient.NewGetForScopePager method.

type DatabaseMigrationsMongoToCosmosDbvCoreMongoClientGetForScopeResponse

type DatabaseMigrationsMongoToCosmosDbvCoreMongoClientGetForScopeResponse struct {
	// A list of Database Migrations.
	DatabaseMigrationCosmosDbMongoListResult
}

DatabaseMigrationsMongoToCosmosDbvCoreMongoClientGetForScopeResponse contains the response from method DatabaseMigrationsMongoToCosmosDbvCoreMongoClient.NewGetForScopePager.

type DatabaseMigrationsMongoToCosmosDbvCoreMongoClientGetOptions

type DatabaseMigrationsMongoToCosmosDbvCoreMongoClientGetOptions struct {
}

DatabaseMigrationsMongoToCosmosDbvCoreMongoClientGetOptions contains the optional parameters for the DatabaseMigrationsMongoToCosmosDbvCoreMongoClient.Get method.

type DatabaseMigrationsMongoToCosmosDbvCoreMongoClientGetResponse

type DatabaseMigrationsMongoToCosmosDbvCoreMongoClientGetResponse struct {
	// Database Migration Resource for Mongo to CosmosDb.
	DatabaseMigrationCosmosDbMongo
}

DatabaseMigrationsMongoToCosmosDbvCoreMongoClientGetResponse contains the response from method DatabaseMigrationsMongoToCosmosDbvCoreMongoClient.Get.

type DatabaseMigrationsSQLDbClient

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

DatabaseMigrationsSQLDbClient contains the methods for the DatabaseMigrationsSQLDb group. Don't use this type directly, use NewDatabaseMigrationsSQLDbClient() instead.

func NewDatabaseMigrationsSQLDbClient

func NewDatabaseMigrationsSQLDbClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DatabaseMigrationsSQLDbClient, error)

NewDatabaseMigrationsSQLDbClient creates a new instance of DatabaseMigrationsSQLDbClient with the specified values.

  • subscriptionID - Subscription ID that identifies an Azure subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*DatabaseMigrationsSQLDbClient) BeginCancel

BeginCancel - Stop on going migration for the database. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • targetDbName - The name of the target database.
  • parameters - Required migration operation ID for which cancel will be initiated.
  • options - DatabaseMigrationsSQLDbClientBeginCancelOptions contains the optional parameters for the DatabaseMigrationsSQLDbClient.BeginCancel method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbCancelDatabaseMigration.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDatabaseMigrationsSQLDbClient().BeginCancel(ctx, "testrg", "sqldbinstance", "db1", armdatamigration.MigrationOperationInput{
		MigrationOperationID: to.Ptr("9a90bb84-e70f-46f7-b0ae-1aef5b3b9f07"),
	}, 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)
	}
}

func (*DatabaseMigrationsSQLDbClient) BeginCreateOrUpdate

BeginCreateOrUpdate - Create or Update Database Migration resource. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • targetDbName - The name of the target database.
  • parameters - Details of Sql Db migration resource.
  • options - DatabaseMigrationsSQLDbClientBeginCreateOrUpdateOptions contains the optional parameters for the DatabaseMigrationsSQLDbClient.BeginCreateOrUpdate method.
Example (CreateOrUpdateDatabaseMigrationResourceWithMaximumParameters)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbCreateOrUpdateDatabaseMigrationMAX.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDatabaseMigrationsSQLDbClient().BeginCreateOrUpdate(ctx, "testrg", "sqldbinstance", "db1", armdatamigration.DatabaseMigrationSQLDb{
		Properties: &armdatamigration.DatabaseMigrationPropertiesSQLDb{
			Kind:               to.Ptr(armdatamigration.ResourceTypeSQLDb),
			MigrationService:   to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent"),
			Scope:              to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/servers/sqldbinstance"),
			SourceDatabaseName: to.Ptr("aaa"),
			SourceSQLConnection: &armdatamigration.SQLConnectionInformation{
				Authentication:         to.Ptr("WindowsAuthentication"),
				DataSource:             to.Ptr("aaa"),
				EncryptConnection:      to.Ptr(true),
				Password:               to.Ptr("placeholder"),
				TrustServerCertificate: to.Ptr(true),
				UserName:               to.Ptr("bbb"),
			},
			TableList: []*string{
				to.Ptr("[Schema1].[TableName1]"),
				to.Ptr("[Schema2].[TableName2]")},
			TargetSQLConnection: &armdatamigration.SQLConnectionInformation{
				Authentication:         to.Ptr("SqlAuthentication"),
				DataSource:             to.Ptr("sqldbinstance"),
				EncryptConnection:      to.Ptr(true),
				Password:               to.Ptr("placeholder"),
				TrustServerCertificate: to.Ptr(true),
				UserName:               to.Ptr("bbb"),
			},
		},
	}, 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.DatabaseMigrationSQLDb = armdatamigration.DatabaseMigrationSQLDb{
	// 	Name: to.Ptr("db1"),
	// 	Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/servers/sqldbinstance/providers/Microsoft.DataMigration/databaseMigrations/db1"),
	// 	Properties: &armdatamigration.DatabaseMigrationPropertiesSQLDb{
	// 		EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		Kind: to.Ptr(armdatamigration.ResourceTypeSQLDb),
	// 		MigrationOperationID: to.Ptr("858ba109-5ab7-4fa1-8aea-bea487cacdcd"),
	// 		MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent"),
	// 		MigrationStatus: to.Ptr("InProgress"),
	// 		ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
	// 		Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/servers/sqldbinstance"),
	// 		StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		SourceDatabaseName: to.Ptr("sourcename"),
	// 		SourceServerName: to.Ptr("sourceserver"),
	// 		OfflineConfiguration: &armdatamigration.SQLDbOfflineConfiguration{
	// 			Offline: to.Ptr(true),
	// 		},
	// 		TableList: []*string{
	// 			to.Ptr("[Schema1].[TableName1]"),
	// 			to.Ptr("[Schema2].[TableName2]")},
	// 		},
	// 	}
}
Example (CreateOrUpdateDatabaseMigrationResourceWithMinimumParameters)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbCreateOrUpdateDatabaseMigrationMIN.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDatabaseMigrationsSQLDbClient().BeginCreateOrUpdate(ctx, "testrg", "sqldbinstance", "db1", armdatamigration.DatabaseMigrationSQLDb{
		Properties: &armdatamigration.DatabaseMigrationPropertiesSQLDb{
			Kind:               to.Ptr(armdatamigration.ResourceTypeSQLDb),
			MigrationService:   to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent"),
			Scope:              to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/servers/sqldbinstance"),
			SourceDatabaseName: to.Ptr("aaa"),
			SourceSQLConnection: &armdatamigration.SQLConnectionInformation{
				Authentication:         to.Ptr("WindowsAuthentication"),
				DataSource:             to.Ptr("aaa"),
				EncryptConnection:      to.Ptr(true),
				Password:               to.Ptr("placeholder"),
				TrustServerCertificate: to.Ptr(true),
				UserName:               to.Ptr("bbb"),
			},
			TargetSQLConnection: &armdatamigration.SQLConnectionInformation{
				Authentication:         to.Ptr("SqlAuthentication"),
				DataSource:             to.Ptr("sqldbinstance"),
				EncryptConnection:      to.Ptr(true),
				Password:               to.Ptr("placeholder"),
				TrustServerCertificate: to.Ptr(true),
				UserName:               to.Ptr("bbb"),
			},
		},
	}, 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.DatabaseMigrationSQLDb = armdatamigration.DatabaseMigrationSQLDb{
	// 	Name: to.Ptr("db1"),
	// 	Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/servers/sqldbinstance/providers/Microsoft.DataMigration/databaseMigrations/db1"),
	// 	Properties: &armdatamigration.DatabaseMigrationPropertiesSQLDb{
	// 		EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		Kind: to.Ptr(armdatamigration.ResourceTypeSQLDb),
	// 		MigrationOperationID: to.Ptr("858ba109-5ab7-4fa1-8aea-bea487cacdcd"),
	// 		MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent"),
	// 		MigrationStatus: to.Ptr("InProgress"),
	// 		ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
	// 		Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/servers/sqldbinstance"),
	// 		StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		SourceDatabaseName: to.Ptr("sourcename"),
	// 		SourceServerName: to.Ptr("sourceserver"),
	// 		OfflineConfiguration: &armdatamigration.SQLDbOfflineConfiguration{
	// 			Offline: to.Ptr(true),
	// 		},
	// 	},
	// }
}

func (*DatabaseMigrationsSQLDbClient) BeginDelete

BeginDelete - Delete Database Migration resource. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • targetDbName - The name of the target database.
  • options - DatabaseMigrationsSQLDbClientBeginDeleteOptions contains the optional parameters for the DatabaseMigrationsSQLDbClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbDeleteDatabaseMigration.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDatabaseMigrationsSQLDbClient().BeginDelete(ctx, "testrg", "sqldbinstance", "db1", &armdatamigration.DatabaseMigrationsSQLDbClientBeginDeleteOptions{Force: 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)
	}
}

func (*DatabaseMigrationsSQLDbClient) BeginRetry

func (client *DatabaseMigrationsSQLDbClient) BeginRetry(ctx context.Context, resourceGroupName string, sqlDbInstanceName string, targetDbName string, migrationOperationInput MigrationOperationInput, options *DatabaseMigrationsSQLDbClientBeginRetryOptions) (*runtime.Poller[DatabaseMigrationsSQLDbClientRetryResponse], error)

BeginRetry - Retry on going migration for the database. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • targetDbName - The name of the target database.
  • migrationOperationInput - Required migration operation ID for which retry will be initiated.
  • options - DatabaseMigrationsSQLDbClientBeginRetryOptions contains the optional parameters for the DatabaseMigrationsSQLDbClient.BeginRetry method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbRetryDatabaseMigration.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDatabaseMigrationsSQLDbClient().BeginRetry(ctx, "testrg", "sqldbinstance", "db1", armdatamigration.MigrationOperationInput{
		MigrationOperationID: to.Ptr("9a90bb84-e70f-46f7-b0ae-1aef5b3b9f07"),
	}, 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)
	}
}

func (*DatabaseMigrationsSQLDbClient) Get

func (client *DatabaseMigrationsSQLDbClient) Get(ctx context.Context, resourceGroupName string, sqlDbInstanceName string, targetDbName string, options *DatabaseMigrationsSQLDbClientGetOptions) (DatabaseMigrationsSQLDbClientGetResponse, error)

Get - Retrieve the Database Migration resource. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • targetDbName - The name of the target database.
  • options - DatabaseMigrationsSQLDbClientGetOptions contains the optional parameters for the DatabaseMigrationsSQLDbClient.Get method.
Example (GetSqlDbDatabaseMigrationWithTheExpandParameter)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbGetDatabaseMigrationExpanded.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewDatabaseMigrationsSQLDbClient().Get(ctx, "testrg", "sqldbinstance", "db1", &armdatamigration.DatabaseMigrationsSQLDbClientGetOptions{MigrationOperationID: nil,
		Expand: to.Ptr("MigrationStatusDetails"),
	})
	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.DatabaseMigrationSQLDb = armdatamigration.DatabaseMigrationSQLDb{
	// 	Name: to.Ptr("db1"),
	// 	Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/servers/sqldbinstance/providers/Microsoft.DataMigration/databaseMigrations/db1"),
	// 	Properties: &armdatamigration.DatabaseMigrationPropertiesSQLDb{
	// 		EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		Kind: to.Ptr(armdatamigration.ResourceTypeSQLDb),
	// 		MigrationOperationID: to.Ptr("858ba109-5ab7-4fa1-8aea-bea487cacdcd"),
	// 		MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent"),
	// 		MigrationStatus: to.Ptr("Succeeded"),
	// 		ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
	// 		Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/servers/sqldbinstance"),
	// 		StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		SourceDatabaseName: to.Ptr("sourcename"),
	// 		SourceServerName: to.Ptr("sourceserver"),
	// 		MigrationStatusDetails: &armdatamigration.SQLDbMigrationStatusDetails{
	// 			ListOfCopyProgressDetails: []*armdatamigration.CopyProgressDetails{
	// 				{
	// 					CopyDuration: to.Ptr[int32](90),
	// 					CopyStart: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-01-19T00:00:00.000Z"); return t}()),
	// 					CopyThroughput: to.Ptr[float64](100),
	// 					DataRead: to.Ptr[int64](100),
	// 					DataWritten: to.Ptr[int64](100),
	// 					ParallelCopyType: to.Ptr("None"),
	// 					RowsCopied: to.Ptr[int64](10),
	// 					RowsRead: to.Ptr[int64](10),
	// 					Status: to.Ptr("Succeeded"),
	// 					TableName: to.Ptr("Table.Name"),
	// 					UsedParallelCopies: to.Ptr[int32](1),
	// 				},
	// 				{
	// 					CopyDuration: to.Ptr[int32](0),
	// 					CopyStart: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-01-19T04:08:00.000Z"); return t}()),
	// 					CopyThroughput: to.Ptr[float64](0),
	// 					DataRead: to.Ptr[int64](100),
	// 					DataWritten: to.Ptr[int64](0),
	// 					ParallelCopyType: to.Ptr("DynamicRange"),
	// 					RowsCopied: to.Ptr[int64](0),
	// 					RowsRead: to.Ptr[int64](10),
	// 					Status: to.Ptr("InProgress"),
	// 					TableName: to.Ptr("Table2.Name"),
	// 					UsedParallelCopies: to.Ptr[int32](4),
	// 			}},
	// 			MigrationState: to.Ptr("MonitorMigration"),
	// 			SQLDataCopyErrors: []*string{
	// 				to.Ptr("")},
	// 			},
	// 			OfflineConfiguration: &armdatamigration.SQLDbOfflineConfiguration{
	// 				Offline: to.Ptr(true),
	// 			},
	// 		},
	// 	}
}
Example (GetSqlDbDatabaseMigrationWithoutTheExpandParameter)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbGetDatabaseMigration.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewDatabaseMigrationsSQLDbClient().Get(ctx, "testrg", "sqldbinstance", "db1", &armdatamigration.DatabaseMigrationsSQLDbClientGetOptions{MigrationOperationID: nil,
		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.DatabaseMigrationSQLDb = armdatamigration.DatabaseMigrationSQLDb{
	// 	Name: to.Ptr("db1"),
	// 	Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/servers/sqldbinstance/providers/Microsoft.DataMigration/databaseMigrations/db1"),
	// 	Properties: &armdatamigration.DatabaseMigrationPropertiesSQLDb{
	// 		EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		Kind: to.Ptr(armdatamigration.ResourceTypeSQLDb),
	// 		MigrationOperationID: to.Ptr("858ba109-5ab7-4fa1-8aea-bea487cacdcd"),
	// 		MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent"),
	// 		MigrationStatus: to.Ptr("Succeeded"),
	// 		ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
	// 		Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/servers/sqldbinstance"),
	// 		StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		SourceDatabaseName: to.Ptr("sourcename"),
	// 		SourceServerName: to.Ptr("sourceserver"),
	// 		OfflineConfiguration: &armdatamigration.SQLDbOfflineConfiguration{
	// 			Offline: to.Ptr(true),
	// 		},
	// 	},
	// }
}

type DatabaseMigrationsSQLDbClientBeginCancelOptions

type DatabaseMigrationsSQLDbClientBeginCancelOptions struct {
	// Resumes the long-running operation from the provided token.
	ResumeToken string
}

DatabaseMigrationsSQLDbClientBeginCancelOptions contains the optional parameters for the DatabaseMigrationsSQLDbClient.BeginCancel method.

type DatabaseMigrationsSQLDbClientBeginCreateOrUpdateOptions

type DatabaseMigrationsSQLDbClientBeginCreateOrUpdateOptions struct {
	// Resumes the long-running operation from the provided token.
	ResumeToken string
}

DatabaseMigrationsSQLDbClientBeginCreateOrUpdateOptions contains the optional parameters for the DatabaseMigrationsSQLDbClient.BeginCreateOrUpdate method.

type DatabaseMigrationsSQLDbClientBeginDeleteOptions

type DatabaseMigrationsSQLDbClientBeginDeleteOptions struct {
	// Optional force delete boolean. If this is provided as true, migration will be deleted even if active.
	Force *bool

	// Resumes the long-running operation from the provided token.
	ResumeToken string
}

DatabaseMigrationsSQLDbClientBeginDeleteOptions contains the optional parameters for the DatabaseMigrationsSQLDbClient.BeginDelete method.

type DatabaseMigrationsSQLDbClientBeginRetryOptions

type DatabaseMigrationsSQLDbClientBeginRetryOptions struct {
	// Resumes the long-running operation from the provided token.
	ResumeToken string
}

DatabaseMigrationsSQLDbClientBeginRetryOptions contains the optional parameters for the DatabaseMigrationsSQLDbClient.BeginRetry method.

type DatabaseMigrationsSQLDbClientCancelResponse

type DatabaseMigrationsSQLDbClientCancelResponse struct {
}

DatabaseMigrationsSQLDbClientCancelResponse contains the response from method DatabaseMigrationsSQLDbClient.BeginCancel.

type DatabaseMigrationsSQLDbClientCreateOrUpdateResponse

type DatabaseMigrationsSQLDbClientCreateOrUpdateResponse struct {
	// Database Migration Resource for SQL Database.
	DatabaseMigrationSQLDb
}

DatabaseMigrationsSQLDbClientCreateOrUpdateResponse contains the response from method DatabaseMigrationsSQLDbClient.BeginCreateOrUpdate.

type DatabaseMigrationsSQLDbClientDeleteResponse

type DatabaseMigrationsSQLDbClientDeleteResponse struct {
}

DatabaseMigrationsSQLDbClientDeleteResponse contains the response from method DatabaseMigrationsSQLDbClient.BeginDelete.

type DatabaseMigrationsSQLDbClientGetOptions

type DatabaseMigrationsSQLDbClientGetOptions struct {
	// Complete migration details be included in the response.
	Expand *string

	// Optional migration operation ID. If this is provided, then details of migration operation for that ID are retrieved. If
	// not provided (default), then details related to most recent or current operation
	// are retrieved.
	MigrationOperationID *string
}

DatabaseMigrationsSQLDbClientGetOptions contains the optional parameters for the DatabaseMigrationsSQLDbClient.Get method.

type DatabaseMigrationsSQLDbClientGetResponse

type DatabaseMigrationsSQLDbClientGetResponse struct {
	// Database Migration Resource for SQL Database.
	DatabaseMigrationSQLDb
}

DatabaseMigrationsSQLDbClientGetResponse contains the response from method DatabaseMigrationsSQLDbClient.Get.

type DatabaseMigrationsSQLDbClientRetryResponse

type DatabaseMigrationsSQLDbClientRetryResponse struct {
	// Database Migration Resource for SQL Database.
	DatabaseMigrationSQLDb
}

DatabaseMigrationsSQLDbClientRetryResponse contains the response from method DatabaseMigrationsSQLDbClient.BeginRetry.

type DatabaseMigrationsSQLMiClient

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

DatabaseMigrationsSQLMiClient contains the methods for the DatabaseMigrationsSQLMi group. Don't use this type directly, use NewDatabaseMigrationsSQLMiClient() instead.

func NewDatabaseMigrationsSQLMiClient

func NewDatabaseMigrationsSQLMiClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DatabaseMigrationsSQLMiClient, error)

NewDatabaseMigrationsSQLMiClient creates a new instance of DatabaseMigrationsSQLMiClient with the specified values.

  • subscriptionID - Subscription ID that identifies an Azure subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*DatabaseMigrationsSQLMiClient) BeginCancel

BeginCancel - Stop in-progress database migration to SQL Managed Instance. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • targetDbName - The name of the target database.
  • parameters - Required migration operation ID for which cancel will be initiated.
  • options - DatabaseMigrationsSQLMiClientBeginCancelOptions contains the optional parameters for the DatabaseMigrationsSQLMiClient.BeginCancel method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiCancelDatabaseMigration.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDatabaseMigrationsSQLMiClient().BeginCancel(ctx, "testrg", "managedInstance1", "db1", armdatamigration.MigrationOperationInput{
		MigrationOperationID: to.Ptr("4124fe90-d1b6-4b50-b4d9-46d02381f59a"),
	}, 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)
	}
}

func (*DatabaseMigrationsSQLMiClient) BeginCreateOrUpdate

BeginCreateOrUpdate - Create a new database migration to a given SQL Managed Instance. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • targetDbName - The name of the target database.
  • parameters - Details of SqlMigrationService resource.
  • options - DatabaseMigrationsSQLMiClientBeginCreateOrUpdateOptions contains the optional parameters for the DatabaseMigrationsSQLMiClient.BeginCreateOrUpdate method.
Example (CreateOrUpdateDatabaseMigrationResourceFromAzureBlobUsingManagedIdentity)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiCreateOrUpdateDatabaseMigrationBlobManagedIdentity.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDatabaseMigrationsSQLMiClient().BeginCreateOrUpdate(ctx, "testrg", "managedInstance1", "db1", armdatamigration.DatabaseMigrationSQLMi{
		Properties: &armdatamigration.DatabaseMigrationPropertiesSQLMi{
			Kind:               to.Ptr(armdatamigration.ResourceTypeSQLMi),
			MigrationService:   to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent"),
			Scope:              to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/instance"),
			SourceDatabaseName: to.Ptr("aaa"),
			BackupConfiguration: &armdatamigration.BackupConfiguration{
				SourceLocation: &armdatamigration.SourceLocation{
					AzureBlob: &armdatamigration.AzureBlob{
						AuthType:          to.Ptr(armdatamigration.AuthTypeManagedIdentity),
						BlobContainerName: to.Ptr("test"),
						Identity: &armdatamigration.ManagedServiceIdentity{
							Type: to.Ptr(armdatamigration.ManagedServiceIdentityTypeUserAssigned),
							UserAssignedIdentities: map[string]*armdatamigration.UserAssignedIdentity{
								"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity": {},
							},
						},
						StorageAccountResourceID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Storage/storageAccounts/teststorageaccount"),
					},
				},
			},
			OfflineConfiguration: &armdatamigration.OfflineConfiguration{
				LastBackupName: to.Ptr("last_backup_file_name"),
				Offline:        to.Ptr(true),
			},
		},
	}, 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.DatabaseMigrationSQLMi = armdatamigration.DatabaseMigrationSQLMi{
	// 	Name: to.Ptr("db1"),
	// 	Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/instance/providers/Microsoft.DataMigration/databaseMigrations/db1"),
	// 	Properties: &armdatamigration.DatabaseMigrationPropertiesSQLMi{
	// 		EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		Kind: to.Ptr(armdatamigration.ResourceTypeSQLMi),
	// 		MigrationOperationID: to.Ptr("858ba109-5ab7-4fa1-8aea-bea487cacdcd"),
	// 		MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent"),
	// 		MigrationStatus: to.Ptr("InProgress"),
	// 		ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
	// 		Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/instance"),
	// 		StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		SourceDatabaseName: to.Ptr("sourcename"),
	// 		SourceServerName: to.Ptr("sourceserver"),
	// 		BackupConfiguration: &armdatamigration.BackupConfiguration{
	// 			SourceLocation: &armdatamigration.SourceLocation{
	// 				FileStorageType: to.Ptr("AzureBlob"),
	// 			},
	// 		},
	// 		OfflineConfiguration: &armdatamigration.OfflineConfiguration{
	// 			LastBackupName: to.Ptr("last_backup_file_name"),
	// 			Offline: to.Ptr(true),
	// 		},
	// 	},
	// }
}
Example (CreateOrUpdateDatabaseMigrationResourceWithMaximumParameters)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiCreateOrUpdateDatabaseMigrationMAX.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDatabaseMigrationsSQLMiClient().BeginCreateOrUpdate(ctx, "testrg", "managedInstance1", "db1", armdatamigration.DatabaseMigrationSQLMi{
		Properties: &armdatamigration.DatabaseMigrationPropertiesSQLMi{
			Kind:               to.Ptr(armdatamigration.ResourceTypeSQLMi),
			MigrationService:   to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent"),
			Scope:              to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/instance"),
			SourceDatabaseName: to.Ptr("aaa"),
			SourceSQLConnection: &armdatamigration.SQLConnectionInformation{
				Authentication:         to.Ptr("WindowsAuthentication"),
				DataSource:             to.Ptr("aaa"),
				EncryptConnection:      to.Ptr(true),
				Password:               to.Ptr("placeholder"),
				TrustServerCertificate: to.Ptr(true),
				UserName:               to.Ptr("bbb"),
			},
			BackupConfiguration: &armdatamigration.BackupConfiguration{
				SourceLocation: &armdatamigration.SourceLocation{
					FileShare: &armdatamigration.SQLFileShare{
						Path:     to.Ptr("C:\\aaa\\bbb\\ccc"),
						Password: to.Ptr("placeholder"),
						Username: to.Ptr("name"),
					},
				},
				TargetLocation: &armdatamigration.TargetLocation{
					AccountKey:               to.Ptr("abcd"),
					StorageAccountResourceID: to.Ptr("account.database.windows.net"),
				},
			},
			OfflineConfiguration: &armdatamigration.OfflineConfiguration{
				LastBackupName: to.Ptr("last_backup_file_name"),
				Offline:        to.Ptr(true),
			},
		},
	}, 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.DatabaseMigrationSQLMi = armdatamigration.DatabaseMigrationSQLMi{
	// 	Name: to.Ptr("db1"),
	// 	Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/instance/providers/Microsoft.DataMigration/databaseMigrations/db1"),
	// 	Properties: &armdatamigration.DatabaseMigrationPropertiesSQLMi{
	// 		EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		Kind: to.Ptr(armdatamigration.ResourceTypeSQLMi),
	// 		MigrationOperationID: to.Ptr("858ba109-5ab7-4fa1-8aea-bea487cacdcd"),
	// 		MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent"),
	// 		MigrationStatus: to.Ptr("InProgress"),
	// 		ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
	// 		Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/instance"),
	// 		StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		SourceDatabaseName: to.Ptr("sourcename"),
	// 		SourceServerName: to.Ptr("sourceserver"),
	// 		BackupConfiguration: &armdatamigration.BackupConfiguration{
	// 			SourceLocation: &armdatamigration.SourceLocation{
	// 				FileStorageType: to.Ptr("FileShare"),
	// 			},
	// 		},
	// 		OfflineConfiguration: &armdatamigration.OfflineConfiguration{
	// 			LastBackupName: to.Ptr("last_backup_file_name"),
	// 			Offline: to.Ptr(true),
	// 		},
	// 	},
	// }
}
Example (CreateOrUpdateDatabaseMigrationResourceWithMinimumParameters)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiCreateOrUpdateDatabaseMigrationMIN.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDatabaseMigrationsSQLMiClient().BeginCreateOrUpdate(ctx, "testrg", "managedInstance1", "db1", armdatamigration.DatabaseMigrationSQLMi{
		Properties: &armdatamigration.DatabaseMigrationPropertiesSQLMi{
			Kind:               to.Ptr(armdatamigration.ResourceTypeSQLMi),
			MigrationService:   to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent"),
			Scope:              to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/instance"),
			SourceDatabaseName: to.Ptr("aaa"),
			SourceSQLConnection: &armdatamigration.SQLConnectionInformation{
				Authentication:         to.Ptr("WindowsAuthentication"),
				DataSource:             to.Ptr("aaa"),
				EncryptConnection:      to.Ptr(true),
				Password:               to.Ptr("placeholder"),
				TrustServerCertificate: to.Ptr(true),
				UserName:               to.Ptr("bbb"),
			},
			BackupConfiguration: &armdatamigration.BackupConfiguration{
				SourceLocation: &armdatamigration.SourceLocation{
					FileShare: &armdatamigration.SQLFileShare{
						Path:     to.Ptr("C:\\aaa\\bbb\\ccc"),
						Password: to.Ptr("placeholder"),
						Username: to.Ptr("name"),
					},
				},
				TargetLocation: &armdatamigration.TargetLocation{
					AccountKey:               to.Ptr("abcd"),
					StorageAccountResourceID: to.Ptr("account.database.windows.net"),
				},
			},
		},
	}, 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.DatabaseMigrationSQLMi = armdatamigration.DatabaseMigrationSQLMi{
	// 	Name: to.Ptr("db1"),
	// 	Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/instance/providers/Microsoft.DataMigration/databaseMigrations/db1"),
	// 	Properties: &armdatamigration.DatabaseMigrationPropertiesSQLMi{
	// 		EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		Kind: to.Ptr(armdatamigration.ResourceTypeSQLMi),
	// 		MigrationOperationID: to.Ptr("858ba109-5ab7-4fa1-8aea-bea487cacdcd"),
	// 		MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent"),
	// 		MigrationStatus: to.Ptr("InProgress"),
	// 		ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
	// 		Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/instance"),
	// 		StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		SourceDatabaseName: to.Ptr("sourcename"),
	// 		SourceServerName: to.Ptr("sourceserver"),
	// 		BackupConfiguration: &armdatamigration.BackupConfiguration{
	// 			SourceLocation: &armdatamigration.SourceLocation{
	// 				FileStorageType: to.Ptr("FileShare"),
	// 			},
	// 		},
	// 	},
	// }
}

func (*DatabaseMigrationsSQLMiClient) BeginCutover

BeginCutover - Initiate cutover for in-progress online database migration to SQL Managed Instance. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • targetDbName - The name of the target database.
  • parameters - Required migration operation ID for which cutover will be initiated.
  • options - DatabaseMigrationsSQLMiClientBeginCutoverOptions contains the optional parameters for the DatabaseMigrationsSQLMiClient.BeginCutover method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiCutoverDatabaseMigration.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDatabaseMigrationsSQLMiClient().BeginCutover(ctx, "testrg", "managedInstance1", "db1", armdatamigration.MigrationOperationInput{
		MigrationOperationID: to.Ptr("4124fe90-d1b6-4b50-b4d9-46d02381f59a"),
	}, 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)
	}
}

func (*DatabaseMigrationsSQLMiClient) BeginDelete

func (client *DatabaseMigrationsSQLMiClient) BeginDelete(ctx context.Context, resourceGroupName string, managedInstanceName string, targetDbName string, options *DatabaseMigrationsSQLMiClientBeginDeleteOptions) (*runtime.Poller[DatabaseMigrationsSQLMiClientDeleteResponse], error)

BeginDelete - Delete Database Migration resource. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • targetDbName - The name of the target database.
  • options - DatabaseMigrationsSQLMiClientBeginDeleteOptions contains the optional parameters for the DatabaseMigrationsSQLMiClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiDeleteDatabaseMigration.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDatabaseMigrationsSQLMiClient().BeginDelete(ctx, "testrg", "managedInstance1", "db1", &armdatamigration.DatabaseMigrationsSQLMiClientBeginDeleteOptions{Force: 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.DatabaseMigrationSQLMi = armdatamigration.DatabaseMigrationSQLMi{
	// 	Name: to.Ptr("db1"),
	// 	Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/miname/providers/Microsoft.DataMigration/databaseMigrations/db1"),
	// 	Properties: &armdatamigration.DatabaseMigrationPropertiesSQLMi{
	// 		EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		Kind: to.Ptr(armdatamigration.ResourceTypeSQLMi),
	// 		MigrationOperationID: to.Ptr("858ba109-5ab7-4fa1-8aea-bea487cacdcd"),
	// 		MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent"),
	// 		MigrationStatus: to.Ptr("InProgress"),
	// 		ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
	// 		Scope: to.Ptr("subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/managedInstance1"),
	// 		StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		SourceDatabaseName: to.Ptr("sourcename"),
	// 		SourceServerName: to.Ptr("sourceserver"),
	// 		BackupConfiguration: &armdatamigration.BackupConfiguration{
	// 			SourceLocation: &armdatamigration.SourceLocation{
	// 				FileStorageType: to.Ptr("FileShare"),
	// 			},
	// 		},
	// 	},
	// }
}

func (*DatabaseMigrationsSQLMiClient) Get

func (client *DatabaseMigrationsSQLMiClient) Get(ctx context.Context, resourceGroupName string, managedInstanceName string, targetDbName string, options *DatabaseMigrationsSQLMiClientGetOptions) (DatabaseMigrationsSQLMiClientGetResponse, error)

Get - Retrieve the specified database migration for a given SQL Managed Instance. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • targetDbName - The name of the target database.
  • options - DatabaseMigrationsSQLMiClientGetOptions contains the optional parameters for the DatabaseMigrationsSQLMiClient.Get method.
Example (GetSqlMiDatabaseMigrationWithTheExpandParameter)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiGetDatabaseMigrationExpanded.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewDatabaseMigrationsSQLMiClient().Get(ctx, "testrg", "managedInstance1", "db1", &armdatamigration.DatabaseMigrationsSQLMiClientGetOptions{MigrationOperationID: nil,
		Expand: to.Ptr("MigrationStatusDetails"),
	})
	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.DatabaseMigrationSQLMi = armdatamigration.DatabaseMigrationSQLMi{
	// 	Name: to.Ptr("db1"),
	// 	Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/miname/providers/Microsoft.DataMigration/databaseMigrations/db1"),
	// 	Properties: &armdatamigration.DatabaseMigrationPropertiesSQLMi{
	// 		EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		Kind: to.Ptr(armdatamigration.ResourceTypeSQLMi),
	// 		MigrationOperationID: to.Ptr("858ba109-5ab7-4fa1-8aea-bea487cacdcd"),
	// 		MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent"),
	// 		MigrationStatus: to.Ptr("InProgress"),
	// 		ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
	// 		Scope: to.Ptr("subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/managedInstance1"),
	// 		StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		SourceDatabaseName: to.Ptr("sourcename"),
	// 		SourceServerName: to.Ptr("sourceserver"),
	// 		BackupConfiguration: &armdatamigration.BackupConfiguration{
	// 			SourceLocation: &armdatamigration.SourceLocation{
	// 				FileStorageType: to.Ptr("FileShare"),
	// 			},
	// 		},
	// 		MigrationStatusDetails: &armdatamigration.MigrationStatusDetails{
	// 			ActiveBackupSets: []*armdatamigration.SQLBackupSetInfo{
	// 			},
	// 			IsFullBackupRestored: to.Ptr(false),
	// 			MigrationState: to.Ptr("WaitForFullBackupUploadOperation"),
	// 		},
	// 	},
	// }
}
Example (GetSqlMiDatabaseMigrationWithoutTheExpandParameter)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiGetDatabaseMigration.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewDatabaseMigrationsSQLMiClient().Get(ctx, "testrg", "managedInstance1", "db1", &armdatamigration.DatabaseMigrationsSQLMiClientGetOptions{MigrationOperationID: nil,
		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.DatabaseMigrationSQLMi = armdatamigration.DatabaseMigrationSQLMi{
	// 	Name: to.Ptr("db1"),
	// 	Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/miname/providers/Microsoft.DataMigration/databaseMigrations/db1"),
	// 	Properties: &armdatamigration.DatabaseMigrationPropertiesSQLMi{
	// 		EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		Kind: to.Ptr(armdatamigration.ResourceTypeSQLMi),
	// 		MigrationOperationID: to.Ptr("858ba109-5ab7-4fa1-8aea-bea487cacdcd"),
	// 		MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent"),
	// 		MigrationStatus: to.Ptr("InProgress"),
	// 		ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
	// 		Scope: to.Ptr("subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/managedInstance1"),
	// 		StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		SourceDatabaseName: to.Ptr("sourcename"),
	// 		SourceServerName: to.Ptr("sourceserver"),
	// 		BackupConfiguration: &armdatamigration.BackupConfiguration{
	// 			SourceLocation: &armdatamigration.SourceLocation{
	// 				FileStorageType: to.Ptr("FileShare"),
	// 			},
	// 		},
	// 	},
	// }
}

type DatabaseMigrationsSQLMiClientBeginCancelOptions

type DatabaseMigrationsSQLMiClientBeginCancelOptions struct {
	// Resumes the long-running operation from the provided token.
	ResumeToken string
}

DatabaseMigrationsSQLMiClientBeginCancelOptions contains the optional parameters for the DatabaseMigrationsSQLMiClient.BeginCancel method.

type DatabaseMigrationsSQLMiClientBeginCreateOrUpdateOptions

type DatabaseMigrationsSQLMiClientBeginCreateOrUpdateOptions struct {
	// Resumes the long-running operation from the provided token.
	ResumeToken string
}

DatabaseMigrationsSQLMiClientBeginCreateOrUpdateOptions contains the optional parameters for the DatabaseMigrationsSQLMiClient.BeginCreateOrUpdate method.

type DatabaseMigrationsSQLMiClientBeginCutoverOptions

type DatabaseMigrationsSQLMiClientBeginCutoverOptions struct {
	// Resumes the long-running operation from the provided token.
	ResumeToken string
}

DatabaseMigrationsSQLMiClientBeginCutoverOptions contains the optional parameters for the DatabaseMigrationsSQLMiClient.BeginCutover method.

type DatabaseMigrationsSQLMiClientBeginDeleteOptions

type DatabaseMigrationsSQLMiClientBeginDeleteOptions struct {
	// Optional force delete boolean. If this is provided as true, migration will be deleted even if active.
	Force *bool

	// Resumes the long-running operation from the provided token.
	ResumeToken string
}

DatabaseMigrationsSQLMiClientBeginDeleteOptions contains the optional parameters for the DatabaseMigrationsSQLMiClient.BeginDelete method.

type DatabaseMigrationsSQLMiClientCancelResponse

type DatabaseMigrationsSQLMiClientCancelResponse struct {
}

DatabaseMigrationsSQLMiClientCancelResponse contains the response from method DatabaseMigrationsSQLMiClient.BeginCancel.

type DatabaseMigrationsSQLMiClientCreateOrUpdateResponse

type DatabaseMigrationsSQLMiClientCreateOrUpdateResponse struct {
	// Database Migration Resource for SQL Managed Instance.
	DatabaseMigrationSQLMi
}

DatabaseMigrationsSQLMiClientCreateOrUpdateResponse contains the response from method DatabaseMigrationsSQLMiClient.BeginCreateOrUpdate.

type DatabaseMigrationsSQLMiClientCutoverResponse

type DatabaseMigrationsSQLMiClientCutoverResponse struct {
}

DatabaseMigrationsSQLMiClientCutoverResponse contains the response from method DatabaseMigrationsSQLMiClient.BeginCutover.

type DatabaseMigrationsSQLMiClientDeleteResponse

type DatabaseMigrationsSQLMiClientDeleteResponse struct {
	// Database Migration Resource for SQL Managed Instance.
	DatabaseMigrationSQLMi
}

DatabaseMigrationsSQLMiClientDeleteResponse contains the response from method DatabaseMigrationsSQLMiClient.BeginDelete.

type DatabaseMigrationsSQLMiClientGetOptions

type DatabaseMigrationsSQLMiClientGetOptions struct {
	// Complete migration details be included in the response.
	Expand *string

	// Optional migration operation ID. If this is provided, then details of migration operation for that ID are retrieved. If
	// not provided (default), then details related to most recent or current operation
	// are retrieved.
	MigrationOperationID *string
}

DatabaseMigrationsSQLMiClientGetOptions contains the optional parameters for the DatabaseMigrationsSQLMiClient.Get method.

type DatabaseMigrationsSQLMiClientGetResponse

type DatabaseMigrationsSQLMiClientGetResponse struct {
	// Database Migration Resource for SQL Managed Instance.
	DatabaseMigrationSQLMi
}

DatabaseMigrationsSQLMiClientGetResponse contains the response from method DatabaseMigrationsSQLMiClient.Get.

type DatabaseMigrationsSQLVMClient

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

DatabaseMigrationsSQLVMClient contains the methods for the DatabaseMigrationsSQLVM group. Don't use this type directly, use NewDatabaseMigrationsSQLVMClient() instead.

func NewDatabaseMigrationsSQLVMClient

func NewDatabaseMigrationsSQLVMClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DatabaseMigrationsSQLVMClient, error)

NewDatabaseMigrationsSQLVMClient creates a new instance of DatabaseMigrationsSQLVMClient with the specified values.

  • subscriptionID - Subscription ID that identifies an Azure subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*DatabaseMigrationsSQLVMClient) BeginCancel

func (client *DatabaseMigrationsSQLVMClient) BeginCancel(ctx context.Context, resourceGroupName string, sqlVirtualMachineName string, targetDbName string, parameters MigrationOperationInput, options *DatabaseMigrationsSQLVMClientBeginCancelOptions) (*runtime.Poller[DatabaseMigrationsSQLVMClientCancelResponse], error)

BeginCancel - Stop in-progress database migration to SQL VM. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • targetDbName - The name of the target database.
  • options - DatabaseMigrationsSQLVMClientBeginCancelOptions contains the optional parameters for the DatabaseMigrationsSQLVMClient.BeginCancel method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmCancelDatabaseMigration.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDatabaseMigrationsSQLVMClient().BeginCancel(ctx, "testrg", "testvm", "db1", armdatamigration.MigrationOperationInput{
		MigrationOperationID: to.Ptr("4124fe90-d1b6-4b50-b4d9-46d02381f59a"),
	}, 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)
	}
}

func (*DatabaseMigrationsSQLVMClient) BeginCreateOrUpdate

BeginCreateOrUpdate - Create a new database migration to a given SQL VM. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • targetDbName - The name of the target database.
  • parameters - Details of SqlMigrationService resource.
  • options - DatabaseMigrationsSQLVMClientBeginCreateOrUpdateOptions contains the optional parameters for the DatabaseMigrationsSQLVMClient.BeginCreateOrUpdate method.
Example (CreateOrUpdateDatabaseMigrationResourceWithMaximumParameters)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmCreateOrUpdateDatabaseMigrationMAX.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDatabaseMigrationsSQLVMClient().BeginCreateOrUpdate(ctx, "testrg", "testvm", "db1", armdatamigration.DatabaseMigrationSQLVM{
		Properties: &armdatamigration.DatabaseMigrationPropertiesSQLVM{
			Kind:               to.Ptr(armdatamigration.ResourceTypeSQLVM),
			MigrationService:   to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent"),
			Scope:              to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm"),
			SourceDatabaseName: to.Ptr("aaa"),
			SourceSQLConnection: &armdatamigration.SQLConnectionInformation{
				Authentication:         to.Ptr("WindowsAuthentication"),
				DataSource:             to.Ptr("aaa"),
				EncryptConnection:      to.Ptr(true),
				Password:               to.Ptr("placeholder"),
				TrustServerCertificate: to.Ptr(true),
				UserName:               to.Ptr("bbb"),
			},
			BackupConfiguration: &armdatamigration.BackupConfiguration{
				SourceLocation: &armdatamigration.SourceLocation{
					FileShare: &armdatamigration.SQLFileShare{
						Path:     to.Ptr("C:\\aaa\\bbb\\ccc"),
						Password: to.Ptr("placeholder"),
						Username: to.Ptr("name"),
					},
				},
				TargetLocation: &armdatamigration.TargetLocation{
					AccountKey:               to.Ptr("abcd"),
					StorageAccountResourceID: to.Ptr("account.database.windows.net"),
				},
			},
			OfflineConfiguration: &armdatamigration.OfflineConfiguration{
				LastBackupName: to.Ptr("last_backup_file_name"),
				Offline:        to.Ptr(true),
			},
		},
	}, 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.DatabaseMigrationSQLVM = armdatamigration.DatabaseMigrationSQLVM{
	// 	Name: to.Ptr("db1"),
	// 	Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm/providers/Microsoft.DataMigration/databaseMigrations/db1"),
	// 	Properties: &armdatamigration.DatabaseMigrationPropertiesSQLVM{
	// 		EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		Kind: to.Ptr(armdatamigration.ResourceTypeSQLVM),
	// 		MigrationOperationID: to.Ptr("858ba109-5ab7-4fa1-8aea-bea487cacdcd"),
	// 		MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent"),
	// 		MigrationStatus: to.Ptr("InProgress"),
	// 		ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
	// 		Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm"),
	// 		StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		SourceDatabaseName: to.Ptr("sourcename"),
	// 		SourceServerName: to.Ptr("sourceserver"),
	// 		BackupConfiguration: &armdatamigration.BackupConfiguration{
	// 			SourceLocation: &armdatamigration.SourceLocation{
	// 				FileStorageType: to.Ptr("FileShare"),
	// 			},
	// 		},
	// 		OfflineConfiguration: &armdatamigration.OfflineConfiguration{
	// 			LastBackupName: to.Ptr("last_backup_file_name"),
	// 			Offline: to.Ptr(true),
	// 		},
	// 	},
	// }
}
Example (CreateOrUpdateDatabaseMigrationResourceWithMinimumParameters)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmCreateOrUpdateDatabaseMigrationMIN.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDatabaseMigrationsSQLVMClient().BeginCreateOrUpdate(ctx, "testrg", "testvm", "db1", armdatamigration.DatabaseMigrationSQLVM{
		Properties: &armdatamigration.DatabaseMigrationPropertiesSQLVM{
			Kind:               to.Ptr(armdatamigration.ResourceTypeSQLVM),
			MigrationService:   to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent"),
			Scope:              to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm"),
			SourceDatabaseName: to.Ptr("aaa"),
			SourceSQLConnection: &armdatamigration.SQLConnectionInformation{
				Authentication:         to.Ptr("WindowsAuthentication"),
				DataSource:             to.Ptr("aaa"),
				EncryptConnection:      to.Ptr(true),
				Password:               to.Ptr("placeholder"),
				TrustServerCertificate: to.Ptr(true),
				UserName:               to.Ptr("bbb"),
			},
			BackupConfiguration: &armdatamigration.BackupConfiguration{
				SourceLocation: &armdatamigration.SourceLocation{
					FileShare: &armdatamigration.SQLFileShare{
						Path:     to.Ptr("C:\\aaa\\bbb\\ccc"),
						Password: to.Ptr("placeholder"),
						Username: to.Ptr("name"),
					},
				},
				TargetLocation: &armdatamigration.TargetLocation{
					AccountKey:               to.Ptr("abcd"),
					StorageAccountResourceID: to.Ptr("account.database.windows.net"),
				},
			},
		},
	}, 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.DatabaseMigrationSQLVM = armdatamigration.DatabaseMigrationSQLVM{
	// 	Name: to.Ptr("db1"),
	// 	Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm/providers/Microsoft.DataMigration/databaseMigrations/db1"),
	// 	Properties: &armdatamigration.DatabaseMigrationPropertiesSQLVM{
	// 		EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		Kind: to.Ptr(armdatamigration.ResourceTypeSQLVM),
	// 		MigrationOperationID: to.Ptr("858ba109-5ab7-4fa1-8aea-bea487cacdcd"),
	// 		MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent"),
	// 		MigrationStatus: to.Ptr("InProgress"),
	// 		ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
	// 		Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm"),
	// 		StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		SourceDatabaseName: to.Ptr("sourcename"),
	// 		SourceServerName: to.Ptr("sourceserver"),
	// 		BackupConfiguration: &armdatamigration.BackupConfiguration{
	// 			SourceLocation: &armdatamigration.SourceLocation{
	// 				FileStorageType: to.Ptr("FileShare"),
	// 			},
	// 		},
	// 	},
	// }
}

func (*DatabaseMigrationsSQLVMClient) BeginCutover

BeginCutover - Initiate cutover for in-progress online database migration to SQL VM. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • targetDbName - The name of the target database.
  • options - DatabaseMigrationsSQLVMClientBeginCutoverOptions contains the optional parameters for the DatabaseMigrationsSQLVMClient.BeginCutover method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmCutoverDatabaseMigration.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDatabaseMigrationsSQLVMClient().BeginCutover(ctx, "testrg", "testvm", "db1", armdatamigration.MigrationOperationInput{
		MigrationOperationID: to.Ptr("4124fe90-d1b6-4b50-b4d9-46d02381f59a"),
	}, 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)
	}
}

func (*DatabaseMigrationsSQLVMClient) BeginDelete

func (client *DatabaseMigrationsSQLVMClient) BeginDelete(ctx context.Context, resourceGroupName string, sqlVirtualMachineName string, targetDbName string, options *DatabaseMigrationsSQLVMClientBeginDeleteOptions) (*runtime.Poller[DatabaseMigrationsSQLVMClientDeleteResponse], error)

BeginDelete - Delete Database Migration resource. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • targetDbName - The name of the target database.
  • options - DatabaseMigrationsSQLVMClientBeginDeleteOptions contains the optional parameters for the DatabaseMigrationsSQLVMClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmDeleteDatabaseMigration.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewDatabaseMigrationsSQLVMClient().BeginDelete(ctx, "testrg", "testvm", "db1", &armdatamigration.DatabaseMigrationsSQLVMClientBeginDeleteOptions{Force: 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.DatabaseMigrationSQLVM = armdatamigration.DatabaseMigrationSQLVM{
	// 	Name: to.Ptr("db1"),
	// 	Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm/providers/Microsoft.DataMigration/databaseMigrations/db1"),
	// 	Properties: &armdatamigration.DatabaseMigrationPropertiesSQLVM{
	// 		EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		Kind: to.Ptr(armdatamigration.ResourceTypeSQLVM),
	// 		MigrationOperationID: to.Ptr("858ba109-5ab7-4fa1-8aea-bea487cacdcd"),
	// 		MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent"),
	// 		MigrationStatus: to.Ptr("InProgress"),
	// 		ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
	// 		Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm"),
	// 		StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		SourceDatabaseName: to.Ptr("sourcename"),
	// 		SourceServerName: to.Ptr("sourceserver"),
	// 		BackupConfiguration: &armdatamigration.BackupConfiguration{
	// 			SourceLocation: &armdatamigration.SourceLocation{
	// 				FileStorageType: to.Ptr("FileShare"),
	// 			},
	// 		},
	// 	},
	// }
}

func (*DatabaseMigrationsSQLVMClient) Get

func (client *DatabaseMigrationsSQLVMClient) Get(ctx context.Context, resourceGroupName string, sqlVirtualMachineName string, targetDbName string, options *DatabaseMigrationsSQLVMClientGetOptions) (DatabaseMigrationsSQLVMClientGetResponse, error)

Get - Retrieve the specified database migration for a given SQL VM. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • targetDbName - The name of the target database.
  • options - DatabaseMigrationsSQLVMClientGetOptions contains the optional parameters for the DatabaseMigrationsSQLVMClient.Get method.
Example (GetSqlVmDatabaseMigrationWithTheExpandParameter)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmGetDatabaseMigrationExpanded.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewDatabaseMigrationsSQLVMClient().Get(ctx, "testrg", "testvm", "db1", &armdatamigration.DatabaseMigrationsSQLVMClientGetOptions{MigrationOperationID: nil,
		Expand: to.Ptr("MigrationStatusDetails"),
	})
	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.DatabaseMigrationSQLVM = armdatamigration.DatabaseMigrationSQLVM{
	// 	Name: to.Ptr("db1"),
	// 	Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm/providers/Microsoft.DataMigration/databaseMigrations/db1"),
	// 	Properties: &armdatamigration.DatabaseMigrationPropertiesSQLVM{
	// 		EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		Kind: to.Ptr(armdatamigration.ResourceTypeSQLVM),
	// 		MigrationOperationID: to.Ptr("858ba109-5ab7-4fa1-8aea-bea487cacdcd"),
	// 		MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent"),
	// 		MigrationStatus: to.Ptr("InProgress"),
	// 		ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
	// 		Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm"),
	// 		StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		SourceDatabaseName: to.Ptr("sourcename"),
	// 		SourceServerName: to.Ptr("sourceserver"),
	// 		BackupConfiguration: &armdatamigration.BackupConfiguration{
	// 			SourceLocation: &armdatamigration.SourceLocation{
	// 				FileStorageType: to.Ptr("FileShare"),
	// 			},
	// 		},
	// 		MigrationStatusDetails: &armdatamigration.MigrationStatusDetails{
	// 			ActiveBackupSets: []*armdatamigration.SQLBackupSetInfo{
	// 			},
	// 			IsFullBackupRestored: to.Ptr(false),
	// 			MigrationState: to.Ptr("WaitForFullBackupUploadOperation"),
	// 		},
	// 	},
	// }
}
Example (GetSqlVmDatabaseMigrationWithoutTheExpandParameter)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmGetDatabaseMigration.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewDatabaseMigrationsSQLVMClient().Get(ctx, "testrg", "testvm", "db1", &armdatamigration.DatabaseMigrationsSQLVMClientGetOptions{MigrationOperationID: nil,
		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.DatabaseMigrationSQLVM = armdatamigration.DatabaseMigrationSQLVM{
	// 	Name: to.Ptr("db1"),
	// 	Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm/providers/Microsoft.DataMigration/databaseMigrations/db1"),
	// 	Properties: &armdatamigration.DatabaseMigrationPropertiesSQLVM{
	// 		EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		Kind: to.Ptr(armdatamigration.ResourceTypeSQLVM),
	// 		MigrationOperationID: to.Ptr("858ba109-5ab7-4fa1-8aea-bea487cacdcd"),
	// 		MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent"),
	// 		MigrationStatus: to.Ptr("InProgress"),
	// 		ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
	// 		Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm"),
	// 		StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
	// 		SourceDatabaseName: to.Ptr("sourcename"),
	// 		SourceServerName: to.Ptr("sourceserver"),
	// 		BackupConfiguration: &armdatamigration.BackupConfiguration{
	// 			SourceLocation: &armdatamigration.SourceLocation{
	// 				FileStorageType: to.Ptr("FileShare"),
	// 			},
	// 		},
	// 	},
	// }
}

type DatabaseMigrationsSQLVMClientBeginCancelOptions

type DatabaseMigrationsSQLVMClientBeginCancelOptions struct {
	// Resumes the long-running operation from the provided token.
	ResumeToken string
}

DatabaseMigrationsSQLVMClientBeginCancelOptions contains the optional parameters for the DatabaseMigrationsSQLVMClient.BeginCancel method.

type DatabaseMigrationsSQLVMClientBeginCreateOrUpdateOptions

type DatabaseMigrationsSQLVMClientBeginCreateOrUpdateOptions struct {
	// Resumes the long-running operation from the provided token.
	ResumeToken string
}

DatabaseMigrationsSQLVMClientBeginCreateOrUpdateOptions contains the optional parameters for the DatabaseMigrationsSQLVMClient.BeginCreateOrUpdate method.

type DatabaseMigrationsSQLVMClientBeginCutoverOptions

type DatabaseMigrationsSQLVMClientBeginCutoverOptions struct {
	// Resumes the long-running operation from the provided token.
	ResumeToken string
}

DatabaseMigrationsSQLVMClientBeginCutoverOptions contains the optional parameters for the DatabaseMigrationsSQLVMClient.BeginCutover method.

type DatabaseMigrationsSQLVMClientBeginDeleteOptions

type DatabaseMigrationsSQLVMClientBeginDeleteOptions struct {
	// Optional force delete boolean. If this is provided as true, migration will be deleted even if active.
	Force *bool

	// Resumes the long-running operation from the provided token.
	ResumeToken string
}

DatabaseMigrationsSQLVMClientBeginDeleteOptions contains the optional parameters for the DatabaseMigrationsSQLVMClient.BeginDelete method.

type DatabaseMigrationsSQLVMClientCancelResponse

type DatabaseMigrationsSQLVMClientCancelResponse struct {
}

DatabaseMigrationsSQLVMClientCancelResponse contains the response from method DatabaseMigrationsSQLVMClient.BeginCancel.

type DatabaseMigrationsSQLVMClientCreateOrUpdateResponse

type DatabaseMigrationsSQLVMClientCreateOrUpdateResponse struct {
	// Database Migration Resource for SQL Virtual Machine.
	DatabaseMigrationSQLVM
}

DatabaseMigrationsSQLVMClientCreateOrUpdateResponse contains the response from method DatabaseMigrationsSQLVMClient.BeginCreateOrUpdate.

type DatabaseMigrationsSQLVMClientCutoverResponse

type DatabaseMigrationsSQLVMClientCutoverResponse struct {
}

DatabaseMigrationsSQLVMClientCutoverResponse contains the response from method DatabaseMigrationsSQLVMClient.BeginCutover.

type DatabaseMigrationsSQLVMClientDeleteResponse

type DatabaseMigrationsSQLVMClientDeleteResponse struct {
	// Database Migration Resource for SQL Virtual Machine.
	DatabaseMigrationSQLVM
}

DatabaseMigrationsSQLVMClientDeleteResponse contains the response from method DatabaseMigrationsSQLVMClient.BeginDelete.

type DatabaseMigrationsSQLVMClientGetOptions

type DatabaseMigrationsSQLVMClientGetOptions struct {
	// Complete migration details be included in the response.
	Expand *string

	// Optional migration operation ID. If this is provided, then details of migration operation for that ID are retrieved. If
	// not provided (default), then details related to most recent or current operation
	// are retrieved.
	MigrationOperationID *string
}

DatabaseMigrationsSQLVMClientGetOptions contains the optional parameters for the DatabaseMigrationsSQLVMClient.Get method.

type DatabaseMigrationsSQLVMClientGetResponse

type DatabaseMigrationsSQLVMClientGetResponse struct {
	// Database Migration Resource for SQL Virtual Machine.
	DatabaseMigrationSQLVM
}

DatabaseMigrationsSQLVMClientGetResponse contains the response from method DatabaseMigrationsSQLVMClient.Get.

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

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

MarshalJSON implements the json.Marshaller interface for type DatabaseObjectName.

func (*DatabaseObjectName) UnmarshalJSON

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

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

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

MarshalJSON implements the json.Marshaller interface for type DatabaseTable.

func (*DatabaseTable) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseTable.

type DeleteNode

type DeleteNode struct {
	// The name of integration runtime.
	IntegrationRuntimeName *string

	// The name of node to delete.
	NodeName *string
}

DeleteNode - Details of node to be deleted.

func (DeleteNode) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type DeleteNode.

func (*DeleteNode) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type DeleteNode.

type Error

type Error struct {
	// Error type
	Type *ErrorType

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

Error - Migration Task errors

func (Error) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type Error.

func (*Error) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type Error.

type ErrorAdditionalInfo

type ErrorAdditionalInfo struct {
	// READ-ONLY; The additional info.
	Info any

	// READ-ONLY; The additional info type.
	Type *string
}

ErrorAdditionalInfo - The resource management error additional info.

func (ErrorAdditionalInfo) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ErrorAdditionalInfo.

func (*ErrorAdditionalInfo) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorAdditionalInfo.

type ErrorDetail

type ErrorDetail struct {
	// READ-ONLY; The error additional info.
	AdditionalInfo []*ErrorAdditionalInfo

	// READ-ONLY; The error code.
	Code *string

	// READ-ONLY; The error details.
	Details []*ErrorDetail

	// READ-ONLY; The error message.
	Message *string

	// READ-ONLY; The error target.
	Target *string
}

ErrorDetail - The error detail.

func (ErrorDetail) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ErrorDetail.

func (*ErrorDetail) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorDetail.

type ErrorInfo

type ErrorInfo struct {
	// READ-ONLY; Error code.
	Code *string

	// READ-ONLY; Error message.
	Message *string
}

ErrorInfo - Error details

func (ErrorInfo) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ErrorInfo.

func (*ErrorInfo) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorInfo.

type ErrorResponse

type ErrorResponse struct {
	// The error object.
	Error *ErrorDetail
}

ErrorResponse - Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).

func (ErrorResponse) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ErrorResponse.

func (*ErrorResponse) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponse.

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

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

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

MarshalJSON implements the json.Marshaller interface for type FileList.

func (*FileList) UnmarshalJSON

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

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

MarshalJSON implements the json.Marshaller interface for type FileShare.

func (*FileShare) UnmarshalJSON

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

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

MarshalJSON implements the json.Marshaller interface for type FileStorageInfo.

func (*FileStorageInfo) UnmarshalJSON

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 - Subscription ID that identifies an Azure 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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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"),
	// 	},
	// }
}

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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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)
	}
}

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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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),
	// 	},
	// }
}

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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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),
		// 			},
		// 	}},
		// }
	}
}

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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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"),
	// }
}

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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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"),
	// }
}

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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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"),
	// 	},
	// }
}

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

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

MarshalJSON implements the json.Marshaller interface for type GetProjectDetailsNonSQLTaskInput.

func (*GetProjectDetailsNonSQLTaskInput) UnmarshalJSON

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

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

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 *TaskType

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

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

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 *TaskType

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

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

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 *TaskType

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

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

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 *TaskType

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

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

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 *TaskType

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

	// encrypted key for secure fields
	EncryptedKeyForSecureFields *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

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

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 *TaskType

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

	// Task input
	Input *GetUserTablesSQLTaskInput

	// Task id
	TaskID *string

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

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

MarshalJSON implements the json.Marshaller interface for type InstallOCIDriverTaskInput.

func (*InstallOCIDriverTaskInput) UnmarshalJSON

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

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 *TaskType

	// 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 IntegrationRuntimeMonitoringData

type IntegrationRuntimeMonitoringData struct {
	// READ-ONLY; The name of Integration Runtime.
	Name *string

	// READ-ONLY; Integration Runtime node monitoring data.
	Nodes []*NodeMonitoringData
}

IntegrationRuntimeMonitoringData - Integration Runtime Monitoring Data.

func (IntegrationRuntimeMonitoringData) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeMonitoringData.

func (*IntegrationRuntimeMonitoringData) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeMonitoringData.

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 ManagedServiceIdentity

type ManagedServiceIdentity struct {
	// REQUIRED; Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
	Type *ManagedServiceIdentityType

	// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM
	// resource ids in the form:
	// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
	// The dictionary values can be empty objects ({}) in
	// requests.
	UserAssignedIdentities map[string]*UserAssignedIdentity

	// READ-ONLY; The service principal ID of the system assigned identity. This property will only be provided for a system assigned
	// identity.
	PrincipalID *string

	// READ-ONLY; The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
	TenantID *string
}

ManagedServiceIdentity - Managed service identity (system assigned and/or user assigned identities)

func (ManagedServiceIdentity) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ManagedServiceIdentity.

func (*ManagedServiceIdentity) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type ManagedServiceIdentity.

type ManagedServiceIdentityType

type ManagedServiceIdentityType string

ManagedServiceIdentityType - Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).

const (
	ManagedServiceIdentityTypeNone                       ManagedServiceIdentityType = "None"
	ManagedServiceIdentityTypeSystemAssigned             ManagedServiceIdentityType = "SystemAssigned"
	ManagedServiceIdentityTypeSystemAssignedUserAssigned ManagedServiceIdentityType = "SystemAssigned,UserAssigned"
	ManagedServiceIdentityTypeUserAssigned               ManagedServiceIdentityType = "UserAssigned"
)

func PossibleManagedServiceIdentityTypeValues

func PossibleManagedServiceIdentityTypeValues() []ManagedServiceIdentityType

PossibleManagedServiceIdentityTypeValues returns the possible values for the ManagedServiceIdentityType 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

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

MarshalJSON implements the json.Marshaller interface for type MigrateMISyncCompleteCommandInput.

func (*MigrateMISyncCompleteCommandInput) UnmarshalJSON

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

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 *CommandType

	// 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 *TaskType

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

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

	// encrypted key for secure fields
	EncryptedKeyForSecureFields *string

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

MarshalJSON implements the json.Marshaller interface for type MigrateMySQLAzureDbForMySQLOfflineTaskOutput.

func (*MigrateMySQLAzureDbForMySQLOfflineTaskOutput) UnmarshalJSON

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 *TaskType

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

	// Task input
	Input *MigrateMySQLAzureDbForMySQLOfflineTaskInput

	// whether the task can be cloned or not
	IsCloneable *bool

	// Task id
	TaskID *string

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

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

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

MarshalJSON implements the json.Marshaller interface for type MigrateMySQLAzureDbForMySQLSyncTaskOutput.

func (*MigrateMySQLAzureDbForMySQLSyncTaskOutput) UnmarshalJSON

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 *TaskType

	// 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 *TaskType

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

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

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

MarshalJSON implements the json.Marshaller interface for type MigrateOracleAzureDbPostgreSQLSyncTaskOutput.

func (*MigrateOracleAzureDbPostgreSQLSyncTaskOutput) UnmarshalJSON

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]any

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

	// READ-ONLY; Result identifier
	ID *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

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

MarshalJSON implements the json.Marshaller interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncDatabaseTableInput.

func (*MigratePostgreSQLAzureDbForPostgreSQLSyncDatabaseTableInput) UnmarshalJSON

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

	// encrypted key for secure fields
	EncryptedKeyForSecureFields *string

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

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

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

MarshalJSON implements the json.Marshaller interface for type MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput.

func (*MigratePostgreSQLAzureDbForPostgreSQLSyncTaskOutput) UnmarshalJSON

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

	// List of error events
	Events []*SyncMigrationDatabaseErrorEvent

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

	// Number of databases to include
	DatabaseCount *float32

	// 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 *TaskType

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

	// DateTime in UTC when the task was created
	CreatedOn *string

	// Task input
	Input *MigratePostgreSQLAzureDbForPostgreSQLSyncTaskInput

	// whether the task can be cloned or not
	IsCloneable *bool

	// task id
	TaskID *string

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

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

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerDatabaseInput.

func (*MigrateSQLServerDatabaseInput) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type MigrateSQLServerDatabaseInput.

type MigrateSQLServerSQLDbDatabaseInput

type MigrateSQLServerSQLDbDatabaseInput struct {
	// id of the database
	ID *string

	// Whether to set database read only before migration
	MakeSourceDbReadOnly *bool

	// Name of the database
	Name *string

	// Settings selected for DB schema migration.
	SchemaSetting any

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

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

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

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

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

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLDbSyncTaskOutput.

func (*MigrateSQLServerSQLDbSyncTaskOutput) UnmarshalJSON

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 *TaskType

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

	// encrypted key for secure fields
	EncryptedKeyForSecureFields *string

	// Date and time relative to UTC when the migration was started on
	StartedOn *string

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

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

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

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLDbTaskOutput.

func (*MigrateSQLServerSQLDbTaskOutput) UnmarshalJSON

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 *TaskType

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

	// DateTime in UTC when the task was created
	CreatedOn *string

	// Task input
	Input *MigrateSQLServerSQLDbTaskInput

	// whether the task can be cloned or not
	IsCloneable *bool

	// task id
	TaskID *string

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

	// id of the database
	ID *string
}

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

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 (classic) 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

	// Number of database migrations to start in parallel
	NumberOfParallelDatabaseMigrations *float32
}

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

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

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

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLMISyncTaskOutput.

func (*MigrateSQLServerSQLMISyncTaskOutput) UnmarshalJSON

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 *TaskType

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

	// DateTime in UTC when the task was created
	CreatedOn *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

	// encrypted key for secure fields
	EncryptedKeyForSecureFields *string

	// Agent Jobs to migrate.
	SelectedAgentJobs []*string

	// Logins to migrate.
	SelectedLogins []*string

	// Date and time relative to UTC when the migration was started on
	StartedOn *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

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

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

MarshalJSON implements the json.Marshaller interface for type MigrateSQLServerSQLMITaskOutput.

func (*MigrateSQLServerSQLMITaskOutput) UnmarshalJSON

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 *TaskType

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

	// DateTime in UTC when the task was created
	CreatedOn *string

	// Task input
	Input *MigrateSQLServerSQLMITaskInput

	// whether the task can be cloned or not
	IsCloneable *bool

	// parent task id
	ParentTaskID *string

	// task id
	TaskID *string

	// 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 {
	// Id of the source database
	ID *string

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

MarshalJSON implements the json.Marshaller interface for type MigrateSchemaSQLServerSQLDbDatabaseInput.

func (*MigrateSchemaSQLServerSQLDbDatabaseInput) UnmarshalJSON

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

	// encrypted key for secure fields
	EncryptedKeyForSecureFields *string

	// Migration start time
	StartedOn *string
}

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

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

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

MarshalJSON implements the json.Marshaller interface for type MigrateSchemaSQLServerSQLDbTaskOutput.

func (*MigrateSchemaSQLServerSQLDbTaskOutput) UnmarshalJSON

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 *TaskType

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

	// DateTime in UTC when the task was created
	CreatedOn *string

	// Task input
	Input *MigrateSchemaSQLServerSQLDbTaskInput

	// whether the task can be cloned or not
	IsCloneable *bool

	// Task id
	TaskID *string

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

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

MarshalJSON implements the json.Marshaller interface for type MigrateSsisTaskInput.

func (*MigrateSsisTaskInput) UnmarshalJSON

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

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

MarshalJSON implements the json.Marshaller interface for type MigrateSsisTaskOutput.

func (*MigrateSsisTaskOutput) UnmarshalJSON

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 *TaskType

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

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 *CommandType

	// Command id
	CommandID *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

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

UnmarshalJSON implements the json.Unmarshaller interface for type MigrationEligibilityInfo.

type MigrationOperationInput

type MigrationOperationInput struct {
	// ID tracking migration operation.
	MigrationOperationID *string
}

MigrationOperationInput - Migration Operation Input

func (MigrationOperationInput) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type MigrationOperationInput.

func (*MigrationOperationInput) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type MigrationOperationInput.

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

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

MarshalJSON implements the json.Marshaller interface for type MigrationReportResult.

func (*MigrationReportResult) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type MigrationReportResult.

type MigrationService

type MigrationService struct {
	// REQUIRED; The geo-location where the resource lives
	Location *string

	// The Migration Service properties.
	Properties *MigrationServiceProperties

	// Resource tags.
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

MigrationService - A Migration Service.

func (MigrationService) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type MigrationService.

func (*MigrationService) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type MigrationService.

type MigrationServiceListResult

type MigrationServiceListResult struct {
	// READ-ONLY
	NextLink *string

	// READ-ONLY
	Value []*MigrationService
}

MigrationServiceListResult - A list of Migration Service.

func (MigrationServiceListResult) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type MigrationServiceListResult.

func (*MigrationServiceListResult) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type MigrationServiceListResult.

type MigrationServiceProperties

type MigrationServiceProperties struct {
	// READ-ONLY; Current state of the Integration runtime.
	IntegrationRuntimeState *string

	// READ-ONLY; Provisioning state to track the async operation status.
	ProvisioningState *ProvisioningState
}

MigrationServiceProperties - The Migration Service properties.

func (MigrationServiceProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type MigrationServiceProperties.

func (*MigrationServiceProperties) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type MigrationServiceProperties.

type MigrationServiceUpdate

type MigrationServiceUpdate struct {
	// Dictionary of
	Tags map[string]*string
}

MigrationServiceUpdate - An update to a Migration Service.

func (MigrationServiceUpdate) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type MigrationServiceUpdate.

func (*MigrationServiceUpdate) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type MigrationServiceUpdate.

type MigrationServicesClient

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

MigrationServicesClient contains the methods for the MigrationServices group. Don't use this type directly, use NewMigrationServicesClient() instead.

func NewMigrationServicesClient

func NewMigrationServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*MigrationServicesClient, error)

NewMigrationServicesClient creates a new instance of MigrationServicesClient with the specified values.

  • subscriptionID - Subscription ID that identifies an Azure subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*MigrationServicesClient) BeginCreateOrUpdate

func (client *MigrationServicesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, migrationServiceName string, parameters MigrationService, options *MigrationServicesClientBeginCreateOrUpdateOptions) (*runtime.Poller[MigrationServicesClientCreateOrUpdateResponse], error)

BeginCreateOrUpdate - Create or Update Database Migration Service. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • migrationServiceName - Name of the Migration Service.
  • parameters - Details of MigrationService resource.
  • options - MigrationServicesClientBeginCreateOrUpdateOptions contains the optional parameters for the MigrationServicesClient.BeginCreateOrUpdate method.
Example (CreateOrUpdateMigrationServiceWithMaximumParameters)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CreateOrUpdateMigrationServiceMAX.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewMigrationServicesClient().BeginCreateOrUpdate(ctx, "testrg", "testagent", armdatamigration.MigrationService{
		Location: to.Ptr("northeurope"),
	}, 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.MigrationService = armdatamigration.MigrationService{
	// 	Name: to.Ptr("testagent"),
	// 	Type: to.Ptr("Microsoft.DataMigration/migrationServices"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/migrationServices/testagent"),
	// 	Location: to.Ptr("northeurope"),
	// 	Tags: map[string]*string{
	// 		"myTag": to.Ptr("myVal"),
	// 	},
	// 	Properties: &armdatamigration.MigrationServiceProperties{
	// 		ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
	// 	},
	// }
}
Example (CreateOrUpdateMigrationServiceWithMinimumParameters)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CreateOrUpdateMigrationServiceMIN.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewMigrationServicesClient().BeginCreateOrUpdate(ctx, "testrg", "testagent", armdatamigration.MigrationService{
		Location: to.Ptr("northeurope"),
	}, 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.MigrationService = armdatamigration.MigrationService{
	// 	Name: to.Ptr("testagent"),
	// 	Type: to.Ptr("Microsoft.DataMigration/migrationServices"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/migrationServices/testagent"),
	// 	Location: to.Ptr("northeurope"),
	// 	Tags: map[string]*string{
	// 		"myTag": to.Ptr("myVal"),
	// 	},
	// 	Properties: &armdatamigration.MigrationServiceProperties{
	// 		ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
	// 	},
	// }
}

func (*MigrationServicesClient) BeginDelete

func (client *MigrationServicesClient) BeginDelete(ctx context.Context, resourceGroupName string, migrationServiceName string, options *MigrationServicesClientBeginDeleteOptions) (*runtime.Poller[MigrationServicesClientDeleteResponse], error)

BeginDelete - Delete Database Migration Service. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • migrationServiceName - Name of the Migration Service.
  • options - MigrationServicesClientBeginDeleteOptions contains the optional parameters for the MigrationServicesClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/DeleteMigrationService.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewMigrationServicesClient().BeginDelete(ctx, "testrg", "service1", 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)
	}
}

func (*MigrationServicesClient) BeginUpdate

func (client *MigrationServicesClient) BeginUpdate(ctx context.Context, resourceGroupName string, migrationServiceName string, parameters MigrationServiceUpdate, options *MigrationServicesClientBeginUpdateOptions) (*runtime.Poller[MigrationServicesClientUpdateResponse], error)

BeginUpdate - Update Database Migration Service. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • migrationServiceName - Name of the Migration Service.
  • parameters - Details of MigrationService resource.
  • options - MigrationServicesClientBeginUpdateOptions contains the optional parameters for the MigrationServicesClient.BeginUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/UpdateMigrationService.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewMigrationServicesClient().BeginUpdate(ctx, "testrg", "testagent", armdatamigration.MigrationServiceUpdate{
		Tags: map[string]*string{
			"mytag": to.Ptr("myval"),
		},
	}, 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.MigrationService = armdatamigration.MigrationService{
	// 	Name: to.Ptr("testagent"),
	// 	Type: to.Ptr("Microsoft.DataMigration/migrationServices"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/migrationServices/testagent"),
	// 	Location: to.Ptr("northeurope"),
	// 	Tags: map[string]*string{
	// 		"mytag": to.Ptr("myval"),
	// 	},
	// 	Properties: &armdatamigration.MigrationServiceProperties{
	// 	},
	// }
}

func (*MigrationServicesClient) Get

func (client *MigrationServicesClient) Get(ctx context.Context, resourceGroupName string, migrationServiceName string, options *MigrationServicesClientGetOptions) (MigrationServicesClientGetResponse, error)

Get - Retrieve the Database Migration Service If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • migrationServiceName - Name of the Migration Service.
  • options - MigrationServicesClientGetOptions contains the optional parameters for the MigrationServicesClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/GetMigrationService.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewMigrationServicesClient().Get(ctx, "testrg", "service1", 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.MigrationService = armdatamigration.MigrationService{
	// 	Name: to.Ptr("service1"),
	// 	Type: to.Ptr("Microsoft.DataMigration/migrationServices"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/migrationServices/service1"),
	// 	Location: to.Ptr("northeurope"),
	// 	Tags: map[string]*string{
	// 		"myTag": to.Ptr("myVal"),
	// 	},
	// 	Properties: &armdatamigration.MigrationServiceProperties{
	// 		ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
	// 	},
	// }
}

func (*MigrationServicesClient) NewListByResourceGroupPager

NewListByResourceGroupPager - Retrieve all migration services in the resource group.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • options - MigrationServicesClientListByResourceGroupOptions contains the optional parameters for the MigrationServicesClient.NewListByResourceGroupPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ListByResourceGroupMigrationService.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewMigrationServicesClient().NewListByResourceGroupPager("testrg", 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.MigrationServiceListResult = armdatamigration.MigrationServiceListResult{
		// 	Value: []*armdatamigration.MigrationService{
		// 		{
		// 			Name: to.Ptr("service1"),
		// 			Type: to.Ptr("Microsoft.DataMigration/migrationServices"),
		// 			ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/migrationServices/service1"),
		// 			Location: to.Ptr("northeurope"),
		// 			Tags: map[string]*string{
		// 				"mytag": to.Ptr("myval"),
		// 			},
		// 			Properties: &armdatamigration.MigrationServiceProperties{
		// 				ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("service2"),
		// 			Type: to.Ptr("Microsoft.DataMigration/migrationServices"),
		// 			ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/migrationServices/service1"),
		// 			Location: to.Ptr("northeurope"),
		// 			Tags: map[string]*string{
		// 				"mytag": to.Ptr("myval"),
		// 			},
		// 			Properties: &armdatamigration.MigrationServiceProperties{
		// 				ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
		// 			},
		// 	}},
		// }
	}
}

func (*MigrationServicesClient) NewListBySubscriptionPager

NewListBySubscriptionPager - Retrieve all migration services in the subscriptions.

Generated from API version 2025-06-30

  • options - MigrationServicesClientListBySubscriptionOptions contains the optional parameters for the MigrationServicesClient.NewListBySubscriptionPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ListBySubscriptionMigrationService.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewMigrationServicesClient().NewListBySubscriptionPager(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.MigrationServiceListResult = armdatamigration.MigrationServiceListResult{
		// 	Value: []*armdatamigration.MigrationService{
		// 		{
		// 			Name: to.Ptr("service1"),
		// 			Type: to.Ptr("Microsoft.DataMigration/migrationServices"),
		// 			ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg1/providers/Microsoft.DataMigration/migrationServices/service1"),
		// 			Location: to.Ptr("northeurope"),
		// 			Tags: map[string]*string{
		// 				"mytag": to.Ptr("myval"),
		// 			},
		// 			Properties: &armdatamigration.MigrationServiceProperties{
		// 				ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("service2"),
		// 			Type: to.Ptr("Microsoft.DataMigration/migrationServices"),
		// 			ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg2/providers/Microsoft.DataMigration/migrationServices/service2"),
		// 			Location: to.Ptr("northeurope"),
		// 			Tags: map[string]*string{
		// 				"mytag": to.Ptr("myval"),
		// 			},
		// 			Properties: &armdatamigration.MigrationServiceProperties{
		// 				ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("service3"),
		// 			Type: to.Ptr("Microsoft.DataMigration/migrationServices"),
		// 			ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg2/providers/Microsoft.DataMigration/migrationServices/service3"),
		// 			Location: to.Ptr("northeurope"),
		// 			Tags: map[string]*string{
		// 				"mytag": to.Ptr("myval"),
		// 			},
		// 			Properties: &armdatamigration.MigrationServiceProperties{
		// 				ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
		// 			},
		// 	}},
		// }
	}
}

func (*MigrationServicesClient) NewListMigrationsPager

func (client *MigrationServicesClient) NewListMigrationsPager(resourceGroupName string, migrationServiceName string, options *MigrationServicesClientListMigrationsOptions) *runtime.Pager[MigrationServicesClientListMigrationsResponse]

NewListMigrationsPager - Retrieve the List of database migrations attached to the service.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • migrationServiceName - Name of the Migration Service.
  • options - MigrationServicesClientListMigrationsOptions contains the optional parameters for the MigrationServicesClient.NewListMigrationsPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ListMigrationsByMigrationService.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewMigrationServicesClient().NewListMigrationsPager("testrg", "testMigrationService", 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.DatabaseMigrationBaseListResult = armdatamigration.DatabaseMigrationBaseListResult{
		// 	Value: []*armdatamigration.DatabaseMigrationBase{
		// 		{
		// 			Name: to.Ptr("migrationRequest1"),
		// 			Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
		// 			ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName/providers/Microsoft.DataMigration/databaseMigrations/migrationRequest1"),
		// 			Properties: &armdatamigration.DatabaseMigrationPropertiesCosmosDbMongo{
		// 				Kind: to.Ptr(armdatamigration.ResourceTypeMongoToCosmosDbMongo),
		// 				MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/migrationServices/testMigrationService"),
		// 				MigrationStatus: to.Ptr("Creating"),
		// 				ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
		// 				Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName"),
		// 				SourceMongoConnection: &armdatamigration.MongoConnectionInformation{
		// 					Host: to.Ptr("abc.mongodb.com"),
		// 					Port: to.Ptr[int32](88),
		// 				},
		// 				TargetMongoConnection: &armdatamigration.MongoConnectionInformation{
		// 					Host: to.Ptr("xyz.mongocluster.cosmos.azure.com"),
		// 					Port: to.Ptr[int32](10255),
		// 				},
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("migrationRequest2"),
		// 			Type: to.Ptr("Microsoft.DataMigration/databaseMigrations"),
		// 			ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName/providers/Microsoft.DataMigration/databaseMigrations/migrationRequest2"),
		// 			Properties: &armdatamigration.DatabaseMigrationPropertiesCosmosDbMongo{
		// 				EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
		// 				Kind: to.Ptr(armdatamigration.ResourceTypeMongoToCosmosDbMongo),
		// 				MigrationFailureError: &armdatamigration.ErrorInfo{
		// 					Code: to.Ptr("400"),
		// 					Message: to.Ptr("Source or Target database connectivity could not be validated."),
		// 				},
		// 				MigrationOperationID: to.Ptr("858ba109-5ab7-4fa1-8aea-bea487cacdcd"),
		// 				MigrationService: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/migrationServices/testMigrationService"),
		// 				MigrationStatus: to.Ptr("Failed"),
		// 				ProvisioningState: to.Ptr(armdatamigration.ProvisioningStateSucceeded),
		// 				Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName"),
		// 				StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
		// 				SourceMongoConnection: &armdatamigration.MongoConnectionInformation{
		// 					Host: to.Ptr("abc.mongodb.com"),
		// 					Port: to.Ptr[int32](88),
		// 				},
		// 				TargetMongoConnection: &armdatamigration.MongoConnectionInformation{
		// 					Host: to.Ptr("xyz.mongocluster.cosmos.azure.com"),
		// 					Port: to.Ptr[int32](10255),
		// 				},
		// 			},
		// 	}},
		// }
	}
}

type MigrationServicesClientBeginCreateOrUpdateOptions

type MigrationServicesClientBeginCreateOrUpdateOptions struct {
	// Resumes the long-running operation from the provided token.
	ResumeToken string
}

MigrationServicesClientBeginCreateOrUpdateOptions contains the optional parameters for the MigrationServicesClient.BeginCreateOrUpdate method.

type MigrationServicesClientBeginDeleteOptions

type MigrationServicesClientBeginDeleteOptions struct {
	// Resumes the long-running operation from the provided token.
	ResumeToken string
}

MigrationServicesClientBeginDeleteOptions contains the optional parameters for the MigrationServicesClient.BeginDelete method.

type MigrationServicesClientBeginUpdateOptions

type MigrationServicesClientBeginUpdateOptions struct {
	// Resumes the long-running operation from the provided token.
	ResumeToken string
}

MigrationServicesClientBeginUpdateOptions contains the optional parameters for the MigrationServicesClient.BeginUpdate method.

type MigrationServicesClientCreateOrUpdateResponse

type MigrationServicesClientCreateOrUpdateResponse struct {
	// A Migration Service.
	MigrationService
}

MigrationServicesClientCreateOrUpdateResponse contains the response from method MigrationServicesClient.BeginCreateOrUpdate.

type MigrationServicesClientDeleteResponse

type MigrationServicesClientDeleteResponse struct {
}

MigrationServicesClientDeleteResponse contains the response from method MigrationServicesClient.BeginDelete.

type MigrationServicesClientGetOptions

type MigrationServicesClientGetOptions struct {
}

MigrationServicesClientGetOptions contains the optional parameters for the MigrationServicesClient.Get method.

type MigrationServicesClientGetResponse

type MigrationServicesClientGetResponse struct {
	// A Migration Service.
	MigrationService
}

MigrationServicesClientGetResponse contains the response from method MigrationServicesClient.Get.

type MigrationServicesClientListByResourceGroupOptions

type MigrationServicesClientListByResourceGroupOptions struct {
}

MigrationServicesClientListByResourceGroupOptions contains the optional parameters for the MigrationServicesClient.NewListByResourceGroupPager method.

type MigrationServicesClientListByResourceGroupResponse

type MigrationServicesClientListByResourceGroupResponse struct {
	// A list of Migration Service.
	MigrationServiceListResult
}

MigrationServicesClientListByResourceGroupResponse contains the response from method MigrationServicesClient.NewListByResourceGroupPager.

type MigrationServicesClientListBySubscriptionOptions

type MigrationServicesClientListBySubscriptionOptions struct {
}

MigrationServicesClientListBySubscriptionOptions contains the optional parameters for the MigrationServicesClient.NewListBySubscriptionPager method.

type MigrationServicesClientListBySubscriptionResponse

type MigrationServicesClientListBySubscriptionResponse struct {
	// A list of Migration Service.
	MigrationServiceListResult
}

MigrationServicesClientListBySubscriptionResponse contains the response from method MigrationServicesClient.NewListBySubscriptionPager.

type MigrationServicesClientListMigrationsOptions

type MigrationServicesClientListMigrationsOptions struct {
}

MigrationServicesClientListMigrationsOptions contains the optional parameters for the MigrationServicesClient.NewListMigrationsPager method.

type MigrationServicesClientListMigrationsResponse

type MigrationServicesClientListMigrationsResponse struct {
	// A list of Database Migrations.
	DatabaseMigrationBaseListResult
}

MigrationServicesClientListMigrationsResponse contains the response from method MigrationServicesClient.NewListMigrationsPager.

type MigrationServicesClientUpdateResponse

type MigrationServicesClientUpdateResponse struct {
	// A Migration Service.
	MigrationService
}

MigrationServicesClientUpdateResponse contains the response from method MigrationServicesClient.BeginUpdate.

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 MigrationStatusDetails

type MigrationStatusDetails struct {
	// READ-ONLY; Backup sets that are currently active.
	ActiveBackupSets []*SQLBackupSetInfo

	// READ-ONLY; Name of blob container.
	BlobContainerName *string

	// READ-ONLY; Complete restore error message, if any
	CompleteRestoreErrorMessage *string

	// READ-ONLY; File name that is currently being restored.
	CurrentRestoringFilename *string

	// READ-ONLY; File upload blocking errors, if any.
	FileUploadBlockingErrors []*string

	// READ-ONLY; Details of full backup set.
	FullBackupSetInfo *SQLBackupSetInfo

	// READ-ONLY; Files that are not valid backup files.
	InvalidFiles []*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 *SQLBackupSetInfo

	// READ-ONLY; Last restored file name.
	LastRestoredFilename *string

	// READ-ONLY; Current State of Migration.
	MigrationState *string

	// READ-ONLY; Total pending log backups.
	PendingLogBackupsCount *int32

	// READ-ONLY; Restore blocking reason, if any
	RestoreBlockingReason *string
}

MigrationStatusDetails - Detailed status of current migration.

func (MigrationStatusDetails) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type MigrationStatusDetails.

func (*MigrationStatusDetails) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type MigrationStatusDetails.

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

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

MarshalJSON implements the json.Marshaller interface for type MigrationTableMetadata.

func (*MigrationTableMetadata) UnmarshalJSON

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

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

MarshalJSON implements the json.Marshaller interface for type MigrationValidationOptions.

func (*MigrationValidationOptions) UnmarshalJSON

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

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

UnmarshalJSON implements the json.Unmarshaller interface for type MigrationValidationResult.

type MongoConnectionInformation

type MongoConnectionInformation struct {
	// ConnectionString to connect to Mongo.
	ConnectionString *string

	// Host of mongo connection.
	Host *string

	// Password to connect to Mongo.
	Password *string

	// Port of mongo connection.
	Port *int32

	// Whether to UseSsl or UseTls to connect to Mongo. Default is true.
	UseSSL *bool

	// User name to connect to Mongo.
	UserName *string
}

MongoConnectionInformation - Mongo Connection

func (MongoConnectionInformation) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type MongoConnectionInformation.

func (*MongoConnectionInformation) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type MongoConnectionInformation.

type MongoDbCancelCommand

type MongoDbCancelCommand struct {
	// REQUIRED; Command type.
	CommandType *CommandType

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

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

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

MarshalJSON implements the json.Marshaller interface for type MongoDbCollectionInfo.

func (*MongoDbCollectionInfo) UnmarshalJSON

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

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

MarshalJSON implements the json.Marshaller interface for type MongoDbCollectionSettings.

func (*MongoDbCollectionSettings) UnmarshalJSON

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

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

MarshalJSON implements the json.Marshaller interface for type MongoDbCommandInput.

func (*MongoDbCommandInput) UnmarshalJSON

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

	// Additional connection settings
	AdditionalSettings *string

	// Authentication type to use for connection
	Authentication *AuthenticationType

	// Data source
	DataSource *string

	// Whether to encrypt the connection
	EncryptConnection *bool
	EnforceSSL        *bool

	// Password credential.
	Password *string

	// port for server
	Port *int32

	// server brand version
	ServerBrandVersion *string

	// name of the server
	ServerName *string

	// server version
	ServerVersion *string

	// Whether to trust the server certificate
	TrustServerCertificate *bool

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

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

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

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

MarshalJSON implements the json.Marshaller interface for type MongoDbError.

func (*MongoDbError) UnmarshalJSON

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 *CommandType

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

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

MarshalJSON implements the json.Marshaller interface for type MongoDbFinishCommandInput.

func (*MongoDbFinishCommandInput) UnmarshalJSON

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

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

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

MarshalJSON implements the json.Marshaller interface for type MongoDbObjectInfo.

func (*MongoDbObjectInfo) UnmarshalJSON

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 *CommandType

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

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

MarshalJSON implements the json.Marshaller interface for type MongoDbShardKeyField.

func (*MongoDbShardKeyField) UnmarshalJSON

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

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

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

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

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

MarshalJSON implements the json.Marshaller interface for type MongoDbThrottlingSettings.

func (*MongoDbThrottlingSettings) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type MongoDbThrottlingSettings.

type MongoMigrationCollection

type MongoMigrationCollection struct {
	// Source collection name.
	SourceCollection *string

	// Source database name.
	SourceDatabase *string

	// Target collection name.
	TargetCollection *string

	// Target database name.
	TargetDatabase *string

	// READ-ONLY; Detailed migration status. Not included by default.
	MigrationProgressDetails *MongoMigrationProgressDetails
}

MongoMigrationCollection - Mongo source and target database and collection details.

func (MongoMigrationCollection) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type MongoMigrationCollection.

func (*MongoMigrationCollection) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type MongoMigrationCollection.

type MongoMigrationProgressDetails

type MongoMigrationProgressDetails struct {
	// READ-ONLY; Migration duration
	DurationInSeconds *int32

	// READ-ONLY; Migration Error
	MigrationError *string

	// READ-ONLY; Migration Status
	MigrationStatus *MongoMigrationStatus

	// READ-ONLY; Processed Document Count
	ProcessedDocumentCount *int64

	// READ-ONLY; Source Document Count
	SourceDocumentCount *int64
}

MongoMigrationProgressDetails - Detailed status of collection migration.

func (MongoMigrationProgressDetails) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type MongoMigrationProgressDetails.

func (*MongoMigrationProgressDetails) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaller interface for type MongoMigrationProgressDetails.

type MongoMigrationStatus

type MongoMigrationStatus string

MongoMigrationStatus - Migration Status

const (
	MongoMigrationStatusCanceled   MongoMigrationStatus = "Canceled"
	MongoMigrationStatusCompleted  MongoMigrationStatus = "Completed"
	MongoMigrationStatusFailed     MongoMigrationStatus = "Failed"
	MongoMigrationStatusInProgress MongoMigrationStatus = "InProgress"
	MongoMigrationStatusNotStarted MongoMigrationStatus = "NotStarted"
)

func PossibleMongoMigrationStatusValues

func PossibleMongoMigrationStatusValues() []MongoMigrationStatus

PossibleMongoMigrationStatusValues returns the possible values for the MongoMigrationStatus const type.

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

	// Additional connection settings
	AdditionalSettings *string

	// Authentication type to use for connection
	Authentication *AuthenticationType

	// Data source
	DataSource *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

func (n NameAvailabilityRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NameAvailabilityRequest.

func (*NameAvailabilityRequest) UnmarshalJSON

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

func (n NameAvailabilityResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NameAvailabilityResponse.

func (*NameAvailabilityResponse) UnmarshalJSON

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 NodeMonitoringData

type NodeMonitoringData struct {
	// READ-ONLY; Unmatched properties from the message are deserialized in this collection.
	AdditionalProperties map[string]any

	// READ-ONLY; Available memory (MB) on the integration runtime node.
	AvailableMemoryInMB *int32

	// READ-ONLY; CPU percentage on the integration runtime node.
	CPUUtilization *int32

	// READ-ONLY; Maximum concurrent jobs on the integration runtime node.
	ConcurrentJobsLimit *int32

	// READ-ONLY; The number of jobs currently running on the integration runtime node.
	ConcurrentJobsRunning *int32

	// READ-ONLY; The maximum concurrent jobs in this integration runtime.
	MaxConcurrentJobs *int32

	// READ-ONLY; Name of the integration runtime node.
	NodeName *string

	// READ-ONLY; Received bytes on the integration runtime node.
	ReceivedBytes *float64

	// READ-ONLY; Sent bytes on the integration runtime node.
	SentBytes *float64
}

func (NodeMonitoringData) MarshalJSON

func (n NodeMonitoringData) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NodeMonitoringData.

func (*NodeMonitoringData) UnmarshalJSON

func (n *NodeMonitoringData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type NodeMonitoringData.

type NonSQLDataMigrationTable

type NonSQLDataMigrationTable struct {
	// Source table name
	SourceName *string
}

NonSQLDataMigrationTable - Defines metadata for table to be migrated

func (NonSQLDataMigrationTable) MarshalJSON

func (n NonSQLDataMigrationTable) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NonSQLDataMigrationTable.

func (*NonSQLDataMigrationTable) UnmarshalJSON

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

func (n NonSQLDataMigrationTableResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NonSQLDataMigrationTableResult.

func (*NonSQLDataMigrationTableResult) UnmarshalJSON

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

func (n NonSQLMigrationTaskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NonSQLMigrationTaskInput.

func (*NonSQLMigrationTaskInput) UnmarshalJSON

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

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

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 OfflineConfiguration

type OfflineConfiguration struct {
	// Last backup name for offline migration. This is optional for migrations from file share. If it is not provided, then the
	// service will determine the last backup file name based on latest backup files
	// present in file share.
	LastBackupName *string

	// Offline migration
	Offline *bool
}

OfflineConfiguration - Offline configuration

func (OfflineConfiguration) MarshalJSON

func (o OfflineConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OfflineConfiguration.

func (*OfflineConfiguration) UnmarshalJSON

func (o *OfflineConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OfflineConfiguration.

type OperationListResult

type OperationListResult struct {
	// READ-ONLY
	NextLink *string

	// READ-ONLY
	Value []*OperationsDefinition
}

OperationListResult - Result of the request to list SQL operations.

func (OperationListResult) MarshalJSON

func (o OperationListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OperationListResult.

func (*OperationListResult) UnmarshalJSON

func (o *OperationListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.

type OperationOrigin

type OperationOrigin string
const (
	OperationOriginSystem OperationOrigin = "system"
	OperationOriginUser   OperationOrigin = "user"
)

func PossibleOperationOriginValues

func PossibleOperationOriginValues() []OperationOrigin

PossibleOperationOriginValues returns the possible values for the OperationOrigin 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 of the available SQL Migration REST API operations.

Generated from API version 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ListOperation.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/v2"
)

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("", 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.OperationListResult = armdatamigration.OperationListResult{
		// 	Value: []*armdatamigration.OperationsDefinition{
		// 		{
		// 			Name: to.Ptr("Microsoft.DataMigration/sqlMigrationServices/write"),
		// 			Display: &armdatamigration.OperationsDisplayDefinition{
		// 				Description: to.Ptr("Create a new or change properties of existing Service"),
		// 				Operation: to.Ptr("Create or update properties of existing Service"),
		// 				Resource: to.Ptr("SQL Migration Service"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.DataMigration/sqlMigrationServices/write"),
		// 			Display: &armdatamigration.OperationsDisplayDefinition{
		// 				Description: to.Ptr("Update tag of the Service"),
		// 				Operation: to.Ptr("Update tag of the Service"),
		// 				Resource: to.Ptr("SQL Migration Service"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.DataMigration/sqlMigrationServices/delete"),
		// 			Display: &armdatamigration.OperationsDisplayDefinition{
		// 				Description: to.Ptr("Delete existing Service"),
		// 				Operation: to.Ptr("Delete existing Service"),
		// 				Resource: to.Ptr("SQL Migration Service"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.DataMigration/sqlMigrationServices/read"),
		// 			Display: &armdatamigration.OperationsDisplayDefinition{
		// 				Description: to.Ptr("Retrieve details of Migration Service"),
		// 				Operation: to.Ptr("Get Migration Service details"),
		// 				Resource: to.Ptr("SQL Migration Service"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.DataMigration/sqlMigrationServices/read"),
		// 			Display: &armdatamigration.OperationsDisplayDefinition{
		// 				Description: to.Ptr("Retrieve details of Migration Services in a Resource Group"),
		// 				Operation: to.Ptr("Get Migration Service details in a Resource Group"),
		// 				Resource: to.Ptr("SQL Migration Service"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.DataMigration/sqlMigrationServices/listAuthKeys/action"),
		// 			Display: &armdatamigration.OperationsDisplayDefinition{
		// 				Description: to.Ptr("Retrieve the List of AuthKeys"),
		// 				Operation: to.Ptr("Get List of AuthKeys"),
		// 				Resource: to.Ptr("SQL Migration Service"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.DataMigration/sqlMigrationServices/regenerateAuthKeys/action"),
		// 			Display: &armdatamigration.OperationsDisplayDefinition{
		// 				Description: to.Ptr("Regenerate the AuthKeys"),
		// 				Operation: to.Ptr("Regenerate the AuthKeys"),
		// 				Resource: to.Ptr("SQL Migration Service"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.DataMigration/sqlMigrationServices/monitoringData/action"),
		// 			Display: &armdatamigration.OperationsDisplayDefinition{
		// 				Description: to.Ptr("Retrieve the Monitoring Data"),
		// 				Operation: to.Ptr("Get the Monitoring Data"),
		// 				Resource: to.Ptr("SQL Migration Service"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.DataMigration/sqlMigrationServices/updateNode/action"),
		// 			Display: &armdatamigration.OperationsDisplayDefinition{
		// 				Description: to.Ptr("Update Node"),
		// 				Operation: to.Ptr("Update Node"),
		// 				Resource: to.Ptr("SQL Migration Service"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.DataMigration/sqlMigrationServices/deleteNode/action"),
		// 			Display: &armdatamigration.OperationsDisplayDefinition{
		// 				Description: to.Ptr("Delete Node"),
		// 				Operation: to.Ptr("DeleteNode"),
		// 				Resource: to.Ptr("SQL Migration Service"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.DataMigration/operations/read"),
		// 			Display: &armdatamigration.OperationsDisplayDefinition{
		// 				Description: to.Ptr("Get all REST Operations"),
		// 				Operation: to.Ptr("Get all REST Operations"),
		// 				Resource: to.Ptr("Available REST operations"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Sql/managedInstances/providers/Microsoft.DataMigration/databaseMigrations/cancel/action"),
		// 			Display: &armdatamigration.OperationsDisplayDefinition{
		// 				Description: to.Ptr("Stop ongoing migration for the database"),
		// 				Operation: to.Ptr("Stop ongoing migration for the database"),
		// 				Resource: to.Ptr("Database Migration Resource"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Sql/managedInstances/providers/Microsoft.DataMigration/databaseMigrations/start/action"),
		// 			Display: &armdatamigration.OperationsDisplayDefinition{
		// 				Description: to.Ptr("Start stopped migration for the database"),
		// 				Operation: to.Ptr("Start stopped migration for the database"),
		// 				Resource: to.Ptr("Database Migration Resource"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Sql/managedInstances/providers/Microsoft.DataMigration/databaseMigrations/cutover/action"),
		// 			Display: &armdatamigration.OperationsDisplayDefinition{
		// 				Description: to.Ptr("Cutover online migration operation for the database"),
		// 				Operation: to.Ptr("Cutover online migration operation for the database"),
		// 				Resource: to.Ptr("Database Migration Resource"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Sql/managedInstances/providers/Microsoft.DataMigration/databaseMigrations/write"),
		// 			Display: &armdatamigration.OperationsDisplayDefinition{
		// 				Description: to.Ptr("Create or Update Database Migration resource"),
		// 				Operation: to.Ptr("Create or Update Database Migration resource"),
		// 				Resource: to.Ptr("Database Migration Resource"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Sql/managedInstances/providers/Microsoft.DataMigration/databaseMigrations/write"),
		// 			Display: &armdatamigration.OperationsDisplayDefinition{
		// 				Description: to.Ptr("Update Database Migration resource"),
		// 				Operation: to.Ptr("Update Database Migration resource"),
		// 				Resource: to.Ptr("Database Migration Resource"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Sql/managedInstances/providers/Microsoft.DataMigration/delete"),
		// 			Display: &armdatamigration.OperationsDisplayDefinition{
		// 				Description: to.Ptr("Delete Database Migration resource"),
		// 				Operation: to.Ptr("Delete Database Migration resource"),
		// 				Resource: to.Ptr("Database Migration Resource"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Sql/managedInstances/providers/Microsoft.DataMigration/read"),
		// 			Display: &armdatamigration.OperationsDisplayDefinition{
		// 				Description: to.Ptr("Retrieve the Database Migration resource"),
		// 				Operation: to.Ptr("Get the Database Migration resource"),
		// 				Resource: to.Ptr("Database Migration Resource"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Sql/managedInstances/providers/Microsoft.DataMigration/read"),
		// 			Display: &armdatamigration.OperationsDisplayDefinition{
		// 				Description: to.Ptr("Retrieve Database Migration for the server"),
		// 				Operation: to.Ptr("Get Database Migration in the server"),
		// 				Resource: to.Ptr("Database Migration Resource"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Sql/managedInstances/providers/loginMigrations/cancel/action"),
		// 			Display: &armdatamigration.OperationsDisplayDefinition{
		// 				Description: to.Ptr("Stop ongoing login migration"),
		// 				Operation: to.Ptr("Stop ongoing login migration"),
		// 				Resource: to.Ptr("Login Migration Resource"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Sql/managedInstances/providers/loginMigrations/validate/action"),
		// 			Display: &armdatamigration.OperationsDisplayDefinition{
		// 				Description: to.Ptr("Validate login migration"),
		// 				Operation: to.Ptr("Validate login migration"),
		// 				Resource: to.Ptr("Login Migration Resource"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Sql/managedInstances/providers/loginMigrations/checkNameAvailability/action"),
		// 			Display: &armdatamigration.OperationsDisplayDefinition{
		// 				Operation: to.Ptr("Check Name availability for login migration"),
		// 				Resource: to.Ptr("Login Migration Resource"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Sql/managedInstances/providers/loginMigrations/write"),
		// 			Display: &armdatamigration.OperationsDisplayDefinition{
		// 				Description: to.Ptr("Create or Update Login Migration resource"),
		// 				Operation: to.Ptr("Create or Update Login Migration resource"),
		// 				Resource: to.Ptr("Login Migration Resource"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Sql/managedInstances/providers/loginMigrations/write"),
		// 			Display: &armdatamigration.OperationsDisplayDefinition{
		// 				Description: to.Ptr("Update Login Migration resource"),
		// 				Operation: to.Ptr("Update Login Migration resource"),
		// 				Resource: to.Ptr("Login Migration Resource"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Sql/managedInstances/providers/loginMigrations/delete"),
		// 			Display: &armdatamigration.OperationsDisplayDefinition{
		// 				Description: to.Ptr("Delete Login Migration resource"),
		// 				Operation: to.Ptr("Delete Login Migration resource"),
		// 				Resource: to.Ptr("Login Migration Resource"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Sql/managedInstances/providers/loginMigrations/read"),
		// 			Display: &armdatamigration.OperationsDisplayDefinition{
		// 				Description: to.Ptr("Retrieve the Login Migration resource"),
		// 				Operation: to.Ptr("Get Login Migration resource"),
		// 				Resource: to.Ptr("Login Migration Resource"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.Sql/managedInstances/providers/loginMigrations/read"),
		// 			Display: &armdatamigration.OperationsDisplayDefinition{
		// 				Description: to.Ptr("Retrieve the Login Migrations"),
		// 				Operation: to.Ptr("Get all Login Migration resources by server"),
		// 				Resource: to.Ptr("Login Migration Resource"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("Microsoft.DataMigration/sqlMigrationServices/read"),
		// 			Display: &armdatamigration.OperationsDisplayDefinition{
		// 				Description: to.Ptr("Retrieve all services in the Subscription"),
		// 				Operation: to.Ptr("Get all services in the Subscription"),
		// 				Resource: to.Ptr("SQL Migration Service"),
		// 			},
		// 	}},
		// }
	}
}

type OperationsClientListOptions

type OperationsClientListOptions struct {
}

OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.

type OperationsClientListResponse

type OperationsClientListResponse struct {
	// Result of the request to list SQL operations.
	OperationListResult
}

OperationsClientListResponse contains the response from method OperationsClient.NewListPager.

type OperationsDefinition

type OperationsDefinition struct {
	// Indicates whether the operation is a data action
	IsDataAction *bool

	// READ-ONLY
	Display *OperationsDisplayDefinition

	// READ-ONLY
	Name *string

	// READ-ONLY
	Origin *OperationOrigin

	// READ-ONLY; Dictionary of
	Properties map[string]any
}

func (OperationsDefinition) MarshalJSON

func (o OperationsDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OperationsDefinition.

func (*OperationsDefinition) UnmarshalJSON

func (o *OperationsDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OperationsDefinition.

type OperationsDisplayDefinition

type OperationsDisplayDefinition struct {
	// READ-ONLY
	Description *string

	// READ-ONLY
	Operation *string

	// READ-ONLY
	Provider *string

	// READ-ONLY
	Resource *string
}

func (OperationsDisplayDefinition) MarshalJSON

func (o OperationsDisplayDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OperationsDisplayDefinition.

func (*OperationsDisplayDefinition) UnmarshalJSON

func (o *OperationsDisplayDefinition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OperationsDisplayDefinition.

type OracleConnectionInfo

type OracleConnectionInfo struct {
	// REQUIRED; EZConnect or TNSName connection string.
	DataSource *string

	// REQUIRED; Type of connection info
	Type *string

	// Authentication type to use for connection
	Authentication *AuthenticationType

	// Password credential.
	Password *string

	// port for server
	Port *int32

	// name of the server
	ServerName *string

	// server version
	ServerVersion *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

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

func (o OrphanedUserInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OrphanedUserInfo.

func (*OrphanedUserInfo) UnmarshalJSON

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

	// Additional connection settings
	AdditionalSettings *string

	// Authentication type to use for connection
	Authentication *AuthenticationType

	// Data source
	DataSource *string

	// Name of the database
	DatabaseName *string

	// Whether to encrypt the connection
	EncryptConnection *bool

	// Password credential.
	Password *string

	// server brand version
	ServerBrandVersion *string

	// server version
	ServerVersion *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; The geo-location where the resource lives
	Location *string

	// HTTP strong entity tag value. This is ignored if submitted.
	Etag *string

	// Project properties
	Properties *ProjectProperties

	// Resource tags.
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	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

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; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	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

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

func (p ProjectList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProjectList.

func (*ProjectList) UnmarshalJSON

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

func (p ProjectMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProjectMetadata.

func (*ProjectMetadata) UnmarshalJSON

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

	// Field that defines the Azure active directory application info, used to connect to the target Azure resource
	AzureAuthenticationInfo *AzureActiveDirectoryApp

	// 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; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	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 *TaskType

	// 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 (classic) 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 - Subscription ID that identifies an Azure 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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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),
	// 	},
	// }
}

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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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)
	}
}

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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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),
	// 	},
	// }
}

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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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),
		// 			},
		// 	}},
		// }
	}
}

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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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),
	// 	},
	// }
}

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 ProvisioningState

type ProvisioningState string

ProvisioningState - Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration has started.

const (
	ProvisioningStateCanceled     ProvisioningState = "Canceled"
	ProvisioningStateFailed       ProvisioningState = "Failed"
	ProvisioningStateProvisioning ProvisioningState = "Provisioning"
	ProvisioningStateSucceeded    ProvisioningState = "Succeeded"
	ProvisioningStateUpdating     ProvisioningState = "Updating"
)

func PossibleProvisioningStateValues

func PossibleProvisioningStateValues() []ProvisioningState

PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.

type ProxyResource

type ProxyResource struct {
	// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

ProxyResource - The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location

func (ProxyResource) MarshalJSON

func (p ProxyResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProxyResource.

func (*ProxyResource) UnmarshalJSON

func (p *ProxyResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProxyResource.

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

func (q QueryAnalysisValidationResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type QueryAnalysisValidationResult.

func (*QueryAnalysisValidationResult) UnmarshalJSON

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

func (q QueryExecutionResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type QueryExecutionResult.

func (*QueryExecutionResult) UnmarshalJSON

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

func (q Quota) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Quota.

func (*Quota) UnmarshalJSON

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

func (q QuotaList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type QuotaList.

func (*QuotaList) UnmarshalJSON

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

func (q QuotaName) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type QuotaName.

func (*QuotaName) UnmarshalJSON

func (q *QuotaName) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type QuotaName.

type RegenAuthKeys

type RegenAuthKeys struct {
	// The first authentication key.
	AuthKey1 *string

	// The second authentication key.
	AuthKey2 *string

	// The name of authentication key to generate.
	KeyName *string
}

RegenAuthKeys - An authentication key to regenerate.

func (RegenAuthKeys) MarshalJSON

func (r RegenAuthKeys) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RegenAuthKeys.

func (*RegenAuthKeys) UnmarshalJSON

func (r *RegenAuthKeys) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RegenAuthKeys.

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

func (r ReportableException) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ReportableException.

func (*ReportableException) UnmarshalJSON

func (r *ReportableException) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ReportableException.

type Resource

type Resource struct {
	// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

Resource - Common fields that are returned in the response for all Azure Resource Manager resources

func (Resource) MarshalJSON

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Resource.

func (*Resource) UnmarshalJSON

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 (classic) in a scale set.
	Tier *string
}

ResourceSKU - Describes an available DMS (classic) SKU.

func (ResourceSKU) MarshalJSON

func (r ResourceSKU) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResourceSKU.

func (*ResourceSKU) UnmarshalJSON

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

func (r ResourceSKUCapabilities) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResourceSKUCapabilities.

func (*ResourceSKUCapabilities) UnmarshalJSON

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

func (r ResourceSKUCapacity) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResourceSKUCapacity.

func (*ResourceSKUCapacity) UnmarshalJSON

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

func (r ResourceSKUCosts) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResourceSKUCosts.

func (*ResourceSKUCosts) UnmarshalJSON

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

func (r ResourceSKURestrictions) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResourceSKURestrictions.

func (*ResourceSKURestrictions) UnmarshalJSON

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 - Subscription ID that identifies an Azure 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 (classic) supports.

Generated from API version 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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{
		// 				},
		// 		}},
		// 	}
	}
}

type ResourceSKUsClientListSKUsOptions

type ResourceSKUsClientListSKUsOptions struct {
}

ResourceSKUsClientListSKUsOptions contains the optional parameters for the ResourceSKUsClient.NewListSKUsPager method.

type ResourceSKUsClientListSKUsResponse

type ResourceSKUsClientListSKUsResponse struct {
	// The DMS (classic) 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 (classic) SKUs. Call ListNext() with this to fetch the next page of DMS (classic)
	// SKUs.
	NextLink *string
}

ResourceSKUsResult - The DMS (classic) List SKUs operation response.

func (ResourceSKUsResult) MarshalJSON

func (r ResourceSKUsResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResourceSKUsResult.

func (*ResourceSKUsResult) UnmarshalJSON

func (r *ResourceSKUsResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSKUsResult.

type ResourceType

type ResourceType string
const (
	ResourceTypeMongoToCosmosDbMongo ResourceType = "MongoToCosmosDbMongo"
	ResourceTypeSQLDb                ResourceType = "SqlDb"
	ResourceTypeSQLMi                ResourceType = "SqlMi"
	ResourceTypeSQLVM                ResourceType = "SqlVm"
)

func PossibleResourceTypeValues

func PossibleResourceTypeValues() []ResourceType

PossibleResourceTypeValues returns the possible values for the ResourceType const type.

type SQLBackupFileInfo

type SQLBackupFileInfo struct {
	// READ-ONLY; Copy Duration in seconds
	CopyDuration *int32

	// READ-ONLY; Copy throughput in KBps
	CopyThroughput *float64

	// READ-ONLY; Bytes read
	DataRead *int64

	// READ-ONLY; Bytes written
	DataWritten *int64

	// READ-ONLY; Media family sequence number
	FamilySequenceNumber *int32

	// READ-ONLY; File name.
	FileName *string

	// READ-ONLY; Status of the file. (Initial, Uploading, Uploaded, Restoring, Restored or Skipped)
	Status *string

	// READ-ONLY; File size in bytes
	TotalSize *int64
}

SQLBackupFileInfo - Information of backup file

func (SQLBackupFileInfo) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SQLBackupFileInfo.

func (*SQLBackupFileInfo) UnmarshalJSON

func (s *SQLBackupFileInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SQLBackupFileInfo.

type SQLBackupSetInfo

type SQLBackupSetInfo struct {
	// READ-ONLY; Backup end time.
	BackupFinishDate *time.Time

	// READ-ONLY; Backup set id.
	BackupSetID *string

	// READ-ONLY; Backup start date.
	BackupStartDate *time.Time

	// READ-ONLY; Backup type.
	BackupType *string

	// READ-ONLY; Media family count
	FamilyCount *int32

	// READ-ONLY; First LSN of the backup set.
	FirstLSN *string

	// READ-ONLY; Has Backup Checksums
	HasBackupChecksums *bool

	// READ-ONLY; The reasons why the backup set is ignored
	IgnoreReasons []*string

	// READ-ONLY; Whether this backup set has been restored or not.
	IsBackupRestored *bool

	// READ-ONLY; Last LSN of the backup set.
	LastLSN *string

	// READ-ONLY; List of files in the backup set.
	ListOfBackupFiles []*SQLBackupFileInfo
}

SQLBackupSetInfo - Information of backup set

func (SQLBackupSetInfo) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SQLBackupSetInfo.

func (*SQLBackupSetInfo) UnmarshalJSON

func (s *SQLBackupSetInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SQLBackupSetInfo.

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

	// Port for Server
	Port *int32

	// Represents the ID of an HTTP resource represented by an Azure resource provider.
	ResourceID *string

	// server brand version
	ServerBrandVersion *string

	// name of the server
	ServerName *string

	// server version
	ServerVersion *string

	// 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 SQLConnectionInformation

type SQLConnectionInformation struct {
	// Authentication type.
	Authentication *string

	// Data source.
	DataSource *string

	// Whether to encrypt connection or not.
	EncryptConnection *bool

	// Password to connect to source SQL.
	Password *string

	// Whether to trust server certificate or not.
	TrustServerCertificate *bool

	// User name to connect to source SQL.
	UserName *string
}

SQLConnectionInformation - Source SQL Connection

func (SQLConnectionInformation) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SQLConnectionInformation.

func (*SQLConnectionInformation) UnmarshalJSON

func (s *SQLConnectionInformation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SQLConnectionInformation.

type SQLDbMigrationStatusDetails

type SQLDbMigrationStatusDetails struct {
	// READ-ONLY; Details on progress of ADF copy activities.
	ListOfCopyProgressDetails []*CopyProgressDetails

	// READ-ONLY; Current State of Migration.
	MigrationState *string

	// READ-ONLY; Sql Data Copy errors, if any.
	SQLDataCopyErrors []*string
}

SQLDbMigrationStatusDetails - Detailed status of current Sql Db migration.

func (SQLDbMigrationStatusDetails) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SQLDbMigrationStatusDetails.

func (*SQLDbMigrationStatusDetails) UnmarshalJSON

func (s *SQLDbMigrationStatusDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SQLDbMigrationStatusDetails.

type SQLDbOfflineConfiguration

type SQLDbOfflineConfiguration struct {
	// READ-ONLY; Offline migration
	Offline *bool
}

SQLDbOfflineConfiguration - Offline configuration

func (SQLDbOfflineConfiguration) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SQLDbOfflineConfiguration.

func (*SQLDbOfflineConfiguration) UnmarshalJSON

func (s *SQLDbOfflineConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SQLDbOfflineConfiguration.

type SQLFileShare

type SQLFileShare struct {
	// Password for username to access file share location.
	Password *string

	// Location as SMB share or local drive where backups are placed.
	Path *string

	// Username to access the file share location for backups.
	Username *string
}

SQLFileShare - File share

func (SQLFileShare) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SQLFileShare.

func (*SQLFileShare) UnmarshalJSON

func (s *SQLFileShare) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SQLFileShare.

type SQLMigrationListResult

type SQLMigrationListResult struct {
	// READ-ONLY
	NextLink *string

	// READ-ONLY
	Value []*SQLMigrationService
}

SQLMigrationListResult - A list of SQL Migration Service.

func (SQLMigrationListResult) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SQLMigrationListResult.

func (*SQLMigrationListResult) UnmarshalJSON

func (s *SQLMigrationListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SQLMigrationListResult.

type SQLMigrationService

type SQLMigrationService struct {
	// REQUIRED; The geo-location where the resource lives
	Location *string

	// The SQL Migration Service properties.
	Properties *SQLMigrationServiceProperties

	// Resource tags.
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

SQLMigrationService - A SQL Migration Service.

func (SQLMigrationService) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SQLMigrationService.

func (*SQLMigrationService) UnmarshalJSON

func (s *SQLMigrationService) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SQLMigrationService.

type SQLMigrationServiceProperties

type SQLMigrationServiceProperties struct {
	// READ-ONLY; Current state of the Integration runtime.
	IntegrationRuntimeState *string

	// READ-ONLY; Provisioning state to track the async operation status.
	ProvisioningState *string
}

SQLMigrationServiceProperties - The SQL Migration Service properties.

func (SQLMigrationServiceProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SQLMigrationServiceProperties.

func (*SQLMigrationServiceProperties) UnmarshalJSON

func (s *SQLMigrationServiceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SQLMigrationServiceProperties.

type SQLMigrationServiceUpdate

type SQLMigrationServiceUpdate struct {
	// Dictionary of
	Tags map[string]*string
}

SQLMigrationServiceUpdate - An update to a SQL Migration Service.

func (SQLMigrationServiceUpdate) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SQLMigrationServiceUpdate.

func (*SQLMigrationServiceUpdate) UnmarshalJSON

func (s *SQLMigrationServiceUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SQLMigrationServiceUpdate.

type SQLMigrationServicesClient

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

SQLMigrationServicesClient contains the methods for the SQLMigrationServices group. Don't use this type directly, use NewSQLMigrationServicesClient() instead.

func NewSQLMigrationServicesClient

func NewSQLMigrationServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLMigrationServicesClient, error)

NewSQLMigrationServicesClient creates a new instance of SQLMigrationServicesClient with the specified values.

  • subscriptionID - Subscription ID that identifies an Azure subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*SQLMigrationServicesClient) BeginCreateOrUpdate

BeginCreateOrUpdate - Create or Update Database Migration Service. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • sqlMigrationServiceName - Name of the SQL Migration Service.
  • parameters - Details of SqlMigrationService resource.
  • options - SQLMigrationServicesClientBeginCreateOrUpdateOptions contains the optional parameters for the SQLMigrationServicesClient.BeginCreateOrUpdate method.
Example (CreateOrUpdateSqlMigrationServiceWithMaximumParameters)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CreateOrUpdateSqlMigrationServiceMAX.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewSQLMigrationServicesClient().BeginCreateOrUpdate(ctx, "testrg", "testagent", armdatamigration.SQLMigrationService{
		Location: to.Ptr("northeurope"),
	}, 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.SQLMigrationService = armdatamigration.SQLMigrationService{
	// 	Name: to.Ptr("testagent"),
	// 	Type: to.Ptr("Microsoft.DataMigration/sqlMigrationServices"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent"),
	// 	Location: to.Ptr("northeurope"),
	// 	Tags: map[string]*string{
	// 		"myTag": to.Ptr("myVal"),
	// 	},
	// 	Properties: &armdatamigration.SQLMigrationServiceProperties{
	// 		ProvisioningState: to.Ptr("Succeeded"),
	// 	},
	// }
}
Example (CreateOrUpdateSqlMigrationServiceWithMinimumParameters)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CreateOrUpdateSqlMigrationServiceMIN.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewSQLMigrationServicesClient().BeginCreateOrUpdate(ctx, "testrg", "testagent", armdatamigration.SQLMigrationService{
		Location: to.Ptr("northeurope"),
	}, 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.SQLMigrationService = armdatamigration.SQLMigrationService{
	// 	Name: to.Ptr("testagent"),
	// 	Type: to.Ptr("Microsoft.DataMigration/sqlMigrationServices"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent"),
	// 	Location: to.Ptr("northeurope"),
	// 	Tags: map[string]*string{
	// 		"myTag": to.Ptr("myVal"),
	// 	},
	// 	Properties: &armdatamigration.SQLMigrationServiceProperties{
	// 		ProvisioningState: to.Ptr("Succeeded"),
	// 	},
	// }
}

func (*SQLMigrationServicesClient) BeginDelete

BeginDelete - Delete Database Migration Service. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • sqlMigrationServiceName - Name of the SQL Migration Service.
  • options - SQLMigrationServicesClientBeginDeleteOptions contains the optional parameters for the SQLMigrationServicesClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/DeleteSqlMigrationService.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewSQLMigrationServicesClient().BeginDelete(ctx, "testrg", "service1", 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)
	}
}

func (*SQLMigrationServicesClient) BeginUpdate

BeginUpdate - Update Database Migration Service. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • sqlMigrationServiceName - Name of the SQL Migration Service.
  • parameters - Details of SqlMigrationService resource.
  • options - SQLMigrationServicesClientBeginUpdateOptions contains the optional parameters for the SQLMigrationServicesClient.BeginUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/UpdateSqlMigrationService.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewSQLMigrationServicesClient().BeginUpdate(ctx, "testrg", "testagent", armdatamigration.SQLMigrationServiceUpdate{
		Tags: map[string]*string{
			"mytag": to.Ptr("myval"),
		},
	}, 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.SQLMigrationService = armdatamigration.SQLMigrationService{
	// 	Name: to.Ptr("testagent"),
	// 	Type: to.Ptr("Microsoft.DataMigration/sqlMigrationServices"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/testagent"),
	// 	Location: to.Ptr("northeurope"),
	// 	Tags: map[string]*string{
	// 		"mytag": to.Ptr("myval"),
	// 	},
	// 	Properties: &armdatamigration.SQLMigrationServiceProperties{
	// 	},
	// }
}

func (*SQLMigrationServicesClient) DeleteNode

func (client *SQLMigrationServicesClient) DeleteNode(ctx context.Context, resourceGroupName string, sqlMigrationServiceName string, parameters DeleteNode, options *SQLMigrationServicesClientDeleteNodeOptions) (SQLMigrationServicesClientDeleteNodeResponse, error)

DeleteNode - Delete the integration runtime node. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • sqlMigrationServiceName - Name of the SQL Migration Service.
  • parameters - Details of SqlMigrationService resource.
  • options - SQLMigrationServicesClientDeleteNodeOptions contains the optional parameters for the SQLMigrationServicesClient.DeleteNode method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/DeleteIntegrationRuntimeNode.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewSQLMigrationServicesClient().DeleteNode(ctx, "testrg", "service1", armdatamigration.DeleteNode{
		IntegrationRuntimeName: to.Ptr("IRName"),
		NodeName:               to.Ptr("nodeName"),
	}, 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.DeleteNode = armdatamigration.DeleteNode{
	// 	IntegrationRuntimeName: to.Ptr("IRName"),
	// 	NodeName: to.Ptr("nodeName"),
	// }
}

func (*SQLMigrationServicesClient) Get

func (client *SQLMigrationServicesClient) Get(ctx context.Context, resourceGroupName string, sqlMigrationServiceName string, options *SQLMigrationServicesClientGetOptions) (SQLMigrationServicesClientGetResponse, error)

Get - Retrieve the Database Migration Service If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • sqlMigrationServiceName - Name of the SQL Migration Service.
  • options - SQLMigrationServicesClientGetOptions contains the optional parameters for the SQLMigrationServicesClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/GetSqlMigrationService.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewSQLMigrationServicesClient().Get(ctx, "testrg", "service1", 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.SQLMigrationService = armdatamigration.SQLMigrationService{
	// 	Name: to.Ptr("service1"),
	// 	Type: to.Ptr("Microsoft.DataMigration/sqlMigrationServices"),
	// 	ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/service1"),
	// 	Location: to.Ptr("northeurope"),
	// 	Tags: map[string]*string{
	// 		"myTag": to.Ptr("myVal"),
	// 	},
	// 	Properties: &armdatamigration.SQLMigrationServiceProperties{
	// 		IntegrationRuntimeState: to.Ptr("NeedRegistration"),
	// 		ProvisioningState: to.Ptr("Succeeded"),
	// 	},
	// }
}

func (*SQLMigrationServicesClient) ListAuthKeys

func (client *SQLMigrationServicesClient) ListAuthKeys(ctx context.Context, resourceGroupName string, sqlMigrationServiceName string, options *SQLMigrationServicesClientListAuthKeysOptions) (SQLMigrationServicesClientListAuthKeysResponse, error)

ListAuthKeys - Retrieve the List of Authentication Keys for Self Hosted Integration Runtime. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • sqlMigrationServiceName - Name of the SQL Migration Service.
  • options - SQLMigrationServicesClientListAuthKeysOptions contains the optional parameters for the SQLMigrationServicesClient.ListAuthKeys method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ListAuthKeysSqlMigrationService.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewSQLMigrationServicesClient().ListAuthKeys(ctx, "testrg", "service1", 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.AuthenticationKeys = armdatamigration.AuthenticationKeys{
	// 	AuthKey1: to.Ptr("IR@3c400518-8dce-479f-97f9-83d17c3d8c24@dmsv2test7@ServiceEndpoint=wu.frontend.int.clouddatahub-int.net@Kjvm37BceBapP0z7R2n3zZrvY/M79yo7Hg3rR+LjFFI="),
	// 	AuthKey2: to.Ptr("IR@3c499528-8ace-47xf-97z9-83d17c3d8c24@dmsv2test7@ServiceEndpoint=wu.frontend.int.clouddatahub-int.net@Kjvm37BceBapP0z7R2n3zZrvY/M79yo7Hg3rR+LjFFI="),
	// }
}

func (*SQLMigrationServicesClient) ListMonitoringData

ListMonitoringData - Retrieve the registered Integration Runtime nodes and their monitoring data for a given Database Migration Service. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • sqlMigrationServiceName - Name of the SQL Migration Service.
  • options - SQLMigrationServicesClientListMonitoringDataOptions contains the optional parameters for the SQLMigrationServicesClient.ListMonitoringData method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/GetMonitorDataSqlMigrationService.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewSQLMigrationServicesClient().ListMonitoringData(ctx, "testrg", "service1", 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.IntegrationRuntimeMonitoringData = armdatamigration.IntegrationRuntimeMonitoringData{
	// 	Name: to.Ptr("IntegrationRuntime1"),
	// 	Nodes: []*armdatamigration.NodeMonitoringData{
	// 		{
	// 			AvailableMemoryInMB: to.Ptr[int32](4219),
	// 			ConcurrentJobsLimit: to.Ptr[int32](20),
	// 			ConcurrentJobsRunning: to.Ptr[int32](0),
	// 			CPUUtilization: to.Ptr[int32](66),
	// 			NodeName: to.Ptr("DESKTOP-6AAAAAA"),
	// 			ReceivedBytes: to.Ptr[float64](0.14946500957012177),
	// 			SentBytes: to.Ptr[float64](0.24564747512340546),
	// 		},
	// 		{
	// 			AvailableMemoryInMB: to.Ptr[int32](4219),
	// 			ConcurrentJobsLimit: to.Ptr[int32](20),
	// 			ConcurrentJobsRunning: to.Ptr[int32](0),
	// 			CPUUtilization: to.Ptr[int32](66),
	// 			NodeName: to.Ptr("DESKTOP-6AAAAAB"),
	// 			ReceivedBytes: to.Ptr[float64](0.14946500957012177),
	// 			SentBytes: to.Ptr[float64](0.24564747512340546),
	// 	}},
	// }
}

func (*SQLMigrationServicesClient) NewListByResourceGroupPager

NewListByResourceGroupPager - Retrieve all SQL migration services in the resource group.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • options - SQLMigrationServicesClientListByResourceGroupOptions contains the optional parameters for the SQLMigrationServicesClient.NewListByResourceGroupPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ListByResourceGroupSqlMigrationService.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewSQLMigrationServicesClient().NewListByResourceGroupPager("testrg", 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.SQLMigrationListResult = armdatamigration.SQLMigrationListResult{
		// 	Value: []*armdatamigration.SQLMigrationService{
		// 		{
		// 			Name: to.Ptr("service1"),
		// 			Type: to.Ptr("Microsoft.DataMigration/sqlMigrationServices"),
		// 			ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/service1"),
		// 			Location: to.Ptr("northeurope"),
		// 			Tags: map[string]*string{
		// 				"mytag": to.Ptr("myval"),
		// 			},
		// 			Properties: &armdatamigration.SQLMigrationServiceProperties{
		// 				IntegrationRuntimeState: to.Ptr("NeedRegistration"),
		// 				ProvisioningState: to.Ptr("Succeeded"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("service2"),
		// 			Type: to.Ptr("Microsoft.DataMigration/sqlMigrationServices"),
		// 			ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/sqlMigrationServices/service1"),
		// 			Location: to.Ptr("northeurope"),
		// 			Tags: map[string]*string{
		// 				"mytag": to.Ptr("myval"),
		// 			},
		// 			Properties: &armdatamigration.SQLMigrationServiceProperties{
		// 				IntegrationRuntimeState: to.Ptr("NeedRegistration"),
		// 				ProvisioningState: to.Ptr("Succeeded"),
		// 			},
		// 	}},
		// }
	}
}

func (*SQLMigrationServicesClient) NewListBySubscriptionPager

NewListBySubscriptionPager - Retrieve all SQL migration services in the subscriptions.

Generated from API version 2025-06-30

  • options - SQLMigrationServicesClientListBySubscriptionOptions contains the optional parameters for the SQLMigrationServicesClient.NewListBySubscriptionPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ListBySubscriptionSqlMigrationService.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewSQLMigrationServicesClient().NewListBySubscriptionPager(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.SQLMigrationListResult = armdatamigration.SQLMigrationListResult{
		// 	Value: []*armdatamigration.SQLMigrationService{
		// 		{
		// 			Name: to.Ptr("service1"),
		// 			Type: to.Ptr("Microsoft.DataMigration/sqlMigrationServices"),
		// 			ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg1/providers/Microsoft.DataMigration/sqlMigrationServices/service1"),
		// 			Location: to.Ptr("northeurope"),
		// 			Tags: map[string]*string{
		// 				"mytag": to.Ptr("myval"),
		// 			},
		// 			Properties: &armdatamigration.SQLMigrationServiceProperties{
		// 				IntegrationRuntimeState: to.Ptr("NeedRegistration"),
		// 				ProvisioningState: to.Ptr("Succeeded"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("service2"),
		// 			Type: to.Ptr("Microsoft.DataMigration/sqlMigrationServices"),
		// 			ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg2/providers/Microsoft.DataMigration/sqlMigrationServices/service2"),
		// 			Location: to.Ptr("northeurope"),
		// 			Tags: map[string]*string{
		// 				"mytag": to.Ptr("myval"),
		// 			},
		// 			Properties: &armdatamigration.SQLMigrationServiceProperties{
		// 				IntegrationRuntimeState: to.Ptr("NeedRegistration"),
		// 				ProvisioningState: to.Ptr("Succeeded"),
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("service3"),
		// 			Type: to.Ptr("Microsoft.DataMigration/sqlMigrationServices"),
		// 			ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg2/providers/Microsoft.DataMigration/sqlMigrationServices/service3"),
		// 			Location: to.Ptr("northeurope"),
		// 			Tags: map[string]*string{
		// 				"mytag": to.Ptr("myval"),
		// 			},
		// 			Properties: &armdatamigration.SQLMigrationServiceProperties{
		// 				IntegrationRuntimeState: to.Ptr("NeedRegistration"),
		// 				ProvisioningState: to.Ptr("Succeeded"),
		// 			},
		// 	}},
		// }
	}
}

func (*SQLMigrationServicesClient) NewListMigrationsPager

func (client *SQLMigrationServicesClient) NewListMigrationsPager(resourceGroupName string, sqlMigrationServiceName string, options *SQLMigrationServicesClientListMigrationsOptions) *runtime.Pager[SQLMigrationServicesClientListMigrationsResponse]

NewListMigrationsPager - Retrieve the List of database migrations attached to the service.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • sqlMigrationServiceName - Name of the SQL Migration Service.
  • options - SQLMigrationServicesClientListMigrationsOptions contains the optional parameters for the SQLMigrationServicesClient.NewListMigrationsPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ListMigrationsBySqlMigrationService.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewSQLMigrationServicesClient().NewListMigrationsPager("testrg", "service1", 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.DatabaseMigrationListResult = armdatamigration.DatabaseMigrationListResult{
		// 	Value: []*armdatamigration.DatabaseMigration{
		// 		{
		// 			Name: to.Ptr("targetdb"),
		// 			Type: to.Ptr("Microsoft.DataMigration/dataMigrations"),
		// 			ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/miname/providers/Microsoft.DataMigration/databaseMigrations/targetdb"),
		// 			Properties: &armdatamigration.DatabaseMigrationPropertiesSQLMi{
		// 				EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
		// 				Kind: to.Ptr(armdatamigration.ResourceTypeSQLMi),
		// 				MigrationOperationID: to.Ptr("858ba109-5ab7-4fa1-8aea-bea487cacdcd"),
		// 				MigrationStatus: to.Ptr("InProgress"),
		// 				Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/miname"),
		// 				StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
		// 				SourceDatabaseName: to.Ptr("sourcename"),
		// 				MigrationStatusDetails: &armdatamigration.MigrationStatusDetails{
		// 					ActiveBackupSets: []*armdatamigration.SQLBackupSetInfo{
		// 					},
		// 					IsFullBackupRestored: to.Ptr(false),
		// 					MigrationState: to.Ptr("WaitForFullBackupUploadOperation"),
		// 				},
		// 			},
		// 		},
		// 		{
		// 			Name: to.Ptr("targetdb"),
		// 			Type: to.Ptr("Microsoft.DataMigration/dataMigrations"),
		// 			ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/miname/providers/Microsoft.DataMigration/databaseMigrations/targetdb"),
		// 			Properties: &armdatamigration.DatabaseMigrationPropertiesSQLMi{
		// 				EndedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
		// 				Kind: to.Ptr(armdatamigration.ResourceTypeSQLMi),
		// 				MigrationOperationID: to.Ptr("858ba109-5ab7-4fa1-8aea-bea487cacdcd"),
		// 				MigrationStatus: to.Ptr("InProgress"),
		// 				Scope: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/miname"),
		// 				StartedOn: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1-01-01T08:00:00.000Z"); return t}()),
		// 				SourceDatabaseName: to.Ptr("sourcename"),
		// 				MigrationStatusDetails: &armdatamigration.MigrationStatusDetails{
		// 					ActiveBackupSets: []*armdatamigration.SQLBackupSetInfo{
		// 					},
		// 					IsFullBackupRestored: to.Ptr(false),
		// 					MigrationState: to.Ptr("WaitForFullBackupUploadOperation"),
		// 				},
		// 			},
		// 	}},
		// }
	}
}

func (*SQLMigrationServicesClient) RegenerateAuthKeys

func (client *SQLMigrationServicesClient) RegenerateAuthKeys(ctx context.Context, resourceGroupName string, sqlMigrationServiceName string, parameters RegenAuthKeys, options *SQLMigrationServicesClientRegenerateAuthKeysOptions) (SQLMigrationServicesClientRegenerateAuthKeysResponse, error)

RegenerateAuthKeys - Regenerate a new set of Authentication Keys for Self Hosted Integration Runtime. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-06-30

  • resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
  • sqlMigrationServiceName - Name of the SQL Migration Service.
  • parameters - Details of SqlMigrationService resource.
  • options - SQLMigrationServicesClientRegenerateAuthKeysOptions contains the optional parameters for the SQLMigrationServicesClient.RegenerateAuthKeys method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/RegenAuthKeysSqlMigrationService.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewSQLMigrationServicesClient().RegenerateAuthKeys(ctx, "testrg", "service1", armdatamigration.RegenAuthKeys{
		KeyName: to.Ptr("authKey1"),
	}, 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.RegenAuthKeys = armdatamigration.RegenAuthKeys{
	// 	AuthKey1: to.Ptr("IR@3c400538-8dce-479f-97f9-8abcd@dmsv2test7@ServiceEndpoint=wu.frontend.int.clouddatahub-int.net@KXYZ="),
	// }
}

type SQLMigrationServicesClientBeginCreateOrUpdateOptions

type SQLMigrationServicesClientBeginCreateOrUpdateOptions struct {
	// Resumes the long-running operation from the provided token.
	ResumeToken string
}

SQLMigrationServicesClientBeginCreateOrUpdateOptions contains the optional parameters for the SQLMigrationServicesClient.BeginCreateOrUpdate method.

type SQLMigrationServicesClientBeginDeleteOptions

type SQLMigrationServicesClientBeginDeleteOptions struct {
	// Resumes the long-running operation from the provided token.
	ResumeToken string
}

SQLMigrationServicesClientBeginDeleteOptions contains the optional parameters for the SQLMigrationServicesClient.BeginDelete method.

type SQLMigrationServicesClientBeginUpdateOptions

type SQLMigrationServicesClientBeginUpdateOptions struct {
	// Resumes the long-running operation from the provided token.
	ResumeToken string
}

SQLMigrationServicesClientBeginUpdateOptions contains the optional parameters for the SQLMigrationServicesClient.BeginUpdate method.

type SQLMigrationServicesClientCreateOrUpdateResponse

type SQLMigrationServicesClientCreateOrUpdateResponse struct {
	// A SQL Migration Service.
	SQLMigrationService
}

SQLMigrationServicesClientCreateOrUpdateResponse contains the response from method SQLMigrationServicesClient.BeginCreateOrUpdate.

type SQLMigrationServicesClientDeleteNodeOptions

type SQLMigrationServicesClientDeleteNodeOptions struct {
}

SQLMigrationServicesClientDeleteNodeOptions contains the optional parameters for the SQLMigrationServicesClient.DeleteNode method.

type SQLMigrationServicesClientDeleteNodeResponse

type SQLMigrationServicesClientDeleteNodeResponse struct {
	// Details of node to be deleted.
	DeleteNode
}

SQLMigrationServicesClientDeleteNodeResponse contains the response from method SQLMigrationServicesClient.DeleteNode.

type SQLMigrationServicesClientDeleteResponse

type SQLMigrationServicesClientDeleteResponse struct {
}

SQLMigrationServicesClientDeleteResponse contains the response from method SQLMigrationServicesClient.BeginDelete.

type SQLMigrationServicesClientGetOptions

type SQLMigrationServicesClientGetOptions struct {
}

SQLMigrationServicesClientGetOptions contains the optional parameters for the SQLMigrationServicesClient.Get method.

type SQLMigrationServicesClientGetResponse

type SQLMigrationServicesClientGetResponse struct {
	// A SQL Migration Service.
	SQLMigrationService
}

SQLMigrationServicesClientGetResponse contains the response from method SQLMigrationServicesClient.Get.

type SQLMigrationServicesClientListAuthKeysOptions

type SQLMigrationServicesClientListAuthKeysOptions struct {
}

SQLMigrationServicesClientListAuthKeysOptions contains the optional parameters for the SQLMigrationServicesClient.ListAuthKeys method.

type SQLMigrationServicesClientListAuthKeysResponse

type SQLMigrationServicesClientListAuthKeysResponse struct {
	// An authentication key.
	AuthenticationKeys
}

SQLMigrationServicesClientListAuthKeysResponse contains the response from method SQLMigrationServicesClient.ListAuthKeys.

type SQLMigrationServicesClientListByResourceGroupOptions

type SQLMigrationServicesClientListByResourceGroupOptions struct {
}

SQLMigrationServicesClientListByResourceGroupOptions contains the optional parameters for the SQLMigrationServicesClient.NewListByResourceGroupPager method.

type SQLMigrationServicesClientListByResourceGroupResponse

type SQLMigrationServicesClientListByResourceGroupResponse struct {
	// A list of SQL Migration Service.
	SQLMigrationListResult
}

SQLMigrationServicesClientListByResourceGroupResponse contains the response from method SQLMigrationServicesClient.NewListByResourceGroupPager.

type SQLMigrationServicesClientListBySubscriptionOptions

type SQLMigrationServicesClientListBySubscriptionOptions struct {
}

SQLMigrationServicesClientListBySubscriptionOptions contains the optional parameters for the SQLMigrationServicesClient.NewListBySubscriptionPager method.

type SQLMigrationServicesClientListBySubscriptionResponse

type SQLMigrationServicesClientListBySubscriptionResponse struct {
	// A list of SQL Migration Service.
	SQLMigrationListResult
}

SQLMigrationServicesClientListBySubscriptionResponse contains the response from method SQLMigrationServicesClient.NewListBySubscriptionPager.

type SQLMigrationServicesClientListMigrationsOptions

type SQLMigrationServicesClientListMigrationsOptions struct {
}

SQLMigrationServicesClientListMigrationsOptions contains the optional parameters for the SQLMigrationServicesClient.NewListMigrationsPager method.

type SQLMigrationServicesClientListMigrationsResponse

type SQLMigrationServicesClientListMigrationsResponse struct {
	// A list of Database Migrations.
	DatabaseMigrationListResult
}

SQLMigrationServicesClientListMigrationsResponse contains the response from method SQLMigrationServicesClient.NewListMigrationsPager.

type SQLMigrationServicesClientListMonitoringDataOptions

type SQLMigrationServicesClientListMonitoringDataOptions struct {
}

SQLMigrationServicesClientListMonitoringDataOptions contains the optional parameters for the SQLMigrationServicesClient.ListMonitoringData method.

type SQLMigrationServicesClientListMonitoringDataResponse

type SQLMigrationServicesClientListMonitoringDataResponse struct {
	// Integration Runtime Monitoring Data.
	IntegrationRuntimeMonitoringData
}

SQLMigrationServicesClientListMonitoringDataResponse contains the response from method SQLMigrationServicesClient.ListMonitoringData.

type SQLMigrationServicesClientRegenerateAuthKeysOptions

type SQLMigrationServicesClientRegenerateAuthKeysOptions struct {
}

SQLMigrationServicesClientRegenerateAuthKeysOptions contains the optional parameters for the SQLMigrationServicesClient.RegenerateAuthKeys method.

type SQLMigrationServicesClientRegenerateAuthKeysResponse

type SQLMigrationServicesClientRegenerateAuthKeysResponse struct {
	// An authentication key to regenerate.
	RegenAuthKeys
}

SQLMigrationServicesClientRegenerateAuthKeysResponse contains the response from method SQLMigrationServicesClient.RegenerateAuthKeys.

type SQLMigrationServicesClientUpdateResponse

type SQLMigrationServicesClientUpdateResponse struct {
	// A SQL Migration Service.
	SQLMigrationService
}

SQLMigrationServicesClientUpdateResponse contains the response from method SQLMigrationServicesClient.BeginUpdate.

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

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

MarshalJSON implements the json.Marshaller interface for type SQLMigrationTaskInput.

func (*SQLMigrationTaskInput) UnmarshalJSON

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 (classic) 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

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

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

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

MarshalJSON implements the json.Marshaller interface for type SchemaComparisonValidationResultType.

func (*SchemaComparisonValidationResultType) UnmarshalJSON

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

	// Name of the file resource containing the uploaded schema file
	FileName *string

	// Option on how to migrate the schema
	SchemaOption *SchemaMigrationOption
}

SchemaMigrationSetting - Settings for migrating schema from source to target

func (SchemaMigrationSetting) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SchemaMigrationSetting.

func (*SchemaMigrationSetting) UnmarshalJSON

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

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

MarshalJSON implements the json.Marshaller interface for type SelectedCertificateInput.

func (*SelectedCertificateInput) UnmarshalJSON

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"
	ServerLevelPermissionsGroupMigrationFromSQLServerToAzureVM     ServerLevelPermissionsGroup = "MigrationFromSqlServerToAzureVM"
)

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

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

MarshalJSON implements the json.Marshaller interface for type ServerProperties.

func (*ServerProperties) UnmarshalJSON

func (s *ServerProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ServerProperties.

type Service

type Service struct {
	// REQUIRED; The geo-location where the resource lives
	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; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

Service - An Azure Database Migration Service (classic) resource

func (Service) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type Service.

func (*Service) UnmarshalJSON

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

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

MarshalJSON implements the json.Marshaller interface for type ServiceList.

func (*ServiceList) UnmarshalJSON

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 Azure Database Migration Service (classic)

func (ServiceOperation) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ServiceOperation.

func (*ServiceOperation) UnmarshalJSON

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

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

MarshalJSON implements the json.Marshaller interface for type ServiceOperationDisplay.

func (*ServiceOperationDisplay) UnmarshalJSON

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

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

MarshalJSON implements the json.Marshaller interface for type ServiceOperationList.

func (*ServiceOperationList) UnmarshalJSON

func (s *ServiceOperationList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ServiceOperationList.

type ServiceProperties

type ServiceProperties struct {
	// The time delay before the service is auto-stopped when idle.
	AutoStopDelay *string

	// Whether service resources should be deleted when stopped. (Turned on by default)
	DeleteResourcesOnStop *bool

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

	// The ID of the Microsoft.Network/virtualNetworks/subnets resource to which the service should be joined
	VirtualSubnetID *string

	// READ-ONLY; The resource's provisioning state
	ProvisioningState *ServiceProvisioningState
}

ServiceProperties - Properties of the Azure Database Migration Service (classic) instance

func (ServiceProperties) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type ServiceProperties.

func (*ServiceProperties) UnmarshalJSON

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

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

MarshalJSON implements the json.Marshaller interface for type ServiceSKU.

func (*ServiceSKU) UnmarshalJSON

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

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

MarshalJSON implements the json.Marshaller interface for type ServiceSKUList.

func (*ServiceSKUList) UnmarshalJSON

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 {
	// Agent Configuration
	AgentConfiguration any

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

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

MarshalJSON implements the json.Marshaller interface for type ServiceStatusResponse.

func (*ServiceStatusResponse) UnmarshalJSON

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 - Subscription ID that identifies an Azure 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 (classic) 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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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.ConnectToSourceMySQLTaskProperties{
	// 		State: to.Ptr(armdatamigration.TaskStateQueued),
	// 		TaskType: to.Ptr(armdatamigration.TaskTypeConnectToSourceMySQL),
	// 		Input: &armdatamigration.ConnectToSourceMySQLTaskInput{
	// 			SourceConnectionInfo: &armdatamigration.MySQLConnectionInfo{
	// 				Type: to.Ptr("MySqlConnectionInfo"),
	// 				Port: to.Ptr[int32](3306),
	// 				ServerName: to.Ptr("localhost"),
	// 			},
	// 		},
	// 	},
	// }
}

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 (classic) 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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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.ConnectToSourceMySQLTaskProperties{
			TaskType: to.Ptr(armdatamigration.TaskTypeConnectToSourceMySQL),
			Input: &armdatamigration.ConnectToSourceMySQLTaskInput{
				SourceConnectionInfo: &armdatamigration.MySQLConnectionInfo{
					Type:       to.Ptr("MySqlConnectionInfo"),
					Port:       to.Ptr[int32](3306),
					ServerName: to.Ptr("localhost"),
				},
			},
		},
	}, 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.ConnectToSourceMySQLTaskProperties{
	// 		State: to.Ptr(armdatamigration.TaskStateQueued),
	// 		TaskType: to.Ptr(armdatamigration.TaskTypeConnectToSourceMySQL),
	// 		Input: &armdatamigration.ConnectToSourceMySQLTaskInput{
	// 			SourceConnectionInfo: &armdatamigration.MySQLConnectionInfo{
	// 				Type: to.Ptr("MySqlConnectionInfo"),
	// 				Port: to.Ptr[int32](3306),
	// 				ServerName: to.Ptr("localhost"),
	// 			},
	// 		},
	// 	},
	// }
}

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 (classic) 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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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)
	}
}

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 (classic) instance. The GET method retrieves information about a service task. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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.ConnectToSourceMySQLTaskProperties{
	// 		State: to.Ptr(armdatamigration.TaskStateQueued),
	// 		TaskType: to.Ptr(armdatamigration.TaskTypeConnectToSourceMySQL),
	// 		Input: &armdatamigration.ConnectToSourceMySQLTaskInput{
	// 			SourceConnectionInfo: &armdatamigration.MySQLConnectionInfo{
	// 				Type: to.Ptr("MySqlConnectionInfo"),
	// 				Port: to.Ptr[int32](3306),
	// 				ServerName: to.Ptr("localhost"),
	// 			},
	// 		},
	// 	},
	// }
}

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 Azure Database Migration Service (classic). 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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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.ConnectToSourceMySQLTaskProperties{
		// 				State: to.Ptr(armdatamigration.TaskStateQueued),
		// 				TaskType: to.Ptr(armdatamigration.TaskTypeConnectToSourceMySQL),
		// 				Input: &armdatamigration.ConnectToSourceMySQLTaskInput{
		// 					SourceConnectionInfo: &armdatamigration.MySQLConnectionInfo{
		// 						Type: to.Ptr("MySqlConnectionInfo"),
		// 						Port: to.Ptr[int32](3306),
		// 						ServerName: to.Ptr("localhost"),
		// 					},
		// 				},
		// 			},
		// 	}},
		// }
	}
}

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 (classic) 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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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.ConnectToSourceMySQLTaskProperties{
			TaskType: to.Ptr(armdatamigration.TaskTypeConnectToSourceMySQL),
			Input: &armdatamigration.ConnectToSourceMySQLTaskInput{
				SourceConnectionInfo: &armdatamigration.MySQLConnectionInfo{
					Type:       to.Ptr("MySqlConnectionInfo"),
					Port:       to.Ptr[int32](3306),
					ServerName: to.Ptr("localhost"),
				},
			},
		},
	}, 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.ConnectToSourceMySQLTaskProperties{
	// 		State: to.Ptr(armdatamigration.TaskStateQueued),
	// 		TaskType: to.Ptr(armdatamigration.TaskTypeConnectToSourceMySQL),
	// 		Input: &armdatamigration.ConnectToSourceMySQLTaskInput{
	// 			SourceConnectionInfo: &armdatamigration.MySQLConnectionInfo{
	// 				Type: to.Ptr("MySqlConnectionInfo"),
	// 				Port: to.Ptr[int32](3306),
	// 				ServerName: to.Ptr("localhost"),
	// 			},
	// 		},
	// 	},
	// }
}

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 - Subscription ID that identifies an Azure 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 Azure Database Migration Service (classic). 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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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"),
	// 	},
	// }
}

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 Azure Database Migration Service (classic). 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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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)
	}
}

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 Azure Database Migration Service (classic). 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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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)
	}
}

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 Azure Database Migration Service (classic). 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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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)
	}
}

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 Azure Database Migration Service (classic). 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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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"),
	// 	},
	// }
}

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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_CheckChildrenNameAvailability.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewServicesClient().CheckChildrenNameAvailability(ctx, "DmsSdkRg", "DmsSdkService", armdatamigration.NameAvailabilityRequest{
		Name: to.Ptr("Task1"),
		Type: to.Ptr("tasks"),
	}, 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),
	// }
}

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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_CheckNameAvailability.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/v2"
)

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("", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewServicesClient().CheckNameAvailability(ctx, "eastus", armdatamigration.NameAvailabilityRequest{
		Name: to.Ptr("DmsSdkService"),
		Type: to.Ptr("services"),
	}, 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),
	// }
}

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 Azure Database Migration Service (classic). 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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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"),
	// 	}
}

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 Azure Database Migration Service (classic). The GET method retrieves information about a service instance. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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"),
	// 	},
	// }
}

func (*ServicesClient) NewListByResourceGroupPager

NewListByResourceGroupPager - The Services resource is the top-level resource that represents the Azure Database Migration Service (classic). This method returns a list of service resources in a resource group.

Generated from API version 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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"),
		// 			},
		// 	}},
		// }
	}
}

func (*ServicesClient) NewListPager

NewListPager - The services resource is the top-level resource that represents the Azure Database Migration Service (classic). This method returns a list of service resources in a subscription.

Generated from API version 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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"),
		// 			},
		// 	}},
		// }
	}
}

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 (classic). The skus action returns the list of SKUs that a service resource can be updated to.

Generated from API version 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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"),
		// 			},
		// 	}},
		// }
	}
}

type ServicesClientBeginCreateOrUpdateOptions

type ServicesClientBeginCreateOrUpdateOptions struct {
	// Resumes the long-running operation 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 long-running operation from the provided token.
	ResumeToken string
}

ServicesClientBeginDeleteOptions contains the optional parameters for the ServicesClient.BeginDelete method.

type ServicesClientBeginStartOptions

type ServicesClientBeginStartOptions struct {
	// Resumes the long-running operation from the provided token.
	ResumeToken string
}

ServicesClientBeginStartOptions contains the optional parameters for the ServicesClient.BeginStart method.

type ServicesClientBeginStopOptions

type ServicesClientBeginStopOptions struct {
	// Resumes the long-running operation from the provided token.
	ResumeToken string
}

ServicesClientBeginStopOptions contains the optional parameters for the ServicesClient.BeginStop method.

type ServicesClientBeginUpdateOptions

type ServicesClientBeginUpdateOptions struct {
	// Resumes the long-running operation 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 {
	// An Azure Database Migration Service (classic) 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 {
	// An Azure Database Migration Service (classic) 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 {
	// An Azure Database Migration Service (classic) 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 SourceLocation

type SourceLocation struct {
	// Source Azure Blob.
	AzureBlob *AzureBlob

	// Source File share.
	FileShare *SQLFileShare

	// READ-ONLY; Backup storage Type.
	FileStorageType *string
}

SourceLocation - Source Location details of backups.

func (SourceLocation) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SourceLocation.

func (*SourceLocation) UnmarshalJSON

func (s *SourceLocation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SourceLocation.

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 (classic)
	SsisStoreType *SsisStoreType
}

SsisMigrationInfo - SSIS migration info with SSIS store type, overwrite policy.

func (SsisMigrationInfo) MarshalJSON

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

MarshalJSON implements the json.Marshaller interface for type SsisMigrationInfo.

func (*SsisMigrationInfo) UnmarshalJSON

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 (classic) 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 (classic)

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

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

MarshalJSON implements the json.Marshaller interface for type StartMigrationScenarioServerRoleResult.

func (*StartMigrationScenarioServerRoleResult) UnmarshalJSON

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

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

MarshalJSON implements the json.Marshaller interface for type SyncMigrationDatabaseErrorEvent.

func (*SyncMigrationDatabaseErrorEvent) UnmarshalJSON

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 TargetLocation

type TargetLocation struct {
	// Storage Account Key.
	AccountKey *string

	// Resource Id of the storage account copying backups.
	StorageAccountResourceID *string
}

TargetLocation - Target Location details for optional copy of backups

func (TargetLocation) MarshalJSON

func (t TargetLocation) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TargetLocation.

func (*TargetLocation) UnmarshalJSON

func (t *TargetLocation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TargetLocation.

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

func (t TaskList) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TaskList.

func (*TaskList) UnmarshalJSON

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 TaskType

type TaskType string

TaskType - Task type.

const (
	TaskTypeConnectMongoDb                                     TaskType = "Connect.MongoDb"
	TaskTypeConnectToSourceMySQL                               TaskType = "ConnectToSource.MySql"
	TaskTypeConnectToSourceOracleSync                          TaskType = "ConnectToSource.Oracle.Sync"
	TaskTypeConnectToSourcePostgreSQLSync                      TaskType = "ConnectToSource.PostgreSql.Sync"
	TaskTypeConnectToSourceSQLServer                           TaskType = "ConnectToSource.SqlServer"
	TaskTypeConnectToSourceSQLServerSync                       TaskType = "ConnectToSource.SqlServer.Sync"
	TaskTypeConnectToTargetAzureDbForMySQL                     TaskType = "ConnectToTarget.AzureDbForMySql"
	TaskTypeConnectToTargetAzureDbForPostgreSQLSync            TaskType = "ConnectToTarget.AzureDbForPostgreSql.Sync"
	TaskTypeConnectToTargetAzureSQLDbMI                        TaskType = "ConnectToTarget.AzureSqlDbMI"
	TaskTypeConnectToTargetAzureSQLDbMISyncLRS                 TaskType = "ConnectToTarget.AzureSqlDbMI.Sync.LRS"
	TaskTypeConnectToTargetOracleAzureDbForPostgreSQLSync      TaskType = "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync"
	TaskTypeConnectToTargetSQLDb                               TaskType = "ConnectToTarget.SqlDb"
	TaskTypeConnectToTargetSQLDbSync                           TaskType = "ConnectToTarget.SqlDb.Sync"
	TaskTypeGetTDECertificatesSQL                              TaskType = "GetTDECertificates.Sql"
	TaskTypeGetUserTablesAzureSQLDbSync                        TaskType = "GetUserTables.AzureSqlDb.Sync"
	TaskTypeGetUserTablesMySQL                                 TaskType = "GetUserTablesMySql"
	TaskTypeGetUserTablesOracle                                TaskType = "GetUserTablesOracle"
	TaskTypeGetUserTablesPostgreSQL                            TaskType = "GetUserTablesPostgreSql"
	TaskTypeGetUserTablesSQL                                   TaskType = "GetUserTables.Sql"
	TaskTypeMigrateMongoDb                                     TaskType = "Migrate.MongoDb"
	TaskTypeMigrateMySQLAzureDbForMySQL                        TaskType = "Migrate.MySql.AzureDbForMySql"
	TaskTypeMigrateMySQLAzureDbForMySQLSync                    TaskType = "Migrate.MySql.AzureDbForMySql.Sync"
	TaskTypeMigrateOracleAzureDbForPostgreSQLSync              TaskType = "Migrate.Oracle.AzureDbForPostgreSql.Sync"
	TaskTypeMigratePostgreSQLAzureDbForPostgreSQLSyncV2        TaskType = "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2"
	TaskTypeMigrateSQLServerAzureSQLDbMI                       TaskType = "Migrate.SqlServer.AzureSqlDbMI"
	TaskTypeMigrateSQLServerAzureSQLDbMISyncLRS                TaskType = "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS"
	TaskTypeMigrateSQLServerAzureSQLDbSync                     TaskType = "Migrate.SqlServer.AzureSqlDb.Sync"
	TaskTypeMigrateSQLServerSQLDb                              TaskType = "Migrate.SqlServer.SqlDb"
	TaskTypeMigrateSchemaSQLServerSQLDb                        TaskType = "MigrateSchemaSqlServerSqlDb"
	TaskTypeMigrateSsis                                        TaskType = "Migrate.Ssis"
	TaskTypeServiceCheckOCI                                    TaskType = "Service.Check.OCI"
	TaskTypeServiceInstallOCI                                  TaskType = "Service.Install.OCI"
	TaskTypeServiceUploadOCI                                   TaskType = "Service.Upload.OCI"
	TaskTypeValidateMigrationInputSQLServerAzureSQLDbMI        TaskType = "ValidateMigrationInput.SqlServer.AzureSqlDbMI"
	TaskTypeValidateMigrationInputSQLServerAzureSQLDbMISyncLRS TaskType = "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS"
	TaskTypeValidateMigrationInputSQLServerSQLDbSync           TaskType = "ValidateMigrationInput.SqlServer.SqlDb.Sync"
	TaskTypeValidateMongoDb                                    TaskType = "Validate.MongoDb"
	TaskTypeValidateOracleAzureDbPostgreSQLSync                TaskType = "Validate.Oracle.AzureDbPostgreSql.Sync"
)

func PossibleTaskTypeValues

func PossibleTaskTypeValues() []TaskType

PossibleTaskTypeValues returns the possible values for the TaskType 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 - Subscription ID that identifies an Azure 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 (classic) 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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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(armdatamigration.TaskTypeConnectToTargetSQLDb),
	// 		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),
	// 			},
	// 		},
	// 	},
	// }
}

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 (classic) instance. This method executes a command on a running task. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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(armdatamigration.CommandTypeMigrateSyncCompleteDatabase),
		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(armdatamigration.CommandTypeMigrateSyncCompleteDatabase),
	// 		State: to.Ptr(armdatamigration.CommandStateAccepted),
	// 		Input: &armdatamigration.MigrateSyncCompleteCommandInput{
	// 			DatabaseName: to.Ptr("TestDatabase"),
	// 		},
	// 	},
	// 	                        }
}

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 (classic) 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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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(armdatamigration.TaskTypeConnectToTargetSQLDb),
			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(armdatamigration.TaskTypeConnectToTargetSQLDb),
	// 		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),
	// 			},
	// 		},
	// 	},
	// }
}

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 (classic) 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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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)
	}
}

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 (classic) instance. The GET method retrieves information about a task. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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(armdatamigration.TaskTypeConnectToTargetSQLDb),
	// 		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),
	// 			},
	// 		},
	// 	},
	// }
}

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 Azure Database Migration Service (classic). 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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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(armdatamigration.TaskTypeConnectToTargetSQLDb),
		// 				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),
		// 					},
		// 				},
		// 			},
		// 	}},
		// }
	}
}

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 (classic) 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 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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(armdatamigration.TaskTypeConnectToTargetSQLDb),
			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(armdatamigration.TaskTypeConnectToTargetSQLDb),
	// 		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),
	// 			},
	// 		},
	// 	},
	// }
}

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 (classic) 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; The geo-location where the resource lives
	Location *string

	// Resource tags.
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
	SystemData *SystemData

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string
}

TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'

func (TrackedResource) MarshalJSON

func (t TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TrackedResource.

func (*TrackedResource) UnmarshalJSON

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

func (u UploadOCIDriverTaskInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UploadOCIDriverTaskInput.

func (*UploadOCIDriverTaskInput) UnmarshalJSON

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

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 *TaskType

	// 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 - Subscription ID that identifies an Azure 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 Azure Database Migration Service (classic).

Generated from API version 2025-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/930e8030f5058d947fea4e2640725baab8a4561a/specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-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/v2"
)

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("", 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"),
		// 	}},
		// }
	}
}

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 UserAssignedIdentity

type UserAssignedIdentity struct {
	// READ-ONLY; The client ID of the assigned identity.
	ClientID *string

	// READ-ONLY; The principal ID of the assigned identity.
	PrincipalID *string
}

UserAssignedIdentity - User assigned identity properties

func (UserAssignedIdentity) MarshalJSON

func (u UserAssignedIdentity) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type UserAssignedIdentity.

func (*UserAssignedIdentity) UnmarshalJSON

func (u *UserAssignedIdentity) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type UserAssignedIdentity.

type ValidateMigrationInputSQLServerSQLDbSyncTaskProperties

type ValidateMigrationInputSQLServerSQLDbSyncTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *TaskType

	// 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 (classic) 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

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

UnmarshalJSON implements the json.Unmarshaller interface for type ValidateMigrationInputSQLServerSQLMISyncTaskOutput.

type ValidateMigrationInputSQLServerSQLMISyncTaskProperties

type ValidateMigrationInputSQLServerSQLMISyncTaskProperties struct {
	// REQUIRED; Task type.
	TaskType *TaskType

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

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

UnmarshalJSON implements the json.Unmarshaller interface for type ValidateMigrationInputSQLServerSQLMITaskOutput.

type ValidateMigrationInputSQLServerSQLMITaskProperties

type ValidateMigrationInputSQLServerSQLMITaskProperties struct {
	// REQUIRED; Task type.
	TaskType *TaskType

	// 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 *TaskType

	// 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 *TaskType

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

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

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

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

func (v ValidationError) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ValidationError.

func (*ValidationError) UnmarshalJSON

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

func (w WaitStatistics) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type WaitStatistics.

func (*WaitStatistics) UnmarshalJSON

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