baiducloud-python-sdk-pfs 0.0.4__tar.gz → 0.0.6__tar.gz
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-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/ChangeLog.md +9 -0
- {baiducloud-python-sdk-pfs-0.0.4/baiducloud_python_sdk_pfs.egg-info → baiducloud-python-sdk-pfs-0.0.6}/PKG-INFO +1 -1
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/__init__.py +1 -1
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/api/pfs_client.py +129 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/__init__.py +9 -0
- baiducloud-python-sdk-pfs-0.0.6/baiducloud_python_sdk_pfs/models/create_l3_mount_target_request.py +76 -0
- baiducloud-python-sdk-pfs-0.0.6/baiducloud_python_sdk_pfs/models/create_l3_mount_target_response.py +77 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/create_pfs_request.py +13 -5
- baiducloud-python-sdk-pfs-0.0.6/baiducloud_python_sdk_pfs/models/delete_l3_mount_target_request.py +68 -0
- baiducloud-python-sdk-pfs-0.0.6/baiducloud_python_sdk_pfs/models/delete_l3_mount_target_response.py +61 -0
- baiducloud-python-sdk-pfs-0.0.6/baiducloud_python_sdk_pfs/models/describe_l3_mount_target_request.py +68 -0
- baiducloud-python-sdk-pfs-0.0.6/baiducloud_python_sdk_pfs/models/describe_l3_mount_target_response.py +101 -0
- baiducloud-python-sdk-pfs-0.0.6/baiducloud_python_sdk_pfs/models/list_l3_mount_target_request.py +76 -0
- baiducloud-python-sdk-pfs-0.0.6/baiducloud_python_sdk_pfs/models/list_l3_mount_target_response.py +102 -0
- baiducloud-python-sdk-pfs-0.0.6/baiducloud_python_sdk_pfs/models/mount_target_info.py +90 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6/baiducloud_python_sdk_pfs.egg-info}/PKG-INFO +1 -1
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs.egg-info/SOURCES.txt +9 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs.egg-info/requires.txt +1 -1
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/setup.py +1 -1
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/LICENSE +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/MANIFEST.in +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/README-CN.md +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/README.md +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/api/__init__.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/bucket_link_info.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/cancel_l2_bucket_link_request.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/cancel_l2_bucket_link_response.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/create_fileset_request.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/create_fileset_response.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/create_l2_bucket_link_request.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/create_l2_bucket_link_response.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/create_l2_policy_request.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/create_l2_policy_response.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/create_pfs_response.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/delete_fileset_request.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/delete_fileset_response.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/delete_l2_bucket_link_request.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/delete_l2_bucket_link_response.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/delete_l2_policy_request.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/delete_l2_policy_response.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/delete_pfs_request.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/desc_fileset_request.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/desc_fileset_response.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/desc_l2_bucket_link_request.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/desc_l2_bucket_link_response.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/desc_l2_policy_request.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/desc_l2_policy_response.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/desc_pfs_request.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/desc_pfs_response.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/execute_info.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/fileset_model.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/instance_list_clients_request.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/instance_list_clients_response.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/instance_model.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/list_fileset_request.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/list_fileset_response.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/list_l2_bucket_link_request.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/list_l2_bucket_link_response.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/list_l2_policy_request.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/list_l2_policy_response.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/list_pfs_request.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/list_pfs_response.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/lst_per_l2_bkt_lnk_exec_log_request.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/lst_per_l2_bkt_lnk_exec_log_response.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/mount_target_list_clients_request.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/mount_target_list_clients_response.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/node_info.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/pause_l2_bucket_link_request.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/pause_l2_bucket_link_response.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/policy_info.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/qry_l2_pol_exec_detail_request.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/qry_l2_pol_exec_detail_response.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/qry_l2_pol_exec_log_request.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/qry_l2_pol_exec_log_response.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/resume_l2_bucket_link_request.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/resume_l2_bucket_link_response.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/subnet_detail.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/tag.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/upd_per_l2_bkt_lnk_info_request.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/upd_per_l2_bkt_lnk_info_response.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/update_fileset_request.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/update_fileset_response.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/update_l2_policy_request.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/update_l2_policy_response.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs/models/update_pfs_tag_request.py +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs.egg-info/dependency_links.txt +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/baiducloud_python_sdk_pfs.egg-info/top_level.txt +0 -0
- {baiducloud-python-sdk-pfs-0.0.4 → baiducloud-python-sdk-pfs-0.0.6}/setup.cfg +0 -0
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
2026-08-11 Version: 0.0.6
|
|
2
|
+
- 涉及产品: PFS,新增创建挂载点接口
|
|
3
|
+
- 涉及产品: PFS,新增删除挂载点接口
|
|
4
|
+
- 涉及产品: PFS,新增查询挂载点列表接口
|
|
5
|
+
- 涉及产品: PFS,新增查询挂载点详情接口
|
|
6
|
+
|
|
7
|
+
2026-07-10 Version: 0.0.5
|
|
8
|
+
- 涉及产品: PFS,createPfs接口新增zone(可用区)字段
|
|
9
|
+
|
|
1
10
|
2026-06-03 Version: 0.0.4
|
|
2
11
|
- 涉及产品: PFS,新增数据流动任务的创建、查询、暂停、启动、取消、删除及日志查询
|
|
3
12
|
- 涉及产品: PFS,新增生命周期规则的创建、更新、删除、查询及执行日志查询
|
|
@@ -11,22 +11,27 @@ 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_core.util import request_body_utils
|
|
14
15
|
from baiducloud_python_sdk_pfs.models.cancel_l2_bucket_link_response import CancelL2BucketLinkResponse
|
|
15
16
|
from baiducloud_python_sdk_pfs.models.create_fileset_response import CreateFilesetResponse
|
|
16
17
|
from baiducloud_python_sdk_pfs.models.create_l2_bucket_link_response import CreateL2BucketLinkResponse
|
|
17
18
|
from baiducloud_python_sdk_pfs.models.create_l2_policy_response import CreateL2PolicyResponse
|
|
19
|
+
from baiducloud_python_sdk_pfs.models.create_l3_mount_target_response import CreateL3MountTargetResponse
|
|
18
20
|
from baiducloud_python_sdk_pfs.models.create_pfs_response import CreatePfsResponse
|
|
19
21
|
from baiducloud_python_sdk_pfs.models.delete_fileset_response import DeleteFilesetResponse
|
|
20
22
|
from baiducloud_python_sdk_pfs.models.delete_l2_bucket_link_response import DeleteL2BucketLinkResponse
|
|
21
23
|
from baiducloud_python_sdk_pfs.models.delete_l2_policy_response import DeleteL2PolicyResponse
|
|
24
|
+
from baiducloud_python_sdk_pfs.models.delete_l3_mount_target_response import DeleteL3MountTargetResponse
|
|
22
25
|
from baiducloud_python_sdk_pfs.models.desc_fileset_response import DescFilesetResponse
|
|
23
26
|
from baiducloud_python_sdk_pfs.models.desc_l2_bucket_link_response import DescL2BucketLinkResponse
|
|
24
27
|
from baiducloud_python_sdk_pfs.models.desc_l2_policy_response import DescL2PolicyResponse
|
|
25
28
|
from baiducloud_python_sdk_pfs.models.desc_pfs_response import DescPfsResponse
|
|
29
|
+
from baiducloud_python_sdk_pfs.models.describe_l3_mount_target_response import DescribeL3MountTargetResponse
|
|
26
30
|
from baiducloud_python_sdk_pfs.models.instance_list_clients_response import InstanceListClientsResponse
|
|
27
31
|
from baiducloud_python_sdk_pfs.models.list_fileset_response import ListFilesetResponse
|
|
28
32
|
from baiducloud_python_sdk_pfs.models.list_l2_bucket_link_response import ListL2BucketLinkResponse
|
|
29
33
|
from baiducloud_python_sdk_pfs.models.list_l2_policy_response import ListL2PolicyResponse
|
|
34
|
+
from baiducloud_python_sdk_pfs.models.list_l3_mount_target_response import ListL3MountTargetResponse
|
|
30
35
|
from baiducloud_python_sdk_pfs.models.list_pfs_response import ListPfsResponse
|
|
31
36
|
from baiducloud_python_sdk_pfs.models.lst_per_l2_bkt_lnk_exec_log_response import LstPerL2BktLnkExecLogResponse
|
|
32
37
|
from baiducloud_python_sdk_pfs.models.mount_target_list_clients_response import MountTargetListClientsResponse
|
|
@@ -187,6 +192,37 @@ class PfsClient(BceBaseClient):
|
|
|
187
192
|
model=CreateL2PolicyResponse,
|
|
188
193
|
)
|
|
189
194
|
|
|
195
|
+
def create_l3_mount_target(self, request, config=None):
|
|
196
|
+
"""
|
|
197
|
+
create_l3_mount_target
|
|
198
|
+
|
|
199
|
+
:param request: Request entity containing all parameters
|
|
200
|
+
:type request: PfsClientRequest
|
|
201
|
+
:param config: Optional request configuration override
|
|
202
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
203
|
+
|
|
204
|
+
:return: API response containing CreateL3MountTargetResponse data
|
|
205
|
+
:rtype: CreateL3MountTargetResponse
|
|
206
|
+
|
|
207
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
208
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
209
|
+
"""
|
|
210
|
+
path = b'/'
|
|
211
|
+
headers = {}
|
|
212
|
+
headers[b'Version'] = b'v2'
|
|
213
|
+
params = {}
|
|
214
|
+
params['action'] = 'CreateL3MountTarget'
|
|
215
|
+
merged_config = self._create_request_with_host(request, config)
|
|
216
|
+
return self._send_request(
|
|
217
|
+
http_methods.POST,
|
|
218
|
+
path=path,
|
|
219
|
+
body=request.to_json_string(),
|
|
220
|
+
headers=headers,
|
|
221
|
+
params=params,
|
|
222
|
+
config=merged_config,
|
|
223
|
+
model=CreateL3MountTargetResponse,
|
|
224
|
+
)
|
|
225
|
+
|
|
190
226
|
def create_pfs(self, request, config=None):
|
|
191
227
|
"""
|
|
192
228
|
create_pfs
|
|
@@ -302,6 +338,37 @@ class PfsClient(BceBaseClient):
|
|
|
302
338
|
model=DeleteL2PolicyResponse,
|
|
303
339
|
)
|
|
304
340
|
|
|
341
|
+
def delete_l3_mount_target(self, request, config=None):
|
|
342
|
+
"""
|
|
343
|
+
delete_l3_mount_target
|
|
344
|
+
|
|
345
|
+
:param request: Request entity containing all parameters
|
|
346
|
+
:type request: PfsClientRequest
|
|
347
|
+
:param config: Optional request configuration override
|
|
348
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
349
|
+
|
|
350
|
+
:return: API response containing DeleteL3MountTargetResponse data
|
|
351
|
+
:rtype: DeleteL3MountTargetResponse
|
|
352
|
+
|
|
353
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
354
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
355
|
+
"""
|
|
356
|
+
path = b'/'
|
|
357
|
+
headers = {}
|
|
358
|
+
headers[b'Version'] = b'v2'
|
|
359
|
+
params = {}
|
|
360
|
+
params['action'] = 'DeleteL3MountTarget'
|
|
361
|
+
merged_config = self._create_request_with_host(request, config)
|
|
362
|
+
return self._send_request(
|
|
363
|
+
http_methods.POST,
|
|
364
|
+
path=path,
|
|
365
|
+
body=request.to_json_string(),
|
|
366
|
+
headers=headers,
|
|
367
|
+
params=params,
|
|
368
|
+
config=merged_config,
|
|
369
|
+
model=DeleteL3MountTargetResponse,
|
|
370
|
+
)
|
|
371
|
+
|
|
305
372
|
def delete_pfs(self, request, config=None):
|
|
306
373
|
"""
|
|
307
374
|
delete_pfs
|
|
@@ -443,6 +510,37 @@ class PfsClient(BceBaseClient):
|
|
|
443
510
|
http_methods.GET, path=path, params=params, config=merged_config, model=DescPfsResponse
|
|
444
511
|
)
|
|
445
512
|
|
|
513
|
+
def describe_l3_mount_target(self, request, config=None):
|
|
514
|
+
"""
|
|
515
|
+
describe_l3_mount_target
|
|
516
|
+
|
|
517
|
+
:param request: Request entity containing all parameters
|
|
518
|
+
:type request: PfsClientRequest
|
|
519
|
+
:param config: Optional request configuration override
|
|
520
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
521
|
+
|
|
522
|
+
:return: API response containing DescribeL3MountTargetResponse data
|
|
523
|
+
:rtype: DescribeL3MountTargetResponse
|
|
524
|
+
|
|
525
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
526
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
527
|
+
"""
|
|
528
|
+
path = b'/'
|
|
529
|
+
headers = {}
|
|
530
|
+
headers[b'Version'] = b'v2'
|
|
531
|
+
params = {}
|
|
532
|
+
params['action'] = 'DescribeL3MountTarget'
|
|
533
|
+
merged_config = self._create_request_with_host(request, config)
|
|
534
|
+
return self._send_request(
|
|
535
|
+
http_methods.POST,
|
|
536
|
+
path=path,
|
|
537
|
+
body=request.to_json_string(),
|
|
538
|
+
headers=headers,
|
|
539
|
+
params=params,
|
|
540
|
+
config=merged_config,
|
|
541
|
+
model=DescribeL3MountTargetResponse,
|
|
542
|
+
)
|
|
543
|
+
|
|
446
544
|
def instance_list_clients(self, request, config=None):
|
|
447
545
|
"""
|
|
448
546
|
instance_list_clients
|
|
@@ -567,6 +665,37 @@ class PfsClient(BceBaseClient):
|
|
|
567
665
|
model=ListL2PolicyResponse,
|
|
568
666
|
)
|
|
569
667
|
|
|
668
|
+
def list_l3_mount_target(self, request, config=None):
|
|
669
|
+
"""
|
|
670
|
+
list_l3_mount_target
|
|
671
|
+
|
|
672
|
+
:param request: Request entity containing all parameters
|
|
673
|
+
:type request: PfsClientRequest
|
|
674
|
+
:param config: Optional request configuration override
|
|
675
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
676
|
+
|
|
677
|
+
:return: API response containing ListL3MountTargetResponse data
|
|
678
|
+
:rtype: ListL3MountTargetResponse
|
|
679
|
+
|
|
680
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
681
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
682
|
+
"""
|
|
683
|
+
path = b'/'
|
|
684
|
+
headers = {}
|
|
685
|
+
headers[b'Version'] = b'v2'
|
|
686
|
+
params = {}
|
|
687
|
+
params['action'] = 'ListL3MountTarget'
|
|
688
|
+
merged_config = self._create_request_with_host(request, config)
|
|
689
|
+
return self._send_request(
|
|
690
|
+
http_methods.POST,
|
|
691
|
+
path=path,
|
|
692
|
+
body=request.to_json_string(),
|
|
693
|
+
headers=headers,
|
|
694
|
+
params=params,
|
|
695
|
+
config=merged_config,
|
|
696
|
+
model=ListL3MountTargetResponse,
|
|
697
|
+
)
|
|
698
|
+
|
|
570
699
|
def list_pfs(self, request, config=None):
|
|
571
700
|
"""
|
|
572
701
|
list_pfs
|
|
@@ -11,6 +11,8 @@ from .create_l2_bucket_link_request import CreateL2BucketLinkRequest
|
|
|
11
11
|
from .create_l2_bucket_link_response import CreateL2BucketLinkResponse
|
|
12
12
|
from .create_l2_policy_request import CreateL2PolicyRequest
|
|
13
13
|
from .create_l2_policy_response import CreateL2PolicyResponse
|
|
14
|
+
from .create_l3_mount_target_request import CreateL3MountTargetRequest
|
|
15
|
+
from .create_l3_mount_target_response import CreateL3MountTargetResponse
|
|
14
16
|
from .create_pfs_request import CreatePfsRequest
|
|
15
17
|
from .create_pfs_response import CreatePfsResponse
|
|
16
18
|
from .delete_fileset_request import DeleteFilesetRequest
|
|
@@ -19,6 +21,8 @@ from .delete_l2_bucket_link_request import DeleteL2BucketLinkRequest
|
|
|
19
21
|
from .delete_l2_bucket_link_response import DeleteL2BucketLinkResponse
|
|
20
22
|
from .delete_l2_policy_request import DeleteL2PolicyRequest
|
|
21
23
|
from .delete_l2_policy_response import DeleteL2PolicyResponse
|
|
24
|
+
from .delete_l3_mount_target_request import DeleteL3MountTargetRequest
|
|
25
|
+
from .delete_l3_mount_target_response import DeleteL3MountTargetResponse
|
|
22
26
|
from .desc_fileset_request import DescFilesetRequest
|
|
23
27
|
from .desc_fileset_response import DescFilesetResponse
|
|
24
28
|
from .desc_l2_bucket_link_request import DescL2BucketLinkRequest
|
|
@@ -26,6 +30,8 @@ from .desc_l2_bucket_link_response import DescL2BucketLinkResponse
|
|
|
26
30
|
from .desc_l2_policy_request import DescL2PolicyRequest
|
|
27
31
|
from .desc_l2_policy_response import DescL2PolicyResponse
|
|
28
32
|
from .desc_pfs_response import DescPfsResponse
|
|
33
|
+
from .describe_l3_mount_target_request import DescribeL3MountTargetRequest
|
|
34
|
+
from .describe_l3_mount_target_response import DescribeL3MountTargetResponse
|
|
29
35
|
from .execute_info import ExecuteInfo
|
|
30
36
|
from .fileset_model import FilesetModel
|
|
31
37
|
from .instance_list_clients_request import InstanceListClientsRequest
|
|
@@ -37,9 +43,12 @@ from .list_l2_bucket_link_request import ListL2BucketLinkRequest
|
|
|
37
43
|
from .list_l2_bucket_link_response import ListL2BucketLinkResponse
|
|
38
44
|
from .list_l2_policy_request import ListL2PolicyRequest
|
|
39
45
|
from .list_l2_policy_response import ListL2PolicyResponse
|
|
46
|
+
from .list_l3_mount_target_request import ListL3MountTargetRequest
|
|
47
|
+
from .list_l3_mount_target_response import ListL3MountTargetResponse
|
|
40
48
|
from .list_pfs_response import ListPfsResponse
|
|
41
49
|
from .lst_per_l2_bkt_lnk_exec_log_request import LstPerL2BktLnkExecLogRequest
|
|
42
50
|
from .lst_per_l2_bkt_lnk_exec_log_response import LstPerL2BktLnkExecLogResponse
|
|
51
|
+
from .mount_target_info import MountTargetInfo
|
|
43
52
|
from .mount_target_list_clients_request import MountTargetListClientsRequest
|
|
44
53
|
from .mount_target_list_clients_response import MountTargetListClientsResponse
|
|
45
54
|
from .node_info import NodeInfo
|
baiducloud-python-sdk-pfs-0.0.6/baiducloud_python_sdk_pfs/models/create_l3_mount_target_request.py
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for CreateL3MountTargetRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CreateL3MountTargetRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for CreateL3MountTargetRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, instance_id, vpc_id, subnet_id):
|
|
16
|
+
"""
|
|
17
|
+
Initialize CreateL3MountTargetRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param instance_id: PFS实例ID
|
|
20
|
+
:type instance_id: str (required)
|
|
21
|
+
|
|
22
|
+
:param vpc_id: PFS实例vip所属VPC的短Id
|
|
23
|
+
:type vpc_id: str (required)
|
|
24
|
+
|
|
25
|
+
:param subnet_id: MountTarget所属子网,subnet属于PFS实例所在vpc,为短id
|
|
26
|
+
:type subnet_id: str (required)
|
|
27
|
+
"""
|
|
28
|
+
super().__init__()
|
|
29
|
+
self.instance_id = instance_id
|
|
30
|
+
self.vpc_id = vpc_id
|
|
31
|
+
self.subnet_id = subnet_id
|
|
32
|
+
|
|
33
|
+
def to_dict(self):
|
|
34
|
+
"""
|
|
35
|
+
Convert the request entity to a dictionary representation.
|
|
36
|
+
|
|
37
|
+
Nested model objects are recursively converted to dictionaries.
|
|
38
|
+
|
|
39
|
+
:return: Dictionary representation of the request
|
|
40
|
+
:rtype: dict
|
|
41
|
+
"""
|
|
42
|
+
_map = super().to_dict()
|
|
43
|
+
if _map is not None:
|
|
44
|
+
return _map
|
|
45
|
+
result = dict()
|
|
46
|
+
if self.instance_id is not None:
|
|
47
|
+
result['instanceId'] = self.instance_id
|
|
48
|
+
if self.vpc_id is not None:
|
|
49
|
+
result['vpcId'] = self.vpc_id
|
|
50
|
+
if self.subnet_id is not None:
|
|
51
|
+
result['subnetId'] = self.subnet_id
|
|
52
|
+
return result
|
|
53
|
+
|
|
54
|
+
def from_dict(self, m):
|
|
55
|
+
"""
|
|
56
|
+
Populate the request entity from a dictionary.
|
|
57
|
+
|
|
58
|
+
Nested dictionaries are recursively converted to model objects.
|
|
59
|
+
|
|
60
|
+
:param m: Dictionary containing request data
|
|
61
|
+
:type m: dict
|
|
62
|
+
|
|
63
|
+
:return: Self reference for method chaining
|
|
64
|
+
:rtype: CreateL3MountTargetRequest
|
|
65
|
+
|
|
66
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
67
|
+
:raises ValueError: If nested model conversion fails
|
|
68
|
+
"""
|
|
69
|
+
m = m or dict()
|
|
70
|
+
if m.get('instanceId') is not None:
|
|
71
|
+
self.instance_id = m.get('instanceId')
|
|
72
|
+
if m.get('vpcId') is not None:
|
|
73
|
+
self.vpc_id = m.get('vpcId')
|
|
74
|
+
if m.get('subnetId') is not None:
|
|
75
|
+
self.subnet_id = m.get('subnetId')
|
|
76
|
+
return self
|
baiducloud-python-sdk-pfs-0.0.6/baiducloud_python_sdk_pfs/models/create_l3_mount_target_response.py
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for CreateL3MountTargetResponse information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CreateL3MountTargetResponse(BceResponse):
|
|
9
|
+
"""
|
|
10
|
+
CreateL3MountTargetResponse
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, request_id=None, domain=None, mount_target_id=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize CreateL3MountTargetResponse response.
|
|
16
|
+
|
|
17
|
+
:param request_id: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
18
|
+
:type request_id: str (optional)
|
|
19
|
+
|
|
20
|
+
:param domain: 分配的服务dns,通过此dns执行文件系统挂载,即可访问服务
|
|
21
|
+
:type domain: str (optional)
|
|
22
|
+
|
|
23
|
+
:param mount_target_id: 挂载点ID
|
|
24
|
+
:type mount_target_id: str (optional)
|
|
25
|
+
"""
|
|
26
|
+
super().__init__()
|
|
27
|
+
self.request_id = request_id
|
|
28
|
+
self.domain = domain
|
|
29
|
+
self.mount_target_id = mount_target_id
|
|
30
|
+
|
|
31
|
+
def to_dict(self):
|
|
32
|
+
"""
|
|
33
|
+
Convert the response instance to a dictionary representation.
|
|
34
|
+
|
|
35
|
+
Includes metadata from the parent BceResponse class.
|
|
36
|
+
Nested model objects are recursively converted to dictionaries.
|
|
37
|
+
|
|
38
|
+
:return: Dictionary representation of the response
|
|
39
|
+
:rtype: dict
|
|
40
|
+
"""
|
|
41
|
+
_map = super().to_dict()
|
|
42
|
+
if _map is not None:
|
|
43
|
+
return _map
|
|
44
|
+
result = dict()
|
|
45
|
+
if self.metadata is not None:
|
|
46
|
+
result['metadata'] = dict(self.metadata)
|
|
47
|
+
if self.request_id is not None:
|
|
48
|
+
result['requestId'] = self.request_id
|
|
49
|
+
if self.domain is not None:
|
|
50
|
+
result['domain'] = self.domain
|
|
51
|
+
if self.mount_target_id is not None:
|
|
52
|
+
result['mountTargetId'] = self.mount_target_id
|
|
53
|
+
return result
|
|
54
|
+
|
|
55
|
+
def from_dict(self, m):
|
|
56
|
+
"""
|
|
57
|
+
Populate the response instance from a dictionary.
|
|
58
|
+
|
|
59
|
+
Nested dictionaries are recursively converted to model objects.
|
|
60
|
+
|
|
61
|
+
:param m: Dictionary containing response data
|
|
62
|
+
:type m: dict
|
|
63
|
+
|
|
64
|
+
:return: Self reference for method chaining
|
|
65
|
+
:rtype: CreateL3MountTargetResponse
|
|
66
|
+
|
|
67
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
68
|
+
:raises ValueError: If nested model conversion fails
|
|
69
|
+
"""
|
|
70
|
+
m = m or dict()
|
|
71
|
+
if m.get('requestId') is not None:
|
|
72
|
+
self.request_id = m.get('requestId')
|
|
73
|
+
if m.get('domain') is not None:
|
|
74
|
+
self.domain = m.get('domain')
|
|
75
|
+
if m.get('mountTargetId') is not None:
|
|
76
|
+
self.mount_target_id = m.get('mountTargetId')
|
|
77
|
+
return self
|
|
@@ -13,7 +13,7 @@ class CreatePfsRequest(AbstractModel):
|
|
|
13
13
|
This class encapsulates all parameters for the API request.
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
|
-
def __init__(self, name, instance_type, capacity, subnet_id, description=None, tags=None):
|
|
16
|
+
def __init__(self, name, instance_type, capacity=None, zone=None, subnet_id=None, description=None, tags=None):
|
|
17
17
|
"""
|
|
18
18
|
Initialize CreatePfsRequest request entity.
|
|
19
19
|
|
|
@@ -23,11 +23,14 @@ class CreatePfsRequest(AbstractModel):
|
|
|
23
23
|
:param instance_type: 可选类型包括:base、basic、baseX、plus、plus2、plusl2X
|
|
24
24
|
:type instance_type: str (required)
|
|
25
25
|
|
|
26
|
-
:param capacity:
|
|
27
|
-
:type capacity: int (
|
|
26
|
+
:param capacity: capacity parameter
|
|
27
|
+
:type capacity: int (optional)
|
|
28
28
|
|
|
29
|
-
:param
|
|
30
|
-
:type
|
|
29
|
+
:param zone: plusl3_p1类型所在可用区。plusl3_p1类型必传,其他类型不用传。
|
|
30
|
+
:type zone: str (optional)
|
|
31
|
+
|
|
32
|
+
:param subnet_id: 子网短ID。plusl3_p1类型不用传,其他类型必传。
|
|
33
|
+
:type subnet_id: str (optional)
|
|
31
34
|
|
|
32
35
|
:param description: 实例描述
|
|
33
36
|
:type description: str (optional)
|
|
@@ -39,6 +42,7 @@ class CreatePfsRequest(AbstractModel):
|
|
|
39
42
|
self.name = name
|
|
40
43
|
self.instance_type = instance_type
|
|
41
44
|
self.capacity = capacity
|
|
45
|
+
self.zone = zone
|
|
42
46
|
self.subnet_id = subnet_id
|
|
43
47
|
self.description = description
|
|
44
48
|
self.tags = tags
|
|
@@ -62,6 +66,8 @@ class CreatePfsRequest(AbstractModel):
|
|
|
62
66
|
result['instanceType'] = self.instance_type
|
|
63
67
|
if self.capacity is not None:
|
|
64
68
|
result['capacity'] = self.capacity
|
|
69
|
+
if self.zone is not None:
|
|
70
|
+
result['zone'] = self.zone
|
|
65
71
|
if self.subnet_id is not None:
|
|
66
72
|
result['subnetId'] = self.subnet_id
|
|
67
73
|
if self.description is not None:
|
|
@@ -92,6 +98,8 @@ class CreatePfsRequest(AbstractModel):
|
|
|
92
98
|
self.instance_type = m.get('instanceType')
|
|
93
99
|
if m.get('capacity') is not None:
|
|
94
100
|
self.capacity = m.get('capacity')
|
|
101
|
+
if m.get('zone') is not None:
|
|
102
|
+
self.zone = m.get('zone')
|
|
95
103
|
if m.get('subnetId') is not None:
|
|
96
104
|
self.subnet_id = m.get('subnetId')
|
|
97
105
|
if m.get('description') is not None:
|
baiducloud-python-sdk-pfs-0.0.6/baiducloud_python_sdk_pfs/models/delete_l3_mount_target_request.py
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DeleteL3MountTargetRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeleteL3MountTargetRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DeleteL3MountTargetRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, instance_id, mount_target_id):
|
|
16
|
+
"""
|
|
17
|
+
Initialize DeleteL3MountTargetRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param instance_id: PFS实例ID
|
|
20
|
+
:type instance_id: str (required)
|
|
21
|
+
|
|
22
|
+
:param mount_target_id: PFS实例的挂载点ID
|
|
23
|
+
:type mount_target_id: str (required)
|
|
24
|
+
"""
|
|
25
|
+
super().__init__()
|
|
26
|
+
self.instance_id = instance_id
|
|
27
|
+
self.mount_target_id = mount_target_id
|
|
28
|
+
|
|
29
|
+
def to_dict(self):
|
|
30
|
+
"""
|
|
31
|
+
Convert the request entity to a dictionary representation.
|
|
32
|
+
|
|
33
|
+
Nested model objects are recursively converted to dictionaries.
|
|
34
|
+
|
|
35
|
+
:return: Dictionary representation of the request
|
|
36
|
+
:rtype: dict
|
|
37
|
+
"""
|
|
38
|
+
_map = super().to_dict()
|
|
39
|
+
if _map is not None:
|
|
40
|
+
return _map
|
|
41
|
+
result = dict()
|
|
42
|
+
if self.instance_id is not None:
|
|
43
|
+
result['instanceId'] = self.instance_id
|
|
44
|
+
if self.mount_target_id is not None:
|
|
45
|
+
result['mountTargetId'] = self.mount_target_id
|
|
46
|
+
return result
|
|
47
|
+
|
|
48
|
+
def from_dict(self, m):
|
|
49
|
+
"""
|
|
50
|
+
Populate the request entity from a dictionary.
|
|
51
|
+
|
|
52
|
+
Nested dictionaries are recursively converted to model objects.
|
|
53
|
+
|
|
54
|
+
:param m: Dictionary containing request data
|
|
55
|
+
:type m: dict
|
|
56
|
+
|
|
57
|
+
:return: Self reference for method chaining
|
|
58
|
+
:rtype: DeleteL3MountTargetRequest
|
|
59
|
+
|
|
60
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
61
|
+
:raises ValueError: If nested model conversion fails
|
|
62
|
+
"""
|
|
63
|
+
m = m or dict()
|
|
64
|
+
if m.get('instanceId') is not None:
|
|
65
|
+
self.instance_id = m.get('instanceId')
|
|
66
|
+
if m.get('mountTargetId') is not None:
|
|
67
|
+
self.mount_target_id = m.get('mountTargetId')
|
|
68
|
+
return self
|
baiducloud-python-sdk-pfs-0.0.6/baiducloud_python_sdk_pfs/models/delete_l3_mount_target_response.py
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DeleteL3MountTargetResponse information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeleteL3MountTargetResponse(BceResponse):
|
|
9
|
+
"""
|
|
10
|
+
DeleteL3MountTargetResponse
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, request_id=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize DeleteL3MountTargetResponse response.
|
|
16
|
+
|
|
17
|
+
:param request_id: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
18
|
+
:type request_id: str (optional)
|
|
19
|
+
"""
|
|
20
|
+
super().__init__()
|
|
21
|
+
self.request_id = request_id
|
|
22
|
+
|
|
23
|
+
def to_dict(self):
|
|
24
|
+
"""
|
|
25
|
+
Convert the response instance to a dictionary representation.
|
|
26
|
+
|
|
27
|
+
Includes metadata from the parent BceResponse class.
|
|
28
|
+
Nested model objects are recursively converted to dictionaries.
|
|
29
|
+
|
|
30
|
+
:return: Dictionary representation of the response
|
|
31
|
+
:rtype: dict
|
|
32
|
+
"""
|
|
33
|
+
_map = super().to_dict()
|
|
34
|
+
if _map is not None:
|
|
35
|
+
return _map
|
|
36
|
+
result = dict()
|
|
37
|
+
if self.metadata is not None:
|
|
38
|
+
result['metadata'] = dict(self.metadata)
|
|
39
|
+
if self.request_id is not None:
|
|
40
|
+
result['requestId'] = self.request_id
|
|
41
|
+
return result
|
|
42
|
+
|
|
43
|
+
def from_dict(self, m):
|
|
44
|
+
"""
|
|
45
|
+
Populate the response instance from a dictionary.
|
|
46
|
+
|
|
47
|
+
Nested dictionaries are recursively converted to model objects.
|
|
48
|
+
|
|
49
|
+
:param m: Dictionary containing response data
|
|
50
|
+
:type m: dict
|
|
51
|
+
|
|
52
|
+
:return: Self reference for method chaining
|
|
53
|
+
:rtype: DeleteL3MountTargetResponse
|
|
54
|
+
|
|
55
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
56
|
+
:raises ValueError: If nested model conversion fails
|
|
57
|
+
"""
|
|
58
|
+
m = m or dict()
|
|
59
|
+
if m.get('requestId') is not None:
|
|
60
|
+
self.request_id = m.get('requestId')
|
|
61
|
+
return self
|
baiducloud-python-sdk-pfs-0.0.6/baiducloud_python_sdk_pfs/models/describe_l3_mount_target_request.py
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DescribeL3MountTargetRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DescribeL3MountTargetRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DescribeL3MountTargetRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, instance_id, mount_target_id):
|
|
16
|
+
"""
|
|
17
|
+
Initialize DescribeL3MountTargetRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param instance_id: PFS实例ID
|
|
20
|
+
:type instance_id: str (required)
|
|
21
|
+
|
|
22
|
+
:param mount_target_id: 挂载点ID
|
|
23
|
+
:type mount_target_id: str (required)
|
|
24
|
+
"""
|
|
25
|
+
super().__init__()
|
|
26
|
+
self.instance_id = instance_id
|
|
27
|
+
self.mount_target_id = mount_target_id
|
|
28
|
+
|
|
29
|
+
def to_dict(self):
|
|
30
|
+
"""
|
|
31
|
+
Convert the request entity to a dictionary representation.
|
|
32
|
+
|
|
33
|
+
Nested model objects are recursively converted to dictionaries.
|
|
34
|
+
|
|
35
|
+
:return: Dictionary representation of the request
|
|
36
|
+
:rtype: dict
|
|
37
|
+
"""
|
|
38
|
+
_map = super().to_dict()
|
|
39
|
+
if _map is not None:
|
|
40
|
+
return _map
|
|
41
|
+
result = dict()
|
|
42
|
+
if self.instance_id is not None:
|
|
43
|
+
result['instanceId'] = self.instance_id
|
|
44
|
+
if self.mount_target_id is not None:
|
|
45
|
+
result['mountTargetId'] = self.mount_target_id
|
|
46
|
+
return result
|
|
47
|
+
|
|
48
|
+
def from_dict(self, m):
|
|
49
|
+
"""
|
|
50
|
+
Populate the request entity from a dictionary.
|
|
51
|
+
|
|
52
|
+
Nested dictionaries are recursively converted to model objects.
|
|
53
|
+
|
|
54
|
+
:param m: Dictionary containing request data
|
|
55
|
+
:type m: dict
|
|
56
|
+
|
|
57
|
+
:return: Self reference for method chaining
|
|
58
|
+
:rtype: DescribeL3MountTargetRequest
|
|
59
|
+
|
|
60
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
61
|
+
:raises ValueError: If nested model conversion fails
|
|
62
|
+
"""
|
|
63
|
+
m = m or dict()
|
|
64
|
+
if m.get('instanceId') is not None:
|
|
65
|
+
self.instance_id = m.get('instanceId')
|
|
66
|
+
if m.get('mountTargetId') is not None:
|
|
67
|
+
self.mount_target_id = m.get('mountTargetId')
|
|
68
|
+
return self
|