huaweicloudsdkas 3.1.72__py2.py3-none-any.whl → 3.1.74__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of huaweicloudsdkas might be problematic. Click here for more details.
- huaweicloudsdkas/v1/model/disk_info.py +64 -6
- huaweicloudsdkas/v1/model/disk_result.py +61 -3
- {huaweicloudsdkas-3.1.72.dist-info → huaweicloudsdkas-3.1.74.dist-info}/METADATA +2 -2
- {huaweicloudsdkas-3.1.72.dist-info → huaweicloudsdkas-3.1.74.dist-info}/RECORD +7 -7
- {huaweicloudsdkas-3.1.72.dist-info → huaweicloudsdkas-3.1.74.dist-info}/LICENSE +0 -0
- {huaweicloudsdkas-3.1.72.dist-info → huaweicloudsdkas-3.1.74.dist-info}/WHEEL +0 -0
- {huaweicloudsdkas-3.1.72.dist-info → huaweicloudsdkas-3.1.74.dist-info}/top_level.txt +0 -0
|
@@ -23,7 +23,9 @@ class DiskInfo:
|
|
|
23
23
|
'dedicated_storage_id': 'str',
|
|
24
24
|
'data_disk_image_id': 'str',
|
|
25
25
|
'snapshot_id': 'str',
|
|
26
|
-
'metadata': 'MetaData'
|
|
26
|
+
'metadata': 'MetaData',
|
|
27
|
+
'iops': 'int',
|
|
28
|
+
'throughput': 'int'
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
attribute_map = {
|
|
@@ -33,17 +35,19 @@ class DiskInfo:
|
|
|
33
35
|
'dedicated_storage_id': 'dedicated_storage_id',
|
|
34
36
|
'data_disk_image_id': 'data_disk_image_id',
|
|
35
37
|
'snapshot_id': 'snapshot_id',
|
|
36
|
-
'metadata': 'metadata'
|
|
38
|
+
'metadata': 'metadata',
|
|
39
|
+
'iops': 'iops',
|
|
40
|
+
'throughput': 'throughput'
|
|
37
41
|
}
|
|
38
42
|
|
|
39
|
-
def __init__(self, size=None, volume_type=None, disk_type=None, dedicated_storage_id=None, data_disk_image_id=None, snapshot_id=None, metadata=None):
|
|
43
|
+
def __init__(self, size=None, volume_type=None, disk_type=None, dedicated_storage_id=None, data_disk_image_id=None, snapshot_id=None, metadata=None, iops=None, throughput=None):
|
|
40
44
|
"""DiskInfo
|
|
41
45
|
|
|
42
46
|
The model defined in huaweicloud sdk
|
|
43
47
|
|
|
44
48
|
:param size: 磁盘大小,容量单位为GB。系统盘输入大小范围为1~1024,且不小于镜像中系统盘的最小(min_disk属性)值。数据盘输入大小范围为10~32768。
|
|
45
49
|
:type size: int
|
|
46
|
-
:param volume_type: 云服务器系统盘对应的磁盘类型,需要与系统所提供的磁盘类型相匹配。SATA:普通IO磁盘类型。SAS:高IO磁盘类型。SSD:超高IO磁盘类型。GPSSD:通用型SSD磁盘类型。co-p1:高IO (性能优化Ⅰ型)uh-l1:超高IO (时延优化)
|
|
50
|
+
:param volume_type: 云服务器系统盘对应的磁盘类型,需要与系统所提供的磁盘类型相匹配。SATA:普通IO磁盘类型。SAS:高IO磁盘类型。SSD:超高IO磁盘类型。GPSSD:通用型SSD磁盘类型。co-p1:高IO (性能优化Ⅰ型)uh-l1:超高IO (时延优化)GPSSD2: 通用型SSD V2云硬盘ESSD2: 极速型SSD V2云硬盘当指定的云硬盘类型在avaliability_zone内不存在时,则创建云硬盘失败。说明:对于HANA云服务器、HL1型云服务器、HL2型云服务器,需使用co-p1和uh-l1两种磁盘类型。对于其他类型的云服务器,不能使用co-p1和uh-l1两种磁盘类型。了解不同磁盘类型的详细信息,请参见[磁盘类型及性能介绍](https://support.huaweicloud.com/productdesc-evs/zh-cn_topic_0044524691.html)。
|
|
47
51
|
:type volume_type: str
|
|
48
52
|
:param disk_type: 系统盘还是数据盘,DATA表示为数据盘,SYS表示为系统盘。 说明: 系统盘不支持加密。
|
|
49
53
|
:type disk_type: str
|
|
@@ -55,6 +59,10 @@ class DiskInfo:
|
|
|
55
59
|
:type snapshot_id: str
|
|
56
60
|
:param metadata:
|
|
57
61
|
:type metadata: :class:`huaweicloudsdkas.v1.MetaData`
|
|
62
|
+
:param iops: 为云硬盘配置iops。当“volume_type”设置为GPSSD2、ESSD2类型的云硬盘时,该参数必填,其他类型无需设置。
|
|
63
|
+
:type iops: int
|
|
64
|
+
:param throughput: 为云硬盘配置吞吐量,单位是MiB/s。当“volume_type”设置为GPSSD2类型的云硬盘时必填,其他类型不能设置。
|
|
65
|
+
:type throughput: int
|
|
58
66
|
"""
|
|
59
67
|
|
|
60
68
|
|
|
@@ -66,6 +74,8 @@ class DiskInfo:
|
|
|
66
74
|
self._data_disk_image_id = None
|
|
67
75
|
self._snapshot_id = None
|
|
68
76
|
self._metadata = None
|
|
77
|
+
self._iops = None
|
|
78
|
+
self._throughput = None
|
|
69
79
|
self.discriminator = None
|
|
70
80
|
|
|
71
81
|
self.size = size
|
|
@@ -79,6 +89,10 @@ class DiskInfo:
|
|
|
79
89
|
self.snapshot_id = snapshot_id
|
|
80
90
|
if metadata is not None:
|
|
81
91
|
self.metadata = metadata
|
|
92
|
+
if iops is not None:
|
|
93
|
+
self.iops = iops
|
|
94
|
+
if throughput is not None:
|
|
95
|
+
self.throughput = throughput
|
|
82
96
|
|
|
83
97
|
@property
|
|
84
98
|
def size(self):
|
|
@@ -106,7 +120,7 @@ class DiskInfo:
|
|
|
106
120
|
def volume_type(self):
|
|
107
121
|
"""Gets the volume_type of this DiskInfo.
|
|
108
122
|
|
|
109
|
-
云服务器系统盘对应的磁盘类型,需要与系统所提供的磁盘类型相匹配。SATA:普通IO磁盘类型。SAS:高IO磁盘类型。SSD:超高IO磁盘类型。GPSSD:通用型SSD磁盘类型。co-p1:高IO (性能优化Ⅰ型)uh-l1:超高IO (时延优化)
|
|
123
|
+
云服务器系统盘对应的磁盘类型,需要与系统所提供的磁盘类型相匹配。SATA:普通IO磁盘类型。SAS:高IO磁盘类型。SSD:超高IO磁盘类型。GPSSD:通用型SSD磁盘类型。co-p1:高IO (性能优化Ⅰ型)uh-l1:超高IO (时延优化)GPSSD2: 通用型SSD V2云硬盘ESSD2: 极速型SSD V2云硬盘当指定的云硬盘类型在avaliability_zone内不存在时,则创建云硬盘失败。说明:对于HANA云服务器、HL1型云服务器、HL2型云服务器,需使用co-p1和uh-l1两种磁盘类型。对于其他类型的云服务器,不能使用co-p1和uh-l1两种磁盘类型。了解不同磁盘类型的详细信息,请参见[磁盘类型及性能介绍](https://support.huaweicloud.com/productdesc-evs/zh-cn_topic_0044524691.html)。
|
|
110
124
|
|
|
111
125
|
:return: The volume_type of this DiskInfo.
|
|
112
126
|
:rtype: str
|
|
@@ -117,7 +131,7 @@ class DiskInfo:
|
|
|
117
131
|
def volume_type(self, volume_type):
|
|
118
132
|
"""Sets the volume_type of this DiskInfo.
|
|
119
133
|
|
|
120
|
-
云服务器系统盘对应的磁盘类型,需要与系统所提供的磁盘类型相匹配。SATA:普通IO磁盘类型。SAS:高IO磁盘类型。SSD:超高IO磁盘类型。GPSSD:通用型SSD磁盘类型。co-p1:高IO (性能优化Ⅰ型)uh-l1:超高IO (时延优化)
|
|
134
|
+
云服务器系统盘对应的磁盘类型,需要与系统所提供的磁盘类型相匹配。SATA:普通IO磁盘类型。SAS:高IO磁盘类型。SSD:超高IO磁盘类型。GPSSD:通用型SSD磁盘类型。co-p1:高IO (性能优化Ⅰ型)uh-l1:超高IO (时延优化)GPSSD2: 通用型SSD V2云硬盘ESSD2: 极速型SSD V2云硬盘当指定的云硬盘类型在avaliability_zone内不存在时,则创建云硬盘失败。说明:对于HANA云服务器、HL1型云服务器、HL2型云服务器,需使用co-p1和uh-l1两种磁盘类型。对于其他类型的云服务器,不能使用co-p1和uh-l1两种磁盘类型。了解不同磁盘类型的详细信息,请参见[磁盘类型及性能介绍](https://support.huaweicloud.com/productdesc-evs/zh-cn_topic_0044524691.html)。
|
|
121
135
|
|
|
122
136
|
:param volume_type: The volume_type of this DiskInfo.
|
|
123
137
|
:type volume_type: str
|
|
@@ -230,6 +244,50 @@ class DiskInfo:
|
|
|
230
244
|
"""
|
|
231
245
|
self._metadata = metadata
|
|
232
246
|
|
|
247
|
+
@property
|
|
248
|
+
def iops(self):
|
|
249
|
+
"""Gets the iops of this DiskInfo.
|
|
250
|
+
|
|
251
|
+
为云硬盘配置iops。当“volume_type”设置为GPSSD2、ESSD2类型的云硬盘时,该参数必填,其他类型无需设置。
|
|
252
|
+
|
|
253
|
+
:return: The iops of this DiskInfo.
|
|
254
|
+
:rtype: int
|
|
255
|
+
"""
|
|
256
|
+
return self._iops
|
|
257
|
+
|
|
258
|
+
@iops.setter
|
|
259
|
+
def iops(self, iops):
|
|
260
|
+
"""Sets the iops of this DiskInfo.
|
|
261
|
+
|
|
262
|
+
为云硬盘配置iops。当“volume_type”设置为GPSSD2、ESSD2类型的云硬盘时,该参数必填,其他类型无需设置。
|
|
263
|
+
|
|
264
|
+
:param iops: The iops of this DiskInfo.
|
|
265
|
+
:type iops: int
|
|
266
|
+
"""
|
|
267
|
+
self._iops = iops
|
|
268
|
+
|
|
269
|
+
@property
|
|
270
|
+
def throughput(self):
|
|
271
|
+
"""Gets the throughput of this DiskInfo.
|
|
272
|
+
|
|
273
|
+
为云硬盘配置吞吐量,单位是MiB/s。当“volume_type”设置为GPSSD2类型的云硬盘时必填,其他类型不能设置。
|
|
274
|
+
|
|
275
|
+
:return: The throughput of this DiskInfo.
|
|
276
|
+
:rtype: int
|
|
277
|
+
"""
|
|
278
|
+
return self._throughput
|
|
279
|
+
|
|
280
|
+
@throughput.setter
|
|
281
|
+
def throughput(self, throughput):
|
|
282
|
+
"""Sets the throughput of this DiskInfo.
|
|
283
|
+
|
|
284
|
+
为云硬盘配置吞吐量,单位是MiB/s。当“volume_type”设置为GPSSD2类型的云硬盘时必填,其他类型不能设置。
|
|
285
|
+
|
|
286
|
+
:param throughput: The throughput of this DiskInfo.
|
|
287
|
+
:type throughput: int
|
|
288
|
+
"""
|
|
289
|
+
self._throughput = throughput
|
|
290
|
+
|
|
233
291
|
def to_dict(self):
|
|
234
292
|
"""Returns the model properties as a dict"""
|
|
235
293
|
result = {}
|
|
@@ -23,7 +23,9 @@ class DiskResult:
|
|
|
23
23
|
'dedicated_storage_id': 'str',
|
|
24
24
|
'data_disk_image_id': 'str',
|
|
25
25
|
'snapshot_id': 'str',
|
|
26
|
-
'metadata': 'MetaData'
|
|
26
|
+
'metadata': 'MetaData',
|
|
27
|
+
'iops': 'int',
|
|
28
|
+
'throughput': 'int'
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
attribute_map = {
|
|
@@ -33,10 +35,12 @@ class DiskResult:
|
|
|
33
35
|
'dedicated_storage_id': 'dedicated_storage_id',
|
|
34
36
|
'data_disk_image_id': 'data_disk_image_id',
|
|
35
37
|
'snapshot_id': 'snapshot_id',
|
|
36
|
-
'metadata': 'metadata'
|
|
38
|
+
'metadata': 'metadata',
|
|
39
|
+
'iops': 'iops',
|
|
40
|
+
'throughput': 'throughput'
|
|
37
41
|
}
|
|
38
42
|
|
|
39
|
-
def __init__(self, size=None, volume_type=None, disk_type=None, dedicated_storage_id=None, data_disk_image_id=None, snapshot_id=None, metadata=None):
|
|
43
|
+
def __init__(self, size=None, volume_type=None, disk_type=None, dedicated_storage_id=None, data_disk_image_id=None, snapshot_id=None, metadata=None, iops=None, throughput=None):
|
|
40
44
|
"""DiskResult
|
|
41
45
|
|
|
42
46
|
The model defined in huaweicloud sdk
|
|
@@ -55,6 +59,10 @@ class DiskResult:
|
|
|
55
59
|
:type snapshot_id: str
|
|
56
60
|
:param metadata:
|
|
57
61
|
:type metadata: :class:`huaweicloudsdkas.v1.MetaData`
|
|
62
|
+
:param iops: 云硬盘iops
|
|
63
|
+
:type iops: int
|
|
64
|
+
:param throughput: 云硬盘吞吐量
|
|
65
|
+
:type throughput: int
|
|
58
66
|
"""
|
|
59
67
|
|
|
60
68
|
|
|
@@ -66,6 +74,8 @@ class DiskResult:
|
|
|
66
74
|
self._data_disk_image_id = None
|
|
67
75
|
self._snapshot_id = None
|
|
68
76
|
self._metadata = None
|
|
77
|
+
self._iops = None
|
|
78
|
+
self._throughput = None
|
|
69
79
|
self.discriminator = None
|
|
70
80
|
|
|
71
81
|
if size is not None:
|
|
@@ -82,6 +92,10 @@ class DiskResult:
|
|
|
82
92
|
self.snapshot_id = snapshot_id
|
|
83
93
|
if metadata is not None:
|
|
84
94
|
self.metadata = metadata
|
|
95
|
+
if iops is not None:
|
|
96
|
+
self.iops = iops
|
|
97
|
+
if throughput is not None:
|
|
98
|
+
self.throughput = throughput
|
|
85
99
|
|
|
86
100
|
@property
|
|
87
101
|
def size(self):
|
|
@@ -233,6 +247,50 @@ class DiskResult:
|
|
|
233
247
|
"""
|
|
234
248
|
self._metadata = metadata
|
|
235
249
|
|
|
250
|
+
@property
|
|
251
|
+
def iops(self):
|
|
252
|
+
"""Gets the iops of this DiskResult.
|
|
253
|
+
|
|
254
|
+
云硬盘iops
|
|
255
|
+
|
|
256
|
+
:return: The iops of this DiskResult.
|
|
257
|
+
:rtype: int
|
|
258
|
+
"""
|
|
259
|
+
return self._iops
|
|
260
|
+
|
|
261
|
+
@iops.setter
|
|
262
|
+
def iops(self, iops):
|
|
263
|
+
"""Sets the iops of this DiskResult.
|
|
264
|
+
|
|
265
|
+
云硬盘iops
|
|
266
|
+
|
|
267
|
+
:param iops: The iops of this DiskResult.
|
|
268
|
+
:type iops: int
|
|
269
|
+
"""
|
|
270
|
+
self._iops = iops
|
|
271
|
+
|
|
272
|
+
@property
|
|
273
|
+
def throughput(self):
|
|
274
|
+
"""Gets the throughput of this DiskResult.
|
|
275
|
+
|
|
276
|
+
云硬盘吞吐量
|
|
277
|
+
|
|
278
|
+
:return: The throughput of this DiskResult.
|
|
279
|
+
:rtype: int
|
|
280
|
+
"""
|
|
281
|
+
return self._throughput
|
|
282
|
+
|
|
283
|
+
@throughput.setter
|
|
284
|
+
def throughput(self, throughput):
|
|
285
|
+
"""Sets the throughput of this DiskResult.
|
|
286
|
+
|
|
287
|
+
云硬盘吞吐量
|
|
288
|
+
|
|
289
|
+
:param throughput: The throughput of this DiskResult.
|
|
290
|
+
:type throughput: int
|
|
291
|
+
"""
|
|
292
|
+
self._throughput = throughput
|
|
293
|
+
|
|
236
294
|
def to_dict(self):
|
|
237
295
|
"""Returns the model properties as a dict"""
|
|
238
296
|
result = {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: huaweicloudsdkas
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.74
|
|
4
4
|
Summary: AS
|
|
5
5
|
Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
|
|
6
6
|
Author: HuaweiCloud SDK
|
|
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
|
|
|
22
22
|
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
|
|
23
23
|
Description-Content-Type: text/markdown
|
|
24
24
|
License-File: LICENSE
|
|
25
|
-
Requires-Dist: huaweicloudsdkcore >=3.1.
|
|
25
|
+
Requires-Dist: huaweicloudsdkcore >=3.1.74
|
|
26
26
|
|
|
27
27
|
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|
|
@@ -82,8 +82,8 @@ huaweicloudsdkas/v1/model/delete_scaling_policy_response.py,sha256=pt9AZf-jJHics
|
|
|
82
82
|
huaweicloudsdkas/v1/model/delete_scaling_tag_info_request.py,sha256=MEbWUh6GYPqPo-HbEI_8wFEEZ25uM0ltRZTtdtwCqzc,5096
|
|
83
83
|
huaweicloudsdkas/v1/model/delete_scaling_tag_info_response.py,sha256=M-RMxv5Ndc2w_pvIGk33kxEjAQkZtpMOEzJsv1iNCCc,2463
|
|
84
84
|
huaweicloudsdkas/v1/model/delete_tags_option.py,sha256=ruzJaFUWTtfu25f8Z7_UWcccXudfF0h23k_p8Akx2lU,4392
|
|
85
|
-
huaweicloudsdkas/v1/model/disk_info.py,sha256=
|
|
86
|
-
huaweicloudsdkas/v1/model/disk_result.py,sha256=
|
|
85
|
+
huaweicloudsdkas/v1/model/disk_info.py,sha256=OWLwR7ENmh8BWozpQfpJCXVqbQjI6E8j1I8KBtTVz0M,15447
|
|
86
|
+
huaweicloudsdkas/v1/model/disk_result.py,sha256=ibB9EOyhI9etu_pm-k2Zp3AdZZH5XKs_v3Ffqg4NCzg,9846
|
|
87
87
|
huaweicloudsdkas/v1/model/eip_info.py,sha256=Uv091hcC_tji9dXrfFPQuV2Wv2pyGd7ctEBQYJDWsow,4382
|
|
88
88
|
huaweicloudsdkas/v1/model/eip_meta_data.py,sha256=Wk-OSVvJeJKXpXa0F91EBi9nACUYsZQq-rC2bI63Ulc,5699
|
|
89
89
|
huaweicloudsdkas/v1/model/eip_result.py,sha256=qyfpLYk7GVrZ2RtwCHsp3nbkpf20UcI7qLBiq69KTGc,3817
|
|
@@ -220,8 +220,8 @@ huaweicloudsdkas/v1/model/version_info.py,sha256=ZoSCNFKzi6pIGXRbAvB6mIpSgOnUZpj
|
|
|
220
220
|
huaweicloudsdkas/v1/model/vm_meta_data.py,sha256=GU4Te8qWXF1CclUyLa0Ob5PZ-fT5p4OebODE8sDVZ2c,4673
|
|
221
221
|
huaweicloudsdkas/v1/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
222
222
|
huaweicloudsdkas/v1/region/as_region.py,sha256=D0en5qtqcAS8Q64Ya682jnpXap-VBg3f_nvIZfU38UY,3652
|
|
223
|
-
huaweicloudsdkas-3.1.
|
|
224
|
-
huaweicloudsdkas-3.1.
|
|
225
|
-
huaweicloudsdkas-3.1.
|
|
226
|
-
huaweicloudsdkas-3.1.
|
|
227
|
-
huaweicloudsdkas-3.1.
|
|
223
|
+
huaweicloudsdkas-3.1.74.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
|
|
224
|
+
huaweicloudsdkas-3.1.74.dist-info/METADATA,sha256=CWl6iZdggOhy5pMZXn3-IbMYSeKKCBTvosct4FVs_nc,1131
|
|
225
|
+
huaweicloudsdkas-3.1.74.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
|
|
226
|
+
huaweicloudsdkas-3.1.74.dist-info/top_level.txt,sha256=dgGlzxcKTIbmcaoJpGjIcPn2cUQUfCO_hGpSYSc0rZQ,17
|
|
227
|
+
huaweicloudsdkas-3.1.74.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|