huaweicloudsdkoctopus 3.1.77__py2.py3-none-any.whl → 3.1.79__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- huaweicloudsdkoctopus/v2/region/octopus_region.py +4 -8
- {huaweicloudsdkoctopus-3.1.77.dist-info → huaweicloudsdkoctopus-3.1.79.dist-info}/METADATA +2 -2
- {huaweicloudsdkoctopus-3.1.77.dist-info → huaweicloudsdkoctopus-3.1.79.dist-info}/RECORD +6 -6
- {huaweicloudsdkoctopus-3.1.77.dist-info → huaweicloudsdkoctopus-3.1.79.dist-info}/LICENSE +0 -0
- {huaweicloudsdkoctopus-3.1.77.dist-info → huaweicloudsdkoctopus-3.1.79.dist-info}/WHEEL +0 -0
- {huaweicloudsdkoctopus-3.1.77.dist-info → huaweicloudsdkoctopus-3.1.79.dist-info}/top_level.txt +0 -0
@@ -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
|
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("
|
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.
|
3
|
+
Version: 3.1.79
|
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.
|
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).
|
@@ -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=
|
37
|
-
huaweicloudsdkoctopus-3.1.
|
38
|
-
huaweicloudsdkoctopus-3.1.
|
39
|
-
huaweicloudsdkoctopus-3.1.
|
40
|
-
huaweicloudsdkoctopus-3.1.
|
41
|
-
huaweicloudsdkoctopus-3.1.
|
36
|
+
huaweicloudsdkoctopus/v2/region/octopus_region.py,sha256=xLnTlavwDICgd3q1l4W8jeh0BoWq_NQq7pu-dEqQtDs,982
|
37
|
+
huaweicloudsdkoctopus-3.1.79.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
|
38
|
+
huaweicloudsdkoctopus-3.1.79.dist-info/METADATA,sha256=gBIHT0SYzgo1mRgej1E23HRJjSoNqa7VY7B7ugA8QqQ,1146
|
39
|
+
huaweicloudsdkoctopus-3.1.79.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
|
40
|
+
huaweicloudsdkoctopus-3.1.79.dist-info/top_level.txt,sha256=jzUcIaYN4UE2d2HuN5msq3epsBQ29NzOjlI_l7Z0AeI,22
|
41
|
+
huaweicloudsdkoctopus-3.1.79.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{huaweicloudsdkoctopus-3.1.77.dist-info → huaweicloudsdkoctopus-3.1.79.dist-info}/top_level.txt
RENAMED
File without changes
|