huaweicloudsdkcbr 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.
@@ -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
 
@@ -85,9 +82,9 @@ class CbrRegion:
85
82
  @classmethod
86
83
  def value_of(cls, region_id, static_fields=None):
87
84
  if not region_id:
88
- raise KeyError("Unexpected empty parameter: region_id.")
85
+ raise KeyError("Unexpected empty parameter: region_id")
89
86
 
90
- fields = static_fields if static_fields else cls.static_fields
87
+ fields = static_fields or cls.static_fields
91
88
 
92
89
  region = cls._PROVIDER.get_region(region_id)
93
90
  if region:
@@ -96,6 +93,5 @@ class CbrRegion:
96
93
  if region_id in fields:
97
94
  return fields.get(region_id)
98
95
 
99
- raise KeyError("Unexpected region_id: " + region_id)
100
-
101
-
96
+ raise KeyError("region_id '%s' is not in the following supported regions of service 'Cbr': [%s]" % (
97
+ region_id, ", ".join(sorted(fields.keys()))))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huaweicloudsdkcbr
3
- Version: 3.1.77
3
+ Version: 3.1.79
4
4
  Summary: CBR
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).
@@ -251,9 +251,9 @@ huaweicloudsdkcbr/v1/model/vault_tags_create_req.py,sha256=4iAM3dT_5PIZunk-TUhVH
251
251
  huaweicloudsdkcbr/v1/model/vault_update.py,sha256=1jgIWZyU3En9xYBbYjZyvSuMakGDTQ-9p-lvy4OV8lk,8305
252
252
  huaweicloudsdkcbr/v1/model/vault_update_req.py,sha256=16TbM9KJfcVqSWj6PIqExydBn_Uy2P0wmqcV44Uzz4E,3002
253
253
  huaweicloudsdkcbr/v1/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
254
- huaweicloudsdkcbr/v1/region/cbr_region.py,sha256=Op-y-rk5ye7ParzxV5D4sFVmlXeDDjb-C7kw1Bhcbjg,4061
255
- huaweicloudsdkcbr-3.1.77.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
256
- huaweicloudsdkcbr-3.1.77.dist-info/METADATA,sha256=wkFBr3vQ0dzZgm97DDBN2BiGHARAAsc7UoSycAcA0yU,1134
257
- huaweicloudsdkcbr-3.1.77.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
258
- huaweicloudsdkcbr-3.1.77.dist-info/top_level.txt,sha256=CpXxi0Z24SDOTA3ZE_lGTbpC87AzndcF4s7WiMxpY0w,18
259
- huaweicloudsdkcbr-3.1.77.dist-info/RECORD,,
254
+ huaweicloudsdkcbr/v1/region/cbr_region.py,sha256=8Tr7Qn_slDbmONDBEE2iX-IuPwTyFSiK4_SBBuX-ClI,4120
255
+ huaweicloudsdkcbr-3.1.79.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
256
+ huaweicloudsdkcbr-3.1.79.dist-info/METADATA,sha256=Ej_owRH_jYSOcfD76MFO4hTSdj3_lXvRfKEtw8ZwwjM,1134
257
+ huaweicloudsdkcbr-3.1.79.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
258
+ huaweicloudsdkcbr-3.1.79.dist-info/top_level.txt,sha256=CpXxi0Z24SDOTA3ZE_lGTbpC87AzndcF4s7WiMxpY0w,18
259
+ huaweicloudsdkcbr-3.1.79.dist-info/RECORD,,