huaweicloudsdkobs 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.
- huaweicloudsdkobs/v1/region/obs_region.py +4 -8
- {huaweicloudsdkobs-3.1.77.dist-info → huaweicloudsdkobs-3.1.79.dist-info}/METADATA +2 -2
- {huaweicloudsdkobs-3.1.77.dist-info → huaweicloudsdkobs-3.1.79.dist-info}/RECORD +6 -6
- {huaweicloudsdkobs-3.1.77.dist-info → huaweicloudsdkobs-3.1.79.dist-info}/LICENSE +0 -0
- {huaweicloudsdkobs-3.1.77.dist-info → huaweicloudsdkobs-3.1.79.dist-info}/WHEEL +0 -0
- {huaweicloudsdkobs-3.1.77.dist-info → huaweicloudsdkobs-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
|
|
@@ -76,9 +73,9 @@ class ObsRegion:
|
|
76
73
|
@classmethod
|
77
74
|
def value_of(cls, region_id, static_fields=None):
|
78
75
|
if not region_id:
|
79
|
-
raise KeyError("Unexpected empty parameter: region_id
|
76
|
+
raise KeyError("Unexpected empty parameter: region_id")
|
80
77
|
|
81
|
-
fields = static_fields
|
78
|
+
fields = static_fields or cls.static_fields
|
82
79
|
|
83
80
|
region = cls._PROVIDER.get_region(region_id)
|
84
81
|
if region:
|
@@ -87,6 +84,5 @@ class ObsRegion:
|
|
87
84
|
if region_id in fields:
|
88
85
|
return fields.get(region_id)
|
89
86
|
|
90
|
-
raise KeyError("
|
91
|
-
|
92
|
-
|
87
|
+
raise KeyError("region_id '%s' is not in the following supported regions of service 'Obs': [%s]" % (
|
88
|
+
region_id, ", ".join(sorted(fields.keys()))))
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: huaweicloudsdkobs
|
3
|
-
Version: 3.1.
|
3
|
+
Version: 3.1.79
|
4
4
|
Summary: OBS
|
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).
|
@@ -62,9 +62,9 @@ huaweicloudsdkobs/v1/model/set_bucket_notification_response.py,sha256=z5CAyaAKd6
|
|
62
62
|
huaweicloudsdkobs/v1/model/topic_configuration.py,sha256=vcxJsLUgiG1b1ur_CotJUk-lVB4AFTEQpDY3bycTj3o,8300
|
63
63
|
huaweicloudsdkobs/v1/model/topic_configuration_filter.py,sha256=UlU0eVbE8vP5QboW2ZcnK90AhUxi19tJrbwbsIGIplc,3176
|
64
64
|
huaweicloudsdkobs/v1/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
65
|
-
huaweicloudsdkobs/v1/region/obs_region.py,sha256=
|
66
|
-
huaweicloudsdkobs-3.1.
|
67
|
-
huaweicloudsdkobs-3.1.
|
68
|
-
huaweicloudsdkobs-3.1.
|
69
|
-
huaweicloudsdkobs-3.1.
|
70
|
-
huaweicloudsdkobs-3.1.
|
65
|
+
huaweicloudsdkobs/v1/region/obs_region.py,sha256=n9cfJcnl6pGlJ8Q-H9wTdFstgI2SAyg4dvgl8PK2yI4,3720
|
66
|
+
huaweicloudsdkobs-3.1.79.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
|
67
|
+
huaweicloudsdkobs-3.1.79.dist-info/METADATA,sha256=3ZFf6YeVtibn254_QHZ_3ON0hUcyjti6bi1P4OB9OEg,1134
|
68
|
+
huaweicloudsdkobs-3.1.79.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
|
69
|
+
huaweicloudsdkobs-3.1.79.dist-info/top_level.txt,sha256=TQ9fl_7vXBasHekxzCcB9Rd8PzCKQsH6IE-d0wz9iwk,18
|
70
|
+
huaweicloudsdkobs-3.1.79.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|