huaweicloudsdkoctopus 3.1.77__py2.py3-none-any.whl → 3.1.78__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
 
@@ -19,9 +16,9 @@ class OctopusRegion:
19
16
  @classmethod
20
17
  def value_of(cls, region_id, static_fields=None):
21
18
  if not region_id:
22
- raise KeyError("Unexpected empty parameter: region_id.")
19
+ raise KeyError("Unexpected empty parameter: region_id")
23
20
 
24
- fields = static_fields if static_fields else cls.static_fields
21
+ fields = static_fields or cls.static_fields
25
22
 
26
23
  region = cls._PROVIDER.get_region(region_id)
27
24
  if region:
@@ -30,6 +27,5 @@ class OctopusRegion:
30
27
  if region_id in fields:
31
28
  return fields.get(region_id)
32
29
 
33
- raise KeyError("Unexpected region_id: " + region_id)
34
-
35
-
30
+ raise KeyError("region_id '%s' is not in the following supported regions of service 'Octopus': [%s]" % (
31
+ region_id, ", ".join(sorted(fields.keys()))))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huaweicloudsdkoctopus
3
- Version: 3.1.77
3
+ Version: 3.1.78
4
4
  Summary: Octopus
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).
@@ -33,9 +33,9 @@ huaweicloudsdkoctopus/v2/model/update_sim_sm_maps_files_response.py,sha256=FXXXp
33
33
  huaweicloudsdkoctopus/v2/model/update_sim_sm_scenarios_files_request.py,sha256=bx7HiiNCS7v9qVofAWojxWTO7kVlo2kCvsN2FybUIb8,4912
34
34
  huaweicloudsdkoctopus/v2/model/update_sim_sm_scenarios_files_response.py,sha256=JAa6JHDU8pa7SBiYUqVEjfM3eJhf_neva2luY3CBQxQ,11904
35
35
  huaweicloudsdkoctopus/v2/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
- huaweicloudsdkoctopus/v2/region/octopus_region.py,sha256=EFScuyH8Hb2ObIny9PawlKjYgLPCQE9rA-VT6kDpY_8,919
37
- huaweicloudsdkoctopus-3.1.77.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
38
- huaweicloudsdkoctopus-3.1.77.dist-info/METADATA,sha256=xGUDGe4LXg-kq-_giaIBr8yxZ2aO724KNiGwkvOTDHE,1146
39
- huaweicloudsdkoctopus-3.1.77.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
40
- huaweicloudsdkoctopus-3.1.77.dist-info/top_level.txt,sha256=jzUcIaYN4UE2d2HuN5msq3epsBQ29NzOjlI_l7Z0AeI,22
41
- huaweicloudsdkoctopus-3.1.77.dist-info/RECORD,,
36
+ huaweicloudsdkoctopus/v2/region/octopus_region.py,sha256=xLnTlavwDICgd3q1l4W8jeh0BoWq_NQq7pu-dEqQtDs,982
37
+ huaweicloudsdkoctopus-3.1.78.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
38
+ huaweicloudsdkoctopus-3.1.78.dist-info/METADATA,sha256=qGxMVAJ6cmPXTM5WpdfkU6O0PxUCeXAdlCt_uwfmPgg,1146
39
+ huaweicloudsdkoctopus-3.1.78.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
40
+ huaweicloudsdkoctopus-3.1.78.dist-info/top_level.txt,sha256=jzUcIaYN4UE2d2HuN5msq3epsBQ29NzOjlI_l7Z0AeI,22
41
+ huaweicloudsdkoctopus-3.1.78.dist-info/RECORD,,