@@ -76,42 +76,6 @@ def describe_comp_share_instance(
76
76
77
77
**Response Model**
78
78
79
- **UHostIPSet**
80
- - **Bandwidth** (int) - IP对应的带宽, 单位: Mb (内网IP不显示带宽信息)
81
- - **Default** (str) - 内网 Private 类型下,表示是否为默认网卡。true: 是默认网卡;其他值:不是。
82
- - **IP** (str) - IP地址
83
- - **IPId** (str) - 外网IP资源ID 。(内网IP无对应的资源ID)
84
- - **IPMode** (str) - IPv4/IPv6;
85
- - **Mac** (str) - 内网 Private 类型下,当前网卡的Mac。
86
- - **NetworkInterfaceId** (str) - 弹性网卡为默认网卡时,返回对应的 ID 值
87
- - **SubnetId** (str) - IP地址对应的子网 ID。(北京一不支持,字段返回为空)
88
- - **Type** (str) - 国际: Internation,BGP: Bgp,内网: Private
89
- - **VPCId** (str) - IP地址对应的VPC ID。(北京一不支持,字段返回为空)
90
- - **Weight** (int) - 当前EIP的权重。权重最大的为当前的出口IP。
91
-
92
-
93
- **UHostDiskSet**
94
- - **BackupType** (str) - 备份方案。若开通了数据方舟,则为DATAARK
95
- - **DiskId** (str) - 磁盘ID
96
- - **DiskType** (str) - 磁盘类型。请参考 `磁盘类型 <https://docs.ucloud.cn/api/uhost-api/disk_type>`_ 。
97
- - **Drive** (str) - 磁盘盘符
98
- - **Encrypted** (str) - "true": 加密盘 "false":非加密盘
99
- - **IsBoot** (str) - 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。
100
- - **Name** (str) - UDisk名字(仅当磁盘是UDisk时返回)
101
- - **Size** (int) - 磁盘大小,单位: GB
102
- - **Type** (str) - 【建议不再使用】磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk
103
-
104
-
105
- **GraphicsMemory**
106
- - **Rate** (int) - 交互展示参数,可忽略
107
- - **Value** (int) - 值,单位是GB
108
-
109
-
110
- **SoftwareAddr**
111
- - **Name** (str) - 软件名称
112
- - **URL** (str) - 软件地址
113
-
114
-
115
79
**CompShareInstanceSet**
116
80
- **AutoRenew** (str) - 是否自动续费,自动续费:“Yes”,不自动续费:“No”
117
81
- **CPU** (int) - 虚拟CPU核数,单位: 个
@@ -158,6 +122,42 @@ def describe_comp_share_instance(
158
122
- **Zone** (str) - 可用区
159
123
160
124
125
+ **UHostDiskSet**
126
+ - **BackupType** (str) - 备份方案。若开通了数据方舟,则为DATAARK
127
+ - **DiskId** (str) - 磁盘ID
128
+ - **DiskType** (str) - 磁盘类型。请参考 `磁盘类型 <https://docs.ucloud.cn/api/uhost-api/disk_type>`_ 。
129
+ - **Drive** (str) - 磁盘盘符
130
+ - **Encrypted** (str) - "true": 加密盘 "false":非加密盘
131
+ - **IsBoot** (str) - 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。
132
+ - **Name** (str) - UDisk名字(仅当磁盘是UDisk时返回)
133
+ - **Size** (int) - 磁盘大小,单位: GB
134
+ - **Type** (str) - 【建议不再使用】磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk
135
+
136
+
137
+ **GraphicsMemory**
138
+ - **Rate** (int) - 交互展示参数,可忽略
139
+ - **Value** (int) - 值,单位是GB
140
+
141
+
142
+ **UHostIPSet**
143
+ - **Bandwidth** (int) - IP对应的带宽, 单位: Mb (内网IP不显示带宽信息)
144
+ - **Default** (str) - 内网 Private 类型下,表示是否为默认网卡。true: 是默认网卡;其他值:不是。
145
+ - **IP** (str) - IP地址
146
+ - **IPId** (str) - 外网IP资源ID 。(内网IP无对应的资源ID)
147
+ - **IPMode** (str) - IPv4/IPv6;
148
+ - **Mac** (str) - 内网 Private 类型下,当前网卡的Mac。
149
+ - **NetworkInterfaceId** (str) - 弹性网卡为默认网卡时,返回对应的 ID 值
150
+ - **SubnetId** (str) - IP地址对应的子网 ID。(北京一不支持,字段返回为空)
151
+ - **Type** (str) - 国际: Internation,BGP: Bgp,内网: Private
152
+ - **VPCId** (str) - IP地址对应的VPC ID。(北京一不支持,字段返回为空)
153
+ - **Weight** (int) - 当前EIP的权重。权重最大的为当前的出口IP。
154
+
155
+
156
+ **SoftwareAddr**
157
+ - **Name** (str) - 软件名称
158
+ - **URL** (str) - 软件地址
159
+
160
+
161
161
"""
162
162
# build request
163
163
d = {
@@ -259,6 +259,16 @@ def describe_ul_host_instance(
259
259
- **Type** (str) - 磁盘类型。系统盘:"Boot";数据盘:"Data"
260
260
261
261
262
+ **ExclusiveUTPInfo**
263
+ - **AvailableSize** (int) - 当前周期剩余流量
264
+ - **CreateTime** (int) - 创建时间
265
+ - **ExcessSize** (int) - 当前周期超出限额的流量
266
+ - **LastResetTime** (int) - 上次重置时间
267
+ - **NextResetTime** (int) - 下次重置时间
268
+ - **TotalSize** (int) - 当前周期总流量
269
+ - **UsedSize** (int) - 当前周期已使用流量
270
+
271
+
262
272
**UHostIPSet**
263
273
- **Bandwidth** (int) - IP对应的带宽, 单位: Mb (内网IP不显示带宽信息)
264
274
- **Default** (str) - 内网 Private 类型下,表示是否为默认网卡。true: 是默认网卡;其他值:不是。
@@ -273,16 +283,6 @@ def describe_ul_host_instance(
273
283
- **Weight** (int) - 当前EIP的权重。权重最大的为当前的出口IP。
274
284
275
285
276
- **ExclusiveUTPInfo**
277
- - **AvailableSize** (int) - 当前周期剩余流量
278
- - **CreateTime** (int) - 创建时间
279
- - **ExcessSize** (int) - 当前周期超出限额的流量
280
- - **LastResetTime** (int) - 上次重置时间
281
- - **NextResetTime** (int) - 下次重置时间
282
- - **TotalSize** (int) - 当前周期总流量
283
- - **UsedSize** (int) - 当前周期已使用流量
284
-
285
-
286
286
"""
287
287
# build request
288
288
d = {
@@ -454,6 +454,36 @@ def reboot_ul_host_instance(
454
454
resp = self .invoke ("RebootULHostInstance" , d , ** kwargs )
455
455
return apis .RebootULHostInstanceResponseSchema ().loads (resp )
456
456
457
+ def reinstall_comp_share_instance (
458
+ self , req : typing .Optional [dict ] = None , ** kwargs
459
+ ) -> dict :
460
+ """ReinstallCompShareInstance - 重装算力平台实例
461
+
462
+ **Request**
463
+
464
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
465
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
466
+ - **CompShareImageId** (str) - (Required) 镜像Id
467
+ - **Password** (str) - (Required) 实例的新密码
468
+ - **UHostId** (str) - (Required) 实例Id
469
+ - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
470
+
471
+ **Response**
472
+
473
+ - **UHostId** (str) - 实例Id
474
+
475
+ """
476
+ # build request
477
+ d = {
478
+ "ProjectId" : self .config .project_id ,
479
+ "Region" : self .config .region ,
480
+ }
481
+ req and d .update (req )
482
+ d = apis .ReinstallCompShareInstanceRequestSchema ().dumps (d )
483
+
484
+ resp = self .invoke ("ReinstallCompShareInstance" , d , ** kwargs )
485
+ return apis .ReinstallCompShareInstanceResponseSchema ().loads (resp )
486
+
457
487
def reinstall_ul_host_instance (
458
488
self , req : typing .Optional [dict ] = None , ** kwargs
459
489
) -> dict :
0 commit comments