huaweicloudsdksfsturbo 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.
@@ -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
 
@@ -49,6 +46,8 @@ class SFSTurboRegion:
49
46
  "https://sfs-turbo.tr-west-1.myhuaweicloud.com")
50
47
  AP_SOUTHEAST_4 = Region("ap-southeast-4",
51
48
  "https://sfs-turbo.ap-southeast-4.myhuaweicloud.com")
49
+ ME_EAST_1 = Region("me-east-1",
50
+ "https://sfs-turbo.me-east-1.myhuaweicloud.com")
52
51
 
53
52
  static_fields = {
54
53
  "eu-west-101": EU_WEST_101,
@@ -71,14 +70,15 @@ class SFSTurboRegion:
71
70
  "na-mexico-1": NA_MEXICO_1,
72
71
  "tr-west-1": TR_WEST_1,
73
72
  "ap-southeast-4": AP_SOUTHEAST_4,
73
+ "me-east-1": ME_EAST_1,
74
74
  }
75
75
 
76
76
  @classmethod
77
77
  def value_of(cls, region_id, static_fields=None):
78
78
  if not region_id:
79
- raise KeyError("Unexpected empty parameter: region_id.")
79
+ raise KeyError("Unexpected empty parameter: region_id")
80
80
 
81
- fields = static_fields if static_fields else cls.static_fields
81
+ fields = static_fields or cls.static_fields
82
82
 
83
83
  region = cls._PROVIDER.get_region(region_id)
84
84
  if region:
@@ -87,6 +87,5 @@ class SFSTurboRegion:
87
87
  if region_id in fields:
88
88
  return fields.get(region_id)
89
89
 
90
- raise KeyError("Unexpected region_id: " + region_id)
91
-
92
-
90
+ raise KeyError("region_id '%s' is not in the following supported regions of service 'SFSTurbo': [%s]" % (
91
+ region_id, ", ".join(sorted(fields.keys()))))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huaweicloudsdksfsturbo
3
- Version: 3.1.77
3
+ Version: 3.1.79
4
4
  Summary: SFSTurbo
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).
@@ -135,9 +135,9 @@ huaweicloudsdksfsturbo/v1/model/update_ldap_config_response.py,sha256=VRvhc_-MIU
135
135
  huaweicloudsdksfsturbo/v1/model/update_perm_rule_request.py,sha256=Bln3F-2mScnPqtKqDHysIpvNklcGIPcc7ZxYw2QT6bw,4604
136
136
  huaweicloudsdksfsturbo/v1/model/update_perm_rule_response.py,sha256=oj90s0fiX6jpd07Ir0JYVXnom_oyKgi4433fHMR8Or0,6901
137
137
  huaweicloudsdksfsturbo/v1/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
138
- huaweicloudsdksfsturbo/v1/region/sfsturbo_region.py,sha256=xHeCtIHyeoyVab_spsxt24v8DUBKNo87jJFOtJqkAto,3791
139
- huaweicloudsdksfsturbo-3.1.77.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
140
- huaweicloudsdksfsturbo-3.1.77.dist-info/METADATA,sha256=2FY8pvb3VaeYxREV8Ax8ydneeZ6AA7-JLtWbFUA6lAc,1149
141
- huaweicloudsdksfsturbo-3.1.77.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
142
- huaweicloudsdksfsturbo-3.1.77.dist-info/top_level.txt,sha256=8GAVlCHW8DnAPnVGsU7Q686X2E_ol-IuktY2dbI03gQ,23
143
- huaweicloudsdksfsturbo-3.1.77.dist-info/RECORD,,
138
+ huaweicloudsdksfsturbo/v1/region/sfsturbo_region.py,sha256=_yIL45eUASunC-nYXMBxtJLKf62R7xZITE5G4FTybW4,3996
139
+ huaweicloudsdksfsturbo-3.1.79.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
140
+ huaweicloudsdksfsturbo-3.1.79.dist-info/METADATA,sha256=E8hXSxRcCT_K9_ayk6nU36JNdVAAZv6xKPh2Iy9QrsM,1149
141
+ huaweicloudsdksfsturbo-3.1.79.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
142
+ huaweicloudsdksfsturbo-3.1.79.dist-info/top_level.txt,sha256=8GAVlCHW8DnAPnVGsU7Q686X2E_ol-IuktY2dbI03gQ,23
143
+ huaweicloudsdksfsturbo-3.1.79.dist-info/RECORD,,