huaweicloudsdksfsturbo 3.1.85__py2.py3-none-any.whl → 3.1.132__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- huaweicloudsdksfsturbo/v1/__init__.py +17 -1
- huaweicloudsdksfsturbo/v1/model/__init__.py +17 -1
- huaweicloudsdksfsturbo/v1/model/auto_export_policy.py +115 -0
- huaweicloudsdksfsturbo/v1/model/create_backend_target_request_body.py +3 -3
- huaweicloudsdksfsturbo/v1/model/create_backend_target_response.py +3 -3
- huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_request_body.py +6 -6
- huaweicloudsdksfsturbo/v1/model/create_fs_dir_quota_response.py +6 -6
- huaweicloudsdksfsturbo/v1/model/create_fs_dir_request_body.py +3 -3
- huaweicloudsdksfsturbo/v1/model/create_fs_task_request.py +3 -3
- huaweicloudsdksfsturbo/v1/model/create_hpc_cache_task_req.py +34 -9
- huaweicloudsdksfsturbo/v1/model/create_ldap_config_request_body.py +122 -6
- huaweicloudsdksfsturbo/v1/model/create_ldap_config_response.py +3 -3
- huaweicloudsdksfsturbo/v1/model/delete_hpc_cache_task_request.py +142 -0
- huaweicloudsdksfsturbo/v1/model/delete_hpc_cache_task_response.py +112 -0
- huaweicloudsdksfsturbo/v1/model/delete_ldap_config_response.py +3 -3
- huaweicloudsdksfsturbo/v1/model/delete_shared_tag_request.py +3 -3
- huaweicloudsdksfsturbo/v1/model/extend.py +3 -3
- huaweicloudsdksfsturbo/v1/model/list_hpc_cache_tasks_request.py +61 -3
- huaweicloudsdksfsturbo/v1/model/list_perm_rules_request.py +61 -3
- huaweicloudsdksfsturbo/v1/model/list_shared_tags_request.py +61 -1
- huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_request.py +111 -0
- huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_request_body.py +260 -0
- huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_resource.py +202 -0
- huaweicloudsdksfsturbo/v1/model/list_shares_by_tag_response.py +170 -0
- huaweicloudsdksfsturbo/v1/model/list_shares_request.py +6 -6
- huaweicloudsdksfsturbo/v1/model/metadata.py +6 -6
- huaweicloudsdksfsturbo/v1/model/obs_data_repository.py +53 -3
- huaweicloudsdksfsturbo/v1/model/obs_data_repository_policy.py +111 -0
- huaweicloudsdksfsturbo/v1/model/obs_target_attributes.py +202 -0
- huaweicloudsdksfsturbo/v1/model/one_perm_rule_request_info.py +6 -6
- huaweicloudsdksfsturbo/v1/model/one_perm_rule_response_info.py +6 -6
- huaweicloudsdksfsturbo/v1/model/req_update_hpc_cache_data.py +6 -35
- huaweicloudsdksfsturbo/v1/model/resource_tag.py +6 -6
- huaweicloudsdksfsturbo/v1/model/share.py +18 -18
- huaweicloudsdksfsturbo/v1/model/share_info.py +185 -15
- huaweicloudsdksfsturbo/v1/model/share_info_feature.py +173 -0
- huaweicloudsdksfsturbo/v1/model/share_info_features.py +111 -0
- huaweicloudsdksfsturbo/v1/model/show_fs_dir_quota_response.py +6 -6
- huaweicloudsdksfsturbo/v1/model/show_fs_dir_response.py +9 -9
- huaweicloudsdksfsturbo/v1/model/show_ldap_config_response.py +119 -3
- huaweicloudsdksfsturbo/v1/model/show_perm_rule_response.py +6 -6
- huaweicloudsdksfsturbo/v1/model/show_share_response.py +185 -15
- huaweicloudsdksfsturbo/v1/model/tag.py +3 -3
- huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_request_body.py +6 -6
- huaweicloudsdksfsturbo/v1/model/update_fs_dir_quota_response.py +6 -6
- huaweicloudsdksfsturbo/v1/model/update_hpc_share_request_body.py +3 -3
- huaweicloudsdksfsturbo/v1/model/update_ldap_config_request_body.py +122 -6
- huaweicloudsdksfsturbo/v1/model/update_ldap_config_response.py +3 -3
- huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_request.py +167 -0
- huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_request_body.py +110 -0
- huaweicloudsdksfsturbo/v1/model/update_obs_target_attributes_response.py +166 -0
- huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_request.py +167 -0
- huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_request_body.py +110 -0
- huaweicloudsdksfsturbo/v1/model/update_obs_target_policy_response.py +166 -0
- huaweicloudsdksfsturbo/v1/model/update_perm_rule_response.py +6 -6
- huaweicloudsdksfsturbo/v1/region/sfsturbo_region.py +21 -0
- huaweicloudsdksfsturbo/v1/sfsturbo_async_client.py +311 -13
- huaweicloudsdksfsturbo/v1/sfsturbo_client.py +311 -13
- {huaweicloudsdksfsturbo-3.1.85.dist-info → huaweicloudsdksfsturbo-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdksfsturbo-3.1.85.dist-info → huaweicloudsdksfsturbo-3.1.132.dist-info}/RECORD +63 -47
- {huaweicloudsdksfsturbo-3.1.85.dist-info → huaweicloudsdksfsturbo-3.1.132.dist-info}/WHEEL +1 -1
- huaweicloudsdksfsturbo/v1/model/config_obs_target.py +0 -198
- {huaweicloudsdksfsturbo-3.1.85.dist-info → huaweicloudsdksfsturbo-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdksfsturbo-3.1.85.dist-info → huaweicloudsdksfsturbo-3.1.132.dist-info}/top_level.txt +0 -0
@@ -37,7 +37,7 @@ class SFSTurboAsyncClient(Client):
|
|
37
37
|
|
38
38
|
指定共享批量添加标签。
|
39
39
|
|
40
|
-
一个共享上最多有
|
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
|
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
|
-
一个共享上最多有
|
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
|
|
@@ -1854,6 +1941,71 @@ class SFSTurboAsyncClient(Client):
|
|
1854
1941
|
|
1855
1942
|
return http_info
|
1856
1943
|
|
1944
|
+
def list_shares_by_tag_async(self, request):
|
1945
|
+
"""通过标签查询文件系统列表
|
1946
|
+
|
1947
|
+
通过标签查询文件系统列表
|
1948
|
+
|
1949
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1950
|
+
|
1951
|
+
|
1952
|
+
:param request: Request instance for ListSharesByTag
|
1953
|
+
:type request: :class:`huaweicloudsdksfsturbo.v1.ListSharesByTagRequest`
|
1954
|
+
:rtype: :class:`huaweicloudsdksfsturbo.v1.ListSharesByTagResponse`
|
1955
|
+
"""
|
1956
|
+
http_info = self._list_shares_by_tag_http_info(request)
|
1957
|
+
return self._call_api(**http_info)
|
1958
|
+
|
1959
|
+
def list_shares_by_tag_async_invoker(self, request):
|
1960
|
+
http_info = self._list_shares_by_tag_http_info(request)
|
1961
|
+
return AsyncInvoker(self, http_info)
|
1962
|
+
|
1963
|
+
def _list_shares_by_tag_http_info(self, request):
|
1964
|
+
http_info = {
|
1965
|
+
"method": "POST",
|
1966
|
+
"resource_path": "/v1/{project_id}/sfs-turbo/resource_instances/action",
|
1967
|
+
"request_type": request.__class__.__name__,
|
1968
|
+
"response_type": "ListSharesByTagResponse"
|
1969
|
+
}
|
1970
|
+
|
1971
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1972
|
+
|
1973
|
+
cname = None
|
1974
|
+
|
1975
|
+
collection_formats = {}
|
1976
|
+
|
1977
|
+
path_params = {}
|
1978
|
+
|
1979
|
+
query_params = []
|
1980
|
+
|
1981
|
+
header_params = {}
|
1982
|
+
|
1983
|
+
form_params = {}
|
1984
|
+
|
1985
|
+
body = None
|
1986
|
+
if 'body' in local_var_params:
|
1987
|
+
body = local_var_params['body']
|
1988
|
+
if isinstance(request, SdkStreamRequest):
|
1989
|
+
body = request.get_file_stream()
|
1990
|
+
|
1991
|
+
response_headers = ["X-request-id", ]
|
1992
|
+
|
1993
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1994
|
+
['application/json;charset=UTF-8'])
|
1995
|
+
|
1996
|
+
auth_settings = []
|
1997
|
+
|
1998
|
+
http_info["cname"] = cname
|
1999
|
+
http_info["collection_formats"] = collection_formats
|
2000
|
+
http_info["path_params"] = path_params
|
2001
|
+
http_info["query_params"] = query_params
|
2002
|
+
http_info["header_params"] = header_params
|
2003
|
+
http_info["post_params"] = form_params
|
2004
|
+
http_info["body"] = body
|
2005
|
+
http_info["response_headers"] = response_headers
|
2006
|
+
|
2007
|
+
return http_info
|
2008
|
+
|
1857
2009
|
def set_hpc_cache_backend_async(self, request):
|
1858
2010
|
"""配置hpc缓存型后端信息
|
1859
2011
|
|
@@ -2058,7 +2210,7 @@ class SFSTurboAsyncClient(Client):
|
|
2058
2210
|
def show_fs_dir_quota_async(self, request):
|
2059
2211
|
"""查询目标文件夹quota
|
2060
2212
|
|
2061
|
-
查询目标文件夹quota
|
2213
|
+
查询目标文件夹quota。查询的used_capacity、used_inode数据可能有延迟。
|
2062
2214
|
|
2063
2215
|
Please refer to HUAWEI cloud API Explorer for details.
|
2064
2216
|
|
@@ -2192,7 +2344,7 @@ class SFSTurboAsyncClient(Client):
|
|
2192
2344
|
def show_fs_task_async(self, request):
|
2193
2345
|
"""获取文件系统异步任务详情
|
2194
2346
|
|
2195
|
-
|
2347
|
+
获取文件系统异步任务详情。仅支持查询目录资源使用情况的任务,API请求路径的feature取值为dir-usage,以下简称为DU任务。
|
2196
2348
|
|
2197
2349
|
Please refer to HUAWEI cloud API Explorer for details.
|
2198
2350
|
|
@@ -2328,7 +2480,7 @@ class SFSTurboAsyncClient(Client):
|
|
2328
2480
|
def show_job_detail_async(self, request):
|
2329
2481
|
"""查询job的状态详情
|
2330
2482
|
|
2331
|
-
查询job的执行状态。 可用于查询SFS Turbo异步API的执行状态。
|
2483
|
+
查询job的执行状态。 可用于查询SFS Turbo异步API的执行状态。例如:可使用调用创建并绑定ldap配置接口时返回的jobId,通过该接口查询job的执行状态。
|
2332
2484
|
|
2333
2485
|
Please refer to HUAWEI cloud API Explorer for details.
|
2334
2486
|
|
@@ -2393,7 +2545,11 @@ class SFSTurboAsyncClient(Client):
|
|
2393
2545
|
def show_ldap_config_async(self, request):
|
2394
2546
|
"""查询Ldap的配置
|
2395
2547
|
|
2396
|
-
查询Ldap
|
2548
|
+
查询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有:
|
2549
|
+
1. RFC2307(Openldap通常选择此Schema)
|
2550
|
+
2. MS-AD-BIS(Active Directory通常选择此Schema,支持RFC2307bis,支持嵌套的群组)
|
2551
|
+
|
2552
|
+
SFS Turbo还支持配置主备LDAP服务器,当您的一台LDAP服务器故障无法访问后,SFS Turbo将会自动切换到备LDAP服务器访问,以免影响您的业务。同时,若您还选择将allow_local_user配置为Yes(默认为No),那么当您的LDAP服务器全部故障无法访问时,SFS Turbo将会使用您的本地用户以及群组信息,而非LDAP服务器中配置的信息进行身份验证和UGO权限检查,以最大程度减少故障影响面。
|
2397
2553
|
|
2398
2554
|
Please refer to HUAWEI cloud API Explorer for details.
|
2399
2555
|
|
@@ -2789,7 +2945,11 @@ class SFSTurboAsyncClient(Client):
|
|
2789
2945
|
def update_ldap_config_async(self, request):
|
2790
2946
|
"""修改ldap配置
|
2791
2947
|
|
2792
|
-
修改ldap
|
2948
|
+
修改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有:
|
2949
|
+
1. RFC2307(Openldap通常选择此Schema)
|
2950
|
+
2. MS-AD-BIS(Active Directory通常选择此Schema,支持RFC2307bis,支持嵌套的群组)
|
2951
|
+
|
2952
|
+
SFS Turbo还支持配置主备LDAP服务器,当您的一台LDAP服务器故障无法访问后,SFS Turbo将会自动切换到备LDAP服务器访问,以免影响您的业务。同时,若您还选择将allow_local_user配置为Yes(默认为No),那么当您的LDAP服务器全部故障无法访问时,SFS Turbo将会使用您的本地用户以及群组信息,而非LDAP服务器中配置的信息进行身份验证和UGO权限检查,以最大程度减少故障影响面。
|
2793
2953
|
|
2794
2954
|
Please refer to HUAWEI cloud API Explorer for details.
|
2795
2955
|
|
@@ -2853,6 +3013,144 @@ class SFSTurboAsyncClient(Client):
|
|
2853
3013
|
|
2854
3014
|
return http_info
|
2855
3015
|
|
3016
|
+
def update_obs_target_attributes_async(self, request):
|
3017
|
+
"""更新后端存储属性
|
3018
|
+
|
3019
|
+
更新后端存储属性
|
3020
|
+
|
3021
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3022
|
+
|
3023
|
+
|
3024
|
+
:param request: Request instance for UpdateObsTargetAttributes
|
3025
|
+
:type request: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetAttributesRequest`
|
3026
|
+
:rtype: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetAttributesResponse`
|
3027
|
+
"""
|
3028
|
+
http_info = self._update_obs_target_attributes_http_info(request)
|
3029
|
+
return self._call_api(**http_info)
|
3030
|
+
|
3031
|
+
def update_obs_target_attributes_async_invoker(self, request):
|
3032
|
+
http_info = self._update_obs_target_attributes_http_info(request)
|
3033
|
+
return AsyncInvoker(self, http_info)
|
3034
|
+
|
3035
|
+
def _update_obs_target_attributes_http_info(self, request):
|
3036
|
+
http_info = {
|
3037
|
+
"method": "PUT",
|
3038
|
+
"resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/targets/{target_id}/attributes",
|
3039
|
+
"request_type": request.__class__.__name__,
|
3040
|
+
"response_type": "UpdateObsTargetAttributesResponse"
|
3041
|
+
}
|
3042
|
+
|
3043
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3044
|
+
|
3045
|
+
cname = None
|
3046
|
+
|
3047
|
+
collection_formats = {}
|
3048
|
+
|
3049
|
+
path_params = {}
|
3050
|
+
if 'share_id' in local_var_params:
|
3051
|
+
path_params['share_id'] = local_var_params['share_id']
|
3052
|
+
if 'target_id' in local_var_params:
|
3053
|
+
path_params['target_id'] = local_var_params['target_id']
|
3054
|
+
|
3055
|
+
query_params = []
|
3056
|
+
|
3057
|
+
header_params = {}
|
3058
|
+
|
3059
|
+
form_params = {}
|
3060
|
+
|
3061
|
+
body = None
|
3062
|
+
if 'body' in local_var_params:
|
3063
|
+
body = local_var_params['body']
|
3064
|
+
if isinstance(request, SdkStreamRequest):
|
3065
|
+
body = request.get_file_stream()
|
3066
|
+
|
3067
|
+
response_headers = ["X-request-id", ]
|
3068
|
+
|
3069
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3070
|
+
['application/json;charset=UTF-8'])
|
3071
|
+
|
3072
|
+
auth_settings = []
|
3073
|
+
|
3074
|
+
http_info["cname"] = cname
|
3075
|
+
http_info["collection_formats"] = collection_formats
|
3076
|
+
http_info["path_params"] = path_params
|
3077
|
+
http_info["query_params"] = query_params
|
3078
|
+
http_info["header_params"] = header_params
|
3079
|
+
http_info["post_params"] = form_params
|
3080
|
+
http_info["body"] = body
|
3081
|
+
http_info["response_headers"] = response_headers
|
3082
|
+
|
3083
|
+
return http_info
|
3084
|
+
|
3085
|
+
def update_obs_target_policy_async(self, request):
|
3086
|
+
"""更新后端存储自动同步策略
|
3087
|
+
|
3088
|
+
更新后端存储自动同步策略
|
3089
|
+
|
3090
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3091
|
+
|
3092
|
+
|
3093
|
+
:param request: Request instance for UpdateObsTargetPolicy
|
3094
|
+
:type request: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetPolicyRequest`
|
3095
|
+
:rtype: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetPolicyResponse`
|
3096
|
+
"""
|
3097
|
+
http_info = self._update_obs_target_policy_http_info(request)
|
3098
|
+
return self._call_api(**http_info)
|
3099
|
+
|
3100
|
+
def update_obs_target_policy_async_invoker(self, request):
|
3101
|
+
http_info = self._update_obs_target_policy_http_info(request)
|
3102
|
+
return AsyncInvoker(self, http_info)
|
3103
|
+
|
3104
|
+
def _update_obs_target_policy_http_info(self, request):
|
3105
|
+
http_info = {
|
3106
|
+
"method": "PUT",
|
3107
|
+
"resource_path": "/v1/{project_id}/sfs-turbo/shares/{share_id}/targets/{target_id}/policy",
|
3108
|
+
"request_type": request.__class__.__name__,
|
3109
|
+
"response_type": "UpdateObsTargetPolicyResponse"
|
3110
|
+
}
|
3111
|
+
|
3112
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3113
|
+
|
3114
|
+
cname = None
|
3115
|
+
|
3116
|
+
collection_formats = {}
|
3117
|
+
|
3118
|
+
path_params = {}
|
3119
|
+
if 'share_id' in local_var_params:
|
3120
|
+
path_params['share_id'] = local_var_params['share_id']
|
3121
|
+
if 'target_id' in local_var_params:
|
3122
|
+
path_params['target_id'] = local_var_params['target_id']
|
3123
|
+
|
3124
|
+
query_params = []
|
3125
|
+
|
3126
|
+
header_params = {}
|
3127
|
+
|
3128
|
+
form_params = {}
|
3129
|
+
|
3130
|
+
body = None
|
3131
|
+
if 'body' in local_var_params:
|
3132
|
+
body = local_var_params['body']
|
3133
|
+
if isinstance(request, SdkStreamRequest):
|
3134
|
+
body = request.get_file_stream()
|
3135
|
+
|
3136
|
+
response_headers = ["X-request-id", ]
|
3137
|
+
|
3138
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3139
|
+
['application/json;charset=UTF-8'])
|
3140
|
+
|
3141
|
+
auth_settings = []
|
3142
|
+
|
3143
|
+
http_info["cname"] = cname
|
3144
|
+
http_info["collection_formats"] = collection_formats
|
3145
|
+
http_info["path_params"] = path_params
|
3146
|
+
http_info["query_params"] = query_params
|
3147
|
+
http_info["header_params"] = header_params
|
3148
|
+
http_info["post_params"] = form_params
|
3149
|
+
http_info["body"] = body
|
3150
|
+
http_info["response_headers"] = response_headers
|
3151
|
+
|
3152
|
+
return http_info
|
3153
|
+
|
2856
3154
|
def update_perm_rule_async(self, request):
|
2857
3155
|
"""修改权限规则
|
2858
3156
|
|