v20180319

package
v3.0.325+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 5 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) 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) 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) 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) 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) 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) 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"

type DeregisterMigrationTaskRequest

type DeregisterMigrationTaskRequest struct {
	*tchttp.BaseRequest

	// Task ID
	TaskId *string `json:"TaskId,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 DeregisterMigrationTaskResponse

type DeregisterMigrationTaskResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `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 DescribeMigrationTaskRequest

type DescribeMigrationTaskRequest struct {
	*tchttp.BaseRequest

	// Task ID, such as msp-jitoh33n
	TaskId *string `json:"TaskId,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 DescribeMigrationTaskResponse

type DescribeMigrationTaskResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// Migration details list
		TaskStatus []*TaskStatus `json:"TaskStatus,omitempty" name:"TaskStatus"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `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 DstInfo

type DstInfo struct {

	// Migration destination region
	Region *string `json:"Region,omitempty" name:"Region"`

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

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

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

type ListMigrationProjectRequest

type ListMigrationProjectRequest struct {
	*tchttp.BaseRequest

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

	// The number of records returned, default value: 500
	Limit *uint64 `json:"Limit,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 ListMigrationProjectResponse

type ListMigrationProjectResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// Project list
		Projects []*Project `json:"Projects,omitempty" name:"Projects"`

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

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `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 ListMigrationTaskRequest

type ListMigrationTaskRequest struct {
	*tchttp.BaseRequest

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

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

	// Project ID, the default value is empty.
	ProjectId *uint64 `json:"ProjectId,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 ListMigrationTaskResponse

type ListMigrationTaskResponse struct {
	*tchttp.BaseResponse
	Response *struct {

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

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

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `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 ModifyMigrationTaskBelongToProjectRequest

type ModifyMigrationTaskBelongToProjectRequest struct {
	*tchttp.BaseRequest

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

	// Project ID, such as 10005
	ProjectId *uint64 `json:"ProjectId,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 ModifyMigrationTaskBelongToProjectResponse

type ModifyMigrationTaskBelongToProjectResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `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 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,omitempty" name:"Status"`

	// Task ID, such as msp-jitoh33n
	TaskId *string `json:"TaskId,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 ModifyMigrationTaskStatusResponse

type ModifyMigrationTaskStatusResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `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 Project

type Project struct {

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

	// Project name
	ProjectName *string `json:"ProjectName,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,omitempty" name:"TaskType"`

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

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

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

	// Migration task update time
	UpdateTime *string `json:"UpdateTime,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,omitempty" name:"MigrateClass"`

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

	// Migration task destination information
	DstInfo *DstInfo `json:"DstInfo,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,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,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,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,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 RegisterMigrationTaskResponse

type RegisterMigrationTaskResponse struct {
	*tchttp.BaseResponse
	Response *struct {

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

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `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 SrcInfo

type SrcInfo struct {

	// Migration source region
	Region *string `json:"Region,omitempty" name:"Region"`

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

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

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

type Task

type Task struct {

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

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

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

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

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

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

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

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

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

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

type TaskStatus

type TaskStatus struct {

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

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

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

type TimeObj

type TimeObj struct {

	// The creation time
	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`

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

Jump to

Keyboard shortcuts

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