v20180319

package
v3.0.908+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Incorrect parameter value.
	INVALIDPARAMETERVALUE = "InvalidParameterValue"

	// The resource is unavailable.
	RESOURCEUNAVAILABLE = "ResourceUnavailable"
)
View Source
const APIVersion = "2018-03-19"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) DeregisterMigrationTask

func (c *Client) DeregisterMigrationTask(request *DeregisterMigrationTaskRequest) (response *DeregisterMigrationTaskResponse, err error)

DeregisterMigrationTask This API is used to cancel the registered migration tasks.

error code that may be returned:

INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCEUNAVAILABLE = "ResourceUnavailable"

func (*Client) DeregisterMigrationTaskWithContext

func (c *Client) DeregisterMigrationTaskWithContext(ctx context.Context, request *DeregisterMigrationTaskRequest) (response *DeregisterMigrationTaskResponse, err error)

DeregisterMigrationTask This API is used to cancel the registered migration tasks.

error code that may be returned:

INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCEUNAVAILABLE = "ResourceUnavailable"

func (*Client) DescribeMigrationTask

func (c *Client) DescribeMigrationTask(request *DescribeMigrationTaskRequest) (response *DescribeMigrationTaskResponse, err error)

DescribeMigrationTask This API is used to obtain the specified migration task details.

error code that may be returned:

INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) DescribeMigrationTaskWithContext

func (c *Client) DescribeMigrationTaskWithContext(ctx context.Context, request *DescribeMigrationTaskRequest) (response *DescribeMigrationTaskResponse, err error)

DescribeMigrationTask This API is used to obtain the specified migration task details.

error code that may be returned:

INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) ListMigrationProject

func (c *Client) ListMigrationProject(request *ListMigrationProjectRequest) (response *ListMigrationProjectResponse, err error)

ListMigrationProject This API is used to obtain the list of migration project names.

error code that may be returned:

INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) ListMigrationProjectWithContext

func (c *Client) ListMigrationProjectWithContext(ctx context.Context, request *ListMigrationProjectRequest) (response *ListMigrationProjectResponse, err error)

ListMigrationProject This API is used to obtain the list of migration project names.

error code that may be returned:

INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) ListMigrationTask

func (c *Client) ListMigrationTask(request *ListMigrationTaskRequest) (response *ListMigrationTaskResponse, err error)

ListMigrationTask This API is used to obtain migration task list.

error code that may be returned:

INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) ListMigrationTaskWithContext

func (c *Client) ListMigrationTaskWithContext(ctx context.Context, request *ListMigrationTaskRequest) (response *ListMigrationTaskResponse, err error)

ListMigrationTask This API is used to obtain migration task list.

error code that may be returned:

INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) ModifyMigrationTaskBelongToProject

func (c *Client) ModifyMigrationTaskBelongToProject(request *ModifyMigrationTaskBelongToProjectRequest) (response *ModifyMigrationTaskBelongToProjectResponse, err error)

ModifyMigrationTaskBelongToProject This API is used to modify the project of a migration task.

error code that may be returned:

INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCEUNAVAILABLE = "ResourceUnavailable"

func (*Client) ModifyMigrationTaskBelongToProjectWithContext

func (c *Client) ModifyMigrationTaskBelongToProjectWithContext(ctx context.Context, request *ModifyMigrationTaskBelongToProjectRequest) (response *ModifyMigrationTaskBelongToProjectResponse, err error)

ModifyMigrationTaskBelongToProject This API is used to modify the project of a migration task.

error code that may be returned:

INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCEUNAVAILABLE = "ResourceUnavailable"

func (*Client) ModifyMigrationTaskStatus

func (c *Client) ModifyMigrationTaskStatus(request *ModifyMigrationTaskStatusRequest) (response *ModifyMigrationTaskStatusResponse, err error)

ModifyMigrationTaskStatus This API is used to update the migration task status.

error code that may be returned:

INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) ModifyMigrationTaskStatusWithContext

func (c *Client) ModifyMigrationTaskStatusWithContext(ctx context.Context, request *ModifyMigrationTaskStatusRequest) (response *ModifyMigrationTaskStatusResponse, err error)

ModifyMigrationTaskStatus This API is used to update the migration task status.

error code that may be returned:

INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) RegisterMigrationTask

func (c *Client) RegisterMigrationTask(request *RegisterMigrationTaskRequest) (response *RegisterMigrationTaskResponse, err error)

RegisterMigrationTask This API is used to register a migration task.

error code that may be returned:

INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCEUNAVAILABLE = "ResourceUnavailable"

func (*Client) RegisterMigrationTaskWithContext

func (c *Client) RegisterMigrationTaskWithContext(ctx context.Context, request *RegisterMigrationTaskRequest) (response *RegisterMigrationTaskResponse, err error)

RegisterMigrationTask This API is used to register a migration task.

error code that may be returned:

INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCEUNAVAILABLE = "ResourceUnavailable"

type DeregisterMigrationTaskRequest

type DeregisterMigrationTaskRequest struct {
	*tchttp.BaseRequest

	// Task ID
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`
}

func NewDeregisterMigrationTaskRequest

func NewDeregisterMigrationTaskRequest() (request *DeregisterMigrationTaskRequest)

func (*DeregisterMigrationTaskRequest) FromJsonString

func (r *DeregisterMigrationTaskRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeregisterMigrationTaskRequest) ToJsonString

func (r *DeregisterMigrationTaskRequest) ToJsonString() string

type DeregisterMigrationTaskRequestParams

type DeregisterMigrationTaskRequestParams struct {
	// Task ID
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`
}

Predefined struct for user

type DeregisterMigrationTaskResponse

type DeregisterMigrationTaskResponse struct {
	*tchttp.BaseResponse
	Response *DeregisterMigrationTaskResponseParams `json:"Response"`
}

func NewDeregisterMigrationTaskResponse

func NewDeregisterMigrationTaskResponse() (response *DeregisterMigrationTaskResponse)

func (*DeregisterMigrationTaskResponse) FromJsonString

func (r *DeregisterMigrationTaskResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeregisterMigrationTaskResponse) ToJsonString

func (r *DeregisterMigrationTaskResponse) ToJsonString() string

type DeregisterMigrationTaskResponseParams

type DeregisterMigrationTaskResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeMigrationTaskRequest

type DescribeMigrationTaskRequest struct {
	*tchttp.BaseRequest

	// Task ID, such as msp-jitoh33n
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`
}

func NewDescribeMigrationTaskRequest

func NewDescribeMigrationTaskRequest() (request *DescribeMigrationTaskRequest)

func (*DescribeMigrationTaskRequest) FromJsonString

func (r *DescribeMigrationTaskRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeMigrationTaskRequest) ToJsonString

func (r *DescribeMigrationTaskRequest) ToJsonString() string

type DescribeMigrationTaskRequestParams

type DescribeMigrationTaskRequestParams struct {
	// Task ID, such as msp-jitoh33n
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`
}

Predefined struct for user

type DescribeMigrationTaskResponse

type DescribeMigrationTaskResponse struct {
	*tchttp.BaseResponse
	Response *DescribeMigrationTaskResponseParams `json:"Response"`
}

func NewDescribeMigrationTaskResponse

func NewDescribeMigrationTaskResponse() (response *DescribeMigrationTaskResponse)

func (*DescribeMigrationTaskResponse) FromJsonString

func (r *DescribeMigrationTaskResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeMigrationTaskResponse) ToJsonString

func (r *DescribeMigrationTaskResponse) ToJsonString() string

type DescribeMigrationTaskResponseParams

type DescribeMigrationTaskResponseParams struct {
	// Migration details list
	TaskStatus []*TaskStatus `json:"TaskStatus,omitnil,omitempty" name:"TaskStatus"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DstInfo

type DstInfo struct {
	// Migration destination region
	Region *string `json:"Region,omitnil,omitempty" name:"Region"`

	Ip *string `json:"Ip,omitnil,omitempty" name:"Ip"`

	// Migration destination port
	Port *string `json:"Port,omitnil,omitempty" name:"Port"`

	// Migration destination instance ID
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
}

type ListMigrationProjectRequest

type ListMigrationProjectRequest struct {
	*tchttp.BaseRequest

	// The initial number of records, default value: 0
	Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// The number of records returned, default value: 500
	Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
}

func NewListMigrationProjectRequest

func NewListMigrationProjectRequest() (request *ListMigrationProjectRequest)

func (*ListMigrationProjectRequest) FromJsonString

func (r *ListMigrationProjectRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ListMigrationProjectRequest) ToJsonString

func (r *ListMigrationProjectRequest) ToJsonString() string

type ListMigrationProjectRequestParams

type ListMigrationProjectRequestParams struct {
	// The initial number of records, default value: 0
	Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// The number of records returned, default value: 500
	Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`
}

Predefined struct for user

type ListMigrationProjectResponse

type ListMigrationProjectResponse struct {
	*tchttp.BaseResponse
	Response *ListMigrationProjectResponseParams `json:"Response"`
}

func NewListMigrationProjectResponse

func NewListMigrationProjectResponse() (response *ListMigrationProjectResponse)

func (*ListMigrationProjectResponse) FromJsonString

func (r *ListMigrationProjectResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ListMigrationProjectResponse) ToJsonString

func (r *ListMigrationProjectResponse) ToJsonString() string

type ListMigrationProjectResponseParams

type ListMigrationProjectResponseParams struct {
	// Project list
	Projects []*Project `json:"Projects,omitnil,omitempty" name:"Projects"`

	// Total number of projects
	TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ListMigrationTaskRequest

type ListMigrationTaskRequest struct {
	*tchttp.BaseRequest

	// The initial number of records, default value: 0
	Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Number of records, default value: 10
	Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Project ID, the default value is empty.
	ProjectId *uint64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
}

func NewListMigrationTaskRequest

func NewListMigrationTaskRequest() (request *ListMigrationTaskRequest)

func (*ListMigrationTaskRequest) FromJsonString

func (r *ListMigrationTaskRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ListMigrationTaskRequest) ToJsonString

func (r *ListMigrationTaskRequest) ToJsonString() string

type ListMigrationTaskRequestParams

type ListMigrationTaskRequestParams struct {
	// The initial number of records, default value: 0
	Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Number of records, default value: 10
	Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Project ID, the default value is empty.
	ProjectId *uint64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
}

Predefined struct for user

type ListMigrationTaskResponse

type ListMigrationTaskResponse struct {
	*tchttp.BaseResponse
	Response *ListMigrationTaskResponseParams `json:"Response"`
}

func NewListMigrationTaskResponse

func NewListMigrationTaskResponse() (response *ListMigrationTaskResponse)

func (*ListMigrationTaskResponse) FromJsonString

func (r *ListMigrationTaskResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ListMigrationTaskResponse) ToJsonString

func (r *ListMigrationTaskResponse) ToJsonString() string

type ListMigrationTaskResponseParams

type ListMigrationTaskResponseParams struct {
	// Total number of records
	TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// Migration task list
	Tasks []*Task `json:"Tasks,omitnil,omitempty" name:"Tasks"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ModifyMigrationTaskBelongToProjectRequest

type ModifyMigrationTaskBelongToProjectRequest struct {
	*tchttp.BaseRequest

	// Task ID, such as msp-jitoh33n
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`

	// Project ID, such as 10005
	ProjectId *uint64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
}

func NewModifyMigrationTaskBelongToProjectRequest

func NewModifyMigrationTaskBelongToProjectRequest() (request *ModifyMigrationTaskBelongToProjectRequest)

func (*ModifyMigrationTaskBelongToProjectRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyMigrationTaskBelongToProjectRequest) ToJsonString

type ModifyMigrationTaskBelongToProjectRequestParams

type ModifyMigrationTaskBelongToProjectRequestParams struct {
	// Task ID, such as msp-jitoh33n
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`

	// Project ID, such as 10005
	ProjectId *uint64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
}

Predefined struct for user

type ModifyMigrationTaskBelongToProjectResponse

type ModifyMigrationTaskBelongToProjectResponse struct {
	*tchttp.BaseResponse
	Response *ModifyMigrationTaskBelongToProjectResponseParams `json:"Response"`
}

func NewModifyMigrationTaskBelongToProjectResponse

func NewModifyMigrationTaskBelongToProjectResponse() (response *ModifyMigrationTaskBelongToProjectResponse)

func (*ModifyMigrationTaskBelongToProjectResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyMigrationTaskBelongToProjectResponse) ToJsonString

type ModifyMigrationTaskBelongToProjectResponseParams

type ModifyMigrationTaskBelongToProjectResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ModifyMigrationTaskStatusRequest

type ModifyMigrationTaskStatusRequest struct {
	*tchttp.BaseRequest

	// Task status, valid values include `unstart` (migration has not started), `migrating` (migration in progress), `finish` (migration completed) or `fail` (migration failed).
	Status *string `json:"Status,omitnil,omitempty" name:"Status"`

	// Task ID, such as msp-jitoh33n
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`
}

func NewModifyMigrationTaskStatusRequest

func NewModifyMigrationTaskStatusRequest() (request *ModifyMigrationTaskStatusRequest)

func (*ModifyMigrationTaskStatusRequest) FromJsonString

func (r *ModifyMigrationTaskStatusRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyMigrationTaskStatusRequest) ToJsonString

func (r *ModifyMigrationTaskStatusRequest) ToJsonString() string

type ModifyMigrationTaskStatusRequestParams

type ModifyMigrationTaskStatusRequestParams struct {
	// Task status, valid values include `unstart` (migration has not started), `migrating` (migration in progress), `finish` (migration completed) or `fail` (migration failed).
	Status *string `json:"Status,omitnil,omitempty" name:"Status"`

	// Task ID, such as msp-jitoh33n
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`
}

Predefined struct for user

type ModifyMigrationTaskStatusResponse

type ModifyMigrationTaskStatusResponse struct {
	*tchttp.BaseResponse
	Response *ModifyMigrationTaskStatusResponseParams `json:"Response"`
}

func NewModifyMigrationTaskStatusResponse

func NewModifyMigrationTaskStatusResponse() (response *ModifyMigrationTaskStatusResponse)

func (*ModifyMigrationTaskStatusResponse) FromJsonString

func (r *ModifyMigrationTaskStatusResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyMigrationTaskStatusResponse) ToJsonString

func (r *ModifyMigrationTaskStatusResponse) ToJsonString() string

type ModifyMigrationTaskStatusResponseParams

type ModifyMigrationTaskStatusResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type Project

type Project struct {
	// Project ID
	ProjectId *uint64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// Project name
	ProjectName *string `json:"ProjectName,omitnil,omitempty" name:"ProjectName"`
}

type RegisterMigrationTaskRequest

type RegisterMigrationTaskRequest struct {
	*tchttp.BaseRequest

	// Task type, valid values include `database` (database migration), `file` (file migration) or `host` (host migration).
	TaskType *string `json:"TaskType,omitnil,omitempty" name:"TaskType"`

	// Task name
	TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"`

	// Service supplier name
	ServiceSupplier *string `json:"ServiceSupplier,omitnil,omitempty" name:"ServiceSupplier"`

	// Migration task creation time
	CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`

	// Migration task update time
	UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"`

	// Migration type, for example `mysql:mysql` in database migration means migration from mysql to mysql and `oss:cos` in file migration means migration from Alibaba Cloud OSS to Tencent COS.
	MigrateClass *string `json:"MigrateClass,omitnil,omitempty" name:"MigrateClass"`

	// Migration task source information
	SrcInfo *SrcInfo `json:"SrcInfo,omitnil,omitempty" name:"SrcInfo"`

	// Migration task destination information
	DstInfo *DstInfo `json:"DstInfo,omitnil,omitempty" name:"DstInfo"`

	// Source instance access type. Valid values for database migration include `extranet` (public network), `cvm` (CVM-created instance), `dcg` (Direct Connect-enabled instance), `vpncloud` (Tencent Cloud VPN-enabled instance), `vpnselfbuild` (self-built VPN-enabled instance), `cdb` (TencentDB instance)
	SrcAccessType *string `json:"SrcAccessType,omitnil,omitempty" name:"SrcAccessType"`

	// Database type of the source instance. Valid values for database migration: `mysql`, `redis`, `percona`, `mongodb`, `postgresql`, `sqlserver`, `mariadb`
	SrcDatabaseType *string `json:"SrcDatabaseType,omitnil,omitempty" name:"SrcDatabaseType"`

	// Target instance access type. Valid values for database migration include `extranet` (public network), `cvm` (CVM-created instance), `dcg` (Direct Connect-enabled instance), `vpncloud` (Tencent Cloud VPN-enabled instance), `vpnselfbuild` (self-built VPN-enabled instance), `cdb` (TencentDB instance)
	DstAccessType *string `json:"DstAccessType,omitnil,omitempty" name:"DstAccessType"`

	// Database type of the target instance. Valid values for database migration: `mysql`, `redis`, `percona`, `mongodb`, `postgresql`, `sqlserver`, `mariadb`
	DstDatabaseType *string `json:"DstDatabaseType,omitnil,omitempty" name:"DstDatabaseType"`
}

func NewRegisterMigrationTaskRequest

func NewRegisterMigrationTaskRequest() (request *RegisterMigrationTaskRequest)

func (*RegisterMigrationTaskRequest) FromJsonString

func (r *RegisterMigrationTaskRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*RegisterMigrationTaskRequest) ToJsonString

func (r *RegisterMigrationTaskRequest) ToJsonString() string

type RegisterMigrationTaskRequestParams

type RegisterMigrationTaskRequestParams struct {
	// Task type, valid values include `database` (database migration), `file` (file migration) or `host` (host migration).
	TaskType *string `json:"TaskType,omitnil,omitempty" name:"TaskType"`

	// Task name
	TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"`

	// Service supplier name
	ServiceSupplier *string `json:"ServiceSupplier,omitnil,omitempty" name:"ServiceSupplier"`

	// Migration task creation time
	CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`

	// Migration task update time
	UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"`

	// Migration type, for example `mysql:mysql` in database migration means migration from mysql to mysql and `oss:cos` in file migration means migration from Alibaba Cloud OSS to Tencent COS.
	MigrateClass *string `json:"MigrateClass,omitnil,omitempty" name:"MigrateClass"`

	// Migration task source information
	SrcInfo *SrcInfo `json:"SrcInfo,omitnil,omitempty" name:"SrcInfo"`

	// Migration task destination information
	DstInfo *DstInfo `json:"DstInfo,omitnil,omitempty" name:"DstInfo"`

	// Source instance access type. Valid values for database migration include `extranet` (public network), `cvm` (CVM-created instance), `dcg` (Direct Connect-enabled instance), `vpncloud` (Tencent Cloud VPN-enabled instance), `vpnselfbuild` (self-built VPN-enabled instance), `cdb` (TencentDB instance)
	SrcAccessType *string `json:"SrcAccessType,omitnil,omitempty" name:"SrcAccessType"`

	// Database type of the source instance. Valid values for database migration: `mysql`, `redis`, `percona`, `mongodb`, `postgresql`, `sqlserver`, `mariadb`
	SrcDatabaseType *string `json:"SrcDatabaseType,omitnil,omitempty" name:"SrcDatabaseType"`

	// Target instance access type. Valid values for database migration include `extranet` (public network), `cvm` (CVM-created instance), `dcg` (Direct Connect-enabled instance), `vpncloud` (Tencent Cloud VPN-enabled instance), `vpnselfbuild` (self-built VPN-enabled instance), `cdb` (TencentDB instance)
	DstAccessType *string `json:"DstAccessType,omitnil,omitempty" name:"DstAccessType"`

	// Database type of the target instance. Valid values for database migration: `mysql`, `redis`, `percona`, `mongodb`, `postgresql`, `sqlserver`, `mariadb`
	DstDatabaseType *string `json:"DstDatabaseType,omitnil,omitempty" name:"DstDatabaseType"`
}

Predefined struct for user

type RegisterMigrationTaskResponse

type RegisterMigrationTaskResponse struct {
	*tchttp.BaseResponse
	Response *RegisterMigrationTaskResponseParams `json:"Response"`
}

func NewRegisterMigrationTaskResponse

func NewRegisterMigrationTaskResponse() (response *RegisterMigrationTaskResponse)

func (*RegisterMigrationTaskResponse) FromJsonString

func (r *RegisterMigrationTaskResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*RegisterMigrationTaskResponse) ToJsonString

func (r *RegisterMigrationTaskResponse) ToJsonString() string

type RegisterMigrationTaskResponseParams

type RegisterMigrationTaskResponseParams struct {
	// Task ID
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type SrcInfo

type SrcInfo struct {
	// Migration source region
	Region *string `json:"Region,omitnil,omitempty" name:"Region"`

	Ip *string `json:"Ip,omitnil,omitempty" name:"Ip"`

	// Migration source port
	Port *string `json:"Port,omitnil,omitempty" name:"Port"`

	// Migration source instance ID
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`
}

type Task

type Task struct {
	// Task ID
	TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"`

	// Task name
	TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"`

	// Migration type
	MigrationType *string `json:"MigrationType,omitnil,omitempty" name:"MigrationType"`

	// Migration status
	Status *string `json:"Status,omitnil,omitempty" name:"Status"`

	// Project ID
	ProjectId *uint64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// Project name
	ProjectName *string `json:"ProjectName,omitnil,omitempty" name:"ProjectName"`

	// Migration source information
	SrcInfo *SrcInfo `json:"SrcInfo,omitnil,omitempty" name:"SrcInfo"`

	// Migration time information
	MigrationTimeLine *TimeObj `json:"MigrationTimeLine,omitnil,omitempty" name:"MigrationTimeLine"`

	// Status update time
	Updated *string `json:"Updated,omitnil,omitempty" name:"Updated"`

	// Migration destination information
	DstInfo *DstInfo `json:"DstInfo,omitnil,omitempty" name:"DstInfo"`
}

type TaskStatus

type TaskStatus struct {
	// Migration status
	Status *string `json:"Status,omitnil,omitempty" name:"Status"`

	// Migration progress
	Progress *string `json:"Progress,omitnil,omitempty" name:"Progress"`

	// Migration date
	UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"`
}

type TimeObj

type TimeObj struct {
	// The creation time
	CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`

	// End time
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
}

Jump to

Keyboard shortcuts

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