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
@@ -35,9 +35,9 @@ class UpdateFsDirQuotaRequestBody:
|
|
35
35
|
|
36
36
|
:param path: 合法的已存在的目录的全路径
|
37
37
|
:type path: str
|
38
|
-
:param capacity: 目录的容量大小,单位:MB
|
38
|
+
:param capacity: 目录的容量大小,单位:MB; 设置为0会导致数据无法写入目录; capacity和quota至少二选一
|
39
39
|
:type capacity: int
|
40
|
-
:param inode: 目录的inode
|
40
|
+
:param inode: 目录的inode数量限制; 设置为0会导致数据无法写入目录; capacity和quota至少二选一
|
41
41
|
:type inode: int
|
42
42
|
"""
|
43
43
|
|
@@ -80,7 +80,7 @@ class UpdateFsDirQuotaRequestBody:
|
|
80
80
|
def capacity(self):
|
81
81
|
"""Gets the capacity of this UpdateFsDirQuotaRequestBody.
|
82
82
|
|
83
|
-
目录的容量大小,单位:MB
|
83
|
+
目录的容量大小,单位:MB; 设置为0会导致数据无法写入目录; capacity和quota至少二选一
|
84
84
|
|
85
85
|
:return: The capacity of this UpdateFsDirQuotaRequestBody.
|
86
86
|
:rtype: int
|
@@ -91,7 +91,7 @@ class UpdateFsDirQuotaRequestBody:
|
|
91
91
|
def capacity(self, capacity):
|
92
92
|
"""Sets the capacity of this UpdateFsDirQuotaRequestBody.
|
93
93
|
|
94
|
-
目录的容量大小,单位:MB
|
94
|
+
目录的容量大小,单位:MB; 设置为0会导致数据无法写入目录; capacity和quota至少二选一
|
95
95
|
|
96
96
|
:param capacity: The capacity of this UpdateFsDirQuotaRequestBody.
|
97
97
|
:type capacity: int
|
@@ -102,7 +102,7 @@ class UpdateFsDirQuotaRequestBody:
|
|
102
102
|
def inode(self):
|
103
103
|
"""Gets the inode of this UpdateFsDirQuotaRequestBody.
|
104
104
|
|
105
|
-
目录的inode
|
105
|
+
目录的inode数量限制; 设置为0会导致数据无法写入目录; capacity和quota至少二选一
|
106
106
|
|
107
107
|
:return: The inode of this UpdateFsDirQuotaRequestBody.
|
108
108
|
:rtype: int
|
@@ -113,7 +113,7 @@ class UpdateFsDirQuotaRequestBody:
|
|
113
113
|
def inode(self, inode):
|
114
114
|
"""Sets the inode of this UpdateFsDirQuotaRequestBody.
|
115
115
|
|
116
|
-
目录的inode
|
116
|
+
目录的inode数量限制; 设置为0会导致数据无法写入目录; capacity和quota至少二选一
|
117
117
|
|
118
118
|
:param inode: The inode of this UpdateFsDirQuotaRequestBody.
|
119
119
|
:type inode: int
|
@@ -44,9 +44,9 @@ class UpdateFsDirQuotaResponse(SdkResponse):
|
|
44
44
|
:type capacity: int
|
45
45
|
:param inode: 目录的inode数量限制
|
46
46
|
:type inode: int
|
47
|
-
:param used_capacity: 目录已使用的容量大小,单位:MB。仅SFSTurbo
|
47
|
+
:param used_capacity: 目录已使用的容量大小,单位:MB。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段
|
48
48
|
:type used_capacity: int
|
49
|
-
:param used_inode: 目录的已使用的inode数量。仅SFSTurbo
|
49
|
+
:param used_inode: 目录的已使用的inode数量。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段
|
50
50
|
:type used_inode: int
|
51
51
|
"""
|
52
52
|
|
@@ -140,7 +140,7 @@ class UpdateFsDirQuotaResponse(SdkResponse):
|
|
140
140
|
def used_capacity(self):
|
141
141
|
"""Gets the used_capacity of this UpdateFsDirQuotaResponse.
|
142
142
|
|
143
|
-
目录已使用的容量大小,单位:MB。仅SFSTurbo
|
143
|
+
目录已使用的容量大小,单位:MB。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段
|
144
144
|
|
145
145
|
:return: The used_capacity of this UpdateFsDirQuotaResponse.
|
146
146
|
:rtype: int
|
@@ -151,7 +151,7 @@ class UpdateFsDirQuotaResponse(SdkResponse):
|
|
151
151
|
def used_capacity(self, used_capacity):
|
152
152
|
"""Sets the used_capacity of this UpdateFsDirQuotaResponse.
|
153
153
|
|
154
|
-
目录已使用的容量大小,单位:MB。仅SFSTurbo
|
154
|
+
目录已使用的容量大小,单位:MB。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段
|
155
155
|
|
156
156
|
:param used_capacity: The used_capacity of this UpdateFsDirQuotaResponse.
|
157
157
|
:type used_capacity: int
|
@@ -162,7 +162,7 @@ class UpdateFsDirQuotaResponse(SdkResponse):
|
|
162
162
|
def used_inode(self):
|
163
163
|
"""Gets the used_inode of this UpdateFsDirQuotaResponse.
|
164
164
|
|
165
|
-
目录的已使用的inode数量。仅SFSTurbo
|
165
|
+
目录的已使用的inode数量。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段
|
166
166
|
|
167
167
|
:return: The used_inode of this UpdateFsDirQuotaResponse.
|
168
168
|
:rtype: int
|
@@ -173,7 +173,7 @@ class UpdateFsDirQuotaResponse(SdkResponse):
|
|
173
173
|
def used_inode(self, used_inode):
|
174
174
|
"""Sets the used_inode of this UpdateFsDirQuotaResponse.
|
175
175
|
|
176
|
-
目录的已使用的inode数量。仅SFSTurbo
|
176
|
+
目录的已使用的inode数量。仅SFSTurbo 20MB/s/TiB、40MB/s/TiB、125MB/s/TiB、250MB/s/TiB、500MB/s/TiB、1000MB/s/TiB返回该字段
|
177
177
|
|
178
178
|
:param used_inode: The used_inode of this UpdateFsDirQuotaResponse.
|
179
179
|
:type used_inode: int
|
@@ -31,7 +31,7 @@ class UpdateHpcShareRequestBody:
|
|
31
31
|
|
32
32
|
The model defined in huaweicloud sdk
|
33
33
|
|
34
|
-
:param action:
|
34
|
+
:param action: 更新文件系统的操作类型。当前仅支持取值 config_gc_time
|
35
35
|
:type action: str
|
36
36
|
:param gc_time: 文件系统冷数据淘汰时间,单位为小时,取值范围 [1, 100000000]。系统默认为 60 小时
|
37
37
|
:type gc_time: int
|
@@ -50,7 +50,7 @@ class UpdateHpcShareRequestBody:
|
|
50
50
|
def action(self):
|
51
51
|
"""Gets the action of this UpdateHpcShareRequestBody.
|
52
52
|
|
53
|
-
|
53
|
+
更新文件系统的操作类型。当前仅支持取值 config_gc_time
|
54
54
|
|
55
55
|
:return: The action of this UpdateHpcShareRequestBody.
|
56
56
|
:rtype: str
|
@@ -61,7 +61,7 @@ class UpdateHpcShareRequestBody:
|
|
61
61
|
def action(self, action):
|
62
62
|
"""Sets the action of this UpdateHpcShareRequestBody.
|
63
63
|
|
64
|
-
|
64
|
+
更新文件系统的操作类型。当前仅支持取值 config_gc_time
|
65
65
|
|
66
66
|
:param action: The action of this UpdateHpcShareRequestBody.
|
67
67
|
:type action: str
|
@@ -22,7 +22,11 @@ class UpdateLdapConfigRequestBody:
|
|
22
22
|
'user_dn': 'str',
|
23
23
|
'password': 'str',
|
24
24
|
'vpc_id': 'str',
|
25
|
-
'filter_condition': 'str'
|
25
|
+
'filter_condition': 'str',
|
26
|
+
'backup_url': 'str',
|
27
|
+
'schema': 'str',
|
28
|
+
'search_timeout': 'int',
|
29
|
+
'allow_local_user': 'str'
|
26
30
|
}
|
27
31
|
|
28
32
|
attribute_map = {
|
@@ -31,15 +35,19 @@ class UpdateLdapConfigRequestBody:
|
|
31
35
|
'user_dn': 'user_dn',
|
32
36
|
'password': 'password',
|
33
37
|
'vpc_id': 'vpc_id',
|
34
|
-
'filter_condition': 'filter_condition'
|
38
|
+
'filter_condition': 'filter_condition',
|
39
|
+
'backup_url': 'backup_url',
|
40
|
+
'schema': 'schema',
|
41
|
+
'search_timeout': 'search_timeout',
|
42
|
+
'allow_local_user': 'allow_local_user'
|
35
43
|
}
|
36
44
|
|
37
|
-
def __init__(self, url=None, base_dn=None, user_dn=None, password=None, vpc_id=None, filter_condition=None):
|
45
|
+
def __init__(self, url=None, base_dn=None, user_dn=None, password=None, vpc_id=None, filter_condition=None, backup_url=None, schema=None, search_timeout=None, allow_local_user=None):
|
38
46
|
"""UpdateLdapConfigRequestBody
|
39
47
|
|
40
48
|
The model defined in huaweicloud sdk
|
41
49
|
|
42
|
-
:param url: ldap服务器的url
|
50
|
+
:param url: ldap服务器的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000
|
43
51
|
:type url: str
|
44
52
|
:param base_dn: 数据库中的域
|
45
53
|
:type base_dn: str
|
@@ -51,6 +59,14 @@ class UpdateLdapConfigRequestBody:
|
|
51
59
|
:type vpc_id: str
|
52
60
|
:param filter_condition: 过滤条件。保留字段,暂不支持
|
53
61
|
:type filter_condition: str
|
62
|
+
:param backup_url: ldap备节点的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000
|
63
|
+
:type backup_url: str
|
64
|
+
:param schema: ldap的schema,不填写则默认为RFC2307
|
65
|
+
:type schema: str
|
66
|
+
:param search_timeout: ldap搜索的超时时间,单位为秒。不填写则默认为3秒
|
67
|
+
:type search_timeout: int
|
68
|
+
:param allow_local_user: 访问ldap服务器失败后是否允许使用本地用户鉴权
|
69
|
+
:type allow_local_user: str
|
54
70
|
"""
|
55
71
|
|
56
72
|
|
@@ -61,6 +77,10 @@ class UpdateLdapConfigRequestBody:
|
|
61
77
|
self._password = None
|
62
78
|
self._vpc_id = None
|
63
79
|
self._filter_condition = None
|
80
|
+
self._backup_url = None
|
81
|
+
self._schema = None
|
82
|
+
self._search_timeout = None
|
83
|
+
self._allow_local_user = None
|
64
84
|
self.discriminator = None
|
65
85
|
|
66
86
|
if url is not None:
|
@@ -75,12 +95,20 @@ class UpdateLdapConfigRequestBody:
|
|
75
95
|
self.vpc_id = vpc_id
|
76
96
|
if filter_condition is not None:
|
77
97
|
self.filter_condition = filter_condition
|
98
|
+
if backup_url is not None:
|
99
|
+
self.backup_url = backup_url
|
100
|
+
if schema is not None:
|
101
|
+
self.schema = schema
|
102
|
+
if search_timeout is not None:
|
103
|
+
self.search_timeout = search_timeout
|
104
|
+
if allow_local_user is not None:
|
105
|
+
self.allow_local_user = allow_local_user
|
78
106
|
|
79
107
|
@property
|
80
108
|
def url(self):
|
81
109
|
"""Gets the url of this UpdateLdapConfigRequestBody.
|
82
110
|
|
83
|
-
ldap服务器的url
|
111
|
+
ldap服务器的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000
|
84
112
|
|
85
113
|
:return: The url of this UpdateLdapConfigRequestBody.
|
86
114
|
:rtype: str
|
@@ -91,7 +119,7 @@ class UpdateLdapConfigRequestBody:
|
|
91
119
|
def url(self, url):
|
92
120
|
"""Sets the url of this UpdateLdapConfigRequestBody.
|
93
121
|
|
94
|
-
ldap服务器的url
|
122
|
+
ldap服务器的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000
|
95
123
|
|
96
124
|
:param url: The url of this UpdateLdapConfigRequestBody.
|
97
125
|
:type url: str
|
@@ -208,6 +236,94 @@ class UpdateLdapConfigRequestBody:
|
|
208
236
|
"""
|
209
237
|
self._filter_condition = filter_condition
|
210
238
|
|
239
|
+
@property
|
240
|
+
def backup_url(self):
|
241
|
+
"""Gets the backup_url of this UpdateLdapConfigRequestBody.
|
242
|
+
|
243
|
+
ldap备节点的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000
|
244
|
+
|
245
|
+
:return: The backup_url of this UpdateLdapConfigRequestBody.
|
246
|
+
:rtype: str
|
247
|
+
"""
|
248
|
+
return self._backup_url
|
249
|
+
|
250
|
+
@backup_url.setter
|
251
|
+
def backup_url(self, backup_url):
|
252
|
+
"""Sets the backup_url of this UpdateLdapConfigRequestBody.
|
253
|
+
|
254
|
+
ldap备节点的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000
|
255
|
+
|
256
|
+
:param backup_url: The backup_url of this UpdateLdapConfigRequestBody.
|
257
|
+
:type backup_url: str
|
258
|
+
"""
|
259
|
+
self._backup_url = backup_url
|
260
|
+
|
261
|
+
@property
|
262
|
+
def schema(self):
|
263
|
+
"""Gets the schema of this UpdateLdapConfigRequestBody.
|
264
|
+
|
265
|
+
ldap的schema,不填写则默认为RFC2307
|
266
|
+
|
267
|
+
:return: The schema of this UpdateLdapConfigRequestBody.
|
268
|
+
:rtype: str
|
269
|
+
"""
|
270
|
+
return self._schema
|
271
|
+
|
272
|
+
@schema.setter
|
273
|
+
def schema(self, schema):
|
274
|
+
"""Sets the schema of this UpdateLdapConfigRequestBody.
|
275
|
+
|
276
|
+
ldap的schema,不填写则默认为RFC2307
|
277
|
+
|
278
|
+
:param schema: The schema of this UpdateLdapConfigRequestBody.
|
279
|
+
:type schema: str
|
280
|
+
"""
|
281
|
+
self._schema = schema
|
282
|
+
|
283
|
+
@property
|
284
|
+
def search_timeout(self):
|
285
|
+
"""Gets the search_timeout of this UpdateLdapConfigRequestBody.
|
286
|
+
|
287
|
+
ldap搜索的超时时间,单位为秒。不填写则默认为3秒
|
288
|
+
|
289
|
+
:return: The search_timeout of this UpdateLdapConfigRequestBody.
|
290
|
+
:rtype: int
|
291
|
+
"""
|
292
|
+
return self._search_timeout
|
293
|
+
|
294
|
+
@search_timeout.setter
|
295
|
+
def search_timeout(self, search_timeout):
|
296
|
+
"""Sets the search_timeout of this UpdateLdapConfigRequestBody.
|
297
|
+
|
298
|
+
ldap搜索的超时时间,单位为秒。不填写则默认为3秒
|
299
|
+
|
300
|
+
:param search_timeout: The search_timeout of this UpdateLdapConfigRequestBody.
|
301
|
+
:type search_timeout: int
|
302
|
+
"""
|
303
|
+
self._search_timeout = search_timeout
|
304
|
+
|
305
|
+
@property
|
306
|
+
def allow_local_user(self):
|
307
|
+
"""Gets the allow_local_user of this UpdateLdapConfigRequestBody.
|
308
|
+
|
309
|
+
访问ldap服务器失败后是否允许使用本地用户鉴权
|
310
|
+
|
311
|
+
:return: The allow_local_user of this UpdateLdapConfigRequestBody.
|
312
|
+
:rtype: str
|
313
|
+
"""
|
314
|
+
return self._allow_local_user
|
315
|
+
|
316
|
+
@allow_local_user.setter
|
317
|
+
def allow_local_user(self, allow_local_user):
|
318
|
+
"""Sets the allow_local_user of this UpdateLdapConfigRequestBody.
|
319
|
+
|
320
|
+
访问ldap服务器失败后是否允许使用本地用户鉴权
|
321
|
+
|
322
|
+
:param allow_local_user: The allow_local_user of this UpdateLdapConfigRequestBody.
|
323
|
+
:type allow_local_user: str
|
324
|
+
"""
|
325
|
+
self._allow_local_user = allow_local_user
|
326
|
+
|
211
327
|
def to_dict(self):
|
212
328
|
"""Returns the model properties as a dict"""
|
213
329
|
result = {}
|
@@ -30,7 +30,7 @@ class UpdateLdapConfigResponse(SdkResponse):
|
|
30
30
|
|
31
31
|
The model defined in huaweicloud sdk
|
32
32
|
|
33
|
-
:param job_id:
|
33
|
+
:param job_id: ldap异步任务的id。可通过查询job的状态详情接口查询job的执行状态。
|
34
34
|
:type job_id: str
|
35
35
|
"""
|
36
36
|
|
@@ -46,7 +46,7 @@ class UpdateLdapConfigResponse(SdkResponse):
|
|
46
46
|
def job_id(self):
|
47
47
|
"""Gets the job_id of this UpdateLdapConfigResponse.
|
48
48
|
|
49
|
-
|
49
|
+
ldap异步任务的id。可通过查询job的状态详情接口查询job的执行状态。
|
50
50
|
|
51
51
|
:return: The job_id of this UpdateLdapConfigResponse.
|
52
52
|
:rtype: str
|
@@ -57,7 +57,7 @@ class UpdateLdapConfigResponse(SdkResponse):
|
|
57
57
|
def job_id(self, job_id):
|
58
58
|
"""Sets the job_id of this UpdateLdapConfigResponse.
|
59
59
|
|
60
|
-
|
60
|
+
ldap异步任务的id。可通过查询job的状态详情接口查询job的执行状态。
|
61
61
|
|
62
62
|
:param job_id: The job_id of this UpdateLdapConfigResponse.
|
63
63
|
:type job_id: str
|
@@ -0,0 +1,167 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UpdateObsTargetAttributesRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'share_id': 'str',
|
21
|
+
'target_id': 'str',
|
22
|
+
'body': 'UpdateObsTargetAttributesRequestBody'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'share_id': 'share_id',
|
27
|
+
'target_id': 'target_id',
|
28
|
+
'body': 'body'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, share_id=None, target_id=None, body=None):
|
32
|
+
"""UpdateObsTargetAttributesRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param share_id: 文件系统id
|
37
|
+
:type share_id: str
|
38
|
+
:param target_id: 绑定关系id
|
39
|
+
:type target_id: str
|
40
|
+
:param body: Body of the UpdateObsTargetAttributesRequest
|
41
|
+
:type body: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetAttributesRequestBody`
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._share_id = None
|
47
|
+
self._target_id = None
|
48
|
+
self._body = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.share_id = share_id
|
52
|
+
self.target_id = target_id
|
53
|
+
if body is not None:
|
54
|
+
self.body = body
|
55
|
+
|
56
|
+
@property
|
57
|
+
def share_id(self):
|
58
|
+
"""Gets the share_id of this UpdateObsTargetAttributesRequest.
|
59
|
+
|
60
|
+
文件系统id
|
61
|
+
|
62
|
+
:return: The share_id of this UpdateObsTargetAttributesRequest.
|
63
|
+
:rtype: str
|
64
|
+
"""
|
65
|
+
return self._share_id
|
66
|
+
|
67
|
+
@share_id.setter
|
68
|
+
def share_id(self, share_id):
|
69
|
+
"""Sets the share_id of this UpdateObsTargetAttributesRequest.
|
70
|
+
|
71
|
+
文件系统id
|
72
|
+
|
73
|
+
:param share_id: The share_id of this UpdateObsTargetAttributesRequest.
|
74
|
+
:type share_id: str
|
75
|
+
"""
|
76
|
+
self._share_id = share_id
|
77
|
+
|
78
|
+
@property
|
79
|
+
def target_id(self):
|
80
|
+
"""Gets the target_id of this UpdateObsTargetAttributesRequest.
|
81
|
+
|
82
|
+
绑定关系id
|
83
|
+
|
84
|
+
:return: The target_id of this UpdateObsTargetAttributesRequest.
|
85
|
+
:rtype: str
|
86
|
+
"""
|
87
|
+
return self._target_id
|
88
|
+
|
89
|
+
@target_id.setter
|
90
|
+
def target_id(self, target_id):
|
91
|
+
"""Sets the target_id of this UpdateObsTargetAttributesRequest.
|
92
|
+
|
93
|
+
绑定关系id
|
94
|
+
|
95
|
+
:param target_id: The target_id of this UpdateObsTargetAttributesRequest.
|
96
|
+
:type target_id: str
|
97
|
+
"""
|
98
|
+
self._target_id = target_id
|
99
|
+
|
100
|
+
@property
|
101
|
+
def body(self):
|
102
|
+
"""Gets the body of this UpdateObsTargetAttributesRequest.
|
103
|
+
|
104
|
+
:return: The body of this UpdateObsTargetAttributesRequest.
|
105
|
+
:rtype: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetAttributesRequestBody`
|
106
|
+
"""
|
107
|
+
return self._body
|
108
|
+
|
109
|
+
@body.setter
|
110
|
+
def body(self, body):
|
111
|
+
"""Sets the body of this UpdateObsTargetAttributesRequest.
|
112
|
+
|
113
|
+
:param body: The body of this UpdateObsTargetAttributesRequest.
|
114
|
+
:type body: :class:`huaweicloudsdksfsturbo.v1.UpdateObsTargetAttributesRequestBody`
|
115
|
+
"""
|
116
|
+
self._body = body
|
117
|
+
|
118
|
+
def to_dict(self):
|
119
|
+
"""Returns the model properties as a dict"""
|
120
|
+
result = {}
|
121
|
+
|
122
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
123
|
+
value = getattr(self, attr)
|
124
|
+
if isinstance(value, list):
|
125
|
+
result[attr] = list(map(
|
126
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
127
|
+
value
|
128
|
+
))
|
129
|
+
elif hasattr(value, "to_dict"):
|
130
|
+
result[attr] = value.to_dict()
|
131
|
+
elif isinstance(value, dict):
|
132
|
+
result[attr] = dict(map(
|
133
|
+
lambda item: (item[0], item[1].to_dict())
|
134
|
+
if hasattr(item[1], "to_dict") else item,
|
135
|
+
value.items()
|
136
|
+
))
|
137
|
+
else:
|
138
|
+
if attr in self.sensitive_list:
|
139
|
+
result[attr] = "****"
|
140
|
+
else:
|
141
|
+
result[attr] = value
|
142
|
+
|
143
|
+
return result
|
144
|
+
|
145
|
+
def to_str(self):
|
146
|
+
"""Returns the string representation of the model"""
|
147
|
+
import simplejson as json
|
148
|
+
if six.PY2:
|
149
|
+
import sys
|
150
|
+
reload(sys)
|
151
|
+
sys.setdefaultencoding("utf-8")
|
152
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
153
|
+
|
154
|
+
def __repr__(self):
|
155
|
+
"""For `print`"""
|
156
|
+
return self.to_str()
|
157
|
+
|
158
|
+
def __eq__(self, other):
|
159
|
+
"""Returns true if both objects are equal"""
|
160
|
+
if not isinstance(other, UpdateObsTargetAttributesRequest):
|
161
|
+
return False
|
162
|
+
|
163
|
+
return self.__dict__ == other.__dict__
|
164
|
+
|
165
|
+
def __ne__(self, other):
|
166
|
+
"""Returns true if both objects are not equal"""
|
167
|
+
return not self == other
|
@@ -0,0 +1,110 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UpdateObsTargetAttributesRequestBody:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'attributes': 'ObsTargetAttributes'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'attributes': 'attributes'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, attributes=None):
|
28
|
+
"""UpdateObsTargetAttributesRequestBody
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param attributes:
|
33
|
+
:type attributes: :class:`huaweicloudsdksfsturbo.v1.ObsTargetAttributes`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._attributes = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.attributes = attributes
|
42
|
+
|
43
|
+
@property
|
44
|
+
def attributes(self):
|
45
|
+
"""Gets the attributes of this UpdateObsTargetAttributesRequestBody.
|
46
|
+
|
47
|
+
:return: The attributes of this UpdateObsTargetAttributesRequestBody.
|
48
|
+
:rtype: :class:`huaweicloudsdksfsturbo.v1.ObsTargetAttributes`
|
49
|
+
"""
|
50
|
+
return self._attributes
|
51
|
+
|
52
|
+
@attributes.setter
|
53
|
+
def attributes(self, attributes):
|
54
|
+
"""Sets the attributes of this UpdateObsTargetAttributesRequestBody.
|
55
|
+
|
56
|
+
:param attributes: The attributes of this UpdateObsTargetAttributesRequestBody.
|
57
|
+
:type attributes: :class:`huaweicloudsdksfsturbo.v1.ObsTargetAttributes`
|
58
|
+
"""
|
59
|
+
self._attributes = attributes
|
60
|
+
|
61
|
+
def to_dict(self):
|
62
|
+
"""Returns the model properties as a dict"""
|
63
|
+
result = {}
|
64
|
+
|
65
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
66
|
+
value = getattr(self, attr)
|
67
|
+
if isinstance(value, list):
|
68
|
+
result[attr] = list(map(
|
69
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
70
|
+
value
|
71
|
+
))
|
72
|
+
elif hasattr(value, "to_dict"):
|
73
|
+
result[attr] = value.to_dict()
|
74
|
+
elif isinstance(value, dict):
|
75
|
+
result[attr] = dict(map(
|
76
|
+
lambda item: (item[0], item[1].to_dict())
|
77
|
+
if hasattr(item[1], "to_dict") else item,
|
78
|
+
value.items()
|
79
|
+
))
|
80
|
+
else:
|
81
|
+
if attr in self.sensitive_list:
|
82
|
+
result[attr] = "****"
|
83
|
+
else:
|
84
|
+
result[attr] = value
|
85
|
+
|
86
|
+
return result
|
87
|
+
|
88
|
+
def to_str(self):
|
89
|
+
"""Returns the string representation of the model"""
|
90
|
+
import simplejson as json
|
91
|
+
if six.PY2:
|
92
|
+
import sys
|
93
|
+
reload(sys)
|
94
|
+
sys.setdefaultencoding("utf-8")
|
95
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
96
|
+
|
97
|
+
def __repr__(self):
|
98
|
+
"""For `print`"""
|
99
|
+
return self.to_str()
|
100
|
+
|
101
|
+
def __eq__(self, other):
|
102
|
+
"""Returns true if both objects are equal"""
|
103
|
+
if not isinstance(other, UpdateObsTargetAttributesRequestBody):
|
104
|
+
return False
|
105
|
+
|
106
|
+
return self.__dict__ == other.__dict__
|
107
|
+
|
108
|
+
def __ne__(self, other):
|
109
|
+
"""Returns true if both objects are not equal"""
|
110
|
+
return not self == other
|