huaweicloudsdkoms 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
 
@@ -67,9 +64,9 @@ class OmsRegion:
67
64
  @classmethod
68
65
  def value_of(cls, region_id, static_fields=None):
69
66
  if not region_id:
70
- raise KeyError("Unexpected empty parameter: region_id.")
67
+ raise KeyError("Unexpected empty parameter: region_id")
71
68
 
72
- fields = static_fields if static_fields else cls.static_fields
69
+ fields = static_fields or cls.static_fields
73
70
 
74
71
  region = cls._PROVIDER.get_region(region_id)
75
72
  if region:
@@ -78,6 +75,5 @@ class OmsRegion:
78
75
  if region_id in fields:
79
76
  return fields.get(region_id)
80
77
 
81
- raise KeyError("Unexpected region_id: " + region_id)
82
-
83
-
78
+ raise KeyError("region_id '%s' is not in the following supported regions of service 'Oms': [%s]" % (
79
+ region_id, ", ".join(sorted(fields.keys()))))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huaweicloudsdkoms
3
- Version: 3.1.77
3
+ Version: 3.1.79
4
4
  Summary: OMS
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).
@@ -113,9 +113,9 @@ huaweicloudsdkoms/v2/model/update_task_group_request.py,sha256=PhrqMh5TlgTaBIAKV
113
113
  huaweicloudsdkoms/v2/model/update_task_group_response.py,sha256=Fk_zKwSqvnOXV_GGl6QRBWOtxZzYgf7PgrZT_9TV6Ms,2443
114
114
  huaweicloudsdkoms/v2/model/version.py,sha256=VRMrvqLo-oAav1V81uotDLd9Rmk0g_K3Vx09MRBqYg0,5914
115
115
  huaweicloudsdkoms/v2/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
116
- huaweicloudsdkoms/v2/region/oms_region.py,sha256=MrH-T0TcxeBxaWHXjsAyBHITUMB2tDLcBVmPiAuBz74,3227
117
- huaweicloudsdkoms-3.1.77.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
118
- huaweicloudsdkoms-3.1.77.dist-info/METADATA,sha256=Z3E4wKOYflaCIvQhnHf8pPPhD_WI0ho6Fa8h186X-30,1134
119
- huaweicloudsdkoms-3.1.77.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
120
- huaweicloudsdkoms-3.1.77.dist-info/top_level.txt,sha256=JgMrA43i26V20q-8LlegokLMS7RtmBCQ79whMDpgjME,18
121
- huaweicloudsdkoms-3.1.77.dist-info/RECORD,,
116
+ huaweicloudsdkoms/v2/region/oms_region.py,sha256=UlK4lS4uVicU18eUh_RtNBdRR3HgBuMAI1BVHk6d9jQ,3286
117
+ huaweicloudsdkoms-3.1.79.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
118
+ huaweicloudsdkoms-3.1.79.dist-info/METADATA,sha256=a0HgpYCle3wDdUGmLW0KuCKQqazyJhXJ6qd4lk-ZNLs,1134
119
+ huaweicloudsdkoms-3.1.79.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
120
+ huaweicloudsdkoms-3.1.79.dist-info/top_level.txt,sha256=JgMrA43i26V20q-8LlegokLMS7RtmBCQ79whMDpgjME,18
121
+ huaweicloudsdkoms-3.1.79.dist-info/RECORD,,