huaweicloudsdkdrs 3.1.77__py2.py3-none-any.whl → 3.1.79__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.
- huaweicloudsdkdrs/v3/region/drs_region.py +4 -8
- huaweicloudsdkdrs/v5/region/drs_region.py +4 -8
- {huaweicloudsdkdrs-3.1.77.dist-info → huaweicloudsdkdrs-3.1.79.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.77.dist-info → huaweicloudsdkdrs-3.1.79.dist-info}/RECORD +7 -7
- {huaweicloudsdkdrs-3.1.77.dist-info → huaweicloudsdkdrs-3.1.79.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.77.dist-info → huaweicloudsdkdrs-3.1.79.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdrs-3.1.77.dist-info → huaweicloudsdkdrs-3.1.79.dist-info}/top_level.txt +0 -0
@@ -1,8 +1,5 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
|
-
import types
|
4
|
-
import six
|
5
|
-
|
6
3
|
from huaweicloudsdkcore.region.region import Region
|
7
4
|
from huaweicloudsdkcore.region.provider import RegionProviderChain
|
8
5
|
|
@@ -79,9 +76,9 @@ class DrsRegion:
|
|
79
76
|
@classmethod
|
80
77
|
def value_of(cls, region_id, static_fields=None):
|
81
78
|
if not region_id:
|
82
|
-
raise KeyError("Unexpected empty parameter: region_id
|
79
|
+
raise KeyError("Unexpected empty parameter: region_id")
|
83
80
|
|
84
|
-
fields = static_fields
|
81
|
+
fields = static_fields or cls.static_fields
|
85
82
|
|
86
83
|
region = cls._PROVIDER.get_region(region_id)
|
87
84
|
if region:
|
@@ -90,6 +87,5 @@ class DrsRegion:
|
|
90
87
|
if region_id in fields:
|
91
88
|
return fields.get(region_id)
|
92
89
|
|
93
|
-
raise KeyError("
|
94
|
-
|
95
|
-
|
90
|
+
raise KeyError("region_id '%s' is not in the following supported regions of service 'Drs': [%s]" % (
|
91
|
+
region_id, ", ".join(sorted(fields.keys()))))
|
@@ -1,8 +1,5 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
|
-
import types
|
4
|
-
import six
|
5
|
-
|
6
3
|
from huaweicloudsdkcore.region.region import Region
|
7
4
|
from huaweicloudsdkcore.region.provider import RegionProviderChain
|
8
5
|
|
@@ -79,9 +76,9 @@ class DrsRegion:
|
|
79
76
|
@classmethod
|
80
77
|
def value_of(cls, region_id, static_fields=None):
|
81
78
|
if not region_id:
|
82
|
-
raise KeyError("Unexpected empty parameter: region_id
|
79
|
+
raise KeyError("Unexpected empty parameter: region_id")
|
83
80
|
|
84
|
-
fields = static_fields
|
81
|
+
fields = static_fields or cls.static_fields
|
85
82
|
|
86
83
|
region = cls._PROVIDER.get_region(region_id)
|
87
84
|
if region:
|
@@ -90,6 +87,5 @@ class DrsRegion:
|
|
90
87
|
if region_id in fields:
|
91
88
|
return fields.get(region_id)
|
92
89
|
|
93
|
-
raise KeyError("
|
94
|
-
|
95
|
-
|
90
|
+
raise KeyError("region_id '%s' is not in the following supported regions of service 'Drs': [%s]" % (
|
91
|
+
region_id, ", ".join(sorted(fields.keys()))))
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: huaweicloudsdkdrs
|
3
|
-
Version: 3.1.
|
3
|
+
Version: 3.1.79
|
4
4
|
Summary: DRS
|
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.79
|
26
26
|
|
27
27
|
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|
@@ -212,7 +212,7 @@ huaweicloudsdkdrs/v3/model/update_user_req.py,sha256=1RsRp_xR3tUfpS0FsaHg9YOeUUT
|
|
212
212
|
huaweicloudsdkdrs/v3/model/user_account_vo.py,sha256=dDMC9DmWVBqziBYvO8NIS5JECPJ0JSAv_FeBSgQMy9g,8814
|
213
213
|
huaweicloudsdkdrs/v3/model/user_role_vo.py,sha256=DE95DIyHWAj3bK6vKIqvF6p092TbAn85SVD15SwLtuI,6684
|
214
214
|
huaweicloudsdkdrs/v3/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
215
|
-
huaweicloudsdkdrs/v3/region/drs_region.py,sha256=
|
215
|
+
huaweicloudsdkdrs/v3/region/drs_region.py,sha256=utPbrhMvrU_9oDLPrWS451L3Lpx839ywVHZGfrscfkU,3860
|
216
216
|
huaweicloudsdkdrs/v5/__init__.py,sha256=kzQTB0NKnrju4LmbNkenAs_u8HJsTYb3KckKD4r9EfU,23067
|
217
217
|
huaweicloudsdkdrs/v5/drs_async_client.py,sha256=5OQJhOzY32nxlAV9Akn6XFBwQwn78Q12_FjxTb-UrMA,170773
|
218
218
|
huaweicloudsdkdrs/v5/drs_client.py,sha256=hHMBk527KL8bWSLUs_d_qc2CpJiwnhRl8TP4Bet7jOE,170804
|
@@ -486,9 +486,9 @@ huaweicloudsdkdrs/v5/model/user_migration_role.py,sha256=GzzRrl10tA_kD3M1g1IDToM
|
|
486
486
|
huaweicloudsdkdrs/v5/model/validate_job_name_request.py,sha256=74qQd020c2h8BdFUsLCjodOMvoYkEQe9kYemwaihetw,3963
|
487
487
|
huaweicloudsdkdrs/v5/model/validate_job_name_response.py,sha256=Yehy1O1CeximGx5YvOn7luyGGLz__HTT-tWpZTV0BUE,4895
|
488
488
|
huaweicloudsdkdrs/v5/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
489
|
-
huaweicloudsdkdrs/v5/region/drs_region.py,sha256=
|
490
|
-
huaweicloudsdkdrs-3.1.
|
491
|
-
huaweicloudsdkdrs-3.1.
|
492
|
-
huaweicloudsdkdrs-3.1.
|
493
|
-
huaweicloudsdkdrs-3.1.
|
494
|
-
huaweicloudsdkdrs-3.1.
|
489
|
+
huaweicloudsdkdrs/v5/region/drs_region.py,sha256=utPbrhMvrU_9oDLPrWS451L3Lpx839ywVHZGfrscfkU,3860
|
490
|
+
huaweicloudsdkdrs-3.1.79.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
|
491
|
+
huaweicloudsdkdrs-3.1.79.dist-info/METADATA,sha256=757grTv4kzYV4eb9ImVl3wB_Zf_4bq-1JSs5deMINDw,1134
|
492
|
+
huaweicloudsdkdrs-3.1.79.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
|
493
|
+
huaweicloudsdkdrs-3.1.79.dist-info/top_level.txt,sha256=FJmOnPaGx7WoM_NJdeECns2-V--JJZyO0PVtyQAgpYg,18
|
494
|
+
huaweicloudsdkdrs-3.1.79.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|