@@ -20,6 +20,28 @@ class KeyPairSchema(schema.ResponseSchema):
20
20
}
21
21
22
22
23
+ class DataDiskInfoSchema (schema .ResponseSchema ):
24
+ """DataDiskInfo - 数据盘信息"""
25
+
26
+ fields = {
27
+ "Features" : fields .List (fields .Str ()),
28
+ "MaximalSize" : fields .Int (required = False , load_from = "MaximalSize" ),
29
+ "MinimalSize" : fields .Int (required = False , load_from = "MinimalSize" ),
30
+ "Name" : fields .Str (required = False , load_from = "Name" ),
31
+ }
32
+
33
+
34
+ class BootDiskInfoSchema (schema .ResponseSchema ):
35
+ """BootDiskInfo - 系统盘信息"""
36
+
37
+ fields = {
38
+ "Features" : fields .List (fields .Str ()),
39
+ "InstantResize" : fields .Bool (required = False , load_from = "InstantResize" ),
40
+ "MaximalSize" : fields .Int (required = False , load_from = "MaximalSize" ),
41
+ "Name" : fields .Str (required = False , load_from = "Name" ),
42
+ }
43
+
44
+
23
45
class CollectionSchema (schema .ResponseSchema ):
24
46
"""Collection - CPU和内存可支持的规格"""
25
47
@@ -40,24 +62,21 @@ class FeatureModesSchema(schema.ResponseSchema):
40
62
}
41
63
42
64
43
- class DataDiskInfoSchema (schema .ResponseSchema ):
44
- """DataDiskInfo - 数据盘信息 """
65
+ class PerformanceSchema (schema .ResponseSchema ):
66
+ """Performance - GPU的性能指标 """
45
67
46
68
fields = {
47
- "Features" : fields .List (fields .Str ()),
48
- "MaximalSize" : fields .Int (required = False , load_from = "MaximalSize" ),
49
- "MinimalSize" : fields .Int (required = False , load_from = "MinimalSize" ),
50
- "Name" : fields .Str (required = False , load_from = "Name" ),
69
+ "Rate" : fields .Int (required = False , load_from = "Rate" ),
70
+ "Value" : fields .Float (required = False , load_from = "Value" ),
51
71
}
52
72
53
73
54
- class BootDiskInfoSchema (schema .ResponseSchema ):
55
- """BootDiskInfo - 系统盘信息 """
74
+ class DisksSchema (schema .ResponseSchema ):
75
+ """Disks - 磁盘信息 """
56
76
57
77
fields = {
58
- "Features" : fields .List (fields .Str ()),
59
- "InstantResize" : fields .Bool (required = False , load_from = "InstantResize" ),
60
- "MaximalSize" : fields .Int (required = False , load_from = "MaximalSize" ),
78
+ "BootDisk" : fields .List (BootDiskInfoSchema ()),
79
+ "DataDisk" : fields .List (DataDiskInfoSchema ()),
61
80
"Name" : fields .Str (required = False , load_from = "Name" ),
62
81
}
63
82
@@ -80,15 +99,6 @@ class GraphicsMemorySchema(schema.ResponseSchema):
80
99
}
81
100
82
101
83
- class PerformanceSchema (schema .ResponseSchema ):
84
- """Performance - GPU的性能指标"""
85
-
86
- fields = {
87
- "Rate" : fields .Int (required = False , load_from = "Rate" ),
88
- "Value" : fields .Float (required = False , load_from = "Value" ),
89
- }
90
-
91
-
92
102
class FeaturesSchema (schema .ResponseSchema ):
93
103
"""Features - 虚机可支持的特性"""
94
104
@@ -98,16 +108,6 @@ class FeaturesSchema(schema.ResponseSchema):
98
108
}
99
109
100
110
101
- class DisksSchema (schema .ResponseSchema ):
102
- """Disks - 磁盘信息"""
103
-
104
- fields = {
105
- "BootDisk" : fields .List (BootDiskInfoSchema ()),
106
- "DataDisk" : fields .List (DataDiskInfoSchema ()),
107
- "Name" : fields .Str (required = False , load_from = "Name" ),
108
- }
109
-
110
-
111
111
class CpuPlatformsSchema (schema .ResponseSchema ):
112
112
"""CpuPlatforms - CPU平台信息"""
113
113
@@ -140,6 +140,7 @@ class UHostImageSetSchema(schema.ResponseSchema):
140
140
141
141
fields = {
142
142
"CreateTime" : fields .Int (required = False , load_from = "CreateTime" ),
143
+ "DataSnapshotIds" : fields .List (fields .Str ()),
143
144
"Features" : fields .List (fields .Str ()),
144
145
"FuncType" : fields .Str (required = False , load_from = "FuncType" ),
145
146
"ImageDescription" : fields .Str (
@@ -188,6 +189,22 @@ class IsolationGroupSchema(schema.ResponseSchema):
188
189
}
189
190
190
191
192
+ class UHostDiskSetSchema (schema .ResponseSchema ):
193
+ """UHostDiskSet - DescribeUHostInstance"""
194
+
195
+ fields = {
196
+ "BackupType" : fields .Str (required = False , load_from = "BackupType" ),
197
+ "DiskId" : fields .Str (required = False , load_from = "DiskId" ),
198
+ "DiskType" : fields .Str (required = True , load_from = "DiskType" ),
199
+ "Drive" : fields .Str (required = False , load_from = "Drive" ),
200
+ "Encrypted" : fields .Str (required = False , load_from = "Encrypted" ),
201
+ "IsBoot" : fields .Str (required = True , load_from = "IsBoot" ),
202
+ "Name" : fields .Str (required = False , load_from = "Name" ),
203
+ "Size" : fields .Int (required = False , load_from = "Size" ),
204
+ "Type" : fields .Str (required = False , load_from = "Type" ),
205
+ }
206
+
207
+
191
208
class SpotAttributeSchema (schema .ResponseSchema ):
192
209
"""SpotAttribute - 竞价实例属性"""
193
210
@@ -196,6 +213,15 @@ class SpotAttributeSchema(schema.ResponseSchema):
196
213
}
197
214
198
215
216
+ class UHostKeyPairSchema (schema .ResponseSchema ):
217
+ """UHostKeyPair - 主机密钥信息"""
218
+
219
+ fields = {
220
+ "KeyPairId" : fields .Str (required = False , load_from = "KeyPairId" ),
221
+ "KeyPairState" : fields .Str (required = False , load_from = "KeyPairState" ),
222
+ }
223
+
224
+
199
225
class UDSetUDHostAttributeSchema (schema .ResponseSchema ):
200
226
"""UDSetUDHostAttribute - 私有专区对应的宿主机属性"""
201
227
@@ -226,31 +252,6 @@ class UHostIPSetSchema(schema.ResponseSchema):
226
252
}
227
253
228
254
229
- class UHostDiskSetSchema (schema .ResponseSchema ):
230
- """UHostDiskSet - DescribeUHostInstance"""
231
-
232
- fields = {
233
- "BackupType" : fields .Str (required = False , load_from = "BackupType" ),
234
- "DiskId" : fields .Str (required = False , load_from = "DiskId" ),
235
- "DiskType" : fields .Str (required = True , load_from = "DiskType" ),
236
- "Drive" : fields .Str (required = False , load_from = "Drive" ),
237
- "Encrypted" : fields .Str (required = False , load_from = "Encrypted" ),
238
- "IsBoot" : fields .Str (required = True , load_from = "IsBoot" ),
239
- "Name" : fields .Str (required = False , load_from = "Name" ),
240
- "Size" : fields .Int (required = False , load_from = "Size" ),
241
- "Type" : fields .Str (required = False , load_from = "Type" ),
242
- }
243
-
244
-
245
- class UHostKeyPairSchema (schema .ResponseSchema ):
246
- """UHostKeyPair - 主机密钥信息"""
247
-
248
- fields = {
249
- "KeyPairId" : fields .Str (required = False , load_from = "KeyPairId" ),
250
- "KeyPairState" : fields .Str (required = False , load_from = "KeyPairState" ),
251
- }
252
-
253
-
254
255
class UHostInstanceSetSchema (schema .ResponseSchema ):
255
256
"""UHostInstanceSet - DescribeUHostInstance"""
256
257
0 commit comments