huaweicloudsdksfsturbo 3.1.160__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 (191) hide show
  1. huaweicloudsdksfsturbo/__init__.py +0 -0
  2. huaweicloudsdksfsturbo/v1/__init__.py +187 -0
  3. huaweicloudsdksfsturbo/v1/model/__init__.py +184 -0
  4. huaweicloudsdksfsturbo/v1/model/action_progress.py +115 -0
  5. huaweicloudsdksfsturbo/v1/model/add_active_directory_domain_request.py +139 -0
  6. huaweicloudsdksfsturbo/v1/model/add_active_directory_domain_request_body.py +313 -0
  7. huaweicloudsdksfsturbo/v1/model/add_active_directory_domain_response.py +141 -0
  8. huaweicloudsdksfsturbo/v1/model/auto_export_policy.py +173 -0
  9. huaweicloudsdksfsturbo/v1/model/batch_add_shared_tags_request.py +139 -0
  10. huaweicloudsdksfsturbo/v1/model/batch_add_shared_tags_request_body.py +142 -0
  11. huaweicloudsdksfsturbo/v1/model/batch_add_shared_tags_response.py +85 -0
  12. huaweicloudsdksfsturbo/v1/model/bss_info.py +200 -0
  13. huaweicloudsdksfsturbo/v1/model/bss_info_extend.py +115 -0
  14. huaweicloudsdksfsturbo/v1/model/change_security_group.py +114 -0
  15. huaweicloudsdksfsturbo/v1/model/change_security_group_request.py +139 -0
  16. huaweicloudsdksfsturbo/v1/model/change_security_group_request_body.py +110 -0
  17. huaweicloudsdksfsturbo/v1/model/change_security_group_response.py +116 -0
  18. huaweicloudsdksfsturbo/v1/model/change_share_charge_mode_request_body.py +110 -0
  19. huaweicloudsdksfsturbo/v1/model/change_share_charge_mode_v2_request.py +139 -0
  20. huaweicloudsdksfsturbo/v1/model/change_share_charge_mode_v2_response.py +141 -0
  21. huaweicloudsdksfsturbo/v1/model/change_share_name_req.py +110 -0
  22. huaweicloudsdksfsturbo/v1/model/change_share_name_request.py +139 -0
  23. huaweicloudsdksfsturbo/v1/model/change_share_name_response.py +85 -0
  24. huaweicloudsdksfsturbo/v1/model/client_ip_info.py +115 -0
  25. huaweicloudsdksfsturbo/v1/model/config_nas_target.py +170 -0
  26. huaweicloudsdksfsturbo/v1/model/create_backend_target_request.py +139 -0
  27. huaweicloudsdksfsturbo/v1/model/create_backend_target_request_body.py +138 -0
  28. huaweicloudsdksfsturbo/v1/model/create_backend_target_response.py +278 -0
  29. huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_request.py +139 -0
  30. huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_request_body.py +172 -0
  31. huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_response.py +232 -0
  32. huaweicloudsdksfsturbo/v1/model/create_fs_dir_request.py +139 -0
  33. huaweicloudsdksfsturbo/v1/model/create_fs_dir_request_body.py +201 -0
  34. huaweicloudsdksfsturbo/v1/model/create_fs_dir_response.py +85 -0
  35. huaweicloudsdksfsturbo/v1/model/create_fs_task_request.py +167 -0
  36. huaweicloudsdksfsturbo/v1/model/create_fs_task_response.py +141 -0
  37. huaweicloudsdksfsturbo/v1/model/create_hpc_cache_task_req.py +253 -0
  38. huaweicloudsdksfsturbo/v1/model/create_hpc_cache_task_request.py +139 -0
  39. huaweicloudsdksfsturbo/v1/model/create_hpc_cache_task_response.py +141 -0
  40. huaweicloudsdksfsturbo/v1/model/create_ldap_config_request.py +139 -0
  41. huaweicloudsdksfsturbo/v1/model/create_ldap_config_request_body.py +345 -0
  42. huaweicloudsdksfsturbo/v1/model/create_ldap_config_response.py +141 -0
  43. huaweicloudsdksfsturbo/v1/model/create_perm_rule_request.py +139 -0
  44. huaweicloudsdksfsturbo/v1/model/create_perm_rule_response.py +116 -0
  45. huaweicloudsdksfsturbo/v1/model/create_perm_rules_request_body.py +114 -0
  46. huaweicloudsdksfsturbo/v1/model/create_share_request.py +111 -0
  47. huaweicloudsdksfsturbo/v1/model/create_share_request_body.py +135 -0
  48. huaweicloudsdksfsturbo/v1/model/create_share_response.py +174 -0
  49. huaweicloudsdksfsturbo/v1/model/create_shared_tag_request.py +139 -0
  50. huaweicloudsdksfsturbo/v1/model/create_shared_tag_request_body.py +110 -0
  51. huaweicloudsdksfsturbo/v1/model/create_shared_tag_response.py +85 -0
  52. huaweicloudsdksfsturbo/v1/model/delete_active_directory_domain_request.py +139 -0
  53. huaweicloudsdksfsturbo/v1/model/delete_active_directory_domain_request_body.py +142 -0
  54. huaweicloudsdksfsturbo/v1/model/delete_active_directory_domain_response.py +141 -0
  55. huaweicloudsdksfsturbo/v1/model/delete_backend_target_request.py +171 -0
  56. huaweicloudsdksfsturbo/v1/model/delete_backend_target_response.py +199 -0
  57. huaweicloudsdksfsturbo/v1/model/delete_fs_dir_quota_request.py +139 -0
  58. huaweicloudsdksfsturbo/v1/model/delete_fs_dir_quota_request_body.py +114 -0
  59. huaweicloudsdksfsturbo/v1/model/delete_fs_dir_quota_response.py +85 -0
  60. huaweicloudsdksfsturbo/v1/model/delete_fs_dir_request.py +139 -0
  61. huaweicloudsdksfsturbo/v1/model/delete_fs_dir_request_body.py +114 -0
  62. huaweicloudsdksfsturbo/v1/model/delete_fs_dir_response.py +85 -0
  63. huaweicloudsdksfsturbo/v1/model/delete_fs_task_request.py +170 -0
  64. huaweicloudsdksfsturbo/v1/model/delete_fs_task_response.py +112 -0
  65. huaweicloudsdksfsturbo/v1/model/delete_hpc_cache_task_request.py +142 -0
  66. huaweicloudsdksfsturbo/v1/model/delete_hpc_cache_task_response.py +112 -0
  67. huaweicloudsdksfsturbo/v1/model/delete_ldap_config_request.py +114 -0
  68. huaweicloudsdksfsturbo/v1/model/delete_ldap_config_response.py +141 -0
  69. huaweicloudsdksfsturbo/v1/model/delete_perm_rule_request.py +142 -0
  70. huaweicloudsdksfsturbo/v1/model/delete_perm_rule_response.py +85 -0
  71. huaweicloudsdksfsturbo/v1/model/delete_share_request.py +114 -0
  72. huaweicloudsdksfsturbo/v1/model/delete_share_response.py +85 -0
  73. huaweicloudsdksfsturbo/v1/model/delete_shared_tag_request.py +142 -0
  74. huaweicloudsdksfsturbo/v1/model/delete_shared_tag_response.py +85 -0
  75. huaweicloudsdksfsturbo/v1/model/expand_share_request.py +139 -0
  76. huaweicloudsdksfsturbo/v1/model/expand_share_request_body.py +110 -0
  77. huaweicloudsdksfsturbo/v1/model/expand_share_response.py +145 -0
  78. huaweicloudsdksfsturbo/v1/model/extend.py +168 -0
  79. huaweicloudsdksfsturbo/v1/model/failure_details_message.py +114 -0
  80. huaweicloudsdksfsturbo/v1/model/fs_dir_req.py +114 -0
  81. huaweicloudsdksfsturbo/v1/model/fs_dir_uasge.py +114 -0
  82. huaweicloudsdksfsturbo/v1/model/fs_du_info.py +198 -0
  83. huaweicloudsdksfsturbo/v1/model/fs_file_count.py +289 -0
  84. huaweicloudsdksfsturbo/v1/model/get_sub_job_detail.py +289 -0
  85. huaweicloudsdksfsturbo/v1/model/list_backend_targets_request.py +172 -0
  86. huaweicloudsdksfsturbo/v1/model/list_backend_targets_response.py +170 -0
  87. huaweicloudsdksfsturbo/v1/model/list_fs_tasks_request.py +200 -0
  88. huaweicloudsdksfsturbo/v1/model/list_fs_tasks_response.py +141 -0
  89. huaweicloudsdksfsturbo/v1/model/list_hpc_cache_tasks_request.py +288 -0
  90. huaweicloudsdksfsturbo/v1/model/list_hpc_cache_tasks_response.py +170 -0
  91. huaweicloudsdksfsturbo/v1/model/list_perm_rules_request.py +172 -0
  92. huaweicloudsdksfsturbo/v1/model/list_perm_rules_response.py +116 -0
  93. huaweicloudsdksfsturbo/v1/model/list_share_types_request.py +144 -0
  94. huaweicloudsdksfsturbo/v1/model/list_share_types_response.py +141 -0
  95. huaweicloudsdksfsturbo/v1/model/list_shared_tags_request.py +144 -0
  96. huaweicloudsdksfsturbo/v1/model/list_shared_tags_response.py +116 -0
  97. huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_request.py +111 -0
  98. huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_request_body.py +259 -0
  99. huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_resource.py +202 -0
  100. huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_response.py +170 -0
  101. huaweicloudsdksfsturbo/v1/model/list_shares_request.py +144 -0
  102. huaweicloudsdksfsturbo/v1/model/list_shares_response.py +145 -0
  103. huaweicloudsdksfsturbo/v1/model/metadata.py +231 -0
  104. huaweicloudsdksfsturbo/v1/model/obs_data_repository.py +192 -0
  105. huaweicloudsdksfsturbo/v1/model/obs_data_repository_policy.py +111 -0
  106. huaweicloudsdksfsturbo/v1/model/obs_target_attributes.py +202 -0
  107. huaweicloudsdksfsturbo/v1/model/one_fs_task_resp.py +223 -0
  108. huaweicloudsdksfsturbo/v1/model/one_hpc_cache_task_info_resp.py +366 -0
  109. huaweicloudsdksfsturbo/v1/model/one_perm_rule_request_info.py +170 -0
  110. huaweicloudsdksfsturbo/v1/model/one_perm_rule_response_info.py +198 -0
  111. huaweicloudsdksfsturbo/v1/model/req_config_hpc_cache_backend.py +110 -0
  112. huaweicloudsdksfsturbo/v1/model/req_update_hpc_cache_data.py +171 -0
  113. huaweicloudsdksfsturbo/v1/model/req_update_hpc_cache_info.py +138 -0
  114. huaweicloudsdksfsturbo/v1/model/resource_tag.py +142 -0
  115. huaweicloudsdksfsturbo/v1/model/set_hpc_cache_backend_request.py +139 -0
  116. huaweicloudsdksfsturbo/v1/model/set_hpc_cache_backend_response.py +112 -0
  117. huaweicloudsdksfsturbo/v1/model/share.py +451 -0
  118. huaweicloudsdksfsturbo/v1/model/share_info.py +919 -0
  119. huaweicloudsdksfsturbo/v1/model/share_info_feature.py +173 -0
  120. huaweicloudsdksfsturbo/v1/model/share_info_features.py +111 -0
  121. huaweicloudsdksfsturbo/v1/model/share_name.py +114 -0
  122. huaweicloudsdksfsturbo/v1/model/share_type_available_zone.py +144 -0
  123. huaweicloudsdksfsturbo/v1/model/share_type_response_body.py +368 -0
  124. huaweicloudsdksfsturbo/v1/model/share_type_usage.py +161 -0
  125. huaweicloudsdksfsturbo/v1/model/share_type_usage_bandwidth.py +144 -0
  126. huaweicloudsdksfsturbo/v1/model/share_type_usage_capacity.py +144 -0
  127. huaweicloudsdksfsturbo/v1/model/share_type_usage_quantity.py +144 -0
  128. huaweicloudsdksfsturbo/v1/model/share_types_attribution.py +186 -0
  129. huaweicloudsdksfsturbo/v1/model/share_types_attribution_bandwidth.py +231 -0
  130. huaweicloudsdksfsturbo/v1/model/share_types_attribution_capacity.py +173 -0
  131. huaweicloudsdksfsturbo/v1/model/share_types_attribution_iops.py +144 -0
  132. huaweicloudsdksfsturbo/v1/model/share_types_attribution_single_channel4_k_latency.py +144 -0
  133. huaweicloudsdksfsturbo/v1/model/show_active_directory_domain_request.py +114 -0
  134. huaweicloudsdksfsturbo/v1/model/show_active_directory_domain_response.py +286 -0
  135. huaweicloudsdksfsturbo/v1/model/show_backend_target_info_request.py +142 -0
  136. huaweicloudsdksfsturbo/v1/model/show_backend_target_info_response.py +278 -0
  137. huaweicloudsdksfsturbo/v1/model/show_backend_target_info_response_body.py +252 -0
  138. huaweicloudsdksfsturbo/v1/model/show_client_ip_info_request.py +139 -0
  139. huaweicloudsdksfsturbo/v1/model/show_client_ip_info_request_body.py +110 -0
  140. huaweicloudsdksfsturbo/v1/model/show_client_ip_info_response.py +170 -0
  141. huaweicloudsdksfsturbo/v1/model/show_fs_dir_quota_request.py +142 -0
  142. huaweicloudsdksfsturbo/v1/model/show_fs_dir_quota_response.py +232 -0
  143. huaweicloudsdksfsturbo/v1/model/show_fs_dir_request.py +142 -0
  144. huaweicloudsdksfsturbo/v1/model/show_fs_dir_response.py +203 -0
  145. huaweicloudsdksfsturbo/v1/model/show_fs_dir_usage_request.py +142 -0
  146. huaweicloudsdksfsturbo/v1/model/show_fs_dir_usage_response.py +137 -0
  147. huaweicloudsdksfsturbo/v1/model/show_fs_task_request.py +170 -0
  148. huaweicloudsdksfsturbo/v1/model/show_fs_task_response.py +253 -0
  149. huaweicloudsdksfsturbo/v1/model/show_hpc_cache_task_request.py +142 -0
  150. huaweicloudsdksfsturbo/v1/model/show_hpc_cache_task_response.py +402 -0
  151. huaweicloudsdksfsturbo/v1/model/show_job_detail_request.py +114 -0
  152. huaweicloudsdksfsturbo/v1/model/show_job_detail_response.py +344 -0
  153. huaweicloudsdksfsturbo/v1/model/show_ldap_config_request.py +114 -0
  154. huaweicloudsdksfsturbo/v1/model/show_ldap_config_response.py +344 -0
  155. huaweicloudsdksfsturbo/v1/model/show_perm_rule_request.py +142 -0
  156. huaweicloudsdksfsturbo/v1/model/show_perm_rule_response.py +203 -0
  157. huaweicloudsdksfsturbo/v1/model/show_share_request.py +114 -0
  158. huaweicloudsdksfsturbo/v1/model/show_share_response.py +920 -0
  159. huaweicloudsdksfsturbo/v1/model/show_shared_tags_request.py +114 -0
  160. huaweicloudsdksfsturbo/v1/model/show_shared_tags_response.py +116 -0
  161. huaweicloudsdksfsturbo/v1/model/tag.py +142 -0
  162. huaweicloudsdksfsturbo/v1/model/update_active_directory_domain_request.py +139 -0
  163. huaweicloudsdksfsturbo/v1/model/update_active_directory_domain_request_body.py +313 -0
  164. huaweicloudsdksfsturbo/v1/model/update_active_directory_domain_response.py +141 -0
  165. huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_request.py +139 -0
  166. huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_request_body.py +172 -0
  167. huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_response.py +232 -0
  168. huaweicloudsdksfsturbo/v1/model/update_hpc_share_request.py +139 -0
  169. huaweicloudsdksfsturbo/v1/model/update_hpc_share_request_body.py +142 -0
  170. huaweicloudsdksfsturbo/v1/model/update_hpc_share_response.py +141 -0
  171. huaweicloudsdksfsturbo/v1/model/update_ldap_config_request.py +139 -0
  172. huaweicloudsdksfsturbo/v1/model/update_ldap_config_request_body.py +347 -0
  173. huaweicloudsdksfsturbo/v1/model/update_ldap_config_response.py +141 -0
  174. huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_request.py +167 -0
  175. huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_request_body.py +110 -0
  176. huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_response.py +166 -0
  177. huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_request.py +167 -0
  178. huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_request_body.py +110 -0
  179. huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_response.py +166 -0
  180. huaweicloudsdksfsturbo/v1/model/update_one_perm_rule_request_info.py +144 -0
  181. huaweicloudsdksfsturbo/v1/model/update_perm_rule_request.py +167 -0
  182. huaweicloudsdksfsturbo/v1/model/update_perm_rule_response.py +203 -0
  183. huaweicloudsdksfsturbo/v1/region/__init__.py +0 -0
  184. huaweicloudsdksfsturbo/v1/region/sfsturbo_region.py +118 -0
  185. huaweicloudsdksfsturbo/v1/sfsturbo_async_client.py +3722 -0
  186. huaweicloudsdksfsturbo/v1/sfsturbo_client.py +3719 -0
  187. huaweicloudsdksfsturbo-3.1.160.dist-info/LICENSE +13 -0
  188. huaweicloudsdksfsturbo-3.1.160.dist-info/METADATA +26 -0
  189. huaweicloudsdksfsturbo-3.1.160.dist-info/RECORD +191 -0
  190. huaweicloudsdksfsturbo-3.1.160.dist-info/WHEEL +5 -0
  191. huaweicloudsdksfsturbo-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,3719 @@
1
+ # coding: utf-8
2
+
3
+ from __future__ import absolute_import
4
+
5
+ import importlib
6
+ import warnings
7
+
8
+ from huaweicloudsdkcore.client import Client, ClientBuilder
9
+ from huaweicloudsdkcore.utils import http_utils
10
+ from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest
11
+
12
+ try:
13
+ from huaweicloudsdkcore.invoker.invoker import SyncInvoker
14
+ except ImportError as e:
15
+ warnings.warn(str(e) + ", please check if you are using the same versions of 'huaweicloudsdkcore' and 'huaweicloudsdksfsturbo'")
16
+
17
+
18
+ class SFSTurboClient(Client):
19
+ def __init__(self):
20
+ super(SFSTurboClient, self).__init__()
21
+ self.model_package = importlib.import_module("huaweicloudsdksfsturbo.v1.model")
22
+
23
+ @classmethod
24
+ def new_builder(cls, clazz=None):
25
+ if not clazz:
26
+ client_builder = ClientBuilder(cls)
27
+ else:
28
+ if clazz.__name__ != "SFSTurboClient":
29
+ raise TypeError("client type error, support client type is SFSTurboClient")
30
+ client_builder = ClientBuilder(clazz)
31
+
32
+
33
+
34
+ return client_builder
35
+
36
+ def add_active_directory_domain(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
+ :param request: Request instance for AddActiveDirectoryDomain
44
+ :type request: :class:`huaweicloudsdksfsturbo.v1.AddActiveDirectoryDomainRequest`
45
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.AddActiveDirectoryDomainResponse`
46
+ """
47
+ http_info = self._add_active_directory_domain_http_info(request)
48
+ return self._call_api(**http_info)
49
+
50
+ def add_active_directory_domain_invoker(self, request):
51
+ http_info = self._add_active_directory_domain_http_info(request)
52
+ return SyncInvoker(self, http_info)
53
+
54
+ @classmethod
55
+ def _add_active_directory_domain_http_info(cls, 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
+
103
+ def batch_add_shared_tags(self, request):
104
+ r"""批量添加共享标签
105
+
106
+ 指定共享批量添加标签。
107
+
108
+ 一个共享上最多有20个标签。
109
+ 一个共享上的多个标签的key不允许重复。
110
+ 此接口为幂等接口:如果要添加的key在共享上已存在,则覆盖更新标签。
111
+
112
+ Please refer to HUAWEI cloud API Explorer for details.
113
+
114
+ :param request: Request instance for BatchAddSharedTags
115
+ :type request: :class:`huaweicloudsdksfsturbo.v1.BatchAddSharedTagsRequest`
116
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.BatchAddSharedTagsResponse`
117
+ """
118
+ http_info = self._batch_add_shared_tags_http_info(request)
119
+ return self._call_api(**http_info)
120
+
121
+ def batch_add_shared_tags_invoker(self, request):
122
+ http_info = self._batch_add_shared_tags_http_info(request)
123
+ return SyncInvoker(self, http_info)
124
+
125
+ @classmethod
126
+ def _batch_add_shared_tags_http_info(cls, request):
127
+ http_info = {
128
+ "method": "POST",
129
+ "resource_path": "/v1/{project_id}/sfs-turbo/{share_id}/tags/action",
130
+ "request_type": request.__class__.__name__,
131
+ "response_type": "BatchAddSharedTagsResponse"
132
+ }
133
+
134
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
135
+
136
+ cname = None
137
+
138
+ collection_formats = {}
139
+
140
+ path_params = {}
141
+ if 'share_id' in local_var_params:
142
+ path_params['share_id'] = local_var_params['share_id']
143
+
144
+ query_params = []
145
+
146
+ header_params = {}
147
+
148
+ form_params = {}
149
+
150
+ body = None
151
+ if 'body' in local_var_params:
152
+ body = local_var_params['body']
153
+ if isinstance(request, SdkStreamRequest):
154
+ body = request.get_file_stream()
155
+
156
+ response_headers = []
157
+
158
+ header_params['Content-Type'] = http_utils.select_header_content_type(
159
+ ['application/json;charset=UTF-8'])
160
+
161
+ auth_settings = []
162
+
163
+ http_info["cname"] = cname
164
+ http_info["collection_formats"] = collection_formats
165
+ http_info["path_params"] = path_params
166
+ http_info["query_params"] = query_params
167
+ http_info["header_params"] = header_params
168
+ http_info["post_params"] = form_params
169
+ http_info["body"] = body
170
+ http_info["response_headers"] = response_headers
171
+
172
+ return http_info
173
+
174
+ def change_security_group(self, request):
175
+ r"""修改文件系统绑定的安全组
176
+
177
+ 修改SFS Turbo文件系统绑定的安全组。修改安全组为异步任务,可以通过“查询单个文件系统”返回的子状态字段“sub_status”来判断是否修改安全组状态,子状态为“232”即为修改安全组成功。
178
+
179
+ Please refer to HUAWEI cloud API Explorer for details.
180
+
181
+ :param request: Request instance for ChangeSecurityGroup
182
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ChangeSecurityGroupRequest`
183
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ChangeSecurityGroupResponse`
184
+ """
185
+ http_info = self._change_security_group_http_info(request)
186
+ return self._call_api(**http_info)
187
+
188
+ def change_security_group_invoker(self, request):
189
+ http_info = self._change_security_group_http_info(request)
190
+ return SyncInvoker(self, http_info)
191
+
192
+ @classmethod
193
+ def _change_security_group_http_info(cls, request):
194
+ http_info = {
195
+ "method": "POST",
196
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/action",
197
+ "request_type": request.__class__.__name__,
198
+ "response_type": "ChangeSecurityGroupResponse"
199
+ }
200
+
201
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
202
+
203
+ cname = None
204
+
205
+ collection_formats = {}
206
+
207
+ path_params = {}
208
+ if 'share_id' in local_var_params:
209
+ path_params['share_id'] = local_var_params['share_id']
210
+
211
+ query_params = []
212
+
213
+ header_params = {}
214
+
215
+ form_params = {}
216
+
217
+ body = None
218
+ if 'body' in local_var_params:
219
+ body = local_var_params['body']
220
+ if isinstance(request, SdkStreamRequest):
221
+ body = request.get_file_stream()
222
+
223
+ response_headers = []
224
+
225
+ header_params['Content-Type'] = http_utils.select_header_content_type(
226
+ ['application/json;charset=UTF-8'])
227
+
228
+ auth_settings = []
229
+
230
+ http_info["cname"] = cname
231
+ http_info["collection_formats"] = collection_formats
232
+ http_info["path_params"] = path_params
233
+ http_info["query_params"] = query_params
234
+ http_info["header_params"] = header_params
235
+ http_info["post_params"] = form_params
236
+ http_info["body"] = body
237
+ http_info["response_headers"] = response_headers
238
+
239
+ return http_info
240
+
241
+ def change_share_charge_mode_v2(self, request):
242
+ r"""修改文件系统计费模式由按需转为包周期
243
+
244
+ 修改文件系统计费模式由按需转为包周期。
245
+
246
+ Please refer to HUAWEI cloud API Explorer for details.
247
+
248
+ :param request: Request instance for ChangeShareChargeModeV2
249
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ChangeShareChargeModeV2Request`
250
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ChangeShareChargeModeV2Response`
251
+ """
252
+ http_info = self._change_share_charge_mode_v2_http_info(request)
253
+ return self._call_api(**http_info)
254
+
255
+ def change_share_charge_mode_v2_invoker(self, request):
256
+ http_info = self._change_share_charge_mode_v2_http_info(request)
257
+ return SyncInvoker(self, http_info)
258
+
259
+ @classmethod
260
+ def _change_share_charge_mode_v2_http_info(cls, 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
+
308
+ def change_share_name(self, request):
309
+ r"""修改文件系统名称
310
+
311
+ 修改文件系统名称
312
+
313
+ Please refer to HUAWEI cloud API Explorer for details.
314
+
315
+ :param request: Request instance for ChangeShareName
316
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ChangeShareNameRequest`
317
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ChangeShareNameResponse`
318
+ """
319
+ http_info = self._change_share_name_http_info(request)
320
+ return self._call_api(**http_info)
321
+
322
+ def change_share_name_invoker(self, request):
323
+ http_info = self._change_share_name_http_info(request)
324
+ return SyncInvoker(self, http_info)
325
+
326
+ @classmethod
327
+ def _change_share_name_http_info(cls, request):
328
+ http_info = {
329
+ "method": "POST",
330
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/action",
331
+ "request_type": request.__class__.__name__,
332
+ "response_type": "ChangeShareNameResponse"
333
+ }
334
+
335
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
336
+
337
+ cname = None
338
+
339
+ collection_formats = {}
340
+
341
+ path_params = {}
342
+ if 'share_id' in local_var_params:
343
+ path_params['share_id'] = local_var_params['share_id']
344
+
345
+ query_params = []
346
+
347
+ header_params = {}
348
+
349
+ form_params = {}
350
+
351
+ body = None
352
+ if 'body' in local_var_params:
353
+ body = local_var_params['body']
354
+ if isinstance(request, SdkStreamRequest):
355
+ body = request.get_file_stream()
356
+
357
+ response_headers = []
358
+
359
+ header_params['Content-Type'] = http_utils.select_header_content_type(
360
+ ['application/json;charset=UTF-8'])
361
+
362
+ auth_settings = []
363
+
364
+ http_info["cname"] = cname
365
+ http_info["collection_formats"] = collection_formats
366
+ http_info["path_params"] = path_params
367
+ http_info["query_params"] = query_params
368
+ http_info["header_params"] = header_params
369
+ http_info["post_params"] = form_params
370
+ http_info["body"] = body
371
+ http_info["response_headers"] = response_headers
372
+
373
+ return http_info
374
+
375
+ def create_backend_target(self, request):
376
+ r"""绑定后端存储
377
+
378
+ 为SFS Turbo 文件系统绑定后端存储
379
+
380
+ Please refer to HUAWEI cloud API Explorer for details.
381
+
382
+ :param request: Request instance for CreateBackendTarget
383
+ :type request: :class:`huaweicloudsdksfsturbo.v1.CreateBackendTargetRequest`
384
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.CreateBackendTargetResponse`
385
+ """
386
+ http_info = self._create_backend_target_http_info(request)
387
+ return self._call_api(**http_info)
388
+
389
+ def create_backend_target_invoker(self, request):
390
+ http_info = self._create_backend_target_http_info(request)
391
+ return SyncInvoker(self, http_info)
392
+
393
+ @classmethod
394
+ def _create_backend_target_http_info(cls, request):
395
+ http_info = {
396
+ "method": "POST",
397
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/targets",
398
+ "request_type": request.__class__.__name__,
399
+ "response_type": "CreateBackendTargetResponse"
400
+ }
401
+
402
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
403
+
404
+ cname = None
405
+
406
+ collection_formats = {}
407
+
408
+ path_params = {}
409
+ if 'share_id' in local_var_params:
410
+ path_params['share_id'] = local_var_params['share_id']
411
+
412
+ query_params = []
413
+
414
+ header_params = {}
415
+
416
+ form_params = {}
417
+
418
+ body = None
419
+ if 'body' in local_var_params:
420
+ body = local_var_params['body']
421
+ if isinstance(request, SdkStreamRequest):
422
+ body = request.get_file_stream()
423
+
424
+ response_headers = ["X-request-id", ]
425
+
426
+ header_params['Content-Type'] = http_utils.select_header_content_type(
427
+ ['application/json;charset=UTF-8'])
428
+
429
+ auth_settings = []
430
+
431
+ http_info["cname"] = cname
432
+ http_info["collection_formats"] = collection_formats
433
+ http_info["path_params"] = path_params
434
+ http_info["query_params"] = query_params
435
+ http_info["header_params"] = header_params
436
+ http_info["post_params"] = form_params
437
+ http_info["body"] = body
438
+ http_info["response_headers"] = response_headers
439
+
440
+ return http_info
441
+
442
+ def create_fs_dir(self, request):
443
+ r"""创建目录
444
+
445
+ 创建目录
446
+
447
+ Please refer to HUAWEI cloud API Explorer for details.
448
+
449
+ :param request: Request instance for CreateFsDir
450
+ :type request: :class:`huaweicloudsdksfsturbo.v1.CreateFsDirRequest`
451
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.CreateFsDirResponse`
452
+ """
453
+ http_info = self._create_fs_dir_http_info(request)
454
+ return self._call_api(**http_info)
455
+
456
+ def create_fs_dir_invoker(self, request):
457
+ http_info = self._create_fs_dir_http_info(request)
458
+ return SyncInvoker(self, http_info)
459
+
460
+ @classmethod
461
+ def _create_fs_dir_http_info(cls, request):
462
+ http_info = {
463
+ "method": "POST",
464
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/fs/dir",
465
+ "request_type": request.__class__.__name__,
466
+ "response_type": "CreateFsDirResponse"
467
+ }
468
+
469
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
470
+
471
+ cname = None
472
+
473
+ collection_formats = {}
474
+
475
+ path_params = {}
476
+ if 'share_id' in local_var_params:
477
+ path_params['share_id'] = local_var_params['share_id']
478
+
479
+ query_params = []
480
+
481
+ header_params = {}
482
+
483
+ form_params = {}
484
+
485
+ body = None
486
+ if 'body' in local_var_params:
487
+ body = local_var_params['body']
488
+ if isinstance(request, SdkStreamRequest):
489
+ body = request.get_file_stream()
490
+
491
+ response_headers = []
492
+
493
+ header_params['Content-Type'] = http_utils.select_header_content_type(
494
+ ['application/json;charset=UTF-8'])
495
+
496
+ auth_settings = []
497
+
498
+ http_info["cname"] = cname
499
+ http_info["collection_formats"] = collection_formats
500
+ http_info["path_params"] = path_params
501
+ http_info["query_params"] = query_params
502
+ http_info["header_params"] = header_params
503
+ http_info["post_params"] = form_params
504
+ http_info["body"] = body
505
+ http_info["response_headers"] = response_headers
506
+
507
+ return http_info
508
+
509
+ def create_fs_dir_quota(self, request):
510
+ r"""创建目标文件夹配额
511
+
512
+ 创建目标文件夹配额。
513
+
514
+ Please refer to HUAWEI cloud API Explorer for details.
515
+
516
+ :param request: Request instance for CreateFsDirQuota
517
+ :type request: :class:`huaweicloudsdksfsturbo.v1.CreateFsDirQuotaRequest`
518
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.CreateFsDirQuotaResponse`
519
+ """
520
+ http_info = self._create_fs_dir_quota_http_info(request)
521
+ return self._call_api(**http_info)
522
+
523
+ def create_fs_dir_quota_invoker(self, request):
524
+ http_info = self._create_fs_dir_quota_http_info(request)
525
+ return SyncInvoker(self, http_info)
526
+
527
+ @classmethod
528
+ def _create_fs_dir_quota_http_info(cls, request):
529
+ http_info = {
530
+ "method": "POST",
531
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/fs/dir-quota",
532
+ "request_type": request.__class__.__name__,
533
+ "response_type": "CreateFsDirQuotaResponse"
534
+ }
535
+
536
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
537
+
538
+ cname = None
539
+
540
+ collection_formats = {}
541
+
542
+ path_params = {}
543
+ if 'share_id' in local_var_params:
544
+ path_params['share_id'] = local_var_params['share_id']
545
+
546
+ query_params = []
547
+
548
+ header_params = {}
549
+
550
+ form_params = {}
551
+
552
+ body = None
553
+ if 'body' in local_var_params:
554
+ body = local_var_params['body']
555
+ if isinstance(request, SdkStreamRequest):
556
+ body = request.get_file_stream()
557
+
558
+ response_headers = []
559
+
560
+ header_params['Content-Type'] = http_utils.select_header_content_type(
561
+ ['application/json;charset=UTF-8'])
562
+
563
+ auth_settings = []
564
+
565
+ http_info["cname"] = cname
566
+ http_info["collection_formats"] = collection_formats
567
+ http_info["path_params"] = path_params
568
+ http_info["query_params"] = query_params
569
+ http_info["header_params"] = header_params
570
+ http_info["post_params"] = form_params
571
+ http_info["body"] = body
572
+ http_info["response_headers"] = response_headers
573
+
574
+ return http_info
575
+
576
+ def create_fs_task(self, request):
577
+ r"""创建文件系统异步任务
578
+
579
+ 创建文件系统异步任务,仅支持异步查询目录资源使用情况,API请求路径的feature取值为dir-usage,以下简称为DU任务。
580
+
581
+ Please refer to HUAWEI cloud API Explorer for details.
582
+
583
+ :param request: Request instance for CreateFsTask
584
+ :type request: :class:`huaweicloudsdksfsturbo.v1.CreateFsTaskRequest`
585
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.CreateFsTaskResponse`
586
+ """
587
+ http_info = self._create_fs_task_http_info(request)
588
+ return self._call_api(**http_info)
589
+
590
+ def create_fs_task_invoker(self, request):
591
+ http_info = self._create_fs_task_http_info(request)
592
+ return SyncInvoker(self, http_info)
593
+
594
+ @classmethod
595
+ def _create_fs_task_http_info(cls, request):
596
+ http_info = {
597
+ "method": "POST",
598
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/fs/{feature}/tasks",
599
+ "request_type": request.__class__.__name__,
600
+ "response_type": "CreateFsTaskResponse"
601
+ }
602
+
603
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
604
+
605
+ cname = None
606
+
607
+ collection_formats = {}
608
+
609
+ path_params = {}
610
+ if 'share_id' in local_var_params:
611
+ path_params['share_id'] = local_var_params['share_id']
612
+ if 'feature' in local_var_params:
613
+ path_params['feature'] = local_var_params['feature']
614
+
615
+ query_params = []
616
+
617
+ header_params = {}
618
+
619
+ form_params = {}
620
+
621
+ body = None
622
+ if 'body' in local_var_params:
623
+ body = local_var_params['body']
624
+ if isinstance(request, SdkStreamRequest):
625
+ body = request.get_file_stream()
626
+
627
+ response_headers = ["X-request-id", ]
628
+
629
+ header_params['Content-Type'] = http_utils.select_header_content_type(
630
+ ['application/json;charset=UTF-8'])
631
+
632
+ auth_settings = []
633
+
634
+ http_info["cname"] = cname
635
+ http_info["collection_formats"] = collection_formats
636
+ http_info["path_params"] = path_params
637
+ http_info["query_params"] = query_params
638
+ http_info["header_params"] = header_params
639
+ http_info["post_params"] = form_params
640
+ http_info["body"] = body
641
+ http_info["response_headers"] = response_headers
642
+
643
+ return http_info
644
+
645
+ def create_hpc_cache_task(self, request):
646
+ r"""创建数据导入导出任务
647
+
648
+ 创建数据导入导出任务
649
+
650
+ Please refer to HUAWEI cloud API Explorer for details.
651
+
652
+ :param request: Request instance for CreateHpcCacheTask
653
+ :type request: :class:`huaweicloudsdksfsturbo.v1.CreateHpcCacheTaskRequest`
654
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.CreateHpcCacheTaskResponse`
655
+ """
656
+ http_info = self._create_hpc_cache_task_http_info(request)
657
+ return self._call_api(**http_info)
658
+
659
+ def create_hpc_cache_task_invoker(self, request):
660
+ http_info = self._create_hpc_cache_task_http_info(request)
661
+ return SyncInvoker(self, http_info)
662
+
663
+ @classmethod
664
+ def _create_hpc_cache_task_http_info(cls, request):
665
+ http_info = {
666
+ "method": "POST",
667
+ "resource_path": "/v1/{project_id}/sfs-turbo/{share_id}/hpc-cache/task",
668
+ "request_type": request.__class__.__name__,
669
+ "response_type": "CreateHpcCacheTaskResponse"
670
+ }
671
+
672
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
673
+
674
+ cname = None
675
+
676
+ collection_formats = {}
677
+
678
+ path_params = {}
679
+ if 'share_id' in local_var_params:
680
+ path_params['share_id'] = local_var_params['share_id']
681
+
682
+ query_params = []
683
+
684
+ header_params = {}
685
+
686
+ form_params = {}
687
+
688
+ body = None
689
+ if 'body' in local_var_params:
690
+ body = local_var_params['body']
691
+ if isinstance(request, SdkStreamRequest):
692
+ body = request.get_file_stream()
693
+
694
+ response_headers = ["X-request-id", ]
695
+
696
+ header_params['Content-Type'] = http_utils.select_header_content_type(
697
+ ['application/json;charset=UTF-8'])
698
+
699
+ auth_settings = []
700
+
701
+ http_info["cname"] = cname
702
+ http_info["collection_formats"] = collection_formats
703
+ http_info["path_params"] = path_params
704
+ http_info["query_params"] = query_params
705
+ http_info["header_params"] = header_params
706
+ http_info["post_params"] = form_params
707
+ http_info["body"] = body
708
+ http_info["response_headers"] = response_headers
709
+
710
+ return http_info
711
+
712
+ def create_ldap_config(self, request):
713
+ r"""创建并绑定LDAP配置
714
+
715
+ 创建并绑定LDAP配置。
716
+
717
+ Please refer to HUAWEI cloud API Explorer for details.
718
+
719
+ :param request: Request instance for CreateLdapConfig
720
+ :type request: :class:`huaweicloudsdksfsturbo.v1.CreateLdapConfigRequest`
721
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.CreateLdapConfigResponse`
722
+ """
723
+ http_info = self._create_ldap_config_http_info(request)
724
+ return self._call_api(**http_info)
725
+
726
+ def create_ldap_config_invoker(self, request):
727
+ http_info = self._create_ldap_config_http_info(request)
728
+ return SyncInvoker(self, http_info)
729
+
730
+ @classmethod
731
+ def _create_ldap_config_http_info(cls, request):
732
+ http_info = {
733
+ "method": "POST",
734
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/fs/ldap",
735
+ "request_type": request.__class__.__name__,
736
+ "response_type": "CreateLdapConfigResponse"
737
+ }
738
+
739
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
740
+
741
+ cname = None
742
+
743
+ collection_formats = {}
744
+
745
+ path_params = {}
746
+ if 'share_id' in local_var_params:
747
+ path_params['share_id'] = local_var_params['share_id']
748
+
749
+ query_params = []
750
+
751
+ header_params = {}
752
+
753
+ form_params = {}
754
+
755
+ body = None
756
+ if 'body' in local_var_params:
757
+ body = local_var_params['body']
758
+ if isinstance(request, SdkStreamRequest):
759
+ body = request.get_file_stream()
760
+
761
+ response_headers = ["X-request-id", ]
762
+
763
+ header_params['Content-Type'] = http_utils.select_header_content_type(
764
+ ['application/json;charset=UTF-8'])
765
+
766
+ auth_settings = []
767
+
768
+ http_info["cname"] = cname
769
+ http_info["collection_formats"] = collection_formats
770
+ http_info["path_params"] = path_params
771
+ http_info["query_params"] = query_params
772
+ http_info["header_params"] = header_params
773
+ http_info["post_params"] = form_params
774
+ http_info["body"] = body
775
+ http_info["response_headers"] = response_headers
776
+
777
+ return http_info
778
+
779
+ def create_perm_rule(self, request):
780
+ r"""创建权限规则
781
+
782
+ 创建权限规则
783
+
784
+ Please refer to HUAWEI cloud API Explorer for details.
785
+
786
+ :param request: Request instance for CreatePermRule
787
+ :type request: :class:`huaweicloudsdksfsturbo.v1.CreatePermRuleRequest`
788
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.CreatePermRuleResponse`
789
+ """
790
+ http_info = self._create_perm_rule_http_info(request)
791
+ return self._call_api(**http_info)
792
+
793
+ def create_perm_rule_invoker(self, request):
794
+ http_info = self._create_perm_rule_http_info(request)
795
+ return SyncInvoker(self, http_info)
796
+
797
+ @classmethod
798
+ def _create_perm_rule_http_info(cls, request):
799
+ http_info = {
800
+ "method": "POST",
801
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules",
802
+ "request_type": request.__class__.__name__,
803
+ "response_type": "CreatePermRuleResponse"
804
+ }
805
+
806
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
807
+
808
+ cname = None
809
+
810
+ collection_formats = {}
811
+
812
+ path_params = {}
813
+ if 'share_id' in local_var_params:
814
+ path_params['share_id'] = local_var_params['share_id']
815
+
816
+ query_params = []
817
+
818
+ header_params = {}
819
+
820
+ form_params = {}
821
+
822
+ body = None
823
+ if 'body' in local_var_params:
824
+ body = local_var_params['body']
825
+ if isinstance(request, SdkStreamRequest):
826
+ body = request.get_file_stream()
827
+
828
+ response_headers = []
829
+
830
+ header_params['Content-Type'] = http_utils.select_header_content_type(
831
+ ['application/json;charset=UTF-8'])
832
+
833
+ auth_settings = []
834
+
835
+ http_info["cname"] = cname
836
+ http_info["collection_formats"] = collection_formats
837
+ http_info["path_params"] = path_params
838
+ http_info["query_params"] = query_params
839
+ http_info["header_params"] = header_params
840
+ http_info["post_params"] = form_params
841
+ http_info["body"] = body
842
+ http_info["response_headers"] = response_headers
843
+
844
+ return http_info
845
+
846
+ def create_share(self, request):
847
+ r"""创建文件系统
848
+
849
+ 创建文件系统。
850
+
851
+ Please refer to HUAWEI cloud API Explorer for details.
852
+
853
+ :param request: Request instance for CreateShare
854
+ :type request: :class:`huaweicloudsdksfsturbo.v1.CreateShareRequest`
855
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.CreateShareResponse`
856
+ """
857
+ http_info = self._create_share_http_info(request)
858
+ return self._call_api(**http_info)
859
+
860
+ def create_share_invoker(self, request):
861
+ http_info = self._create_share_http_info(request)
862
+ return SyncInvoker(self, http_info)
863
+
864
+ @classmethod
865
+ def _create_share_http_info(cls, request):
866
+ http_info = {
867
+ "method": "POST",
868
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares",
869
+ "request_type": request.__class__.__name__,
870
+ "response_type": "CreateShareResponse"
871
+ }
872
+
873
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
874
+
875
+ cname = None
876
+
877
+ collection_formats = {}
878
+
879
+ path_params = {}
880
+
881
+ query_params = []
882
+
883
+ header_params = {}
884
+
885
+ form_params = {}
886
+
887
+ body = None
888
+ if 'body' in local_var_params:
889
+ body = local_var_params['body']
890
+ if isinstance(request, SdkStreamRequest):
891
+ body = request.get_file_stream()
892
+
893
+ response_headers = []
894
+
895
+ header_params['Content-Type'] = http_utils.select_header_content_type(
896
+ ['application/json;charset=UTF-8'])
897
+
898
+ auth_settings = []
899
+
900
+ http_info["cname"] = cname
901
+ http_info["collection_formats"] = collection_formats
902
+ http_info["path_params"] = path_params
903
+ http_info["query_params"] = query_params
904
+ http_info["header_params"] = header_params
905
+ http_info["post_params"] = form_params
906
+ http_info["body"] = body
907
+ http_info["response_headers"] = response_headers
908
+
909
+ return http_info
910
+
911
+ def create_shared_tag(self, request):
912
+ r"""创建共享标签
913
+
914
+ 指定共享添加一个标签。
915
+ 一个共享上最多有20个标签。
916
+ 一个共享上的多个标签的key不允许重复。
917
+ 此接口为幂等接口:如果要添加的key在共享上已存在,则覆盖更新标签。
918
+
919
+ Please refer to HUAWEI cloud API Explorer for details.
920
+
921
+ :param request: Request instance for CreateSharedTag
922
+ :type request: :class:`huaweicloudsdksfsturbo.v1.CreateSharedTagRequest`
923
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.CreateSharedTagResponse`
924
+ """
925
+ http_info = self._create_shared_tag_http_info(request)
926
+ return self._call_api(**http_info)
927
+
928
+ def create_shared_tag_invoker(self, request):
929
+ http_info = self._create_shared_tag_http_info(request)
930
+ return SyncInvoker(self, http_info)
931
+
932
+ @classmethod
933
+ def _create_shared_tag_http_info(cls, request):
934
+ http_info = {
935
+ "method": "POST",
936
+ "resource_path": "/v1/{project_id}/sfs-turbo/{share_id}/tags",
937
+ "request_type": request.__class__.__name__,
938
+ "response_type": "CreateSharedTagResponse"
939
+ }
940
+
941
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
942
+
943
+ cname = None
944
+
945
+ collection_formats = {}
946
+
947
+ path_params = {}
948
+ if 'share_id' in local_var_params:
949
+ path_params['share_id'] = local_var_params['share_id']
950
+
951
+ query_params = []
952
+
953
+ header_params = {}
954
+
955
+ form_params = {}
956
+
957
+ body = None
958
+ if 'body' in local_var_params:
959
+ body = local_var_params['body']
960
+ if isinstance(request, SdkStreamRequest):
961
+ body = request.get_file_stream()
962
+
963
+ response_headers = []
964
+
965
+ header_params['Content-Type'] = http_utils.select_header_content_type(
966
+ ['application/json;charset=UTF-8'])
967
+
968
+ auth_settings = []
969
+
970
+ http_info["cname"] = cname
971
+ http_info["collection_formats"] = collection_formats
972
+ http_info["path_params"] = path_params
973
+ http_info["query_params"] = query_params
974
+ http_info["header_params"] = header_params
975
+ http_info["post_params"] = form_params
976
+ http_info["body"] = body
977
+ http_info["response_headers"] = response_headers
978
+
979
+ return http_info
980
+
981
+ def delete_active_directory_domain(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
+ :param request: Request instance for DeleteActiveDirectoryDomain
989
+ :type request: :class:`huaweicloudsdksfsturbo.v1.DeleteActiveDirectoryDomainRequest`
990
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.DeleteActiveDirectoryDomainResponse`
991
+ """
992
+ http_info = self._delete_active_directory_domain_http_info(request)
993
+ return self._call_api(**http_info)
994
+
995
+ def delete_active_directory_domain_invoker(self, request):
996
+ http_info = self._delete_active_directory_domain_http_info(request)
997
+ return SyncInvoker(self, http_info)
998
+
999
+ @classmethod
1000
+ def _delete_active_directory_domain_http_info(cls, 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
+
1048
+ def delete_backend_target(self, request):
1049
+ r"""删除后端存储
1050
+
1051
+ 删除后端存储
1052
+
1053
+ Please refer to HUAWEI cloud API Explorer for details.
1054
+
1055
+ :param request: Request instance for DeleteBackendTarget
1056
+ :type request: :class:`huaweicloudsdksfsturbo.v1.DeleteBackendTargetRequest`
1057
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.DeleteBackendTargetResponse`
1058
+ """
1059
+ http_info = self._delete_backend_target_http_info(request)
1060
+ return self._call_api(**http_info)
1061
+
1062
+ def delete_backend_target_invoker(self, request):
1063
+ http_info = self._delete_backend_target_http_info(request)
1064
+ return SyncInvoker(self, http_info)
1065
+
1066
+ @classmethod
1067
+ def _delete_backend_target_http_info(cls, request):
1068
+ http_info = {
1069
+ "method": "DELETE",
1070
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/targets/{target_id}",
1071
+ "request_type": request.__class__.__name__,
1072
+ "response_type": "DeleteBackendTargetResponse"
1073
+ }
1074
+
1075
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1076
+
1077
+ cname = None
1078
+
1079
+ collection_formats = {}
1080
+
1081
+ path_params = {}
1082
+ if 'share_id' in local_var_params:
1083
+ path_params['share_id'] = local_var_params['share_id']
1084
+ if 'target_id' in local_var_params:
1085
+ path_params['target_id'] = local_var_params['target_id']
1086
+
1087
+ query_params = []
1088
+ if 'delete_data_in_file_system' in local_var_params:
1089
+ query_params.append(('delete_data_in_file_system', local_var_params['delete_data_in_file_system']))
1090
+
1091
+ header_params = {}
1092
+
1093
+ form_params = {}
1094
+
1095
+ body = None
1096
+ if isinstance(request, SdkStreamRequest):
1097
+ body = request.get_file_stream()
1098
+
1099
+ response_headers = ["X-request-id", ]
1100
+
1101
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1102
+ ['application/json'])
1103
+
1104
+ auth_settings = []
1105
+
1106
+ http_info["cname"] = cname
1107
+ http_info["collection_formats"] = collection_formats
1108
+ http_info["path_params"] = path_params
1109
+ http_info["query_params"] = query_params
1110
+ http_info["header_params"] = header_params
1111
+ http_info["post_params"] = form_params
1112
+ http_info["body"] = body
1113
+ http_info["response_headers"] = response_headers
1114
+
1115
+ return http_info
1116
+
1117
+ def delete_fs_dir(self, request):
1118
+ r"""删除文件系统目录
1119
+
1120
+ 删除文件系统目录
1121
+
1122
+ Please refer to HUAWEI cloud API Explorer for details.
1123
+
1124
+ :param request: Request instance for DeleteFsDir
1125
+ :type request: :class:`huaweicloudsdksfsturbo.v1.DeleteFsDirRequest`
1126
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.DeleteFsDirResponse`
1127
+ """
1128
+ http_info = self._delete_fs_dir_http_info(request)
1129
+ return self._call_api(**http_info)
1130
+
1131
+ def delete_fs_dir_invoker(self, request):
1132
+ http_info = self._delete_fs_dir_http_info(request)
1133
+ return SyncInvoker(self, http_info)
1134
+
1135
+ @classmethod
1136
+ def _delete_fs_dir_http_info(cls, request):
1137
+ http_info = {
1138
+ "method": "DELETE",
1139
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/fs/dir",
1140
+ "request_type": request.__class__.__name__,
1141
+ "response_type": "DeleteFsDirResponse"
1142
+ }
1143
+
1144
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1145
+
1146
+ cname = None
1147
+
1148
+ collection_formats = {}
1149
+
1150
+ path_params = {}
1151
+ if 'share_id' in local_var_params:
1152
+ path_params['share_id'] = local_var_params['share_id']
1153
+
1154
+ query_params = []
1155
+
1156
+ header_params = {}
1157
+
1158
+ form_params = {}
1159
+
1160
+ body = None
1161
+ if 'body' in local_var_params:
1162
+ body = local_var_params['body']
1163
+ if isinstance(request, SdkStreamRequest):
1164
+ body = request.get_file_stream()
1165
+
1166
+ response_headers = []
1167
+
1168
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1169
+ ['application/json;charset=UTF-8'])
1170
+
1171
+ auth_settings = []
1172
+
1173
+ http_info["cname"] = cname
1174
+ http_info["collection_formats"] = collection_formats
1175
+ http_info["path_params"] = path_params
1176
+ http_info["query_params"] = query_params
1177
+ http_info["header_params"] = header_params
1178
+ http_info["post_params"] = form_params
1179
+ http_info["body"] = body
1180
+ http_info["response_headers"] = response_headers
1181
+
1182
+ return http_info
1183
+
1184
+ def delete_fs_dir_quota(self, request):
1185
+ r"""删除目标文件夹配额
1186
+
1187
+ 删除目标文件夹配额。
1188
+
1189
+ Please refer to HUAWEI cloud API Explorer for details.
1190
+
1191
+ :param request: Request instance for DeleteFsDirQuota
1192
+ :type request: :class:`huaweicloudsdksfsturbo.v1.DeleteFsDirQuotaRequest`
1193
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.DeleteFsDirQuotaResponse`
1194
+ """
1195
+ http_info = self._delete_fs_dir_quota_http_info(request)
1196
+ return self._call_api(**http_info)
1197
+
1198
+ def delete_fs_dir_quota_invoker(self, request):
1199
+ http_info = self._delete_fs_dir_quota_http_info(request)
1200
+ return SyncInvoker(self, http_info)
1201
+
1202
+ @classmethod
1203
+ def _delete_fs_dir_quota_http_info(cls, request):
1204
+ http_info = {
1205
+ "method": "DELETE",
1206
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/fs/dir-quota",
1207
+ "request_type": request.__class__.__name__,
1208
+ "response_type": "DeleteFsDirQuotaResponse"
1209
+ }
1210
+
1211
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1212
+
1213
+ cname = None
1214
+
1215
+ collection_formats = {}
1216
+
1217
+ path_params = {}
1218
+ if 'share_id' in local_var_params:
1219
+ path_params['share_id'] = local_var_params['share_id']
1220
+
1221
+ query_params = []
1222
+
1223
+ header_params = {}
1224
+
1225
+ form_params = {}
1226
+
1227
+ body = None
1228
+ if 'body' in local_var_params:
1229
+ body = local_var_params['body']
1230
+ if isinstance(request, SdkStreamRequest):
1231
+ body = request.get_file_stream()
1232
+
1233
+ response_headers = []
1234
+
1235
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1236
+ ['application/json;charset=UTF-8'])
1237
+
1238
+ auth_settings = []
1239
+
1240
+ http_info["cname"] = cname
1241
+ http_info["collection_formats"] = collection_formats
1242
+ http_info["path_params"] = path_params
1243
+ http_info["query_params"] = query_params
1244
+ http_info["header_params"] = header_params
1245
+ http_info["post_params"] = form_params
1246
+ http_info["body"] = body
1247
+ http_info["response_headers"] = response_headers
1248
+
1249
+ return http_info
1250
+
1251
+ def delete_fs_task(self, request):
1252
+ r"""取消/删除文件系统异步任务
1253
+
1254
+ 如果异步任务正在执行,则取消并删除任务;否则,删除任务。仅支持删除目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。
1255
+
1256
+ Please refer to HUAWEI cloud API Explorer for details.
1257
+
1258
+ :param request: Request instance for DeleteFsTask
1259
+ :type request: :class:`huaweicloudsdksfsturbo.v1.DeleteFsTaskRequest`
1260
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.DeleteFsTaskResponse`
1261
+ """
1262
+ http_info = self._delete_fs_task_http_info(request)
1263
+ return self._call_api(**http_info)
1264
+
1265
+ def delete_fs_task_invoker(self, request):
1266
+ http_info = self._delete_fs_task_http_info(request)
1267
+ return SyncInvoker(self, http_info)
1268
+
1269
+ @classmethod
1270
+ def _delete_fs_task_http_info(cls, request):
1271
+ http_info = {
1272
+ "method": "DELETE",
1273
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/fs/{feature}/tasks/{task_id}",
1274
+ "request_type": request.__class__.__name__,
1275
+ "response_type": "DeleteFsTaskResponse"
1276
+ }
1277
+
1278
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1279
+
1280
+ cname = None
1281
+
1282
+ collection_formats = {}
1283
+
1284
+ path_params = {}
1285
+ if 'share_id' in local_var_params:
1286
+ path_params['share_id'] = local_var_params['share_id']
1287
+ if 'feature' in local_var_params:
1288
+ path_params['feature'] = local_var_params['feature']
1289
+ if 'task_id' in local_var_params:
1290
+ path_params['task_id'] = local_var_params['task_id']
1291
+
1292
+ query_params = []
1293
+
1294
+ header_params = {}
1295
+
1296
+ form_params = {}
1297
+
1298
+ body = None
1299
+ if isinstance(request, SdkStreamRequest):
1300
+ body = request.get_file_stream()
1301
+
1302
+ response_headers = ["X-request-id", ]
1303
+
1304
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1305
+ ['application/json'])
1306
+
1307
+ auth_settings = []
1308
+
1309
+ http_info["cname"] = cname
1310
+ http_info["collection_formats"] = collection_formats
1311
+ http_info["path_params"] = path_params
1312
+ http_info["query_params"] = query_params
1313
+ http_info["header_params"] = header_params
1314
+ http_info["post_params"] = form_params
1315
+ http_info["body"] = body
1316
+ http_info["response_headers"] = response_headers
1317
+
1318
+ return http_info
1319
+
1320
+ def delete_hpc_cache_task(self, request):
1321
+ r"""删除数据导入导出任务
1322
+
1323
+ 删除数据导入导出任务
1324
+
1325
+ Please refer to HUAWEI cloud API Explorer for details.
1326
+
1327
+ :param request: Request instance for DeleteHpcCacheTask
1328
+ :type request: :class:`huaweicloudsdksfsturbo.v1.DeleteHpcCacheTaskRequest`
1329
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.DeleteHpcCacheTaskResponse`
1330
+ """
1331
+ http_info = self._delete_hpc_cache_task_http_info(request)
1332
+ return self._call_api(**http_info)
1333
+
1334
+ def delete_hpc_cache_task_invoker(self, request):
1335
+ http_info = self._delete_hpc_cache_task_http_info(request)
1336
+ return SyncInvoker(self, http_info)
1337
+
1338
+ @classmethod
1339
+ def _delete_hpc_cache_task_http_info(cls, request):
1340
+ http_info = {
1341
+ "method": "DELETE",
1342
+ "resource_path": "/v1/{project_id}/sfs-turbo/{share_id}/hpc-cache/task/{task_id}",
1343
+ "request_type": request.__class__.__name__,
1344
+ "response_type": "DeleteHpcCacheTaskResponse"
1345
+ }
1346
+
1347
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1348
+
1349
+ cname = None
1350
+
1351
+ collection_formats = {}
1352
+
1353
+ path_params = {}
1354
+ if 'share_id' in local_var_params:
1355
+ path_params['share_id'] = local_var_params['share_id']
1356
+ if 'task_id' in local_var_params:
1357
+ path_params['task_id'] = local_var_params['task_id']
1358
+
1359
+ query_params = []
1360
+
1361
+ header_params = {}
1362
+
1363
+ form_params = {}
1364
+
1365
+ body = None
1366
+ if isinstance(request, SdkStreamRequest):
1367
+ body = request.get_file_stream()
1368
+
1369
+ response_headers = ["X-request-id", ]
1370
+
1371
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1372
+ ['application/json'])
1373
+
1374
+ auth_settings = []
1375
+
1376
+ http_info["cname"] = cname
1377
+ http_info["collection_formats"] = collection_formats
1378
+ http_info["path_params"] = path_params
1379
+ http_info["query_params"] = query_params
1380
+ http_info["header_params"] = header_params
1381
+ http_info["post_params"] = form_params
1382
+ http_info["body"] = body
1383
+ http_info["response_headers"] = response_headers
1384
+
1385
+ return http_info
1386
+
1387
+ def delete_ldap_config(self, request):
1388
+ r"""删除LDAP配置
1389
+
1390
+ 删除LDAP配置。
1391
+
1392
+ Please refer to HUAWEI cloud API Explorer for details.
1393
+
1394
+ :param request: Request instance for DeleteLdapConfig
1395
+ :type request: :class:`huaweicloudsdksfsturbo.v1.DeleteLdapConfigRequest`
1396
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.DeleteLdapConfigResponse`
1397
+ """
1398
+ http_info = self._delete_ldap_config_http_info(request)
1399
+ return self._call_api(**http_info)
1400
+
1401
+ def delete_ldap_config_invoker(self, request):
1402
+ http_info = self._delete_ldap_config_http_info(request)
1403
+ return SyncInvoker(self, http_info)
1404
+
1405
+ @classmethod
1406
+ def _delete_ldap_config_http_info(cls, request):
1407
+ http_info = {
1408
+ "method": "DELETE",
1409
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/fs/ldap",
1410
+ "request_type": request.__class__.__name__,
1411
+ "response_type": "DeleteLdapConfigResponse"
1412
+ }
1413
+
1414
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1415
+
1416
+ cname = None
1417
+
1418
+ collection_formats = {}
1419
+
1420
+ path_params = {}
1421
+ if 'share_id' in local_var_params:
1422
+ path_params['share_id'] = local_var_params['share_id']
1423
+
1424
+ query_params = []
1425
+
1426
+ header_params = {}
1427
+
1428
+ form_params = {}
1429
+
1430
+ body = None
1431
+ if isinstance(request, SdkStreamRequest):
1432
+ body = request.get_file_stream()
1433
+
1434
+ response_headers = ["X-request-id", ]
1435
+
1436
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1437
+ ['application/json'])
1438
+
1439
+ auth_settings = []
1440
+
1441
+ http_info["cname"] = cname
1442
+ http_info["collection_formats"] = collection_formats
1443
+ http_info["path_params"] = path_params
1444
+ http_info["query_params"] = query_params
1445
+ http_info["header_params"] = header_params
1446
+ http_info["post_params"] = form_params
1447
+ http_info["body"] = body
1448
+ http_info["response_headers"] = response_headers
1449
+
1450
+ return http_info
1451
+
1452
+ def delete_perm_rule(self, request):
1453
+ r"""删除权限规则
1454
+
1455
+ 删除权限规则
1456
+
1457
+ Please refer to HUAWEI cloud API Explorer for details.
1458
+
1459
+ :param request: Request instance for DeletePermRule
1460
+ :type request: :class:`huaweicloudsdksfsturbo.v1.DeletePermRuleRequest`
1461
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.DeletePermRuleResponse`
1462
+ """
1463
+ http_info = self._delete_perm_rule_http_info(request)
1464
+ return self._call_api(**http_info)
1465
+
1466
+ def delete_perm_rule_invoker(self, request):
1467
+ http_info = self._delete_perm_rule_http_info(request)
1468
+ return SyncInvoker(self, http_info)
1469
+
1470
+ @classmethod
1471
+ def _delete_perm_rule_http_info(cls, request):
1472
+ http_info = {
1473
+ "method": "DELETE",
1474
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}",
1475
+ "request_type": request.__class__.__name__,
1476
+ "response_type": "DeletePermRuleResponse"
1477
+ }
1478
+
1479
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1480
+
1481
+ cname = None
1482
+
1483
+ collection_formats = {}
1484
+
1485
+ path_params = {}
1486
+ if 'share_id' in local_var_params:
1487
+ path_params['share_id'] = local_var_params['share_id']
1488
+ if 'rule_id' in local_var_params:
1489
+ path_params['rule_id'] = local_var_params['rule_id']
1490
+
1491
+ query_params = []
1492
+
1493
+ header_params = {}
1494
+
1495
+ form_params = {}
1496
+
1497
+ body = None
1498
+ if isinstance(request, SdkStreamRequest):
1499
+ body = request.get_file_stream()
1500
+
1501
+ response_headers = []
1502
+
1503
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1504
+ ['application/json'])
1505
+
1506
+ auth_settings = []
1507
+
1508
+ http_info["cname"] = cname
1509
+ http_info["collection_formats"] = collection_formats
1510
+ http_info["path_params"] = path_params
1511
+ http_info["query_params"] = query_params
1512
+ http_info["header_params"] = header_params
1513
+ http_info["post_params"] = form_params
1514
+ http_info["body"] = body
1515
+ http_info["response_headers"] = response_headers
1516
+
1517
+ return http_info
1518
+
1519
+ def delete_share(self, request):
1520
+ r"""删除文件系统
1521
+
1522
+ 删除文件系统。
1523
+
1524
+ Please refer to HUAWEI cloud API Explorer for details.
1525
+
1526
+ :param request: Request instance for DeleteShare
1527
+ :type request: :class:`huaweicloudsdksfsturbo.v1.DeleteShareRequest`
1528
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.DeleteShareResponse`
1529
+ """
1530
+ http_info = self._delete_share_http_info(request)
1531
+ return self._call_api(**http_info)
1532
+
1533
+ def delete_share_invoker(self, request):
1534
+ http_info = self._delete_share_http_info(request)
1535
+ return SyncInvoker(self, http_info)
1536
+
1537
+ @classmethod
1538
+ def _delete_share_http_info(cls, request):
1539
+ http_info = {
1540
+ "method": "DELETE",
1541
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}",
1542
+ "request_type": request.__class__.__name__,
1543
+ "response_type": "DeleteShareResponse"
1544
+ }
1545
+
1546
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1547
+
1548
+ cname = None
1549
+
1550
+ collection_formats = {}
1551
+
1552
+ path_params = {}
1553
+ if 'share_id' in local_var_params:
1554
+ path_params['share_id'] = local_var_params['share_id']
1555
+
1556
+ query_params = []
1557
+
1558
+ header_params = {}
1559
+
1560
+ form_params = {}
1561
+
1562
+ body = None
1563
+ if isinstance(request, SdkStreamRequest):
1564
+ body = request.get_file_stream()
1565
+
1566
+ response_headers = []
1567
+
1568
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1569
+ ['application/json'])
1570
+
1571
+ auth_settings = []
1572
+
1573
+ http_info["cname"] = cname
1574
+ http_info["collection_formats"] = collection_formats
1575
+ http_info["path_params"] = path_params
1576
+ http_info["query_params"] = query_params
1577
+ http_info["header_params"] = header_params
1578
+ http_info["post_params"] = form_params
1579
+ http_info["body"] = body
1580
+ http_info["response_headers"] = response_headers
1581
+
1582
+ return http_info
1583
+
1584
+ def delete_shared_tag(self, request):
1585
+ r"""删除共享标签
1586
+
1587
+ 指定共享删除一个标签。当共享中不存在指定要删除的key时,接口调用将会返回404错误。
1588
+
1589
+ Please refer to HUAWEI cloud API Explorer for details.
1590
+
1591
+ :param request: Request instance for DeleteSharedTag
1592
+ :type request: :class:`huaweicloudsdksfsturbo.v1.DeleteSharedTagRequest`
1593
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.DeleteSharedTagResponse`
1594
+ """
1595
+ http_info = self._delete_shared_tag_http_info(request)
1596
+ return self._call_api(**http_info)
1597
+
1598
+ def delete_shared_tag_invoker(self, request):
1599
+ http_info = self._delete_shared_tag_http_info(request)
1600
+ return SyncInvoker(self, http_info)
1601
+
1602
+ @classmethod
1603
+ def _delete_shared_tag_http_info(cls, request):
1604
+ http_info = {
1605
+ "method": "DELETE",
1606
+ "resource_path": "/v1/{project_id}/sfs-turbo/{share_id}/tags/{key}",
1607
+ "request_type": request.__class__.__name__,
1608
+ "response_type": "DeleteSharedTagResponse"
1609
+ }
1610
+
1611
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1612
+
1613
+ cname = None
1614
+
1615
+ collection_formats = {}
1616
+
1617
+ path_params = {}
1618
+ if 'share_id' in local_var_params:
1619
+ path_params['share_id'] = local_var_params['share_id']
1620
+ if 'key' in local_var_params:
1621
+ path_params['key'] = local_var_params['key']
1622
+
1623
+ query_params = []
1624
+
1625
+ header_params = {}
1626
+
1627
+ form_params = {}
1628
+
1629
+ body = None
1630
+ if isinstance(request, SdkStreamRequest):
1631
+ body = request.get_file_stream()
1632
+
1633
+ response_headers = []
1634
+
1635
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1636
+ ['application/json'])
1637
+
1638
+ auth_settings = []
1639
+
1640
+ http_info["cname"] = cname
1641
+ http_info["collection_formats"] = collection_formats
1642
+ http_info["path_params"] = path_params
1643
+ http_info["query_params"] = query_params
1644
+ http_info["header_params"] = header_params
1645
+ http_info["post_params"] = form_params
1646
+ http_info["body"] = body
1647
+ http_info["response_headers"] = response_headers
1648
+
1649
+ return http_info
1650
+
1651
+ def expand_share(self, request):
1652
+ r"""扩容文件系统
1653
+
1654
+ 扩容文件系统。
1655
+
1656
+ Please refer to HUAWEI cloud API Explorer for details.
1657
+
1658
+ :param request: Request instance for ExpandShare
1659
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ExpandShareRequest`
1660
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ExpandShareResponse`
1661
+ """
1662
+ http_info = self._expand_share_http_info(request)
1663
+ return self._call_api(**http_info)
1664
+
1665
+ def expand_share_invoker(self, request):
1666
+ http_info = self._expand_share_http_info(request)
1667
+ return SyncInvoker(self, http_info)
1668
+
1669
+ @classmethod
1670
+ def _expand_share_http_info(cls, request):
1671
+ http_info = {
1672
+ "method": "POST",
1673
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/action",
1674
+ "request_type": request.__class__.__name__,
1675
+ "response_type": "ExpandShareResponse"
1676
+ }
1677
+
1678
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1679
+
1680
+ cname = None
1681
+
1682
+ collection_formats = {}
1683
+
1684
+ path_params = {}
1685
+ if 'share_id' in local_var_params:
1686
+ path_params['share_id'] = local_var_params['share_id']
1687
+
1688
+ query_params = []
1689
+
1690
+ header_params = {}
1691
+
1692
+ form_params = {}
1693
+
1694
+ body = None
1695
+ if 'body' in local_var_params:
1696
+ body = local_var_params['body']
1697
+ if isinstance(request, SdkStreamRequest):
1698
+ body = request.get_file_stream()
1699
+
1700
+ response_headers = []
1701
+
1702
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1703
+ ['application/json;charset=UTF-8'])
1704
+
1705
+ auth_settings = []
1706
+
1707
+ http_info["cname"] = cname
1708
+ http_info["collection_formats"] = collection_formats
1709
+ http_info["path_params"] = path_params
1710
+ http_info["query_params"] = query_params
1711
+ http_info["header_params"] = header_params
1712
+ http_info["post_params"] = form_params
1713
+ http_info["body"] = body
1714
+ http_info["response_headers"] = response_headers
1715
+
1716
+ return http_info
1717
+
1718
+ def list_backend_targets(self, request):
1719
+ r"""查询后端存储列表
1720
+
1721
+ 查询后端存储列表
1722
+
1723
+ Please refer to HUAWEI cloud API Explorer for details.
1724
+
1725
+ :param request: Request instance for ListBackendTargets
1726
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ListBackendTargetsRequest`
1727
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ListBackendTargetsResponse`
1728
+ """
1729
+ http_info = self._list_backend_targets_http_info(request)
1730
+ return self._call_api(**http_info)
1731
+
1732
+ def list_backend_targets_invoker(self, request):
1733
+ http_info = self._list_backend_targets_http_info(request)
1734
+ return SyncInvoker(self, http_info)
1735
+
1736
+ @classmethod
1737
+ def _list_backend_targets_http_info(cls, request):
1738
+ http_info = {
1739
+ "method": "GET",
1740
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/targets",
1741
+ "request_type": request.__class__.__name__,
1742
+ "response_type": "ListBackendTargetsResponse"
1743
+ }
1744
+
1745
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1746
+
1747
+ cname = None
1748
+
1749
+ collection_formats = {}
1750
+
1751
+ path_params = {}
1752
+ if 'share_id' in local_var_params:
1753
+ path_params['share_id'] = local_var_params['share_id']
1754
+
1755
+ query_params = []
1756
+ if 'limit' in local_var_params:
1757
+ query_params.append(('limit', local_var_params['limit']))
1758
+ if 'marker' in local_var_params:
1759
+ query_params.append(('marker', local_var_params['marker']))
1760
+
1761
+ header_params = {}
1762
+
1763
+ form_params = {}
1764
+
1765
+ body = None
1766
+ if isinstance(request, SdkStreamRequest):
1767
+ body = request.get_file_stream()
1768
+
1769
+ response_headers = ["X-request-id", ]
1770
+
1771
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1772
+ ['application/json'])
1773
+
1774
+ auth_settings = []
1775
+
1776
+ http_info["cname"] = cname
1777
+ http_info["collection_formats"] = collection_formats
1778
+ http_info["path_params"] = path_params
1779
+ http_info["query_params"] = query_params
1780
+ http_info["header_params"] = header_params
1781
+ http_info["post_params"] = form_params
1782
+ http_info["body"] = body
1783
+ http_info["response_headers"] = response_headers
1784
+
1785
+ return http_info
1786
+
1787
+ def list_fs_tasks(self, request):
1788
+ r"""获取文件系统异步任务列表
1789
+
1790
+ 获取文件系统异步任务列表。仅支持查询目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。
1791
+
1792
+ Please refer to HUAWEI cloud API Explorer for details.
1793
+
1794
+ :param request: Request instance for ListFsTasks
1795
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ListFsTasksRequest`
1796
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ListFsTasksResponse`
1797
+ """
1798
+ http_info = self._list_fs_tasks_http_info(request)
1799
+ return self._call_api(**http_info)
1800
+
1801
+ def list_fs_tasks_invoker(self, request):
1802
+ http_info = self._list_fs_tasks_http_info(request)
1803
+ return SyncInvoker(self, http_info)
1804
+
1805
+ @classmethod
1806
+ def _list_fs_tasks_http_info(cls, request):
1807
+ http_info = {
1808
+ "method": "GET",
1809
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/fs/{feature}/tasks",
1810
+ "request_type": request.__class__.__name__,
1811
+ "response_type": "ListFsTasksResponse"
1812
+ }
1813
+
1814
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1815
+
1816
+ cname = None
1817
+
1818
+ collection_formats = {}
1819
+
1820
+ path_params = {}
1821
+ if 'share_id' in local_var_params:
1822
+ path_params['share_id'] = local_var_params['share_id']
1823
+ if 'feature' in local_var_params:
1824
+ path_params['feature'] = local_var_params['feature']
1825
+
1826
+ query_params = []
1827
+ if 'marker' in local_var_params:
1828
+ query_params.append(('marker', local_var_params['marker']))
1829
+ if 'limit' in local_var_params:
1830
+ query_params.append(('limit', local_var_params['limit']))
1831
+
1832
+ header_params = {}
1833
+
1834
+ form_params = {}
1835
+
1836
+ body = None
1837
+ if isinstance(request, SdkStreamRequest):
1838
+ body = request.get_file_stream()
1839
+
1840
+ response_headers = ["X-request-id", ]
1841
+
1842
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1843
+ ['application/json'])
1844
+
1845
+ auth_settings = []
1846
+
1847
+ http_info["cname"] = cname
1848
+ http_info["collection_formats"] = collection_formats
1849
+ http_info["path_params"] = path_params
1850
+ http_info["query_params"] = query_params
1851
+ http_info["header_params"] = header_params
1852
+ http_info["post_params"] = form_params
1853
+ http_info["body"] = body
1854
+ http_info["response_headers"] = response_headers
1855
+
1856
+ return http_info
1857
+
1858
+ def list_hpc_cache_tasks(self, request):
1859
+ r"""查询数据导入导出任务列表
1860
+
1861
+ 查询数据导入导出任务列表
1862
+
1863
+ Please refer to HUAWEI cloud API Explorer for details.
1864
+
1865
+ :param request: Request instance for ListHpcCacheTasks
1866
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ListHpcCacheTasksRequest`
1867
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ListHpcCacheTasksResponse`
1868
+ """
1869
+ http_info = self._list_hpc_cache_tasks_http_info(request)
1870
+ return self._call_api(**http_info)
1871
+
1872
+ def list_hpc_cache_tasks_invoker(self, request):
1873
+ http_info = self._list_hpc_cache_tasks_http_info(request)
1874
+ return SyncInvoker(self, http_info)
1875
+
1876
+ @classmethod
1877
+ def _list_hpc_cache_tasks_http_info(cls, request):
1878
+ http_info = {
1879
+ "method": "GET",
1880
+ "resource_path": "/v1/{project_id}/sfs-turbo/{share_id}/hpc-cache/tasks",
1881
+ "request_type": request.__class__.__name__,
1882
+ "response_type": "ListHpcCacheTasksResponse"
1883
+ }
1884
+
1885
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1886
+
1887
+ cname = None
1888
+
1889
+ collection_formats = {}
1890
+
1891
+ path_params = {}
1892
+ if 'share_id' in local_var_params:
1893
+ path_params['share_id'] = local_var_params['share_id']
1894
+
1895
+ query_params = []
1896
+ if 'type' in local_var_params:
1897
+ query_params.append(('type', local_var_params['type']))
1898
+ if 'status' in local_var_params:
1899
+ query_params.append(('status', local_var_params['status']))
1900
+ if 'offset' in local_var_params:
1901
+ query_params.append(('offset', local_var_params['offset']))
1902
+ if 'limit' in local_var_params:
1903
+ query_params.append(('limit', local_var_params['limit']))
1904
+ if 'start_time' in local_var_params:
1905
+ query_params.append(('start_time', local_var_params['start_time']))
1906
+ if 'end_time' in local_var_params:
1907
+ query_params.append(('end_time', local_var_params['end_time']))
1908
+
1909
+ header_params = {}
1910
+
1911
+ form_params = {}
1912
+
1913
+ body = None
1914
+ if isinstance(request, SdkStreamRequest):
1915
+ body = request.get_file_stream()
1916
+
1917
+ response_headers = ["X-request-id", ]
1918
+
1919
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1920
+ ['application/json'])
1921
+
1922
+ auth_settings = []
1923
+
1924
+ http_info["cname"] = cname
1925
+ http_info["collection_formats"] = collection_formats
1926
+ http_info["path_params"] = path_params
1927
+ http_info["query_params"] = query_params
1928
+ http_info["header_params"] = header_params
1929
+ http_info["post_params"] = form_params
1930
+ http_info["body"] = body
1931
+ http_info["response_headers"] = response_headers
1932
+
1933
+ return http_info
1934
+
1935
+ def list_perm_rules(self, request):
1936
+ r"""查询文件系统的权限规则列表
1937
+
1938
+ 查询文件系统的权限规则列表
1939
+
1940
+ Please refer to HUAWEI cloud API Explorer for details.
1941
+
1942
+ :param request: Request instance for ListPermRules
1943
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ListPermRulesRequest`
1944
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ListPermRulesResponse`
1945
+ """
1946
+ http_info = self._list_perm_rules_http_info(request)
1947
+ return self._call_api(**http_info)
1948
+
1949
+ def list_perm_rules_invoker(self, request):
1950
+ http_info = self._list_perm_rules_http_info(request)
1951
+ return SyncInvoker(self, http_info)
1952
+
1953
+ @classmethod
1954
+ def _list_perm_rules_http_info(cls, request):
1955
+ http_info = {
1956
+ "method": "GET",
1957
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules",
1958
+ "request_type": request.__class__.__name__,
1959
+ "response_type": "ListPermRulesResponse"
1960
+ }
1961
+
1962
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1963
+
1964
+ cname = None
1965
+
1966
+ collection_formats = {}
1967
+
1968
+ path_params = {}
1969
+ if 'share_id' in local_var_params:
1970
+ path_params['share_id'] = local_var_params['share_id']
1971
+
1972
+ query_params = []
1973
+ if 'limit' in local_var_params:
1974
+ query_params.append(('limit', local_var_params['limit']))
1975
+ if 'offset' in local_var_params:
1976
+ query_params.append(('offset', local_var_params['offset']))
1977
+
1978
+ header_params = {}
1979
+
1980
+ form_params = {}
1981
+
1982
+ body = None
1983
+ if isinstance(request, SdkStreamRequest):
1984
+ body = request.get_file_stream()
1985
+
1986
+ response_headers = []
1987
+
1988
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1989
+ ['application/json'])
1990
+
1991
+ auth_settings = []
1992
+
1993
+ http_info["cname"] = cname
1994
+ http_info["collection_formats"] = collection_formats
1995
+ http_info["path_params"] = path_params
1996
+ http_info["query_params"] = query_params
1997
+ http_info["header_params"] = header_params
1998
+ http_info["post_params"] = form_params
1999
+ http_info["body"] = body
2000
+ http_info["response_headers"] = response_headers
2001
+
2002
+ return http_info
2003
+
2004
+ def list_share_types(self, request):
2005
+ r"""查询文件系统类型和配额
2006
+
2007
+ 查询文件系统类型和配额
2008
+
2009
+ Please refer to HUAWEI cloud API Explorer for details.
2010
+
2011
+ :param request: Request instance for ListShareTypes
2012
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ListShareTypesRequest`
2013
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ListShareTypesResponse`
2014
+ """
2015
+ http_info = self._list_share_types_http_info(request)
2016
+ return self._call_api(**http_info)
2017
+
2018
+ def list_share_types_invoker(self, request):
2019
+ http_info = self._list_share_types_http_info(request)
2020
+ return SyncInvoker(self, http_info)
2021
+
2022
+ @classmethod
2023
+ def _list_share_types_http_info(cls, 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
+
2071
+ def list_shared_tags(self, request):
2072
+ r"""查询租户所有共享的标签
2073
+
2074
+ 查询租户所有共享的标签集合。
2075
+
2076
+ Please refer to HUAWEI cloud API Explorer for details.
2077
+
2078
+ :param request: Request instance for ListSharedTags
2079
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ListSharedTagsRequest`
2080
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ListSharedTagsResponse`
2081
+ """
2082
+ http_info = self._list_shared_tags_http_info(request)
2083
+ return self._call_api(**http_info)
2084
+
2085
+ def list_shared_tags_invoker(self, request):
2086
+ http_info = self._list_shared_tags_http_info(request)
2087
+ return SyncInvoker(self, http_info)
2088
+
2089
+ @classmethod
2090
+ def _list_shared_tags_http_info(cls, request):
2091
+ http_info = {
2092
+ "method": "GET",
2093
+ "resource_path": "/v1/{project_id}/sfs-turbo/tags",
2094
+ "request_type": request.__class__.__name__,
2095
+ "response_type": "ListSharedTagsResponse"
2096
+ }
2097
+
2098
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2099
+
2100
+ cname = None
2101
+
2102
+ collection_formats = {}
2103
+
2104
+ path_params = {}
2105
+
2106
+ query_params = []
2107
+ if 'limit' in local_var_params:
2108
+ query_params.append(('limit', local_var_params['limit']))
2109
+ if 'offset' in local_var_params:
2110
+ query_params.append(('offset', local_var_params['offset']))
2111
+
2112
+ header_params = {}
2113
+
2114
+ form_params = {}
2115
+
2116
+ body = None
2117
+ if isinstance(request, SdkStreamRequest):
2118
+ body = request.get_file_stream()
2119
+
2120
+ response_headers = []
2121
+
2122
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2123
+ ['application/json'])
2124
+
2125
+ auth_settings = []
2126
+
2127
+ http_info["cname"] = cname
2128
+ http_info["collection_formats"] = collection_formats
2129
+ http_info["path_params"] = path_params
2130
+ http_info["query_params"] = query_params
2131
+ http_info["header_params"] = header_params
2132
+ http_info["post_params"] = form_params
2133
+ http_info["body"] = body
2134
+ http_info["response_headers"] = response_headers
2135
+
2136
+ return http_info
2137
+
2138
+ def list_shares(self, request):
2139
+ r"""获取文件系统列表
2140
+
2141
+ 获取文件系统列表
2142
+
2143
+ Please refer to HUAWEI cloud API Explorer for details.
2144
+
2145
+ :param request: Request instance for ListShares
2146
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ListSharesRequest`
2147
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ListSharesResponse`
2148
+ """
2149
+ http_info = self._list_shares_http_info(request)
2150
+ return self._call_api(**http_info)
2151
+
2152
+ def list_shares_invoker(self, request):
2153
+ http_info = self._list_shares_http_info(request)
2154
+ return SyncInvoker(self, http_info)
2155
+
2156
+ @classmethod
2157
+ def _list_shares_http_info(cls, request):
2158
+ http_info = {
2159
+ "method": "GET",
2160
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/detail",
2161
+ "request_type": request.__class__.__name__,
2162
+ "response_type": "ListSharesResponse"
2163
+ }
2164
+
2165
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2166
+
2167
+ cname = None
2168
+
2169
+ collection_formats = {}
2170
+
2171
+ path_params = {}
2172
+
2173
+ query_params = []
2174
+ if 'limit' in local_var_params:
2175
+ query_params.append(('limit', local_var_params['limit']))
2176
+ if 'offset' in local_var_params:
2177
+ query_params.append(('offset', local_var_params['offset']))
2178
+
2179
+ header_params = {}
2180
+
2181
+ form_params = {}
2182
+
2183
+ body = None
2184
+ if isinstance(request, SdkStreamRequest):
2185
+ body = request.get_file_stream()
2186
+
2187
+ response_headers = []
2188
+
2189
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2190
+ ['application/json'])
2191
+
2192
+ auth_settings = []
2193
+
2194
+ http_info["cname"] = cname
2195
+ http_info["collection_formats"] = collection_formats
2196
+ http_info["path_params"] = path_params
2197
+ http_info["query_params"] = query_params
2198
+ http_info["header_params"] = header_params
2199
+ http_info["post_params"] = form_params
2200
+ http_info["body"] = body
2201
+ http_info["response_headers"] = response_headers
2202
+
2203
+ return http_info
2204
+
2205
+ def list_shares_by_tag(self, request):
2206
+ r"""通过标签查询文件系统列表
2207
+
2208
+ 通过标签查询文件系统列表
2209
+
2210
+ Please refer to HUAWEI cloud API Explorer for details.
2211
+
2212
+ :param request: Request instance for ListSharesByTag
2213
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ListSharesByTagRequest`
2214
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ListSharesByTagResponse`
2215
+ """
2216
+ http_info = self._list_shares_by_tag_http_info(request)
2217
+ return self._call_api(**http_info)
2218
+
2219
+ def list_shares_by_tag_invoker(self, request):
2220
+ http_info = self._list_shares_by_tag_http_info(request)
2221
+ return SyncInvoker(self, http_info)
2222
+
2223
+ @classmethod
2224
+ def _list_shares_by_tag_http_info(cls, request):
2225
+ http_info = {
2226
+ "method": "POST",
2227
+ "resource_path": "/v1/{project_id}/sfs-turbo/resource_instances/action",
2228
+ "request_type": request.__class__.__name__,
2229
+ "response_type": "ListSharesByTagResponse"
2230
+ }
2231
+
2232
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2233
+
2234
+ cname = None
2235
+
2236
+ collection_formats = {}
2237
+
2238
+ path_params = {}
2239
+
2240
+ query_params = []
2241
+
2242
+ header_params = {}
2243
+
2244
+ form_params = {}
2245
+
2246
+ body = None
2247
+ if 'body' in local_var_params:
2248
+ body = local_var_params['body']
2249
+ if isinstance(request, SdkStreamRequest):
2250
+ body = request.get_file_stream()
2251
+
2252
+ response_headers = ["X-request-id", ]
2253
+
2254
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2255
+ ['application/json;charset=UTF-8'])
2256
+
2257
+ auth_settings = []
2258
+
2259
+ http_info["cname"] = cname
2260
+ http_info["collection_formats"] = collection_formats
2261
+ http_info["path_params"] = path_params
2262
+ http_info["query_params"] = query_params
2263
+ http_info["header_params"] = header_params
2264
+ http_info["post_params"] = form_params
2265
+ http_info["body"] = body
2266
+ http_info["response_headers"] = response_headers
2267
+
2268
+ return http_info
2269
+
2270
+ def set_hpc_cache_backend(self, request):
2271
+ r"""配置hpc缓存型后端信息
2272
+
2273
+ 配置hpc缓存型后端信息
2274
+
2275
+ Please refer to HUAWEI cloud API Explorer for details.
2276
+
2277
+ :param request: Request instance for SetHpcCacheBackend
2278
+ :type request: :class:`huaweicloudsdksfsturbo.v1.SetHpcCacheBackendRequest`
2279
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.SetHpcCacheBackendResponse`
2280
+ """
2281
+ http_info = self._set_hpc_cache_backend_http_info(request)
2282
+ return self._call_api(**http_info)
2283
+
2284
+ def set_hpc_cache_backend_invoker(self, request):
2285
+ http_info = self._set_hpc_cache_backend_http_info(request)
2286
+ return SyncInvoker(self, http_info)
2287
+
2288
+ @classmethod
2289
+ def _set_hpc_cache_backend_http_info(cls, request):
2290
+ http_info = {
2291
+ "method": "POST",
2292
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/action",
2293
+ "request_type": request.__class__.__name__,
2294
+ "response_type": "SetHpcCacheBackendResponse"
2295
+ }
2296
+
2297
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2298
+
2299
+ cname = None
2300
+
2301
+ collection_formats = {}
2302
+
2303
+ path_params = {}
2304
+ if 'share_id' in local_var_params:
2305
+ path_params['share_id'] = local_var_params['share_id']
2306
+
2307
+ query_params = []
2308
+
2309
+ header_params = {}
2310
+
2311
+ form_params = {}
2312
+
2313
+ body = None
2314
+ if 'body' in local_var_params:
2315
+ body = local_var_params['body']
2316
+ if isinstance(request, SdkStreamRequest):
2317
+ body = request.get_file_stream()
2318
+
2319
+ response_headers = ["X-request-id", ]
2320
+
2321
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2322
+ ['application/json;charset=UTF-8'])
2323
+
2324
+ auth_settings = []
2325
+
2326
+ http_info["cname"] = cname
2327
+ http_info["collection_formats"] = collection_formats
2328
+ http_info["path_params"] = path_params
2329
+ http_info["query_params"] = query_params
2330
+ http_info["header_params"] = header_params
2331
+ http_info["post_params"] = form_params
2332
+ http_info["body"] = body
2333
+ http_info["response_headers"] = response_headers
2334
+
2335
+ return http_info
2336
+
2337
+ def show_active_directory_domain(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
+ :param request: Request instance for ShowActiveDirectoryDomain
2345
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ShowActiveDirectoryDomainRequest`
2346
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ShowActiveDirectoryDomainResponse`
2347
+ """
2348
+ http_info = self._show_active_directory_domain_http_info(request)
2349
+ return self._call_api(**http_info)
2350
+
2351
+ def show_active_directory_domain_invoker(self, request):
2352
+ http_info = self._show_active_directory_domain_http_info(request)
2353
+ return SyncInvoker(self, http_info)
2354
+
2355
+ @classmethod
2356
+ def _show_active_directory_domain_http_info(cls, 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
+
2402
+ def show_backend_target_info(self, request):
2403
+ r"""获取后端存储详细信息
2404
+
2405
+ 获取后端存储详细信息
2406
+
2407
+ Please refer to HUAWEI cloud API Explorer for details.
2408
+
2409
+ :param request: Request instance for ShowBackendTargetInfo
2410
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ShowBackendTargetInfoRequest`
2411
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ShowBackendTargetInfoResponse`
2412
+ """
2413
+ http_info = self._show_backend_target_info_http_info(request)
2414
+ return self._call_api(**http_info)
2415
+
2416
+ def show_backend_target_info_invoker(self, request):
2417
+ http_info = self._show_backend_target_info_http_info(request)
2418
+ return SyncInvoker(self, http_info)
2419
+
2420
+ @classmethod
2421
+ def _show_backend_target_info_http_info(cls, request):
2422
+ http_info = {
2423
+ "method": "GET",
2424
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/targets/{target_id}",
2425
+ "request_type": request.__class__.__name__,
2426
+ "response_type": "ShowBackendTargetInfoResponse"
2427
+ }
2428
+
2429
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2430
+
2431
+ cname = None
2432
+
2433
+ collection_formats = {}
2434
+
2435
+ path_params = {}
2436
+ if 'share_id' in local_var_params:
2437
+ path_params['share_id'] = local_var_params['share_id']
2438
+ if 'target_id' in local_var_params:
2439
+ path_params['target_id'] = local_var_params['target_id']
2440
+
2441
+ query_params = []
2442
+
2443
+ header_params = {}
2444
+
2445
+ form_params = {}
2446
+
2447
+ body = None
2448
+ if isinstance(request, SdkStreamRequest):
2449
+ body = request.get_file_stream()
2450
+
2451
+ response_headers = ["X-request-id", ]
2452
+
2453
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2454
+ ['application/json'])
2455
+
2456
+ auth_settings = []
2457
+
2458
+ http_info["cname"] = cname
2459
+ http_info["collection_formats"] = collection_formats
2460
+ http_info["path_params"] = path_params
2461
+ http_info["query_params"] = query_params
2462
+ http_info["header_params"] = header_params
2463
+ http_info["post_params"] = form_params
2464
+ http_info["body"] = body
2465
+ http_info["response_headers"] = response_headers
2466
+
2467
+ return http_info
2468
+
2469
+ def show_client_ip_info(self, request):
2470
+ r"""获取已挂载的客户端ip信息
2471
+
2472
+ 获取已挂载的客户端ip信息
2473
+
2474
+ Please refer to HUAWEI cloud API Explorer for details.
2475
+
2476
+ :param request: Request instance for ShowClientIpInfo
2477
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ShowClientIpInfoRequest`
2478
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ShowClientIpInfoResponse`
2479
+ """
2480
+ http_info = self._show_client_ip_info_http_info(request)
2481
+ return self._call_api(**http_info)
2482
+
2483
+ def show_client_ip_info_invoker(self, request):
2484
+ http_info = self._show_client_ip_info_http_info(request)
2485
+ return SyncInvoker(self, http_info)
2486
+
2487
+ @classmethod
2488
+ def _show_client_ip_info_http_info(cls, 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
+
2536
+ def show_fs_dir(self, request):
2537
+ r"""查询目录是否存在
2538
+
2539
+ 查询目录是否存在
2540
+
2541
+ Please refer to HUAWEI cloud API Explorer for details.
2542
+
2543
+ :param request: Request instance for ShowFsDir
2544
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ShowFsDirRequest`
2545
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ShowFsDirResponse`
2546
+ """
2547
+ http_info = self._show_fs_dir_http_info(request)
2548
+ return self._call_api(**http_info)
2549
+
2550
+ def show_fs_dir_invoker(self, request):
2551
+ http_info = self._show_fs_dir_http_info(request)
2552
+ return SyncInvoker(self, http_info)
2553
+
2554
+ @classmethod
2555
+ def _show_fs_dir_http_info(cls, request):
2556
+ http_info = {
2557
+ "method": "GET",
2558
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/fs/dir",
2559
+ "request_type": request.__class__.__name__,
2560
+ "response_type": "ShowFsDirResponse"
2561
+ }
2562
+
2563
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2564
+
2565
+ cname = None
2566
+
2567
+ collection_formats = {}
2568
+
2569
+ path_params = {}
2570
+ if 'share_id' in local_var_params:
2571
+ path_params['share_id'] = local_var_params['share_id']
2572
+
2573
+ query_params = []
2574
+ if 'path' in local_var_params:
2575
+ query_params.append(('path', local_var_params['path']))
2576
+
2577
+ header_params = {}
2578
+
2579
+ form_params = {}
2580
+
2581
+ body = None
2582
+ if isinstance(request, SdkStreamRequest):
2583
+ body = request.get_file_stream()
2584
+
2585
+ response_headers = []
2586
+
2587
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2588
+ ['application/json'])
2589
+
2590
+ auth_settings = []
2591
+
2592
+ http_info["cname"] = cname
2593
+ http_info["collection_formats"] = collection_formats
2594
+ http_info["path_params"] = path_params
2595
+ http_info["query_params"] = query_params
2596
+ http_info["header_params"] = header_params
2597
+ http_info["post_params"] = form_params
2598
+ http_info["body"] = body
2599
+ http_info["response_headers"] = response_headers
2600
+
2601
+ return http_info
2602
+
2603
+ def show_fs_dir_quota(self, request):
2604
+ r"""查询目标文件夹配额
2605
+
2606
+ 查询目标文件夹配额。查询的used_capacity、used_inode数据可能有延迟。
2607
+
2608
+ Please refer to HUAWEI cloud API Explorer for details.
2609
+
2610
+ :param request: Request instance for ShowFsDirQuota
2611
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ShowFsDirQuotaRequest`
2612
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ShowFsDirQuotaResponse`
2613
+ """
2614
+ http_info = self._show_fs_dir_quota_http_info(request)
2615
+ return self._call_api(**http_info)
2616
+
2617
+ def show_fs_dir_quota_invoker(self, request):
2618
+ http_info = self._show_fs_dir_quota_http_info(request)
2619
+ return SyncInvoker(self, http_info)
2620
+
2621
+ @classmethod
2622
+ def _show_fs_dir_quota_http_info(cls, request):
2623
+ http_info = {
2624
+ "method": "GET",
2625
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/fs/dir-quota",
2626
+ "request_type": request.__class__.__name__,
2627
+ "response_type": "ShowFsDirQuotaResponse"
2628
+ }
2629
+
2630
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2631
+
2632
+ cname = None
2633
+
2634
+ collection_formats = {}
2635
+
2636
+ path_params = {}
2637
+ if 'share_id' in local_var_params:
2638
+ path_params['share_id'] = local_var_params['share_id']
2639
+
2640
+ query_params = []
2641
+ if 'path' in local_var_params:
2642
+ query_params.append(('path', local_var_params['path']))
2643
+
2644
+ header_params = {}
2645
+
2646
+ form_params = {}
2647
+
2648
+ body = None
2649
+ if isinstance(request, SdkStreamRequest):
2650
+ body = request.get_file_stream()
2651
+
2652
+ response_headers = []
2653
+
2654
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2655
+ ['application/json'])
2656
+
2657
+ auth_settings = []
2658
+
2659
+ http_info["cname"] = cname
2660
+ http_info["collection_formats"] = collection_formats
2661
+ http_info["path_params"] = path_params
2662
+ http_info["query_params"] = query_params
2663
+ http_info["header_params"] = header_params
2664
+ http_info["post_params"] = form_params
2665
+ http_info["body"] = body
2666
+ http_info["response_headers"] = response_headers
2667
+
2668
+ return http_info
2669
+
2670
+ def show_fs_dir_usage(self, request):
2671
+ r"""查询目录资源使用情况
2672
+
2673
+ 查询目录资源使用情况(包括子目录的资源)。后端有5min的缓存时间,查询的数据可能有延迟。
2674
+
2675
+ Please refer to HUAWEI cloud API Explorer for details.
2676
+
2677
+ :param request: Request instance for ShowFsDirUsage
2678
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ShowFsDirUsageRequest`
2679
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ShowFsDirUsageResponse`
2680
+ """
2681
+ http_info = self._show_fs_dir_usage_http_info(request)
2682
+ return self._call_api(**http_info)
2683
+
2684
+ def show_fs_dir_usage_invoker(self, request):
2685
+ http_info = self._show_fs_dir_usage_http_info(request)
2686
+ return SyncInvoker(self, http_info)
2687
+
2688
+ @classmethod
2689
+ def _show_fs_dir_usage_http_info(cls, request):
2690
+ http_info = {
2691
+ "method": "GET",
2692
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/fs/dir-usage",
2693
+ "request_type": request.__class__.__name__,
2694
+ "response_type": "ShowFsDirUsageResponse"
2695
+ }
2696
+
2697
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2698
+
2699
+ cname = None
2700
+
2701
+ collection_formats = {}
2702
+
2703
+ path_params = {}
2704
+ if 'share_id' in local_var_params:
2705
+ path_params['share_id'] = local_var_params['share_id']
2706
+
2707
+ query_params = []
2708
+ if 'path' in local_var_params:
2709
+ query_params.append(('path', local_var_params['path']))
2710
+
2711
+ header_params = {}
2712
+
2713
+ form_params = {}
2714
+
2715
+ body = None
2716
+ if isinstance(request, SdkStreamRequest):
2717
+ body = request.get_file_stream()
2718
+
2719
+ response_headers = ["X-request-id", ]
2720
+
2721
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2722
+ ['application/json'])
2723
+
2724
+ auth_settings = []
2725
+
2726
+ http_info["cname"] = cname
2727
+ http_info["collection_formats"] = collection_formats
2728
+ http_info["path_params"] = path_params
2729
+ http_info["query_params"] = query_params
2730
+ http_info["header_params"] = header_params
2731
+ http_info["post_params"] = form_params
2732
+ http_info["body"] = body
2733
+ http_info["response_headers"] = response_headers
2734
+
2735
+ return http_info
2736
+
2737
+ def show_fs_task(self, request):
2738
+ r"""获取文件系统异步任务详情
2739
+
2740
+ 获取文件系统异步任务详情。仅支持查询目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。
2741
+
2742
+ Please refer to HUAWEI cloud API Explorer for details.
2743
+
2744
+ :param request: Request instance for ShowFsTask
2745
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ShowFsTaskRequest`
2746
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ShowFsTaskResponse`
2747
+ """
2748
+ http_info = self._show_fs_task_http_info(request)
2749
+ return self._call_api(**http_info)
2750
+
2751
+ def show_fs_task_invoker(self, request):
2752
+ http_info = self._show_fs_task_http_info(request)
2753
+ return SyncInvoker(self, http_info)
2754
+
2755
+ @classmethod
2756
+ def _show_fs_task_http_info(cls, request):
2757
+ http_info = {
2758
+ "method": "GET",
2759
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/fs/{feature}/tasks/{task_id}",
2760
+ "request_type": request.__class__.__name__,
2761
+ "response_type": "ShowFsTaskResponse"
2762
+ }
2763
+
2764
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2765
+
2766
+ cname = None
2767
+
2768
+ collection_formats = {}
2769
+
2770
+ path_params = {}
2771
+ if 'share_id' in local_var_params:
2772
+ path_params['share_id'] = local_var_params['share_id']
2773
+ if 'feature' in local_var_params:
2774
+ path_params['feature'] = local_var_params['feature']
2775
+ if 'task_id' in local_var_params:
2776
+ path_params['task_id'] = local_var_params['task_id']
2777
+
2778
+ query_params = []
2779
+
2780
+ header_params = {}
2781
+
2782
+ form_params = {}
2783
+
2784
+ body = None
2785
+ if isinstance(request, SdkStreamRequest):
2786
+ body = request.get_file_stream()
2787
+
2788
+ response_headers = ["X-request-id", ]
2789
+
2790
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2791
+ ['application/json'])
2792
+
2793
+ auth_settings = []
2794
+
2795
+ http_info["cname"] = cname
2796
+ http_info["collection_formats"] = collection_formats
2797
+ http_info["path_params"] = path_params
2798
+ http_info["query_params"] = query_params
2799
+ http_info["header_params"] = header_params
2800
+ http_info["post_params"] = form_params
2801
+ http_info["body"] = body
2802
+ http_info["response_headers"] = response_headers
2803
+
2804
+ return http_info
2805
+
2806
+ def show_hpc_cache_task(self, request):
2807
+ r"""查询数据导入导出任务详情
2808
+
2809
+ 查询数据导入导出任务详情
2810
+
2811
+ Please refer to HUAWEI cloud API Explorer for details.
2812
+
2813
+ :param request: Request instance for ShowHpcCacheTask
2814
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ShowHpcCacheTaskRequest`
2815
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ShowHpcCacheTaskResponse`
2816
+ """
2817
+ http_info = self._show_hpc_cache_task_http_info(request)
2818
+ return self._call_api(**http_info)
2819
+
2820
+ def show_hpc_cache_task_invoker(self, request):
2821
+ http_info = self._show_hpc_cache_task_http_info(request)
2822
+ return SyncInvoker(self, http_info)
2823
+
2824
+ @classmethod
2825
+ def _show_hpc_cache_task_http_info(cls, request):
2826
+ http_info = {
2827
+ "method": "GET",
2828
+ "resource_path": "/v1/{project_id}/sfs-turbo/{share_id}/hpc-cache/task/{task_id}",
2829
+ "request_type": request.__class__.__name__,
2830
+ "response_type": "ShowHpcCacheTaskResponse"
2831
+ }
2832
+
2833
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2834
+
2835
+ cname = None
2836
+
2837
+ collection_formats = {}
2838
+
2839
+ path_params = {}
2840
+ if 'share_id' in local_var_params:
2841
+ path_params['share_id'] = local_var_params['share_id']
2842
+ if 'task_id' in local_var_params:
2843
+ path_params['task_id'] = local_var_params['task_id']
2844
+
2845
+ query_params = []
2846
+
2847
+ header_params = {}
2848
+
2849
+ form_params = {}
2850
+
2851
+ body = None
2852
+ if isinstance(request, SdkStreamRequest):
2853
+ body = request.get_file_stream()
2854
+
2855
+ response_headers = ["X-request-id", ]
2856
+
2857
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2858
+ ['application/json'])
2859
+
2860
+ auth_settings = []
2861
+
2862
+ http_info["cname"] = cname
2863
+ http_info["collection_formats"] = collection_formats
2864
+ http_info["path_params"] = path_params
2865
+ http_info["query_params"] = query_params
2866
+ http_info["header_params"] = header_params
2867
+ http_info["post_params"] = form_params
2868
+ http_info["body"] = body
2869
+ http_info["response_headers"] = response_headers
2870
+
2871
+ return http_info
2872
+
2873
+ def show_job_detail(self, request):
2874
+ r"""查询job的状态详情
2875
+
2876
+ 用于查询SFS Turbo异步API的执行状态。例如:可使用调用创建并绑定LDAP配置接口时返回的jobId,通过该接口查询job的执行状态。
2877
+
2878
+ Please refer to HUAWEI cloud API Explorer for details.
2879
+
2880
+ :param request: Request instance for ShowJobDetail
2881
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ShowJobDetailRequest`
2882
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ShowJobDetailResponse`
2883
+ """
2884
+ http_info = self._show_job_detail_http_info(request)
2885
+ return self._call_api(**http_info)
2886
+
2887
+ def show_job_detail_invoker(self, request):
2888
+ http_info = self._show_job_detail_http_info(request)
2889
+ return SyncInvoker(self, http_info)
2890
+
2891
+ @classmethod
2892
+ def _show_job_detail_http_info(cls, request):
2893
+ http_info = {
2894
+ "method": "GET",
2895
+ "resource_path": "/v1/{project_id}/sfs-turbo/jobs/{job_id}",
2896
+ "request_type": request.__class__.__name__,
2897
+ "response_type": "ShowJobDetailResponse"
2898
+ }
2899
+
2900
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2901
+
2902
+ cname = None
2903
+
2904
+ collection_formats = {}
2905
+
2906
+ path_params = {}
2907
+ if 'job_id' in local_var_params:
2908
+ path_params['job_id'] = local_var_params['job_id']
2909
+
2910
+ query_params = []
2911
+
2912
+ header_params = {}
2913
+
2914
+ form_params = {}
2915
+
2916
+ body = None
2917
+ if isinstance(request, SdkStreamRequest):
2918
+ body = request.get_file_stream()
2919
+
2920
+ response_headers = ["X-request-id", ]
2921
+
2922
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2923
+ ['application/json'])
2924
+
2925
+ auth_settings = []
2926
+
2927
+ http_info["cname"] = cname
2928
+ http_info["collection_formats"] = collection_formats
2929
+ http_info["path_params"] = path_params
2930
+ http_info["query_params"] = query_params
2931
+ http_info["header_params"] = header_params
2932
+ http_info["post_params"] = form_params
2933
+ http_info["body"] = body
2934
+ http_info["response_headers"] = response_headers
2935
+
2936
+ return http_info
2937
+
2938
+ def show_ldap_config(self, request):
2939
+ r"""查询LDAP的配置
2940
+
2941
+ 查询LDAP的配置。
2942
+
2943
+ Please refer to HUAWEI cloud API Explorer for details.
2944
+
2945
+ :param request: Request instance for ShowLdapConfig
2946
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ShowLdapConfigRequest`
2947
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ShowLdapConfigResponse`
2948
+ """
2949
+ http_info = self._show_ldap_config_http_info(request)
2950
+ return self._call_api(**http_info)
2951
+
2952
+ def show_ldap_config_invoker(self, request):
2953
+ http_info = self._show_ldap_config_http_info(request)
2954
+ return SyncInvoker(self, http_info)
2955
+
2956
+ @classmethod
2957
+ def _show_ldap_config_http_info(cls, request):
2958
+ http_info = {
2959
+ "method": "GET",
2960
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/fs/ldap",
2961
+ "request_type": request.__class__.__name__,
2962
+ "response_type": "ShowLdapConfigResponse"
2963
+ }
2964
+
2965
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2966
+
2967
+ cname = None
2968
+
2969
+ collection_formats = {}
2970
+
2971
+ path_params = {}
2972
+ if 'share_id' in local_var_params:
2973
+ path_params['share_id'] = local_var_params['share_id']
2974
+
2975
+ query_params = []
2976
+
2977
+ header_params = {}
2978
+
2979
+ form_params = {}
2980
+
2981
+ body = None
2982
+ if isinstance(request, SdkStreamRequest):
2983
+ body = request.get_file_stream()
2984
+
2985
+ response_headers = ["X-request-id", ]
2986
+
2987
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2988
+ ['application/json'])
2989
+
2990
+ auth_settings = []
2991
+
2992
+ http_info["cname"] = cname
2993
+ http_info["collection_formats"] = collection_formats
2994
+ http_info["path_params"] = path_params
2995
+ http_info["query_params"] = query_params
2996
+ http_info["header_params"] = header_params
2997
+ http_info["post_params"] = form_params
2998
+ http_info["body"] = body
2999
+ http_info["response_headers"] = response_headers
3000
+
3001
+ return http_info
3002
+
3003
+ def show_perm_rule(self, request):
3004
+ r"""查询文件系统的某一个权限规则
3005
+
3006
+ 查询文件系统的某一个权限规则
3007
+
3008
+ Please refer to HUAWEI cloud API Explorer for details.
3009
+
3010
+ :param request: Request instance for ShowPermRule
3011
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ShowPermRuleRequest`
3012
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ShowPermRuleResponse`
3013
+ """
3014
+ http_info = self._show_perm_rule_http_info(request)
3015
+ return self._call_api(**http_info)
3016
+
3017
+ def show_perm_rule_invoker(self, request):
3018
+ http_info = self._show_perm_rule_http_info(request)
3019
+ return SyncInvoker(self, http_info)
3020
+
3021
+ @classmethod
3022
+ def _show_perm_rule_http_info(cls, request):
3023
+ http_info = {
3024
+ "method": "GET",
3025
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}",
3026
+ "request_type": request.__class__.__name__,
3027
+ "response_type": "ShowPermRuleResponse"
3028
+ }
3029
+
3030
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3031
+
3032
+ cname = None
3033
+
3034
+ collection_formats = {}
3035
+
3036
+ path_params = {}
3037
+ if 'share_id' in local_var_params:
3038
+ path_params['share_id'] = local_var_params['share_id']
3039
+ if 'rule_id' in local_var_params:
3040
+ path_params['rule_id'] = local_var_params['rule_id']
3041
+
3042
+ query_params = []
3043
+
3044
+ header_params = {}
3045
+
3046
+ form_params = {}
3047
+
3048
+ body = None
3049
+ if isinstance(request, SdkStreamRequest):
3050
+ body = request.get_file_stream()
3051
+
3052
+ response_headers = []
3053
+
3054
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3055
+ ['application/json'])
3056
+
3057
+ auth_settings = []
3058
+
3059
+ http_info["cname"] = cname
3060
+ http_info["collection_formats"] = collection_formats
3061
+ http_info["path_params"] = path_params
3062
+ http_info["query_params"] = query_params
3063
+ http_info["header_params"] = header_params
3064
+ http_info["post_params"] = form_params
3065
+ http_info["body"] = body
3066
+ http_info["response_headers"] = response_headers
3067
+
3068
+ return http_info
3069
+
3070
+ def show_share(self, request):
3071
+ r"""查询文件系统详细信息
3072
+
3073
+ 查询SFS Turbo文件系统详细信息。
3074
+
3075
+ Please refer to HUAWEI cloud API Explorer for details.
3076
+
3077
+ :param request: Request instance for ShowShare
3078
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ShowShareRequest`
3079
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ShowShareResponse`
3080
+ """
3081
+ http_info = self._show_share_http_info(request)
3082
+ return self._call_api(**http_info)
3083
+
3084
+ def show_share_invoker(self, request):
3085
+ http_info = self._show_share_http_info(request)
3086
+ return SyncInvoker(self, http_info)
3087
+
3088
+ @classmethod
3089
+ def _show_share_http_info(cls, request):
3090
+ http_info = {
3091
+ "method": "GET",
3092
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}",
3093
+ "request_type": request.__class__.__name__,
3094
+ "response_type": "ShowShareResponse"
3095
+ }
3096
+
3097
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3098
+
3099
+ cname = None
3100
+
3101
+ collection_formats = {}
3102
+
3103
+ path_params = {}
3104
+ if 'share_id' in local_var_params:
3105
+ path_params['share_id'] = local_var_params['share_id']
3106
+
3107
+ query_params = []
3108
+
3109
+ header_params = {}
3110
+
3111
+ form_params = {}
3112
+
3113
+ body = None
3114
+ if isinstance(request, SdkStreamRequest):
3115
+ body = request.get_file_stream()
3116
+
3117
+ response_headers = []
3118
+
3119
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3120
+ ['application/json'])
3121
+
3122
+ auth_settings = []
3123
+
3124
+ http_info["cname"] = cname
3125
+ http_info["collection_formats"] = collection_formats
3126
+ http_info["path_params"] = path_params
3127
+ http_info["query_params"] = query_params
3128
+ http_info["header_params"] = header_params
3129
+ http_info["post_params"] = form_params
3130
+ http_info["body"] = body
3131
+ http_info["response_headers"] = response_headers
3132
+
3133
+ return http_info
3134
+
3135
+ def show_shared_tags(self, request):
3136
+ r"""查询共享标签
3137
+
3138
+ 查询指定共享的所有标签信息。
3139
+
3140
+ Please refer to HUAWEI cloud API Explorer for details.
3141
+
3142
+ :param request: Request instance for ShowSharedTags
3143
+ :type request: :class:`huaweicloudsdksfsturbo.v1.ShowSharedTagsRequest`
3144
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.ShowSharedTagsResponse`
3145
+ """
3146
+ http_info = self._show_shared_tags_http_info(request)
3147
+ return self._call_api(**http_info)
3148
+
3149
+ def show_shared_tags_invoker(self, request):
3150
+ http_info = self._show_shared_tags_http_info(request)
3151
+ return SyncInvoker(self, http_info)
3152
+
3153
+ @classmethod
3154
+ def _show_shared_tags_http_info(cls, request):
3155
+ http_info = {
3156
+ "method": "GET",
3157
+ "resource_path": "/v1/{project_id}/sfs-turbo/{share_id}/tags",
3158
+ "request_type": request.__class__.__name__,
3159
+ "response_type": "ShowSharedTagsResponse"
3160
+ }
3161
+
3162
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3163
+
3164
+ cname = None
3165
+
3166
+ collection_formats = {}
3167
+
3168
+ path_params = {}
3169
+ if 'share_id' in local_var_params:
3170
+ path_params['share_id'] = local_var_params['share_id']
3171
+
3172
+ query_params = []
3173
+
3174
+ header_params = {}
3175
+
3176
+ form_params = {}
3177
+
3178
+ body = None
3179
+ if isinstance(request, SdkStreamRequest):
3180
+ body = request.get_file_stream()
3181
+
3182
+ response_headers = []
3183
+
3184
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3185
+ ['application/json'])
3186
+
3187
+ auth_settings = []
3188
+
3189
+ http_info["cname"] = cname
3190
+ http_info["collection_formats"] = collection_formats
3191
+ http_info["path_params"] = path_params
3192
+ http_info["query_params"] = query_params
3193
+ http_info["header_params"] = header_params
3194
+ http_info["post_params"] = form_params
3195
+ http_info["body"] = body
3196
+ http_info["response_headers"] = response_headers
3197
+
3198
+ return http_info
3199
+
3200
+ def update_active_directory_domain(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
+ :param request: Request instance for UpdateActiveDirectoryDomain
3208
+ :type request: :class:`huaweicloudsdksfsturbo.v1.UpdateActiveDirectoryDomainRequest`
3209
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.UpdateActiveDirectoryDomainResponse`
3210
+ """
3211
+ http_info = self._update_active_directory_domain_http_info(request)
3212
+ return self._call_api(**http_info)
3213
+
3214
+ def update_active_directory_domain_invoker(self, request):
3215
+ http_info = self._update_active_directory_domain_http_info(request)
3216
+ return SyncInvoker(self, http_info)
3217
+
3218
+ @classmethod
3219
+ def _update_active_directory_domain_http_info(cls, 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
+
3267
+ def update_fs_dir_quota(self, request):
3268
+ r"""更新目标文件夹配额
3269
+
3270
+ 更新目标文件夹配额
3271
+
3272
+ Please refer to HUAWEI cloud API Explorer for details.
3273
+
3274
+ :param request: Request instance for UpdateFsDirQuota
3275
+ :type request: :class:`huaweicloudsdksfsturbo.v1.UpdateFsDirQuotaRequest`
3276
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.UpdateFsDirQuotaResponse`
3277
+ """
3278
+ http_info = self._update_fs_dir_quota_http_info(request)
3279
+ return self._call_api(**http_info)
3280
+
3281
+ def update_fs_dir_quota_invoker(self, request):
3282
+ http_info = self._update_fs_dir_quota_http_info(request)
3283
+ return SyncInvoker(self, http_info)
3284
+
3285
+ @classmethod
3286
+ def _update_fs_dir_quota_http_info(cls, request):
3287
+ http_info = {
3288
+ "method": "PUT",
3289
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/fs/dir-quota",
3290
+ "request_type": request.__class__.__name__,
3291
+ "response_type": "UpdateFsDirQuotaResponse"
3292
+ }
3293
+
3294
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3295
+
3296
+ cname = None
3297
+
3298
+ collection_formats = {}
3299
+
3300
+ path_params = {}
3301
+ if 'share_id' in local_var_params:
3302
+ path_params['share_id'] = local_var_params['share_id']
3303
+
3304
+ query_params = []
3305
+
3306
+ header_params = {}
3307
+
3308
+ form_params = {}
3309
+
3310
+ body = None
3311
+ if 'body' in local_var_params:
3312
+ body = local_var_params['body']
3313
+ if isinstance(request, SdkStreamRequest):
3314
+ body = request.get_file_stream()
3315
+
3316
+ response_headers = []
3317
+
3318
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3319
+ ['application/json;charset=UTF-8'])
3320
+
3321
+ auth_settings = []
3322
+
3323
+ http_info["cname"] = cname
3324
+ http_info["collection_formats"] = collection_formats
3325
+ http_info["path_params"] = path_params
3326
+ http_info["query_params"] = query_params
3327
+ http_info["header_params"] = header_params
3328
+ http_info["post_params"] = form_params
3329
+ http_info["body"] = body
3330
+ http_info["response_headers"] = response_headers
3331
+
3332
+ return http_info
3333
+
3334
+ def update_hpc_share(self, request):
3335
+ r"""更新文件系统
3336
+
3337
+ 更新文件系统冷数据淘汰时间
3338
+
3339
+ Please refer to HUAWEI cloud API Explorer for details.
3340
+
3341
+ :param request: Request instance for UpdateHpcShare
3342
+ :type request: :class:`huaweicloudsdksfsturbo.v1.UpdateHpcShareRequest`
3343
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.UpdateHpcShareResponse`
3344
+ """
3345
+ http_info = self._update_hpc_share_http_info(request)
3346
+ return self._call_api(**http_info)
3347
+
3348
+ def update_hpc_share_invoker(self, request):
3349
+ http_info = self._update_hpc_share_http_info(request)
3350
+ return SyncInvoker(self, http_info)
3351
+
3352
+ @classmethod
3353
+ def _update_hpc_share_http_info(cls, request):
3354
+ http_info = {
3355
+ "method": "PUT",
3356
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}",
3357
+ "request_type": request.__class__.__name__,
3358
+ "response_type": "UpdateHpcShareResponse"
3359
+ }
3360
+
3361
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3362
+
3363
+ cname = None
3364
+
3365
+ collection_formats = {}
3366
+
3367
+ path_params = {}
3368
+ if 'share_id' in local_var_params:
3369
+ path_params['share_id'] = local_var_params['share_id']
3370
+
3371
+ query_params = []
3372
+
3373
+ header_params = {}
3374
+
3375
+ form_params = {}
3376
+
3377
+ body = None
3378
+ if 'body' in local_var_params:
3379
+ body = local_var_params['body']
3380
+ if isinstance(request, SdkStreamRequest):
3381
+ body = request.get_file_stream()
3382
+
3383
+ response_headers = ["X-request-id", ]
3384
+
3385
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3386
+ ['application/json;charset=UTF-8'])
3387
+
3388
+ auth_settings = []
3389
+
3390
+ http_info["cname"] = cname
3391
+ http_info["collection_formats"] = collection_formats
3392
+ http_info["path_params"] = path_params
3393
+ http_info["query_params"] = query_params
3394
+ http_info["header_params"] = header_params
3395
+ http_info["post_params"] = form_params
3396
+ http_info["body"] = body
3397
+ http_info["response_headers"] = response_headers
3398
+
3399
+ return http_info
3400
+
3401
+ def update_ldap_config(self, request):
3402
+ r"""修改LDAP配置
3403
+
3404
+ 修改LDAP配置。
3405
+
3406
+ Please refer to HUAWEI cloud API Explorer for details.
3407
+
3408
+ :param request: Request instance for UpdateLdapConfig
3409
+ :type request: :class:`huaweicloudsdksfsturbo.v1.UpdateLdapConfigRequest`
3410
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.UpdateLdapConfigResponse`
3411
+ """
3412
+ http_info = self._update_ldap_config_http_info(request)
3413
+ return self._call_api(**http_info)
3414
+
3415
+ def update_ldap_config_invoker(self, request):
3416
+ http_info = self._update_ldap_config_http_info(request)
3417
+ return SyncInvoker(self, http_info)
3418
+
3419
+ @classmethod
3420
+ def _update_ldap_config_http_info(cls, request):
3421
+ http_info = {
3422
+ "method": "PUT",
3423
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/fs/ldap",
3424
+ "request_type": request.__class__.__name__,
3425
+ "response_type": "UpdateLdapConfigResponse"
3426
+ }
3427
+
3428
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3429
+
3430
+ cname = None
3431
+
3432
+ collection_formats = {}
3433
+
3434
+ path_params = {}
3435
+ if 'share_id' in local_var_params:
3436
+ path_params['share_id'] = local_var_params['share_id']
3437
+
3438
+ query_params = []
3439
+
3440
+ header_params = {}
3441
+
3442
+ form_params = {}
3443
+
3444
+ body = None
3445
+ if 'body' in local_var_params:
3446
+ body = local_var_params['body']
3447
+ if isinstance(request, SdkStreamRequest):
3448
+ body = request.get_file_stream()
3449
+
3450
+ response_headers = ["X-request-id", ]
3451
+
3452
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3453
+ ['application/json;charset=UTF-8'])
3454
+
3455
+ auth_settings = []
3456
+
3457
+ http_info["cname"] = cname
3458
+ http_info["collection_formats"] = collection_formats
3459
+ http_info["path_params"] = path_params
3460
+ http_info["query_params"] = query_params
3461
+ http_info["header_params"] = header_params
3462
+ http_info["post_params"] = form_params
3463
+ http_info["body"] = body
3464
+ http_info["response_headers"] = response_headers
3465
+
3466
+ return http_info
3467
+
3468
+ def update_obs_target_attributes(self, request):
3469
+ r"""更新后端存储属性
3470
+
3471
+ 更新后端存储属性
3472
+
3473
+ Please refer to HUAWEI cloud API Explorer for details.
3474
+
3475
+ :param request: Request instance for UpdateObsTargetAttributes
3476
+ :type request: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetAttributesRequest`
3477
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetAttributesResponse`
3478
+ """
3479
+ http_info = self._update_obs_target_attributes_http_info(request)
3480
+ return self._call_api(**http_info)
3481
+
3482
+ def update_obs_target_attributes_invoker(self, request):
3483
+ http_info = self._update_obs_target_attributes_http_info(request)
3484
+ return SyncInvoker(self, http_info)
3485
+
3486
+ @classmethod
3487
+ def _update_obs_target_attributes_http_info(cls, request):
3488
+ http_info = {
3489
+ "method": "PUT",
3490
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/targets/{target_id}/attributes",
3491
+ "request_type": request.__class__.__name__,
3492
+ "response_type": "UpdateObsTargetAttributesResponse"
3493
+ }
3494
+
3495
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3496
+
3497
+ cname = None
3498
+
3499
+ collection_formats = {}
3500
+
3501
+ path_params = {}
3502
+ if 'share_id' in local_var_params:
3503
+ path_params['share_id'] = local_var_params['share_id']
3504
+ if 'target_id' in local_var_params:
3505
+ path_params['target_id'] = local_var_params['target_id']
3506
+
3507
+ query_params = []
3508
+
3509
+ header_params = {}
3510
+
3511
+ form_params = {}
3512
+
3513
+ body = None
3514
+ if 'body' in local_var_params:
3515
+ body = local_var_params['body']
3516
+ if isinstance(request, SdkStreamRequest):
3517
+ body = request.get_file_stream()
3518
+
3519
+ response_headers = ["X-request-id", ]
3520
+
3521
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3522
+ ['application/json;charset=UTF-8'])
3523
+
3524
+ auth_settings = []
3525
+
3526
+ http_info["cname"] = cname
3527
+ http_info["collection_formats"] = collection_formats
3528
+ http_info["path_params"] = path_params
3529
+ http_info["query_params"] = query_params
3530
+ http_info["header_params"] = header_params
3531
+ http_info["post_params"] = form_params
3532
+ http_info["body"] = body
3533
+ http_info["response_headers"] = response_headers
3534
+
3535
+ return http_info
3536
+
3537
+ def update_obs_target_policy(self, request):
3538
+ r"""更新后端存储自动同步策略
3539
+
3540
+ 更新后端存储自动同步策略
3541
+
3542
+ Please refer to HUAWEI cloud API Explorer for details.
3543
+
3544
+ :param request: Request instance for UpdateObsTargetPolicy
3545
+ :type request: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetPolicyRequest`
3546
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetPolicyResponse`
3547
+ """
3548
+ http_info = self._update_obs_target_policy_http_info(request)
3549
+ return self._call_api(**http_info)
3550
+
3551
+ def update_obs_target_policy_invoker(self, request):
3552
+ http_info = self._update_obs_target_policy_http_info(request)
3553
+ return SyncInvoker(self, http_info)
3554
+
3555
+ @classmethod
3556
+ def _update_obs_target_policy_http_info(cls, request):
3557
+ http_info = {
3558
+ "method": "PUT",
3559
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/targets/{target_id}/policy",
3560
+ "request_type": request.__class__.__name__,
3561
+ "response_type": "UpdateObsTargetPolicyResponse"
3562
+ }
3563
+
3564
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3565
+
3566
+ cname = None
3567
+
3568
+ collection_formats = {}
3569
+
3570
+ path_params = {}
3571
+ if 'share_id' in local_var_params:
3572
+ path_params['share_id'] = local_var_params['share_id']
3573
+ if 'target_id' in local_var_params:
3574
+ path_params['target_id'] = local_var_params['target_id']
3575
+
3576
+ query_params = []
3577
+
3578
+ header_params = {}
3579
+
3580
+ form_params = {}
3581
+
3582
+ body = None
3583
+ if 'body' in local_var_params:
3584
+ body = local_var_params['body']
3585
+ if isinstance(request, SdkStreamRequest):
3586
+ body = request.get_file_stream()
3587
+
3588
+ response_headers = ["X-request-id", ]
3589
+
3590
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3591
+ ['application/json;charset=UTF-8'])
3592
+
3593
+ auth_settings = []
3594
+
3595
+ http_info["cname"] = cname
3596
+ http_info["collection_formats"] = collection_formats
3597
+ http_info["path_params"] = path_params
3598
+ http_info["query_params"] = query_params
3599
+ http_info["header_params"] = header_params
3600
+ http_info["post_params"] = form_params
3601
+ http_info["body"] = body
3602
+ http_info["response_headers"] = response_headers
3603
+
3604
+ return http_info
3605
+
3606
+ def update_perm_rule(self, request):
3607
+ r"""修改权限规则
3608
+
3609
+ 修改权限规则
3610
+
3611
+ Please refer to HUAWEI cloud API Explorer for details.
3612
+
3613
+ :param request: Request instance for UpdatePermRule
3614
+ :type request: :class:`huaweicloudsdksfsturbo.v1.UpdatePermRuleRequest`
3615
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.UpdatePermRuleResponse`
3616
+ """
3617
+ http_info = self._update_perm_rule_http_info(request)
3618
+ return self._call_api(**http_info)
3619
+
3620
+ def update_perm_rule_invoker(self, request):
3621
+ http_info = self._update_perm_rule_http_info(request)
3622
+ return SyncInvoker(self, http_info)
3623
+
3624
+ @classmethod
3625
+ def _update_perm_rule_http_info(cls, request):
3626
+ http_info = {
3627
+ "method": "PUT",
3628
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules/{rule_id}",
3629
+ "request_type": request.__class__.__name__,
3630
+ "response_type": "UpdatePermRuleResponse"
3631
+ }
3632
+
3633
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3634
+
3635
+ cname = None
3636
+
3637
+ collection_formats = {}
3638
+
3639
+ path_params = {}
3640
+ if 'share_id' in local_var_params:
3641
+ path_params['share_id'] = local_var_params['share_id']
3642
+ if 'rule_id' in local_var_params:
3643
+ path_params['rule_id'] = local_var_params['rule_id']
3644
+
3645
+ query_params = []
3646
+
3647
+ header_params = {}
3648
+
3649
+ form_params = {}
3650
+
3651
+ body = None
3652
+ if 'body' in local_var_params:
3653
+ body = local_var_params['body']
3654
+ if isinstance(request, SdkStreamRequest):
3655
+ body = request.get_file_stream()
3656
+
3657
+ response_headers = []
3658
+
3659
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3660
+ ['application/json;charset=UTF-8'])
3661
+
3662
+ auth_settings = []
3663
+
3664
+ http_info["cname"] = cname
3665
+ http_info["collection_formats"] = collection_formats
3666
+ http_info["path_params"] = path_params
3667
+ http_info["query_params"] = query_params
3668
+ http_info["header_params"] = header_params
3669
+ http_info["post_params"] = form_params
3670
+ http_info["body"] = body
3671
+ http_info["response_headers"] = response_headers
3672
+
3673
+ return http_info
3674
+
3675
+ def _call_api(self, **kwargs):
3676
+ try:
3677
+ return self.do_http_request(**kwargs)
3678
+ except TypeError:
3679
+ import inspect
3680
+ params = inspect.signature(self.do_http_request).parameters
3681
+ http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs}
3682
+ return self.do_http_request(**http_info)
3683
+
3684
+ def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None,
3685
+ post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None,
3686
+ collection_formats=None, request_type=None):
3687
+ """Makes the HTTP request and returns deserialized data.
3688
+
3689
+ :param resource_path: Path to method endpoint.
3690
+ :param method: Method to call.
3691
+ :param path_params: Path parameters in the url.
3692
+ :param query_params: Query parameters in the url.
3693
+ :param header_params: Header parameters to be placed in the request header.
3694
+ :param body: Request body.
3695
+ :param post_params: Request post form parameters,
3696
+ for `application/x-www-form-urlencoded`, `multipart/form-data`.
3697
+ :param cname: Used for obs endpoint.
3698
+ :param auth_settings: Auth Settings names for the request.
3699
+ :param response_type: Response data type.
3700
+ :param response_headers: Header should be added to response data.
3701
+ :param collection_formats: dict of collection formats for path, query,
3702
+ header, and post parameters.
3703
+ :param request_type: Request data type.
3704
+ :return:
3705
+ Return the response directly.
3706
+ """
3707
+ return self.do_http_request(
3708
+ method=method,
3709
+ resource_path=resource_path,
3710
+ path_params=path_params,
3711
+ query_params=query_params,
3712
+ header_params=header_params,
3713
+ body=body,
3714
+ post_params=post_params,
3715
+ cname=cname,
3716
+ response_type=response_type,
3717
+ response_headers=response_headers,
3718
+ collection_formats=collection_formats,
3719
+ request_type=request_type)