huaweicloudsdkgaussdbforopengauss 3.1.76__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
 
@@ -55,9 +52,9 @@ class GaussDBforopenGaussRegion:
55
52
  @classmethod
56
53
  def value_of(cls, region_id, static_fields=None):
57
54
  if not region_id:
58
- raise KeyError("Unexpected empty parameter: region_id.")
55
+ raise KeyError("Unexpected empty parameter: region_id")
59
56
 
60
- fields = static_fields if static_fields else cls.static_fields
57
+ fields = static_fields or cls.static_fields
61
58
 
62
59
  region = cls._PROVIDER.get_region(region_id)
63
60
  if region:
@@ -66,6 +63,5 @@ class GaussDBforopenGaussRegion:
66
63
  if region_id in fields:
67
64
  return fields.get(region_id)
68
65
 
69
- raise KeyError("Unexpected region_id: " + region_id)
70
-
71
-
66
+ raise KeyError("region_id '%s' is not in the following supported regions of service 'GaussDBforopenGauss': [%s]" % (
67
+ region_id, ", ".join(sorted(fields.keys()))))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huaweicloudsdkgaussdbforopengauss
3
- Version: 3.1.76
3
+ Version: 3.1.78
4
4
  Summary: GaussDBforopenGauss
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.76
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).
@@ -264,9 +264,9 @@ huaweicloudsdkgaussdbforopengauss/v3/model/validate_weak_password_request.py,sha
264
264
  huaweicloudsdkgaussdbforopengauss/v3/model/validate_weak_password_response.py,sha256=qKVJzFFMOH9gjDI4YC3cfXKwY2RAHHfzpsVfr3v0kQE,3715
265
265
  huaweicloudsdkgaussdbforopengauss/v3/model/weak_password_request_body.py,sha256=o6aHUH5vLvSBEf2BJZkKk4XCiwcJgVu7rHklOd476B0,3101
266
266
  huaweicloudsdkgaussdbforopengauss/v3/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
267
- huaweicloudsdkgaussdbforopengauss/v3/region/gaussdbforopengauss_region.py,sha256=EToWlTrCdlfwttqF9yIwIfBAP7rbo9mdZWygUnx8tFs,2896
268
- huaweicloudsdkgaussdbforopengauss-3.1.76.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
269
- huaweicloudsdkgaussdbforopengauss-3.1.76.dist-info/METADATA,sha256=W7XrYvVmAPhQtC_s5XLF1ByLsBkljhqJoN-n7uoGU1c,1182
270
- huaweicloudsdkgaussdbforopengauss-3.1.76.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
271
- huaweicloudsdkgaussdbforopengauss-3.1.76.dist-info/top_level.txt,sha256=Eu0Q0tFHFbnL_PjFOY4Uagc9Xd6tEIZWVieOKIvJ5-A,34
272
- huaweicloudsdkgaussdbforopengauss-3.1.76.dist-info/RECORD,,
267
+ huaweicloudsdkgaussdbforopengauss/v3/region/gaussdbforopengauss_region.py,sha256=12tDcVvpGUM3dRQG38MK4JaveqrmzOwxPrDpJ9AVC84,2971
268
+ huaweicloudsdkgaussdbforopengauss-3.1.78.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
269
+ huaweicloudsdkgaussdbforopengauss-3.1.78.dist-info/METADATA,sha256=eJqFybm2niNjZDBySCaffgdPmN56qP-m4QUUKikKI9g,1182
270
+ huaweicloudsdkgaussdbforopengauss-3.1.78.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
271
+ huaweicloudsdkgaussdbforopengauss-3.1.78.dist-info/top_level.txt,sha256=Eu0Q0tFHFbnL_PjFOY4Uagc9Xd6tEIZWVieOKIvJ5-A,34
272
+ huaweicloudsdkgaussdbforopengauss-3.1.78.dist-info/RECORD,,