huaweicloudsdkmas 3.1.77__py2.py3-none-any.whl → 3.1.78__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.
@@ -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
 
@@ -58,9 +55,9 @@ class MasRegion:
58
55
  @classmethod
59
56
  def value_of(cls, region_id, static_fields=None):
60
57
  if not region_id:
61
- raise KeyError("Unexpected empty parameter: region_id.")
58
+ raise KeyError("Unexpected empty parameter: region_id")
62
59
 
63
- fields = static_fields if static_fields else cls.static_fields
60
+ fields = static_fields or cls.static_fields
64
61
 
65
62
  region = cls._PROVIDER.get_region(region_id)
66
63
  if region:
@@ -69,6 +66,5 @@ class MasRegion:
69
66
  if region_id in fields:
70
67
  return fields.get(region_id)
71
68
 
72
- raise KeyError("Unexpected region_id: " + region_id)
73
-
74
-
69
+ raise KeyError("region_id '%s' is not in the following supported regions of service 'Mas': [%s]" % (
70
+ region_id, ", ".join(sorted(fields.keys()))))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huaweicloudsdkmas
3
- Version: 3.1.77
3
+ Version: 3.1.78
4
4
  Summary: MAS
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.78
26
26
 
27
27
  See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
@@ -11,9 +11,9 @@ huaweicloudsdkmas/v1/model/namespace_vo.py,sha256=WVXGz07ncFESRM5BR5YDFNZnaxzZxo
11
11
  huaweicloudsdkmas/v1/model/show_name_space_list_request.py,sha256=eKXYP10DxIPmSotc0XVF3NrsGjGA0OWyRbeLkmRxGP0,7266
12
12
  huaweicloudsdkmas/v1/model/show_name_space_list_response.py,sha256=P_UwNKq9W8N7bHAfaLeDJcnOY_qiN3IG9ZAkd4vqrdk,3232
13
13
  huaweicloudsdkmas/v1/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
- huaweicloudsdkmas/v1/region/mas_region.py,sha256=T2sNy8j38QS0vl9kNI4Xm1stiY-Bwc47FUMLUtQWuTg,2797
15
- huaweicloudsdkmas-3.1.77.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
16
- huaweicloudsdkmas-3.1.77.dist-info/METADATA,sha256=PWLMe7fS2qICJf1yJus4eFRFIhWesfBoEmPB6ck0Stc,1134
17
- huaweicloudsdkmas-3.1.77.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
18
- huaweicloudsdkmas-3.1.77.dist-info/top_level.txt,sha256=0BvGi5paLWlsiPWIcuD_qwunpeziF7ZiAywZRDFaTiY,18
19
- huaweicloudsdkmas-3.1.77.dist-info/RECORD,,
14
+ huaweicloudsdkmas/v1/region/mas_region.py,sha256=dlP-gh-8S1M558cCNHRXhKczCwBFJayHmKMq7KIRffY,2856
15
+ huaweicloudsdkmas-3.1.78.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
16
+ huaweicloudsdkmas-3.1.78.dist-info/METADATA,sha256=uQV_8b93okqsVxyQTSm7gYkOt3ZvF3DCkldXGIIkxtI,1134
17
+ huaweicloudsdkmas-3.1.78.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
18
+ huaweicloudsdkmas-3.1.78.dist-info/top_level.txt,sha256=0BvGi5paLWlsiPWIcuD_qwunpeziF7ZiAywZRDFaTiY,18
19
+ huaweicloudsdkmas-3.1.78.dist-info/RECORD,,