huaweicloudsdksfsturbo 3.1.120__py2.py3-none-any.whl → 3.1.122__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. huaweicloudsdksfsturbo/v1/__init__.py +13 -1
  2. huaweicloudsdksfsturbo/v1/model/__init__.py +13 -1
  3. huaweicloudsdksfsturbo/v1/model/auto_export_policy.py +115 -0
  4. huaweicloudsdksfsturbo/v1/model/create_backend_target_request_body.py +3 -3
  5. huaweicloudsdksfsturbo/v1/model/create_backend_target_response.py +3 -3
  6. huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_request_body.py +6 -6
  7. huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_response.py +6 -6
  8. huaweicloudsdksfsturbo/v1/model/create_fs_dir_request_body.py +3 -3
  9. huaweicloudsdksfsturbo/v1/model/create_fs_task_request.py +3 -3
  10. huaweicloudsdksfsturbo/v1/model/create_hpc_cache_task_req.py +34 -9
  11. huaweicloudsdksfsturbo/v1/model/create_ldap_config_request_body.py +122 -6
  12. huaweicloudsdksfsturbo/v1/model/create_ldap_config_response.py +3 -3
  13. huaweicloudsdksfsturbo/v1/model/delete_hpc_cache_task_request.py +142 -0
  14. huaweicloudsdksfsturbo/v1/model/delete_hpc_cache_task_response.py +112 -0
  15. huaweicloudsdksfsturbo/v1/model/delete_ldap_config_response.py +3 -3
  16. huaweicloudsdksfsturbo/v1/model/delete_shared_tag_request.py +3 -3
  17. huaweicloudsdksfsturbo/v1/model/extend.py +3 -3
  18. huaweicloudsdksfsturbo/v1/model/list_hpc_cache_tasks_request.py +61 -3
  19. huaweicloudsdksfsturbo/v1/model/list_perm_rules_request.py +61 -3
  20. huaweicloudsdksfsturbo/v1/model/list_shared_tags_request.py +61 -1
  21. huaweicloudsdksfsturbo/v1/model/list_shares_request.py +6 -6
  22. huaweicloudsdksfsturbo/v1/model/metadata.py +6 -6
  23. huaweicloudsdksfsturbo/v1/model/obs_data_repository.py +53 -3
  24. huaweicloudsdksfsturbo/v1/model/obs_data_repository_policy.py +111 -0
  25. huaweicloudsdksfsturbo/v1/model/obs_target_attributes.py +202 -0
  26. huaweicloudsdksfsturbo/v1/model/one_perm_rule_request_info.py +6 -6
  27. huaweicloudsdksfsturbo/v1/model/one_perm_rule_response_info.py +6 -6
  28. huaweicloudsdksfsturbo/v1/model/req_update_hpc_cache_data.py +6 -35
  29. huaweicloudsdksfsturbo/v1/model/resource_tag.py +6 -6
  30. huaweicloudsdksfsturbo/v1/model/share.py +18 -18
  31. huaweicloudsdksfsturbo/v1/model/share_info.py +185 -15
  32. huaweicloudsdksfsturbo/v1/model/share_info_feature.py +173 -0
  33. huaweicloudsdksfsturbo/v1/model/share_info_features.py +111 -0
  34. huaweicloudsdksfsturbo/v1/model/show_fs_dir_quota_response.py +6 -6
  35. huaweicloudsdksfsturbo/v1/model/show_fs_dir_response.py +9 -9
  36. huaweicloudsdksfsturbo/v1/model/show_ldap_config_response.py +119 -3
  37. huaweicloudsdksfsturbo/v1/model/show_perm_rule_response.py +6 -6
  38. huaweicloudsdksfsturbo/v1/model/show_share_response.py +185 -15
  39. huaweicloudsdksfsturbo/v1/model/tag.py +3 -3
  40. huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_request_body.py +6 -6
  41. huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_response.py +6 -6
  42. huaweicloudsdksfsturbo/v1/model/update_hpc_share_request_body.py +3 -3
  43. huaweicloudsdksfsturbo/v1/model/update_ldap_config_request_body.py +122 -6
  44. huaweicloudsdksfsturbo/v1/model/update_ldap_config_response.py +3 -3
  45. huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_request.py +167 -0
  46. huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_request_body.py +110 -0
  47. huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_response.py +166 -0
  48. huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_request.py +167 -0
  49. huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_request_body.py +110 -0
  50. huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_response.py +166 -0
  51. huaweicloudsdksfsturbo/v1/model/update_perm_rule_response.py +6 -6
  52. huaweicloudsdksfsturbo/v1/region/sfsturbo_region.py +6 -0
  53. huaweicloudsdksfsturbo/v1/sfsturbo_async_client.py +246 -13
  54. huaweicloudsdksfsturbo/v1/sfsturbo_client.py +246 -13
  55. {huaweicloudsdksfsturbo-3.1.120.dist-info → huaweicloudsdksfsturbo-3.1.122.dist-info}/METADATA +2 -2
  56. {huaweicloudsdksfsturbo-3.1.120.dist-info → huaweicloudsdksfsturbo-3.1.122.dist-info}/RECORD +59 -47
  57. {huaweicloudsdksfsturbo-3.1.120.dist-info → huaweicloudsdksfsturbo-3.1.122.dist-info}/WHEEL +1 -1
  58. huaweicloudsdksfsturbo/v1/model/config_obs_target.py +0 -198
  59. {huaweicloudsdksfsturbo-3.1.120.dist-info → huaweicloudsdksfsturbo-3.1.122.dist-info}/LICENSE +0 -0
  60. {huaweicloudsdksfsturbo-3.1.120.dist-info → huaweicloudsdksfsturbo-3.1.122.dist-info}/top_level.txt +0 -0
@@ -37,7 +37,7 @@ class SFSTurboAsyncClient(Client):
37
37
 
38
38
  指定共享批量添加标签。
39
39
 
40
- 一个共享上最多有10个标签。
40
+ 一个共享上最多有20个标签。
41
41
  一个共享上的多个标签的key不允许重复。
42
42
  此接口为幂等接口:如果要添加的key在共享上已存在,则覆盖更新标签。
43
43
 
@@ -240,7 +240,7 @@ class SFSTurboAsyncClient(Client):
240
240
  def create_backend_target_async(self, request):
241
241
  """绑定后端存储
242
242
 
243
- 为SFS Turbo HPC型文件系统绑定后端存储
243
+ 为SFS Turbo 文件系统绑定后端存储
244
244
 
245
245
  Please refer to HUAWEI cloud API Explorer for details.
246
246
 
@@ -441,7 +441,7 @@ class SFSTurboAsyncClient(Client):
441
441
  def create_fs_task_async(self, request):
442
442
  """创建文件系统异步任务
443
443
 
444
- 创建文件系统异步任务
444
+ 创建文件系统异步任务,仅支持异步查询目录资源使用情况,API请求路径的feature取值为dir-usage,以下简称为DU任务。
445
445
 
446
446
  Please refer to HUAWEI cloud API Explorer for details.
447
447
 
@@ -577,7 +577,11 @@ class SFSTurboAsyncClient(Client):
577
577
  def create_ldap_config_async(self, request):
578
578
  """创建并绑定ldap配置
579
579
 
580
- 创建并绑定ldap配置
580
+ 创建并绑定ldap配置。LDAP(Lightweight Directory Access Protocol),中文名称轻量级目录访问协议,是对目录服务器(Directory Server)进行访问、控制的一种标准协议。LDAP服务器可以集中式地管理用户和群组的归属关系,通过绑定LDAP服务器,当一个用户访问您的文件系统的文件时,SFS Turbo将会访问您的LDAP服务器以进行用户身份验证,并且获取用户和群组的归属关系,从而进行Linux标准的文件UGO权限的检查。要使用此功能,首先您需要搭建好LDAP服务器(当前SFS Turbo仅支持LDAP v3协议),常见提供LDAP协议访问的目录服务器实现有OpenLdap(Linux),Active Directory(Windows)等,不同目录服务器的实现细节有所差别,绑定时需要指定对应的Schema(Schema配置错误将会导致SFS Turbo无法正确获取用户以及群组信息,可能导致无权限访问文件系统内文件),当前SFS Turbo支持的Schema有:
581
+ 1. RFC2307(Openldap通常选择此Schema)
582
+ 2. MS-AD-BIS(Active Directory通常选择此Schema,支持RFC2307bis,支持嵌套的群组)
583
+
584
+ SFS Turbo还支持配置主备LDAP服务器,当您的一台LDAP服务器故障无法访问后,SFS Turbo将会自动切换到备LDAP服务器访问,以免影响您的业务。同时,若您还选择将allow_local_user配置为Yes(默认为No),那么当您的LDAP服务器全部故障无法访问时,SFS Turbo将会使用您的本地用户以及群组信息,而非LDAP服务器中配置的信息进行身份验证和UGO权限检查,以最大程度减少故障影响面。
581
585
 
582
586
  Please refer to HUAWEI cloud API Explorer for details.
583
587
 
@@ -777,7 +781,7 @@ class SFSTurboAsyncClient(Client):
777
781
  """创建共享标签
778
782
 
779
783
  指定共享添加一个标签。
780
- 一个共享上最多有10个标签。
784
+ 一个共享上最多有20个标签。
781
785
  一个共享上的多个标签的key不允许重复。
782
786
  此接口为幂等接口:如果要添加的key在共享上已存在,则覆盖更新标签。
783
787
 
@@ -1049,7 +1053,7 @@ class SFSTurboAsyncClient(Client):
1049
1053
  def delete_fs_task_async(self, request):
1050
1054
  """取消/删除文件系统异步任务
1051
1055
 
1052
- 如果异步任务正在执行,则取消并删除任务;否则,删除任务。
1056
+ 如果异步任务正在执行,则取消并删除任务;否则,删除任务。仅支持删除目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。
1053
1057
 
1054
1058
  Please refer to HUAWEI cloud API Explorer for details.
1055
1059
 
@@ -1115,10 +1119,81 @@ class SFSTurboAsyncClient(Client):
1115
1119
 
1116
1120
  return http_info
1117
1121
 
1122
+ def delete_hpc_cache_task_async(self, request):
1123
+ """删除数据导入导出任务
1124
+
1125
+ 删除数据导入导出任务
1126
+
1127
+ Please refer to HUAWEI cloud API Explorer for details.
1128
+
1129
+
1130
+ :param request: Request instance for DeleteHpcCacheTask
1131
+ :type request: :class:`huaweicloudsdksfsturbo.v1.DeleteHpcCacheTaskRequest`
1132
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.DeleteHpcCacheTaskResponse`
1133
+ """
1134
+ http_info = self._delete_hpc_cache_task_http_info(request)
1135
+ return self._call_api(**http_info)
1136
+
1137
+ def delete_hpc_cache_task_async_invoker(self, request):
1138
+ http_info = self._delete_hpc_cache_task_http_info(request)
1139
+ return AsyncInvoker(self, http_info)
1140
+
1141
+ def _delete_hpc_cache_task_http_info(self, request):
1142
+ http_info = {
1143
+ "method": "DELETE",
1144
+ "resource_path": "/v1/{project_id}/sfs-turbo/{share_id}/hpc-cache/task/{task_id}",
1145
+ "request_type": request.__class__.__name__,
1146
+ "response_type": "DeleteHpcCacheTaskResponse"
1147
+ }
1148
+
1149
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1150
+
1151
+ cname = None
1152
+
1153
+ collection_formats = {}
1154
+
1155
+ path_params = {}
1156
+ if 'share_id' in local_var_params:
1157
+ path_params['share_id'] = local_var_params['share_id']
1158
+ if 'task_id' in local_var_params:
1159
+ path_params['task_id'] = local_var_params['task_id']
1160
+
1161
+ query_params = []
1162
+
1163
+ header_params = {}
1164
+
1165
+ form_params = {}
1166
+
1167
+ body = None
1168
+ if isinstance(request, SdkStreamRequest):
1169
+ body = request.get_file_stream()
1170
+
1171
+ response_headers = ["X-request-id", ]
1172
+
1173
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1174
+ ['application/json'])
1175
+
1176
+ auth_settings = []
1177
+
1178
+ http_info["cname"] = cname
1179
+ http_info["collection_formats"] = collection_formats
1180
+ http_info["path_params"] = path_params
1181
+ http_info["query_params"] = query_params
1182
+ http_info["header_params"] = header_params
1183
+ http_info["post_params"] = form_params
1184
+ http_info["body"] = body
1185
+ http_info["response_headers"] = response_headers
1186
+
1187
+ return http_info
1188
+
1118
1189
  def delete_ldap_config_async(self, request):
1119
1190
  """删除ldap配置
1120
1191
 
1121
- 删除ldap配置
1192
+ 删除ldap配置。LDAP(Lightweight Directory Access Protocol),中文名称轻量级目录访问协议,是对目录服务器(Directory Server)进行访问、控制的一种标准协议。LDAP服务器可以集中式地管理用户和群组的归属关系,通过绑定LDAP服务器,当一个用户访问您的文件系统的文件时,SFS Turbo将会访问您的LDAP服务器以进行用户身份验证,并且获取用户和群组的归属关系,从而进行Linux标准的文件UGO权限的检查。要使用此功能,首先您需要搭建好LDAP服务器(当前SFS Turbo仅支持LDAP v3协议),常见提供LDAP协议访问的目录服务器实现有OpenLdap(Linux),Active Directory(Windows)等,不同目录服务器的实现细节有所差别,绑定时需要指定对应的Schema(Schema配置错误将会导致SFS Turbo无法正确获取用户以及群组信息,可能导致无权限访问文件系统内文件),当前SFS Turbo支持的Schema有:
1193
+ 1. RFC2307(Openldap通常选择此Schema)
1194
+ 2. MS-AD-BIS(Active Directory通常选择此Schema,支持RFC2307bis,支持嵌套的群组)
1195
+
1196
+ SFS Turbo还支持配置主备LDAP服务器,当您的一台LDAP服务器故障无法访问后,SFS Turbo将会自动切换到备LDAP服务器访问,以免影响您的业务。同时,若您还选择将allow_local_user配置为Yes(默认为No),那么当您的LDAP服务器全部故障无法访问时,SFS Turbo将会使用您的本地用户以及群组信息,而非LDAP服务器中配置的信息进行身份验证和UGO权限检查,以最大程度减少故障影响面。
1122
1197
 
1123
1198
  Please refer to HUAWEI cloud API Explorer for details.
1124
1199
 
@@ -1518,7 +1593,7 @@ class SFSTurboAsyncClient(Client):
1518
1593
  def list_fs_tasks_async(self, request):
1519
1594
  """获取文件系统异步任务列表
1520
1595
 
1521
- 获取文件系统异步任务列表
1596
+ 获取文件系统异步任务列表。仅支持查询目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。
1522
1597
 
1523
1598
  Please refer to HUAWEI cloud API Explorer for details.
1524
1599
 
@@ -1632,6 +1707,10 @@ class SFSTurboAsyncClient(Client):
1632
1707
  query_params.append(('offset', local_var_params['offset']))
1633
1708
  if 'limit' in local_var_params:
1634
1709
  query_params.append(('limit', local_var_params['limit']))
1710
+ if 'start_time' in local_var_params:
1711
+ query_params.append(('start_time', local_var_params['start_time']))
1712
+ if 'end_time' in local_var_params:
1713
+ query_params.append(('end_time', local_var_params['end_time']))
1635
1714
 
1636
1715
  header_params = {}
1637
1716
 
@@ -1697,6 +1776,10 @@ class SFSTurboAsyncClient(Client):
1697
1776
  path_params['share_id'] = local_var_params['share_id']
1698
1777
 
1699
1778
  query_params = []
1779
+ if 'limit' in local_var_params:
1780
+ query_params.append(('limit', local_var_params['limit']))
1781
+ if 'offset' in local_var_params:
1782
+ query_params.append(('offset', local_var_params['offset']))
1700
1783
 
1701
1784
  header_params = {}
1702
1785
 
@@ -1760,6 +1843,10 @@ class SFSTurboAsyncClient(Client):
1760
1843
  path_params = {}
1761
1844
 
1762
1845
  query_params = []
1846
+ if 'limit' in local_var_params:
1847
+ query_params.append(('limit', local_var_params['limit']))
1848
+ if 'offset' in local_var_params:
1849
+ query_params.append(('offset', local_var_params['offset']))
1763
1850
 
1764
1851
  header_params = {}
1765
1852
 
@@ -2058,7 +2145,7 @@ class SFSTurboAsyncClient(Client):
2058
2145
  def show_fs_dir_quota_async(self, request):
2059
2146
  """查询目标文件夹quota
2060
2147
 
2061
- 查询目标文件夹quota
2148
+ 查询目标文件夹quota。查询的used_capacity、used_inode数据可能有延迟。
2062
2149
 
2063
2150
  Please refer to HUAWEI cloud API Explorer for details.
2064
2151
 
@@ -2192,7 +2279,7 @@ class SFSTurboAsyncClient(Client):
2192
2279
  def show_fs_task_async(self, request):
2193
2280
  """获取文件系统异步任务详情
2194
2281
 
2195
- 获取文件系统异步任务详情
2282
+ 获取文件系统异步任务详情。仅支持查询目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。
2196
2283
 
2197
2284
  Please refer to HUAWEI cloud API Explorer for details.
2198
2285
 
@@ -2328,7 +2415,7 @@ class SFSTurboAsyncClient(Client):
2328
2415
  def show_job_detail_async(self, request):
2329
2416
  """查询job的状态详情
2330
2417
 
2331
- 查询job的执行状态。 可用于查询SFS Turbo异步API的执行状态。
2418
+ 查询job的执行状态。 可用于查询SFS Turbo异步API的执行状态。例如:可使用调用创建并绑定ldap配置接口时返回的jobId,通过该接口查询job的执行状态。
2332
2419
 
2333
2420
  Please refer to HUAWEI cloud API Explorer for details.
2334
2421
 
@@ -2393,7 +2480,11 @@ class SFSTurboAsyncClient(Client):
2393
2480
  def show_ldap_config_async(self, request):
2394
2481
  """查询Ldap的配置
2395
2482
 
2396
- 查询Ldap的配置
2483
+ 查询Ldap的配置。LDAP(Lightweight Directory Access Protocol),中文名称轻量级目录访问协议,是对目录服务器(Directory Server)进行访问、控制的一种标准协议。LDAP服务器可以集中式地管理用户和群组的归属关系,通过绑定LDAP服务器,当一个用户访问您的文件系统的文件时,SFS Turbo将会访问您的LDAP服务器以进行用户身份验证,并且获取用户和群组的归属关系,从而进行Linux标准的文件UGO权限的检查。要使用此功能,首先您需要搭建好LDAP服务器(当前SFS Turbo仅支持LDAP v3协议),常见提供LDAP协议访问的目录服务器实现有OpenLdap(Linux),Active Directory(Windows)等,不同目录服务器的实现细节有所差别,绑定时需要指定对应的Schema(Schema配置错误将会导致SFS Turbo无法正确获取用户以及群组信息,可能导致无权限访问文件系统内文件),当前SFS Turbo支持的Schema有:
2484
+ 1. RFC2307(Openldap通常选择此Schema)
2485
+ 2. MS-AD-BIS(Active Directory通常选择此Schema,支持RFC2307bis,支持嵌套的群组)
2486
+
2487
+ SFS Turbo还支持配置主备LDAP服务器,当您的一台LDAP服务器故障无法访问后,SFS Turbo将会自动切换到备LDAP服务器访问,以免影响您的业务。同时,若您还选择将allow_local_user配置为Yes(默认为No),那么当您的LDAP服务器全部故障无法访问时,SFS Turbo将会使用您的本地用户以及群组信息,而非LDAP服务器中配置的信息进行身份验证和UGO权限检查,以最大程度减少故障影响面。
2397
2488
 
2398
2489
  Please refer to HUAWEI cloud API Explorer for details.
2399
2490
 
@@ -2789,7 +2880,11 @@ class SFSTurboAsyncClient(Client):
2789
2880
  def update_ldap_config_async(self, request):
2790
2881
  """修改ldap配置
2791
2882
 
2792
- 修改ldap配置
2883
+ 修改ldap配置。LDAP(Lightweight Directory Access Protocol),中文名称轻量级目录访问协议,是对目录服务器(Directory Server)进行访问、控制的一种标准协议。LDAP服务器可以集中式地管理用户和群组的归属关系,通过绑定LDAP服务器,当一个用户访问您的文件系统的文件时,SFS Turbo将会访问您的LDAP服务器以进行用户身份验证,并且获取用户和群组的归属关系,从而进行Linux标准的文件UGO权限的检查。要使用此功能,首先您需要搭建好LDAP服务器(当前SFS Turbo仅支持LDAP v3协议),常见提供LDAP协议访问的目录服务器实现有OpenLdap(Linux),Active Directory(Windows)等,不同目录服务器的实现细节有所差别,绑定时需要指定对应的Schema(Schema配置错误将会导致SFS Turbo无法正确获取用户以及群组信息,可能导致无权限访问文件系统内文件),当前SFS Turbo支持的Schema有:
2884
+ 1. RFC2307(Openldap通常选择此Schema)
2885
+ 2. MS-AD-BIS(Active Directory通常选择此Schema,支持RFC2307bis,支持嵌套的群组)
2886
+
2887
+ SFS Turbo还支持配置主备LDAP服务器,当您的一台LDAP服务器故障无法访问后,SFS Turbo将会自动切换到备LDAP服务器访问,以免影响您的业务。同时,若您还选择将allow_local_user配置为Yes(默认为No),那么当您的LDAP服务器全部故障无法访问时,SFS Turbo将会使用您的本地用户以及群组信息,而非LDAP服务器中配置的信息进行身份验证和UGO权限检查,以最大程度减少故障影响面。
2793
2888
 
2794
2889
  Please refer to HUAWEI cloud API Explorer for details.
2795
2890
 
@@ -2853,6 +2948,144 @@ class SFSTurboAsyncClient(Client):
2853
2948
 
2854
2949
  return http_info
2855
2950
 
2951
+ def update_obs_target_attributes_async(self, request):
2952
+ """更新后端存储属性
2953
+
2954
+ 更新后端存储属性
2955
+
2956
+ Please refer to HUAWEI cloud API Explorer for details.
2957
+
2958
+
2959
+ :param request: Request instance for UpdateObsTargetAttributes
2960
+ :type request: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetAttributesRequest`
2961
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetAttributesResponse`
2962
+ """
2963
+ http_info = self._update_obs_target_attributes_http_info(request)
2964
+ return self._call_api(**http_info)
2965
+
2966
+ def update_obs_target_attributes_async_invoker(self, request):
2967
+ http_info = self._update_obs_target_attributes_http_info(request)
2968
+ return AsyncInvoker(self, http_info)
2969
+
2970
+ def _update_obs_target_attributes_http_info(self, request):
2971
+ http_info = {
2972
+ "method": "PUT",
2973
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/targets/{target_id}/attributes",
2974
+ "request_type": request.__class__.__name__,
2975
+ "response_type": "UpdateObsTargetAttributesResponse"
2976
+ }
2977
+
2978
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2979
+
2980
+ cname = None
2981
+
2982
+ collection_formats = {}
2983
+
2984
+ path_params = {}
2985
+ if 'share_id' in local_var_params:
2986
+ path_params['share_id'] = local_var_params['share_id']
2987
+ if 'target_id' in local_var_params:
2988
+ path_params['target_id'] = local_var_params['target_id']
2989
+
2990
+ query_params = []
2991
+
2992
+ header_params = {}
2993
+
2994
+ form_params = {}
2995
+
2996
+ body = None
2997
+ if 'body' in local_var_params:
2998
+ body = local_var_params['body']
2999
+ if isinstance(request, SdkStreamRequest):
3000
+ body = request.get_file_stream()
3001
+
3002
+ response_headers = ["X-request-id", ]
3003
+
3004
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3005
+ ['application/json;charset=UTF-8'])
3006
+
3007
+ auth_settings = []
3008
+
3009
+ http_info["cname"] = cname
3010
+ http_info["collection_formats"] = collection_formats
3011
+ http_info["path_params"] = path_params
3012
+ http_info["query_params"] = query_params
3013
+ http_info["header_params"] = header_params
3014
+ http_info["post_params"] = form_params
3015
+ http_info["body"] = body
3016
+ http_info["response_headers"] = response_headers
3017
+
3018
+ return http_info
3019
+
3020
+ def update_obs_target_policy_async(self, request):
3021
+ """更新后端存储自动同步策略
3022
+
3023
+ 更新后端存储自动同步策略
3024
+
3025
+ Please refer to HUAWEI cloud API Explorer for details.
3026
+
3027
+
3028
+ :param request: Request instance for UpdateObsTargetPolicy
3029
+ :type request: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetPolicyRequest`
3030
+ :rtype: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetPolicyResponse`
3031
+ """
3032
+ http_info = self._update_obs_target_policy_http_info(request)
3033
+ return self._call_api(**http_info)
3034
+
3035
+ def update_obs_target_policy_async_invoker(self, request):
3036
+ http_info = self._update_obs_target_policy_http_info(request)
3037
+ return AsyncInvoker(self, http_info)
3038
+
3039
+ def _update_obs_target_policy_http_info(self, request):
3040
+ http_info = {
3041
+ "method": "PUT",
3042
+ "resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/targets/{target_id}/policy",
3043
+ "request_type": request.__class__.__name__,
3044
+ "response_type": "UpdateObsTargetPolicyResponse"
3045
+ }
3046
+
3047
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3048
+
3049
+ cname = None
3050
+
3051
+ collection_formats = {}
3052
+
3053
+ path_params = {}
3054
+ if 'share_id' in local_var_params:
3055
+ path_params['share_id'] = local_var_params['share_id']
3056
+ if 'target_id' in local_var_params:
3057
+ path_params['target_id'] = local_var_params['target_id']
3058
+
3059
+ query_params = []
3060
+
3061
+ header_params = {}
3062
+
3063
+ form_params = {}
3064
+
3065
+ body = None
3066
+ if 'body' in local_var_params:
3067
+ body = local_var_params['body']
3068
+ if isinstance(request, SdkStreamRequest):
3069
+ body = request.get_file_stream()
3070
+
3071
+ response_headers = ["X-request-id", ]
3072
+
3073
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3074
+ ['application/json;charset=UTF-8'])
3075
+
3076
+ auth_settings = []
3077
+
3078
+ http_info["cname"] = cname
3079
+ http_info["collection_formats"] = collection_formats
3080
+ http_info["path_params"] = path_params
3081
+ http_info["query_params"] = query_params
3082
+ http_info["header_params"] = header_params
3083
+ http_info["post_params"] = form_params
3084
+ http_info["body"] = body
3085
+ http_info["response_headers"] = response_headers
3086
+
3087
+ return http_info
3088
+
2856
3089
  def update_perm_rule_async(self, request):
2857
3090
  """修改权限规则
2858
3091