model

package
v0.0.76 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 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 string `json:"uuid"`

	Device string `json:"device"`

	Size int64 `json:"size"`

	Nodesize int64 `json:"nodesize"`

	Sectorsize int32 `json:"sectorsize"`

	DataProfile string `json:"data_profile"`

	SystemProfile string `json:"system_profile"`

	MetadataProfile string `json:"metadata_profile"`

	GlobalReserve1 string `json:"global_reserve1"`

	GVolUsedSize int64 `json:"g_vol_used_size"`

	DefaultSubvolid string `json:"default_subvolid"`

	DefaultSubvolName string `json:"default_subvol_name"`

	DefaultSubvolMountpath string `json:"default_subvol_mountpath"`

	Subvolumn []BtrfsSubvolumn `json:"subvolumn"`
}

btrfs分区类型

func (BtrfsFileSystem) String

func (o BtrfsFileSystem) String() string

type BtrfsSubvolumn

type BtrfsSubvolumn struct {
	Uuid string `json:"uuid"`

	IsSnapshot string `json:"is_snapshot"`

	SubvolId string `json:"subvol_id"`

	ParentId string `json:"parent_id"`

	SubvolName string `json:"subvol_name"`

	SubvolMountPath string `json:"subvol_mount_path"`
}

btrfs子卷信息

func (BtrfsSubvolumn) String

func (o BtrfsSubvolumn) String() string

type CloneServer

type CloneServer struct {
	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"`
}

克隆服务器类

func (CloneServer) String

func (o CloneServer) String() string

type CloneServerBrief

type CloneServerBrief struct {
	VmId *string `json:"vm_id,omitempty"`

	Name *string `json:"name,omitempty"`
}

克隆服务器基本信息

func (CloneServerBrief) String

func (o CloneServerBrief) String() string

type ComandParam

type ComandParam struct {
	TaskId *string `json:"task_id,omitempty"`

	Bucket *string `json:"bucket,omitempty"`
}

命令响应参数

func (ComandParam) String

func (o ComandParam) String() string

type CommandBody

type CommandBody struct {
	CommandName string `json:"command_name"`

	Result string `json:"result"`

	ResultDetail *interface{} `json:"result_detail"`
}

命令参数body

func (CommandBody) String

func (o CommandBody) String() string

type CreateMigprojectRequest

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

Request Object

func (CreateMigprojectRequest) String

func (o CreateMigprojectRequest) String() string

type CreateMigprojectResponse

type CreateMigprojectResponse struct {
	Id             *string `json:"id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateMigprojectResponse) String

func (o CreateMigprojectResponse) String() string

type CreateTaskRequest

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

Request Object

func (CreateTaskRequest) String

func (o CreateTaskRequest) String() string

type CreateTaskResponse

type CreateTaskResponse struct {
	Id             *string `json:"id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateTaskResponse) String

func (o CreateTaskResponse) String() string

type CreateTemplateReq

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

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"`
}

Request Object

func (CreateTemplateRequest) String

func (o CreateTemplateRequest) String() string

type CreateTemplateResponse

type CreateTemplateResponse struct {
	Id             *string `json:"id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateTemplateResponse) String

func (o CreateTemplateResponse) String() string

type DeleteIds

type DeleteIds struct {
	Ids []string `json:"ids"`
}

批量删除参数

func (DeleteIds) String

func (o DeleteIds) String() string

type DeleteMigprojectRequest

type DeleteMigprojectRequest struct {
	MigProjectId string `json:"mig_project_id"`
}

Request Object

func (DeleteMigprojectRequest) String

func (o DeleteMigprojectRequest) String() string

type DeleteMigprojectResponse

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

Response Object

func (DeleteMigprojectResponse) String

func (o DeleteMigprojectResponse) String() string

type DeleteServerRequest

type DeleteServerRequest struct {
	SourceId string `json:"source_id"`
}

Request Object

func (DeleteServerRequest) String

func (o DeleteServerRequest) String() string

type DeleteServerResponse

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

Response Object

func (DeleteServerResponse) String

func (o DeleteServerResponse) String() string

type DeleteServersRequest

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

Request Object

func (DeleteServersRequest) String

func (o DeleteServersRequest) String() string

type DeleteServersResponse

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

Response Object

func (DeleteServersResponse) String

func (o DeleteServersResponse) String() string

type DeleteTaskRequest

type DeleteTaskRequest struct {
	TaskId string `json:"task_id"`
}

Request Object

func (DeleteTaskRequest) String

func (o DeleteTaskRequest) String() string

type DeleteTaskResponse

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

Response Object

func (DeleteTaskResponse) String

func (o DeleteTaskResponse) String() string

type DeleteTasksReq

type DeleteTasksReq struct {
	Ids []string `json:"ids"`
}

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"`
}

Request Object

func (DeleteTasksRequest) String

func (o DeleteTasksRequest) String() string

type DeleteTasksResponse

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

Response Object

func (DeleteTasksResponse) String

func (o DeleteTasksResponse) String() string

type DeleteTemplateRequest

type DeleteTemplateRequest struct {
	Id string `json:"id"`
}

Request Object

func (DeleteTemplateRequest) String

func (o DeleteTemplateRequest) String() string

type DeleteTemplateResponse

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

Response Object

func (DeleteTemplateResponse) String

func (o DeleteTemplateResponse) String() string

type DeleteTemplatesRequest

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

Request Object

func (DeleteTemplatesRequest) String

func (o DeleteTemplatesRequest) String() string

type DeleteTemplatesResponse

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

Response Object

func (DeleteTemplatesResponse) String

func (o DeleteTemplatesResponse) String() string

type DeletetemplatesReq

type DeletetemplatesReq struct {
	Ids *[]string `json:"ids,omitempty"`
}

This is a auto create Body Object

func (DeletetemplatesReq) String

func (o DeletetemplatesReq) String() string

type Disk

type Disk struct {
	Name string `json:"name"`

	PartitionStyle *DiskPartitionStyle `json:"partition_style,omitempty"`

	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"`

	RelationName *string `json:"relation_name,omitempty"`
}

磁盘信息

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

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"`

	DeviceUse *DiskIntargetServerDeviceUse `json:"device_use,omitempty"`
}

目的端服务器关联磁盘

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

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

type DiskPartitionStyleEnum

type DiskPartitionStyleEnum struct {
	MBR DiskPartitionStyle
	GPT DiskPartitionStyle
}

func GetDiskPartitionStyleEnum

func GetDiskPartitionStyleEnum() DiskPartitionStyleEnum

type EnvironmentCheck

type EnvironmentCheck struct {
	Id int64 `json:"id"`

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

	Name string `json:"name"`

	Result EnvironmentCheckResult `json:"result"`

	ErrorCode *string `json:"error_code,omitempty"`

	ErrorParams *string `json:"error_params,omitempty"`
}

源端校验项

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

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"`
}

推荐的目的端服务器配置

func (InitTargetServer) String

func (o InitTargetServer) String() string

type ListErrorServersRequest

type ListErrorServersRequest struct {
	Limit *int32 `json:"limit,omitempty"`

	Offset int32 `json:"offset"`

	Migproject *string `json:"migproject,omitempty"`

	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

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:"-"`
}

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"`
}

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:"-"`
}

Response Object

func (ListMigprojectsResponse) String

func (o ListMigprojectsResponse) String() string

type ListServersRequest

type ListServersRequest struct {
	State *ListServersRequestState `json:"state,omitempty"`

	Name *string `json:"name,omitempty"`

	Id *string `json:"id,omitempty"`

	Ip *string `json:"ip,omitempty"`

	Migproject *string `json:"migproject,omitempty"`

	Limit *int32 `json:"limit,omitempty"`

	Offset *int32 `json:"offset,omitempty"`

	MigrationCycle *ListServersRequestMigrationCycle `json:"migration_cycle,omitempty"`

	Connected *bool `json:"connected,omitempty"`

	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

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

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

type ListServersResponse

type ListServersResponse struct {
	Count *int32 `json:"count,omitempty"`

	SourceServers  *[]SourceServersResponseBody `json:"source_servers,omitempty"`
	HttpStatusCode int                          `json:"-"`
}

Response Object

func (ListServersResponse) String

func (o ListServersResponse) String() string

type ListTasksRequest

type ListTasksRequest struct {
	State *ListTasksRequestState `json:"state,omitempty"`

	Name *string `json:"name,omitempty"`

	Id *string `json:"id,omitempty"`

	SourceServerId *string `json:"source_server_id,omitempty"`

	Limit *int32 `json:"limit,omitempty"`

	Offset *int32 `json:"offset,omitempty"`

	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

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

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:"-"`
}

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 *string `json:"region,omitempty"`

	Limit *int32 `json:"limit,omitempty"`

	Offset *int32 `json:"offset,omitempty"`
}

Request Object

func (ListTemplatesRequest) String

func (o ListTemplatesRequest) String() string

type ListTemplatesResponse

type ListTemplatesResponse struct {
	Count *int32 `json:"count,omitempty"`

	Templates      *[]TemplateResponse `json:"templates,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

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"`

	InodeSize int32 `json:"inode_size"`

	MountPoint string `json:"mount_point"`

	Name string `json:"name"`

	Size int64 `json:"size"`

	UsedSize int64 `json:"used_size"`

	FreeSize int64 `json:"free_size"`
}

逻辑卷信息

func (LogicalVolumes) String

func (o LogicalVolumes) String() string

type MigProject

type MigProject 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"`

	SpeedLimit *int32 `json:"speed_limit,omitempty"`

	UsePublicIp bool `json:"use_public_ip"`

	ExistServer bool `json:"exist_server"`

	Type MigProjectType `json:"type"`

	EnterpriseProject *string `json:"enterprise_project,omitempty"`

	Syncing bool `json:"syncing"`
}

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

type MigProjectTypeEnum

type MigProjectTypeEnum struct {
	MIGRATE_BLOCK MigProjectType
	MIGRATE_FILE  MigProjectType
}

func GetMigProjectTypeEnum

func GetMigProjectTypeEnum() MigProjectTypeEnum

type MigprojectsResponseBody

type MigprojectsResponseBody struct {
	Id *string `json:"id,omitempty"`

	Name *string `json:"name,omitempty"`

	UsePublicIp *bool `json:"use_public_ip,omitempty"`

	Isdefault *bool `json:"isdefault,omitempty"`

	StartTargetServer *bool `json:"start_target_server,omitempty"`

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

	SpeedLimit *int32 `json:"speed_limit,omitempty"`

	ExistServer *bool `json:"exist_server,omitempty"`

	Description *string `json:"description,omitempty"`

	Type *MigprojectsResponseBodyType `json:"type,omitempty"`

	EnterpriseProject *string `json:"enterprise_project,omitempty"`

	Syncing *bool `json:"syncing,omitempty"`
}

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

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

type MigprojectsResponseBodyTypeEnum

type MigprojectsResponseBodyTypeEnum struct {
	MIGRATE_BLOCK MigprojectsResponseBodyType
	MIGRATE_FILE  MigprojectsResponseBodyType
}

func GetMigprojectsResponseBodyTypeEnum

func GetMigprojectsResponseBodyTypeEnum() MigprojectsResponseBodyTypeEnum

type MigrationErrors

type MigrationErrors struct {
	ErrorJson *string `json:"error_json,omitempty"`

	HostName *string `json:"host_name,omitempty"`

	Name *string `json:"name,omitempty"`

	SourceId *string `json:"source_id,omitempty"`

	SourceIp *string `json:"source_ip,omitempty"`

	TargetIp *string `json:"target_ip,omitempty"`
}

迁移错误信息

func (MigrationErrors) String

func (o MigrationErrors) String() string

type NetWork

type NetWork struct {
	Name string `json:"name"`

	Ip string `json:"ip"`

	Netmask string `json:"netmask"`

	Gateway string `json:"gateway"`

	Mtu *int32 `json:"mtu,omitempty"`

	Mac string `json:"mac"`

	Id *string `json:"id,omitempty"`
}

网卡实体类

func (NetWork) String

func (o NetWork) String() string

type Nics

type Nics struct {
	Id string `json:"id"`

	Name string `json:"name"`

	Cidr string `json:"cidr"`

	Ip *string `json:"ip,omitempty"`
}

网卡资源

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"`

	Name *string `json:"name,omitempty"`

	Size *int64 `json:"size,omitempty"`

	UsedSize *int64 `json:"used_size,omitempty"`

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

	SizePerCluster *int32 `json:"size_per_cluster,omitempty"`
}

使用大小

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"`

	Name *string `json:"name,omitempty"`

	Size *int64 `json:"size,omitempty"`

	UsedSize *int64 `json:"used_size,omitempty"`

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

使用大小

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"`

	SpeedLimit *int32 `json:"speed_limit,omitempty"`

	UsePublicIp bool `json:"use_public_ip"`

	ExistServer bool `json:"exist_server"`

	Type PostMigProjectBodyType `json:"type"`

	EnterpriseProject *string `json:"enterprise_project,omitempty"`

	Syncing bool `json:"syncing"`
}

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

type PostMigProjectBodyTypeEnum

type PostMigProjectBodyTypeEnum struct {
	MIGRATE_BLOCK PostMigProjectBodyType
	MIGRATE_FILE  PostMigProjectBodyType
}

func GetPostMigProjectBodyTypeEnum

func GetPostMigProjectBodyTypeEnum() PostMigProjectBodyTypeEnum

type PostSourceServerBody

type PostSourceServerBody struct {
	Id *string `json:"id,omitempty"`

	Ip string `json:"ip"`

	Name string `json:"name"`

	Hostname *string `json:"hostname,omitempty"`

	OsType PostSourceServerBodyOsType `json:"os_type"`

	OsVersion *string `json:"os_version,omitempty"`

	Firmware *PostSourceServerBodyFirmware `json:"firmware,omitempty"`

	CpuQuantity *int32 `json:"cpu_quantity,omitempty"`

	Memory *int64 `json:"memory,omitempty"`

	Disks *[]ServerDisk `json:"disks,omitempty"`

	BtrfsList *[]BtrfsFileSystem `json:"btrfs_list,omitempty"`

	Networks *[]NetWork `json:"networks,omitempty"`

	DomainId *string `json:"domain_id,omitempty"`

	HasRsync *bool `json:"has_rsync,omitempty"`

	Paravirtualization *bool `json:"paravirtualization,omitempty"`

	RawDevices *string `json:"raw_devices,omitempty"`

	DriverFiles *bool `json:"driver_files,omitempty"`

	SystemServices *bool `json:"system_services,omitempty"`

	AccountRights *bool `json:"account_rights,omitempty"`

	BootLoader *PostSourceServerBodyBootLoader `json:"boot_loader,omitempty"`

	SystemDir *string `json:"system_dir,omitempty"`

	VolumeGroups *[]VolumeGroups `json:"volume_groups,omitempty"`

	AgentVersion string `json:"agent_version"`
}

源端服务器

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

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

type PostSourceServerBodyFirmwareEnum

type PostSourceServerBodyFirmwareEnum struct {
	BIOS PostSourceServerBodyFirmware
	UEFI PostSourceServerBodyFirmware
}

func GetPostSourceServerBodyFirmwareEnum

func GetPostSourceServerBodyFirmwareEnum() PostSourceServerBodyFirmwareEnum

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

type PostSourceServerBodyOsTypeEnum

type PostSourceServerBodyOsTypeEnum struct {
	WINDOWS PostSourceServerBodyOsType
	LINUX   PostSourceServerBodyOsType
}

func GetPostSourceServerBodyOsTypeEnum

func GetPostSourceServerBodyOsTypeEnum() PostSourceServerBodyOsTypeEnum

type PostTask

type PostTask struct {
	Name string `json:"name"`

	Type PostTaskType `json:"type"`

	StartTargetServer *bool `json:"start_target_server,omitempty"`

	OsType string `json:"os_type"`

	SourceServer *SourceServerByTask `json:"source_server"`

	TargetServer *TargetServerByTask `json:"target_server"`

	MigrationIp *string `json:"migration_ip,omitempty"`

	RegionName string `json:"region_name"`

	RegionId string `json:"region_id"`

	ProjectName string `json:"project_name"`

	ProjectId string `json:"project_id"`

	VmTemplateId *string `json:"vm_template_id,omitempty"`

	UsePublicIp *bool `json:"use_public_ip,omitempty"`

	Syncing *bool `json:"syncing,omitempty"`
}

创建任务的参数

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

type PostTaskTypeEnum

type PostTaskTypeEnum struct {
	MIGRATE_FILE  PostTaskType
	MIGRATE_BLOCK PostTaskType
}

func GetPostTaskTypeEnum

func GetPostTaskTypeEnum() PostTaskTypeEnum

type PublicIp

type PublicIp struct {
	Type string `json:"type"`

	BandwidthSize int32 `json:"bandwidth_size"`
}

公网ip

func (PublicIp) String

func (o PublicIp) String() string

type PutCopyStateReq

type PutCopyStateReq struct {
	Copystate *PutCopyStateReqCopystate `json:"copystate,omitempty"`

	Migrationcycle *PutCopyStateReqMigrationcycle `json:"migrationcycle,omitempty"`
}

源端复制状态

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

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

type PutDisk

type PutDisk struct {
	NeedMigration *bool `json:"need_migration,omitempty"`

	Id string `json:"id"`

	AdjustSize int64 `json:"adjust_size"`

	PhysicalVolumes *[]PutVolume `json:"physical_volumes,omitempty"`
}

磁盘信息

func (PutDisk) String

func (o PutDisk) String() string

type PutDiskInfoReq

type PutDiskInfoReq struct {
	Disks *[]ServerDisk `json:"disks,omitempty"`

	Volumegroups *[]VolumeGroups `json:"volumegroups,omitempty"`

	BtrfsList *[]BtrfsFileSystem `json:"btrfs_list,omitempty"`
}

This is a auto create Body Object

func (PutDiskInfoReq) String

func (o PutDiskInfoReq) String() string

type PutLogicalVolume

type PutLogicalVolume struct {
	Id string `json:"id"`

	NeedMigration *bool `json:"need_migration,omitempty"`

	AdjustSize *int64 `json:"adjust_size,omitempty"`
}

修改的逻辑卷信息

func (PutLogicalVolume) String

func (o PutLogicalVolume) String() string

type PutSourceServerBody

type PutSourceServerBody struct {
	Name *string `json:"name,omitempty"`

	Migprojectid *string `json:"migprojectid,omitempty"`

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

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

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

func (PutSourceServerBody) String

func (o PutSourceServerBody) String() string

type PutTaskReq

type PutTaskReq struct {
	Name *string `json:"name,omitempty"`

	Type *PutTaskReqType `json:"type,omitempty"`

	OsType *PutTaskReqOsType `json:"os_type,omitempty"`

	Id *string `json:"id,omitempty"`

	Priority *PutTaskReqPriority `json:"priority,omitempty"`

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

	StartTargetServer *bool `json:"start_target_server,omitempty"`

	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	MigrationIp *string `json:"migration_ip,omitempty"`

	RegionName *string `json:"region_name,omitempty"`

	ProjectName *string `json:"project_name,omitempty"`

	ProjectId *string `json:"project_id,omitempty"`

	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"`

	MigrateSpeed *float64 `json:"migrate_speed,omitempty"`

	ErrorJson *string `json:"error_json,omitempty"`

	TotalTime *int64 `json:"total_time,omitempty"`

	FloatIp *string `json:"float_ip,omitempty"`

	RemainSeconds *int64 `json:"remain_seconds,omitempty"`

	TargetSnapshotId *string `json:"target_snapshot_id,omitempty"`

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

	SubTasks *[]SubTask `json:"sub_tasks,omitempty"`
}

查询指定迁移任务的返回体

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

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

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

type PutTaskReqTypeEnum

type PutTaskReqTypeEnum struct {
	MIGRATE_FILE  PutTaskReqType
	MIGRATE_BLOCK PutTaskReqType
}

func GetPutTaskReqTypeEnum

func GetPutTaskReqTypeEnum() PutTaskReqTypeEnum

type PutVolume

type PutVolume struct {
	Id *string `json:"id,omitempty"`

	NeedMigration *bool `json:"need_migration,omitempty"`

	AdjustSize *int64 `json:"adjust_size,omitempty"`
}

更新分区

func (PutVolume) String

func (o PutVolume) String() string

type PutVolumeGroups

type PutVolumeGroups struct {
	LogicalVolumes *[]PutLogicalVolume `json:"logical_volumes,omitempty"`

	Id string `json:"id"`

	NeedMigration *bool `json:"need_migration,omitempty"`

	AdjustSize *int64 `json:"adjust_size,omitempty"`
}

逻辑卷组信息

func (PutVolumeGroups) String

func (o PutVolumeGroups) String() string

type RegisterServerRequest

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

Request Object

func (RegisterServerRequest) String

func (o RegisterServerRequest) String() string

type RegisterServerResponse

type RegisterServerResponse struct {
	Id             *string `json:"id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (RegisterServerResponse) String

func (o RegisterServerResponse) String() string

type Server

type Server struct {
	Id *string `json:"id,omitempty"`

	Ip string `json:"ip"`

	Name string `json:"name"`

	Hostname *string `json:"hostname,omitempty"`

	OsType ServerOsType `json:"os_type"`

	OsVersion *string `json:"os_version,omitempty"`

	Firmware *ServerFirmware `json:"firmware,omitempty"`

	CpuQuantity *int32 `json:"cpu_quantity,omitempty"`

	Memory *int64 `json:"memory,omitempty"`

	Disks *[]Disk `json:"disks,omitempty"`

	BtrfsList *[]BtrfsFileSystem `json:"btrfs_list,omitempty"`

	Networks *[]NetWork `json:"networks,omitempty"`

	DomainId *string `json:"domain_id,omitempty"`

	HasRsync *bool `json:"has_rsync,omitempty"`

	Paravirtualization *bool `json:"paravirtualization,omitempty"`

	RawDevices *string `json:"raw_devices,omitempty"`

	DriverFiles *bool `json:"driver_files,omitempty"`

	SystemServices *bool `json:"system_services,omitempty"`

	AccountRights *bool `json:"account_rights,omitempty"`

	BootLoader *ServerBootLoader `json:"boot_loader,omitempty"`

	SystemDir *string `json:"system_dir,omitempty"`

	VolumeGroups *[]VolumeGroups `json:"volume_groups,omitempty"`
}

源端服务器

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

type ServerBootLoaderEnum

type ServerBootLoaderEnum struct {
	GRUB ServerBootLoader
	LILO ServerBootLoader
}

func GetServerBootLoaderEnum

func GetServerBootLoaderEnum() ServerBootLoaderEnum

type ServerDisk

type ServerDisk struct {
	Name string `json:"name"`

	PartitionStyle *ServerDiskPartitionStyle `json:"partition_style,omitempty"`

	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"`

	RelationName *string `json:"relation_name,omitempty"`
}

磁盘信息

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

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

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

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

type ServerOsTypeEnum

type ServerOsTypeEnum struct {
	WINDOWS ServerOsType
	LINUX   ServerOsType
}

func GetServerOsTypeEnum

func GetServerOsTypeEnum() ServerOsTypeEnum

type SgObject

type SgObject struct {
	Id string `json:"id"`

	Name string `json:"name"`
}

安全组object

func (SgObject) String

func (o SgObject) String() string

type ShowCommandRequest

type ShowCommandRequest struct {
	ServerId string `json:"server_id"`
}

Request Object

func (ShowCommandRequest) String

func (o ShowCommandRequest) String() string

type ShowCommandResponse

type ShowCommandResponse struct {
	CommandName *string `json:"command_name,omitempty"`

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

Response Object

func (ShowCommandResponse) String

func (o ShowCommandResponse) String() string

type ShowMigprojectRequest

type ShowMigprojectRequest struct {
	MigProjectId string `json:"mig_project_id"`
}

Request Object

func (ShowMigprojectRequest) String

func (o ShowMigprojectRequest) String() string

type ShowMigprojectResponse

type ShowMigprojectResponse struct {
	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"`

	SpeedLimit *int32 `json:"speed_limit,omitempty"`

	UsePublicIp *bool `json:"use_public_ip,omitempty"`

	ExistServer *bool `json:"exist_server,omitempty"`

	Type *ShowMigprojectResponseType `json:"type,omitempty"`

	EnterpriseProject *string `json:"enterprise_project,omitempty"`

	Syncing        *bool `json:"syncing,omitempty"`
	HttpStatusCode int   `json:"-"`
}

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

type ShowMigprojectResponseTypeEnum

type ShowMigprojectResponseTypeEnum struct {
	MIGRATE_BLOCK ShowMigprojectResponseType
	MIGRATE_FILE  ShowMigprojectResponseType
}

func GetShowMigprojectResponseTypeEnum

func GetShowMigprojectResponseTypeEnum() ShowMigprojectResponseTypeEnum

type ShowOverviewRequest

type ShowOverviewRequest struct {
}

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:"-"`
}

Response Object

func (ShowOverviewResponse) String

func (o ShowOverviewResponse) String() string

type ShowServerRequest

type ShowServerRequest struct {
	SourceId string `json:"source_id"`
}

Request Object

func (ShowServerRequest) String

func (o ShowServerRequest) String() string

type ShowServerResponse

type ShowServerResponse struct {
	Id *string `json:"id,omitempty"`

	Ip *string `json:"ip,omitempty"`

	Name *string `json:"name,omitempty"`

	Hostname *string `json:"hostname,omitempty"`

	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	AddDate *int64 `json:"add_date,omitempty"`

	OsType *string `json:"os_type,omitempty"`

	OsVersion *string `json:"os_version,omitempty"`

	OemSystem *bool `json:"oem_system,omitempty"`

	State *ShowServerResponseState `json:"state,omitempty"`

	Connected *bool `json:"connected,omitempty"`

	Firmware *ShowServerResponseFirmware `json:"firmware,omitempty"`

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

	CpuQuantity *int32 `json:"cpu_quantity,omitempty"`

	Memory *int64 `json:"memory,omitempty"`

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

	Disks *[]ServerDisk `json:"disks,omitempty"`

	VolumeGroups *[]VolumeGroups `json:"volume_groups,omitempty"`

	BtrfsList *[]BtrfsFileSystem `json:"btrfs_list,omitempty"`

	Networks *[]NetWork `json:"networks,omitempty"`

	Checks *[]EnvironmentCheck `json:"checks,omitempty"`

	MigrationCycle *ShowServerResponseMigrationCycle `json:"migration_cycle,omitempty"`

	StateActionTime *int64 `json:"state_action_time,omitempty"`

	Replicatesize *int64 `json:"replicatesize,omitempty"`

	Totalsize *int64 `json:"totalsize,omitempty"`

	LastVisitTime *int64 `json:"last_visit_time,omitempty"`

	StageActionTime *int64 `json:"stage_action_time,omitempty"`

	AgentVersion   *string `json:"agent_version,omitempty"`
	HttpStatusCode int     `json:"-"`
}

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

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

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

type ShowTaskRequest

type ShowTaskRequest struct {
	TaskId string `json:"task_id"`
}

Request Object

func (ShowTaskRequest) String

func (o ShowTaskRequest) String() string

type ShowTaskResponse

type ShowTaskResponse struct {
	Name *string `json:"name,omitempty"`

	Type *ShowTaskResponseType `json:"type,omitempty"`

	OsType *ShowTaskResponseOsType `json:"os_type,omitempty"`

	Id *string `json:"id,omitempty"`

	Priority *ShowTaskResponsePriority `json:"priority,omitempty"`

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

	StartTargetServer *bool `json:"start_target_server,omitempty"`

	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	MigrationIp *string `json:"migration_ip,omitempty"`

	RegionName *string `json:"region_name,omitempty"`

	ProjectName *string `json:"project_name,omitempty"`

	ProjectId *string `json:"project_id,omitempty"`

	VmTemplateId *string `json:"vm_template_id,omitempty"`

	SourceServer *SourceServer `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"`

	MigrateSpeed *float64 `json:"migrate_speed,omitempty"`

	CompressRate *float64 `json:"compress_rate,omitempty"`

	ErrorJson *string `json:"error_json,omitempty"`

	TotalTime *int64 `json:"total_time,omitempty"`

	FloatIp *string `json:"float_ip,omitempty"`

	RemainSeconds *int64 `json:"remain_seconds,omitempty"`

	TargetSnapshotId *string `json:"target_snapshot_id,omitempty"`

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

	SubTasks       *[]SubTask `json:"sub_tasks,omitempty"`
	HttpStatusCode int        `json:"-"`
}

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

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

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

type ShowTaskResponseTypeEnum

type ShowTaskResponseTypeEnum struct {
	MIGRATE_FILE  ShowTaskResponseType
	MIGRATE_BLOCK ShowTaskResponseType
}

func GetShowTaskResponseTypeEnum

func GetShowTaskResponseTypeEnum() ShowTaskResponseTypeEnum

type ShowTemplateRequest

type ShowTemplateRequest struct {
	Id string `json:"id"`
}

Request Object

func (ShowTemplateRequest) String

func (o ShowTemplateRequest) String() string

type ShowTemplateResponse

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

Response Object

func (ShowTemplateResponse) String

func (o ShowTemplateResponse) String() string

type ShowsSpeedLimitsRequest

type ShowsSpeedLimitsRequest struct {
	TaskId string `json:"task_id"`
}

Request Object

func (ShowsSpeedLimitsRequest) String

func (o ShowsSpeedLimitsRequest) String() string

type ShowsSpeedLimitsResponse

type ShowsSpeedLimitsResponse struct {
	SpeedLimit     *[]SpeedLimitlJson `json:"speed_limit,omitempty"`
	HttpStatusCode int                `json:"-"`
}

Response Object

func (ShowsSpeedLimitsResponse) String

func (o ShowsSpeedLimitsResponse) String() string

type SourceServer

type SourceServer struct {
	Id *string `json:"id,omitempty"`

	Ip string `json:"ip"`

	Name string `json:"name"`

	Hostname *string `json:"hostname,omitempty"`

	OsType SourceServerOsType `json:"os_type"`

	OsVersion *string `json:"os_version,omitempty"`

	Firmware *SourceServerFirmware `json:"firmware,omitempty"`

	CpuQuantity *int32 `json:"cpu_quantity,omitempty"`

	Memory *int64 `json:"memory,omitempty"`

	Disks *[]ServerDisk `json:"disks,omitempty"`

	BtrfsList *[]BtrfsFileSystem `json:"btrfs_list,omitempty"`

	Networks *[]NetWork `json:"networks,omitempty"`

	DomainId *string `json:"domain_id,omitempty"`

	HasRsync *bool `json:"has_rsync,omitempty"`

	Paravirtualization *bool `json:"paravirtualization,omitempty"`

	RawDevices *string `json:"raw_devices,omitempty"`

	DriverFiles *bool `json:"driver_files,omitempty"`

	SystemServices *bool `json:"system_services,omitempty"`

	AccountRights *bool `json:"account_rights,omitempty"`

	BootLoader *SourceServerBootLoader `json:"boot_loader,omitempty"`

	SystemDir *string `json:"system_dir,omitempty"`

	VolumeGroups *[]VolumeGroups `json:"volume_groups,omitempty"`

	AgentVersion string `json:"agent_version"`
}

源端服务器

func (SourceServer) String

func (o SourceServer) String() string

type SourceServerAssociatedWithTask

type SourceServerAssociatedWithTask struct {
	Id *string `json:"id,omitempty"`

	Ip string `json:"ip"`

	Name string `json:"name"`

	OsType SourceServerAssociatedWithTaskOsType `json:"os_type"`

	OsVersion *string `json:"os_version,omitempty"`

	OemSystem *bool `json:"oem_system,omitempty"`

	State *SourceServerAssociatedWithTaskState `json:"state,omitempty"`
}

任务关联的源端信息

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

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

type SourceServerBootLoader

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

func (SourceServerBootLoader) MarshalJSON

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

func (*SourceServerBootLoader) UnmarshalJSON

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

type SourceServerBootLoaderEnum

type SourceServerBootLoaderEnum struct {
	GRUB SourceServerBootLoader
	LILO SourceServerBootLoader
}

func GetSourceServerBootLoaderEnum

func GetSourceServerBootLoaderEnum() SourceServerBootLoaderEnum

type SourceServerByTask

type SourceServerByTask struct {
	Id string `json:"id"`
}

源端服务器信息

func (SourceServerByTask) String

func (o SourceServerByTask) String() string

type SourceServerFirmware

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

func (SourceServerFirmware) MarshalJSON

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

func (*SourceServerFirmware) UnmarshalJSON

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

type SourceServerFirmwareEnum

type SourceServerFirmwareEnum struct {
	BIOS SourceServerFirmware
	UEFI SourceServerFirmware
}

func GetSourceServerFirmwareEnum

func GetSourceServerFirmwareEnum() SourceServerFirmwareEnum

type SourceServerOsType

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

func (SourceServerOsType) MarshalJSON

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

func (*SourceServerOsType) UnmarshalJSON

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

type SourceServerOsTypeEnum

type SourceServerOsTypeEnum struct {
	WINDOWS SourceServerOsType
	LINUX   SourceServerOsType
}

func GetSourceServerOsTypeEnum

func GetSourceServerOsTypeEnum() SourceServerOsTypeEnum

type SourceServersResponseBody

type SourceServersResponseBody struct {
	Id *string `json:"id,omitempty"`

	Ip *string `json:"ip,omitempty"`

	Name *string `json:"name,omitempty"`

	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	AddDate *int64 `json:"add_date,omitempty"`

	OsType *SourceServersResponseBodyOsType `json:"os_type,omitempty"`

	OsVersion *string `json:"os_version,omitempty"`

	OemSystem *bool `json:"oem_system,omitempty"`

	State *SourceServersResponseBodyState `json:"state,omitempty"`

	Connected *bool `json:"connected,omitempty"`

	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"`

	StageActionTime *int64 `json:"stage_action_time,omitempty"`

	Totalsize *int64 `json:"totalsize,omitempty"`

	LastVisitTime *int64 `json:"last_visit_time,omitempty"`

	MigrationCycle *SourceServersResponseBodyMigrationCycle `json:"migration_cycle,omitempty"`

	StateActionTime *int64 `json:"state_action_time,omitempty"`
}

源端服务器列表信息

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

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

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

type SpeedLimit

type SpeedLimit struct {
	SpeedLimit []SpeedLimitlJson `json:"speed_limit"`
}

修改速率的参数

func (SpeedLimit) String

func (o SpeedLimit) String() string

type SpeedLimitlJson

type SpeedLimitlJson struct {
	Start string `json:"start"`

	End string `json:"end"`

	Speed int32 `json:"speed"`
}

速率参数

func (SpeedLimitlJson) String

func (o SpeedLimitlJson) String() string

type SubTask

type SubTask struct {
	Name *string `json:"name,omitempty"`

	Progress int32 `json:"progress"`

	StartDate *int64 `json:"start_date,omitempty"`

	EndDate *int64 `json:"end_date,omitempty"`

	MigrateSpeed *float64 `json:"migrate_speed,omitempty"`

	UserOp *string `json:"user_op,omitempty"`
}

修改任务进度

func (SubTask) String

func (o SubTask) String() string

type SubTaskAssociatedWithTask

type SubTaskAssociatedWithTask struct {
	Id *int64 `json:"id,omitempty"`

	Name *string `json:"name,omitempty"`

	Progress *int32 `json:"progress,omitempty"`

	StartDate *int64 `json:"start_date,omitempty"`

	EndDate *int64 `json:"end_date,omitempty"`
}

任务关联的子任务信息

func (SubTaskAssociatedWithTask) String

func (o SubTaskAssociatedWithTask) String() string

type TargetDisk

type TargetDisk struct {
	DeviceUse *TargetDiskDeviceUse `json:"device_use,omitempty"`

	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"`
}

目的端磁盘

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

type TargetDiskDeviceUseEnum

type TargetDiskDeviceUseEnum struct {
	NORMAL TargetDiskDeviceUse
	OS     TargetDiskDeviceUse
	BOOT   TargetDiskDeviceUse
}

func GetTargetDiskDeviceUseEnum

func GetTargetDiskDeviceUseEnum() TargetDiskDeviceUseEnum

type TargetDisks

type TargetDisks struct {
	DeviceUse *TargetDisksDeviceUse `json:"device_use,omitempty"`

	DiskId *string `json:"disk_id,omitempty"`

	Name string `json:"name"`

	PhysicalVolumes []PhysicalVolumes `json:"physical_volumes"`

	Size int64 `json:"size"`

	UsedSize int64 `json:"used_size"`
}

目的端磁盘信息

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

type TargetDisksDeviceUseEnum

type TargetDisksDeviceUseEnum struct {
	NORMAL TargetDisksDeviceUse
	OS     TargetDisksDeviceUse
	BOOT   TargetDisksDeviceUse
}

func GetTargetDisksDeviceUseEnum

func GetTargetDisksDeviceUseEnum() TargetDisksDeviceUseEnum

type TargetPhysicalVolumes

type TargetPhysicalVolumes struct {
	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 *string `json:"uuid,omitempty"`
}

物理分区

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

type TargetServer

type TargetServer struct {
	Id *string `json:"id,omitempty"`

	Ip string `json:"ip"`

	Name string `json:"name"`

	Hostname *string `json:"hostname,omitempty"`

	OsType TargetServerOsType `json:"os_type"`

	OsVersion *string `json:"os_version,omitempty"`

	Firmware *TargetServerFirmware `json:"firmware,omitempty"`

	CpuQuantity *int32 `json:"cpu_quantity,omitempty"`

	Memory *int64 `json:"memory,omitempty"`

	Disks []TargetDisk `json:"disks"`

	BtrfsList *[]string `json:"btrfs_list,omitempty"`

	Networks *[]NetWork `json:"networks,omitempty"`

	DomainId *string `json:"domain_id,omitempty"`

	HasRsync *bool `json:"has_rsync,omitempty"`

	Paravirtualization *bool `json:"paravirtualization,omitempty"`

	RawDevices *string `json:"raw_devices,omitempty"`

	DriverFiles *bool `json:"driver_files,omitempty"`

	SystemServices *bool `json:"system_services,omitempty"`

	AccountRights *bool `json:"account_rights,omitempty"`

	BootLoader *TargetServerBootLoader `json:"boot_loader,omitempty"`

	SystemDir *string `json:"system_dir,omitempty"`

	VolumeGroups *[]VolumeGroups `json:"volume_groups,omitempty"`

	VmId *string `json:"vm_id,omitempty"`

	Flavor *string `json:"flavor,omitempty"`

	ImageDiskId *string `json:"image_disk_id,omitempty"`

	SnapshotIds *string `json:"snapshot_ids,omitempty"`

	CutoveredSnapshotIds *string `json:"cutovered_snapshot_ids,omitempty"`
}

目的端服务器

func (TargetServer) String

func (o TargetServer) String() string

type TargetServerAssociatedWithTask

type TargetServerAssociatedWithTask struct {
	Id *string `json:"id,omitempty"`

	VmId *string `json:"vm_id,omitempty"`

	Name *string `json:"name,omitempty"`

	Ip *string `json:"ip,omitempty"`

	OsType *TargetServerAssociatedWithTaskOsType `json:"os_type,omitempty"`

	OsVersion *string `json:"os_version,omitempty"`
}

任务关联的目的端信息

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

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

type TargetServerBootLoaderEnum

type TargetServerBootLoaderEnum struct {
	GRUB TargetServerBootLoader
	LILO TargetServerBootLoader
}

func GetTargetServerBootLoaderEnum

func GetTargetServerBootLoaderEnum() TargetServerBootLoaderEnum

type TargetServerById

type TargetServerById struct {
	VmId *string `json:"vm_id,omitempty"`

	Name *string `json:"name,omitempty"`
}

目的端

func (TargetServerById) String

func (o TargetServerById) String() string

type TargetServerByTask

type TargetServerByTask struct {
	BtrfsList *[]BtrfsFileSystem `json:"btrfs_list,omitempty"`

	Disks []TargetDisks `json:"disks"`

	Name string `json:"name"`

	VmId string `json:"vm_id"`

	VolumeGroups *[]VolumeGroups `json:"volume_groups,omitempty"`
}

目的端虚拟机信息

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

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

type TargetServerOsTypeEnum

type TargetServerOsTypeEnum struct {
	WINDOWS TargetServerOsType
	LINUX   TargetServerOsType
}

func GetTargetServerOsTypeEnum

func GetTargetServerOsTypeEnum() TargetServerOsTypeEnum

type TaskByServerSource

type TaskByServerSource struct {
	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"`

	VmTemplateId *string `json:"vm_template_id,omitempty"`

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

	ProjectName *string `json:"project_name,omitempty"`

	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"`

	UsePublicIp *bool `json:"use_public_ip,omitempty"`

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

源端列表中关联的任务

func (TaskByServerSource) String

func (o TaskByServerSource) String() string

type TaskByServerSources

type TaskByServerSources struct {
	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"`

	VmTemplateId *string `json:"vm_template_id,omitempty"`

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

	ProjectName *string `json:"project_name,omitempty"`

	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"`

	UsePublicIp *bool `json:"use_public_ip,omitempty"`

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

	RemainSeconds *int64 `json:"remain_seconds,omitempty"`
}

源端列表中关联的任务

func (TaskByServerSources) String

func (o TaskByServerSources) String() string

type TaskTargetServer

type TaskTargetServer struct {
	Id *string `json:"id,omitempty"`

	VmId *string `json:"vm_id,omitempty"`

	Name *string `json:"name,omitempty"`

	Ip *string `json:"ip,omitempty"`

	OsType *TaskTargetServerOsType `json:"os_type,omitempty"`

	OsVersion *string `json:"os_version,omitempty"`

	SystemDir *string `json:"system_dir,omitempty"`

	Disks []TargetDisk `json:"disks"`

	VolumeGroups *[]VolumeGroups `json:"volume_groups,omitempty"`

	BtrfsList *[]string `json:"btrfs_list,omitempty"`

	ImageDiskId *string `json:"image_disk_id,omitempty"`

	CutoveredSnapshotIds *string `json:"cutovered_snapshot_ids,omitempty"`
}

目的端服务器

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

type TaskTargetServerOsTypeEnum

type TaskTargetServerOsTypeEnum struct {
	WINDOWS TaskTargetServerOsType
	LINUX   TaskTargetServerOsType
}

func GetTaskTargetServerOsTypeEnum

func GetTaskTargetServerOsTypeEnum() TaskTargetServerOsTypeEnum

type TasksResponseBody

type TasksResponseBody struct {
	Id *string `json:"id,omitempty"`

	Name *string `json:"name,omitempty"`

	Type *TasksResponseBodyType `json:"type,omitempty"`

	OsType *TasksResponseBodyOsType `json:"os_type,omitempty"`

	State *string `json:"state,omitempty"`

	EstimateCompleteTime *int64 `json:"estimate_complete_time,omitempty"`

	CreateDate *int64 `json:"create_date,omitempty"`

	Priority *TasksResponseBodyPriority `json:"priority,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"`

	ErrorJson *string `json:"error_json,omitempty"`

	TotalTime *int64 `json:"total_time,omitempty"`

	MigrationIp *string `json:"migration_ip,omitempty"`

	SubTasks *[]SubTaskAssociatedWithTask `json:"sub_tasks,omitempty"`

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

	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

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

	LogCollectStatus *TasksResponseBodyLogCollectStatus `json:"log_collect_status,omitempty"`

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

	Syncing *bool `json:"syncing,omitempty"`
}

批量查询任务时返回体重返回的任务信息。

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

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

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

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

type TasksResponseBodyTypeEnum

type TasksResponseBodyTypeEnum struct {
	MIGRATE_FILE  TasksResponseBodyType
	MIGRATE_BLOCK TasksResponseBodyType
}

func GetTasksResponseBodyTypeEnum

func GetTasksResponseBodyTypeEnum() TasksResponseBodyTypeEnum

type TemplateDisk

type TemplateDisk struct {
	Index int32 `json:"index"`

	Name string `json:"name"`

	Disktype string `json:"disktype"`

	Size int64 `json:"size"`
}

磁盘模板

func (TemplateDisk) String

func (o TemplateDisk) String() string

type TemplateRequest

type TemplateRequest struct {
	Name string `json:"name"`

	IsTemplate bool `json:"is_template"`

	Region string `json:"region"`

	Projectid string `json:"projectid"`

	TargetServerName *string `json:"target_server_name,omitempty"`

	AvailabilityZone *string `json:"availability_zone,omitempty"`

	Volumetype *TemplateRequestVolumetype `json:"volumetype,omitempty"`

	Flavor *string `json:"flavor,omitempty"`

	Vpc *VpcObject `json:"vpc,omitempty"`

	Nics *[]Nics `json:"nics,omitempty"`

	SecurityGroups *[]SgObject `json:"security_groups,omitempty"`

	Publicip *PublicIp `json:"publicip,omitempty"`

	Disk *[]TemplateDisk `json:"disk,omitempty"`

	DataVolumeType *TemplateRequestDataVolumeType `json:"data_volume_type,omitempty"`

	TargetPassword *string `json:"target_password,omitempty"`
}

自动创建虚拟机模板

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

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

type TemplateRequestVolumetypeEnum

type TemplateRequestVolumetypeEnum struct {
	SAS  TemplateRequestVolumetype
	SSD  TemplateRequestVolumetype
	SATA TemplateRequestVolumetype
}

func GetTemplateRequestVolumetypeEnum

func GetTemplateRequestVolumetypeEnum() TemplateRequestVolumetypeEnum

type TemplateResponse

type TemplateResponse struct {
	Template *TemplateResponseBody `json:"template,omitempty"`
}

模板响应

func (TemplateResponse) String

func (o TemplateResponse) String() string

type TemplateResponseBody

type TemplateResponseBody struct {
	Id *string `json:"id,omitempty"`

	Name string `json:"name"`

	IsTemplate *string `json:"is_template,omitempty"`

	Region string `json:"region"`

	Projectid string `json:"projectid"`

	TargetServerName string `json:"target_server_name"`

	AvailabilityZone string `json:"availability_zone"`

	Volumetype TemplateResponseBodyVolumetype `json:"volumetype"`

	Flavor string `json:"flavor"`

	Vpc *VpcObject `json:"vpc"`

	Nics []Nics `json:"nics"`

	SecurityGroups []SgObject `json:"security_groups"`

	Publicip *PublicIp `json:"publicip"`

	Disk []TemplateDisk `json:"disk"`

	DataVolumeType TemplateResponseBodyDataVolumeType `json:"data_volume_type"`

	TargetPassword string `json:"target_password"`
}

自动创建虚拟机模板

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

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

type UpdateCommandResultRequest

type UpdateCommandResultRequest struct {
	ServerId string `json:"server_id"`

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

Request Object

func (UpdateCommandResultRequest) String

type UpdateCommandResultResponse

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

Response Object

func (UpdateCommandResultResponse) String

type UpdateCopyStateRequest

type UpdateCopyStateRequest struct {
	SourceId string `json:"source_id"`

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

Request Object

func (UpdateCopyStateRequest) String

func (o UpdateCopyStateRequest) String() string

type UpdateCopyStateResponse

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

Response Object

func (UpdateCopyStateResponse) String

func (o UpdateCopyStateResponse) String() string

type UpdateDefaultMigprojectRequest

type UpdateDefaultMigprojectRequest struct {
	MigProjectId string `json:"mig_project_id"`
}

Request Object

func (UpdateDefaultMigprojectRequest) String

type UpdateDefaultMigprojectResponse

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

Response Object

func (UpdateDefaultMigprojectResponse) String

type UpdateDiskInfoRequest

type UpdateDiskInfoRequest struct {
	SourceId string `json:"source_id"`

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

Request Object

func (UpdateDiskInfoRequest) String

func (o UpdateDiskInfoRequest) String() string

type UpdateDiskInfoResponse

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

Response Object

func (UpdateDiskInfoResponse) String

func (o UpdateDiskInfoResponse) String() string

type UpdateMigprojectRequest

type UpdateMigprojectRequest struct {
	MigProjectId string `json:"mig_project_id"`

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

Request Object

func (UpdateMigprojectRequest) String

func (o UpdateMigprojectRequest) String() string

type UpdateMigprojectResponse

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

Response Object

func (UpdateMigprojectResponse) String

func (o UpdateMigprojectResponse) String() string

type UpdateServerNameRequest

type UpdateServerNameRequest struct {
	SourceId string `json:"source_id"`

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

Request Object

func (UpdateServerNameRequest) String

func (o UpdateServerNameRequest) String() string

type UpdateServerNameResponse

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

Response Object

func (UpdateServerNameResponse) String

func (o UpdateServerNameResponse) String() string

type UpdateSpeedRequest

type UpdateSpeedRequest struct {
	TaskId string `json:"task_id"`

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

Request Object

func (UpdateSpeedRequest) String

func (o UpdateSpeedRequest) String() string

type UpdateSpeedResponse

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

Response Object

func (UpdateSpeedResponse) String

func (o UpdateSpeedResponse) String() string

type UpdateTaskRequest

type UpdateTaskRequest struct {
	TaskId string `json:"task_id"`

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

Request Object

func (UpdateTaskRequest) String

func (o UpdateTaskRequest) String() string

type UpdateTaskResponse

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

Response Object

func (UpdateTaskResponse) String

func (o UpdateTaskResponse) String() string

type UpdateTaskSpeedReq

type UpdateTaskSpeedReq struct {
	SubtaskName UpdateTaskSpeedReqSubtaskName `json:"subtask_name"`

	Progress int32 `json:"progress"`

	Replicatesize int64 `json:"replicatesize"`

	Totalsize int64 `json:"totalsize"`

	MigrateSpeed float64 `json:"migrate_speed"`
}

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

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 {
	TaskId string `json:"task_id"`

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

Request Object

func (UpdateTaskSpeedRequest) String

func (o UpdateTaskSpeedRequest) String() string

type UpdateTaskSpeedResponse

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

Response Object

func (UpdateTaskSpeedResponse) String

func (o UpdateTaskSpeedResponse) String() string

type UpdateTaskStatusReq

type UpdateTaskStatusReq struct {
	Operation UpdateTaskStatusReqOperation `json:"operation"`

	Param map[string]string `json:"param,omitempty"`
}

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

type UpdateTaskStatusRequest

type UpdateTaskStatusRequest struct {
	TaskId string `json:"task_id"`

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

Request Object

func (UpdateTaskStatusRequest) String

func (o UpdateTaskStatusRequest) String() string

type UpdateTaskStatusResponse

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

Response Object

func (UpdateTaskStatusResponse) String

func (o UpdateTaskStatusResponse) String() string

type UpdateTemplateReq

type UpdateTemplateReq struct {
	Template *TemplateRequest `json:"template,omitempty"`
}

This is a auto create Body Object

func (UpdateTemplateReq) String

func (o UpdateTemplateReq) String() string

type UpdateTemplateRequest

type UpdateTemplateRequest struct {
	Id string `json:"id"`

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

Request Object

func (UpdateTemplateRequest) String

func (o UpdateTemplateRequest) String() string

type UpdateTemplateResponse

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

Response Object

func (UpdateTemplateResponse) String

func (o UpdateTemplateResponse) String() string

type VolumeGroups

type VolumeGroups struct {
	Components *string `json:"components,omitempty"`

	FreeSize *int64 `json:"free_size,omitempty"`

	LogicalVolumes *[]LogicalVolumes `json:"logical_volumes,omitempty"`

	Name *string `json:"name,omitempty"`

	Size *int64 `json:"size,omitempty"`
}

逻辑卷组信息

func (VolumeGroups) String

func (o VolumeGroups) String() string

type VpcObject

type VpcObject struct {
	Id string `json:"id"`

	Name string `json:"name"`

	Cidr *string `json:"cidr,omitempty"`
}

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