huaweicloudsdkimagesearch 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.

Potentially problematic release.


This version of huaweicloudsdkimagesearch might be problematic. Click here for more details.

@@ -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
 
@@ -20,9 +17,9 @@ class ImageSearchRegion:
20
17
  @classmethod
21
18
  def value_of(cls, region_id, static_fields=None):
22
19
  if not region_id:
23
- raise KeyError("Unexpected empty parameter: region_id.")
20
+ raise KeyError("Unexpected empty parameter: region_id")
24
21
 
25
- fields = static_fields if static_fields else cls.static_fields
22
+ fields = static_fields or cls.static_fields
26
23
 
27
24
  region = cls._PROVIDER.get_region(region_id)
28
25
  if region:
@@ -31,6 +28,5 @@ class ImageSearchRegion:
31
28
  if region_id in fields:
32
29
  return fields.get(region_id)
33
30
 
34
- raise KeyError("Unexpected region_id: " + region_id)
35
-
36
-
31
+ raise KeyError("region_id '%s' is not in the following supported regions of service 'ImageSearch': [%s]" % (
32
+ region_id, ", ".join(sorted(fields.keys()))))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huaweicloudsdkimagesearch
3
- Version: 3.1.77
3
+ Version: 3.1.79
4
4
  Summary: ImageSearch
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).
@@ -36,9 +36,9 @@ huaweicloudsdkimagesearch/v2/model/search_rest_info.py,sha256=wnHgCYK7xXGqJWU0gp
36
36
  huaweicloudsdkimagesearch/v2/model/search_rest_info_image_info.py,sha256=sBfSW3Y5Y31pyCX3aFwIE4KGRY3f9vIxBjtqijJBd8o,5942
37
37
  huaweicloudsdkimagesearch/v2/model/update_param.py,sha256=eZQbEU4wVoyjs5MaL1CI9Fl7lWAg_CAV1SArC6wmN7U,7372
38
38
  huaweicloudsdkimagesearch/v2/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
- huaweicloudsdkimagesearch/v2/region/imagesearch_region.py,sha256=-or2majtU8xJsNcynk_LxOex6yiQelmAzNh46q6tbyQ,985
40
- huaweicloudsdkimagesearch-3.1.77.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
41
- huaweicloudsdkimagesearch-3.1.77.dist-info/METADATA,sha256=KH6gLT3hAqu29qtPHWnpaT2C98w1GQBsJxMtB1hfFeo,1158
42
- huaweicloudsdkimagesearch-3.1.77.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
43
- huaweicloudsdkimagesearch-3.1.77.dist-info/top_level.txt,sha256=RGtCSYwOXh7T2iwkijZcpGyZyCg_ttwSjlgRMqkcng8,26
44
- huaweicloudsdkimagesearch-3.1.77.dist-info/RECORD,,
39
+ huaweicloudsdkimagesearch/v2/region/imagesearch_region.py,sha256=OexympI67g0rbVe6eCF_6eTsMD8AZCAs8gUIwagcLoU,1052
40
+ huaweicloudsdkimagesearch-3.1.79.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
41
+ huaweicloudsdkimagesearch-3.1.79.dist-info/METADATA,sha256=pHnlxSGbB__RwUx7DLmWawr8gu8ylKt6WLxJ6OQwuZk,1158
42
+ huaweicloudsdkimagesearch-3.1.79.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
43
+ huaweicloudsdkimagesearch-3.1.79.dist-info/top_level.txt,sha256=RGtCSYwOXh7T2iwkijZcpGyZyCg_ttwSjlgRMqkcng8,26
44
+ huaweicloudsdkimagesearch-3.1.79.dist-info/RECORD,,