huaweicloudsdksfsturbo 3.1.157__py2.py3-none-any.whl → 3.1.159__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.
Files changed (105) hide show
  1. huaweicloudsdksfsturbo/v1/__init__.py +32 -0
  2. huaweicloudsdksfsturbo/v1/model/__init__.py +32 -0
  3. huaweicloudsdksfsturbo/v1/model/add_active_directory_domain_request.py +139 -0
  4. huaweicloudsdksfsturbo/v1/model/add_active_directory_domain_request_body.py +313 -0
  5. huaweicloudsdksfsturbo/v1/model/add_active_directory_domain_response.py +141 -0
  6. huaweicloudsdksfsturbo/v1/model/auto_export_policy.py +61 -3
  7. huaweicloudsdksfsturbo/v1/model/batch_add_shared_tags_request_body.py +7 -37
  8. huaweicloudsdksfsturbo/v1/model/bss_info.py +6 -6
  9. huaweicloudsdksfsturbo/v1/model/change_share_charge_mode_request_body.py +110 -0
  10. huaweicloudsdksfsturbo/v1/model/change_share_charge_mode_v2_request.py +139 -0
  11. huaweicloudsdksfsturbo/v1/model/change_share_charge_mode_v2_response.py +141 -0
  12. huaweicloudsdksfsturbo/v1/model/client_ip_info.py +115 -0
  13. huaweicloudsdksfsturbo/v1/model/create_backend_target_request_body.py +3 -3
  14. huaweicloudsdksfsturbo/v1/model/create_backend_target_response.py +3 -3
  15. huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_request.py +3 -3
  16. huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_request_body.py +6 -6
  17. huaweicloudsdksfsturbo/v1/model/create_fs_dir_request.py +3 -3
  18. huaweicloudsdksfsturbo/v1/model/create_fs_task_response.py +28 -3
  19. huaweicloudsdksfsturbo/v1/model/create_hpc_cache_task_req.py +3 -3
  20. huaweicloudsdksfsturbo/v1/model/create_ldap_config_request.py +3 -3
  21. huaweicloudsdksfsturbo/v1/model/create_ldap_config_request_body.py +21 -50
  22. huaweicloudsdksfsturbo/v1/model/create_ldap_config_response.py +31 -6
  23. huaweicloudsdksfsturbo/v1/model/create_perm_rule_request.py +3 -3
  24. huaweicloudsdksfsturbo/v1/model/delete_active_directory_domain_request.py +139 -0
  25. huaweicloudsdksfsturbo/v1/model/delete_active_directory_domain_request_body.py +142 -0
  26. huaweicloudsdksfsturbo/v1/model/delete_active_directory_domain_response.py +141 -0
  27. huaweicloudsdksfsturbo/v1/model/delete_backend_target_request.py +6 -6
  28. huaweicloudsdksfsturbo/v1/model/delete_backend_target_response.py +3 -3
  29. huaweicloudsdksfsturbo/v1/model/delete_fs_dir_quota_request.py +3 -3
  30. huaweicloudsdksfsturbo/v1/model/delete_fs_dir_request.py +3 -3
  31. huaweicloudsdksfsturbo/v1/model/delete_fs_task_request.py +3 -3
  32. huaweicloudsdksfsturbo/v1/model/delete_fs_task_response.py +28 -1
  33. huaweicloudsdksfsturbo/v1/model/delete_ldap_config_request.py +3 -3
  34. huaweicloudsdksfsturbo/v1/model/delete_ldap_config_response.py +31 -6
  35. huaweicloudsdksfsturbo/v1/model/delete_perm_rule_request.py +3 -3
  36. huaweicloudsdksfsturbo/v1/model/delete_shared_tag_request.py +3 -3
  37. huaweicloudsdksfsturbo/v1/model/extend.py +6 -6
  38. huaweicloudsdksfsturbo/v1/model/get_sub_job_detail.py +21 -21
  39. huaweicloudsdksfsturbo/v1/model/list_backend_targets_request.py +3 -3
  40. huaweicloudsdksfsturbo/v1/model/list_fs_tasks_request.py +3 -3
  41. huaweicloudsdksfsturbo/v1/model/list_fs_tasks_response.py +28 -3
  42. huaweicloudsdksfsturbo/v1/model/list_hpc_cache_tasks_request.py +3 -3
  43. huaweicloudsdksfsturbo/v1/model/list_perm_rules_request.py +3 -3
  44. huaweicloudsdksfsturbo/v1/model/list_share_types_request.py +144 -0
  45. huaweicloudsdksfsturbo/v1/model/list_share_types_response.py +141 -0
  46. huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_request_body.py +1 -2
  47. huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_response.py +3 -3
  48. huaweicloudsdksfsturbo/v1/model/one_perm_rule_request_info.py +9 -12
  49. huaweicloudsdksfsturbo/v1/model/one_perm_rule_response_info.py +6 -6
  50. huaweicloudsdksfsturbo/v1/model/resource_tag.py +6 -6
  51. huaweicloudsdksfsturbo/v1/model/share.py +15 -15
  52. huaweicloudsdksfsturbo/v1/model/share_info.py +6 -6
  53. huaweicloudsdksfsturbo/v1/model/share_type_available_zone.py +144 -0
  54. huaweicloudsdksfsturbo/v1/model/share_type_response_body.py +368 -0
  55. huaweicloudsdksfsturbo/v1/model/share_type_usage.py +161 -0
  56. huaweicloudsdksfsturbo/v1/model/share_type_usage_bandwidth.py +144 -0
  57. huaweicloudsdksfsturbo/v1/model/share_type_usage_capacity.py +144 -0
  58. huaweicloudsdksfsturbo/v1/model/share_type_usage_quantity.py +144 -0
  59. huaweicloudsdksfsturbo/v1/model/share_types_attribution.py +186 -0
  60. huaweicloudsdksfsturbo/v1/model/share_types_attribution_bandwidth.py +231 -0
  61. huaweicloudsdksfsturbo/v1/model/share_types_attribution_capacity.py +173 -0
  62. huaweicloudsdksfsturbo/v1/model/share_types_attribution_iops.py +144 -0
  63. huaweicloudsdksfsturbo/v1/model/share_types_attribution_single_channel4_k_latency.py +144 -0
  64. huaweicloudsdksfsturbo/v1/model/show_active_directory_domain_request.py +114 -0
  65. huaweicloudsdksfsturbo/v1/model/show_active_directory_domain_response.py +286 -0
  66. huaweicloudsdksfsturbo/v1/model/show_backend_target_info_response.py +3 -3
  67. huaweicloudsdksfsturbo/v1/model/show_backend_target_info_response_body.py +3 -3
  68. huaweicloudsdksfsturbo/v1/model/show_client_ip_info_request.py +139 -0
  69. huaweicloudsdksfsturbo/v1/model/show_client_ip_info_request_body.py +110 -0
  70. huaweicloudsdksfsturbo/v1/model/show_client_ip_info_response.py +170 -0
  71. huaweicloudsdksfsturbo/v1/model/show_fs_dir_quota_request.py +3 -3
  72. huaweicloudsdksfsturbo/v1/model/show_fs_dir_request.py +3 -3
  73. huaweicloudsdksfsturbo/v1/model/show_fs_dir_usage_request.py +3 -3
  74. huaweicloudsdksfsturbo/v1/model/show_fs_task_response.py +28 -3
  75. huaweicloudsdksfsturbo/v1/model/show_job_detail_response.py +18 -18
  76. huaweicloudsdksfsturbo/v1/model/show_ldap_config_request.py +3 -3
  77. huaweicloudsdksfsturbo/v1/model/show_ldap_config_response.py +59 -34
  78. huaweicloudsdksfsturbo/v1/model/show_perm_rule_request.py +3 -3
  79. huaweicloudsdksfsturbo/v1/model/show_perm_rule_response.py +6 -6
  80. huaweicloudsdksfsturbo/v1/model/show_share_response.py +6 -6
  81. huaweicloudsdksfsturbo/v1/model/show_shared_tags_response.py +3 -32
  82. huaweicloudsdksfsturbo/v1/model/tag.py +3 -3
  83. huaweicloudsdksfsturbo/v1/model/update_active_directory_domain_request.py +139 -0
  84. huaweicloudsdksfsturbo/v1/model/update_active_directory_domain_request_body.py +313 -0
  85. huaweicloudsdksfsturbo/v1/model/update_active_directory_domain_response.py +141 -0
  86. huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_request.py +3 -3
  87. huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_request_body.py +6 -6
  88. huaweicloudsdksfsturbo/v1/model/update_hpc_share_request_body.py +3 -3
  89. huaweicloudsdksfsturbo/v1/model/update_ldap_config_request.py +3 -3
  90. huaweicloudsdksfsturbo/v1/model/update_ldap_config_request_body.py +18 -47
  91. huaweicloudsdksfsturbo/v1/model/update_ldap_config_response.py +31 -6
  92. huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_request.py +6 -6
  93. huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_request.py +6 -6
  94. huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_response.py +3 -3
  95. huaweicloudsdksfsturbo/v1/model/update_one_perm_rule_request_info.py +144 -0
  96. huaweicloudsdksfsturbo/v1/model/update_perm_rule_request.py +7 -7
  97. huaweicloudsdksfsturbo/v1/model/update_perm_rule_response.py +6 -6
  98. huaweicloudsdksfsturbo/v1/region/sfsturbo_region.py +3 -0
  99. huaweicloudsdksfsturbo/v1/sfsturbo_async_client.py +492 -41
  100. huaweicloudsdksfsturbo/v1/sfsturbo_client.py +492 -41
  101. {huaweicloudsdksfsturbo-3.1.157.dist-info → huaweicloudsdksfsturbo-3.1.159.dist-info}/METADATA +2 -2
  102. {huaweicloudsdksfsturbo-3.1.157.dist-info → huaweicloudsdksfsturbo-3.1.159.dist-info}/RECORD +105 -73
  103. {huaweicloudsdksfsturbo-3.1.157.dist-info → huaweicloudsdksfsturbo-3.1.159.dist-info}/LICENSE +0 -0
  104. {huaweicloudsdksfsturbo-3.1.157.dist-info → huaweicloudsdksfsturbo-3.1.159.dist-info}/WHEEL +0 -0
  105. {huaweicloudsdksfsturbo-3.1.157.dist-info → huaweicloudsdksfsturbo-3.1.159.dist-info}/top_level.txt +0 -0
@@ -25,8 +25,7 @@ class UpdateLdapConfigRequestBody:
25
25
  'filter_condition': 'str',
26
26
  'backup_url': 'str',
27
27
  'schema': 'str',
28
- 'search_timeout': 'int',
29
- 'allow_local_user': 'str'
28
+ 'search_timeout': 'int'
30
29
  }
31
30
 
32
31
  attribute_map = {
@@ -38,35 +37,32 @@ class UpdateLdapConfigRequestBody:
38
37
  'filter_condition': 'filter_condition',
39
38
  'backup_url': 'backup_url',
40
39
  'schema': 'schema',
41
- 'search_timeout': 'search_timeout',
42
- 'allow_local_user': 'allow_local_user'
40
+ 'search_timeout': 'search_timeout'
43
41
  }
44
42
 
45
- def __init__(self, url=None, base_dn=None, user_dn=None, password=None, vpc_id=None, filter_condition=None, backup_url=None, schema=None, search_timeout=None, allow_local_user=None):
43
+ def __init__(self, url=None, base_dn=None, user_dn=None, password=None, vpc_id=None, filter_condition=None, backup_url=None, schema=None, search_timeout=None):
46
44
  r"""UpdateLdapConfigRequestBody
47
45
 
48
46
  The model defined in huaweicloud sdk
49
47
 
50
- :param url: ldap服务器的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000
48
+ :param url: LDAP服务器的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000
51
49
  :type url: str
52
50
  :param base_dn: 数据库中的域
53
51
  :type base_dn: str
54
52
  :param user_dn: 用户区别名
55
53
  :type user_dn: str
56
- :param password: ldap认证密码
54
+ :param password: LDAP认证密码
57
55
  :type password: str
58
56
  :param vpc_id: vpc的id
59
57
  :type vpc_id: str
60
58
  :param filter_condition: 过滤条件。保留字段,暂不支持
61
59
  :type filter_condition: str
62
- :param backup_url: ldap备节点的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000
60
+ :param backup_url: LDAP备节点的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000
63
61
  :type backup_url: str
64
- :param schema: ldap的schema,不填写则默认为RFC2307
62
+ :param schema: LDAP的schema,不填写则默认为RFC2307
65
63
  :type schema: str
66
- :param search_timeout: ldap搜索的超时时间,单位为秒。不填写则默认为3秒
64
+ :param search_timeout: LDAP搜索的超时时间,单位为秒。不填写则默认为3秒
67
65
  :type search_timeout: int
68
- :param allow_local_user: 访问ldap服务器失败后是否允许使用本地用户鉴权
69
- :type allow_local_user: str
70
66
  """
71
67
 
72
68
 
@@ -80,7 +76,6 @@ class UpdateLdapConfigRequestBody:
80
76
  self._backup_url = None
81
77
  self._schema = None
82
78
  self._search_timeout = None
83
- self._allow_local_user = None
84
79
  self.discriminator = None
85
80
 
86
81
  if url is not None:
@@ -101,14 +96,12 @@ class UpdateLdapConfigRequestBody:
101
96
  self.schema = schema
102
97
  if search_timeout is not None:
103
98
  self.search_timeout = search_timeout
104
- if allow_local_user is not None:
105
- self.allow_local_user = allow_local_user
106
99
 
107
100
  @property
108
101
  def url(self):
109
102
  r"""Gets the url of this UpdateLdapConfigRequestBody.
110
103
 
111
- ldap服务器的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000
104
+ LDAP服务器的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000
112
105
 
113
106
  :return: The url of this UpdateLdapConfigRequestBody.
114
107
  :rtype: str
@@ -119,7 +112,7 @@ class UpdateLdapConfigRequestBody:
119
112
  def url(self, url):
120
113
  r"""Sets the url of this UpdateLdapConfigRequestBody.
121
114
 
122
- ldap服务器的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000
115
+ LDAP服务器的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000
123
116
 
124
117
  :param url: The url of this UpdateLdapConfigRequestBody.
125
118
  :type url: str
@@ -174,7 +167,7 @@ class UpdateLdapConfigRequestBody:
174
167
  def password(self):
175
168
  r"""Gets the password of this UpdateLdapConfigRequestBody.
176
169
 
177
- ldap认证密码
170
+ LDAP认证密码
178
171
 
179
172
  :return: The password of this UpdateLdapConfigRequestBody.
180
173
  :rtype: str
@@ -185,7 +178,7 @@ class UpdateLdapConfigRequestBody:
185
178
  def password(self, password):
186
179
  r"""Sets the password of this UpdateLdapConfigRequestBody.
187
180
 
188
- ldap认证密码
181
+ LDAP认证密码
189
182
 
190
183
  :param password: The password of this UpdateLdapConfigRequestBody.
191
184
  :type password: str
@@ -240,7 +233,7 @@ class UpdateLdapConfigRequestBody:
240
233
  def backup_url(self):
241
234
  r"""Gets the backup_url of this UpdateLdapConfigRequestBody.
242
235
 
243
- ldap备节点的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000
236
+ LDAP备节点的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000
244
237
 
245
238
  :return: The backup_url of this UpdateLdapConfigRequestBody.
246
239
  :rtype: str
@@ -251,7 +244,7 @@ class UpdateLdapConfigRequestBody:
251
244
  def backup_url(self, backup_url):
252
245
  r"""Sets the backup_url of this UpdateLdapConfigRequestBody.
253
246
 
254
- ldap备节点的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000
247
+ LDAP备节点的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000
255
248
 
256
249
  :param backup_url: The backup_url of this UpdateLdapConfigRequestBody.
257
250
  :type backup_url: str
@@ -262,7 +255,7 @@ class UpdateLdapConfigRequestBody:
262
255
  def schema(self):
263
256
  r"""Gets the schema of this UpdateLdapConfigRequestBody.
264
257
 
265
- ldap的schema,不填写则默认为RFC2307
258
+ LDAP的schema,不填写则默认为RFC2307
266
259
 
267
260
  :return: The schema of this UpdateLdapConfigRequestBody.
268
261
  :rtype: str
@@ -273,7 +266,7 @@ class UpdateLdapConfigRequestBody:
273
266
  def schema(self, schema):
274
267
  r"""Sets the schema of this UpdateLdapConfigRequestBody.
275
268
 
276
- ldap的schema,不填写则默认为RFC2307
269
+ LDAP的schema,不填写则默认为RFC2307
277
270
 
278
271
  :param schema: The schema of this UpdateLdapConfigRequestBody.
279
272
  :type schema: str
@@ -284,7 +277,7 @@ class UpdateLdapConfigRequestBody:
284
277
  def search_timeout(self):
285
278
  r"""Gets the search_timeout of this UpdateLdapConfigRequestBody.
286
279
 
287
- ldap搜索的超时时间,单位为秒。不填写则默认为3秒
280
+ LDAP搜索的超时时间,单位为秒。不填写则默认为3秒
288
281
 
289
282
  :return: The search_timeout of this UpdateLdapConfigRequestBody.
290
283
  :rtype: int
@@ -295,35 +288,13 @@ class UpdateLdapConfigRequestBody:
295
288
  def search_timeout(self, search_timeout):
296
289
  r"""Sets the search_timeout of this UpdateLdapConfigRequestBody.
297
290
 
298
- ldap搜索的超时时间,单位为秒。不填写则默认为3秒
291
+ LDAP搜索的超时时间,单位为秒。不填写则默认为3秒
299
292
 
300
293
  :param search_timeout: The search_timeout of this UpdateLdapConfigRequestBody.
301
294
  :type search_timeout: int
302
295
  """
303
296
  self._search_timeout = search_timeout
304
297
 
305
- @property
306
- def allow_local_user(self):
307
- r"""Gets the allow_local_user of this UpdateLdapConfigRequestBody.
308
-
309
- 访问ldap服务器失败后是否允许使用本地用户鉴权
310
-
311
- :return: The allow_local_user of this UpdateLdapConfigRequestBody.
312
- :rtype: str
313
- """
314
- return self._allow_local_user
315
-
316
- @allow_local_user.setter
317
- def allow_local_user(self, allow_local_user):
318
- r"""Sets the allow_local_user of this UpdateLdapConfigRequestBody.
319
-
320
- 访问ldap服务器失败后是否允许使用本地用户鉴权
321
-
322
- :param allow_local_user: The allow_local_user of this UpdateLdapConfigRequestBody.
323
- :type allow_local_user: str
324
- """
325
- self._allow_local_user = allow_local_user
326
-
327
298
  def to_dict(self):
328
299
  """Returns the model properties as a dict"""
329
300
  result = {}
@@ -18,35 +18,42 @@ class UpdateLdapConfigResponse(SdkResponse):
18
18
  sensitive_list = []
19
19
 
20
20
  openapi_types = {
21
- 'job_id': 'str'
21
+ 'job_id': 'str',
22
+ 'x_request_id': 'str'
22
23
  }
23
24
 
24
25
  attribute_map = {
25
- 'job_id': 'jobId'
26
+ 'job_id': 'jobId',
27
+ 'x_request_id': 'X-request-id'
26
28
  }
27
29
 
28
- def __init__(self, job_id=None):
30
+ def __init__(self, job_id=None, x_request_id=None):
29
31
  r"""UpdateLdapConfigResponse
30
32
 
31
33
  The model defined in huaweicloud sdk
32
34
 
33
- :param job_id: ldap异步任务的id。可通过查询job的状态详情接口查询job的执行状态。
35
+ :param job_id: LDAP异步任务的id。可通过查询job的状态详情接口查询job的执行状态。
34
36
  :type job_id: str
37
+ :param x_request_id:
38
+ :type x_request_id: str
35
39
  """
36
40
 
37
41
  super(UpdateLdapConfigResponse, self).__init__()
38
42
 
39
43
  self._job_id = None
44
+ self._x_request_id = None
40
45
  self.discriminator = None
41
46
 
42
47
  if job_id is not None:
43
48
  self.job_id = job_id
49
+ if x_request_id is not None:
50
+ self.x_request_id = x_request_id
44
51
 
45
52
  @property
46
53
  def job_id(self):
47
54
  r"""Gets the job_id of this UpdateLdapConfigResponse.
48
55
 
49
- ldap异步任务的id。可通过查询job的状态详情接口查询job的执行状态。
56
+ LDAP异步任务的id。可通过查询job的状态详情接口查询job的执行状态。
50
57
 
51
58
  :return: The job_id of this UpdateLdapConfigResponse.
52
59
  :rtype: str
@@ -57,13 +64,31 @@ class UpdateLdapConfigResponse(SdkResponse):
57
64
  def job_id(self, job_id):
58
65
  r"""Sets the job_id of this UpdateLdapConfigResponse.
59
66
 
60
- ldap异步任务的id。可通过查询job的状态详情接口查询job的执行状态。
67
+ LDAP异步任务的id。可通过查询job的状态详情接口查询job的执行状态。
61
68
 
62
69
  :param job_id: The job_id of this UpdateLdapConfigResponse.
63
70
  :type job_id: str
64
71
  """
65
72
  self._job_id = job_id
66
73
 
74
+ @property
75
+ def x_request_id(self):
76
+ r"""Gets the x_request_id of this UpdateLdapConfigResponse.
77
+
78
+ :return: The x_request_id of this UpdateLdapConfigResponse.
79
+ :rtype: str
80
+ """
81
+ return self._x_request_id
82
+
83
+ @x_request_id.setter
84
+ def x_request_id(self, x_request_id):
85
+ r"""Sets the x_request_id of this UpdateLdapConfigResponse.
86
+
87
+ :param x_request_id: The x_request_id of this UpdateLdapConfigResponse.
88
+ :type x_request_id: str
89
+ """
90
+ self._x_request_id = x_request_id
91
+
67
92
  def to_dict(self):
68
93
  """Returns the model properties as a dict"""
69
94
  result = {}
@@ -33,9 +33,9 @@ class UpdateObsTargetAttributesRequest:
33
33
 
34
34
  The model defined in huaweicloud sdk
35
35
 
36
- :param share_id: 文件系统id
36
+ :param share_id: 文件系统ID
37
37
  :type share_id: str
38
- :param target_id: 绑定关系id
38
+ :param target_id: 绑定关系ID
39
39
  :type target_id: str
40
40
  :param body: Body of the UpdateObsTargetAttributesRequest
41
41
  :type body: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetAttributesRequestBody`
@@ -57,7 +57,7 @@ class UpdateObsTargetAttributesRequest:
57
57
  def share_id(self):
58
58
  r"""Gets the share_id of this UpdateObsTargetAttributesRequest.
59
59
 
60
- 文件系统id
60
+ 文件系统ID
61
61
 
62
62
  :return: The share_id of this UpdateObsTargetAttributesRequest.
63
63
  :rtype: str
@@ -68,7 +68,7 @@ class UpdateObsTargetAttributesRequest:
68
68
  def share_id(self, share_id):
69
69
  r"""Sets the share_id of this UpdateObsTargetAttributesRequest.
70
70
 
71
- 文件系统id
71
+ 文件系统ID
72
72
 
73
73
  :param share_id: The share_id of this UpdateObsTargetAttributesRequest.
74
74
  :type share_id: str
@@ -79,7 +79,7 @@ class UpdateObsTargetAttributesRequest:
79
79
  def target_id(self):
80
80
  r"""Gets the target_id of this UpdateObsTargetAttributesRequest.
81
81
 
82
- 绑定关系id
82
+ 绑定关系ID
83
83
 
84
84
  :return: The target_id of this UpdateObsTargetAttributesRequest.
85
85
  :rtype: str
@@ -90,7 +90,7 @@ class UpdateObsTargetAttributesRequest:
90
90
  def target_id(self, target_id):
91
91
  r"""Sets the target_id of this UpdateObsTargetAttributesRequest.
92
92
 
93
- 绑定关系id
93
+ 绑定关系ID
94
94
 
95
95
  :param target_id: The target_id of this UpdateObsTargetAttributesRequest.
96
96
  :type target_id: str
@@ -33,9 +33,9 @@ class UpdateObsTargetPolicyRequest:
33
33
 
34
34
  The model defined in huaweicloud sdk
35
35
 
36
- :param share_id: 文件系统id
36
+ :param share_id: 文件系统ID
37
37
  :type share_id: str
38
- :param target_id: 绑定关系id
38
+ :param target_id: 绑定关系ID
39
39
  :type target_id: str
40
40
  :param body: Body of the UpdateObsTargetPolicyRequest
41
41
  :type body: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetPolicyRequestBody`
@@ -57,7 +57,7 @@ class UpdateObsTargetPolicyRequest:
57
57
  def share_id(self):
58
58
  r"""Gets the share_id of this UpdateObsTargetPolicyRequest.
59
59
 
60
- 文件系统id
60
+ 文件系统ID
61
61
 
62
62
  :return: The share_id of this UpdateObsTargetPolicyRequest.
63
63
  :rtype: str
@@ -68,7 +68,7 @@ class UpdateObsTargetPolicyRequest:
68
68
  def share_id(self, share_id):
69
69
  r"""Sets the share_id of this UpdateObsTargetPolicyRequest.
70
70
 
71
- 文件系统id
71
+ 文件系统ID
72
72
 
73
73
  :param share_id: The share_id of this UpdateObsTargetPolicyRequest.
74
74
  :type share_id: str
@@ -79,7 +79,7 @@ class UpdateObsTargetPolicyRequest:
79
79
  def target_id(self):
80
80
  r"""Gets the target_id of this UpdateObsTargetPolicyRequest.
81
81
 
82
- 绑定关系id
82
+ 绑定关系ID
83
83
 
84
84
  :return: The target_id of this UpdateObsTargetPolicyRequest.
85
85
  :rtype: str
@@ -90,7 +90,7 @@ class UpdateObsTargetPolicyRequest:
90
90
  def target_id(self, target_id):
91
91
  r"""Sets the target_id of this UpdateObsTargetPolicyRequest.
92
92
 
93
- 绑定关系id
93
+ 绑定关系ID
94
94
 
95
95
  :param target_id: The target_id of this UpdateObsTargetPolicyRequest.
96
96
  :type target_id: str
@@ -34,7 +34,7 @@ class UpdateObsTargetPolicyResponse(SdkResponse):
34
34
 
35
35
  The model defined in huaweicloud sdk
36
36
 
37
- :param target_id: 绑定关系id
37
+ :param target_id: 绑定关系ID
38
38
  :type target_id: str
39
39
  :param policy:
40
40
  :type policy: :class:`huaweicloudsdksfsturbo.v1.ObsDataRepositoryPolicy`
@@ -60,7 +60,7 @@ class UpdateObsTargetPolicyResponse(SdkResponse):
60
60
  def target_id(self):
61
61
  r"""Gets the target_id of this UpdateObsTargetPolicyResponse.
62
62
 
63
- 绑定关系id
63
+ 绑定关系ID
64
64
 
65
65
  :return: The target_id of this UpdateObsTargetPolicyResponse.
66
66
  :rtype: str
@@ -71,7 +71,7 @@ class UpdateObsTargetPolicyResponse(SdkResponse):
71
71
  def target_id(self, target_id):
72
72
  r"""Sets the target_id of this UpdateObsTargetPolicyResponse.
73
73
 
74
- 绑定关系id
74
+ 绑定关系ID
75
75
 
76
76
  :param target_id: The target_id of this UpdateObsTargetPolicyResponse.
77
77
  :type target_id: str
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateOnePermRuleRequestInfo:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'rw_type': 'str',
21
+ 'user_type': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'rw_type': 'rw_type',
26
+ 'user_type': 'user_type'
27
+ }
28
+
29
+ def __init__(self, rw_type=None, user_type=None):
30
+ r"""UpdateOnePermRuleRequestInfo
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param rw_type: 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限
35
+ :type rw_type: str
36
+ :param user_type: 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:默认选项。客户端使用包括root用户在内的任何用户,NFS服务器都保持客户端使用的用户,不做映射。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。客户端使用非root用户时,NFS服务器保持客户端使用的用户,不做映射。 - all_squash:所有访问NFS服务器的客户端的用户都映射为匿名用户。
37
+ :type user_type: str
38
+ """
39
+
40
+
41
+
42
+ self._rw_type = None
43
+ self._user_type = None
44
+ self.discriminator = None
45
+
46
+ if rw_type is not None:
47
+ self.rw_type = rw_type
48
+ if user_type is not None:
49
+ self.user_type = user_type
50
+
51
+ @property
52
+ def rw_type(self):
53
+ r"""Gets the rw_type of this UpdateOnePermRuleRequestInfo.
54
+
55
+ 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限
56
+
57
+ :return: The rw_type of this UpdateOnePermRuleRequestInfo.
58
+ :rtype: str
59
+ """
60
+ return self._rw_type
61
+
62
+ @rw_type.setter
63
+ def rw_type(self, rw_type):
64
+ r"""Sets the rw_type of this UpdateOnePermRuleRequestInfo.
65
+
66
+ 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限
67
+
68
+ :param rw_type: The rw_type of this UpdateOnePermRuleRequestInfo.
69
+ :type rw_type: str
70
+ """
71
+ self._rw_type = rw_type
72
+
73
+ @property
74
+ def user_type(self):
75
+ r"""Gets the user_type of this UpdateOnePermRuleRequestInfo.
76
+
77
+ 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:默认选项。客户端使用包括root用户在内的任何用户,NFS服务器都保持客户端使用的用户,不做映射。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。客户端使用非root用户时,NFS服务器保持客户端使用的用户,不做映射。 - all_squash:所有访问NFS服务器的客户端的用户都映射为匿名用户。
78
+
79
+ :return: The user_type of this UpdateOnePermRuleRequestInfo.
80
+ :rtype: str
81
+ """
82
+ return self._user_type
83
+
84
+ @user_type.setter
85
+ def user_type(self, user_type):
86
+ r"""Sets the user_type of this UpdateOnePermRuleRequestInfo.
87
+
88
+ 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:默认选项。客户端使用包括root用户在内的任何用户,NFS服务器都保持客户端使用的用户,不做映射。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。客户端使用非root用户时,NFS服务器保持客户端使用的用户,不做映射。 - all_squash:所有访问NFS服务器的客户端的用户都映射为匿名用户。
89
+
90
+ :param user_type: The user_type of this UpdateOnePermRuleRequestInfo.
91
+ :type user_type: str
92
+ """
93
+ self._user_type = user_type
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, UpdateOnePermRuleRequestInfo):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ return not self == other
@@ -19,7 +19,7 @@ class UpdatePermRuleRequest:
19
19
  openapi_types = {
20
20
  'share_id': 'str',
21
21
  'rule_id': 'str',
22
- 'body': 'OnePermRuleRequestInfo'
22
+ 'body': 'UpdateOnePermRuleRequestInfo'
23
23
  }
24
24
 
25
25
  attribute_map = {
@@ -33,12 +33,12 @@ class UpdatePermRuleRequest:
33
33
 
34
34
  The model defined in huaweicloud sdk
35
35
 
36
- :param share_id: 文件系统id
36
+ :param share_id: 文件系统ID
37
37
  :type share_id: str
38
38
  :param rule_id: 权限规则id
39
39
  :type rule_id: str
40
40
  :param body: Body of the UpdatePermRuleRequest
41
- :type body: :class:`huaweicloudsdksfsturbo.v1.OnePermRuleRequestInfo`
41
+ :type body: :class:`huaweicloudsdksfsturbo.v1.UpdateOnePermRuleRequestInfo`
42
42
  """
43
43
 
44
44
 
@@ -57,7 +57,7 @@ class UpdatePermRuleRequest:
57
57
  def share_id(self):
58
58
  r"""Gets the share_id of this UpdatePermRuleRequest.
59
59
 
60
- 文件系统id
60
+ 文件系统ID
61
61
 
62
62
  :return: The share_id of this UpdatePermRuleRequest.
63
63
  :rtype: str
@@ -68,7 +68,7 @@ class UpdatePermRuleRequest:
68
68
  def share_id(self, share_id):
69
69
  r"""Sets the share_id of this UpdatePermRuleRequest.
70
70
 
71
- 文件系统id
71
+ 文件系统ID
72
72
 
73
73
  :param share_id: The share_id of this UpdatePermRuleRequest.
74
74
  :type share_id: str
@@ -102,7 +102,7 @@ class UpdatePermRuleRequest:
102
102
  r"""Gets the body of this UpdatePermRuleRequest.
103
103
 
104
104
  :return: The body of this UpdatePermRuleRequest.
105
- :rtype: :class:`huaweicloudsdksfsturbo.v1.OnePermRuleRequestInfo`
105
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.UpdateOnePermRuleRequestInfo`
106
106
  """
107
107
  return self._body
108
108
 
@@ -111,7 +111,7 @@ class UpdatePermRuleRequest:
111
111
  r"""Sets the body of this UpdatePermRuleRequest.
112
112
 
113
113
  :param body: The body of this UpdatePermRuleRequest.
114
- :type body: :class:`huaweicloudsdksfsturbo.v1.OnePermRuleRequestInfo`
114
+ :type body: :class:`huaweicloudsdksfsturbo.v1.UpdateOnePermRuleRequestInfo`
115
115
  """
116
116
  self._body = body
117
117
 
@@ -40,9 +40,9 @@ class UpdatePermRuleResponse(SdkResponse):
40
40
  :type id: str
41
41
  :param ip_cidr: 授权对象的IP地址或网段
42
42
  :type ip_cidr: str
43
- :param rw_type: 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限
43
+ :param rw_type: 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限
44
44
  :type rw_type: str
45
- :param user_type: 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 - all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。'
45
+ :param user_type: 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 - all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。'
46
46
  :type user_type: str
47
47
  """
48
48
 
@@ -111,7 +111,7 @@ class UpdatePermRuleResponse(SdkResponse):
111
111
  def rw_type(self):
112
112
  r"""Gets the rw_type of this UpdatePermRuleResponse.
113
113
 
114
- 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限
114
+ 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限
115
115
 
116
116
  :return: The rw_type of this UpdatePermRuleResponse.
117
117
  :rtype: str
@@ -122,7 +122,7 @@ class UpdatePermRuleResponse(SdkResponse):
122
122
  def rw_type(self, rw_type):
123
123
  r"""Sets the rw_type of this UpdatePermRuleResponse.
124
124
 
125
- 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限
125
+ 授权对象的读写权限 - rw:默认选项,以读写的方式共享 - ro:以只读的方式共享 - none: 没有权限
126
126
 
127
127
  :param rw_type: The rw_type of this UpdatePermRuleResponse.
128
128
  :type rw_type: str
@@ -133,7 +133,7 @@ class UpdatePermRuleResponse(SdkResponse):
133
133
  def user_type(self):
134
134
  r"""Gets the user_type of this UpdatePermRuleResponse.
135
135
 
136
- 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 - all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。'
136
+ 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 - all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。'
137
137
 
138
138
  :return: The user_type of this UpdatePermRuleResponse.
139
139
  :rtype: str
@@ -144,7 +144,7 @@ class UpdatePermRuleResponse(SdkResponse):
144
144
  def user_type(self, user_type):
145
145
  r"""Sets the user_type of this UpdatePermRuleResponse.
146
146
 
147
- 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 - all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。'
147
+ 授权对象的系统用户对文件系统的访问权限。取值如下: - no_root_squash:客户端使用的是root用户时,映射到NFS服务器的用户依然为root用户。 - root_squash:客户端使用的是root用户时,映射到NFS服务器的用户为NFS的匿名用户(nfsnobody)。 - all_squash:默认选项。所有访问NFS服务器的客户端的用户都映射为匿名用户。'
148
148
 
149
149
  :param user_type: The user_type of this UpdatePermRuleResponse.
150
150
  :type user_type: str
@@ -64,6 +64,8 @@ class SFSTurboRegion:
64
64
  "https://sfs-turbo.cn-north-11.myhuaweicloud.com")
65
65
  AF_NORTH_1 = Region("af-north-1",
66
66
  "https://sfs-turbo.af-north-1.myhuaweicloud.com")
67
+ CN_NORTH_12 = Region("cn-north-12",
68
+ "https://sfs-turbo.cn-north-12.myhuaweicloud.com")
67
69
 
68
70
  static_fields = {
69
71
  "eu-west-101": EU_WEST_101,
@@ -95,6 +97,7 @@ class SFSTurboRegion:
95
97
  "ae-ad-1": AE_AD_1,
96
98
  "cn-north-11": CN_NORTH_11,
97
99
  "af-north-1": AF_NORTH_1,
100
+ "cn-north-12": CN_NORTH_12,
98
101
  }
99
102
 
100
103
  @classmethod