huaweicloudsdksdrs 3.1.77__py2.py3-none-any.whl → 3.1.79__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
 
@@ -37,9 +34,9 @@ class SdrsRegion:
37
34
  @classmethod
38
35
  def value_of(cls, region_id, static_fields=None):
39
36
  if not region_id:
40
- raise KeyError("Unexpected empty parameter: region_id.")
37
+ raise KeyError("Unexpected empty parameter: region_id")
41
38
 
42
- fields = static_fields if static_fields else cls.static_fields
39
+ fields = static_fields or cls.static_fields
43
40
 
44
41
  region = cls._PROVIDER.get_region(region_id)
45
42
  if region:
@@ -48,6 +45,5 @@ class SdrsRegion:
48
45
  if region_id in fields:
49
46
  return fields.get(region_id)
50
47
 
51
- raise KeyError("Unexpected region_id: " + region_id)
52
-
53
-
48
+ raise KeyError("region_id '%s' is not in the following supported regions of service 'Sdrs': [%s]" % (
49
+ region_id, ", ".join(sorted(fields.keys()))))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huaweicloudsdksdrs
3
- Version: 3.1.77
3
+ Version: 3.1.79
4
4
  Summary: SDRS
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.77
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).
@@ -169,9 +169,9 @@ huaweicloudsdksdrs/v1/model/update_replication_name_request_body.py,sha256=0HtWz
169
169
  huaweicloudsdksdrs/v1/model/update_replication_name_request_params.py,sha256=BXo8ealfYf5ktUTbiP5JjcaPQnuca8rueTemLozLnUA,3621
170
170
  huaweicloudsdksdrs/v1/model/update_replication_name_response.py,sha256=Lq5xwCSe2LL9IRM8QNeUFJZu6QcqNUXbYsWCjt3RmU0,3444
171
171
  huaweicloudsdksdrs/v1/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
172
- huaweicloudsdksdrs/v1/region/sdrs_region.py,sha256=AvYXStZ76xgVXRjogRVrwSVC0vpMdjXArYDOGkt2MyU,1781
173
- huaweicloudsdksdrs-3.1.77.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
174
- huaweicloudsdksdrs-3.1.77.dist-info/METADATA,sha256=uIjEgNi1uusam1Cpt_SRmes0NT8TapOmMVb6rqsU8V8,1137
175
- huaweicloudsdksdrs-3.1.77.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
176
- huaweicloudsdksdrs-3.1.77.dist-info/top_level.txt,sha256=zHaf4pLdVAAe97Frmm3rFxz77bRqqET_gnLDQ1FR2jE,19
177
- huaweicloudsdksdrs-3.1.77.dist-info/RECORD,,
172
+ huaweicloudsdksdrs/v1/region/sdrs_region.py,sha256=zzJgDfHLAhmoG4FNgcVtDyuzdhuMTA8lCV8YMYsFzys,1841
173
+ huaweicloudsdksdrs-3.1.79.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
174
+ huaweicloudsdksdrs-3.1.79.dist-info/METADATA,sha256=TnYfGBaJ1yq-DoVJP_9qU6W3J3dU6JckTsvJl6raR60,1137
175
+ huaweicloudsdksdrs-3.1.79.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
176
+ huaweicloudsdksdrs-3.1.79.dist-info/top_level.txt,sha256=zHaf4pLdVAAe97Frmm3rFxz77bRqqET_gnLDQ1FR2jE,19
177
+ huaweicloudsdksdrs-3.1.79.dist-info/RECORD,,