model

package
v0.1.107 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BtrfsFileSystem

type BtrfsFileSystem struct {

	// 文件系统名称
	Name string `json:"name"`

	// 文件系统标签,若无标签为空字符串
	Label string `json:"label"`

	// 文件系统的uuid
	Uuid string `json:"uuid"`

	// btrfs包含的设备名称
	Device string `json:"device"`

	// 文件系统数据占用大小
	Size int64 `json:"size"`

	// btrfs节点大小
	Nodesize int64 `json:"nodesize"`

	// 扇区大小
	Sectorsize int32 `json:"sectorsize"`

	// 数据配置(RAD)
	DataProfile string `json:"data_profile"`

	// 文件系统配置(RAD)
	SystemProfile string `json:"system_profile"`

	// 元数据配置(RAD)
	MetadataProfile string `json:"metadata_profile"`

	// Btrfs文件系统信息
	GlobalReserve1 string `json:"global_reserve1"`

	// Btrfs卷已使用空间大小
	GVolUsedSize int64 `json:"g_vol_used_size"`

	// 默认子卷ID
	DefaultSubvolid string `json:"default_subvolid"`

	// 默认子卷名称
	DefaultSubvolName string `json:"default_subvol_name"`

	// 默认子卷挂载路径/BTRFS文件系统的挂载路径
	DefaultSubvolMountpath string `json:"default_subvol_mountpath"`

	// 子卷信息
	Subvolumn []BtrfsSubvolumn `json:"subvolumn"`
}

BtrfsFileSystem btrfs分区类型

func (BtrfsFileSystem) String

func (o BtrfsFileSystem) String() string

type BtrfsSubvolumn

type BtrfsSubvolumn struct {

	// 父卷的uuid
	Uuid string `json:"uuid"`

	// 子卷是否为快照
	IsSnapshot string `json:"is_snapshot"`

	// 子卷的ID
	SubvolId string `json:"subvol_id"`

	// 父卷ID
	ParentId string `json:"parent_id"`

	// 子卷的名称
	SubvolName string `json:"subvol_name"`

	// 子卷的挂载路径
	SubvolMountPath string `json:"subvol_mount_path"`
}

BtrfsSubvolumn btrfs子卷信息

func (BtrfsSubvolumn) String

func (o BtrfsSubvolumn) String() string

type CheckNetAclRequest added in v0.1.3

type CheckNetAclRequest struct {

	// 目的虚拟机所属project_id
	TProjectId string `json:"t_project_id"`

	// 目的端子网ID
	TNetworkId string `json:"t_network_id"`

	// 区域ID
	RegionId string `json:"region_id"`

	// 操作系统类型
	OsType string `json:"os_type"`
}

CheckNetAclRequest Request Object

func (CheckNetAclRequest) String added in v0.1.3

func (o CheckNetAclRequest) String() string

type CheckNetAclResponse added in v0.1.3

type CheckNetAclResponse struct {
	HttpStatusCode int `json:"-"`
}

CheckNetAclResponse Response Object

func (CheckNetAclResponse) String added in v0.1.3

func (o CheckNetAclResponse) String() string

type CloneServer

type CloneServer struct {

	// 克隆服务器ID
	VmId *string `json:"vm_id,omitempty"`

	// 克隆虚拟机的名称
	Name *string `json:"name,omitempty"`

	// 克隆错误信息
	CloneError *string `json:"clone_error,omitempty"`

	// 克隆状态
	CloneState *string `json:"clone_state,omitempty"`

	// 克隆错误信息描述
	ErrorMsg *string `json:"error_msg,omitempty"`
}

CloneServer 克隆服务器类

func (CloneServer) String

func (o CloneServer) String() string

type CloneServerBrief

type CloneServerBrief struct {

	// 克隆服务器ID
	VmId *string `json:"vm_id,omitempty"`

	// 克隆虚拟机的名称
	Name *string `json:"name,omitempty"`
}

CloneServerBrief 克隆服务器基本信息

func (CloneServerBrief) String

func (o CloneServerBrief) String() string

type CollectLogRequest added in v0.1.3

type CollectLogRequest struct {

	// 迁移任务ID
	TaskId string `json:"task_id"`

	Body *UploadLogRequestBody `json:"body,omitempty"`
}

CollectLogRequest Request Object

func (CollectLogRequest) String added in v0.1.3

func (o CollectLogRequest) String() string

type CollectLogResponse added in v0.1.3

type CollectLogResponse struct {
	HttpStatusCode int `json:"-"`
}

CollectLogResponse Response Object

func (CollectLogResponse) String added in v0.1.3

func (o CollectLogResponse) String() string

type ComandParam

type ComandParam struct {

	// 任务ID
	TaskId *string `json:"task_id,omitempty"`

	// 桶名
	Bucket *string `json:"bucket,omitempty"`
}

ComandParam 命令响应参数

func (ComandParam) String

func (o ComandParam) String() string

type CommandBody

type CommandBody struct {

	// 命令名称,分为:START、STOP、DELETE、SYNC、UPLOAD_LOG、RSET_LOG_ACL
	CommandName string `json:"command_name"`

	// 命令执行结果  success代表执行命令成功  fail代表命令执行失败
	Result string `json:"result"`

	// JSON格式的命令执行结果,只用于保存数据库,没有其他作用
	ResultDetail *interface{} `json:"result_detail"`
}

CommandBody 命令参数body

func (CommandBody) String

func (o CommandBody) String() string

type ConfigBody added in v0.1.38

type ConfigBody struct {

	// 配置类型,分为:\"EXCLUDE_MIGRATE_PATH\",\"SYNC_EXCLUDE_PATH\",\"ONLY_SYNC_PATH\"等
	ConfigKey string `json:"config_key"`

	// 具体配置参数字段,保存于数据库,最终在agent端进行解析
	ConfigValue string `json:"config_value"`

	// 描述配置状态的保留字段
	ConfigStatus *string `json:"config_status,omitempty"`
}

ConfigBody 配置参数body

func (ConfigBody) String added in v0.1.38

func (o ConfigBody) String() string

type ConfigurationRequestBody added in v0.1.38

type ConfigurationRequestBody struct {

	// 配置项列表
	Configurations []ConfigBody `json:"configurations"`
}

func (ConfigurationRequestBody) String added in v0.1.38

func (o ConfigurationRequestBody) String() string

type ConsistencyResult added in v0.1.72

type ConsistencyResult struct {

	// 校验目录
	DirCheck string `json:"dir_check"`

	// 文件总数
	NumTotalFiles int32 `json:"num_total_files"`

	// 差异文件数量
	NumDifferentFiles int32 `json:"num_different_files"`

	// 目的端缺少文件数量
	NumTargetMissFiles int32 `json:"num_target_miss_files"`

	// 目的端多余文件数量
	NumTargetMoreFiles int32 `json:"num_target_more_files"`
}

ConsistencyResult 一致性校验的结果

func (ConsistencyResult) String added in v0.1.72

func (o ConsistencyResult) String() string

type ConsistencyResultRequestBody added in v0.1.72

type ConsistencyResultRequestBody struct {

	// 校验结果
	ConsistencyResult []ConsistencyResult `json:"consistency_result"`

	// 检验完成时间
	FinishedTime *int64 `json:"finished_time,omitempty"`
}

ConsistencyResultRequestBody 一致性校验的结果body体

func (ConsistencyResultRequestBody) String added in v0.1.72

type CreateMigprojectRequest

type CreateMigprojectRequest struct {
	Body *PostMigProjectBody `json:"body,omitempty"`
}

CreateMigprojectRequest Request Object

func (CreateMigprojectRequest) String

func (o CreateMigprojectRequest) String() string

type CreateMigprojectResponse

type CreateMigprojectResponse struct {

	// 创建迁移项目返回的新添加的迁移项目的id
	Id             *string `json:"id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateMigprojectResponse Response Object

func (CreateMigprojectResponse) String

func (o CreateMigprojectResponse) String() string

type CreatePrivacyAgreementsRequest added in v0.1.60

type CreatePrivacyAgreementsRequest struct {
}

CreatePrivacyAgreementsRequest Request Object

func (CreatePrivacyAgreementsRequest) String added in v0.1.60

type CreatePrivacyAgreementsResponse added in v0.1.60

type CreatePrivacyAgreementsResponse struct {
	Body           *string `json:"body,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreatePrivacyAgreementsResponse Response Object

func (CreatePrivacyAgreementsResponse) String added in v0.1.60

type CreateTaskRequest

type CreateTaskRequest struct {
	Body *PostTask `json:"body,omitempty"`
}

CreateTaskRequest Request Object

func (CreateTaskRequest) String

func (o CreateTaskRequest) String() string

type CreateTaskResponse

type CreateTaskResponse struct {

	// 创建成功返回的任务ID
	Id             *string `json:"id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateTaskResponse Response Object

func (CreateTaskResponse) String

func (o CreateTaskResponse) String() string

type CreateTemplateReq

type CreateTemplateReq struct {
	Template *TemplateRequest `json:"template"`
}

CreateTemplateReq This is a auto create Body Object

func (CreateTemplateReq) String

func (o CreateTemplateReq) String() string

type CreateTemplateRequest

type CreateTemplateRequest struct {
	Body *CreateTemplateReq `json:"body,omitempty"`
}

CreateTemplateRequest Request Object

func (CreateTemplateRequest) String

func (o CreateTemplateRequest) String() string

type CreateTemplateResponse

type CreateTemplateResponse struct {

	// 服务端返回的新添加的模板的ID
	Id             *string `json:"id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateTemplateResponse Response Object

func (CreateTemplateResponse) String

func (o CreateTemplateResponse) String() string

type DeleteIds

type DeleteIds struct {

	// 所有删除对象ID的集合
	Ids []string `json:"ids"`
}

DeleteIds 批量删除参数

func (DeleteIds) String

func (o DeleteIds) String() string

type DeleteMigprojectRequest

type DeleteMigprojectRequest struct {

	// 需要删除的迁移项目的ID
	MigProjectId string `json:"mig_project_id"`
}

DeleteMigprojectRequest Request Object

func (DeleteMigprojectRequest) String

func (o DeleteMigprojectRequest) String() string

type DeleteMigprojectResponse

type DeleteMigprojectResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteMigprojectResponse Response Object

func (DeleteMigprojectResponse) String

func (o DeleteMigprojectResponse) String() string

type DeleteServerRequest

type DeleteServerRequest struct {

	// 源端服务器在主机迁移服务中的ID
	SourceId string `json:"source_id"`
}

DeleteServerRequest Request Object

func (DeleteServerRequest) String

func (o DeleteServerRequest) String() string

type DeleteServerResponse

type DeleteServerResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteServerResponse Response Object

func (DeleteServerResponse) String

func (o DeleteServerResponse) String() string

type DeleteServersRequest

type DeleteServersRequest struct {
	Body *DeleteIds `json:"body,omitempty"`
}

DeleteServersRequest Request Object

func (DeleteServersRequest) String

func (o DeleteServersRequest) String() string

type DeleteServersResponse

type DeleteServersResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteServersResponse Response Object

func (DeleteServersResponse) String

func (o DeleteServersResponse) String() string

type DeleteTaskRequest

type DeleteTaskRequest struct {

	// 要删除的迁移任务ID
	TaskId string `json:"task_id"`
}

DeleteTaskRequest Request Object

func (DeleteTaskRequest) String

func (o DeleteTaskRequest) String() string

type DeleteTaskResponse

type DeleteTaskResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteTaskResponse Response Object

func (DeleteTaskResponse) String

func (o DeleteTaskResponse) String() string

type DeleteTasksReq

type DeleteTasksReq struct {

	// 待删除的任务ID列表
	Ids []string `json:"ids"`
}

DeleteTasksReq This is a auto create Body Object

func (DeleteTasksReq) String

func (o DeleteTasksReq) String() string

type DeleteTasksRequest

type DeleteTasksRequest struct {
	Body *DeleteTasksReq `json:"body,omitempty"`
}

DeleteTasksRequest Request Object

func (DeleteTasksRequest) String

func (o DeleteTasksRequest) String() string

type DeleteTasksResponse

type DeleteTasksResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteTasksResponse Response Object

func (DeleteTasksResponse) String

func (o DeleteTasksResponse) String() string

type DeleteTemplateRequest

type DeleteTemplateRequest struct {

	// 需要删除的模板的ID
	Id string `json:"id"`
}

DeleteTemplateRequest Request Object

func (DeleteTemplateRequest) String

func (o DeleteTemplateRequest) String() string

type DeleteTemplateResponse

type DeleteTemplateResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteTemplateResponse Response Object

func (DeleteTemplateResponse) String

func (o DeleteTemplateResponse) String() string

type DeleteTemplatesRequest

type DeleteTemplatesRequest struct {
	Body *DeletetemplatesReq `json:"body,omitempty"`
}

DeleteTemplatesRequest Request Object

func (DeleteTemplatesRequest) String

func (o DeleteTemplatesRequest) String() string

type DeleteTemplatesResponse

type DeleteTemplatesResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteTemplatesResponse Response Object

func (DeleteTemplatesResponse) String

func (o DeleteTemplatesResponse) String() string

type DeletetemplatesReq

type DeletetemplatesReq struct {

	// 需要删除的模板ID
	Ids *[]string `json:"ids,omitempty"`
}

DeletetemplatesReq This is a auto create Body Object

func (DeletetemplatesReq) String

func (o DeletetemplatesReq) String() string

type Disk

type Disk struct {

	// 磁盘名称
	Name string `json:"name"`

	// 磁盘的分区类型,添加源端时源端磁盘必选 MBR:mbr格式 GPT:gpt格式
	PartitionStyle *DiskPartitionStyle `json:"partition_style,omitempty"`

	// 磁盘类型 BOOT:BOOT设备 OS:系统设备
	DeviceUse DiskDeviceUse `json:"device_use"`

	// 磁盘总大小,以字节为单位
	Size int64 `json:"size"`

	// 磁盘已使用大小,以字节为单位
	UsedSize int64 `json:"used_size"`

	// 磁盘上的物理分区信息
	PhysicalVolumes []PhysicalVolumes `json:"physical_volumes"`

	// 创建任务时,如果选择已有虚拟机,此参数必选
	DiskId *string `json:"disk_id,omitempty"`

	// 是否为系统盘
	OsDisk *bool `json:"os_disk,omitempty"`

	// Linux系统 目的端ECS中与源端关联的磁盘名称
	RelationName *string `json:"relation_name,omitempty"`
}

Disk 磁盘信息

func (Disk) String

func (o Disk) String() string

type DiskDeviceUse

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

func (DiskDeviceUse) MarshalJSON

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

func (*DiskDeviceUse) UnmarshalJSON

func (c *DiskDeviceUse) UnmarshalJSON(b []byte) error

func (DiskDeviceUse) Value added in v0.0.90

func (c DiskDeviceUse) Value() string

type DiskDeviceUseEnum

type DiskDeviceUseEnum struct {
	BOOT DiskDeviceUse
	OS   DiskDeviceUse
}

func GetDiskDeviceUseEnum

func GetDiskDeviceUseEnum() DiskDeviceUseEnum

type DiskIntargetServer

type DiskIntargetServer struct {

	// 磁盘名称
	Name string `json:"name"`

	// 磁盘大小,单位:字节
	Size int64 `json:"size"`

	// 磁盘的作用 BOOT:BOOT设备 OS:系统设备 NORMAL:平常
	DeviceUse *DiskIntargetServerDeviceUse `json:"device_use,omitempty"`

	// 磁盘已使用大小,以字节为单位
	UsedSize *int64 `json:"used_size,omitempty"`

	// 物理卷信息
	PhysicalVolumes *[]PhysicalVolumes `json:"physical_volumes,omitempty"`
}

DiskIntargetServer 目的端服务器关联磁盘

func (DiskIntargetServer) String

func (o DiskIntargetServer) String() string

type DiskIntargetServerDeviceUse

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

func (DiskIntargetServerDeviceUse) MarshalJSON

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

func (*DiskIntargetServerDeviceUse) UnmarshalJSON

func (c *DiskIntargetServerDeviceUse) UnmarshalJSON(b []byte) error

func (DiskIntargetServerDeviceUse) Value added in v0.0.90

type DiskIntargetServerDeviceUseEnum

type DiskIntargetServerDeviceUseEnum struct {
	BOOT   DiskIntargetServerDeviceUse
	OS     DiskIntargetServerDeviceUse
	NORMAL DiskIntargetServerDeviceUse
}

func GetDiskIntargetServerDeviceUseEnum

func GetDiskIntargetServerDeviceUseEnum() DiskIntargetServerDeviceUseEnum

type DiskPartitionStyle

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

func (DiskPartitionStyle) MarshalJSON

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

func (*DiskPartitionStyle) UnmarshalJSON

func (c *DiskPartitionStyle) UnmarshalJSON(b []byte) error

func (DiskPartitionStyle) Value added in v0.0.90

func (c DiskPartitionStyle) Value() string

type DiskPartitionStyleEnum

type DiskPartitionStyleEnum struct {
	MBR DiskPartitionStyle
	GPT DiskPartitionStyle
}

func GetDiskPartitionStyleEnum

func GetDiskPartitionStyleEnum() DiskPartitionStyleEnum

type EnvironmentCheck

type EnvironmentCheck struct {

	// 该检查项的ID
	Id int64 `json:"id"`

	// 参数
	Params *[]string `json:"params,omitempty"`

	// 检查项名称
	Name string `json:"name"`

	// 检查结果 OK:检查通过 WARN:警告 ERROR:检查不通过
	Result EnvironmentCheckResult `json:"result"`

	// 检查不通过的错误码
	ErrorCode *string `json:"error_code,omitempty"`

	// 检查的错误或者警告
	ErrorOrWarn *string `json:"error_or_warn,omitempty"`

	// 检查不通过的错误参数
	ErrorParams *string `json:"error_params,omitempty"`
}

EnvironmentCheck 源端校验项

func (EnvironmentCheck) String

func (o EnvironmentCheck) String() string

type EnvironmentCheckResult

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

func (EnvironmentCheckResult) MarshalJSON

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

func (*EnvironmentCheckResult) UnmarshalJSON

func (c *EnvironmentCheckResult) UnmarshalJSON(b []byte) error

func (EnvironmentCheckResult) Value added in v0.0.90

func (c EnvironmentCheckResult) Value() string

type EnvironmentCheckResultEnum

type EnvironmentCheckResultEnum struct {
	OK    EnvironmentCheckResult
	WARN  EnvironmentCheckResult
	ERROR EnvironmentCheckResult
}

func GetEnvironmentCheckResultEnum

func GetEnvironmentCheckResultEnum() EnvironmentCheckResultEnum

type InitTargetServer

type InitTargetServer struct {

	// 推荐的目的端服务器的磁盘信息
	Disks []DiskIntargetServer `json:"disks"`

	// Linux必选,如果没有卷组,输入[]
	VolumeGroups *[]VolumeGroups `json:"volume_groups,omitempty"`
}

InitTargetServer 推荐的目的端服务器配置

func (InitTargetServer) String

func (o InitTargetServer) String() string
type Link struct {

	// API的url地址。
	Href *string `json:"href,omitempty"`

	// 取值为“self”,表示href为本地链接。
	Rel *string `json:"rel,omitempty"`
}

func (Link) String added in v0.1.38

func (o Link) String() string

type ListApiVersionRequest added in v0.1.38

type ListApiVersionRequest struct {
}

ListApiVersionRequest Request Object

func (ListApiVersionRequest) String added in v0.1.38

func (o ListApiVersionRequest) String() string

type ListApiVersionResponse added in v0.1.38

type ListApiVersionResponse struct {

	// 描述主机迁移服务API版本信息列表。
	Versions       *[]Version `json:"versions,omitempty"`
	HttpStatusCode int        `json:"-"`
}

ListApiVersionResponse Response Object

func (ListApiVersionResponse) String added in v0.1.38

func (o ListApiVersionResponse) String() string

type ListErrorServersRequest

type ListErrorServersRequest struct {

	// 每一页记录的错误数量
	Limit *int32 `json:"limit,omitempty"`

	// 偏移量
	Offset int32 `json:"offset"`

	// 需要查询的迁移项目ID,添加此字段将只查询对应ID下的迁移任务报错信息
	Migproject *string `json:"migproject,omitempty"`

	// 需要查询的企业项目ID
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

ListErrorServersRequest Request Object

func (ListErrorServersRequest) String

func (o ListErrorServersRequest) String() string

type ListErrorServersResponse

type ListErrorServersResponse struct {

	// 迁移过程中发生错误的源端数量
	Count *int32 `json:"count,omitempty"`

	// 迁移过程中发生的错误详情
	MigrationErrors *[]MigrationErrors `json:"migration_errors,omitempty"`
	HttpStatusCode  int                `json:"-"`
}

ListErrorServersResponse Response Object

func (ListErrorServersResponse) String

func (o ListErrorServersResponse) String() string

type ListMigprojectsRequest

type ListMigprojectsRequest struct {

	// 每一页记录的迁移项目
	Limit *int32 `json:"limit,omitempty"`

	// 偏移量
	Offset *int32 `json:"offset,omitempty"`
}

ListMigprojectsRequest Request Object

func (ListMigprojectsRequest) String

func (o ListMigprojectsRequest) String() string

type ListMigprojectsResponse

type ListMigprojectsResponse struct {

	// 查询到的迁移项目的数量
	Count *int32 `json:"count,omitempty"`

	// 查询到的迁移项目详情
	Migprojects    *[]MigprojectsResponseBody `json:"migprojects,omitempty"`
	HttpStatusCode int                        `json:"-"`
}

ListMigprojectsResponse Response Object

func (ListMigprojectsResponse) String

func (o ListMigprojectsResponse) String() string

type ListServersRequest

type ListServersRequest struct {

	// 源端服务器状态 unavailable:环境校验不通过 waiting:等待 initialize:初始化 replicate:复制 syncing:持续同步 stopping:暂停中 stopped:已暂停 deleting:删除中 error:错误 cloning:等待克隆完成 cutovering:启动目的端中 finished:启动目的端完成
	State *ListServersRequestState `json:"state,omitempty"`

	// 源端服务器名称
	Name *string `json:"name,omitempty"`

	// 源端服务器ID
	Id *string `json:"id,omitempty"`

	// 源端服务器IP地址
	Ip *string `json:"ip,omitempty"`

	// 迁移项目ID,填写该参数将查询迁移项目下的所有虚拟机
	Migproject *string `json:"migproject,omitempty"`

	// 每一页记录的源端服务器数量,0表示用默认值 200
	Limit *int32 `json:"limit,omitempty"`

	// 偏移量,默认值0
	Offset *int32 `json:"offset,omitempty"`

	// checking:检查中 setting:设置中 replicating:复制中 syncing:同步中 cutovering:启动目的端中 cutovered:启动目的端完成
	MigrationCycle *ListServersRequestMigrationCycle `json:"migration_cycle,omitempty"`

	// 查询失去连接的源端
	Connected *bool `json:"connected,omitempty"`

	// 需要查询的企业项目ID
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 是否存在一致性校验结果
	IsConsistencyResultExist *bool `json:"is_consistency_result_exist,omitempty"`
}

ListServersRequest Request Object

func (ListServersRequest) String

func (o ListServersRequest) String() string

type ListServersRequestMigrationCycle added in v0.0.63

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

func (ListServersRequestMigrationCycle) MarshalJSON added in v0.0.63

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

func (*ListServersRequestMigrationCycle) UnmarshalJSON added in v0.0.63

func (c *ListServersRequestMigrationCycle) UnmarshalJSON(b []byte) error

func (ListServersRequestMigrationCycle) Value added in v0.0.90

type ListServersRequestMigrationCycleEnum added in v0.0.63

func GetListServersRequestMigrationCycleEnum added in v0.0.63

func GetListServersRequestMigrationCycleEnum() ListServersRequestMigrationCycleEnum

type ListServersRequestState

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

func (ListServersRequestState) MarshalJSON

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

func (*ListServersRequestState) UnmarshalJSON

func (c *ListServersRequestState) UnmarshalJSON(b []byte) error

func (ListServersRequestState) Value added in v0.0.90

func (c ListServersRequestState) Value() string

type ListServersResponse

type ListServersResponse struct {

	// 符合查询条件的源端总数量,不受limit和offset影响
	Count *int32 `json:"count,omitempty"`

	// 批量查询的源端服务器详列表
	SourceServers  *[]SourceServersResponseBody `json:"source_servers,omitempty"`
	HttpStatusCode int                          `json:"-"`
}

ListServersResponse Response Object

func (ListServersResponse) String

func (o ListServersResponse) String() string

type ListTasksRequest

type ListTasksRequest struct {

	// 迁移任务状态 READY:准备就绪 RUNNING:迁移中 SYNCING:同步中 MIGRATE_SUCCESS:迁移成功 MIGRATE_FAIL:迁移失败 ABORTING:中止中 ABORT:中止 DELETING::删除中 SYNC_F_ROLLBACKING:同步失败回滚中 SYNC_F_ROLLBACK_SUCCESS:同步失败回滚成功
	State *ListTasksRequestState `json:"state,omitempty"`

	// 任务的名称
	Name *string `json:"name,omitempty"`

	// 任务的ID
	Id *string `json:"id,omitempty"`

	// 源端服务器的ID
	SourceServerId *string `json:"source_server_id,omitempty"`

	// 每一页记录的任务数量
	Limit *int32 `json:"limit,omitempty"`

	// 偏移量
	Offset *int32 `json:"offset,omitempty"`

	// 需要查询的企业项目ID
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

ListTasksRequest Request Object

func (ListTasksRequest) String

func (o ListTasksRequest) String() string

type ListTasksRequestState

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

func (ListTasksRequestState) MarshalJSON

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

func (*ListTasksRequestState) UnmarshalJSON

func (c *ListTasksRequestState) UnmarshalJSON(b []byte) error

func (ListTasksRequestState) Value added in v0.0.90

func (c ListTasksRequestState) Value() string

type ListTasksRequestStateEnum

type ListTasksRequestStateEnum struct {
	READY                   ListTasksRequestState
	RUNNING                 ListTasksRequestState
	SYNCING                 ListTasksRequestState
	MIGRATE_SUCCESS         ListTasksRequestState
	MIGRATE_FAIL            ListTasksRequestState
	ABORTING                ListTasksRequestState
	ABORT                   ListTasksRequestState
	DELETING                ListTasksRequestState
	SYNC_F_ROLLBACKING      ListTasksRequestState
	SYNC_F_ROLLBACK_SUCCESS ListTasksRequestState
}

func GetListTasksRequestStateEnum

func GetListTasksRequestStateEnum() ListTasksRequestStateEnum

type ListTasksResponse

type ListTasksResponse struct {

	// 符合要求的任务数量,不受分页影响
	Count *int32 `json:"count,omitempty"`

	// 查询到的任务列表
	Tasks          *[]TasksResponseBody `json:"tasks,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

ListTasksResponse Response Object

func (ListTasksResponse) String

func (o ListTasksResponse) String() string

type ListTemplatesRequest

type ListTemplatesRequest struct {

	// 模板名称
	Name *string `json:"name,omitempty"`

	// 可用区
	AvailabilityZone *string `json:"availability_zone,omitempty"`

	// Region ID
	Region *string `json:"region,omitempty"`

	// 分页大小,不传值默认为50
	Limit *int32 `json:"limit,omitempty"`

	// 偏移量,不传值默认为0
	Offset *int32 `json:"offset,omitempty"`
}

ListTemplatesRequest Request Object

func (ListTemplatesRequest) String

func (o ListTemplatesRequest) String() string

type ListTemplatesResponse

type ListTemplatesResponse struct {

	// 模板个数
	Count *int32 `json:"count,omitempty"`

	// 模板信息
	Templates      *[]TemplateResponseBody `json:"templates,omitempty"`
	HttpStatusCode int                     `json:"-"`
}

ListTemplatesResponse Response Object

func (ListTemplatesResponse) String

func (o ListTemplatesResponse) String() string

type LogicalVolumes

type LogicalVolumes struct {

	// 块数量
	BlockCount *int32 `json:"block_count,omitempty"`

	// 块大小
	BlockSize *int64 `json:"block_size,omitempty"`

	// 文件系统
	FileSystem string `json:"file_system"`

	// inode数量
	InodeSize int32 `json:"inode_size"`

	// inode节点数量
	InodeNums *int64 `json:"inode_nums,omitempty"`

	// 分区类型,普通分区,启动分区,系统分区
	DeviceUse *string `json:"device_use,omitempty"`

	// 挂载点
	MountPoint string `json:"mount_point"`

	// 名称
	Name string `json:"name"`

	// 大小
	Size int64 `json:"size"`

	// 使用大小
	UsedSize int64 `json:"used_size"`

	// 剩余空间
	FreeSize int64 `json:"free_size"`
}

LogicalVolumes 逻辑卷信息

func (LogicalVolumes) String

func (o LogicalVolumes) String() string

type MigProject

type MigProject struct {

	// 迁移项目ID
	Id *string `json:"id,omitempty"`

	// 迁移项目名称
	Name string `json:"name"`

	// 迁移项目描述
	Description *string `json:"description,omitempty"`

	// 是否为默认模板
	Isdefault *bool `json:"isdefault,omitempty"`

	// 区域名称
	Region string `json:"region"`

	// 迁移后是否启动目的端虚拟机
	StartTargetServer *bool `json:"start_target_server,omitempty"`

	// 限制迁移速率,单位:Mbps
	SpeedLimit *int32 `json:"speed_limit,omitempty"`

	// 是否使用公网IP迁移
	UsePublicIp bool `json:"use_public_ip"`

	// 是否是已经存在的服务器
	ExistServer bool `json:"exist_server"`

	// 迁移项目类型 MIGRATE_BLOCK:块级迁移 MIGRATE_FILE:文件级迁移
	Type MigProjectType `json:"type"`

	// 企业项目名称
	EnterpriseProject *string `json:"enterprise_project,omitempty"`

	// 首次复制或者同步后 是否继续持续同步
	Syncing bool `json:"syncing"`

	// 是否启动网络质量检测
	StartNetworkCheck *bool `json:"start_network_check,omitempty"`
}

MigProject SMS迁移项目信息

func (MigProject) String

func (o MigProject) String() string

type MigProjectType

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

func (MigProjectType) MarshalJSON

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

func (*MigProjectType) UnmarshalJSON

func (c *MigProjectType) UnmarshalJSON(b []byte) error

func (MigProjectType) Value added in v0.0.90

func (c MigProjectType) Value() string

type MigProjectTypeEnum

type MigProjectTypeEnum struct {
	MIGRATE_BLOCK MigProjectType
	MIGRATE_FILE  MigProjectType
}

func GetMigProjectTypeEnum

func GetMigProjectTypeEnum() MigProjectTypeEnum

type MigprojectsResponseBody

type MigprojectsResponseBody struct {

	// 迁移项目ID
	Id *string `json:"id,omitempty"`

	// 迁移项目名称
	Name *string `json:"name,omitempty"`

	// 是否使用公网IP迁移
	UsePublicIp *bool `json:"use_public_ip,omitempty"`

	// 是否为默认模板
	Isdefault *bool `json:"isdefault,omitempty"`

	// 迁移后是否启动目的端虚拟机
	StartTargetServer *bool `json:"start_target_server,omitempty"`

	// 区域名称
	Region *string `json:"region,omitempty"`

	// 模板中配置的限速信息,单位:Mbps
	SpeedLimit *int32 `json:"speed_limit,omitempty"`

	// 迁移项目下是否存在服务器
	ExistServer *bool `json:"exist_server,omitempty"`

	// 迁移项目描述
	Description *string `json:"description,omitempty"`

	// 迁移项目默认迁移类型 MIGRATE_BLOCK:块级迁移 MIGRATE_FILE:文件级迁移
	Type *MigprojectsResponseBodyType `json:"type,omitempty"`

	// 迁移项目所属的企业项目名称
	EnterpriseProject *string `json:"enterprise_project,omitempty"`

	// 是否持续同步
	Syncing *bool `json:"syncing,omitempty"`

	// 是否开启网络质量检测
	StartNetworkCheck *bool `json:"start_network_check,omitempty"`
}

MigprojectsResponseBody 批量查询迁移项目返回的迁移项目信息

func (MigprojectsResponseBody) String

func (o MigprojectsResponseBody) String() string

type MigprojectsResponseBodyType

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

func (MigprojectsResponseBodyType) MarshalJSON

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

func (*MigprojectsResponseBodyType) UnmarshalJSON

func (c *MigprojectsResponseBodyType) UnmarshalJSON(b []byte) error

func (MigprojectsResponseBodyType) Value added in v0.0.90

type MigprojectsResponseBodyTypeEnum

type MigprojectsResponseBodyTypeEnum struct {
	MIGRATE_BLOCK MigprojectsResponseBodyType
	MIGRATE_FILE  MigprojectsResponseBodyType
}

func GetMigprojectsResponseBodyTypeEnum

func GetMigprojectsResponseBodyTypeEnum() MigprojectsResponseBodyTypeEnum

type MigrationErrors

type MigrationErrors struct {

	// 保存错误信息的json字符串
	ErrorJson *string `json:"error_json,omitempty"`

	// 主机名称(从用户系统获取,可能为空)
	HostName *string `json:"host_name,omitempty"`

	// 源端在主机迁移服务中的名称
	Name *string `json:"name,omitempty"`

	// 源端服务器ID
	SourceId *string `json:"source_id,omitempty"`

	// 源端服务器的ip
	SourceIp *string `json:"source_ip,omitempty"`

	// 目的端服务器的ip
	TargetIp *string `json:"target_ip,omitempty"`
}

MigrationErrors 迁移错误信息

func (MigrationErrors) String

func (o MigrationErrors) String() string

type NetWork

type NetWork struct {

	// 网卡的名称
	Name string `json:"name"`

	// 该网卡绑定的IP
	Ip string `json:"ip"`

	// 掩码
	Netmask string `json:"netmask"`

	// 网关
	Gateway string `json:"gateway"`

	// Linux必选,网卡的MTU
	Mtu *int32 `json:"mtu,omitempty"`

	// Mac地址
	Mac string `json:"mac"`

	// 数据库ID
	Id *string `json:"id,omitempty"`
}

NetWork 网卡实体类

func (NetWork) String

func (o NetWork) String() string

type NetworkCheckInfoRequestBody added in v0.1.38

type NetworkCheckInfoRequestBody struct {

	// 域名连通性
	DomainConnectivity *bool `json:"domain_connectivity,omitempty"`

	// 目的端连通性
	DestinationConnectivity *bool `json:"destination_connectivity,omitempty"`

	// 网络时延
	NetworkDelay float64 `json:"network_delay"`

	// 网络抖动
	NetworkJitter float64 `json:"network_jitter"`

	// 带宽
	MigrationSpeed float64 `json:"migration_speed"`

	// 丢包
	LossPercentage float64 `json:"loss_percentage"`

	// CPU占用
	CpuUsage float64 `json:"cpu_usage"`

	// 内存占用
	MemUsage float64 `json:"mem_usage"`

	// 评估结果
	EvaluationResult string `json:"evaluation_result"`
}

func (NetworkCheckInfoRequestBody) String added in v0.1.38

type Nics

type Nics struct {

	// 子网ID,如果是自动创建,使用\"autoCreate\"
	Id string `json:"id"`

	// 子网名称
	Name string `json:"name"`

	// 子网网关/掩码
	Cidr string `json:"cidr"`

	// 虚拟机IP地址,如果没有这个字段,自动分配IP
	Ip *string `json:"ip,omitempty"`
}

Nics 网卡资源

func (Nics) String

func (o Nics) String() string

type PhysicalVolume

type PhysicalVolume struct {

	// 分区类型,普通分区,启动分区,系统分区
	DeviceUse *string `json:"device_use,omitempty"`

	// 文件系统类型
	FileSystem *string `json:"file_system,omitempty"`

	// 顺序
	Index *int32 `json:"index,omitempty"`

	// 挂载点
	MountPoint *string `json:"mount_point,omitempty"`

	// 名称,windows表示盘符,Linux表示设备号
	Name *string `json:"name,omitempty"`

	// 大小
	Size *int64 `json:"size,omitempty"`

	// 使用大小
	UsedSize *int64 `json:"used_size,omitempty"`

	// inode数量
	InodeSize *int32 `json:"inode_size,omitempty"`

	// inode节点数量
	InodeNums *int64 `json:"inode_nums,omitempty"`

	// GUID,可从源端查询
	Uuid *string `json:"uuid,omitempty"`

	// 每个cluster大小
	SizePerCluster *int32 `json:"size_per_cluster,omitempty"`
}

PhysicalVolume 使用大小

func (PhysicalVolume) String

func (o PhysicalVolume) String() string

type PhysicalVolumes

type PhysicalVolumes struct {

	// 分区类型,普通分区,启动分区,系统分区
	DeviceUse *string `json:"device_use,omitempty"`

	// 文件系统类型
	FileSystem *string `json:"file_system,omitempty"`

	// 顺序
	Index *int32 `json:"index,omitempty"`

	// 挂载点
	MountPoint *string `json:"mount_point,omitempty"`

	// 名称,windows表示盘符,Linux表示设备号
	Name *string `json:"name,omitempty"`

	// 大小
	Size *int64 `json:"size,omitempty"`

	// inode数量
	InodeSize *int64 `json:"inode_size,omitempty"`

	// 使用大小
	UsedSize *int64 `json:"used_size,omitempty"`

	// GUID,可从源端查询
	Uuid *string `json:"uuid,omitempty"`
}

PhysicalVolumes 使用大小

func (PhysicalVolumes) String

func (o PhysicalVolumes) String() string

type PostMigProjectBody

type PostMigProjectBody struct {

	// 迁移项目名称
	Name string `json:"name"`

	// 迁移项目描述
	Description *string `json:"description,omitempty"`

	// 是否为默认模板
	Isdefault *bool `json:"isdefault,omitempty"`

	// 区域名称
	Region string `json:"region"`

	// 迁移后是否启动目的端虚拟机
	StartTargetServer *bool `json:"start_target_server,omitempty"`

	// 限制迁移速率,单位:Mbps
	SpeedLimit *int32 `json:"speed_limit,omitempty"`

	// 是否使用公网IP迁移
	UsePublicIp bool `json:"use_public_ip"`

	// 是否是已经存在的服务器
	ExistServer bool `json:"exist_server"`

	// 迁移项目类型 MIGRATE_BLOCK:块级迁移 MIGRATE_FILE:文件级迁移
	Type PostMigProjectBodyType `json:"type"`

	// 企业项目名称
	EnterpriseProject *string `json:"enterprise_project,omitempty"`

	// 首次复制或者同步后 是否继续持续同步
	Syncing bool `json:"syncing"`

	// 是否启动网络质量检测
	StartNetworckCheck *bool `json:"start_networck_check,omitempty"`
}

PostMigProjectBody SMS迁移项目信息

func (PostMigProjectBody) String

func (o PostMigProjectBody) String() string

type PostMigProjectBodyType

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

func (PostMigProjectBodyType) MarshalJSON

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

func (*PostMigProjectBodyType) UnmarshalJSON

func (c *PostMigProjectBodyType) UnmarshalJSON(b []byte) error

func (PostMigProjectBodyType) Value added in v0.0.90

func (c PostMigProjectBodyType) Value() string

type PostMigProjectBodyTypeEnum

type PostMigProjectBodyTypeEnum struct {
	MIGRATE_BLOCK PostMigProjectBodyType
	MIGRATE_FILE  PostMigProjectBodyType
}

func GetPostMigProjectBodyTypeEnum

func GetPostMigProjectBodyTypeEnum() PostMigProjectBodyTypeEnum

type PostSourceServerBody

type PostSourceServerBody struct {

	// 源端在SMS数据库中的ID
	Id *string `json:"id,omitempty"`

	// 源端服务器ip,注册源端时必选,更新非必选
	Ip *string `json:"ip,omitempty"`

	// 用来区分不同源端服务器的名称
	Name *string `json:"name,omitempty"`

	// 源端主机名,注册源端必选,更新非必选
	Hostname *string `json:"hostname,omitempty"`

	// 源端服务器的OS类型,分为Windows和Linux,注册必选,更新非必选
	OsType *PostSourceServerBodyOsType `json:"os_type,omitempty"`

	// 操作系统版本,注册必选,更新非必选
	OsVersion *string `json:"os_version,omitempty"`

	// 操作系统虚拟化方式
	VirtualizationType *string `json:"virtualization_type,omitempty"`

	// Linux操作系统块检查
	LinuxBlockCheck *string `json:"linux_block_check,omitempty"`

	// 源端服务器启动类型,如BIOS或者UEFI
	Firmware *PostSourceServerBodyFirmware `json:"firmware,omitempty"`

	// CPU个数,单位vCPU
	CpuQuantity *int32 `json:"cpu_quantity,omitempty"`

	// 内存大小,单位MB
	Memory *int64 `json:"memory,omitempty"`

	// 源端服务器的磁盘信息
	Disks *[]ServerDisk `json:"disks,omitempty"`

	// Linux 必选,源端的Btrfs信息。如果源端不存在Btrfs,则为[]
	BtrfsList *[]BtrfsFileSystem `json:"btrfs_list,omitempty"`

	// 源端服务器的网卡信息
	Networks *[]NetWork `json:"networks,omitempty"`

	// 租户的domainId
	DomainId *string `json:"domain_id,omitempty"`

	// 是否安装rsync组件,Linux系统此参数为必选
	HasRsync *bool `json:"has_rsync,omitempty"`

	// Linux场景必选,源端是否是半虚拟化
	Paravirtualization *bool `json:"paravirtualization,omitempty"`

	// Linux必选,裸设备列表
	RawDevices *string `json:"raw_devices,omitempty"`

	// Windows 必选,是否缺少驱动文件
	DriverFiles *bool `json:"driver_files,omitempty"`

	// Windows必选,是否存在不正常服务
	SystemServices *bool `json:"system_services,omitempty"`

	// Windows必选,权限是否满足要求
	AccountRights *bool `json:"account_rights,omitempty"`

	// Linux必选,系统引导类型,BOOT_LOADER(GRUB/LILO)
	BootLoader *PostSourceServerBodyBootLoader `json:"boot_loader,omitempty"`

	// Windows必选,系统目录
	SystemDir *string `json:"system_dir,omitempty"`

	// Linux必选,如果没有卷组,输入[]
	VolumeGroups *[]VolumeGroups `json:"volume_groups,omitempty"`

	// Agent版本
	AgentVersion *string `json:"agent_version,omitempty"`

	// 内核版本信息
	KernelVersion *string `json:"kernel_version,omitempty"`

	// 迁移周期 cutovering:启动目的端中 cutovered:启动目的端完成 checking:检查中 setting:设置中 replicating:复制中 syncing:同步中
	MigrationCycle *PostSourceServerBodyMigrationCycle `json:"migration_cycle,omitempty"`

	// 源端服务器状态 unavailable:环境校验不通过 waiting:等待 initialize:初始化 replicate:复制 syncing:持续同步 stopping:暂停中 stopped:已暂停 deleting:删除中 error:错误 cloning:等待克隆完成 cutovering:启动目的端中 finished:启动目的端完成
	State *PostSourceServerBodyState `json:"state,omitempty"`

	// 是否是OEM操作系统(Windows)
	OemSystem *bool `json:"oem_system,omitempty"`

	// 启动方式,可以取值MANUAL、MGC或者空。
	StartType *PostSourceServerBodyStartType `json:"start_type,omitempty"`

	// 磁盘IO读时延,单位为ms
	IoReadWait *float64 `json:"io_read_wait,omitempty"`
}

PostSourceServerBody 源端服务器

func (PostSourceServerBody) String

func (o PostSourceServerBody) String() string

type PostSourceServerBodyBootLoader

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

func (PostSourceServerBodyBootLoader) MarshalJSON

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

func (*PostSourceServerBodyBootLoader) UnmarshalJSON

func (c *PostSourceServerBodyBootLoader) UnmarshalJSON(b []byte) error

func (PostSourceServerBodyBootLoader) Value added in v0.0.90

type PostSourceServerBodyBootLoaderEnum

type PostSourceServerBodyBootLoaderEnum struct {
	GRUB PostSourceServerBodyBootLoader
	LILO PostSourceServerBodyBootLoader
}

func GetPostSourceServerBodyBootLoaderEnum

func GetPostSourceServerBodyBootLoaderEnum() PostSourceServerBodyBootLoaderEnum

type PostSourceServerBodyFirmware

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

func (PostSourceServerBodyFirmware) MarshalJSON

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

func (*PostSourceServerBodyFirmware) UnmarshalJSON

func (c *PostSourceServerBodyFirmware) UnmarshalJSON(b []byte) error

func (PostSourceServerBodyFirmware) Value added in v0.0.90

type PostSourceServerBodyFirmwareEnum

type PostSourceServerBodyFirmwareEnum struct {
	BIOS PostSourceServerBodyFirmware
	UEFI PostSourceServerBodyFirmware
}

func GetPostSourceServerBodyFirmwareEnum

func GetPostSourceServerBodyFirmwareEnum() PostSourceServerBodyFirmwareEnum

type PostSourceServerBodyMigrationCycle added in v0.1.3

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

func (PostSourceServerBodyMigrationCycle) MarshalJSON added in v0.1.3

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

func (*PostSourceServerBodyMigrationCycle) UnmarshalJSON added in v0.1.3

func (c *PostSourceServerBodyMigrationCycle) UnmarshalJSON(b []byte) error

func (PostSourceServerBodyMigrationCycle) Value added in v0.1.3

type PostSourceServerBodyOsType

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

func (PostSourceServerBodyOsType) MarshalJSON

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

func (*PostSourceServerBodyOsType) UnmarshalJSON

func (c *PostSourceServerBodyOsType) UnmarshalJSON(b []byte) error

func (PostSourceServerBodyOsType) Value added in v0.0.90

type PostSourceServerBodyOsTypeEnum

type PostSourceServerBodyOsTypeEnum struct {
	WINDOWS PostSourceServerBodyOsType
	LINUX   PostSourceServerBodyOsType
}

func GetPostSourceServerBodyOsTypeEnum

func GetPostSourceServerBodyOsTypeEnum() PostSourceServerBodyOsTypeEnum

type PostSourceServerBodyStartType added in v0.1.79

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

func (PostSourceServerBodyStartType) MarshalJSON added in v0.1.79

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

func (*PostSourceServerBodyStartType) UnmarshalJSON added in v0.1.79

func (c *PostSourceServerBodyStartType) UnmarshalJSON(b []byte) error

func (PostSourceServerBodyStartType) Value added in v0.1.79

type PostSourceServerBodyStartTypeEnum added in v0.1.79

type PostSourceServerBodyStartTypeEnum struct {
	MANUAL PostSourceServerBodyStartType
	MGC    PostSourceServerBodyStartType
	EMPTY  PostSourceServerBodyStartType
}

func GetPostSourceServerBodyStartTypeEnum added in v0.1.79

func GetPostSourceServerBodyStartTypeEnum() PostSourceServerBodyStartTypeEnum

type PostSourceServerBodyState added in v0.1.3

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

func (PostSourceServerBodyState) MarshalJSON added in v0.1.3

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

func (*PostSourceServerBodyState) UnmarshalJSON added in v0.1.3

func (c *PostSourceServerBodyState) UnmarshalJSON(b []byte) error

func (PostSourceServerBodyState) Value added in v0.1.3

type PostTask

type PostTask struct {

	// 任务名称
	Name string `json:"name"`

	// 任务类型 MIGRATE_FILE:文件级迁移 MIGRATE_BLOCK:块级迁移
	Type PostTaskType `json:"type"`

	// 迁移后是否启动目的端虚拟机
	StartTargetServer *bool `json:"start_target_server,omitempty"`

	// 是否自动启动
	AutoStart *bool `json:"auto_start,omitempty"`

	// 操作系统类型
	OsType string `json:"os_type"`

	SourceServer *SourceServerByTask `json:"source_server"`

	TargetServer *TargetServerByTask `json:"target_server"`

	// 迁移IP,如果是自动创建虚拟机,不需要此参数
	MigrationIp *string `json:"migration_ip,omitempty"`

	// region的名称
	RegionName string `json:"region_name"`

	// region ID
	RegionId string `json:"region_id"`

	// 项目名称
	ProjectName string `json:"project_name"`

	// 项目ID
	ProjectId string `json:"project_id"`

	// 优先级。默认为1
	Priority *int32 `json:"priority,omitempty"`

	// 自动创建虚拟机使用模板
	VmTemplateId *string `json:"vm_template_id,omitempty"`

	// 是否使用公网ip
	UsePublicIp *bool `json:"use_public_ip,omitempty"`

	// 是否使用ipv6
	UseIpv6 *bool `json:"use_ipv6,omitempty"`

	// 复制或者同步后是否会继续持续同步,不添加则默认是false
	Syncing *bool `json:"syncing,omitempty"`

	// 是否存在服务,如果存在,则创建任务
	ExistServer *bool `json:"exist_server,omitempty"`

	// 是否开启网络检测
	StartNetworkCheck *bool `json:"start_network_check,omitempty"`
}

PostTask 创建任务的参数

func (PostTask) String

func (o PostTask) String() string

type PostTaskType

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

func (PostTaskType) MarshalJSON

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

func (*PostTaskType) UnmarshalJSON

func (c *PostTaskType) UnmarshalJSON(b []byte) error

func (PostTaskType) Value added in v0.0.90

func (c PostTaskType) Value() string

type PostTaskTypeEnum

type PostTaskTypeEnum struct {
	MIGRATE_FILE  PostTaskType
	MIGRATE_BLOCK PostTaskType
}

func GetPostTaskTypeEnum

func GetPostTaskTypeEnum() PostTaskTypeEnum

type PublicIp

type PublicIp struct {

	// 弹性公网IP类型,默认为5_bgp
	Type string `json:"type"`

	// 带宽大小,单位:Mbit/s。 调整带宽时的最小单位会根据带宽范围不同存在差异。 小于等于300Mbit/s,默认最小单位为1Mbit/s。300Mbit/s~1000Mbit/s,默认最小单位为50Mbit/s。大于1000Mbit/s:默认最小单位为500Mbit/s。
	BandwidthSize int32 `json:"bandwidth_size"`

	// 带宽共享类型
	BandwidthShareType *string `json:"bandwidth_share_type,omitempty"`
}

PublicIp 公网ip

func (PublicIp) String

func (o PublicIp) String() string

type PutCopyStateReq

type PutCopyStateReq struct {

	// 源端服务器状 UNAVAILABLE:环境校验不通过 WAITING:等待 INIT:初始化 REPLICATE:复制 SYNCING:持续同步 STOPPING:暂停中 STOPPED:已暂停 DELETING:删除中 ERROR:错误 CLONING:等待克隆完成 CUTOVERING:启动目的端中 FINISHED:启动目的端完成
	Copystate *PutCopyStateReqCopystate `json:"copystate,omitempty"`

	// 迁移周期 cutovering:启动目的端中 cutovered:启动目的端完成 checking:检查中 setting:设置中 replicating:复制中 syncing:同步中
	Migrationcycle *PutCopyStateReqMigrationcycle `json:"migrationcycle,omitempty"`
}

PutCopyStateReq 源端复制状态

func (PutCopyStateReq) String

func (o PutCopyStateReq) String() string

type PutCopyStateReqCopystate

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

func (PutCopyStateReqCopystate) MarshalJSON

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

func (*PutCopyStateReqCopystate) UnmarshalJSON

func (c *PutCopyStateReqCopystate) UnmarshalJSON(b []byte) error

func (PutCopyStateReqCopystate) Value added in v0.0.90

func (c PutCopyStateReqCopystate) Value() string

type PutCopyStateReqMigrationcycle

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

func (PutCopyStateReqMigrationcycle) MarshalJSON

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

func (*PutCopyStateReqMigrationcycle) UnmarshalJSON

func (c *PutCopyStateReqMigrationcycle) UnmarshalJSON(b []byte) error

func (PutCopyStateReqMigrationcycle) Value added in v0.0.90

type PutDisk

type PutDisk struct {

	// 磁盘名称
	NeedMigration *bool `json:"need_migration,omitempty"`

	// 磁盘ID
	Id string `json:"id"`

	// 调整大小
	AdjustSize int64 `json:"adjust_size"`

	// 修改的卷信息
	PhysicalVolumes *[]PutVolume `json:"physical_volumes,omitempty"`
}

PutDisk 磁盘信息

func (PutDisk) String

func (o PutDisk) String() string

type PutDiskInfoReq

type PutDiskInfoReq struct {

	// 更新的磁盘信息
	Disks *[]ServerDisk `json:"disks,omitempty"`

	// 更新的卷信息
	Volumegroups *[]VolumeGroups `json:"volumegroups,omitempty"`

	// 更新的btrfs信息
	BtrfsList *[]BtrfsFileSystem `json:"btrfs_list,omitempty"`
}

PutDiskInfoReq This is a auto create Body Object

func (PutDiskInfoReq) String

func (o PutDiskInfoReq) String() string

type PutLogicalVolume

type PutLogicalVolume struct {

	// 逻辑卷ID
	Id string `json:"id"`

	// 是否迁移
	NeedMigration *bool `json:"need_migration,omitempty"`

	// 调整大小
	AdjustSize *int64 `json:"adjust_size,omitempty"`
}

PutLogicalVolume 修改的逻辑卷信息

func (PutLogicalVolume) String

func (o PutLogicalVolume) String() string

type PutSourceServerBody

type PutSourceServerBody struct {

	// 源端服务器修改后的名字
	Name *string `json:"name,omitempty"`

	// 源端服务器修改后所属的迁移项目ID
	Migprojectid *string `json:"migprojectid,omitempty"`

	// 磁盘
	Disks *[]PutDisk `json:"disks,omitempty"`

	// 卷组
	VolumeGroups *[]PutVolumeGroups `json:"volume_groups,omitempty"`
}

PutSourceServerBody 修改源端信息json的请求体,当前只支持修改源端服务器名称和迁移项目ID

func (PutSourceServerBody) String

func (o PutSourceServerBody) String() string

type PutTaskReq

type PutTaskReq struct {

	// 任务名称(用户自定义)
	Name *string `json:"name,omitempty"`

	// 任务类型,创建时必选,更新时可选 MIGRATE_FILE:文件级迁移 MIGRATE_BLOCK:块级迁移
	Type *PutTaskReqType `json:"type,omitempty"`

	// 操作系统类型,分为WINDOWS和LINUX,创建时必选,更新时可选
	OsType *PutTaskReqOsType `json:"os_type,omitempty"`

	// 迁移任务ID
	Id *string `json:"id,omitempty"`

	// 进程优先级  0:低  1:标准(默认)  2:高
	Priority *PutTaskReqPriority `json:"priority,omitempty"`

	// 目的端服务器的区域ID
	RegionId *string `json:"region_id,omitempty"`

	// 迁移完成后是否启动目的端服务器  true:启动  false:停止
	StartTargetServer *bool `json:"start_target_server,omitempty"`

	// 企业项目ID
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 目的端服务器的IP地址。  公网迁移时请填写弹性IP地址  专线迁移时请填写私有IP地址
	MigrationIp *string `json:"migration_ip,omitempty"`

	// 目的端服务器的区域名称
	RegionName *string `json:"region_name,omitempty"`

	// 限制迁移速率,单位:Mbps
	SpeedLimit *int32 `json:"speed_limit,omitempty"`

	// 目的端服务器所在项目名称
	ProjectName *string `json:"project_name,omitempty"`

	// 目的端服务器所在项目ID
	ProjectId *string `json:"project_id,omitempty"`

	// 模板ID
	VmTemplateId *string `json:"vm_template_id,omitempty"`

	SourceServer *PostSourceServerBody `json:"source_server,omitempty"`

	TargetServer *TargetServer `json:"target_server,omitempty"`

	// 任务状态
	State *string `json:"state,omitempty"`

	// 预估完成时间
	EstimateCompleteTime *int64 `json:"estimate_complete_time,omitempty"`

	// 连接状态
	Connected *bool `json:"connected,omitempty"`

	// 任务创建时间
	CreateDate *int64 `json:"create_date,omitempty"`

	// 任务开始时间
	StartDate *int64 `json:"start_date,omitempty"`

	// 任务结束时间
	FinishDate *int64 `json:"finish_date,omitempty"`

	// 迁移速率,单位:MB/S
	MigrateSpeed *float64 `json:"migrate_speed,omitempty"`

	// 错误信息
	ErrorJson *string `json:"error_json,omitempty"`

	// 任务总耗时
	TotalTime *int64 `json:"total_time,omitempty"`

	// 暂时保留float,兼容现网老版本的SMS-Agent
	FloatIp *string `json:"float_ip,omitempty"`

	// 迁移剩余时间(秒)
	RemainSeconds *int64 `json:"remain_seconds,omitempty"`

	// 目的端的快照ID
	TargetSnapshotId *string `json:"target_snapshot_id,omitempty"`

	CloneServer *CloneServer `json:"clone_server,omitempty"`

	// 任务包含的子任务列表
	SubTasks *[]SubTask `json:"sub_tasks,omitempty"`
}

PutTaskReq 更新指定迁移任务

func (PutTaskReq) String

func (o PutTaskReq) String() string

type PutTaskReqOsType

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

func (PutTaskReqOsType) MarshalJSON

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

func (*PutTaskReqOsType) UnmarshalJSON

func (c *PutTaskReqOsType) UnmarshalJSON(b []byte) error

func (PutTaskReqOsType) Value added in v0.0.90

func (c PutTaskReqOsType) Value() string

type PutTaskReqOsTypeEnum

type PutTaskReqOsTypeEnum struct {
	WINDOWS PutTaskReqOsType
	LINUX   PutTaskReqOsType
}

func GetPutTaskReqOsTypeEnum

func GetPutTaskReqOsTypeEnum() PutTaskReqOsTypeEnum

type PutTaskReqPriority added in v0.0.70

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

func (PutTaskReqPriority) MarshalJSON added in v0.0.70

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

func (*PutTaskReqPriority) UnmarshalJSON added in v0.0.70

func (c *PutTaskReqPriority) UnmarshalJSON(b []byte) error

func (PutTaskReqPriority) Value added in v0.0.90

func (c PutTaskReqPriority) Value() int32

type PutTaskReqPriorityEnum added in v0.0.70

type PutTaskReqPriorityEnum struct {
	E_0 PutTaskReqPriority
	E_1 PutTaskReqPriority
	E_2 PutTaskReqPriority
}

func GetPutTaskReqPriorityEnum added in v0.0.70

func GetPutTaskReqPriorityEnum() PutTaskReqPriorityEnum

type PutTaskReqType

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

func (PutTaskReqType) MarshalJSON

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

func (*PutTaskReqType) UnmarshalJSON

func (c *PutTaskReqType) UnmarshalJSON(b []byte) error

func (PutTaskReqType) Value added in v0.0.90

func (c PutTaskReqType) Value() string

type PutTaskReqTypeEnum

type PutTaskReqTypeEnum struct {
	MIGRATE_FILE  PutTaskReqType
	MIGRATE_BLOCK PutTaskReqType
}

func GetPutTaskReqTypeEnum

func GetPutTaskReqTypeEnum() PutTaskReqTypeEnum

type PutVolume

type PutVolume struct {

	// 数据库ID
	Id *string `json:"id,omitempty"`

	// 是否迁移
	NeedMigration *bool `json:"need_migration,omitempty"`

	// 调整大小
	AdjustSize *int64 `json:"adjust_size,omitempty"`
}

PutVolume 更新分区

func (PutVolume) String

func (o PutVolume) String() string

type PutVolumeGroups

type PutVolumeGroups struct {

	// lv信息
	LogicalVolumes *[]PutLogicalVolume `json:"logical_volumes,omitempty"`

	// 卷组ID
	Id string `json:"id"`

	// 是否迁移
	NeedMigration *bool `json:"need_migration,omitempty"`

	// 调整大小
	AdjustSize *int64 `json:"adjust_size,omitempty"`
}

PutVolumeGroups 逻辑卷组信息

func (PutVolumeGroups) String

func (o PutVolumeGroups) String() string

type RegisterServerRequest

type RegisterServerRequest struct {
	Body *PostSourceServerBody `json:"body,omitempty"`
}

RegisterServerRequest Request Object

func (RegisterServerRequest) String

func (o RegisterServerRequest) String() string

type RegisterServerResponse

type RegisterServerResponse struct {

	// 源端ID
	Id             *string `json:"id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

RegisterServerResponse Response Object

func (RegisterServerResponse) String

func (o RegisterServerResponse) String() string

type Server

type Server struct {

	// 源端在SMS数据库中的ID
	Id *string `json:"id,omitempty"`

	// 源端服务器IP,注册源端时必选,更新非必选
	Ip string `json:"ip"`

	// 用来区分不同源端服务器的名称
	Name string `json:"name"`

	// 源端主机名,注册源端必选,更新非必选
	Hostname *string `json:"hostname,omitempty"`

	// 源端服务器的OS类型,分为Windows和Linux,注册必选,更新非必选
	OsType ServerOsType `json:"os_type"`

	// 操作系统版本,注册必选,更新非必选
	OsVersion *string `json:"os_version,omitempty"`

	// 源端服务器启动类型,如BIOS或者UEFI
	Firmware *ServerFirmware `json:"firmware,omitempty"`

	// CPU个数,单位vCPU
	CpuQuantity *int32 `json:"cpu_quantity,omitempty"`

	// 内存大小,单位MB
	Memory *int64 `json:"memory,omitempty"`

	// 源端服务器的磁盘信息
	Disks *[]Disk `json:"disks,omitempty"`

	// Linux 必选,源端的Btrfs信息。如果源端不存在Btrfs,则为[]
	BtrfsList *[]BtrfsFileSystem `json:"btrfs_list,omitempty"`

	// 源端服务器的网卡信息
	Networks *[]NetWork `json:"networks,omitempty"`

	// 租户的domainId
	DomainId *string `json:"domain_id,omitempty"`

	// 是否安装rsync组件,Linux系统此参数为必选
	HasRsync *bool `json:"has_rsync,omitempty"`

	// Linux场景必选,源端是否是半虚拟化
	Paravirtualization *bool `json:"paravirtualization,omitempty"`

	// Linux必选,裸设备列表
	RawDevices *string `json:"raw_devices,omitempty"`

	// Windows 必选,是否缺少驱动文件
	DriverFiles *bool `json:"driver_files,omitempty"`

	// Windows必选,是否存在不正常服务
	SystemServices *bool `json:"system_services,omitempty"`

	// Windows必选,权限是否满足要求
	AccountRights *bool `json:"account_rights,omitempty"`

	// Linux必选,系统引导类型,BOOT_LOADER(GRUB/LILO)
	BootLoader *ServerBootLoader `json:"boot_loader,omitempty"`

	// Windows必选,系统目录
	SystemDir *string `json:"system_dir,omitempty"`

	// Linux必选,如果没有卷组,输入[]
	VolumeGroups *[]VolumeGroups `json:"volume_groups,omitempty"`
}

Server 源端服务器

func (Server) String

func (o Server) String() string

type ServerBootLoader

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

func (ServerBootLoader) MarshalJSON

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

func (*ServerBootLoader) UnmarshalJSON

func (c *ServerBootLoader) UnmarshalJSON(b []byte) error

func (ServerBootLoader) Value added in v0.0.90

func (c ServerBootLoader) Value() string

type ServerBootLoaderEnum

type ServerBootLoaderEnum struct {
	GRUB ServerBootLoader
	LILO ServerBootLoader
}

func GetServerBootLoaderEnum

func GetServerBootLoaderEnum() ServerBootLoaderEnum

type ServerDisk

type ServerDisk struct {

	// 磁盘名称
	Name string `json:"name"`

	// 磁盘的分区类型,添加源端时源端磁盘必选 MBR:mbr格式 GPT:gpt格式
	PartitionStyle *ServerDiskPartitionStyle `json:"partition_style,omitempty"`

	// 磁盘类型 BOOT:BOOT设备 OS:系统设备
	DeviceUse ServerDiskDeviceUse `json:"device_use"`

	// 磁盘总大小,以字节为单位
	Size int64 `json:"size"`

	// 磁盘已使用大小,以字节为单位
	UsedSize int64 `json:"used_size"`

	// 磁盘上的物理分区信息
	PhysicalVolumes []PhysicalVolume `json:"physical_volumes"`

	// 是否为系统盘
	OsDisk *bool `json:"os_disk,omitempty"`

	// Linux系统 目的端ECS中与源端关联的磁盘名称
	RelationName *string `json:"relation_name,omitempty"`

	// inode数量
	InodeSize *int32 `json:"inode_size,omitempty"`
}

ServerDisk 磁盘信息

func (ServerDisk) String

func (o ServerDisk) String() string

type ServerDiskDeviceUse

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

func (ServerDiskDeviceUse) MarshalJSON

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

func (*ServerDiskDeviceUse) UnmarshalJSON

func (c *ServerDiskDeviceUse) UnmarshalJSON(b []byte) error

func (ServerDiskDeviceUse) Value added in v0.0.90

func (c ServerDiskDeviceUse) Value() string

type ServerDiskDeviceUseEnum

type ServerDiskDeviceUseEnum struct {
	BOOT ServerDiskDeviceUse
	OS   ServerDiskDeviceUse
}

func GetServerDiskDeviceUseEnum

func GetServerDiskDeviceUseEnum() ServerDiskDeviceUseEnum

type ServerDiskPartitionStyle

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

func (ServerDiskPartitionStyle) MarshalJSON

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

func (*ServerDiskPartitionStyle) UnmarshalJSON

func (c *ServerDiskPartitionStyle) UnmarshalJSON(b []byte) error

func (ServerDiskPartitionStyle) Value added in v0.0.90

func (c ServerDiskPartitionStyle) Value() string

type ServerDiskPartitionStyleEnum

type ServerDiskPartitionStyleEnum struct {
	MBR ServerDiskPartitionStyle
	GPT ServerDiskPartitionStyle
}

func GetServerDiskPartitionStyleEnum

func GetServerDiskPartitionStyleEnum() ServerDiskPartitionStyleEnum

type ServerFirmware

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

func (ServerFirmware) MarshalJSON

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

func (*ServerFirmware) UnmarshalJSON

func (c *ServerFirmware) UnmarshalJSON(b []byte) error

func (ServerFirmware) Value added in v0.0.90

func (c ServerFirmware) Value() string

type ServerFirmwareEnum

type ServerFirmwareEnum struct {
	BIOS ServerFirmware
	UEFI ServerFirmware
}

func GetServerFirmwareEnum

func GetServerFirmwareEnum() ServerFirmwareEnum

type ServerOsType

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

func (ServerOsType) MarshalJSON

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

func (*ServerOsType) UnmarshalJSON

func (c *ServerOsType) UnmarshalJSON(b []byte) error

func (ServerOsType) Value added in v0.0.90

func (c ServerOsType) Value() string

type ServerOsTypeEnum

type ServerOsTypeEnum struct {
	WINDOWS ServerOsType
	LINUX   ServerOsType
}

func GetServerOsTypeEnum

func GetServerOsTypeEnum() ServerOsTypeEnum

type SgObject

type SgObject struct {

	// 安全组ID
	Id string `json:"id"`

	// 安全组名称
	Name string `json:"name"`
}

SgObject 安全组object

func (SgObject) String

func (o SgObject) String() string

type ShowApiVersionRequest added in v0.1.38

type ShowApiVersionRequest struct {

	// 版本信息
	Version string `json:"version"`
}

ShowApiVersionRequest Request Object

func (ShowApiVersionRequest) String added in v0.1.38

func (o ShowApiVersionRequest) String() string

type ShowApiVersionResponse added in v0.1.38

type ShowApiVersionResponse struct {

	// API版本号。
	Id *string `json:"id,omitempty"`

	// API链接地址信息。
	Links *[]Link `json:"links,omitempty"`

	// 版本状态。 SUPPORTED表示支持的版本
	Status *string `json:"status,omitempty"`

	// 版本更新时间。 格式为“yyyy-mm-dd Thh:mm:ssZ”。 其中,T指某个时间的开始;Z指UTC时间。例如:2018-09-30T00:00:00Z
	Updated        *string `json:"updated,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowApiVersionResponse Response Object

func (ShowApiVersionResponse) String added in v0.1.38

func (o ShowApiVersionResponse) String() string

type ShowCertKeyRequest

type ShowCertKeyRequest struct {

	// 迁移任务ID
	TaskId string `json:"task_id"`

	// 是否生成ca证书
	EnableCaCert *bool `json:"enable_ca_cert,omitempty"`
}

ShowCertKeyRequest Request Object

func (ShowCertKeyRequest) String

func (o ShowCertKeyRequest) String() string

type ShowCertKeyResponse

type ShowCertKeyResponse struct {

	// 源端证书
	Cert *string `json:"cert,omitempty"`

	// 源端私钥
	PrivateKey *string `json:"private_key,omitempty"`

	// ca证书
	Ca *string `json:"ca,omitempty"`

	// 目的端管理层证书
	TargetMgmtCert *string `json:"target_mgmt_cert,omitempty"`

	// 目的端管理层私钥
	TargetMgmtPrivateKey *string `json:"target_mgmt_private_key,omitempty"`

	// 目的端数据层证书
	TargetDataCert *string `json:"target_data_cert,omitempty"`

	// 目的端数据层私钥
	TargetDataPrivateKey *string `json:"target_data_private_key,omitempty"`
	HttpStatusCode       int     `json:"-"`
}

ShowCertKeyResponse Response Object

func (ShowCertKeyResponse) String

func (o ShowCertKeyResponse) String() string

type ShowCommandRequest

type ShowCommandRequest struct {

	// 命令对应的服务器ID
	ServerId string `json:"server_id"`
}

ShowCommandRequest Request Object

func (ShowCommandRequest) String

func (o ShowCommandRequest) String() string

type ShowCommandResponse

type ShowCommandResponse struct {

	// 命令名称,分为:START、STOP、DELETE、SYNC
	CommandName *string `json:"command_name,omitempty"`

	CommandParam   *ComandParam `json:"command_param,omitempty"`
	HttpStatusCode int          `json:"-"`
}

ShowCommandResponse Response Object

func (ShowCommandResponse) String

func (o ShowCommandResponse) String() string

type ShowConfigRequest added in v0.1.38

type ShowConfigRequest struct {
}

ShowConfigRequest Request Object

func (ShowConfigRequest) String added in v0.1.38

func (o ShowConfigRequest) String() string

type ShowConfigResponse added in v0.1.38

type ShowConfigResponse struct {

	// mainRegion,obs_domain,disktype,process_and_it及以后增加的信息
	Config map[string]string `json:"config,omitempty"`

	// region数组
	Regions        *[]map[string]string `json:"regions,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

ShowConfigResponse Response Object

func (ShowConfigResponse) String added in v0.1.38

func (o ShowConfigResponse) String() string

type ShowConfigSettingRequest added in v0.1.38

type ShowConfigSettingRequest struct {

	// 任务id
	TaskId string `json:"task_id"`

	// 具体请求配置项
	ConfigKey *string `json:"config_key,omitempty"`
}

ShowConfigSettingRequest Request Object

func (ShowConfigSettingRequest) String added in v0.1.38

func (o ShowConfigSettingRequest) String() string

type ShowConfigSettingResponse added in v0.1.38

type ShowConfigSettingResponse struct {

	// 任务ID
	TaskId *string `json:"task_id,omitempty"`

	// 迁移类型
	MigrateType *string `json:"migrate_type,omitempty"`

	// 配置项的具体配置信息
	Configurations *[]ConfigBody `json:"configurations,omitempty"`
	HttpStatusCode int           `json:"-"`
}

ShowConfigSettingResponse Response Object

func (ShowConfigSettingResponse) String added in v0.1.38

func (o ShowConfigSettingResponse) String() string

type ShowConsistencyResultRequest added in v0.1.72

type ShowConsistencyResultRequest struct {

	// 任务id
	TaskId string `json:"task_id"`
}

ShowConsistencyResultRequest Request Object

func (ShowConsistencyResultRequest) String added in v0.1.72

type ShowConsistencyResultResponse added in v0.1.72

type ShowConsistencyResultResponse struct {

	// 校验结果
	ConsistencyResult *[]ConsistencyResult `json:"consistency_result,omitempty"`

	// 检验完成时间
	FinishedTime   *int64 `json:"finished_time,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ShowConsistencyResultResponse Response Object

func (ShowConsistencyResultResponse) String added in v0.1.72

type ShowMigprojectRequest

type ShowMigprojectRequest struct {

	// 迁移项目ID
	MigProjectId string `json:"mig_project_id"`
}

ShowMigprojectRequest Request Object

func (ShowMigprojectRequest) String

func (o ShowMigprojectRequest) String() string

type ShowMigprojectResponse

type ShowMigprojectResponse struct {

	// 迁移项目ID
	Id *string `json:"id,omitempty"`

	// 迁移项目名称
	Name *string `json:"name,omitempty"`

	// 迁移项目描述
	Description *string `json:"description,omitempty"`

	// 是否为默认模板
	Isdefault *bool `json:"isdefault,omitempty"`

	// 区域名称
	Region *string `json:"region,omitempty"`

	// 迁移后是否启动目的端虚拟机
	StartTargetServer *bool `json:"start_target_server,omitempty"`

	// 限制迁移速率,单位:Mbps
	SpeedLimit *int32 `json:"speed_limit,omitempty"`

	// 是否使用公网IP迁移
	UsePublicIp *bool `json:"use_public_ip,omitempty"`

	// 是否是已经存在的服务器
	ExistServer *bool `json:"exist_server,omitempty"`

	// 迁移项目类型 MIGRATE_BLOCK:块级迁移 MIGRATE_FILE:文件级迁移
	Type *ShowMigprojectResponseType `json:"type,omitempty"`

	// 企业项目名称
	EnterpriseProject *string `json:"enterprise_project,omitempty"`

	// 首次复制或者同步后 是否继续持续同步
	Syncing *bool `json:"syncing,omitempty"`

	// 是否启动网络质量检测
	StartNetworkCheck *bool `json:"start_network_check,omitempty"`
	HttpStatusCode    int   `json:"-"`
}

ShowMigprojectResponse Response Object

func (ShowMigprojectResponse) String

func (o ShowMigprojectResponse) String() string

type ShowMigprojectResponseType

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

func (ShowMigprojectResponseType) MarshalJSON

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

func (*ShowMigprojectResponseType) UnmarshalJSON

func (c *ShowMigprojectResponseType) UnmarshalJSON(b []byte) error

func (ShowMigprojectResponseType) Value added in v0.0.90

type ShowMigprojectResponseTypeEnum

type ShowMigprojectResponseTypeEnum struct {
	MIGRATE_BLOCK ShowMigprojectResponseType
	MIGRATE_FILE  ShowMigprojectResponseType
}

func GetShowMigprojectResponseTypeEnum

func GetShowMigprojectResponseTypeEnum() ShowMigprojectResponseTypeEnum

type ShowOverviewRequest

type ShowOverviewRequest struct {
}

ShowOverviewRequest Request Object

func (ShowOverviewRequest) String

func (o ShowOverviewRequest) String() string

type ShowOverviewResponse

type ShowOverviewResponse struct {

	// 等待中
	Waiting *int32 `json:"waiting,omitempty"`

	// 复制中
	Replicating *int32 `json:"replicating,omitempty"`

	// 同步中
	Syncing *int32 `json:"syncing,omitempty"`

	// 其它
	Other          *int32 `json:"other,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ShowOverviewResponse Response Object

func (ShowOverviewResponse) String

func (o ShowOverviewResponse) String() string

type ShowPassphraseRequest added in v0.1.3

type ShowPassphraseRequest struct {

	// 任务ID
	TaskId string `json:"task_id"`
}

ShowPassphraseRequest Request Object

func (ShowPassphraseRequest) String added in v0.1.3

func (o ShowPassphraseRequest) String() string

type ShowPassphraseResponse added in v0.1.3

type ShowPassphraseResponse struct {

	// 任务ID
	TaskId *string `json:"task_id,omitempty"`

	// 安全传输通道证书passphrase
	Passphrase     *string `json:"passphrase,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowPassphraseResponse Response Object

func (ShowPassphraseResponse) String added in v0.1.3

func (o ShowPassphraseResponse) String() string

type ShowPrivacyAgreementsRequest added in v0.1.60

type ShowPrivacyAgreementsRequest struct {
}

ShowPrivacyAgreementsRequest Request Object

func (ShowPrivacyAgreementsRequest) String added in v0.1.60

type ShowPrivacyAgreementsResponse added in v0.1.60

type ShowPrivacyAgreementsResponse struct {

	// 查询用户是否同意隐私协议
	Flag           *bool `json:"flag,omitempty"`
	HttpStatusCode int   `json:"-"`
}

ShowPrivacyAgreementsResponse Response Object

func (ShowPrivacyAgreementsResponse) String added in v0.1.60

type ShowServerRequest

type ShowServerRequest struct {

	// 源端服务器在主机迁移服务中的ID
	SourceId string `json:"source_id"`
}

ShowServerRequest Request Object

func (ShowServerRequest) String

func (o ShowServerRequest) String() string

type ShowServerResponse

type ShowServerResponse struct {

	// 源端服务器ID
	Id *string `json:"id,omitempty"`

	// 源端服务器的IP
	Ip *string `json:"ip,omitempty"`

	// 用来区分不同源端服务器的名称
	Name *string `json:"name,omitempty"`

	// 源端主机名,注册源端必选,更新非必选
	Hostname *string `json:"hostname,omitempty"`

	// 企业项目ID
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 源端服务器注册的时间
	AddDate *int64 `json:"add_date,omitempty"`

	// 源端服务器的OS类型,分为Windows和Linux,注册必选,更新非必选
	OsType *string `json:"os_type,omitempty"`

	// 操作系统版本,注册必选,更新非必选
	OsVersion *string `json:"os_version,omitempty"`

	// 是否是OEM操作系统(Windows)
	OemSystem *bool `json:"oem_system,omitempty"`

	// 当前源端服务器状态 unavailable:环境校验不通过 waiting:等待 initialize:初始化 replicate:复制 syncing:持续同步 stopping:暂停中 stopped:已暂停 deleting:删除中 error:错误 cloning:等待克隆完成 testing:测试中 finished:启动目的端完成
	State *ShowServerResponseState `json:"state,omitempty"`

	// 与Agent连接状态
	Connected *bool `json:"connected,omitempty"`

	// 源端服务器启动类型,如BIOS或者UEFI
	Firmware *ShowServerResponseFirmware `json:"firmware,omitempty"`

	InitTargetServer *InitTargetServer `json:"init_target_server,omitempty"`

	// 源端CPU核心数
	CpuQuantity *int32 `json:"cpu_quantity,omitempty"`

	// 源端服务器物理内存大小,单位MB
	Memory *int64 `json:"memory,omitempty"`

	CurrentTask *TaskByServerSource `json:"current_task,omitempty"`

	// 源端服务器磁盘信息
	Disks *[]ServerDisk `json:"disks,omitempty"`

	// 源端服务器的卷组信息,Linux必选,如果没有卷组,输入[]
	VolumeGroups *[]VolumeGroups `json:"volume_groups,omitempty"`

	// Linux 必选,源端的Btrfs信息。如果源端不存在Btrfs,则为[]
	BtrfsList *[]BtrfsFileSystem `json:"btrfs_list,omitempty"`

	// 源端服务器的网卡信息
	Networks *[]NetWork `json:"networks,omitempty"`

	// 源端环境校验信息
	Checks *[]EnvironmentCheck `json:"checks,omitempty"`

	// 迁移周期 cutovering:启动目的端中 cutovered:启动目的端完成 checking:检查中 setting:设置中 replicating:复制中 syncing:同步中
	MigrationCycle *ShowServerResponseMigrationCycle `json:"migration_cycle,omitempty"`

	// 源端状态(state)上次发生变化的时间戳
	StateActionTime *int64 `json:"state_action_time,omitempty"`

	// 已经完成迁移的大小(B)
	Replicatesize *int64 `json:"replicatesize,omitempty"`

	// 需要迁移的数据量总大小(B)
	Totalsize *int64 `json:"totalsize,omitempty"`

	// agent上一次连接状态发生变化的时间戳
	LastVisitTime *int64 `json:"last_visit_time,omitempty"`

	// 迁移周期(migration_cycle)上一次变化的时间戳
	StageActionTime *int64 `json:"stage_action_time,omitempty"`

	// Agent版本信息
	AgentVersion   *string `json:"agent_version,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowServerResponse Response Object

func (ShowServerResponse) String

func (o ShowServerResponse) String() string

type ShowServerResponseFirmware

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

func (ShowServerResponseFirmware) MarshalJSON

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

func (*ShowServerResponseFirmware) UnmarshalJSON

func (c *ShowServerResponseFirmware) UnmarshalJSON(b []byte) error

func (ShowServerResponseFirmware) Value added in v0.0.90

type ShowServerResponseFirmwareEnum

type ShowServerResponseFirmwareEnum struct {
	BIOS ShowServerResponseFirmware
	UEFI ShowServerResponseFirmware
}

func GetShowServerResponseFirmwareEnum

func GetShowServerResponseFirmwareEnum() ShowServerResponseFirmwareEnum

type ShowServerResponseMigrationCycle

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

func (ShowServerResponseMigrationCycle) MarshalJSON

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

func (*ShowServerResponseMigrationCycle) UnmarshalJSON

func (c *ShowServerResponseMigrationCycle) UnmarshalJSON(b []byte) error

func (ShowServerResponseMigrationCycle) Value added in v0.0.90

type ShowServerResponseState

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

func (ShowServerResponseState) MarshalJSON

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

func (*ShowServerResponseState) UnmarshalJSON

func (c *ShowServerResponseState) UnmarshalJSON(b []byte) error

func (ShowServerResponseState) Value added in v0.0.90

func (c ShowServerResponseState) Value() string

type ShowSha256Request added in v0.1.3

type ShowSha256Request struct {

	// 关键字,加密字段值为uuid。
	Key string `json:"key"`
}

ShowSha256Request Request Object

func (ShowSha256Request) String added in v0.1.3

func (o ShowSha256Request) String() string

type ShowSha256Response added in v0.1.3

type ShowSha256Response struct {

	// Sha256值
	Value          *string `json:"value,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowSha256Response Response Object

func (ShowSha256Response) String added in v0.1.3

func (o ShowSha256Response) String() string

type ShowTargetPasswordRequest added in v0.1.3

type ShowTargetPasswordRequest struct {

	// 模板的ID
	Id string `json:"id"`
}

ShowTargetPasswordRequest Request Object

func (ShowTargetPasswordRequest) String added in v0.1.3

func (o ShowTargetPasswordRequest) String() string

type ShowTargetPasswordResponse added in v0.1.3

type ShowTargetPasswordResponse struct {

	// 模板ID
	TemplateId *string `json:"template_id,omitempty"`

	// 目的端密码
	TargetPassword *string `json:"target_password,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowTargetPasswordResponse Response Object

func (ShowTargetPasswordResponse) String added in v0.1.3

type ShowTaskRequest

type ShowTaskRequest struct {

	// 迁移任务ID
	TaskId string `json:"task_id"`
}

ShowTaskRequest Request Object

func (ShowTaskRequest) String

func (o ShowTaskRequest) String() string

type ShowTaskResponse

type ShowTaskResponse struct {

	// 任务名称(用户自定义)
	Name *string `json:"name,omitempty"`

	// 任务类型,创建时必选,更新时可选 MIGRATE_FILE:文件级迁移 MIGRATE_BLOCK:块级迁移
	Type *ShowTaskResponseType `json:"type,omitempty"`

	// 操作系统类型,分为WINDOWS和LINUX,创建时必选,更新时可选
	OsType *ShowTaskResponseOsType `json:"os_type,omitempty"`

	// 迁移任务ID
	Id *string `json:"id,omitempty"`

	// 进程优先级  0:低  1:标准(默认)  2:高
	Priority *ShowTaskResponsePriority `json:"priority,omitempty"`

	// 迁移限速
	SpeedLimit *int32 `json:"speed_limit,omitempty"`

	// 目的端服务器的区域ID
	RegionId *string `json:"region_id,omitempty"`

	// 迁移完成后是否启动目的端服务器  true:启动  false:停止
	StartTargetServer *bool `json:"start_target_server,omitempty"`

	// 企业项目ID
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 目的端服务器是否存在。true代表已有目的端服务器,false代表需要新建目的端服务器
	ExistServer *bool `json:"exist_server,omitempty"`

	// 目的端服务器的IP地址。  公网迁移时请填写弹性IP地址  专线迁移时请填写私有IP地址
	MigrationIp *string `json:"migration_ip,omitempty"`

	// 目的端服务器的区域名称
	RegionName *string `json:"region_name,omitempty"`

	// 目的端服务器所在项目名称
	ProjectName *string `json:"project_name,omitempty"`

	// 目的端服务器所在项目ID
	ProjectId *string `json:"project_id,omitempty"`

	// 模板ID
	VmTemplateId *string `json:"vm_template_id,omitempty"`

	SourceServer *SourceServerResponse `json:"source_server,omitempty"`

	TargetServer *TaskTargetServer `json:"target_server,omitempty"`

	// 任务状态
	State *string `json:"state,omitempty"`

	// 预估完成时间
	EstimateCompleteTime *int64 `json:"estimate_complete_time,omitempty"`

	// 连接状态
	Connected *bool `json:"connected,omitempty"`

	// 任务创建时间
	CreateDate *int64 `json:"create_date,omitempty"`

	// 任务开始时间
	StartDate *int64 `json:"start_date,omitempty"`

	// 任务结束时间
	FinishDate *int64 `json:"finish_date,omitempty"`

	// 迁移速率,单位:MB/S
	MigrateSpeed *float64 `json:"migrate_speed,omitempty"`

	// 压缩率
	CompressRate *float64 `json:"compress_rate,omitempty"`

	// 错误信息
	ErrorJson *string `json:"error_json,omitempty"`

	// 任务总耗时
	TotalTime *int64 `json:"total_time,omitempty"`

	// 暂时保留float,兼容现网老版本的SMS-Agent
	FloatIp *string `json:"float_ip,omitempty"`

	// 迁移剩余时间(秒)
	RemainSeconds *int64 `json:"remain_seconds,omitempty"`

	// 目的端的快照ID
	TargetSnapshotId *string `json:"target_snapshot_id,omitempty"`

	CloneServer *CloneServer `json:"clone_server,omitempty"`

	// 任务包含的子任务列表
	SubTasks *[]SubTask `json:"sub_tasks,omitempty"`

	NetworkCheckInfo *NetworkCheckInfoRequestBody `json:"network_check_info,omitempty"`
	HttpStatusCode   int                          `json:"-"`
}

ShowTaskResponse Response Object

func (ShowTaskResponse) String

func (o ShowTaskResponse) String() string

type ShowTaskResponseOsType

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

func (ShowTaskResponseOsType) MarshalJSON

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

func (*ShowTaskResponseOsType) UnmarshalJSON

func (c *ShowTaskResponseOsType) UnmarshalJSON(b []byte) error

func (ShowTaskResponseOsType) Value added in v0.0.90

func (c ShowTaskResponseOsType) Value() string

type ShowTaskResponseOsTypeEnum

type ShowTaskResponseOsTypeEnum struct {
	WINDOWS ShowTaskResponseOsType
	LINUX   ShowTaskResponseOsType
}

func GetShowTaskResponseOsTypeEnum

func GetShowTaskResponseOsTypeEnum() ShowTaskResponseOsTypeEnum

type ShowTaskResponsePriority added in v0.0.70

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

func (ShowTaskResponsePriority) MarshalJSON added in v0.0.70

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

func (*ShowTaskResponsePriority) UnmarshalJSON added in v0.0.70

func (c *ShowTaskResponsePriority) UnmarshalJSON(b []byte) error

func (ShowTaskResponsePriority) Value added in v0.0.90

func (c ShowTaskResponsePriority) Value() int32

type ShowTaskResponsePriorityEnum added in v0.0.70

type ShowTaskResponsePriorityEnum struct {
	E_0 ShowTaskResponsePriority
	E_1 ShowTaskResponsePriority
	E_2 ShowTaskResponsePriority
}

func GetShowTaskResponsePriorityEnum added in v0.0.70

func GetShowTaskResponsePriorityEnum() ShowTaskResponsePriorityEnum

type ShowTaskResponseType

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

func (ShowTaskResponseType) MarshalJSON

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

func (*ShowTaskResponseType) UnmarshalJSON

func (c *ShowTaskResponseType) UnmarshalJSON(b []byte) error

func (ShowTaskResponseType) Value added in v0.0.90

func (c ShowTaskResponseType) Value() string

type ShowTaskResponseTypeEnum

type ShowTaskResponseTypeEnum struct {
	MIGRATE_FILE  ShowTaskResponseType
	MIGRATE_BLOCK ShowTaskResponseType
}

func GetShowTaskResponseTypeEnum

func GetShowTaskResponseTypeEnum() ShowTaskResponseTypeEnum

type ShowTemplateRequest

type ShowTemplateRequest struct {

	// 需要查询的模板信息的ID
	Id string `json:"id"`
}

ShowTemplateRequest Request Object

func (ShowTemplateRequest) String

func (o ShowTemplateRequest) String() string

type ShowTemplateResponse

type ShowTemplateResponse struct {
	Template       *TemplateResponseBody `json:"template,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

ShowTemplateResponse Response Object

func (ShowTemplateResponse) String

func (o ShowTemplateResponse) String() string

type ShowsSpeedLimitsRequest

type ShowsSpeedLimitsRequest struct {

	// 查询限速信息的任务ID
	TaskId string `json:"task_id"`
}

ShowsSpeedLimitsRequest Request Object

func (ShowsSpeedLimitsRequest) String

func (o ShowsSpeedLimitsRequest) String() string

type ShowsSpeedLimitsResponse

type ShowsSpeedLimitsResponse struct {

	// 按时间段限速信息
	SpeedLimit     *[]SpeedLimitlJson `json:"speed_limit,omitempty"`
	HttpStatusCode int                `json:"-"`
}

ShowsSpeedLimitsResponse Response Object

func (ShowsSpeedLimitsResponse) String

func (o ShowsSpeedLimitsResponse) String() string

type SourceServerAssociatedWithTask

type SourceServerAssociatedWithTask struct {

	// 源端在SMS数据库中的ID
	Id *string `json:"id,omitempty"`

	// 源端服务器ip,注册源端时必选,更新非必选
	Ip string `json:"ip"`

	// 用来区分不同源端服务器的名称
	Name string `json:"name"`

	// 源端服务器的OS类型,分为Windows和Linux,注册必选,更新非必选
	OsType SourceServerAssociatedWithTaskOsType `json:"os_type"`

	// 操作系统版本,注册必选,更新非必选
	OsVersion *string `json:"os_version,omitempty"`

	// 是否是OEM操作系统(Windows)
	OemSystem *bool `json:"oem_system,omitempty"`

	// 当前源端服务器状态 unavailable:环境校验不通过 waiting:等待 initialize:初始化 replicate:复制 syncing:持续同步 stopping:暂停中 stopped:已暂停 deleting:删除中 error:错误 cloning:等待克隆完成 testing:测试中 finished:启动目的端完成
	State *SourceServerAssociatedWithTaskState `json:"state,omitempty"`
}

SourceServerAssociatedWithTask 任务关联的源端信息

func (SourceServerAssociatedWithTask) String

type SourceServerAssociatedWithTaskOsType

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

func (SourceServerAssociatedWithTaskOsType) MarshalJSON

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

func (*SourceServerAssociatedWithTaskOsType) UnmarshalJSON

func (c *SourceServerAssociatedWithTaskOsType) UnmarshalJSON(b []byte) error

func (SourceServerAssociatedWithTaskOsType) Value added in v0.0.90

type SourceServerAssociatedWithTaskOsTypeEnum

type SourceServerAssociatedWithTaskOsTypeEnum struct {
	WINDOWS SourceServerAssociatedWithTaskOsType
	LINUX   SourceServerAssociatedWithTaskOsType
}

func GetSourceServerAssociatedWithTaskOsTypeEnum

func GetSourceServerAssociatedWithTaskOsTypeEnum() SourceServerAssociatedWithTaskOsTypeEnum

type SourceServerAssociatedWithTaskState

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

func (SourceServerAssociatedWithTaskState) MarshalJSON

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

func (*SourceServerAssociatedWithTaskState) UnmarshalJSON

func (c *SourceServerAssociatedWithTaskState) UnmarshalJSON(b []byte) error

func (SourceServerAssociatedWithTaskState) Value added in v0.0.90

type SourceServerByTask

type SourceServerByTask struct {

	// 源端服务器ID
	Id string `json:"id"`
}

SourceServerByTask 源端服务器信息

func (SourceServerByTask) String

func (o SourceServerByTask) String() string

type SourceServerResponse added in v0.1.3

type SourceServerResponse struct {

	// 源端在SMS数据库中的ID
	Id *string `json:"id,omitempty"`

	// 源端服务器ip,注册源端时必选,更新非必选
	Ip string `json:"ip"`

	// 用来区分不同源端服务器的名称
	Name string `json:"name"`

	// 源端服务器的OS类型,分为Windows和Linux,注册必选,更新非必选
	OsType SourceServerResponseOsType `json:"os_type"`

	// 操作系统版本,注册必选,更新非必选
	OsVersion *string `json:"os_version,omitempty"`

	// 是否是OEM操作系统(Windows)
	OemSystem *bool `json:"oem_system,omitempty"`

	// 当前源端服务器状态 unavailable:环境校验不通过 waiting:等待 initialize:初始化 replicate:复制 syncing:持续同步 stopping:暂停中 stopped:已暂停 deleting:删除中 error:错误 cloning:等待克隆完成 testing:测试中 finished:启动目的端完成
	State *SourceServerResponseState `json:"state,omitempty"`

	// 迁移周期 cutovering:启动目的端中 cutovered:启动目的端完成 checking:检查中 setting:设置中 replicating:复制中 syncing:同步中
	MigrationCycle *SourceServerResponseMigrationCycle `json:"migration_cycle,omitempty"`
}

SourceServerResponse 返回源端服务器信息

func (SourceServerResponse) String added in v0.1.3

func (o SourceServerResponse) String() string

type SourceServerResponseMigrationCycle added in v0.1.3

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

func (SourceServerResponseMigrationCycle) MarshalJSON added in v0.1.3

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

func (*SourceServerResponseMigrationCycle) UnmarshalJSON added in v0.1.3

func (c *SourceServerResponseMigrationCycle) UnmarshalJSON(b []byte) error

func (SourceServerResponseMigrationCycle) Value added in v0.1.3

type SourceServerResponseOsType added in v0.1.3

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

func (SourceServerResponseOsType) MarshalJSON added in v0.1.3

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

func (*SourceServerResponseOsType) UnmarshalJSON added in v0.1.3

func (c *SourceServerResponseOsType) UnmarshalJSON(b []byte) error

func (SourceServerResponseOsType) Value added in v0.1.3

type SourceServerResponseOsTypeEnum added in v0.1.3

type SourceServerResponseOsTypeEnum struct {
	WINDOWS SourceServerResponseOsType
	LINUX   SourceServerResponseOsType
}

func GetSourceServerResponseOsTypeEnum added in v0.1.3

func GetSourceServerResponseOsTypeEnum() SourceServerResponseOsTypeEnum

type SourceServerResponseState added in v0.1.3

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

func (SourceServerResponseState) MarshalJSON added in v0.1.3

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

func (*SourceServerResponseState) UnmarshalJSON added in v0.1.3

func (c *SourceServerResponseState) UnmarshalJSON(b []byte) error

func (SourceServerResponseState) Value added in v0.1.3

type SourceServersResponseBody

type SourceServersResponseBody struct {

	// 源端服务器ID
	Id *string `json:"id,omitempty"`

	// 源端服务器的IP地址
	Ip *string `json:"ip,omitempty"`

	// 源端服务器名称
	Name *string `json:"name,omitempty"`

	// 企业项目ID
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 源端服务器的注册时间
	AddDate *int64 `json:"add_date,omitempty"`

	// 操作系统类型,OS_TYPE (WINDOWS/LINUX)
	OsType *SourceServersResponseBodyOsType `json:"os_type,omitempty"`

	// 系统详细版本号,如CENTOS7.6等
	OsVersion *string `json:"os_version,omitempty"`

	// 是否是OEM操作系统(Windows)
	OemSystem *bool `json:"oem_system,omitempty"`

	// 源端服务器状态 unavailable:环境校验不通过 waiting:等待 initialize:初始化 replicate:复制 syncing:持续同步 stopping:暂停中 stopped:已暂停 deleting:删除中 error:错误 cloning:等待克隆完成 cutovering:启动目的端中 finished:启动目的端完成
	State *SourceServersResponseBodyState `json:"state,omitempty"`

	// 源端服务器与主机迁移服务端是否连接
	Connected *bool `json:"connected,omitempty"`

	// 源端CPU核心数
	CpuQuantity *int32 `json:"cpu_quantity,omitempty"`

	// 源端物理内存大小(单位:字节)
	Memory *int64 `json:"memory,omitempty"`

	CurrentTask *TaskByServerSources `json:"current_task,omitempty"`

	// 源端校验检查项列表
	Checks *[]EnvironmentCheck `json:"checks,omitempty"`

	InitTargetServer *InitTargetServer `json:"init_target_server,omitempty"`

	// 已复制的大小(单位:字节)
	Replicatesize *int64 `json:"replicatesize,omitempty"`

	// 迁移周期(migration_cycle)上一次变化的时间
	StageActionTime *int64 `json:"stage_action_time,omitempty"`

	// 需要迁移的数据量总大小(单位:字节)
	Totalsize *int64 `json:"totalsize,omitempty"`

	// Agent上一次连接状态发生变化的时间
	LastVisitTime *int64 `json:"last_visit_time,omitempty"`

	// 迁移周期 cutovering:启动目的端中 cutovered:启动目的端完成 checking:检查中 setting:设置中 replicating:复制中 syncing:同步中
	MigrationCycle *SourceServersResponseBodyMigrationCycle `json:"migration_cycle,omitempty"`

	// 源端状态(state)上次发生变化的时间
	StateActionTime *int64 `json:"state_action_time,omitempty"`

	// 是否有一致性校验结果
	IsConsistencyResultExist *bool `json:"is_consistency_result_exist,omitempty"`
}

SourceServersResponseBody 源端服务器列表信息

func (SourceServersResponseBody) String

func (o SourceServersResponseBody) String() string

type SourceServersResponseBodyMigrationCycle

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

func (SourceServersResponseBodyMigrationCycle) MarshalJSON

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

func (*SourceServersResponseBodyMigrationCycle) UnmarshalJSON

func (c *SourceServersResponseBodyMigrationCycle) UnmarshalJSON(b []byte) error

func (SourceServersResponseBodyMigrationCycle) Value added in v0.0.90

type SourceServersResponseBodyOsType

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

func (SourceServersResponseBodyOsType) MarshalJSON

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

func (*SourceServersResponseBodyOsType) UnmarshalJSON

func (c *SourceServersResponseBodyOsType) UnmarshalJSON(b []byte) error

func (SourceServersResponseBodyOsType) Value added in v0.0.90

type SourceServersResponseBodyOsTypeEnum

type SourceServersResponseBodyOsTypeEnum struct {
	WINDOWS SourceServersResponseBodyOsType
	LINUX   SourceServersResponseBodyOsType
}

func GetSourceServersResponseBodyOsTypeEnum

func GetSourceServersResponseBodyOsTypeEnum() SourceServersResponseBodyOsTypeEnum

type SourceServersResponseBodyState

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

func (SourceServersResponseBodyState) MarshalJSON

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

func (*SourceServersResponseBodyState) UnmarshalJSON

func (c *SourceServersResponseBodyState) UnmarshalJSON(b []byte) error

func (SourceServersResponseBodyState) Value added in v0.0.90

type SpeedLimit

type SpeedLimit struct {

	// 按时间段限速信息
	SpeedLimit []SpeedLimitlJson `json:"speed_limit"`
}

SpeedLimit 修改速率的参数

func (SpeedLimit) String

func (o SpeedLimit) String() string

type SpeedLimitlJson

type SpeedLimitlJson struct {

	// 时间段开始时间,格式:XX:XX。
	Start string `json:"start"`

	// 时间段结束时间,格式:XX:XX。
	End string `json:"end"`

	// 时间段的速率,0-1000的整数,单位:Mbit/s。
	Speed int32 `json:"speed"`
}

SpeedLimitlJson 速率参数

func (SpeedLimitlJson) String

func (o SpeedLimitlJson) String() string

type SubTask

type SubTask struct {

	// 子任务ID
	Id *int64 `json:"id,omitempty"`

	// 子任务名称
	Name *string `json:"name,omitempty"`

	// 子任务的进度,取值为0-100之间的整数
	Progress int32 `json:"progress"`

	// 子任务开始时间
	StartDate *int64 `json:"start_date,omitempty"`

	// 子任务结束时间(如果子任务还没有结束,则为空)
	EndDate *int64 `json:"end_date,omitempty"`

	// 迁移速率,Mbit/s
	MigrateSpeed *float64 `json:"migrate_speed,omitempty"`

	// 触发子任务的用户操作名称
	UserOp *string `json:"user_op,omitempty"`

	// 迁移或同步时,具体的迁移详情
	ProcessTrace *string `json:"process_trace,omitempty"`
}

SubTask 修改任务进度

func (SubTask) String

func (o SubTask) String() string

type SubTaskAssociatedWithTask

type SubTaskAssociatedWithTask struct {

	// 子任务ID
	Id *int64 `json:"id,omitempty"`

	// 子任务名称
	Name *string `json:"name,omitempty"`

	// 子任务的进度,取值为0-100之间的整数
	Progress *int32 `json:"progress,omitempty"`

	// 子任务开始时间
	StartDate *int64 `json:"start_date,omitempty"`

	// 子任务结束时间(如果子任务还没有结束,则为空)
	EndDate *int64 `json:"end_date,omitempty"`

	// 迁移或同步时,具体的迁移详情
	ProcessTrace *string `json:"process_trace,omitempty"`
}

SubTaskAssociatedWithTask 任务关联的子任务信息

func (SubTaskAssociatedWithTask) String

func (o SubTaskAssociatedWithTask) String() string

type TargetDisk

type TargetDisk struct {

	// 磁盘标识ID
	Id *int64 `json:"id,omitempty"`

	// 判断是普通分区,启动分区还是系统分区 BOOT:BOOT设备 OS:系统设备 NORMAL:平常
	DeviceUse *TargetDiskDeviceUse `json:"device_use,omitempty"`

	// 磁盘ID
	DiskId *string `json:"disk_id,omitempty"`

	// 磁盘名称
	Name *string `json:"name,omitempty"`

	// 逻辑卷信息
	PhysicalVolumes *[]TargetPhysicalVolumes `json:"physical_volumes,omitempty"`

	// 大小
	Size *int64 `json:"size,omitempty"`

	// 已使用大小
	UsedSize *int64 `json:"used_size,omitempty"`

	// 磁盘索引
	DiskIndex *string `json:"disk_index,omitempty"`

	// 是否为系统盘
	OsDisk *bool `json:"os_disk,omitempty"`

	// 磁盘的分区类型,添加源端时源端磁盘必选 MBR:mbr格式 GPT:gpt格式
	PartitionStyle *TargetDiskPartitionStyle `json:"partition_style,omitempty"`

	// Linux系统 目的端ECS中与源端关联的磁盘名称
	RelationName *string `json:"relation_name,omitempty"`
}

TargetDisk 目的端磁盘

func (TargetDisk) String

func (o TargetDisk) String() string

type TargetDiskDeviceUse

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

func (TargetDiskDeviceUse) MarshalJSON

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

func (*TargetDiskDeviceUse) UnmarshalJSON

func (c *TargetDiskDeviceUse) UnmarshalJSON(b []byte) error

func (TargetDiskDeviceUse) Value added in v0.0.90

func (c TargetDiskDeviceUse) Value() string

type TargetDiskDeviceUseEnum

type TargetDiskDeviceUseEnum struct {
	NORMAL TargetDiskDeviceUse
	OS     TargetDiskDeviceUse
	BOOT   TargetDiskDeviceUse
}

func GetTargetDiskDeviceUseEnum

func GetTargetDiskDeviceUseEnum() TargetDiskDeviceUseEnum

type TargetDiskPartitionStyle added in v0.1.3

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

func (TargetDiskPartitionStyle) MarshalJSON added in v0.1.3

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

func (*TargetDiskPartitionStyle) UnmarshalJSON added in v0.1.3

func (c *TargetDiskPartitionStyle) UnmarshalJSON(b []byte) error

func (TargetDiskPartitionStyle) Value added in v0.1.3

func (c TargetDiskPartitionStyle) Value() string

type TargetDiskPartitionStyleEnum added in v0.1.3

type TargetDiskPartitionStyleEnum struct {
	MBR TargetDiskPartitionStyle
	GPT TargetDiskPartitionStyle
}

func GetTargetDiskPartitionStyleEnum added in v0.1.3

func GetTargetDiskPartitionStyleEnum() TargetDiskPartitionStyleEnum

type TargetDisks

type TargetDisks struct {

	// 磁盘类型,普通磁盘,OS所在磁盘,BOOT所在磁盘 BOOT:BOOT设备 OS:系统设备 NORMAL:平常
	DeviceUse *TargetDisksDeviceUse `json:"device_use,omitempty"`

	// 磁盘ID,自动创建虚拟机不用设置
	DiskId *string `json:"disk_id,omitempty"`

	// 名称,根据磁盘顺序设置为disk X
	Name string `json:"name"`

	// 物理卷信息
	PhysicalVolumes []PhysicalVolumes `json:"physical_volumes"`

	// 大小
	Size int64 `json:"size"`

	// 使用大小
	UsedSize int64 `json:"used_size"`
}

TargetDisks 目的端磁盘信息

func (TargetDisks) String

func (o TargetDisks) String() string

type TargetDisksDeviceUse

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

func (TargetDisksDeviceUse) MarshalJSON

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

func (*TargetDisksDeviceUse) UnmarshalJSON

func (c *TargetDisksDeviceUse) UnmarshalJSON(b []byte) error

func (TargetDisksDeviceUse) Value added in v0.0.90

func (c TargetDisksDeviceUse) Value() string

type TargetDisksDeviceUseEnum

type TargetDisksDeviceUseEnum struct {
	NORMAL TargetDisksDeviceUse
	OS     TargetDisksDeviceUse
	BOOT   TargetDisksDeviceUse
}

func GetTargetDisksDeviceUseEnum

func GetTargetDisksDeviceUseEnum() TargetDisksDeviceUseEnum

type TargetPhysicalVolumes

type TargetPhysicalVolumes struct {

	// 逻辑卷ID
	Id *int64 `json:"id,omitempty"`

	// 分区类型 NORMAL:平常 OS:系统设备 BOOT:BOOT设备
	DeviceUse *TargetPhysicalVolumesDeviceUse `json:"device_use,omitempty"`

	// 文件系统
	FileSystem *string `json:"file_system,omitempty"`

	// 编号
	Index *int32 `json:"index,omitempty"`

	// 挂载点
	MountPoint *string `json:"mount_point,omitempty"`

	// 名称
	Name *string `json:"name,omitempty"`

	// 大小
	Size *int64 `json:"size,omitempty"`

	// 使用大小
	UsedSize *int64 `json:"used_size,omitempty"`

	// uuid
	Uuid *string `json:"uuid,omitempty"`

	// Linux系统 目的端ECS中与源端关联的磁盘名称
	RelationName *string `json:"relation_name,omitempty"`

	// 分区空闲大小
	FreeSize *int64 `json:"free_size,omitempty"`
}

TargetPhysicalVolumes 物理分区

func (TargetPhysicalVolumes) String

func (o TargetPhysicalVolumes) String() string

type TargetPhysicalVolumesDeviceUse

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

func (TargetPhysicalVolumesDeviceUse) MarshalJSON

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

func (*TargetPhysicalVolumesDeviceUse) UnmarshalJSON

func (c *TargetPhysicalVolumesDeviceUse) UnmarshalJSON(b []byte) error

func (TargetPhysicalVolumesDeviceUse) Value added in v0.0.90

type TargetServer

type TargetServer struct {

	// 源端在SMS数据库中的ID
	Id *string `json:"id,omitempty"`

	// 源端服务器IP,注册源端时必选,更新非必选
	Ip string `json:"ip"`

	// 目的端服务器名称
	Name string `json:"name"`

	// 源端主机名,注册源端必选,更新非必选
	Hostname *string `json:"hostname,omitempty"`

	// 源端服务器的OS类型,分为Windows和Linux,注册必选,更新非必选
	OsType TargetServerOsType `json:"os_type"`

	// 操作系统版本,注册必选,更新非必选
	OsVersion *string `json:"os_version,omitempty"`

	// 源端服务器启动类型,如BIOS或者UEFI
	Firmware *TargetServerFirmware `json:"firmware,omitempty"`

	// CPU个数,单位vCPU
	CpuQuantity *int32 `json:"cpu_quantity,omitempty"`

	// 内存大小,单位MB
	Memory *int64 `json:"memory,omitempty"`

	// 目的端磁盘信息,一般和源端保持一致
	Disks []TargetDisk `json:"disks"`

	// Linux 必选,源端的Btrfs信息。如果源端不存在Btrfs,则为[]
	BtrfsList *[]string `json:"btrfs_list,omitempty"`

	// 源端服务器的网卡信息
	Networks *[]NetWork `json:"networks,omitempty"`

	// 租户的domainId
	DomainId *string `json:"domain_id,omitempty"`

	// 是否安装rsync组件,Linux系统此参数为必选
	HasRsync *bool `json:"has_rsync,omitempty"`

	// Linux场景必选,源端是否是半虚拟化
	Paravirtualization *bool `json:"paravirtualization,omitempty"`

	// Linux必选,裸设备列表
	RawDevices *string `json:"raw_devices,omitempty"`

	// Windows 必选,是否缺少驱动文件
	DriverFiles *bool `json:"driver_files,omitempty"`

	// Windows必选,是否存在不正常服务
	SystemServices *bool `json:"system_services,omitempty"`

	// Windows必选,权限是否满足要求
	AccountRights *bool `json:"account_rights,omitempty"`

	// Linux必选,系统引导类型,BOOT_LOADER(GRUB/LILO)
	BootLoader *TargetServerBootLoader `json:"boot_loader,omitempty"`

	// Windows必选,系统目录
	SystemDir *string `json:"system_dir,omitempty"`

	// lvm信息,一般和源端保持一致
	VolumeGroups *[]VolumeGroups `json:"volume_groups,omitempty"`

	// 目的端服务器ID,自动创建虚拟机不需要这个参数
	VmId *string `json:"vm_id,omitempty"`

	// 目的端服务器的规格
	Flavor *string `json:"flavor,omitempty"`

	// 目的端代理镜像磁盘ID
	ImageDiskId *string `json:"image_disk_id,omitempty"`

	// 目的端快照ID
	SnapshotIds *string `json:"snapshot_ids,omitempty"`

	// 目的端回滚快照ID
	CutoveredSnapshotIds *string `json:"cutovered_snapshot_ids,omitempty"`
}

TargetServer 目的端服务器

func (TargetServer) String

func (o TargetServer) String() string

type TargetServerAssociatedWithTask

type TargetServerAssociatedWithTask struct {

	// 目的端在SMS数据库中的ID
	Id *string `json:"id,omitempty"`

	// 目的端虚机ID
	VmId *string `json:"vm_id,omitempty"`

	// 目的端服务器名称
	Name *string `json:"name,omitempty"`

	// 目的端服务器IP
	Ip *string `json:"ip,omitempty"`

	// 目的端服务器的OS类型 WINDOWS:WINDOWS系统 LINUX:LINUX系统
	OsType *TargetServerAssociatedWithTaskOsType `json:"os_type,omitempty"`

	// 操作系统版本
	OsVersion *string `json:"os_version,omitempty"`
}

TargetServerAssociatedWithTask 任务关联的目的端信息

func (TargetServerAssociatedWithTask) String

type TargetServerAssociatedWithTaskOsType

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

func (TargetServerAssociatedWithTaskOsType) MarshalJSON

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

func (*TargetServerAssociatedWithTaskOsType) UnmarshalJSON

func (c *TargetServerAssociatedWithTaskOsType) UnmarshalJSON(b []byte) error

func (TargetServerAssociatedWithTaskOsType) Value added in v0.0.90

type TargetServerAssociatedWithTaskOsTypeEnum

type TargetServerAssociatedWithTaskOsTypeEnum struct {
	WINDOWS TargetServerAssociatedWithTaskOsType
	LINUX   TargetServerAssociatedWithTaskOsType
}

func GetTargetServerAssociatedWithTaskOsTypeEnum

func GetTargetServerAssociatedWithTaskOsTypeEnum() TargetServerAssociatedWithTaskOsTypeEnum

type TargetServerBootLoader

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

func (TargetServerBootLoader) MarshalJSON

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

func (*TargetServerBootLoader) UnmarshalJSON

func (c *TargetServerBootLoader) UnmarshalJSON(b []byte) error

func (TargetServerBootLoader) Value added in v0.0.90

func (c TargetServerBootLoader) Value() string

type TargetServerBootLoaderEnum

type TargetServerBootLoaderEnum struct {
	GRUB TargetServerBootLoader
	LILO TargetServerBootLoader
}

func GetTargetServerBootLoaderEnum

func GetTargetServerBootLoaderEnum() TargetServerBootLoaderEnum

type TargetServerById

type TargetServerById struct {

	// 目的端服务器ID
	VmId *string `json:"vm_id,omitempty"`

	// 目的端服务器名称
	Name *string `json:"name,omitempty"`
}

TargetServerById 目的端

func (TargetServerById) String

func (o TargetServerById) String() string

type TargetServerByTask

type TargetServerByTask struct {

	// btrfs信息,数据从源端获取
	BtrfsList *[]BtrfsFileSystem `json:"btrfs_list,omitempty"`

	// 磁盘信息
	Disks []TargetDisks `json:"disks"`

	// 名称
	Name string `json:"name"`

	// 虚拟机ID
	VmId string `json:"vm_id"`

	// 卷组,数据从源端获取
	VolumeGroups *[]VolumeGroups `json:"volume_groups,omitempty"`
}

TargetServerByTask 目的端虚拟机信息

func (TargetServerByTask) String

func (o TargetServerByTask) String() string

type TargetServerFirmware

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

func (TargetServerFirmware) MarshalJSON

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

func (*TargetServerFirmware) UnmarshalJSON

func (c *TargetServerFirmware) UnmarshalJSON(b []byte) error

func (TargetServerFirmware) Value added in v0.0.90

func (c TargetServerFirmware) Value() string

type TargetServerFirmwareEnum

type TargetServerFirmwareEnum struct {
	BIOS TargetServerFirmware
	UEFI TargetServerFirmware
}

func GetTargetServerFirmwareEnum

func GetTargetServerFirmwareEnum() TargetServerFirmwareEnum

type TargetServerOsType

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

func (TargetServerOsType) MarshalJSON

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

func (*TargetServerOsType) UnmarshalJSON

func (c *TargetServerOsType) UnmarshalJSON(b []byte) error

func (TargetServerOsType) Value added in v0.0.90

func (c TargetServerOsType) Value() string

type TargetServerOsTypeEnum

type TargetServerOsTypeEnum struct {
	WINDOWS TargetServerOsType
	LINUX   TargetServerOsType
}

func GetTargetServerOsTypeEnum

func GetTargetServerOsTypeEnum() TargetServerOsTypeEnum

type TaskByServerSource

type TaskByServerSource struct {

	// 任务ID
	Id *string `json:"id,omitempty"`

	// 任务名称
	Name *string `json:"name,omitempty"`

	// 任务类型
	Type *string `json:"type,omitempty"`

	// 任务状态
	State *string `json:"state,omitempty"`

	// 开始时间
	StartDate *int64 `json:"start_date,omitempty"`

	// 限速
	SpeedLimit *int32 `json:"speed_limit,omitempty"`

	// 迁移速率
	MigrateSpeed *float64 `json:"migrate_speed,omitempty"`

	// 是否启动虚拟机
	StartTargetServer *bool `json:"start_target_server,omitempty"`

	// 虚拟机模板ID
	VmTemplateId *string `json:"vm_template_id,omitempty"`

	// region_id
	RegionId *string `json:"region_id,omitempty"`

	// 项目名称
	ProjectName *string `json:"project_name,omitempty"`

	// 项目ID
	ProjectId *string `json:"project_id,omitempty"`

	TargetServer *TargetServerById `json:"target_server,omitempty"`

	// 日志收集状态
	LogCollectStatus *string `json:"log_collect_status,omitempty"`

	// 是否使用已有虚拟机
	ExistServer *bool `json:"exist_server,omitempty"`

	// 是否使用公网IP
	UsePublicIp *bool `json:"use_public_ip,omitempty"`

	CloneServer *CloneServer `json:"clone_server,omitempty"`
}

TaskByServerSource 源端列表中关联的任务

func (TaskByServerSource) String

func (o TaskByServerSource) String() string

type TaskByServerSources

type TaskByServerSources struct {

	// 任务ID
	Id *string `json:"id,omitempty"`

	// 任务名称
	Name *string `json:"name,omitempty"`

	// 任务类型
	Type *string `json:"type,omitempty"`

	// 任务状态
	State *string `json:"state,omitempty"`

	// 预估结束时间
	EstimateCompleteTime *int64 `json:"estimate_complete_time,omitempty"`

	// 开始时间
	StartDate *int64 `json:"start_date,omitempty"`

	// 限速
	SpeedLimit *int32 `json:"speed_limit,omitempty"`

	// 迁移速率
	MigrateSpeed *float64 `json:"migrate_speed,omitempty"`

	// 压缩率
	CompressRate *float64 `json:"compress_rate,omitempty"`

	// 是否启动虚拟机
	StartTargetServer *bool `json:"start_target_server,omitempty"`

	// 虚拟机模板ID
	VmTemplateId *string `json:"vm_template_id,omitempty"`

	// region_id
	RegionId *string `json:"region_id,omitempty"`

	// 项目名称
	ProjectName *string `json:"project_name,omitempty"`

	// 项目ID
	ProjectId *string `json:"project_id,omitempty"`

	TargetServer *TargetServerById `json:"target_server,omitempty"`

	// 日志收集状态
	LogCollectStatus *string `json:"log_collect_status,omitempty"`

	// 是否使用已有虚拟机
	ExistServer *bool `json:"exist_server,omitempty"`

	// 是否使用公网IP
	UsePublicIp *bool `json:"use_public_ip,omitempty"`

	CloneServer *CloneServer `json:"clone_server,omitempty"`

	// 已迁移时长
	RemainSeconds *int64 `json:"remain_seconds,omitempty"`

	// 上传日志指定桶名称
	LogBucket *string `json:"log_bucket,omitempty"`

	// 分享链接有效期
	LogExpire *int64 `json:"log_expire,omitempty"`

	// 日志上传时间
	LogUploadTime *int64 `json:"log_upload_time,omitempty"`

	// 分享链接url
	LogShareUrl *string `json:"log_share_url,omitempty"`
}

TaskByServerSources 源端列表中关联的任务

func (TaskByServerSources) String

func (o TaskByServerSources) String() string

type TaskTargetServer

type TaskTargetServer struct {

	// 目的端在SMS数据库中的ID
	Id *string `json:"id,omitempty"`

	// 目的端服务器ID,自动创建虚拟机不需要这个参数
	VmId *string `json:"vm_id,omitempty"`

	// 目的端服务器的名称
	Name *string `json:"name,omitempty"`

	// 目的端服务器IP
	Ip *string `json:"ip,omitempty"`

	// 源端服务器的OS类型,分为Windows和Linux,注册必选,更新非必选
	OsType *TaskTargetServerOsType `json:"os_type,omitempty"`

	// 操作系统版本,注册必选,更新非必选
	OsVersion *string `json:"os_version,omitempty"`

	// Windows必选,系统目录
	SystemDir *string `json:"system_dir,omitempty"`

	// 目的端磁盘信息,一般和源端保持一致
	Disks []TargetDisk `json:"disks"`

	// lvm信息,一般和源端保持一致
	VolumeGroups *[]VolumeGroups `json:"volume_groups,omitempty"`

	// Linux 必选,源端的Btrfs信息。如果源端不存在Btrfs,则为[]
	BtrfsList *[]string `json:"btrfs_list,omitempty"`

	// 目的端代理镜像磁盘ID
	ImageDiskId *string `json:"image_disk_id,omitempty"`

	// 目的端回滚快照ID
	CutoveredSnapshotIds *string `json:"cutovered_snapshot_ids,omitempty"`
}

TaskTargetServer 目的端服务器

func (TaskTargetServer) String

func (o TaskTargetServer) String() string

type TaskTargetServerOsType

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

func (TaskTargetServerOsType) MarshalJSON

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

func (*TaskTargetServerOsType) UnmarshalJSON

func (c *TaskTargetServerOsType) UnmarshalJSON(b []byte) error

func (TaskTargetServerOsType) Value added in v0.0.90

func (c TaskTargetServerOsType) Value() string

type TaskTargetServerOsTypeEnum

type TaskTargetServerOsTypeEnum struct {
	WINDOWS TaskTargetServerOsType
	LINUX   TaskTargetServerOsType
}

func GetTaskTargetServerOsTypeEnum

func GetTaskTargetServerOsTypeEnum() TaskTargetServerOsTypeEnum

type TasksResponseBody

type TasksResponseBody struct {

	// 迁移任务ID
	Id *string `json:"id,omitempty"`

	// 任务名称(用户自定义)
	Name *string `json:"name,omitempty"`

	// 任务类型,创建时必选,更新时可选 MIGRATE_FILE:文件级迁移 MIGRATE_BLOCK:块级迁移
	Type *TasksResponseBodyType `json:"type,omitempty"`

	// 操作系统类型,分为WINDOWS和LINUX,创建时必选,更新时可选
	OsType *TasksResponseBodyOsType `json:"os_type,omitempty"`

	// 任务状态
	State *string `json:"state,omitempty"`

	// 预估完成时间
	EstimateCompleteTime *int64 `json:"estimate_complete_time,omitempty"`

	// 任务创建时间
	CreateDate *int64 `json:"create_date,omitempty"`

	// 进程优先级 0:低 1:标准 2:高
	Priority *TasksResponseBodyPriority `json:"priority,omitempty"`

	// 迁移限速
	SpeedLimit *int32 `json:"speed_limit,omitempty"`

	// 迁移速率,单位:MB/S
	MigrateSpeed *float64 `json:"migrate_speed,omitempty"`

	// 压缩率
	CompressRate *float64 `json:"compress_rate,omitempty"`

	// 迁移完成后是否启动目的端服务器 true:启动 false:停止
	StartTargetServer *bool `json:"start_target_server,omitempty"`

	// 错误信息
	ErrorJson *string `json:"error_json,omitempty"`

	// 任务总耗时
	TotalTime *int64 `json:"total_time,omitempty"`

	// 目的端服务器的IP地址。 公网迁移时请填写弹性IP地址 专线迁移时请填写私有IP地址
	MigrationIp *string `json:"migration_ip,omitempty"`

	// 任务关联的子任务信息
	SubTasks *[]SubTaskAssociatedWithTask `json:"sub_tasks,omitempty"`

	SourceServer *SourceServerAssociatedWithTask `json:"source_server,omitempty"`

	// 迁移项目ID
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	TargetServer *TargetServerAssociatedWithTask `json:"target_server,omitempty"`

	// 日志收集状态 INIT TELL_AGENT_TO_COLLECT WAIT_AGENT_COLLECT_ACK AGENT_COLLECT_FAIL AGENT_COLLECT_SUCCESS WAIT_SERVER_COLLECT SERVER_COLLECT_FAIL SERVER_COLLECT_SUCCESS TELL_AGENT_RESET_ACL WAIT_AGENT_RESET_ACL_ACK
	LogCollectStatus *TasksResponseBodyLogCollectStatus `json:"log_collect_status,omitempty"`

	CloneServer *CloneServerBrief `json:"clone_server,omitempty"`

	// 是否同步
	Syncing *bool `json:"syncing,omitempty"`

	NetworkCheckInfo *NetworkCheckInfoRequestBody `json:"network_check_info,omitempty"`

	// 特殊配置项配置信息
	SpecialConfig *[]ConfigBody `json:"special_config,omitempty"`
}

TasksResponseBody 批量查询任务时返回体重返回的任务信息。

func (TasksResponseBody) String

func (o TasksResponseBody) String() string

type TasksResponseBodyLogCollectStatus

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

func (TasksResponseBodyLogCollectStatus) MarshalJSON

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

func (*TasksResponseBodyLogCollectStatus) UnmarshalJSON

func (c *TasksResponseBodyLogCollectStatus) UnmarshalJSON(b []byte) error

func (TasksResponseBodyLogCollectStatus) Value added in v0.0.90

type TasksResponseBodyLogCollectStatusEnum

type TasksResponseBodyLogCollectStatusEnum struct {
	INIT                     TasksResponseBodyLogCollectStatus
	TELL_AGENT_TO_COLLECT    TasksResponseBodyLogCollectStatus
	WAIT_AGENT_COLLECT_ACK   TasksResponseBodyLogCollectStatus
	AGENT_COLLECT_FAIL       TasksResponseBodyLogCollectStatus
	AGENT_COLLECT_SUCCESS    TasksResponseBodyLogCollectStatus
	WAIT_SERVER_COLLECT      TasksResponseBodyLogCollectStatus
	SERVER_COLLECT_FAIL      TasksResponseBodyLogCollectStatus
	SERVER_COLLECT_SUCCESS   TasksResponseBodyLogCollectStatus
	TELL_AGENT_RESET_ACL     TasksResponseBodyLogCollectStatus
	WAIT_AGENT_RESET_ACL_ACK TasksResponseBodyLogCollectStatus
}

func GetTasksResponseBodyLogCollectStatusEnum

func GetTasksResponseBodyLogCollectStatusEnum() TasksResponseBodyLogCollectStatusEnum

type TasksResponseBodyOsType

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

func (TasksResponseBodyOsType) MarshalJSON

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

func (*TasksResponseBodyOsType) UnmarshalJSON

func (c *TasksResponseBodyOsType) UnmarshalJSON(b []byte) error

func (TasksResponseBodyOsType) Value added in v0.0.90

func (c TasksResponseBodyOsType) Value() string

type TasksResponseBodyOsTypeEnum

type TasksResponseBodyOsTypeEnum struct {
	WINDOWS TasksResponseBodyOsType
	LINUX   TasksResponseBodyOsType
}

func GetTasksResponseBodyOsTypeEnum

func GetTasksResponseBodyOsTypeEnum() TasksResponseBodyOsTypeEnum

type TasksResponseBodyPriority added in v0.0.70

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

func (TasksResponseBodyPriority) MarshalJSON added in v0.0.70

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

func (*TasksResponseBodyPriority) UnmarshalJSON added in v0.0.70

func (c *TasksResponseBodyPriority) UnmarshalJSON(b []byte) error

func (TasksResponseBodyPriority) Value added in v0.0.90

func (c TasksResponseBodyPriority) Value() int32

type TasksResponseBodyPriorityEnum added in v0.0.70

type TasksResponseBodyPriorityEnum struct {
	E_0 TasksResponseBodyPriority
	E_1 TasksResponseBodyPriority
	E_2 TasksResponseBodyPriority
}

func GetTasksResponseBodyPriorityEnum added in v0.0.70

func GetTasksResponseBodyPriorityEnum() TasksResponseBodyPriorityEnum

type TasksResponseBodyType

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

func (TasksResponseBodyType) MarshalJSON

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

func (*TasksResponseBodyType) UnmarshalJSON

func (c *TasksResponseBodyType) UnmarshalJSON(b []byte) error

func (TasksResponseBodyType) Value added in v0.0.90

func (c TasksResponseBodyType) Value() string

type TasksResponseBodyTypeEnum

type TasksResponseBodyTypeEnum struct {
	MIGRATE_FILE  TasksResponseBodyType
	MIGRATE_BLOCK TasksResponseBodyType
}

func GetTasksResponseBodyTypeEnum

func GetTasksResponseBodyTypeEnum() TasksResponseBodyTypeEnum

type TemplateDisk

type TemplateDisk struct {

	// 磁盘ID
	Id *int64 `json:"id,omitempty"`

	// 磁盘序号,从0开始
	Index int32 `json:"index"`

	// 磁盘名称
	Name string `json:"name"`

	// 磁盘类型,同volumetype字段
	Disktype string `json:"disktype"`

	// 磁盘大小,单位:GB
	Size int64 `json:"size"`

	// 磁盘使用
	DeviceUse *string `json:"device_use,omitempty"`
}

TemplateDisk 磁盘模板

func (TemplateDisk) String

func (o TemplateDisk) String() string

type TemplateRequest

type TemplateRequest struct {

	// 模板名称
	Name string `json:"name"`

	// 是否是通用模板,如果模板关联一个任务,则不算通用模板
	IsTemplate bool `json:"is_template"`

	// Region信息
	Region string `json:"region"`

	// 项目ID
	Projectid string `json:"projectid"`

	// 目标端服务器名称
	TargetServerName *string `json:"target_server_name,omitempty"`

	// 可用区
	AvailabilityZone *string `json:"availability_zone,omitempty"`

	// 磁盘类型 SAS:串行连接SCSI SSD:固态硬盘 SATA:串口硬盘
	Volumetype *TemplateRequestVolumetype `json:"volumetype,omitempty"`

	// 虚拟机规格
	Flavor *string `json:"flavor,omitempty"`

	Vpc *VpcObject `json:"vpc,omitempty"`

	// 网卡信息,支持多个网卡,如果是自动创建,只填一个,ID使用“autoCreate”
	Nics *[]Nics `json:"nics,omitempty"`

	// 安全组,支持多个安全组,如果是自动创建,只填一个,ID使用“autoCreate”
	SecurityGroups *[]SgObject `json:"security_groups,omitempty"`

	Publicip *PublicIp `json:"publicip,omitempty"`

	// 磁盘信息
	Disk *[]TemplateDisk `json:"disk,omitempty"`

	// 数据盘磁盘类型 SAS:串行连接SCSI SSD:固态硬盘 SATA:串口硬盘
	DataVolumeType *TemplateRequestDataVolumeType `json:"data_volume_type,omitempty"`

	// 目的端密码
	TargetPassword *string `json:"target_password,omitempty"`

	// 新建目的虚拟机用户选择的镜像版本Id值
	ImageId *string `json:"image_id,omitempty"`
}

TemplateRequest 自动创建虚拟机模板

func (TemplateRequest) String

func (o TemplateRequest) String() string

type TemplateRequestDataVolumeType

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

func (TemplateRequestDataVolumeType) MarshalJSON

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

func (*TemplateRequestDataVolumeType) UnmarshalJSON

func (c *TemplateRequestDataVolumeType) UnmarshalJSON(b []byte) error

func (TemplateRequestDataVolumeType) Value added in v0.0.90

type TemplateRequestVolumetype

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

func (TemplateRequestVolumetype) MarshalJSON

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

func (*TemplateRequestVolumetype) UnmarshalJSON

func (c *TemplateRequestVolumetype) UnmarshalJSON(b []byte) error

func (TemplateRequestVolumetype) Value added in v0.0.90

type TemplateRequestVolumetypeEnum

type TemplateRequestVolumetypeEnum struct {
	SAS  TemplateRequestVolumetype
	SSD  TemplateRequestVolumetype
	SATA TemplateRequestVolumetype
}

func GetTemplateRequestVolumetypeEnum

func GetTemplateRequestVolumetypeEnum() TemplateRequestVolumetypeEnum

type TemplateResponseBody

type TemplateResponseBody struct {

	// 模板ID
	Id *string `json:"id,omitempty"`

	// 模板名称
	Name string `json:"name"`

	// 是否是通用模板,如果模板关联一个任务,则不算通用模板
	IsTemplate *string `json:"is_template,omitempty"`

	// Region信息
	Region string `json:"region"`

	// 项目ID
	Projectid string `json:"projectid"`

	// 目标端服务器名称
	TargetServerName string `json:"target_server_name"`

	// 可用区
	AvailabilityZone string `json:"availability_zone"`

	// 数据盘磁盘类型 SAS:串行连接SCSI SSD:固态硬盘 SATA:串口硬盘
	Volumetype TemplateResponseBodyVolumetype `json:"volumetype"`

	// 虚拟机规格
	Flavor string `json:"flavor"`

	Vpc *VpcObject `json:"vpc"`

	// 网卡信息,支持多个网卡,如果是自动创建,只填一个,ID使用“autoCreate”
	Nics []Nics `json:"nics"`

	// 安全组,支持多个安全组,如果是自动创建,只填一个,ID使用“autoCreate”
	SecurityGroups []SgObject `json:"security_groups"`

	Publicip *PublicIp `json:"publicip"`

	// 磁盘信息
	Disk []TemplateDisk `json:"disk"`

	// 数据盘磁盘类型 SAS:串行连接SCSI SSD:固态硬盘 SATA:串口硬盘
	DataVolumeType TemplateResponseBodyDataVolumeType `json:"data_volume_type"`

	// 目的端密码
	TargetPassword string `json:"target_password"`

	// 用户选择镜像版本Id值
	ImageId *string `json:"image_id,omitempty"`
}

TemplateResponseBody 自动创建虚拟机模板

func (TemplateResponseBody) String

func (o TemplateResponseBody) String() string

type TemplateResponseBodyDataVolumeType

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

func (TemplateResponseBodyDataVolumeType) MarshalJSON

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

func (*TemplateResponseBodyDataVolumeType) UnmarshalJSON

func (c *TemplateResponseBodyDataVolumeType) UnmarshalJSON(b []byte) error

func (TemplateResponseBodyDataVolumeType) Value added in v0.0.90

type TemplateResponseBodyVolumetype

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

func (TemplateResponseBodyVolumetype) MarshalJSON

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

func (*TemplateResponseBodyVolumetype) UnmarshalJSON

func (c *TemplateResponseBodyVolumetype) UnmarshalJSON(b []byte) error

func (TemplateResponseBodyVolumetype) Value added in v0.0.90

type UnlockTargetEcsRequest added in v0.1.3

type UnlockTargetEcsRequest struct {

	// 指定任务的ID
	TaskId string `json:"task_id"`
}

UnlockTargetEcsRequest Request Object

func (UnlockTargetEcsRequest) String added in v0.1.3

func (o UnlockTargetEcsRequest) String() string

type UnlockTargetEcsResponse added in v0.1.3

type UnlockTargetEcsResponse struct {
	HttpStatusCode int `json:"-"`
}

UnlockTargetEcsResponse Response Object

func (UnlockTargetEcsResponse) String added in v0.1.3

func (o UnlockTargetEcsResponse) String() string

type UpdateCommandResultRequest

type UpdateCommandResultRequest struct {

	// 上报命令执行结果的命令所对应的服务端ID
	ServerId string `json:"server_id"`

	Body *CommandBody `json:"body,omitempty"`
}

UpdateCommandResultRequest Request Object

func (UpdateCommandResultRequest) String

type UpdateCommandResultResponse

type UpdateCommandResultResponse struct {
	HttpStatusCode int `json:"-"`
}

UpdateCommandResultResponse Response Object

func (UpdateCommandResultResponse) String

type UpdateConsistencyResultRequest added in v0.1.72

type UpdateConsistencyResultRequest struct {

	// 任务id
	TaskId string `json:"task_id"`

	Body *ConsistencyResultRequestBody `json:"body,omitempty"`
}

UpdateConsistencyResultRequest Request Object

func (UpdateConsistencyResultRequest) String added in v0.1.72

type UpdateConsistencyResultResponse added in v0.1.72

type UpdateConsistencyResultResponse struct {
	Body           *string `json:"body,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateConsistencyResultResponse Response Object

func (UpdateConsistencyResultResponse) String added in v0.1.72

type UpdateCopyStateRequest

type UpdateCopyStateRequest struct {

	// 源端服务器在主机迁移服务中的ID
	SourceId string `json:"source_id"`

	Body *PutCopyStateReq `json:"body,omitempty"`
}

UpdateCopyStateRequest Request Object

func (UpdateCopyStateRequest) String

func (o UpdateCopyStateRequest) String() string

type UpdateCopyStateResponse

type UpdateCopyStateResponse struct {
	HttpStatusCode int `json:"-"`
}

UpdateCopyStateResponse Response Object

func (UpdateCopyStateResponse) String

func (o UpdateCopyStateResponse) String() string

type UpdateDefaultMigprojectRequest

type UpdateDefaultMigprojectRequest struct {

	// 迁移项目ID
	MigProjectId string `json:"mig_project_id"`
}

UpdateDefaultMigprojectRequest Request Object

func (UpdateDefaultMigprojectRequest) String

type UpdateDefaultMigprojectResponse

type UpdateDefaultMigprojectResponse struct {
	HttpStatusCode int `json:"-"`
}

UpdateDefaultMigprojectResponse Response Object

func (UpdateDefaultMigprojectResponse) String

type UpdateDiskInfoRequest

type UpdateDiskInfoRequest struct {

	// 源端服务器ID
	SourceId string `json:"source_id"`

	Body *PutDiskInfoReq `json:"body,omitempty"`
}

UpdateDiskInfoRequest Request Object

func (UpdateDiskInfoRequest) String

func (o UpdateDiskInfoRequest) String() string

type UpdateDiskInfoResponse

type UpdateDiskInfoResponse struct {
	HttpStatusCode int `json:"-"`
}

UpdateDiskInfoResponse Response Object

func (UpdateDiskInfoResponse) String

func (o UpdateDiskInfoResponse) String() string

type UpdateMigprojectRequest

type UpdateMigprojectRequest struct {

	// 迁移项目ID
	MigProjectId string `json:"mig_project_id"`

	Body *MigProject `json:"body,omitempty"`
}

UpdateMigprojectRequest Request Object

func (UpdateMigprojectRequest) String

func (o UpdateMigprojectRequest) String() string

type UpdateMigprojectResponse

type UpdateMigprojectResponse struct {
	Body           *string `json:"body,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateMigprojectResponse Response Object

func (UpdateMigprojectResponse) String

func (o UpdateMigprojectResponse) String() string

type UpdateNetworkCheckInfoRequest added in v0.1.38

type UpdateNetworkCheckInfoRequest struct {

	// 任务id
	TaskId string `json:"task_id"`

	Body *NetworkCheckInfoRequestBody `json:"body,omitempty"`
}

UpdateNetworkCheckInfoRequest Request Object

func (UpdateNetworkCheckInfoRequest) String added in v0.1.38

type UpdateNetworkCheckInfoResponse added in v0.1.38

type UpdateNetworkCheckInfoResponse struct {
	Body           *string `json:"body,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateNetworkCheckInfoResponse Response Object

func (UpdateNetworkCheckInfoResponse) String added in v0.1.38

type UpdateServerNameRequest

type UpdateServerNameRequest struct {

	// 源端服务器在主机迁移服务中的ID
	SourceId string `json:"source_id"`

	Body *PutSourceServerBody `json:"body,omitempty"`
}

UpdateServerNameRequest Request Object

func (UpdateServerNameRequest) String

func (o UpdateServerNameRequest) String() string

type UpdateServerNameResponse

type UpdateServerNameResponse struct {
	HttpStatusCode int `json:"-"`
}

UpdateServerNameResponse Response Object

func (UpdateServerNameResponse) String

func (o UpdateServerNameResponse) String() string

type UpdateSpeedRequest

type UpdateSpeedRequest struct {

	// 主机迁移任务的ID
	TaskId string `json:"task_id"`

	Body *SpeedLimit `json:"body,omitempty"`
}

UpdateSpeedRequest Request Object

func (UpdateSpeedRequest) String

func (o UpdateSpeedRequest) String() string

type UpdateSpeedResponse

type UpdateSpeedResponse struct {
	HttpStatusCode int `json:"-"`
}

UpdateSpeedResponse Response Object

func (UpdateSpeedResponse) String

func (o UpdateSpeedResponse) String() string

type UpdateTaskRequest

type UpdateTaskRequest struct {

	// 迁移任务ID
	TaskId string `json:"task_id"`

	Body *PutTaskReq `json:"body,omitempty"`
}

UpdateTaskRequest Request Object

func (UpdateTaskRequest) String

func (o UpdateTaskRequest) String() string

type UpdateTaskResponse

type UpdateTaskResponse struct {
	Body           *string `json:"body,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateTaskResponse Response Object

func (UpdateTaskResponse) String

func (o UpdateTaskResponse) String() string

type UpdateTaskSpeedReq

type UpdateTaskSpeedReq struct {

	// 当前上报进度的子任务名称,子任务名称包括: 创建虚拟机 CREATE_CLOUD_SERVER 配置安全通道 SSL_CONFIG 挂载代理镜像 ATTACH_AGENT_IMAGE 卸载载代理镜像 DETTACH_AGENT_IMAGE Linux分区格式化 FORMAT_DISK_LINUX Linux分区格式化(文件级级) FORMAT_DISK_LINUX_FILE Linux分区格式化(块级) FORMAT_DISK_LINUX_BLOCK Windows分区格式化 FORMAT_DISK_WINDOWS Linux文件级数据迁移 MIGRATE_LINUX_FILE, Linux块级数据迁移 MIGRATE_LINUX_BLOCK Windows块级数据迁移 MIGRATE_WINDOWS_BLOCK 克隆一个虚拟机 CLONE_VM Linux文件级数据同步 SYNC_LINUX_FILE Linux块级数据同步 SYNC_LINUX_BLOCK Windows块级数据同步 SYNC_WINDOWS_BLOCK Linux配置修改 CONFIGURE_LINUX Linux配置修改(块级)CONFIGURE_LINUX_BLOCK Linux配置修改(文件级) CONFIGURE_LINUX_FILE Windows配置修改 CONFIGURE_WINDOWS
	SubtaskName UpdateTaskSpeedReqSubtaskName `json:"subtask_name"`

	// 当前上报的子任务的最新百分比进度
	Progress int32 `json:"progress"`

	// 当前任务已经复制的数据量大小(B)
	Replicatesize int64 `json:"replicatesize"`

	// 当前任务的总迁移数据大小
	Totalsize int64 `json:"totalsize"`

	// 迁移或同步时,具体的迁移详情
	ProcessTrace string `json:"process_trace"`

	// 实施迁移速率,单位Mb/s
	MigrateSpeed *float64 `json:"migrate_speed,omitempty"`

	// 实施文件压缩率
	CompressRate *float64 `json:"compress_rate,omitempty"`

	// 剩余时间
	RemainTime *int64 `json:"remain_time,omitempty"`
}

UpdateTaskSpeedReq This is a auto create Body Object

func (UpdateTaskSpeedReq) String

func (o UpdateTaskSpeedReq) String() string

type UpdateTaskSpeedReqSubtaskName

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

func (UpdateTaskSpeedReqSubtaskName) MarshalJSON

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

func (*UpdateTaskSpeedReqSubtaskName) UnmarshalJSON

func (c *UpdateTaskSpeedReqSubtaskName) UnmarshalJSON(b []byte) error

func (UpdateTaskSpeedReqSubtaskName) Value added in v0.0.90

type UpdateTaskSpeedReqSubtaskNameEnum

type UpdateTaskSpeedReqSubtaskNameEnum struct {
	CREATE_CLOUD_SERVER     UpdateTaskSpeedReqSubtaskName
	SSL_CONFIG              UpdateTaskSpeedReqSubtaskName
	ATTACH_AGENT_IMAGE      UpdateTaskSpeedReqSubtaskName
	DETTACH_AGENT_IMAGE     UpdateTaskSpeedReqSubtaskName
	FORMAT_DISK_LINUX       UpdateTaskSpeedReqSubtaskName
	FORMAT_DISK_LINUX_FILE  UpdateTaskSpeedReqSubtaskName
	FORMAT_DISK_LINUX_BLOCK UpdateTaskSpeedReqSubtaskName
	FORMAT_DISK_WINDOWS     UpdateTaskSpeedReqSubtaskName
	MIGRATE_LINUX_FILE      UpdateTaskSpeedReqSubtaskName
	MIGRATE_LINUX_BLOCK     UpdateTaskSpeedReqSubtaskName
	MIGRATE_WINDOWS_BLOCK   UpdateTaskSpeedReqSubtaskName
	CLONE_VM                UpdateTaskSpeedReqSubtaskName
	SYNC_LINUX_FILE         UpdateTaskSpeedReqSubtaskName
	SYNC_LINUX_BLOCK        UpdateTaskSpeedReqSubtaskName
	SYNC_WINDOWS_BLOCK      UpdateTaskSpeedReqSubtaskName
	CONFIGURE_LINUX         UpdateTaskSpeedReqSubtaskName
	CONFIGURE_LINUX_BLOCK   UpdateTaskSpeedReqSubtaskName
	CONFIGURE_LINUX_FILE    UpdateTaskSpeedReqSubtaskName
	CONFIGURE_WINDOWS       UpdateTaskSpeedReqSubtaskName
}

func GetUpdateTaskSpeedReqSubtaskNameEnum

func GetUpdateTaskSpeedReqSubtaskNameEnum() UpdateTaskSpeedReqSubtaskNameEnum

type UpdateTaskSpeedRequest

type UpdateTaskSpeedRequest struct {

	// 主机迁移任务的ID
	TaskId string `json:"task_id"`

	Body *UpdateTaskSpeedReq `json:"body,omitempty"`
}

UpdateTaskSpeedRequest Request Object

func (UpdateTaskSpeedRequest) String

func (o UpdateTaskSpeedRequest) String() string

type UpdateTaskSpeedResponse

type UpdateTaskSpeedResponse struct {
	HttpStatusCode int `json:"-"`
}

UpdateTaskSpeedResponse Response Object

func (UpdateTaskSpeedResponse) String

func (o UpdateTaskSpeedResponse) String() string

type UpdateTaskStatusReq

type UpdateTaskStatusReq struct {

	// 操作任务的具体动作 start:开始任务 stop:停止任务 test:测试 clone_test:克隆测试 restart:重新开始 network_check:网络质量检测
	Operation UpdateTaskStatusReqOperation `json:"operation"`

	// 模板id
	TemplateId *string `json:"template_id,omitempty"`

	// 是否切换hce
	SwitchHce *bool `json:"switch_hce,omitempty"`

	// 是否进行一致性校验
	IsNeedConsistencyCheck *bool `json:"is_need_consistency_check,omitempty"`
}

UpdateTaskStatusReq This is a auto create Body Object

func (UpdateTaskStatusReq) String

func (o UpdateTaskStatusReq) String() string

type UpdateTaskStatusReqOperation

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

func (UpdateTaskStatusReqOperation) MarshalJSON

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

func (*UpdateTaskStatusReqOperation) UnmarshalJSON

func (c *UpdateTaskStatusReqOperation) UnmarshalJSON(b []byte) error

func (UpdateTaskStatusReqOperation) Value added in v0.0.90

type UpdateTaskStatusRequest

type UpdateTaskStatusRequest struct {

	// 迁移任务ID
	TaskId string `json:"task_id"`

	Body *UpdateTaskStatusReq `json:"body,omitempty"`
}

UpdateTaskStatusRequest Request Object

func (UpdateTaskStatusRequest) String

func (o UpdateTaskStatusRequest) String() string

type UpdateTaskStatusResponse

type UpdateTaskStatusResponse struct {
	HttpStatusCode int `json:"-"`
}

UpdateTaskStatusResponse Response Object

func (UpdateTaskStatusResponse) String

func (o UpdateTaskStatusResponse) String() string

type UpdateTemplateReq

type UpdateTemplateReq struct {
	Template *TemplateRequest `json:"template,omitempty"`
}

UpdateTemplateReq This is a auto create Body Object

func (UpdateTemplateReq) String

func (o UpdateTemplateReq) String() string

type UpdateTemplateRequest

type UpdateTemplateRequest struct {

	// 需要修改信息的模板的ID
	Id string `json:"id"`

	Body *UpdateTemplateReq `json:"body,omitempty"`
}

UpdateTemplateRequest Request Object

func (UpdateTemplateRequest) String

func (o UpdateTemplateRequest) String() string

type UpdateTemplateResponse

type UpdateTemplateResponse struct {
	HttpStatusCode int `json:"-"`
}

UpdateTemplateResponse Response Object

func (UpdateTemplateResponse) String

func (o UpdateTemplateResponse) String() string

type UploadLogRequestBody added in v0.1.3

type UploadLogRequestBody struct {

	// 指定桶名称
	LogBucket string `json:"log_bucket"`

	// 指定有效期
	LogExpire int32 `json:"log_expire"`
}

UploadLogRequestBody 上传日志请求体

func (UploadLogRequestBody) String added in v0.1.3

func (o UploadLogRequestBody) String() string

type UploadSpecialConfigurationSettingRequest added in v0.1.38

type UploadSpecialConfigurationSettingRequest struct {

	// 任务id
	TaskId string `json:"task_id"`

	Body *ConfigurationRequestBody `json:"body,omitempty"`
}

UploadSpecialConfigurationSettingRequest Request Object

func (UploadSpecialConfigurationSettingRequest) String added in v0.1.38

type UploadSpecialConfigurationSettingResponse added in v0.1.38

type UploadSpecialConfigurationSettingResponse struct {
	HttpStatusCode int `json:"-"`
}

UploadSpecialConfigurationSettingResponse Response Object

func (UploadSpecialConfigurationSettingResponse) String added in v0.1.38

type Version added in v0.1.38

type Version struct {

	// API版本号。
	Id *string `json:"id,omitempty"`

	// API链接地址信息。
	Links *[]Link `json:"links,omitempty"`

	// 版本状态。 SUPPORTED表示支持的版本
	Status *string `json:"status,omitempty"`

	// 版本更新时间。 格式为“yyyy-mm-dd Thh:mm:ssZ”。 其中,T指某个时间的开始;Z指UTC时间。例如:2018-09-30T00:00:00Z
	Updated *string `json:"updated,omitempty"`
}

Version API版本

func (Version) String added in v0.1.38

func (o Version) String() string

type VolumeGroups

type VolumeGroups struct {

	// Pv信息
	Components *string `json:"components,omitempty"`

	// 剩余空间
	FreeSize *int64 `json:"free_size,omitempty"`

	// lv信息
	LogicalVolumes *[]LogicalVolumes `json:"logical_volumes,omitempty"`

	// 名称
	Name *string `json:"name,omitempty"`

	// 大小
	Size *int64 `json:"size,omitempty"`
}

VolumeGroups 逻辑卷组信息

func (VolumeGroups) String

func (o VolumeGroups) String() string

type VpcObject

type VpcObject struct {

	// 虚拟私有云ID,如果是自动创建,填“autoCreate”
	Id string `json:"id"`

	// 虚拟私有云名称
	Name string `json:"name"`

	// VPC的网段,默认192.168.0.0/16
	Cidr *string `json:"cidr,omitempty"`
}

VpcObject vpc对象

func (VpcObject) String

func (o VpcObject) String() string

Source Files

Jump to

Keyboard shortcuts

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