forked from huaweicloud/huaweicloud-sdk-go-v3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_task_by_server_sources.go
90 lines (61 loc) · 2.07 KB
/
model_task_by_server_sources.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
package model
import (
"github.com/dysodeng/huaweicloud-sdk-go-v3/core/utils"
"strings"
)
// 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"`
}
func (o TaskByServerSources) String() string {
data, err := utils.Marshal(o)
if err != nil {
return "TaskByServerSources struct{}"
}
return strings.Join([]string{"TaskByServerSources", string(data)}, " ")
}