huaweicloudsdkdns 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
 
@@ -70,9 +67,9 @@ class DnsRegion:
70
67
  @classmethod
71
68
  def value_of(cls, region_id, static_fields=None):
72
69
  if not region_id:
73
- raise KeyError("Unexpected empty parameter: region_id.")
70
+ raise KeyError("Unexpected empty parameter: region_id")
74
71
 
75
- fields = static_fields if static_fields else cls.static_fields
72
+ fields = static_fields or cls.static_fields
76
73
 
77
74
  region = cls._PROVIDER.get_region(region_id)
78
75
  if region:
@@ -81,6 +78,5 @@ class DnsRegion:
81
78
  if region_id in fields:
82
79
  return fields.get(region_id)
83
80
 
84
- raise KeyError("Unexpected region_id: " + region_id)
85
-
86
-
81
+ raise KeyError("region_id '%s' is not in the following supported regions of service 'Dns': [%s]" % (
82
+ region_id, ", ".join(sorted(fields.keys()))))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huaweicloudsdkdns
3
- Version: 3.1.77
3
+ Version: 3.1.78
4
4
  Summary: DNS
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).
@@ -174,9 +174,9 @@ huaweicloudsdkdns/v2/model/update_record_sets_response.py,sha256=VSgpR_1KJ4UCR-i
174
174
  huaweicloudsdkdns/v2/model/values_item.py,sha256=0AXLTxTQgrI2oA5ROO_uWgzBU90u3y-b4QwEeWmBHTg,3170
175
175
  huaweicloudsdkdns/v2/model/version_item.py,sha256=Qe8ZF1oE8--TxtkJ9qScxZcSJBMQjNjBRxzVL-yQOSY,7653
176
176
  huaweicloudsdkdns/v2/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
177
- huaweicloudsdkdns/v2/region/dns_region.py,sha256=HGUePG6dcvKHzDbX74gTHuID8FqyGWHhjfzJSM2z3cQ,3382
178
- huaweicloudsdkdns-3.1.77.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
179
- huaweicloudsdkdns-3.1.77.dist-info/METADATA,sha256=vYgcSpkvbUpr4CNJmko_wx9qD4PnF6o44OLSFYr3RiY,1134
180
- huaweicloudsdkdns-3.1.77.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
181
- huaweicloudsdkdns-3.1.77.dist-info/top_level.txt,sha256=L6Y0lsiaUnIBMbDONPwK10dyE0vMKUfYcxZcjjSmu2E,18
182
- huaweicloudsdkdns-3.1.77.dist-info/RECORD,,
177
+ huaweicloudsdkdns/v2/region/dns_region.py,sha256=PLUwxLHBgSpjFOD0BtqdPiZXfp018iAgLvnMeyr-lEI,3441
178
+ huaweicloudsdkdns-3.1.78.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
179
+ huaweicloudsdkdns-3.1.78.dist-info/METADATA,sha256=2BOAYbY81RuoiR0Lk_sYyjY1CpPN2YBYD5OWQWVvzu8,1134
180
+ huaweicloudsdkdns-3.1.78.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
181
+ huaweicloudsdkdns-3.1.78.dist-info/top_level.txt,sha256=L6Y0lsiaUnIBMbDONPwK10dyE0vMKUfYcxZcjjSmu2E,18
182
+ huaweicloudsdkdns-3.1.78.dist-info/RECORD,,