huaweicloudsdksfsturbo 3.1.156__py2.py3-none-any.whl → 3.1.158__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.156.dist-info → huaweicloudsdksfsturbo-3.1.158.dist-info}/METADATA +2 -2
  102. {huaweicloudsdksfsturbo-3.1.156.dist-info → huaweicloudsdksfsturbo-3.1.158.dist-info}/RECORD +105 -73
  103. {huaweicloudsdksfsturbo-3.1.156.dist-info → huaweicloudsdksfsturbo-3.1.158.dist-info}/LICENSE +0 -0
  104. {huaweicloudsdksfsturbo-3.1.156.dist-info → huaweicloudsdksfsturbo-3.1.158.dist-info}/WHEEL +0 -0
  105. {huaweicloudsdksfsturbo-3.1.156.dist-info → huaweicloudsdksfsturbo-3.1.158.dist-info}/top_level.txt +0 -0
@@ -33,6 +33,73 @@ class SFSTurboAsyncClient(Client):
33
33
 
34
34
  return client_builder
35
35
 
36
+ def add_active_directory_domain_async(self, request):
37
+ r"""加入AD域
38
+
39
+ 加入AD域。Active Directory域(简称:AD域)提供统一的身份认证和授权管理。通过将SFS Turbo文件系统的挂载点接入AD域内,您可以在AD域中实现文件系统用户身份的认证管理和文件级别的访问权限控制。
40
+
41
+ Please refer to HUAWEI cloud API Explorer for details.
42
+
43
+
44
+ :param request: Request instance for AddActiveDirectoryDomain
45
+ :type request: :class:`huaweicloudsdksfsturbo.v1.AddActiveDirectoryDomainRequest`
46
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.AddActiveDirectoryDomainResponse`
47
+ """
48
+ http_info = self._add_active_directory_domain_http_info(request)
49
+ return self._call_api(**http_info)
50
+
51
+ def add_active_directory_domain_async_invoker(self, request):
52
+ http_info = self._add_active_directory_domain_http_info(request)
53
+ return AsyncInvoker(self, http_info)
54
+
55
+ def _add_active_directory_domain_http_info(self, request):
56
+ http_info = {
57
+ "method": "POST",
58
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/fs/active-directory-domain",
59
+ "request_type": request.__class__.__name__,
60
+ "response_type": "AddActiveDirectoryDomainResponse"
61
+ }
62
+
63
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
64
+
65
+ cname = None
66
+
67
+ collection_formats = {}
68
+
69
+ path_params = {}
70
+ if 'share_id' in local_var_params:
71
+ path_params['share_id'] = local_var_params['share_id']
72
+
73
+ query_params = []
74
+
75
+ header_params = {}
76
+
77
+ form_params = {}
78
+
79
+ body = None
80
+ if 'body' in local_var_params:
81
+ body = local_var_params['body']
82
+ if isinstance(request, SdkStreamRequest):
83
+ body = request.get_file_stream()
84
+
85
+ response_headers = ["X-request-id", ]
86
+
87
+ header_params['Content-Type'] = http_utils.select_header_content_type(
88
+ ['application/json;charset=UTF-8'])
89
+
90
+ auth_settings = []
91
+
92
+ http_info["cname"] = cname
93
+ http_info["collection_formats"] = collection_formats
94
+ http_info["path_params"] = path_params
95
+ http_info["query_params"] = query_params
96
+ http_info["header_params"] = header_params
97
+ http_info["post_params"] = form_params
98
+ http_info["body"] = body
99
+ http_info["response_headers"] = response_headers
100
+
101
+ return http_info
102
+
36
103
  def batch_add_shared_tags_async(self, request):
37
104
  r"""批量添加共享标签
38
105
 
@@ -171,6 +238,73 @@ class SFSTurboAsyncClient(Client):
171
238
 
172
239
  return http_info
173
240
 
241
+ def change_share_charge_mode_v2_async(self, request):
242
+ r"""修改文件系统计费模式由按需转为包周期
243
+
244
+ 修改文件系统计费模式由按需转为包周期。
245
+
246
+ Please refer to HUAWEI cloud API Explorer for details.
247
+
248
+
249
+ :param request: Request instance for ChangeShareChargeModeV2
250
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ChangeShareChargeModeV2Request`
251
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ChangeShareChargeModeV2Response`
252
+ """
253
+ http_info = self._change_share_charge_mode_v2_http_info(request)
254
+ return self._call_api(**http_info)
255
+
256
+ def change_share_charge_mode_v2_async_invoker(self, request):
257
+ http_info = self._change_share_charge_mode_v2_http_info(request)
258
+ return AsyncInvoker(self, http_info)
259
+
260
+ def _change_share_charge_mode_v2_http_info(self, request):
261
+ http_info = {
262
+ "method": "POST",
263
+ "resource_path": "/v2/{project_id}/sfs-turbo/shares/{share_id}/change-charge-mode",
264
+ "request_type": request.__class__.__name__,
265
+ "response_type": "ChangeShareChargeModeV2Response"
266
+ }
267
+
268
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
269
+
270
+ cname = None
271
+
272
+ collection_formats = {}
273
+
274
+ path_params = {}
275
+ if 'share_id' in local_var_params:
276
+ path_params['share_id'] = local_var_params['share_id']
277
+
278
+ query_params = []
279
+
280
+ header_params = {}
281
+
282
+ form_params = {}
283
+
284
+ body = None
285
+ if 'body' in local_var_params:
286
+ body = local_var_params['body']
287
+ if isinstance(request, SdkStreamRequest):
288
+ body = request.get_file_stream()
289
+
290
+ response_headers = ["X-request-id", ]
291
+
292
+ header_params['Content-Type'] = http_utils.select_header_content_type(
293
+ ['application/json;charset=UTF-8'])
294
+
295
+ auth_settings = []
296
+
297
+ http_info["cname"] = cname
298
+ http_info["collection_formats"] = collection_formats
299
+ http_info["path_params"] = path_params
300
+ http_info["query_params"] = query_params
301
+ http_info["header_params"] = header_params
302
+ http_info["post_params"] = form_params
303
+ http_info["body"] = body
304
+ http_info["response_headers"] = response_headers
305
+
306
+ return http_info
307
+
174
308
  def change_share_name_async(self, request):
175
309
  r"""修改文件系统名称
176
310
 
@@ -373,9 +507,9 @@ class SFSTurboAsyncClient(Client):
373
507
  return http_info
374
508
 
375
509
  def create_fs_dir_quota_async(self, request):
376
- r"""创建目标文件夹quota
510
+ r"""创建目标文件夹配额
377
511
 
378
- 创建目标文件夹quota。
512
+ 创建目标文件夹配额。
379
513
 
380
514
  Please refer to HUAWEI cloud API Explorer for details.
381
515
 
@@ -490,7 +624,7 @@ class SFSTurboAsyncClient(Client):
490
624
  if isinstance(request, SdkStreamRequest):
491
625
  body = request.get_file_stream()
492
626
 
493
- response_headers = []
627
+ response_headers = ["X-request-id", ]
494
628
 
495
629
  header_params['Content-Type'] = http_utils.select_header_content_type(
496
630
  ['application/json;charset=UTF-8'])
@@ -576,13 +710,9 @@ class SFSTurboAsyncClient(Client):
576
710
  return http_info
577
711
 
578
712
  def create_ldap_config_async(self, request):
579
- r"""创建并绑定ldap配置
713
+ r"""创建并绑定LDAP配置
580
714
 
581
- 创建并绑定ldap配置。LDAP(Lightweight Directory Access Protocol),中文名称轻量级目录访问协议,是对目录服务器(Directory Server)进行访问、控制的一种标准协议。LDAP服务器可以集中式地管理用户和群组的归属关系,通过绑定LDAP服务器,当一个用户访问您的文件系统的文件时,SFS Turbo将会访问您的LDAP服务器以进行用户身份验证,并且获取用户和群组的归属关系,从而进行Linux标准的文件UGO权限的检查。要使用此功能,首先您需要搭建好LDAP服务器(当前SFS Turbo仅支持LDAP v3协议),常见提供LDAP协议访问的目录服务器实现有OpenLdap(Linux),Active Directory(Windows)等,不同目录服务器的实现细节有所差别,绑定时需要指定对应的Schema(Schema配置错误将会导致SFS Turbo无法正确获取用户以及群组信息,可能导致无权限访问文件系统内文件),当前SFS Turbo支持的Schema有:
582
- 1. RFC2307(Openldap通常选择此Schema)
583
- 2. MS-AD-BIS(Active Directory通常选择此Schema,支持RFC2307bis,支持嵌套的群组)
584
-
585
- SFS Turbo还支持配置主备LDAP服务器,当您的一台LDAP服务器故障无法访问后,SFS Turbo将会自动切换到备LDAP服务器访问,以免影响您的业务。同时,若您还选择将allow_local_user配置为Yes(默认为No),那么当您的LDAP服务器全部故障无法访问时,SFS Turbo将会使用您的本地用户以及群组信息,而非LDAP服务器中配置的信息进行身份验证和UGO权限检查,以最大程度减少故障影响面。
715
+ 创建并绑定LDAP配置。
586
716
 
587
717
  Please refer to HUAWEI cloud API Explorer for details.
588
718
 
@@ -628,7 +758,7 @@ class SFSTurboAsyncClient(Client):
628
758
  if isinstance(request, SdkStreamRequest):
629
759
  body = request.get_file_stream()
630
760
 
631
- response_headers = []
761
+ response_headers = ["X-request-id", ]
632
762
 
633
763
  header_params['Content-Type'] = http_utils.select_header_content_type(
634
764
  ['application/json;charset=UTF-8'])
@@ -848,6 +978,73 @@ class SFSTurboAsyncClient(Client):
848
978
 
849
979
  return http_info
850
980
 
981
+ def delete_active_directory_domain_async(self, request):
982
+ r"""退出AD域
983
+
984
+ 退出AD域。Active Directory域(简称:AD域)提供统一的身份认证和授权管理。通过将SFS Turbo文件系统的挂载点接入AD域内,您可以在AD域中实现文件系统用户身份的认证管理和文件级别的访问权限控制。
985
+
986
+ Please refer to HUAWEI cloud API Explorer for details.
987
+
988
+
989
+ :param request: Request instance for DeleteActiveDirectoryDomain
990
+ :type request: :class:`huaweicloudsdksfsturbo.v1.DeleteActiveDirectoryDomainRequest`
991
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.DeleteActiveDirectoryDomainResponse`
992
+ """
993
+ http_info = self._delete_active_directory_domain_http_info(request)
994
+ return self._call_api(**http_info)
995
+
996
+ def delete_active_directory_domain_async_invoker(self, request):
997
+ http_info = self._delete_active_directory_domain_http_info(request)
998
+ return AsyncInvoker(self, http_info)
999
+
1000
+ def _delete_active_directory_domain_http_info(self, request):
1001
+ http_info = {
1002
+ "method": "DELETE",
1003
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/fs/active-directory-domain",
1004
+ "request_type": request.__class__.__name__,
1005
+ "response_type": "DeleteActiveDirectoryDomainResponse"
1006
+ }
1007
+
1008
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1009
+
1010
+ cname = None
1011
+
1012
+ collection_formats = {}
1013
+
1014
+ path_params = {}
1015
+ if 'share_id' in local_var_params:
1016
+ path_params['share_id'] = local_var_params['share_id']
1017
+
1018
+ query_params = []
1019
+
1020
+ header_params = {}
1021
+
1022
+ form_params = {}
1023
+
1024
+ body = None
1025
+ if 'body' in local_var_params:
1026
+ body = local_var_params['body']
1027
+ if isinstance(request, SdkStreamRequest):
1028
+ body = request.get_file_stream()
1029
+
1030
+ response_headers = ["X-request-id", ]
1031
+
1032
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1033
+ ['application/json;charset=UTF-8'])
1034
+
1035
+ auth_settings = []
1036
+
1037
+ http_info["cname"] = cname
1038
+ http_info["collection_formats"] = collection_formats
1039
+ http_info["path_params"] = path_params
1040
+ http_info["query_params"] = query_params
1041
+ http_info["header_params"] = header_params
1042
+ http_info["post_params"] = form_params
1043
+ http_info["body"] = body
1044
+ http_info["response_headers"] = response_headers
1045
+
1046
+ return http_info
1047
+
851
1048
  def delete_backend_target_async(self, request):
852
1049
  r"""删除后端存储
853
1050
 
@@ -985,9 +1182,9 @@ class SFSTurboAsyncClient(Client):
985
1182
  return http_info
986
1183
 
987
1184
  def delete_fs_dir_quota_async(self, request):
988
- r"""删除目标文件夹quota
1185
+ r"""删除目标文件夹配额
989
1186
 
990
- 删除目标文件夹quota。
1187
+ 删除目标文件夹配额。
991
1188
 
992
1189
  Please refer to HUAWEI cloud API Explorer for details.
993
1190
 
@@ -1102,7 +1299,7 @@ class SFSTurboAsyncClient(Client):
1102
1299
  if isinstance(request, SdkStreamRequest):
1103
1300
  body = request.get_file_stream()
1104
1301
 
1105
- response_headers = []
1302
+ response_headers = ["X-request-id", ]
1106
1303
 
1107
1304
  header_params['Content-Type'] = http_utils.select_header_content_type(
1108
1305
  ['application/json'])
@@ -1188,13 +1385,9 @@ class SFSTurboAsyncClient(Client):
1188
1385
  return http_info
1189
1386
 
1190
1387
  def delete_ldap_config_async(self, request):
1191
- r"""删除ldap配置
1388
+ r"""删除LDAP配置
1192
1389
 
1193
- 删除ldap配置。LDAP(Lightweight Directory Access Protocol),中文名称轻量级目录访问协议,是对目录服务器(Directory Server)进行访问、控制的一种标准协议。LDAP服务器可以集中式地管理用户和群组的归属关系,通过绑定LDAP服务器,当一个用户访问您的文件系统的文件时,SFS Turbo将会访问您的LDAP服务器以进行用户身份验证,并且获取用户和群组的归属关系,从而进行Linux标准的文件UGO权限的检查。要使用此功能,首先您需要搭建好LDAP服务器(当前SFS Turbo仅支持LDAP v3协议),常见提供LDAP协议访问的目录服务器实现有OpenLdap(Linux),Active Directory(Windows)等,不同目录服务器的实现细节有所差别,绑定时需要指定对应的Schema(Schema配置错误将会导致SFS Turbo无法正确获取用户以及群组信息,可能导致无权限访问文件系统内文件),当前SFS Turbo支持的Schema有:
1194
- 1. RFC2307(Openldap通常选择此Schema)
1195
- 2. MS-AD-BIS(Active Directory通常选择此Schema,支持RFC2307bis,支持嵌套的群组)
1196
-
1197
- SFS Turbo还支持配置主备LDAP服务器,当您的一台LDAP服务器故障无法访问后,SFS Turbo将会自动切换到备LDAP服务器访问,以免影响您的业务。同时,若您还选择将allow_local_user配置为Yes(默认为No),那么当您的LDAP服务器全部故障无法访问时,SFS Turbo将会使用您的本地用户以及群组信息,而非LDAP服务器中配置的信息进行身份验证和UGO权限检查,以最大程度减少故障影响面。
1390
+ 删除LDAP配置。
1198
1391
 
1199
1392
  Please refer to HUAWEI cloud API Explorer for details.
1200
1393
 
@@ -1238,7 +1431,7 @@ class SFSTurboAsyncClient(Client):
1238
1431
  if isinstance(request, SdkStreamRequest):
1239
1432
  body = request.get_file_stream()
1240
1433
 
1241
- response_headers = []
1434
+ response_headers = ["X-request-id", ]
1242
1435
 
1243
1436
  header_params['Content-Type'] = http_utils.select_header_content_type(
1244
1437
  ['application/json'])
@@ -1644,7 +1837,7 @@ class SFSTurboAsyncClient(Client):
1644
1837
  if isinstance(request, SdkStreamRequest):
1645
1838
  body = request.get_file_stream()
1646
1839
 
1647
- response_headers = []
1840
+ response_headers = ["X-request-id", ]
1648
1841
 
1649
1842
  header_params['Content-Type'] = http_utils.select_header_content_type(
1650
1843
  ['application/json'])
@@ -1808,6 +2001,73 @@ class SFSTurboAsyncClient(Client):
1808
2001
 
1809
2002
  return http_info
1810
2003
 
2004
+ def list_share_types_async(self, request):
2005
+ r"""查询文件系统类型和配额
2006
+
2007
+ 查询文件系统类型和配额
2008
+
2009
+ Please refer to HUAWEI cloud API Explorer for details.
2010
+
2011
+
2012
+ :param request: Request instance for ListShareTypes
2013
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ListShareTypesRequest`
2014
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ListShareTypesResponse`
2015
+ """
2016
+ http_info = self._list_share_types_http_info(request)
2017
+ return self._call_api(**http_info)
2018
+
2019
+ def list_share_types_async_invoker(self, request):
2020
+ http_info = self._list_share_types_http_info(request)
2021
+ return AsyncInvoker(self, http_info)
2022
+
2023
+ def _list_share_types_http_info(self, request):
2024
+ http_info = {
2025
+ "method": "GET",
2026
+ "resource_path": "/v1/{project_id}/sfs-turbo/share-types",
2027
+ "request_type": request.__class__.__name__,
2028
+ "response_type": "ListShareTypesResponse"
2029
+ }
2030
+
2031
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2032
+
2033
+ cname = None
2034
+
2035
+ collection_formats = {}
2036
+
2037
+ path_params = {}
2038
+
2039
+ query_params = []
2040
+ if 'limit' in local_var_params:
2041
+ query_params.append(('limit', local_var_params['limit']))
2042
+ if 'offset' in local_var_params:
2043
+ query_params.append(('offset', local_var_params['offset']))
2044
+
2045
+ header_params = {}
2046
+
2047
+ form_params = {}
2048
+
2049
+ body = None
2050
+ if isinstance(request, SdkStreamRequest):
2051
+ body = request.get_file_stream()
2052
+
2053
+ response_headers = ["X-request-id", ]
2054
+
2055
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2056
+ ['application/json'])
2057
+
2058
+ auth_settings = []
2059
+
2060
+ http_info["cname"] = cname
2061
+ http_info["collection_formats"] = collection_formats
2062
+ http_info["path_params"] = path_params
2063
+ http_info["query_params"] = query_params
2064
+ http_info["header_params"] = header_params
2065
+ http_info["post_params"] = form_params
2066
+ http_info["body"] = body
2067
+ http_info["response_headers"] = response_headers
2068
+
2069
+ return http_info
2070
+
1811
2071
  def list_shared_tags_async(self, request):
1812
2072
  r"""查询租户所有共享的标签
1813
2073
 
@@ -2074,6 +2334,71 @@ class SFSTurboAsyncClient(Client):
2074
2334
 
2075
2335
  return http_info
2076
2336
 
2337
+ def show_active_directory_domain_async(self, request):
2338
+ r"""查询AD域配置
2339
+
2340
+ 查询AD域配置。Active Directory域(简称:AD域)提供统一的身份认证和授权管理。通过将SFS Turbo文件系统的挂载点接入AD域内,您可以在AD域中实现文件系统用户身份的认证管理和文件级别的访问权限控制。
2341
+
2342
+ Please refer to HUAWEI cloud API Explorer for details.
2343
+
2344
+
2345
+ :param request: Request instance for ShowActiveDirectoryDomain
2346
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ShowActiveDirectoryDomainRequest`
2347
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ShowActiveDirectoryDomainResponse`
2348
+ """
2349
+ http_info = self._show_active_directory_domain_http_info(request)
2350
+ return self._call_api(**http_info)
2351
+
2352
+ def show_active_directory_domain_async_invoker(self, request):
2353
+ http_info = self._show_active_directory_domain_http_info(request)
2354
+ return AsyncInvoker(self, http_info)
2355
+
2356
+ def _show_active_directory_domain_http_info(self, request):
2357
+ http_info = {
2358
+ "method": "GET",
2359
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/fs/active-directory-domain",
2360
+ "request_type": request.__class__.__name__,
2361
+ "response_type": "ShowActiveDirectoryDomainResponse"
2362
+ }
2363
+
2364
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2365
+
2366
+ cname = None
2367
+
2368
+ collection_formats = {}
2369
+
2370
+ path_params = {}
2371
+ if 'share_id' in local_var_params:
2372
+ path_params['share_id'] = local_var_params['share_id']
2373
+
2374
+ query_params = []
2375
+
2376
+ header_params = {}
2377
+
2378
+ form_params = {}
2379
+
2380
+ body = None
2381
+ if isinstance(request, SdkStreamRequest):
2382
+ body = request.get_file_stream()
2383
+
2384
+ response_headers = ["X-request-id", ]
2385
+
2386
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2387
+ ['application/json'])
2388
+
2389
+ auth_settings = []
2390
+
2391
+ http_info["cname"] = cname
2392
+ http_info["collection_formats"] = collection_formats
2393
+ http_info["path_params"] = path_params
2394
+ http_info["query_params"] = query_params
2395
+ http_info["header_params"] = header_params
2396
+ http_info["post_params"] = form_params
2397
+ http_info["body"] = body
2398
+ http_info["response_headers"] = response_headers
2399
+
2400
+ return http_info
2401
+
2077
2402
  def show_backend_target_info_async(self, request):
2078
2403
  r"""获取后端存储详细信息
2079
2404
 
@@ -2141,6 +2466,73 @@ class SFSTurboAsyncClient(Client):
2141
2466
 
2142
2467
  return http_info
2143
2468
 
2469
+ def show_client_ip_info_async(self, request):
2470
+ r"""获取已挂载的客户端ip信息
2471
+
2472
+ 获取已挂载的客户端ip信息
2473
+
2474
+ Please refer to HUAWEI cloud API Explorer for details.
2475
+
2476
+
2477
+ :param request: Request instance for ShowClientIpInfo
2478
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ShowClientIpInfoRequest`
2479
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ShowClientIpInfoResponse`
2480
+ """
2481
+ http_info = self._show_client_ip_info_http_info(request)
2482
+ return self._call_api(**http_info)
2483
+
2484
+ def show_client_ip_info_async_invoker(self, request):
2485
+ http_info = self._show_client_ip_info_http_info(request)
2486
+ return AsyncInvoker(self, http_info)
2487
+
2488
+ def _show_client_ip_info_http_info(self, request):
2489
+ http_info = {
2490
+ "method": "POST",
2491
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/action",
2492
+ "request_type": request.__class__.__name__,
2493
+ "response_type": "ShowClientIpInfoResponse"
2494
+ }
2495
+
2496
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2497
+
2498
+ cname = None
2499
+
2500
+ collection_formats = {}
2501
+
2502
+ path_params = {}
2503
+ if 'share_id' in local_var_params:
2504
+ path_params['share_id'] = local_var_params['share_id']
2505
+
2506
+ query_params = []
2507
+
2508
+ header_params = {}
2509
+
2510
+ form_params = {}
2511
+
2512
+ body = None
2513
+ if 'body' in local_var_params:
2514
+ body = local_var_params['body']
2515
+ if isinstance(request, SdkStreamRequest):
2516
+ body = request.get_file_stream()
2517
+
2518
+ response_headers = ["X-request-id", ]
2519
+
2520
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2521
+ ['application/json;charset=UTF-8'])
2522
+
2523
+ auth_settings = []
2524
+
2525
+ http_info["cname"] = cname
2526
+ http_info["collection_formats"] = collection_formats
2527
+ http_info["path_params"] = path_params
2528
+ http_info["query_params"] = query_params
2529
+ http_info["header_params"] = header_params
2530
+ http_info["post_params"] = form_params
2531
+ http_info["body"] = body
2532
+ http_info["response_headers"] = response_headers
2533
+
2534
+ return http_info
2535
+
2144
2536
  def show_fs_dir_async(self, request):
2145
2537
  r"""查询目录是否存在
2146
2538
 
@@ -2209,9 +2601,9 @@ class SFSTurboAsyncClient(Client):
2209
2601
  return http_info
2210
2602
 
2211
2603
  def show_fs_dir_quota_async(self, request):
2212
- r"""查询目标文件夹quota
2604
+ r"""查询目标文件夹配额
2213
2605
 
2214
- 查询目标文件夹quota。查询的used_capacity、used_inode数据可能有延迟。
2606
+ 查询目标文件夹配额。查询的used_capacity、used_inode数据可能有延迟。
2215
2607
 
2216
2608
  Please refer to HUAWEI cloud API Explorer for details.
2217
2609
 
@@ -2393,7 +2785,7 @@ class SFSTurboAsyncClient(Client):
2393
2785
  if isinstance(request, SdkStreamRequest):
2394
2786
  body = request.get_file_stream()
2395
2787
 
2396
- response_headers = []
2788
+ response_headers = ["X-request-id", ]
2397
2789
 
2398
2790
  header_params['Content-Type'] = http_utils.select_header_content_type(
2399
2791
  ['application/json'])
@@ -2481,7 +2873,7 @@ class SFSTurboAsyncClient(Client):
2481
2873
  def show_job_detail_async(self, request):
2482
2874
  r"""查询job的状态详情
2483
2875
 
2484
- 查询job的执行状态。 可用于查询SFS Turbo异步API的执行状态。例如:可使用调用创建并绑定ldap配置接口时返回的jobId,通过该接口查询job的执行状态。
2876
+ 用于查询SFS Turbo异步API的执行状态。例如:可使用调用创建并绑定LDAP配置接口时返回的jobId,通过该接口查询job的执行状态。
2485
2877
 
2486
2878
  Please refer to HUAWEI cloud API Explorer for details.
2487
2879
 
@@ -2544,13 +2936,9 @@ class SFSTurboAsyncClient(Client):
2544
2936
  return http_info
2545
2937
 
2546
2938
  def show_ldap_config_async(self, request):
2547
- r"""查询Ldap的配置
2939
+ r"""查询LDAP的配置
2548
2940
 
2549
- 查询Ldap的配置。LDAP(Lightweight Directory Access Protocol),中文名称轻量级目录访问协议,是对目录服务器(Directory Server)进行访问、控制的一种标准协议。LDAP服务器可以集中式地管理用户和群组的归属关系,通过绑定LDAP服务器,当一个用户访问您的文件系统的文件时,SFS Turbo将会访问您的LDAP服务器以进行用户身份验证,并且获取用户和群组的归属关系,从而进行Linux标准的文件UGO权限的检查。要使用此功能,首先您需要搭建好LDAP服务器(当前SFS Turbo仅支持LDAP v3协议),常见提供LDAP协议访问的目录服务器实现有OpenLdap(Linux),Active Directory(Windows)等,不同目录服务器的实现细节有所差别,绑定时需要指定对应的Schema(Schema配置错误将会导致SFS Turbo无法正确获取用户以及群组信息,可能导致无权限访问文件系统内文件),当前SFS Turbo支持的Schema有:
2550
- 1. RFC2307(Openldap通常选择此Schema)
2551
- 2. MS-AD-BIS(Active Directory通常选择此Schema,支持RFC2307bis,支持嵌套的群组)
2552
-
2553
- SFS Turbo还支持配置主备LDAP服务器,当您的一台LDAP服务器故障无法访问后,SFS Turbo将会自动切换到备LDAP服务器访问,以免影响您的业务。同时,若您还选择将allow_local_user配置为Yes(默认为No),那么当您的LDAP服务器全部故障无法访问时,SFS Turbo将会使用您的本地用户以及群组信息,而非LDAP服务器中配置的信息进行身份验证和UGO权限检查,以最大程度减少故障影响面。
2941
+ 查询LDAP的配置。
2554
2942
 
2555
2943
  Please refer to HUAWEI cloud API Explorer for details.
2556
2944
 
@@ -2594,7 +2982,7 @@ class SFSTurboAsyncClient(Client):
2594
2982
  if isinstance(request, SdkStreamRequest):
2595
2983
  body = request.get_file_stream()
2596
2984
 
2597
- response_headers = []
2985
+ response_headers = ["X-request-id", ]
2598
2986
 
2599
2987
  header_params['Content-Type'] = http_utils.select_header_content_type(
2600
2988
  ['application/json'])
@@ -2809,10 +3197,77 @@ class SFSTurboAsyncClient(Client):
2809
3197
 
2810
3198
  return http_info
2811
3199
 
3200
+ def update_active_directory_domain_async(self, request):
3201
+ r"""修改AD域配置
3202
+
3203
+ 修改AD域配置。Active Directory域(简称:AD域)提供统一的身份认证和授权管理。通过将SFS Turbo文件系统的挂载点接入AD域内,您可以在AD域中实现文件系统用户身份的认证管理和文件级别的访问权限控制。
3204
+
3205
+ Please refer to HUAWEI cloud API Explorer for details.
3206
+
3207
+
3208
+ :param request: Request instance for UpdateActiveDirectoryDomain
3209
+ :type request: :class:`huaweicloudsdksfsturbo.v1.UpdateActiveDirectoryDomainRequest`
3210
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.UpdateActiveDirectoryDomainResponse`
3211
+ """
3212
+ http_info = self._update_active_directory_domain_http_info(request)
3213
+ return self._call_api(**http_info)
3214
+
3215
+ def update_active_directory_domain_async_invoker(self, request):
3216
+ http_info = self._update_active_directory_domain_http_info(request)
3217
+ return AsyncInvoker(self, http_info)
3218
+
3219
+ def _update_active_directory_domain_http_info(self, request):
3220
+ http_info = {
3221
+ "method": "PUT",
3222
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/fs/active-directory-domain",
3223
+ "request_type": request.__class__.__name__,
3224
+ "response_type": "UpdateActiveDirectoryDomainResponse"
3225
+ }
3226
+
3227
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3228
+
3229
+ cname = None
3230
+
3231
+ collection_formats = {}
3232
+
3233
+ path_params = {}
3234
+ if 'share_id' in local_var_params:
3235
+ path_params['share_id'] = local_var_params['share_id']
3236
+
3237
+ query_params = []
3238
+
3239
+ header_params = {}
3240
+
3241
+ form_params = {}
3242
+
3243
+ body = None
3244
+ if 'body' in local_var_params:
3245
+ body = local_var_params['body']
3246
+ if isinstance(request, SdkStreamRequest):
3247
+ body = request.get_file_stream()
3248
+
3249
+ response_headers = ["X-request-id", ]
3250
+
3251
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3252
+ ['application/json;charset=UTF-8'])
3253
+
3254
+ auth_settings = []
3255
+
3256
+ http_info["cname"] = cname
3257
+ http_info["collection_formats"] = collection_formats
3258
+ http_info["path_params"] = path_params
3259
+ http_info["query_params"] = query_params
3260
+ http_info["header_params"] = header_params
3261
+ http_info["post_params"] = form_params
3262
+ http_info["body"] = body
3263
+ http_info["response_headers"] = response_headers
3264
+
3265
+ return http_info
3266
+
2812
3267
  def update_fs_dir_quota_async(self, request):
2813
- r"""更新目标文件夹quota
3268
+ r"""更新目标文件夹配额
2814
3269
 
2815
- 更新目标文件夹quota
3270
+ 更新目标文件夹配额
2816
3271
 
2817
3272
  Please refer to HUAWEI cloud API Explorer for details.
2818
3273
 
@@ -2944,13 +3399,9 @@ class SFSTurboAsyncClient(Client):
2944
3399
  return http_info
2945
3400
 
2946
3401
  def update_ldap_config_async(self, request):
2947
- r"""修改ldap配置
3402
+ r"""修改LDAP配置
2948
3403
 
2949
- 修改ldap配置。LDAP(Lightweight Directory Access Protocol),中文名称轻量级目录访问协议,是对目录服务器(Directory Server)进行访问、控制的一种标准协议。LDAP服务器可以集中式地管理用户和群组的归属关系,通过绑定LDAP服务器,当一个用户访问您的文件系统的文件时,SFS Turbo将会访问您的LDAP服务器以进行用户身份验证,并且获取用户和群组的归属关系,从而进行Linux标准的文件UGO权限的检查。要使用此功能,首先您需要搭建好LDAP服务器(当前SFS Turbo仅支持LDAP v3协议),常见提供LDAP协议访问的目录服务器实现有OpenLdap(Linux),Active Directory(Windows)等,不同目录服务器的实现细节有所差别,绑定时需要指定对应的Schema(Schema配置错误将会导致SFS Turbo无法正确获取用户以及群组信息,可能导致无权限访问文件系统内文件),当前SFS Turbo支持的Schema有:
2950
- 1. RFC2307(Openldap通常选择此Schema)
2951
- 2. MS-AD-BIS(Active Directory通常选择此Schema,支持RFC2307bis,支持嵌套的群组)
2952
-
2953
- SFS Turbo还支持配置主备LDAP服务器,当您的一台LDAP服务器故障无法访问后,SFS Turbo将会自动切换到备LDAP服务器访问,以免影响您的业务。同时,若您还选择将allow_local_user配置为Yes(默认为No),那么当您的LDAP服务器全部故障无法访问时,SFS Turbo将会使用您的本地用户以及群组信息,而非LDAP服务器中配置的信息进行身份验证和UGO权限检查,以最大程度减少故障影响面。
3404
+ 修改LDAP配置。
2954
3405
 
2955
3406
  Please refer to HUAWEI cloud API Explorer for details.
2956
3407
 
@@ -2996,7 +3447,7 @@ class SFSTurboAsyncClient(Client):
2996
3447
  if isinstance(request, SdkStreamRequest):
2997
3448
  body = request.get_file_stream()
2998
3449
 
2999
- response_headers = []
3450
+ response_headers = ["X-request-id", ]
3000
3451
 
3001
3452
  header_params['Content-Type'] = http_utils.select_header_content_type(
3002
3453
  ['application/json;charset=UTF-8'])