baiducloud-python-sdk-pfs 0.0.1__tar.gz → 0.0.2__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.
Files changed (34) hide show
  1. baiducloud-python-sdk-pfs-0.0.2/ChangeLog.md +6 -0
  2. {baiducloud-python-sdk-pfs-0.0.1/baiducloud_python_sdk_pfs.egg-info → baiducloud-python-sdk-pfs-0.0.2}/PKG-INFO +1 -1
  3. {baiducloud-python-sdk-pfs-0.0.1 → baiducloud-python-sdk-pfs-0.0.2}/baiducloud_python_sdk_pfs/__init__.py +1 -1
  4. {baiducloud-python-sdk-pfs-0.0.1 → baiducloud-python-sdk-pfs-0.0.2}/baiducloud_python_sdk_pfs/api/pfs_client.py +64 -2
  5. {baiducloud-python-sdk-pfs-0.0.1 → baiducloud-python-sdk-pfs-0.0.2}/baiducloud_python_sdk_pfs/models/__init__.py +5 -0
  6. baiducloud-python-sdk-pfs-0.0.2/baiducloud_python_sdk_pfs/models/instance_list_clients_request.py +84 -0
  7. baiducloud-python-sdk-pfs-0.0.2/baiducloud_python_sdk_pfs/models/instance_list_clients_response.py +104 -0
  8. baiducloud-python-sdk-pfs-0.0.2/baiducloud_python_sdk_pfs/models/mount_target_list_clients_request.py +84 -0
  9. baiducloud-python-sdk-pfs-0.0.2/baiducloud_python_sdk_pfs/models/mount_target_list_clients_response.py +102 -0
  10. baiducloud-python-sdk-pfs-0.0.2/baiducloud_python_sdk_pfs/models/node_info.py +178 -0
  11. {baiducloud-python-sdk-pfs-0.0.1 → baiducloud-python-sdk-pfs-0.0.2/baiducloud_python_sdk_pfs.egg-info}/PKG-INFO +1 -1
  12. {baiducloud-python-sdk-pfs-0.0.1 → baiducloud-python-sdk-pfs-0.0.2}/baiducloud_python_sdk_pfs.egg-info/SOURCES.txt +5 -0
  13. baiducloud-python-sdk-pfs-0.0.1/ChangeLog.md +0 -2
  14. {baiducloud-python-sdk-pfs-0.0.1 → baiducloud-python-sdk-pfs-0.0.2}/LICENSE +0 -0
  15. {baiducloud-python-sdk-pfs-0.0.1 → baiducloud-python-sdk-pfs-0.0.2}/MANIFEST.in +0 -0
  16. {baiducloud-python-sdk-pfs-0.0.1 → baiducloud-python-sdk-pfs-0.0.2}/README-CN.md +0 -0
  17. {baiducloud-python-sdk-pfs-0.0.1 → baiducloud-python-sdk-pfs-0.0.2}/README.md +0 -0
  18. {baiducloud-python-sdk-pfs-0.0.1 → baiducloud-python-sdk-pfs-0.0.2}/baiducloud_python_sdk_pfs/api/__init__.py +0 -0
  19. {baiducloud-python-sdk-pfs-0.0.1 → baiducloud-python-sdk-pfs-0.0.2}/baiducloud_python_sdk_pfs/models/create_pfs_request.py +0 -0
  20. {baiducloud-python-sdk-pfs-0.0.1 → baiducloud-python-sdk-pfs-0.0.2}/baiducloud_python_sdk_pfs/models/create_pfs_response.py +0 -0
  21. {baiducloud-python-sdk-pfs-0.0.1 → baiducloud-python-sdk-pfs-0.0.2}/baiducloud_python_sdk_pfs/models/delete_pfs_request.py +0 -0
  22. {baiducloud-python-sdk-pfs-0.0.1 → baiducloud-python-sdk-pfs-0.0.2}/baiducloud_python_sdk_pfs/models/desc_pfs_request.py +0 -0
  23. {baiducloud-python-sdk-pfs-0.0.1 → baiducloud-python-sdk-pfs-0.0.2}/baiducloud_python_sdk_pfs/models/desc_pfs_response.py +0 -0
  24. {baiducloud-python-sdk-pfs-0.0.1 → baiducloud-python-sdk-pfs-0.0.2}/baiducloud_python_sdk_pfs/models/instance_model.py +0 -0
  25. {baiducloud-python-sdk-pfs-0.0.1 → baiducloud-python-sdk-pfs-0.0.2}/baiducloud_python_sdk_pfs/models/list_pfs_request.py +0 -0
  26. {baiducloud-python-sdk-pfs-0.0.1 → baiducloud-python-sdk-pfs-0.0.2}/baiducloud_python_sdk_pfs/models/list_pfs_response.py +0 -0
  27. {baiducloud-python-sdk-pfs-0.0.1 → baiducloud-python-sdk-pfs-0.0.2}/baiducloud_python_sdk_pfs/models/subnet_detail.py +0 -0
  28. {baiducloud-python-sdk-pfs-0.0.1 → baiducloud-python-sdk-pfs-0.0.2}/baiducloud_python_sdk_pfs/models/tag.py +0 -0
  29. {baiducloud-python-sdk-pfs-0.0.1 → baiducloud-python-sdk-pfs-0.0.2}/baiducloud_python_sdk_pfs/models/update_pfs_tag_request.py +0 -0
  30. {baiducloud-python-sdk-pfs-0.0.1 → baiducloud-python-sdk-pfs-0.0.2}/baiducloud_python_sdk_pfs.egg-info/dependency_links.txt +0 -0
  31. {baiducloud-python-sdk-pfs-0.0.1 → baiducloud-python-sdk-pfs-0.0.2}/baiducloud_python_sdk_pfs.egg-info/requires.txt +0 -0
  32. {baiducloud-python-sdk-pfs-0.0.1 → baiducloud-python-sdk-pfs-0.0.2}/baiducloud_python_sdk_pfs.egg-info/top_level.txt +0 -0
  33. {baiducloud-python-sdk-pfs-0.0.1 → baiducloud-python-sdk-pfs-0.0.2}/setup.cfg +0 -0
  34. {baiducloud-python-sdk-pfs-0.0.1 → baiducloud-python-sdk-pfs-0.0.2}/setup.py +0 -0
@@ -0,0 +1,6 @@
1
+ 2026-06-02 Version: 0.0.2
2
+ - 涉及产品: PFS,支持查询PFS实例挂载客户端列表
3
+ - 涉及产品: PFS,支持查询挂载服务挂载客户端列表
4
+
5
+ 2026-05-30 Version: 0.0.1
6
+ - 涉及产品: PFS,支持创建、删除、查询实例及标签更新和列表获取
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: baiducloud-python-sdk-pfs
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: Baidu Cloud pfsApi SDK Library for Python
5
5
  Home-page: https://github.com/baidubce/baiducloud-python-sdk
6
6
  Author: Baidu Cloud SDK
@@ -2,4 +2,4 @@
2
2
  This module defines some common string constants.
3
3
  """
4
4
 
5
- SDK_VERSION = b'0.0.1'
5
+ SDK_VERSION = b'0.0.2'
@@ -13,7 +13,9 @@ from baiducloud_python_sdk_core.http import handler
13
13
  from baiducloud_python_sdk_core.http import http_methods
14
14
  from baiducloud_python_sdk_pfs.models.create_pfs_response import CreatePfsResponse
15
15
  from baiducloud_python_sdk_pfs.models.desc_pfs_response import DescPfsResponse
16
+ from baiducloud_python_sdk_pfs.models.instance_list_clients_response import InstanceListClientsResponse
16
17
  from baiducloud_python_sdk_pfs.models.list_pfs_response import ListPfsResponse
18
+ from baiducloud_python_sdk_pfs.models.mount_target_list_clients_response import MountTargetListClientsResponse
17
19
 
18
20
  _logger = logging.getLogger(__name__)
19
21
 
@@ -23,8 +25,6 @@ class PfsClient(BceBaseClient):
23
25
  pfs base sdk client
24
26
  """
25
27
 
26
- VERSION_V1 = b'/v1'
27
-
28
28
  CONSTANT_V1 = b'v1'
29
29
 
30
30
  CONSTANT_PFS = b'pfs'
@@ -112,6 +112,37 @@ class PfsClient(BceBaseClient):
112
112
  http_methods.GET, path=path, params=params, config=merged_config, model=DescPfsResponse
113
113
  )
114
114
 
115
+ def instance_list_clients(self, request, config=None):
116
+ """
117
+ instance_list_clients
118
+
119
+ :param request: Request entity containing all parameters
120
+ :type request: PfsClientRequest
121
+ :param config: Optional request configuration override
122
+ :type config: baiducloud_python_sdk_core.BceClientConfiguration
123
+
124
+ :return: API response containing InstanceListClientsResponse data
125
+ :rtype: InstanceListClientsResponse
126
+
127
+ :raises BceClientError: Client error (network failure, invalid parameters, etc.)
128
+ :raises BceServerError: Server error (4xx/5xx HTTP status codes)
129
+ """
130
+ path = b'/'
131
+ headers = {}
132
+ headers[b'Version'] = b'v2'
133
+ params = {}
134
+ params['action'] = 'InstanceListClients'
135
+ merged_config = self._create_request_with_host(request, config)
136
+ return self._send_request(
137
+ http_methods.POST,
138
+ path=path,
139
+ body=request.to_json_string(),
140
+ headers=headers,
141
+ params=params,
142
+ config=merged_config,
143
+ model=InstanceListClientsResponse,
144
+ )
145
+
115
146
  def list_pfs(self, request, config=None):
116
147
  """
117
148
  list_pfs
@@ -142,6 +173,37 @@ class PfsClient(BceBaseClient):
142
173
  http_methods.GET, path=path, params=params, config=merged_config, model=ListPfsResponse
143
174
  )
144
175
 
176
+ def mount_target_list_clients(self, request, config=None):
177
+ """
178
+ mount_target_list_clients
179
+
180
+ :param request: Request entity containing all parameters
181
+ :type request: PfsClientRequest
182
+ :param config: Optional request configuration override
183
+ :type config: baiducloud_python_sdk_core.BceClientConfiguration
184
+
185
+ :return: API response containing MountTargetListClientsResponse data
186
+ :rtype: MountTargetListClientsResponse
187
+
188
+ :raises BceClientError: Client error (network failure, invalid parameters, etc.)
189
+ :raises BceServerError: Server error (4xx/5xx HTTP status codes)
190
+ """
191
+ path = b'/'
192
+ headers = {}
193
+ headers[b'Version'] = b'v2'
194
+ params = {}
195
+ params['action'] = 'MountTargetListClients'
196
+ merged_config = self._create_request_with_host(request, config)
197
+ return self._send_request(
198
+ http_methods.POST,
199
+ path=path,
200
+ body=request.to_json_string(),
201
+ headers=headers,
202
+ params=params,
203
+ config=merged_config,
204
+ model=MountTargetListClientsResponse,
205
+ )
206
+
145
207
  def update_pfs_tag(self, request, config=None):
146
208
  """
147
209
  update_pfs_tag
@@ -5,8 +5,13 @@ Models for pfs SDK.
5
5
  from .create_pfs_request import CreatePfsRequest
6
6
  from .create_pfs_response import CreatePfsResponse
7
7
  from .desc_pfs_response import DescPfsResponse
8
+ from .instance_list_clients_request import InstanceListClientsRequest
9
+ from .instance_list_clients_response import InstanceListClientsResponse
8
10
  from .instance_model import InstanceModel
9
11
  from .list_pfs_response import ListPfsResponse
12
+ from .mount_target_list_clients_request import MountTargetListClientsRequest
13
+ from .mount_target_list_clients_response import MountTargetListClientsResponse
14
+ from .node_info import NodeInfo
10
15
  from .subnet_detail import SubnetDetail
11
16
  from .tag import Tag
12
17
  from .update_pfs_tag_request import UpdatePFSTagRequest
@@ -0,0 +1,84 @@
1
+ """
2
+ Request entity for InstanceListClientsRequest information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
+
7
+
8
+ class InstanceListClientsRequest(AbstractModel):
9
+ """
10
+ Request entity for InstanceListClientsRequest operation.
11
+
12
+ This class encapsulates all parameters for the API request.
13
+ """
14
+
15
+ def __init__(self, instance_id, manner, max_keys=None, marker=None):
16
+ """
17
+ Initialize InstanceListClientsRequest request entity.
18
+
19
+ :param instance_id: PFS实例ID
20
+ :type instance_id: str (required)
21
+
22
+ :param max_keys: 返回客户端挂载列表长度,默认为100个,取值范围为【1, 500】,超过范围的规整为1或500
23
+ :type max_keys: int (optional)
24
+
25
+ :param manner: 请求的分段类型,必须指定marker
26
+ :type manner: str (required)
27
+
28
+ :param marker: 按照internalIp的字典序排列,从marker之后的第一个开始返回(不包括marker)
29
+ :type marker: str (optional)
30
+ """
31
+ super().__init__()
32
+ self.instance_id = instance_id
33
+ self.max_keys = max_keys
34
+ self.manner = manner
35
+ self.marker = marker
36
+
37
+ def to_dict(self):
38
+ """
39
+ Convert the request entity to a dictionary representation.
40
+
41
+ Nested model objects are recursively converted to dictionaries.
42
+
43
+ :return: Dictionary representation of the request
44
+ :rtype: dict
45
+ """
46
+ _map = super().to_dict()
47
+ if _map is not None:
48
+ return _map
49
+ result = dict()
50
+ if self.instance_id is not None:
51
+ result['instanceId'] = self.instance_id
52
+ if self.max_keys is not None:
53
+ result['maxKeys'] = self.max_keys
54
+ if self.manner is not None:
55
+ result['manner'] = self.manner
56
+ if self.marker is not None:
57
+ result['marker'] = self.marker
58
+ return result
59
+
60
+ def from_dict(self, m):
61
+ """
62
+ Populate the request entity from a dictionary.
63
+
64
+ Nested dictionaries are recursively converted to model objects.
65
+
66
+ :param m: Dictionary containing request data
67
+ :type m: dict
68
+
69
+ :return: Self reference for method chaining
70
+ :rtype: InstanceListClientsRequest
71
+
72
+ :raises TypeError: If input is not a dictionary or field type mismatch
73
+ :raises ValueError: If nested model conversion fails
74
+ """
75
+ m = m or dict()
76
+ if m.get('instanceId') is not None:
77
+ self.instance_id = m.get('instanceId')
78
+ if m.get('maxKeys') is not None:
79
+ self.max_keys = m.get('maxKeys')
80
+ if m.get('manner') is not None:
81
+ self.manner = m.get('manner')
82
+ if m.get('marker') is not None:
83
+ self.marker = m.get('marker')
84
+ return self
@@ -0,0 +1,104 @@
1
+ """
2
+ InstanceListClientsResponse information
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.bce_response import BceResponse
6
+
7
+ from baiducloud_python_sdk_pfs.models.node_info import NodeInfo
8
+
9
+
10
+ class InstanceListClientsResponse(BceResponse):
11
+ """
12
+ InstanceListClientsResponse
13
+ """
14
+
15
+ def __init__(self, request_id=None, is_truncated=None, marker=None, max_keys=None, next_marker=None, result=None):
16
+ """
17
+ Initialize InstanceListClientsResponse instance.
18
+
19
+ :param request_id: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
20
+ :type request_id: str (optional)
21
+
22
+ :param is_truncated: 是否被截断,false表示本轮请求已包含全部数据
23
+ :type is_truncated: bool (optional)
24
+
25
+ :param marker: 本轮list的marker
26
+ :type marker: str (optional)
27
+
28
+ :param max_keys: 本轮返回的node的数量
29
+ :type max_keys: int (optional)
30
+
31
+ :param next_marker: 下一轮node的marker
32
+ :type next_marker: str (optional)
33
+
34
+ :param result: 返回的node具体列表
35
+ :type result: List[NodeInfo] (optional)
36
+ """
37
+ super().__init__()
38
+ self.request_id = request_id
39
+ self.is_truncated = is_truncated
40
+ self.marker = marker
41
+ self.max_keys = max_keys
42
+ self.next_marker = next_marker
43
+ self.result = result
44
+
45
+ def to_dict(self):
46
+ """
47
+ Convert the model instance to a dictionary representation.
48
+
49
+ Nested model objects are recursively converted to dictionaries.
50
+
51
+ Includes metadata from the parent BceResponse class.
52
+
53
+ :return: Dictionary representation of the model
54
+ :rtype: dict
55
+ """
56
+ _map = super().to_dict()
57
+ if _map is not None:
58
+ return _map
59
+ result = dict()
60
+ if self.metadata is not None:
61
+ result['metadata'] = dict(self.metadata)
62
+ if self.request_id is not None:
63
+ result['requestId'] = self.request_id
64
+ if self.is_truncated is not None:
65
+ result['isTruncated'] = self.is_truncated
66
+ if self.marker is not None:
67
+ result['marker'] = self.marker
68
+ if self.max_keys is not None:
69
+ result['maxKeys'] = self.max_keys
70
+ if self.next_marker is not None:
71
+ result['nextMarker'] = self.next_marker
72
+ if self.result is not None:
73
+ result['result'] = [i.to_dict() for i in self.result]
74
+ return result
75
+
76
+ def from_dict(self, m):
77
+ """
78
+ Populate the model instance from a dictionary.
79
+
80
+ Nested dictionaries are recursively converted to model objects.
81
+
82
+ :param m: Dictionary containing model data
83
+ :type m: dict
84
+
85
+ :return: Self reference for method chaining
86
+ :rtype: InstanceListClientsResponse
87
+
88
+ :raises TypeError: If input is not a dictionary type
89
+ :raises ValueError: If nested model conversion fails
90
+ """
91
+ m = m or dict()
92
+ if m.get('requestId') is not None:
93
+ self.request_id = m.get('requestId')
94
+ if m.get('isTruncated') is not None:
95
+ self.is_truncated = m.get('isTruncated')
96
+ if m.get('marker') is not None:
97
+ self.marker = m.get('marker')
98
+ if m.get('maxKeys') is not None:
99
+ self.max_keys = m.get('maxKeys')
100
+ if m.get('nextMarker') is not None:
101
+ self.next_marker = m.get('nextMarker')
102
+ if m.get('result') is not None:
103
+ self.result = [NodeInfo().from_dict(i) for i in m.get('result')]
104
+ return self
@@ -0,0 +1,84 @@
1
+ """
2
+ Request entity for MountTargetListClientsRequest information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
+
7
+
8
+ class MountTargetListClientsRequest(AbstractModel):
9
+ """
10
+ Request entity for MountTargetListClientsRequest operation.
11
+
12
+ This class encapsulates all parameters for the API request.
13
+ """
14
+
15
+ def __init__(self, mount_target_id, manner, max_keys=None, marker=None):
16
+ """
17
+ Initialize MountTargetListClientsRequest request entity.
18
+
19
+ :param mount_target_id: 挂载服务ID
20
+ :type mount_target_id: str (required)
21
+
22
+ :param max_keys: 返回客户端挂载列表长度,默认为100个,取值范围为【1, 500】,超过范围的规整为1或500
23
+ :type max_keys: int (optional)
24
+
25
+ :param manner: 请求的分段类型,必须指定marker
26
+ :type manner: str (required)
27
+
28
+ :param marker: 按照internalIp的字典序排列,从marker之后的第一个开始返回(不包括marker)
29
+ :type marker: str (optional)
30
+ """
31
+ super().__init__()
32
+ self.mount_target_id = mount_target_id
33
+ self.max_keys = max_keys
34
+ self.manner = manner
35
+ self.marker = marker
36
+
37
+ def to_dict(self):
38
+ """
39
+ Convert the request entity to a dictionary representation.
40
+
41
+ Nested model objects are recursively converted to dictionaries.
42
+
43
+ :return: Dictionary representation of the request
44
+ :rtype: dict
45
+ """
46
+ _map = super().to_dict()
47
+ if _map is not None:
48
+ return _map
49
+ result = dict()
50
+ if self.mount_target_id is not None:
51
+ result['mountTargetId'] = self.mount_target_id
52
+ if self.max_keys is not None:
53
+ result['maxKeys'] = self.max_keys
54
+ if self.manner is not None:
55
+ result['manner'] = self.manner
56
+ if self.marker is not None:
57
+ result['marker'] = self.marker
58
+ return result
59
+
60
+ def from_dict(self, m):
61
+ """
62
+ Populate the request entity from a dictionary.
63
+
64
+ Nested dictionaries are recursively converted to model objects.
65
+
66
+ :param m: Dictionary containing request data
67
+ :type m: dict
68
+
69
+ :return: Self reference for method chaining
70
+ :rtype: MountTargetListClientsRequest
71
+
72
+ :raises TypeError: If input is not a dictionary or field type mismatch
73
+ :raises ValueError: If nested model conversion fails
74
+ """
75
+ m = m or dict()
76
+ if m.get('mountTargetId') is not None:
77
+ self.mount_target_id = m.get('mountTargetId')
78
+ if m.get('maxKeys') is not None:
79
+ self.max_keys = m.get('maxKeys')
80
+ if m.get('manner') is not None:
81
+ self.manner = m.get('manner')
82
+ if m.get('marker') is not None:
83
+ self.marker = m.get('marker')
84
+ return self
@@ -0,0 +1,102 @@
1
+ """
2
+ Request entity for MountTargetListClientsResponse information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.bce_response import BceResponse
6
+ from baiducloud_python_sdk_pfs.models.node_info import NodeInfo
7
+
8
+
9
+ class MountTargetListClientsResponse(BceResponse):
10
+ """
11
+ MountTargetListClientsResponse
12
+ """
13
+
14
+ def __init__(self, request_id=None, is_truncated=None, marker=None, max_keys=None, next_marker=None, result=None):
15
+ """
16
+ Initialize MountTargetListClientsResponse response.
17
+
18
+ :param request_id: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
19
+ :type request_id: str (optional)
20
+
21
+ :param is_truncated: 是否被截断,false表示本轮请求已包含全部数据
22
+ :type is_truncated: bool (optional)
23
+
24
+ :param marker: 本轮list的marker
25
+ :type marker: str (optional)
26
+
27
+ :param max_keys: 本轮返回的node的数量
28
+ :type max_keys: int (optional)
29
+
30
+ :param next_marker: 下一轮node的marker
31
+ :type next_marker: str (optional)
32
+
33
+ :param result: 返回的node具体列表
34
+ :type result: List[NodeInfo] (optional)
35
+ """
36
+ super().__init__()
37
+ self.request_id = request_id
38
+ self.is_truncated = is_truncated
39
+ self.marker = marker
40
+ self.max_keys = max_keys
41
+ self.next_marker = next_marker
42
+ self.result = result
43
+
44
+ def to_dict(self):
45
+ """
46
+ Convert the response instance to a dictionary representation.
47
+
48
+ Includes metadata from the parent BceResponse class.
49
+ Nested model objects are recursively converted to dictionaries.
50
+
51
+ :return: Dictionary representation of the response
52
+ :rtype: dict
53
+ """
54
+ _map = super().to_dict()
55
+ if _map is not None:
56
+ return _map
57
+ result = dict()
58
+ if self.metadata is not None:
59
+ result['metadata'] = dict(self.metadata)
60
+ if self.request_id is not None:
61
+ result['requestId'] = self.request_id
62
+ if self.is_truncated is not None:
63
+ result['isTruncated'] = self.is_truncated
64
+ if self.marker is not None:
65
+ result['marker'] = self.marker
66
+ if self.max_keys is not None:
67
+ result['maxKeys'] = self.max_keys
68
+ if self.next_marker is not None:
69
+ result['nextMarker'] = self.next_marker
70
+ if self.result is not None:
71
+ result['result'] = [i.to_dict() for i in self.result]
72
+ return result
73
+
74
+ def from_dict(self, m):
75
+ """
76
+ Populate the response instance from a dictionary.
77
+
78
+ Nested dictionaries are recursively converted to model objects.
79
+
80
+ :param m: Dictionary containing response data
81
+ :type m: dict
82
+
83
+ :return: Self reference for method chaining
84
+ :rtype: MountTargetListClientsResponse
85
+
86
+ :raises TypeError: If input is not a dictionary or field type mismatch
87
+ :raises ValueError: If nested model conversion fails
88
+ """
89
+ m = m or dict()
90
+ if m.get('requestId') is not None:
91
+ self.request_id = m.get('requestId')
92
+ if m.get('isTruncated') is not None:
93
+ self.is_truncated = m.get('isTruncated')
94
+ if m.get('marker') is not None:
95
+ self.marker = m.get('marker')
96
+ if m.get('maxKeys') is not None:
97
+ self.max_keys = m.get('maxKeys')
98
+ if m.get('nextMarker') is not None:
99
+ self.next_marker = m.get('nextMarker')
100
+ if m.get('result') is not None:
101
+ self.result = [NodeInfo().from_dict(i) for i in m.get('result')]
102
+ return self
@@ -0,0 +1,178 @@
1
+ """
2
+ NodeInfo information
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
+
7
+
8
+ class NodeInfo(AbstractModel):
9
+ """
10
+ NodeInfo
11
+ """
12
+
13
+ def __init__(
14
+ self,
15
+ node_id=None,
16
+ node_name=None,
17
+ internal_ip=None,
18
+ zone_name=None,
19
+ vpc_id=None,
20
+ vpc_name=None,
21
+ instance_id_list=None,
22
+ node_status=None,
23
+ node_type=None,
24
+ mount_status=None,
25
+ passwd=None,
26
+ mt_name=None,
27
+ mt_id=None,
28
+ mt_path=None,
29
+ ):
30
+ """
31
+ Initialize NodeInfo instance.
32
+
33
+ :param node_id: 客户端节点短ID(BBC ID/AIHC ID/HPAS ID)
34
+ :type node_id: str (optional)
35
+
36
+ :param node_name: 客户端节点名称
37
+ :type node_name: str (optional)
38
+
39
+ :param internal_ip: 客户端节点内网IP(AIHC不展示)
40
+ :type internal_ip: str (optional)
41
+
42
+ :param zone_name: 可用区(cn-gz-d)
43
+ :type zone_name: str (optional)
44
+
45
+ :param vpc_id: vpc id
46
+ :type vpc_id: str (optional)
47
+
48
+ :param vpc_name: vpc name
49
+ :type vpc_name: str (optional)
50
+
51
+ :param instance_id_list: 节点挂载后端集群list
52
+ :type instance_id_list: List[str] (optional)
53
+
54
+ :param node_status: node_status attribute
55
+ :type node_status: str (optional)
56
+
57
+ :param node_type: BBC/BCC/AIHC/HPAS
58
+ :type node_type: str (optional)
59
+
60
+ :param mount_status: mount_status attribute
61
+ :type mount_status: str (optional)
62
+
63
+ :param passwd: 节点密码
64
+ :type passwd: str (optional)
65
+
66
+ :param mt_name: 挂载服务名称
67
+ :type mt_name: str (optional)
68
+
69
+ :param mt_id: 挂载服务id
70
+ :type mt_id: str (optional)
71
+
72
+ :param mt_path: 节点的挂载路径
73
+ :type mt_path: str (optional)
74
+ """
75
+ super().__init__()
76
+ self.node_id = node_id
77
+ self.node_name = node_name
78
+ self.internal_ip = internal_ip
79
+ self.zone_name = zone_name
80
+ self.vpc_id = vpc_id
81
+ self.vpc_name = vpc_name
82
+ self.instance_id_list = instance_id_list
83
+ self.node_status = node_status
84
+ self.node_type = node_type
85
+ self.mount_status = mount_status
86
+ self.passwd = passwd
87
+ self.mt_name = mt_name
88
+ self.mt_id = mt_id
89
+ self.mt_path = mt_path
90
+
91
+ def to_dict(self):
92
+ """
93
+ Convert the model instance to a dictionary representation.
94
+
95
+ Nested model objects are recursively converted to dictionaries.
96
+
97
+ :return: Dictionary representation of the model
98
+ :rtype: dict
99
+ """
100
+ _map = super().to_dict()
101
+ if _map is not None:
102
+ return _map
103
+ result = dict()
104
+ if self.node_id is not None:
105
+ result['nodeId'] = self.node_id
106
+ if self.node_name is not None:
107
+ result['nodeName'] = self.node_name
108
+ if self.internal_ip is not None:
109
+ result['internalIp'] = self.internal_ip
110
+ if self.zone_name is not None:
111
+ result['zoneName'] = self.zone_name
112
+ if self.vpc_id is not None:
113
+ result['vpcId'] = self.vpc_id
114
+ if self.vpc_name is not None:
115
+ result['vpcName'] = self.vpc_name
116
+ if self.instance_id_list is not None:
117
+ result['instanceIdList'] = self.instance_id_list
118
+ if self.node_status is not None:
119
+ result['nodeStatus'] = self.node_status
120
+ if self.node_type is not None:
121
+ result['nodeType'] = self.node_type
122
+ if self.mount_status is not None:
123
+ result['mountStatus'] = self.mount_status
124
+ if self.passwd is not None:
125
+ result['passwd'] = self.passwd
126
+ if self.mt_name is not None:
127
+ result['mtName'] = self.mt_name
128
+ if self.mt_id is not None:
129
+ result['mtId'] = self.mt_id
130
+ if self.mt_path is not None:
131
+ result['mtPath'] = self.mt_path
132
+ return result
133
+
134
+ def from_dict(self, m):
135
+ """
136
+ Populate the model instance from a dictionary.
137
+
138
+ Nested dictionaries are recursively converted to model objects.
139
+
140
+ :param m: Dictionary containing model data
141
+ :type m: dict
142
+
143
+ :return: Self reference for method chaining
144
+ :rtype: NodeInfo
145
+
146
+ :raises TypeError: If input is not a dictionary type
147
+ :raises ValueError: If nested model conversion fails
148
+ """
149
+ m = m or dict()
150
+ if m.get('nodeId') is not None:
151
+ self.node_id = m.get('nodeId')
152
+ if m.get('nodeName') is not None:
153
+ self.node_name = m.get('nodeName')
154
+ if m.get('internalIp') is not None:
155
+ self.internal_ip = m.get('internalIp')
156
+ if m.get('zoneName') is not None:
157
+ self.zone_name = m.get('zoneName')
158
+ if m.get('vpcId') is not None:
159
+ self.vpc_id = m.get('vpcId')
160
+ if m.get('vpcName') is not None:
161
+ self.vpc_name = m.get('vpcName')
162
+ if m.get('instanceIdList') is not None:
163
+ self.instance_id_list = m.get('instanceIdList')
164
+ if m.get('nodeStatus') is not None:
165
+ self.node_status = m.get('nodeStatus')
166
+ if m.get('nodeType') is not None:
167
+ self.node_type = m.get('nodeType')
168
+ if m.get('mountStatus') is not None:
169
+ self.mount_status = m.get('mountStatus')
170
+ if m.get('passwd') is not None:
171
+ self.passwd = m.get('passwd')
172
+ if m.get('mtName') is not None:
173
+ self.mt_name = m.get('mtName')
174
+ if m.get('mtId') is not None:
175
+ self.mt_id = m.get('mtId')
176
+ if m.get('mtPath') is not None:
177
+ self.mt_path = m.get('mtPath')
178
+ return self
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: baiducloud-python-sdk-pfs
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: Baidu Cloud pfsApi SDK Library for Python
5
5
  Home-page: https://github.com/baidubce/baiducloud-python-sdk
6
6
  Author: Baidu Cloud SDK
@@ -19,9 +19,14 @@ baiducloud_python_sdk_pfs/models/create_pfs_response.py
19
19
  baiducloud_python_sdk_pfs/models/delete_pfs_request.py
20
20
  baiducloud_python_sdk_pfs/models/desc_pfs_request.py
21
21
  baiducloud_python_sdk_pfs/models/desc_pfs_response.py
22
+ baiducloud_python_sdk_pfs/models/instance_list_clients_request.py
23
+ baiducloud_python_sdk_pfs/models/instance_list_clients_response.py
22
24
  baiducloud_python_sdk_pfs/models/instance_model.py
23
25
  baiducloud_python_sdk_pfs/models/list_pfs_request.py
24
26
  baiducloud_python_sdk_pfs/models/list_pfs_response.py
27
+ baiducloud_python_sdk_pfs/models/mount_target_list_clients_request.py
28
+ baiducloud_python_sdk_pfs/models/mount_target_list_clients_response.py
29
+ baiducloud_python_sdk_pfs/models/node_info.py
25
30
  baiducloud_python_sdk_pfs/models/subnet_detail.py
26
31
  baiducloud_python_sdk_pfs/models/tag.py
27
32
  baiducloud_python_sdk_pfs/models/update_pfs_tag_request.py
@@ -1,2 +0,0 @@
1
- 2026-05-30 Version: 0.0.1
2
- - 涉及产品: PFS,支持创建、删除、查询实例及标签更新和列表获取