baiducloud-python-sdk-pfs 0.0.3__py3-none-any.whl → 0.0.4__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.
- baiducloud_python_sdk_pfs/__init__.py +1 -1
- baiducloud_python_sdk_pfs/api/pfs_client.py +512 -0
- baiducloud_python_sdk_pfs/models/__init__.py +35 -0
- baiducloud_python_sdk_pfs/models/bucket_link_info.py +205 -0
- baiducloud_python_sdk_pfs/models/cancel_l2_bucket_link_request.py +68 -0
- baiducloud_python_sdk_pfs/models/cancel_l2_bucket_link_response.py +62 -0
- baiducloud_python_sdk_pfs/models/create_l2_bucket_link_request.py +171 -0
- baiducloud_python_sdk_pfs/models/create_l2_bucket_link_response.py +69 -0
- baiducloud_python_sdk_pfs/models/create_l2_policy_request.py +126 -0
- baiducloud_python_sdk_pfs/models/create_l2_policy_response.py +69 -0
- baiducloud_python_sdk_pfs/models/delete_fileset_response.py +9 -8
- baiducloud_python_sdk_pfs/models/delete_l2_bucket_link_request.py +68 -0
- baiducloud_python_sdk_pfs/models/delete_l2_bucket_link_response.py +62 -0
- baiducloud_python_sdk_pfs/models/delete_l2_policy_request.py +68 -0
- baiducloud_python_sdk_pfs/models/delete_l2_policy_response.py +62 -0
- baiducloud_python_sdk_pfs/models/desc_l2_bucket_link_request.py +68 -0
- baiducloud_python_sdk_pfs/models/desc_l2_bucket_link_response.py +217 -0
- baiducloud_python_sdk_pfs/models/desc_l2_policy_request.py +68 -0
- baiducloud_python_sdk_pfs/models/desc_l2_policy_response.py +154 -0
- baiducloud_python_sdk_pfs/models/execute_info.py +90 -0
- baiducloud_python_sdk_pfs/models/instance_list_clients_response.py +8 -10
- baiducloud_python_sdk_pfs/models/list_l2_bucket_link_request.py +84 -0
- baiducloud_python_sdk_pfs/models/list_l2_bucket_link_response.py +102 -0
- baiducloud_python_sdk_pfs/models/list_l2_policy_request.py +76 -0
- baiducloud_python_sdk_pfs/models/list_l2_policy_response.py +102 -0
- baiducloud_python_sdk_pfs/models/lst_per_l2_bkt_lnk_exec_log_request.py +84 -0
- baiducloud_python_sdk_pfs/models/lst_per_l2_bkt_lnk_exec_log_response.py +86 -0
- baiducloud_python_sdk_pfs/models/mount_target_list_clients_response.py +10 -8
- baiducloud_python_sdk_pfs/models/node_info.py +36 -36
- baiducloud_python_sdk_pfs/models/pause_l2_bucket_link_request.py +68 -0
- baiducloud_python_sdk_pfs/models/pause_l2_bucket_link_response.py +62 -0
- baiducloud_python_sdk_pfs/models/policy_info.py +142 -0
- baiducloud_python_sdk_pfs/models/qry_l2_pol_exec_detail_request.py +76 -0
- baiducloud_python_sdk_pfs/models/qry_l2_pol_exec_detail_response.py +69 -0
- baiducloud_python_sdk_pfs/models/qry_l2_pol_exec_log_request.py +84 -0
- baiducloud_python_sdk_pfs/models/qry_l2_pol_exec_log_response.py +86 -0
- baiducloud_python_sdk_pfs/models/resume_l2_bucket_link_request.py +68 -0
- baiducloud_python_sdk_pfs/models/resume_l2_bucket_link_response.py +61 -0
- baiducloud_python_sdk_pfs/models/upd_per_l2_bkt_lnk_info_request.py +117 -0
- baiducloud_python_sdk_pfs/models/upd_per_l2_bkt_lnk_info_response.py +62 -0
- baiducloud_python_sdk_pfs/models/update_l2_policy_request.py +117 -0
- baiducloud_python_sdk_pfs/models/update_l2_policy_response.py +62 -0
- {baiducloud_python_sdk_pfs-0.0.3.dist-info → baiducloud_python_sdk_pfs-0.0.4.dist-info}/METADATA +1 -1
- baiducloud_python_sdk_pfs-0.0.4.dist-info/RECORD +71 -0
- baiducloud_python_sdk_pfs-0.0.3.dist-info/RECORD +0 -36
- {baiducloud_python_sdk_pfs-0.0.3.dist-info → baiducloud_python_sdk_pfs-0.0.4.dist-info}/LICENSE +0 -0
- {baiducloud_python_sdk_pfs-0.0.3.dist-info → baiducloud_python_sdk_pfs-0.0.4.dist-info}/WHEEL +0 -0
- {baiducloud_python_sdk_pfs-0.0.3.dist-info → baiducloud_python_sdk_pfs-0.0.4.dist-info}/top_level.txt +0 -0
|
@@ -11,16 +11,32 @@ from baiducloud_python_sdk_core.bce_base_client import BceBaseClient
|
|
|
11
11
|
from baiducloud_python_sdk_core.http import bce_http_client
|
|
12
12
|
from baiducloud_python_sdk_core.http import handler
|
|
13
13
|
from baiducloud_python_sdk_core.http import http_methods
|
|
14
|
+
from baiducloud_python_sdk_pfs.models.cancel_l2_bucket_link_response import CancelL2BucketLinkResponse
|
|
14
15
|
from baiducloud_python_sdk_pfs.models.create_fileset_response import CreateFilesetResponse
|
|
16
|
+
from baiducloud_python_sdk_pfs.models.create_l2_bucket_link_response import CreateL2BucketLinkResponse
|
|
17
|
+
from baiducloud_python_sdk_pfs.models.create_l2_policy_response import CreateL2PolicyResponse
|
|
15
18
|
from baiducloud_python_sdk_pfs.models.create_pfs_response import CreatePfsResponse
|
|
16
19
|
from baiducloud_python_sdk_pfs.models.delete_fileset_response import DeleteFilesetResponse
|
|
20
|
+
from baiducloud_python_sdk_pfs.models.delete_l2_bucket_link_response import DeleteL2BucketLinkResponse
|
|
21
|
+
from baiducloud_python_sdk_pfs.models.delete_l2_policy_response import DeleteL2PolicyResponse
|
|
17
22
|
from baiducloud_python_sdk_pfs.models.desc_fileset_response import DescFilesetResponse
|
|
23
|
+
from baiducloud_python_sdk_pfs.models.desc_l2_bucket_link_response import DescL2BucketLinkResponse
|
|
24
|
+
from baiducloud_python_sdk_pfs.models.desc_l2_policy_response import DescL2PolicyResponse
|
|
18
25
|
from baiducloud_python_sdk_pfs.models.desc_pfs_response import DescPfsResponse
|
|
19
26
|
from baiducloud_python_sdk_pfs.models.instance_list_clients_response import InstanceListClientsResponse
|
|
20
27
|
from baiducloud_python_sdk_pfs.models.list_fileset_response import ListFilesetResponse
|
|
28
|
+
from baiducloud_python_sdk_pfs.models.list_l2_bucket_link_response import ListL2BucketLinkResponse
|
|
29
|
+
from baiducloud_python_sdk_pfs.models.list_l2_policy_response import ListL2PolicyResponse
|
|
21
30
|
from baiducloud_python_sdk_pfs.models.list_pfs_response import ListPfsResponse
|
|
31
|
+
from baiducloud_python_sdk_pfs.models.lst_per_l2_bkt_lnk_exec_log_response import LstPerL2BktLnkExecLogResponse
|
|
22
32
|
from baiducloud_python_sdk_pfs.models.mount_target_list_clients_response import MountTargetListClientsResponse
|
|
33
|
+
from baiducloud_python_sdk_pfs.models.pause_l2_bucket_link_response import PauseL2BucketLinkResponse
|
|
34
|
+
from baiducloud_python_sdk_pfs.models.qry_l2_pol_exec_detail_response import QryL2PolExecDetailResponse
|
|
35
|
+
from baiducloud_python_sdk_pfs.models.qry_l2_pol_exec_log_response import QryL2PolExecLogResponse
|
|
36
|
+
from baiducloud_python_sdk_pfs.models.resume_l2_bucket_link_response import ResumeL2BucketLinkResponse
|
|
37
|
+
from baiducloud_python_sdk_pfs.models.upd_per_l2_bkt_lnk_info_response import UpdPerL2BktLnkInfoResponse
|
|
23
38
|
from baiducloud_python_sdk_pfs.models.update_fileset_response import UpdateFilesetResponse
|
|
39
|
+
from baiducloud_python_sdk_pfs.models.update_l2_policy_response import UpdateL2PolicyResponse
|
|
24
40
|
|
|
25
41
|
_logger = logging.getLogger(__name__)
|
|
26
42
|
|
|
@@ -47,6 +63,37 @@ class PfsClient(BceBaseClient):
|
|
|
47
63
|
"""
|
|
48
64
|
bce_base_client.BceBaseClient.__init__(self, config)
|
|
49
65
|
|
|
66
|
+
def cancel_l2_bucket_link(self, request, config=None):
|
|
67
|
+
"""
|
|
68
|
+
cancel_l2_bucket_link
|
|
69
|
+
|
|
70
|
+
:param request: Request entity containing all parameters
|
|
71
|
+
:type request: PfsClientRequest
|
|
72
|
+
:param config: Optional request configuration override
|
|
73
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
74
|
+
|
|
75
|
+
:return: API response containing CancelL2BucketLinkResponse data
|
|
76
|
+
:rtype: CancelL2BucketLinkResponse
|
|
77
|
+
|
|
78
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
79
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
80
|
+
"""
|
|
81
|
+
path = b'/'
|
|
82
|
+
headers = {}
|
|
83
|
+
headers[b'Version'] = b'v2'
|
|
84
|
+
params = {}
|
|
85
|
+
params['action'] = 'CancelL2BucketLink'
|
|
86
|
+
merged_config = self._create_request_with_host(request, config)
|
|
87
|
+
return self._send_request(
|
|
88
|
+
http_methods.POST,
|
|
89
|
+
path=path,
|
|
90
|
+
body=request.to_json_string(),
|
|
91
|
+
headers=headers,
|
|
92
|
+
params=params,
|
|
93
|
+
config=merged_config,
|
|
94
|
+
model=CancelL2BucketLinkResponse,
|
|
95
|
+
)
|
|
96
|
+
|
|
50
97
|
def create_fileset(self, request, config=None):
|
|
51
98
|
"""
|
|
52
99
|
create_fileset
|
|
@@ -78,6 +125,68 @@ class PfsClient(BceBaseClient):
|
|
|
78
125
|
model=CreateFilesetResponse,
|
|
79
126
|
)
|
|
80
127
|
|
|
128
|
+
def create_l2_bucket_link(self, request, config=None):
|
|
129
|
+
"""
|
|
130
|
+
create_l2_bucket_link
|
|
131
|
+
|
|
132
|
+
:param request: Request entity containing all parameters
|
|
133
|
+
:type request: PfsClientRequest
|
|
134
|
+
:param config: Optional request configuration override
|
|
135
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
136
|
+
|
|
137
|
+
:return: API response containing CreateL2BucketLinkResponse data
|
|
138
|
+
:rtype: CreateL2BucketLinkResponse
|
|
139
|
+
|
|
140
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
141
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
142
|
+
"""
|
|
143
|
+
path = b'/'
|
|
144
|
+
headers = {}
|
|
145
|
+
headers[b'Version'] = b'v2'
|
|
146
|
+
params = {}
|
|
147
|
+
params['action'] = 'CreateL2BucketLink'
|
|
148
|
+
merged_config = self._create_request_with_host(request, config)
|
|
149
|
+
return self._send_request(
|
|
150
|
+
http_methods.POST,
|
|
151
|
+
path=path,
|
|
152
|
+
body=request.to_json_string(),
|
|
153
|
+
headers=headers,
|
|
154
|
+
params=params,
|
|
155
|
+
config=merged_config,
|
|
156
|
+
model=CreateL2BucketLinkResponse,
|
|
157
|
+
)
|
|
158
|
+
|
|
159
|
+
def create_l2_policy(self, request, config=None):
|
|
160
|
+
"""
|
|
161
|
+
create_l2_policy
|
|
162
|
+
|
|
163
|
+
:param request: Request entity containing all parameters
|
|
164
|
+
:type request: PfsClientRequest
|
|
165
|
+
:param config: Optional request configuration override
|
|
166
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
167
|
+
|
|
168
|
+
:return: API response containing CreateL2PolicyResponse data
|
|
169
|
+
:rtype: CreateL2PolicyResponse
|
|
170
|
+
|
|
171
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
172
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
173
|
+
"""
|
|
174
|
+
path = b'/'
|
|
175
|
+
headers = {}
|
|
176
|
+
headers[b'Version'] = b'v2'
|
|
177
|
+
params = {}
|
|
178
|
+
params['action'] = 'CreateL2Policy'
|
|
179
|
+
merged_config = self._create_request_with_host(request, config)
|
|
180
|
+
return self._send_request(
|
|
181
|
+
http_methods.POST,
|
|
182
|
+
path=path,
|
|
183
|
+
body=request.to_json_string(),
|
|
184
|
+
headers=headers,
|
|
185
|
+
params=params,
|
|
186
|
+
config=merged_config,
|
|
187
|
+
model=CreateL2PolicyResponse,
|
|
188
|
+
)
|
|
189
|
+
|
|
81
190
|
def create_pfs(self, request, config=None):
|
|
82
191
|
"""
|
|
83
192
|
create_pfs
|
|
@@ -131,6 +240,68 @@ class PfsClient(BceBaseClient):
|
|
|
131
240
|
model=DeleteFilesetResponse,
|
|
132
241
|
)
|
|
133
242
|
|
|
243
|
+
def delete_l2_bucket_link(self, request, config=None):
|
|
244
|
+
"""
|
|
245
|
+
delete_l2_bucket_link
|
|
246
|
+
|
|
247
|
+
:param request: Request entity containing all parameters
|
|
248
|
+
:type request: PfsClientRequest
|
|
249
|
+
:param config: Optional request configuration override
|
|
250
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
251
|
+
|
|
252
|
+
:return: API response containing DeleteL2BucketLinkResponse data
|
|
253
|
+
:rtype: DeleteL2BucketLinkResponse
|
|
254
|
+
|
|
255
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
256
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
257
|
+
"""
|
|
258
|
+
path = b'/'
|
|
259
|
+
headers = {}
|
|
260
|
+
headers[b'Version'] = b'v2'
|
|
261
|
+
params = {}
|
|
262
|
+
params['action'] = 'DeleteL2BucketLink'
|
|
263
|
+
merged_config = self._create_request_with_host(request, config)
|
|
264
|
+
return self._send_request(
|
|
265
|
+
http_methods.POST,
|
|
266
|
+
path=path,
|
|
267
|
+
body=request.to_json_string(),
|
|
268
|
+
headers=headers,
|
|
269
|
+
params=params,
|
|
270
|
+
config=merged_config,
|
|
271
|
+
model=DeleteL2BucketLinkResponse,
|
|
272
|
+
)
|
|
273
|
+
|
|
274
|
+
def delete_l2_policy(self, request, config=None):
|
|
275
|
+
"""
|
|
276
|
+
delete_l2_policy
|
|
277
|
+
|
|
278
|
+
:param request: Request entity containing all parameters
|
|
279
|
+
:type request: PfsClientRequest
|
|
280
|
+
:param config: Optional request configuration override
|
|
281
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
282
|
+
|
|
283
|
+
:return: API response containing DeleteL2PolicyResponse data
|
|
284
|
+
:rtype: DeleteL2PolicyResponse
|
|
285
|
+
|
|
286
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
287
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
288
|
+
"""
|
|
289
|
+
path = b'/'
|
|
290
|
+
headers = {}
|
|
291
|
+
headers[b'Version'] = b'v2'
|
|
292
|
+
params = {}
|
|
293
|
+
params['action'] = 'DeleteL2Policy'
|
|
294
|
+
merged_config = self._create_request_with_host(request, config)
|
|
295
|
+
return self._send_request(
|
|
296
|
+
http_methods.POST,
|
|
297
|
+
path=path,
|
|
298
|
+
body=request.to_json_string(),
|
|
299
|
+
headers=headers,
|
|
300
|
+
params=params,
|
|
301
|
+
config=merged_config,
|
|
302
|
+
model=DeleteL2PolicyResponse,
|
|
303
|
+
)
|
|
304
|
+
|
|
134
305
|
def delete_pfs(self, request, config=None):
|
|
135
306
|
"""
|
|
136
307
|
delete_pfs
|
|
@@ -185,6 +356,68 @@ class PfsClient(BceBaseClient):
|
|
|
185
356
|
model=DescFilesetResponse,
|
|
186
357
|
)
|
|
187
358
|
|
|
359
|
+
def desc_l2_bucket_link(self, request, config=None):
|
|
360
|
+
"""
|
|
361
|
+
desc_l2_bucket_link
|
|
362
|
+
|
|
363
|
+
:param request: Request entity containing all parameters
|
|
364
|
+
:type request: PfsClientRequest
|
|
365
|
+
:param config: Optional request configuration override
|
|
366
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
367
|
+
|
|
368
|
+
:return: API response containing DescL2BucketLinkResponse data
|
|
369
|
+
:rtype: DescL2BucketLinkResponse
|
|
370
|
+
|
|
371
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
372
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
373
|
+
"""
|
|
374
|
+
path = b'/'
|
|
375
|
+
headers = {}
|
|
376
|
+
headers[b'Version'] = b'v2'
|
|
377
|
+
params = {}
|
|
378
|
+
params['action'] = 'DescribeL2BucketLink'
|
|
379
|
+
merged_config = self._create_request_with_host(request, config)
|
|
380
|
+
return self._send_request(
|
|
381
|
+
http_methods.POST,
|
|
382
|
+
path=path,
|
|
383
|
+
body=request.to_json_string(),
|
|
384
|
+
headers=headers,
|
|
385
|
+
params=params,
|
|
386
|
+
config=merged_config,
|
|
387
|
+
model=DescL2BucketLinkResponse,
|
|
388
|
+
)
|
|
389
|
+
|
|
390
|
+
def desc_l2_policy(self, request, config=None):
|
|
391
|
+
"""
|
|
392
|
+
desc_l2_policy
|
|
393
|
+
|
|
394
|
+
:param request: Request entity containing all parameters
|
|
395
|
+
:type request: PfsClientRequest
|
|
396
|
+
:param config: Optional request configuration override
|
|
397
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
398
|
+
|
|
399
|
+
:return: API response containing DescL2PolicyResponse data
|
|
400
|
+
:rtype: DescL2PolicyResponse
|
|
401
|
+
|
|
402
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
403
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
404
|
+
"""
|
|
405
|
+
path = b'/'
|
|
406
|
+
headers = {}
|
|
407
|
+
headers[b'Version'] = b'v2'
|
|
408
|
+
params = {}
|
|
409
|
+
params['action'] = 'DescribeL2Policy'
|
|
410
|
+
merged_config = self._create_request_with_host(request, config)
|
|
411
|
+
return self._send_request(
|
|
412
|
+
http_methods.POST,
|
|
413
|
+
path=path,
|
|
414
|
+
body=request.to_json_string(),
|
|
415
|
+
headers=headers,
|
|
416
|
+
params=params,
|
|
417
|
+
config=merged_config,
|
|
418
|
+
model=DescL2PolicyResponse,
|
|
419
|
+
)
|
|
420
|
+
|
|
188
421
|
def desc_pfs(self, request, config=None):
|
|
189
422
|
"""
|
|
190
423
|
desc_pfs
|
|
@@ -272,6 +505,68 @@ class PfsClient(BceBaseClient):
|
|
|
272
505
|
model=ListFilesetResponse,
|
|
273
506
|
)
|
|
274
507
|
|
|
508
|
+
def list_l2_bucket_link(self, request, config=None):
|
|
509
|
+
"""
|
|
510
|
+
list_l2_bucket_link
|
|
511
|
+
|
|
512
|
+
:param request: Request entity containing all parameters
|
|
513
|
+
:type request: PfsClientRequest
|
|
514
|
+
:param config: Optional request configuration override
|
|
515
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
516
|
+
|
|
517
|
+
:return: API response containing ListL2BucketLinkResponse data
|
|
518
|
+
:rtype: ListL2BucketLinkResponse
|
|
519
|
+
|
|
520
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
521
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
522
|
+
"""
|
|
523
|
+
path = b'/'
|
|
524
|
+
headers = {}
|
|
525
|
+
headers[b'Version'] = b'v2'
|
|
526
|
+
params = {}
|
|
527
|
+
params['action'] = 'ListL2BucketLink'
|
|
528
|
+
merged_config = self._create_request_with_host(request, config)
|
|
529
|
+
return self._send_request(
|
|
530
|
+
http_methods.POST,
|
|
531
|
+
path=path,
|
|
532
|
+
body=request.to_json_string(),
|
|
533
|
+
headers=headers,
|
|
534
|
+
params=params,
|
|
535
|
+
config=merged_config,
|
|
536
|
+
model=ListL2BucketLinkResponse,
|
|
537
|
+
)
|
|
538
|
+
|
|
539
|
+
def list_l2_policy(self, request, config=None):
|
|
540
|
+
"""
|
|
541
|
+
list_l2_policy
|
|
542
|
+
|
|
543
|
+
:param request: Request entity containing all parameters
|
|
544
|
+
:type request: PfsClientRequest
|
|
545
|
+
:param config: Optional request configuration override
|
|
546
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
547
|
+
|
|
548
|
+
:return: API response containing ListL2PolicyResponse data
|
|
549
|
+
:rtype: ListL2PolicyResponse
|
|
550
|
+
|
|
551
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
552
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
553
|
+
"""
|
|
554
|
+
path = b'/'
|
|
555
|
+
headers = {}
|
|
556
|
+
headers[b'Version'] = b'v2'
|
|
557
|
+
params = {}
|
|
558
|
+
params['action'] = 'ListL2Policy'
|
|
559
|
+
merged_config = self._create_request_with_host(request, config)
|
|
560
|
+
return self._send_request(
|
|
561
|
+
http_methods.POST,
|
|
562
|
+
path=path,
|
|
563
|
+
body=request.to_json_string(),
|
|
564
|
+
headers=headers,
|
|
565
|
+
params=params,
|
|
566
|
+
config=merged_config,
|
|
567
|
+
model=ListL2PolicyResponse,
|
|
568
|
+
)
|
|
569
|
+
|
|
275
570
|
def list_pfs(self, request, config=None):
|
|
276
571
|
"""
|
|
277
572
|
list_pfs
|
|
@@ -302,6 +597,37 @@ class PfsClient(BceBaseClient):
|
|
|
302
597
|
http_methods.GET, path=path, params=params, config=merged_config, model=ListPfsResponse
|
|
303
598
|
)
|
|
304
599
|
|
|
600
|
+
def lst_per_l2_bkt_lnk_exec_log(self, request, config=None):
|
|
601
|
+
"""
|
|
602
|
+
lst_per_l2_bkt_lnk_exec_log
|
|
603
|
+
|
|
604
|
+
:param request: Request entity containing all parameters
|
|
605
|
+
:type request: PfsClientRequest
|
|
606
|
+
:param config: Optional request configuration override
|
|
607
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
608
|
+
|
|
609
|
+
:return: API response containing LstPerL2BktLnkExecLogResponse data
|
|
610
|
+
:rtype: LstPerL2BktLnkExecLogResponse
|
|
611
|
+
|
|
612
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
613
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
614
|
+
"""
|
|
615
|
+
path = b'/'
|
|
616
|
+
headers = {}
|
|
617
|
+
headers[b'Version'] = b'v2'
|
|
618
|
+
params = {}
|
|
619
|
+
params['action'] = 'ListPeriodL2BucketLinkExecuteLog'
|
|
620
|
+
merged_config = self._create_request_with_host(request, config)
|
|
621
|
+
return self._send_request(
|
|
622
|
+
http_methods.POST,
|
|
623
|
+
path=path,
|
|
624
|
+
body=request.to_json_string(),
|
|
625
|
+
headers=headers,
|
|
626
|
+
params=params,
|
|
627
|
+
config=merged_config,
|
|
628
|
+
model=LstPerL2BktLnkExecLogResponse,
|
|
629
|
+
)
|
|
630
|
+
|
|
305
631
|
def mount_target_list_clients(self, request, config=None):
|
|
306
632
|
"""
|
|
307
633
|
mount_target_list_clients
|
|
@@ -333,6 +659,161 @@ class PfsClient(BceBaseClient):
|
|
|
333
659
|
model=MountTargetListClientsResponse,
|
|
334
660
|
)
|
|
335
661
|
|
|
662
|
+
def pause_l2_bucket_link(self, request, config=None):
|
|
663
|
+
"""
|
|
664
|
+
pause_l2_bucket_link
|
|
665
|
+
|
|
666
|
+
:param request: Request entity containing all parameters
|
|
667
|
+
:type request: PfsClientRequest
|
|
668
|
+
:param config: Optional request configuration override
|
|
669
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
670
|
+
|
|
671
|
+
:return: API response containing PauseL2BucketLinkResponse data
|
|
672
|
+
:rtype: PauseL2BucketLinkResponse
|
|
673
|
+
|
|
674
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
675
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
676
|
+
"""
|
|
677
|
+
path = b'/'
|
|
678
|
+
headers = {}
|
|
679
|
+
headers[b'Version'] = b'v2'
|
|
680
|
+
params = {}
|
|
681
|
+
params['action'] = 'PauseL2BucketLink'
|
|
682
|
+
merged_config = self._create_request_with_host(request, config)
|
|
683
|
+
return self._send_request(
|
|
684
|
+
http_methods.POST,
|
|
685
|
+
path=path,
|
|
686
|
+
body=request.to_json_string(),
|
|
687
|
+
headers=headers,
|
|
688
|
+
params=params,
|
|
689
|
+
config=merged_config,
|
|
690
|
+
model=PauseL2BucketLinkResponse,
|
|
691
|
+
)
|
|
692
|
+
|
|
693
|
+
def qry_l2_pol_exec_detail(self, request, config=None):
|
|
694
|
+
"""
|
|
695
|
+
qry_l2_pol_exec_detail
|
|
696
|
+
|
|
697
|
+
:param request: Request entity containing all parameters
|
|
698
|
+
:type request: PfsClientRequest
|
|
699
|
+
:param config: Optional request configuration override
|
|
700
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
701
|
+
|
|
702
|
+
:return: API response containing QryL2PolExecDetailResponse data
|
|
703
|
+
:rtype: QryL2PolExecDetailResponse
|
|
704
|
+
|
|
705
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
706
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
707
|
+
"""
|
|
708
|
+
path = b'/'
|
|
709
|
+
headers = {}
|
|
710
|
+
headers[b'Version'] = b'v2'
|
|
711
|
+
params = {}
|
|
712
|
+
params['action'] = 'QueryL2PolicyExecuteDetail'
|
|
713
|
+
merged_config = self._create_request_with_host(request, config)
|
|
714
|
+
return self._send_request(
|
|
715
|
+
http_methods.POST,
|
|
716
|
+
path=path,
|
|
717
|
+
body=request.to_json_string(),
|
|
718
|
+
headers=headers,
|
|
719
|
+
params=params,
|
|
720
|
+
config=merged_config,
|
|
721
|
+
model=QryL2PolExecDetailResponse,
|
|
722
|
+
)
|
|
723
|
+
|
|
724
|
+
def qry_l2_pol_exec_log(self, request, config=None):
|
|
725
|
+
"""
|
|
726
|
+
qry_l2_pol_exec_log
|
|
727
|
+
|
|
728
|
+
:param request: Request entity containing all parameters
|
|
729
|
+
:type request: PfsClientRequest
|
|
730
|
+
:param config: Optional request configuration override
|
|
731
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
732
|
+
|
|
733
|
+
:return: API response containing QryL2PolExecLogResponse data
|
|
734
|
+
:rtype: QryL2PolExecLogResponse
|
|
735
|
+
|
|
736
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
737
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
738
|
+
"""
|
|
739
|
+
path = b'/'
|
|
740
|
+
headers = {}
|
|
741
|
+
headers[b'Version'] = b'v2'
|
|
742
|
+
params = {}
|
|
743
|
+
params['action'] = 'QueryL2PolicyExecuteLog'
|
|
744
|
+
merged_config = self._create_request_with_host(request, config)
|
|
745
|
+
return self._send_request(
|
|
746
|
+
http_methods.POST,
|
|
747
|
+
path=path,
|
|
748
|
+
body=request.to_json_string(),
|
|
749
|
+
headers=headers,
|
|
750
|
+
params=params,
|
|
751
|
+
config=merged_config,
|
|
752
|
+
model=QryL2PolExecLogResponse,
|
|
753
|
+
)
|
|
754
|
+
|
|
755
|
+
def resume_l2_bucket_link(self, request, config=None):
|
|
756
|
+
"""
|
|
757
|
+
resume_l2_bucket_link
|
|
758
|
+
|
|
759
|
+
:param request: Request entity containing all parameters
|
|
760
|
+
:type request: PfsClientRequest
|
|
761
|
+
:param config: Optional request configuration override
|
|
762
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
763
|
+
|
|
764
|
+
:return: API response containing ResumeL2BucketLinkResponse data
|
|
765
|
+
:rtype: ResumeL2BucketLinkResponse
|
|
766
|
+
|
|
767
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
768
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
769
|
+
"""
|
|
770
|
+
path = b'/'
|
|
771
|
+
headers = {}
|
|
772
|
+
headers[b'Version'] = b'v2'
|
|
773
|
+
params = {}
|
|
774
|
+
params['action'] = 'ResumeL2BucketLink'
|
|
775
|
+
merged_config = self._create_request_with_host(request, config)
|
|
776
|
+
return self._send_request(
|
|
777
|
+
http_methods.POST,
|
|
778
|
+
path=path,
|
|
779
|
+
body=request.to_json_string(),
|
|
780
|
+
headers=headers,
|
|
781
|
+
params=params,
|
|
782
|
+
config=merged_config,
|
|
783
|
+
model=ResumeL2BucketLinkResponse,
|
|
784
|
+
)
|
|
785
|
+
|
|
786
|
+
def upd_per_l2_bkt_lnk_info(self, request, config=None):
|
|
787
|
+
"""
|
|
788
|
+
upd_per_l2_bkt_lnk_info
|
|
789
|
+
|
|
790
|
+
:param request: Request entity containing all parameters
|
|
791
|
+
:type request: PfsClientRequest
|
|
792
|
+
:param config: Optional request configuration override
|
|
793
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
794
|
+
|
|
795
|
+
:return: API response containing UpdPerL2BktLnkInfoResponse data
|
|
796
|
+
:rtype: UpdPerL2BktLnkInfoResponse
|
|
797
|
+
|
|
798
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
799
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
800
|
+
"""
|
|
801
|
+
path = b'/'
|
|
802
|
+
headers = {}
|
|
803
|
+
headers[b'Version'] = b'v2'
|
|
804
|
+
params = {}
|
|
805
|
+
params['action'] = 'UpdatePeriodL2BucketLinkInfo'
|
|
806
|
+
merged_config = self._create_request_with_host(request, config)
|
|
807
|
+
return self._send_request(
|
|
808
|
+
http_methods.POST,
|
|
809
|
+
path=path,
|
|
810
|
+
body=request.to_json_string(),
|
|
811
|
+
headers=headers,
|
|
812
|
+
params=params,
|
|
813
|
+
config=merged_config,
|
|
814
|
+
model=UpdPerL2BktLnkInfoResponse,
|
|
815
|
+
)
|
|
816
|
+
|
|
336
817
|
def update_fileset(self, request, config=None):
|
|
337
818
|
"""
|
|
338
819
|
update_fileset
|
|
@@ -364,6 +845,37 @@ class PfsClient(BceBaseClient):
|
|
|
364
845
|
model=UpdateFilesetResponse,
|
|
365
846
|
)
|
|
366
847
|
|
|
848
|
+
def update_l2_policy(self, request, config=None):
|
|
849
|
+
"""
|
|
850
|
+
update_l2_policy
|
|
851
|
+
|
|
852
|
+
:param request: Request entity containing all parameters
|
|
853
|
+
:type request: PfsClientRequest
|
|
854
|
+
:param config: Optional request configuration override
|
|
855
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
856
|
+
|
|
857
|
+
:return: API response containing UpdateL2PolicyResponse data
|
|
858
|
+
:rtype: UpdateL2PolicyResponse
|
|
859
|
+
|
|
860
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
861
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
862
|
+
"""
|
|
863
|
+
path = b'/'
|
|
864
|
+
headers = {}
|
|
865
|
+
headers[b'Version'] = b'v2'
|
|
866
|
+
params = {}
|
|
867
|
+
params['action'] = 'UpdateL2Policy'
|
|
868
|
+
merged_config = self._create_request_with_host(request, config)
|
|
869
|
+
return self._send_request(
|
|
870
|
+
http_methods.POST,
|
|
871
|
+
path=path,
|
|
872
|
+
body=request.to_json_string(),
|
|
873
|
+
headers=headers,
|
|
874
|
+
params=params,
|
|
875
|
+
config=merged_config,
|
|
876
|
+
model=UpdateL2PolicyResponse,
|
|
877
|
+
)
|
|
878
|
+
|
|
367
879
|
def update_pfs_tag(self, request, config=None):
|
|
368
880
|
"""
|
|
369
881
|
update_pfs_tag
|
|
@@ -2,29 +2,64 @@
|
|
|
2
2
|
Models for pfs SDK.
|
|
3
3
|
"""
|
|
4
4
|
|
|
5
|
+
from .bucket_link_info import BucketLinkInfo
|
|
6
|
+
from .cancel_l2_bucket_link_request import CancelL2BucketLinkRequest
|
|
7
|
+
from .cancel_l2_bucket_link_response import CancelL2BucketLinkResponse
|
|
5
8
|
from .create_fileset_request import CreateFilesetRequest
|
|
6
9
|
from .create_fileset_response import CreateFilesetResponse
|
|
10
|
+
from .create_l2_bucket_link_request import CreateL2BucketLinkRequest
|
|
11
|
+
from .create_l2_bucket_link_response import CreateL2BucketLinkResponse
|
|
12
|
+
from .create_l2_policy_request import CreateL2PolicyRequest
|
|
13
|
+
from .create_l2_policy_response import CreateL2PolicyResponse
|
|
7
14
|
from .create_pfs_request import CreatePfsRequest
|
|
8
15
|
from .create_pfs_response import CreatePfsResponse
|
|
9
16
|
from .delete_fileset_request import DeleteFilesetRequest
|
|
10
17
|
from .delete_fileset_response import DeleteFilesetResponse
|
|
18
|
+
from .delete_l2_bucket_link_request import DeleteL2BucketLinkRequest
|
|
19
|
+
from .delete_l2_bucket_link_response import DeleteL2BucketLinkResponse
|
|
20
|
+
from .delete_l2_policy_request import DeleteL2PolicyRequest
|
|
21
|
+
from .delete_l2_policy_response import DeleteL2PolicyResponse
|
|
11
22
|
from .desc_fileset_request import DescFilesetRequest
|
|
12
23
|
from .desc_fileset_response import DescFilesetResponse
|
|
24
|
+
from .desc_l2_bucket_link_request import DescL2BucketLinkRequest
|
|
25
|
+
from .desc_l2_bucket_link_response import DescL2BucketLinkResponse
|
|
26
|
+
from .desc_l2_policy_request import DescL2PolicyRequest
|
|
27
|
+
from .desc_l2_policy_response import DescL2PolicyResponse
|
|
13
28
|
from .desc_pfs_response import DescPfsResponse
|
|
29
|
+
from .execute_info import ExecuteInfo
|
|
14
30
|
from .fileset_model import FilesetModel
|
|
15
31
|
from .instance_list_clients_request import InstanceListClientsRequest
|
|
16
32
|
from .instance_list_clients_response import InstanceListClientsResponse
|
|
17
33
|
from .instance_model import InstanceModel
|
|
18
34
|
from .list_fileset_request import ListFilesetRequest
|
|
19
35
|
from .list_fileset_response import ListFilesetResponse
|
|
36
|
+
from .list_l2_bucket_link_request import ListL2BucketLinkRequest
|
|
37
|
+
from .list_l2_bucket_link_response import ListL2BucketLinkResponse
|
|
38
|
+
from .list_l2_policy_request import ListL2PolicyRequest
|
|
39
|
+
from .list_l2_policy_response import ListL2PolicyResponse
|
|
20
40
|
from .list_pfs_response import ListPfsResponse
|
|
41
|
+
from .lst_per_l2_bkt_lnk_exec_log_request import LstPerL2BktLnkExecLogRequest
|
|
42
|
+
from .lst_per_l2_bkt_lnk_exec_log_response import LstPerL2BktLnkExecLogResponse
|
|
21
43
|
from .mount_target_list_clients_request import MountTargetListClientsRequest
|
|
22
44
|
from .mount_target_list_clients_response import MountTargetListClientsResponse
|
|
23
45
|
from .node_info import NodeInfo
|
|
46
|
+
from .pause_l2_bucket_link_request import PauseL2BucketLinkRequest
|
|
47
|
+
from .pause_l2_bucket_link_response import PauseL2BucketLinkResponse
|
|
48
|
+
from .policy_info import PolicyInfo
|
|
49
|
+
from .qry_l2_pol_exec_detail_request import QryL2PolExecDetailRequest
|
|
50
|
+
from .qry_l2_pol_exec_detail_response import QryL2PolExecDetailResponse
|
|
51
|
+
from .qry_l2_pol_exec_log_request import QryL2PolExecLogRequest
|
|
52
|
+
from .qry_l2_pol_exec_log_response import QryL2PolExecLogResponse
|
|
53
|
+
from .resume_l2_bucket_link_request import ResumeL2BucketLinkRequest
|
|
54
|
+
from .resume_l2_bucket_link_response import ResumeL2BucketLinkResponse
|
|
24
55
|
from .subnet_detail import SubnetDetail
|
|
25
56
|
from .tag import Tag
|
|
57
|
+
from .upd_per_l2_bkt_lnk_info_request import UpdPerL2BktLnkInfoRequest
|
|
58
|
+
from .upd_per_l2_bkt_lnk_info_response import UpdPerL2BktLnkInfoResponse
|
|
26
59
|
from .update_fileset_request import UpdateFilesetRequest
|
|
27
60
|
from .update_fileset_response import UpdateFilesetResponse
|
|
61
|
+
from .update_l2_policy_request import UpdateL2PolicyRequest
|
|
62
|
+
from .update_l2_policy_response import UpdateL2PolicyResponse
|
|
28
63
|
from .update_pfs_tag_request import UpdatePFSTagRequest
|
|
29
64
|
from .desc_pfs_request import DescPfsRequest
|
|
30
65
|
from .delete_pfs_request import DeletePfsRequest
|