baiducloud-python-sdk-aihc 0.0.1__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_aihc/__init__.py +5 -0
- baiducloud_python_sdk_aihc/api/__init__.py +0 -0
- baiducloud_python_sdk_aihc/api/aihc_client.py +643 -0
- baiducloud_python_sdk_aihc/models/__init__.py +39 -0
- baiducloud_python_sdk_aihc/models/create_a_dataset_v2_request.py +147 -0
- baiducloud_python_sdk_aihc/models/create_a_dataset_v2_response.py +61 -0
- baiducloud_python_sdk_aihc/models/create_a_model_v2_request.py +101 -0
- baiducloud_python_sdk_aihc/models/create_a_model_v2_response.py +61 -0
- baiducloud_python_sdk_aihc/models/create_dataset_version_v2_request.py +82 -0
- baiducloud_python_sdk_aihc/models/create_dataset_version_v2_response.py +61 -0
- baiducloud_python_sdk_aihc/models/dataset.py +200 -0
- baiducloud_python_sdk_aihc/models/dataset_version_entry.py +98 -0
- baiducloud_python_sdk_aihc/models/delete_dataset_v2_request.py +58 -0
- baiducloud_python_sdk_aihc/models/delete_dataset_version_v2_request.py +64 -0
- baiducloud_python_sdk_aihc/models/delete_model_v2_request.py +58 -0
- baiducloud_python_sdk_aihc/models/delete_model_version_v2_request.py +64 -0
- baiducloud_python_sdk_aihc/models/get_a_list_of_model_versions_v2_request.py +70 -0
- baiducloud_python_sdk_aihc/models/get_a_list_of_model_versions_v2_response.py +70 -0
- baiducloud_python_sdk_aihc/models/get_dataset_details_v2_request.py +58 -0
- baiducloud_python_sdk_aihc/models/get_dataset_details_v2_response.py +211 -0
- baiducloud_python_sdk_aihc/models/get_dataset_version_details_v2_request.py +64 -0
- baiducloud_python_sdk_aihc/models/get_dataset_version_details_v2_response.py +193 -0
- baiducloud_python_sdk_aihc/models/get_model_details_v2_request.py +58 -0
- baiducloud_python_sdk_aihc/models/get_model_details_v2_response.py +155 -0
- baiducloud_python_sdk_aihc/models/get_model_list_v2_request.py +64 -0
- baiducloud_python_sdk_aihc/models/get_model_list_v2_response.py +70 -0
- baiducloud_python_sdk_aihc/models/get_model_version_details_v2_request.py +64 -0
- baiducloud_python_sdk_aihc/models/get_model_version_details_v2_response.py +155 -0
- baiducloud_python_sdk_aihc/models/model.py +160 -0
- baiducloud_python_sdk_aihc/models/model_version_entry.py +115 -0
- baiducloud_python_sdk_aihc/models/modify_dataset_v2_request.py +108 -0
- baiducloud_python_sdk_aihc/models/modify_the_model_v2_request.py +74 -0
- baiducloud_python_sdk_aihc/models/new_model_version_v2_request.py +98 -0
- baiducloud_python_sdk_aihc/models/new_model_version_v2_response.py +61 -0
- baiducloud_python_sdk_aihc/models/permission_entry.py +74 -0
- baiducloud_python_sdk_aihc/models/retrieve_the_dataset_list_v2_request.py +84 -0
- baiducloud_python_sdk_aihc/models/retrieve_the_dataset_list_v2_response.py +70 -0
- baiducloud_python_sdk_aihc/models/retrieve_the_dataset_version_list_v2_request.py +70 -0
- baiducloud_python_sdk_aihc/models/retrieve_the_dataset_version_list_v2_response.py +70 -0
- baiducloud_python_sdk_aihc-0.0.1.dist-info/LICENSE +177 -0
- baiducloud_python_sdk_aihc-0.0.1.dist-info/METADATA +76 -0
- baiducloud_python_sdk_aihc-0.0.1.dist-info/RECORD +44 -0
- baiducloud_python_sdk_aihc-0.0.1.dist-info/WHEEL +5 -0
- baiducloud_python_sdk_aihc-0.0.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for GetDatasetDetailsV2Request information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class GetDatasetDetailsV2Request(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for GetDatasetDetailsV2Request operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, dataset_id):
|
|
16
|
+
"""
|
|
17
|
+
Initialize GetDatasetDetailsV2Request request entity.
|
|
18
|
+
|
|
19
|
+
:param dataset_id: dataset_id parameter
|
|
20
|
+
:type dataset_id: str (required)
|
|
21
|
+
"""
|
|
22
|
+
super().__init__()
|
|
23
|
+
self.dataset_id = dataset_id
|
|
24
|
+
|
|
25
|
+
def to_dict(self):
|
|
26
|
+
"""
|
|
27
|
+
Convert the request entity to a dictionary representation.
|
|
28
|
+
|
|
29
|
+
Nested model objects are recursively converted to dictionaries.
|
|
30
|
+
|
|
31
|
+
:return: Dictionary representation of the request
|
|
32
|
+
:rtype: dict
|
|
33
|
+
"""
|
|
34
|
+
_map = super().to_dict()
|
|
35
|
+
if _map is not None:
|
|
36
|
+
return _map
|
|
37
|
+
result = dict()
|
|
38
|
+
return result
|
|
39
|
+
|
|
40
|
+
def from_dict(self, m):
|
|
41
|
+
"""
|
|
42
|
+
Populate the request entity from a dictionary.
|
|
43
|
+
|
|
44
|
+
Nested dictionaries are recursively converted to model objects.
|
|
45
|
+
|
|
46
|
+
:param m: Dictionary containing request data
|
|
47
|
+
:type m: dict
|
|
48
|
+
|
|
49
|
+
:return: Self reference for method chaining
|
|
50
|
+
:rtype: GetDatasetDetailsV2Request
|
|
51
|
+
|
|
52
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
53
|
+
:raises ValueError: If nested model conversion fails
|
|
54
|
+
"""
|
|
55
|
+
m = m or dict()
|
|
56
|
+
if m.get('datasetId') is not None:
|
|
57
|
+
self.dataset_id = m.get('datasetId')
|
|
58
|
+
return self
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for GetDatasetDetailsV2Response information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
from baiducloud_python_sdk_aihc.models.permission_entry import PermissionEntry
|
|
7
|
+
from baiducloud_python_sdk_aihc.models.permission_entry import PermissionEntry
|
|
8
|
+
from baiducloud_python_sdk_aihc.models.dataset_version_entry import DatasetVersionEntry
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class GetDatasetDetailsV2Response(BceResponse):
|
|
12
|
+
"""
|
|
13
|
+
GetDatasetDetailsV2Response
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
def __init__(
|
|
17
|
+
self,
|
|
18
|
+
id=None,
|
|
19
|
+
name=None,
|
|
20
|
+
storage_type=None,
|
|
21
|
+
storage_instance=None,
|
|
22
|
+
import_format=None,
|
|
23
|
+
description=None,
|
|
24
|
+
owner=None,
|
|
25
|
+
owner_name=None,
|
|
26
|
+
visibility_scope=None,
|
|
27
|
+
visibility_user=None,
|
|
28
|
+
visibility_group=None,
|
|
29
|
+
permission=None,
|
|
30
|
+
latest_version_id=None,
|
|
31
|
+
latest_version=None,
|
|
32
|
+
latest_version_entry=None,
|
|
33
|
+
created_at=None,
|
|
34
|
+
updated_at=None,
|
|
35
|
+
):
|
|
36
|
+
"""
|
|
37
|
+
Initialize GetDatasetDetailsV2Response response.
|
|
38
|
+
|
|
39
|
+
:param id: 数据集ID
|
|
40
|
+
:type id: str (optional)
|
|
41
|
+
|
|
42
|
+
:param name: 数据集名称
|
|
43
|
+
:type name: str (optional)
|
|
44
|
+
|
|
45
|
+
:param storage_type: 存储类型PFS:并行存储PFSBOS:对象存储BOS
|
|
46
|
+
:type storage_type: str (optional)
|
|
47
|
+
|
|
48
|
+
:param storage_instance: 存储实例
|
|
49
|
+
:type storage_instance: str (optional)
|
|
50
|
+
|
|
51
|
+
:param import_format: 导入格式FILE:文件FOLDER:文件夹
|
|
52
|
+
:type import_format: str (optional)
|
|
53
|
+
|
|
54
|
+
:param description: 描述
|
|
55
|
+
:type description: str (optional)
|
|
56
|
+
|
|
57
|
+
:param owner: 所有者
|
|
58
|
+
:type owner: str (optional)
|
|
59
|
+
|
|
60
|
+
:param owner_name: 所有者名称
|
|
61
|
+
:type owner_name: str (optional)
|
|
62
|
+
|
|
63
|
+
:param visibility_scope: 可见范围ALL_PEOPLE:所有人可见ONLY_OWNER:仅所有者可读写USER_GROUP:指定范围可用
|
|
64
|
+
:type visibility_scope: str (optional)
|
|
65
|
+
|
|
66
|
+
:param visibility_user: visibility_user field
|
|
67
|
+
:type visibility_user: List[PermissionEntry] (optional)
|
|
68
|
+
|
|
69
|
+
:param visibility_group: visibility_group field
|
|
70
|
+
:type visibility_group: List[PermissionEntry] (optional)
|
|
71
|
+
|
|
72
|
+
:param permission: 当前用户拥有的读写权限:r:只读rw:读写
|
|
73
|
+
:type permission: str (optional)
|
|
74
|
+
|
|
75
|
+
:param latest_version_id: 最新版本ID
|
|
76
|
+
:type latest_version_id: str (optional)
|
|
77
|
+
|
|
78
|
+
:param latest_version: 最新版本号
|
|
79
|
+
:type latest_version: str (optional)
|
|
80
|
+
|
|
81
|
+
:param latest_version_entry: latest_version_entry field
|
|
82
|
+
:type latest_version_entry: DatasetVersionEntry (optional)
|
|
83
|
+
|
|
84
|
+
:param created_at: 创建时间
|
|
85
|
+
:type created_at: str (optional)
|
|
86
|
+
|
|
87
|
+
:param updated_at: 更新时间
|
|
88
|
+
:type updated_at: str (optional)
|
|
89
|
+
"""
|
|
90
|
+
super().__init__()
|
|
91
|
+
self.id = id
|
|
92
|
+
self.name = name
|
|
93
|
+
self.storage_type = storage_type
|
|
94
|
+
self.storage_instance = storage_instance
|
|
95
|
+
self.import_format = import_format
|
|
96
|
+
self.description = description
|
|
97
|
+
self.owner = owner
|
|
98
|
+
self.owner_name = owner_name
|
|
99
|
+
self.visibility_scope = visibility_scope
|
|
100
|
+
self.visibility_user = visibility_user
|
|
101
|
+
self.visibility_group = visibility_group
|
|
102
|
+
self.permission = permission
|
|
103
|
+
self.latest_version_id = latest_version_id
|
|
104
|
+
self.latest_version = latest_version
|
|
105
|
+
self.latest_version_entry = latest_version_entry
|
|
106
|
+
self.created_at = created_at
|
|
107
|
+
self.updated_at = updated_at
|
|
108
|
+
|
|
109
|
+
def to_dict(self):
|
|
110
|
+
"""
|
|
111
|
+
Convert the response instance to a dictionary representation.
|
|
112
|
+
|
|
113
|
+
Includes metadata from the parent BceResponse class.
|
|
114
|
+
Nested model objects are recursively converted to dictionaries.
|
|
115
|
+
|
|
116
|
+
:return: Dictionary representation of the response
|
|
117
|
+
:rtype: dict
|
|
118
|
+
"""
|
|
119
|
+
_map = super().to_dict()
|
|
120
|
+
if _map is not None:
|
|
121
|
+
return _map
|
|
122
|
+
result = dict()
|
|
123
|
+
if self.metadata is not None:
|
|
124
|
+
result['metadata'] = dict(self.metadata)
|
|
125
|
+
if self.id is not None:
|
|
126
|
+
result['id'] = self.id
|
|
127
|
+
if self.name is not None:
|
|
128
|
+
result['name'] = self.name
|
|
129
|
+
if self.storage_type is not None:
|
|
130
|
+
result['storageType'] = self.storage_type
|
|
131
|
+
if self.storage_instance is not None:
|
|
132
|
+
result['storageInstance'] = self.storage_instance
|
|
133
|
+
if self.import_format is not None:
|
|
134
|
+
result['importFormat'] = self.import_format
|
|
135
|
+
if self.description is not None:
|
|
136
|
+
result['description'] = self.description
|
|
137
|
+
if self.owner is not None:
|
|
138
|
+
result['owner'] = self.owner
|
|
139
|
+
if self.owner_name is not None:
|
|
140
|
+
result['ownerName'] = self.owner_name
|
|
141
|
+
if self.visibility_scope is not None:
|
|
142
|
+
result['visibilityScope'] = self.visibility_scope
|
|
143
|
+
if self.visibility_user is not None:
|
|
144
|
+
result['visibilityUser'] = [i.to_dict() for i in self.visibility_user]
|
|
145
|
+
if self.visibility_group is not None:
|
|
146
|
+
result['visibilityGroup'] = [i.to_dict() for i in self.visibility_group]
|
|
147
|
+
if self.permission is not None:
|
|
148
|
+
result['permission'] = self.permission
|
|
149
|
+
if self.latest_version_id is not None:
|
|
150
|
+
result['latestVersionId'] = self.latest_version_id
|
|
151
|
+
if self.latest_version is not None:
|
|
152
|
+
result['latestVersion'] = self.latest_version
|
|
153
|
+
if self.latest_version_entry is not None:
|
|
154
|
+
result['latestVersionEntry'] = self.latest_version_entry.to_dict()
|
|
155
|
+
if self.created_at is not None:
|
|
156
|
+
result['createdAt'] = self.created_at
|
|
157
|
+
if self.updated_at is not None:
|
|
158
|
+
result['updatedAt'] = self.updated_at
|
|
159
|
+
return result
|
|
160
|
+
|
|
161
|
+
def from_dict(self, m):
|
|
162
|
+
"""
|
|
163
|
+
Populate the response instance from a dictionary.
|
|
164
|
+
|
|
165
|
+
Nested dictionaries are recursively converted to model objects.
|
|
166
|
+
|
|
167
|
+
:param m: Dictionary containing response data
|
|
168
|
+
:type m: dict
|
|
169
|
+
|
|
170
|
+
:return: Self reference for method chaining
|
|
171
|
+
:rtype: GetDatasetDetailsV2Response
|
|
172
|
+
|
|
173
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
174
|
+
:raises ValueError: If nested model conversion fails
|
|
175
|
+
"""
|
|
176
|
+
m = m or dict()
|
|
177
|
+
if m.get('id') is not None:
|
|
178
|
+
self.id = m.get('id')
|
|
179
|
+
if m.get('name') is not None:
|
|
180
|
+
self.name = m.get('name')
|
|
181
|
+
if m.get('storageType') is not None:
|
|
182
|
+
self.storage_type = m.get('storageType')
|
|
183
|
+
if m.get('storageInstance') is not None:
|
|
184
|
+
self.storage_instance = m.get('storageInstance')
|
|
185
|
+
if m.get('importFormat') is not None:
|
|
186
|
+
self.import_format = m.get('importFormat')
|
|
187
|
+
if m.get('description') is not None:
|
|
188
|
+
self.description = m.get('description')
|
|
189
|
+
if m.get('owner') is not None:
|
|
190
|
+
self.owner = m.get('owner')
|
|
191
|
+
if m.get('ownerName') is not None:
|
|
192
|
+
self.owner_name = m.get('ownerName')
|
|
193
|
+
if m.get('visibilityScope') is not None:
|
|
194
|
+
self.visibility_scope = m.get('visibilityScope')
|
|
195
|
+
if m.get('visibilityUser') is not None:
|
|
196
|
+
self.visibility_user = [PermissionEntry().from_dict(i) for i in m.get('visibilityUser')]
|
|
197
|
+
if m.get('visibilityGroup') is not None:
|
|
198
|
+
self.visibility_group = [PermissionEntry().from_dict(i) for i in m.get('visibilityGroup')]
|
|
199
|
+
if m.get('permission') is not None:
|
|
200
|
+
self.permission = m.get('permission')
|
|
201
|
+
if m.get('latestVersionId') is not None:
|
|
202
|
+
self.latest_version_id = m.get('latestVersionId')
|
|
203
|
+
if m.get('latestVersion') is not None:
|
|
204
|
+
self.latest_version = m.get('latestVersion')
|
|
205
|
+
if m.get('latestVersionEntry') is not None:
|
|
206
|
+
self.latest_version_entry = DatasetVersionEntry().from_dict(m.get('latestVersionEntry'))
|
|
207
|
+
if m.get('createdAt') is not None:
|
|
208
|
+
self.created_at = m.get('createdAt')
|
|
209
|
+
if m.get('updatedAt') is not None:
|
|
210
|
+
self.updated_at = m.get('updatedAt')
|
|
211
|
+
return self
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for GetDatasetVersionDetailsV2Request information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class GetDatasetVersionDetailsV2Request(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for GetDatasetVersionDetailsV2Request operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, dataset_id, version_id):
|
|
16
|
+
"""
|
|
17
|
+
Initialize GetDatasetVersionDetailsV2Request request entity.
|
|
18
|
+
|
|
19
|
+
:param dataset_id: dataset_id parameter
|
|
20
|
+
:type dataset_id: str (required)
|
|
21
|
+
|
|
22
|
+
:param version_id: version_id parameter
|
|
23
|
+
:type version_id: str (required)
|
|
24
|
+
"""
|
|
25
|
+
super().__init__()
|
|
26
|
+
self.dataset_id = dataset_id
|
|
27
|
+
self.version_id = version_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
|
+
return result
|
|
43
|
+
|
|
44
|
+
def from_dict(self, m):
|
|
45
|
+
"""
|
|
46
|
+
Populate the request entity from a dictionary.
|
|
47
|
+
|
|
48
|
+
Nested dictionaries are recursively converted to model objects.
|
|
49
|
+
|
|
50
|
+
:param m: Dictionary containing request data
|
|
51
|
+
:type m: dict
|
|
52
|
+
|
|
53
|
+
:return: Self reference for method chaining
|
|
54
|
+
:rtype: GetDatasetVersionDetailsV2Request
|
|
55
|
+
|
|
56
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
57
|
+
:raises ValueError: If nested model conversion fails
|
|
58
|
+
"""
|
|
59
|
+
m = m or dict()
|
|
60
|
+
if m.get('datasetId') is not None:
|
|
61
|
+
self.dataset_id = m.get('datasetId')
|
|
62
|
+
if m.get('versionId') is not None:
|
|
63
|
+
self.version_id = m.get('versionId')
|
|
64
|
+
return self
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for GetDatasetVersionDetailsV2Response information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
from baiducloud_python_sdk_aihc.models.permission_entry import PermissionEntry
|
|
7
|
+
from baiducloud_python_sdk_aihc.models.permission_entry import PermissionEntry
|
|
8
|
+
from baiducloud_python_sdk_aihc.models.dataset_version_entry import DatasetVersionEntry
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class GetDatasetVersionDetailsV2Response(BceResponse):
|
|
12
|
+
"""
|
|
13
|
+
GetDatasetVersionDetailsV2Response
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
def __init__(
|
|
17
|
+
self,
|
|
18
|
+
id=None,
|
|
19
|
+
name=None,
|
|
20
|
+
storage_type=None,
|
|
21
|
+
storage_instance=None,
|
|
22
|
+
import_format=None,
|
|
23
|
+
description=None,
|
|
24
|
+
owner=None,
|
|
25
|
+
owner_name=None,
|
|
26
|
+
visibility_scope=None,
|
|
27
|
+
visibility_user=None,
|
|
28
|
+
visibility_group=None,
|
|
29
|
+
permission=None,
|
|
30
|
+
version_entry=None,
|
|
31
|
+
created_at=None,
|
|
32
|
+
updated_at=None,
|
|
33
|
+
):
|
|
34
|
+
"""
|
|
35
|
+
Initialize GetDatasetVersionDetailsV2Response response.
|
|
36
|
+
|
|
37
|
+
:param id: 数据集ID
|
|
38
|
+
:type id: str (optional)
|
|
39
|
+
|
|
40
|
+
:param name: 数据集名称
|
|
41
|
+
:type name: str (optional)
|
|
42
|
+
|
|
43
|
+
:param storage_type: 存储类型PFS:并行存储PFSBOS:对象存储BOS
|
|
44
|
+
:type storage_type: str (optional)
|
|
45
|
+
|
|
46
|
+
:param storage_instance: 存储实例
|
|
47
|
+
:type storage_instance: str (optional)
|
|
48
|
+
|
|
49
|
+
:param import_format: 导入格式FILE:文件FOLDER:文件夹
|
|
50
|
+
:type import_format: str (optional)
|
|
51
|
+
|
|
52
|
+
:param description: 描述
|
|
53
|
+
:type description: str (optional)
|
|
54
|
+
|
|
55
|
+
:param owner: 所有者
|
|
56
|
+
:type owner: str (optional)
|
|
57
|
+
|
|
58
|
+
:param owner_name: 所有者名称
|
|
59
|
+
:type owner_name: str (optional)
|
|
60
|
+
|
|
61
|
+
:param visibility_scope: 可见范围ALL_PEOPLE:所有人可见ONLY_OWNER:仅所有者可读写USER_GROUP:指定范围可用
|
|
62
|
+
:type visibility_scope: str (optional)
|
|
63
|
+
|
|
64
|
+
:param visibility_user: visibility_user field
|
|
65
|
+
:type visibility_user: List[PermissionEntry] (optional)
|
|
66
|
+
|
|
67
|
+
:param visibility_group: visibility_group field
|
|
68
|
+
:type visibility_group: List[PermissionEntry] (optional)
|
|
69
|
+
|
|
70
|
+
:param permission: 当前用户拥有的读写权限:r:只读rw:读写
|
|
71
|
+
:type permission: str (optional)
|
|
72
|
+
|
|
73
|
+
:param version_entry: version_entry field
|
|
74
|
+
:type version_entry: DatasetVersionEntry (optional)
|
|
75
|
+
|
|
76
|
+
:param created_at: 创建时间
|
|
77
|
+
:type created_at: str (optional)
|
|
78
|
+
|
|
79
|
+
:param updated_at: 更新时间
|
|
80
|
+
:type updated_at: str (optional)
|
|
81
|
+
"""
|
|
82
|
+
super().__init__()
|
|
83
|
+
self.id = id
|
|
84
|
+
self.name = name
|
|
85
|
+
self.storage_type = storage_type
|
|
86
|
+
self.storage_instance = storage_instance
|
|
87
|
+
self.import_format = import_format
|
|
88
|
+
self.description = description
|
|
89
|
+
self.owner = owner
|
|
90
|
+
self.owner_name = owner_name
|
|
91
|
+
self.visibility_scope = visibility_scope
|
|
92
|
+
self.visibility_user = visibility_user
|
|
93
|
+
self.visibility_group = visibility_group
|
|
94
|
+
self.permission = permission
|
|
95
|
+
self.version_entry = version_entry
|
|
96
|
+
self.created_at = created_at
|
|
97
|
+
self.updated_at = updated_at
|
|
98
|
+
|
|
99
|
+
def to_dict(self):
|
|
100
|
+
"""
|
|
101
|
+
Convert the response instance to a dictionary representation.
|
|
102
|
+
|
|
103
|
+
Includes metadata from the parent BceResponse class.
|
|
104
|
+
Nested model objects are recursively converted to dictionaries.
|
|
105
|
+
|
|
106
|
+
:return: Dictionary representation of the response
|
|
107
|
+
:rtype: dict
|
|
108
|
+
"""
|
|
109
|
+
_map = super().to_dict()
|
|
110
|
+
if _map is not None:
|
|
111
|
+
return _map
|
|
112
|
+
result = dict()
|
|
113
|
+
if self.metadata is not None:
|
|
114
|
+
result['metadata'] = dict(self.metadata)
|
|
115
|
+
if self.id is not None:
|
|
116
|
+
result['id'] = self.id
|
|
117
|
+
if self.name is not None:
|
|
118
|
+
result['name'] = self.name
|
|
119
|
+
if self.storage_type is not None:
|
|
120
|
+
result['storageType'] = self.storage_type
|
|
121
|
+
if self.storage_instance is not None:
|
|
122
|
+
result['storageInstance'] = self.storage_instance
|
|
123
|
+
if self.import_format is not None:
|
|
124
|
+
result['importFormat'] = self.import_format
|
|
125
|
+
if self.description is not None:
|
|
126
|
+
result['description'] = self.description
|
|
127
|
+
if self.owner is not None:
|
|
128
|
+
result['owner'] = self.owner
|
|
129
|
+
if self.owner_name is not None:
|
|
130
|
+
result['ownerName'] = self.owner_name
|
|
131
|
+
if self.visibility_scope is not None:
|
|
132
|
+
result['visibilityScope'] = self.visibility_scope
|
|
133
|
+
if self.visibility_user is not None:
|
|
134
|
+
result['visibilityUser'] = [i.to_dict() for i in self.visibility_user]
|
|
135
|
+
if self.visibility_group is not None:
|
|
136
|
+
result['visibilityGroup'] = [i.to_dict() for i in self.visibility_group]
|
|
137
|
+
if self.permission is not None:
|
|
138
|
+
result['permission'] = self.permission
|
|
139
|
+
if self.version_entry is not None:
|
|
140
|
+
result['versionEntry'] = self.version_entry.to_dict()
|
|
141
|
+
if self.created_at is not None:
|
|
142
|
+
result['createdAt'] = self.created_at
|
|
143
|
+
if self.updated_at is not None:
|
|
144
|
+
result['updatedAt'] = self.updated_at
|
|
145
|
+
return result
|
|
146
|
+
|
|
147
|
+
def from_dict(self, m):
|
|
148
|
+
"""
|
|
149
|
+
Populate the response instance from a dictionary.
|
|
150
|
+
|
|
151
|
+
Nested dictionaries are recursively converted to model objects.
|
|
152
|
+
|
|
153
|
+
:param m: Dictionary containing response data
|
|
154
|
+
:type m: dict
|
|
155
|
+
|
|
156
|
+
:return: Self reference for method chaining
|
|
157
|
+
:rtype: GetDatasetVersionDetailsV2Response
|
|
158
|
+
|
|
159
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
160
|
+
:raises ValueError: If nested model conversion fails
|
|
161
|
+
"""
|
|
162
|
+
m = m or dict()
|
|
163
|
+
if m.get('id') is not None:
|
|
164
|
+
self.id = m.get('id')
|
|
165
|
+
if m.get('name') is not None:
|
|
166
|
+
self.name = m.get('name')
|
|
167
|
+
if m.get('storageType') is not None:
|
|
168
|
+
self.storage_type = m.get('storageType')
|
|
169
|
+
if m.get('storageInstance') is not None:
|
|
170
|
+
self.storage_instance = m.get('storageInstance')
|
|
171
|
+
if m.get('importFormat') is not None:
|
|
172
|
+
self.import_format = m.get('importFormat')
|
|
173
|
+
if m.get('description') is not None:
|
|
174
|
+
self.description = m.get('description')
|
|
175
|
+
if m.get('owner') is not None:
|
|
176
|
+
self.owner = m.get('owner')
|
|
177
|
+
if m.get('ownerName') is not None:
|
|
178
|
+
self.owner_name = m.get('ownerName')
|
|
179
|
+
if m.get('visibilityScope') is not None:
|
|
180
|
+
self.visibility_scope = m.get('visibilityScope')
|
|
181
|
+
if m.get('visibilityUser') is not None:
|
|
182
|
+
self.visibility_user = [PermissionEntry().from_dict(i) for i in m.get('visibilityUser')]
|
|
183
|
+
if m.get('visibilityGroup') is not None:
|
|
184
|
+
self.visibility_group = [PermissionEntry().from_dict(i) for i in m.get('visibilityGroup')]
|
|
185
|
+
if m.get('permission') is not None:
|
|
186
|
+
self.permission = m.get('permission')
|
|
187
|
+
if m.get('versionEntry') is not None:
|
|
188
|
+
self.version_entry = DatasetVersionEntry().from_dict(m.get('versionEntry'))
|
|
189
|
+
if m.get('createdAt') is not None:
|
|
190
|
+
self.created_at = m.get('createdAt')
|
|
191
|
+
if m.get('updatedAt') is not None:
|
|
192
|
+
self.updated_at = m.get('updatedAt')
|
|
193
|
+
return self
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for GetModelDetailsV2Request information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class GetModelDetailsV2Request(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for GetModelDetailsV2Request operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, model_id):
|
|
16
|
+
"""
|
|
17
|
+
Initialize GetModelDetailsV2Request request entity.
|
|
18
|
+
|
|
19
|
+
:param model_id: model_id parameter
|
|
20
|
+
:type model_id: str (required)
|
|
21
|
+
"""
|
|
22
|
+
super().__init__()
|
|
23
|
+
self.model_id = model_id
|
|
24
|
+
|
|
25
|
+
def to_dict(self):
|
|
26
|
+
"""
|
|
27
|
+
Convert the request entity to a dictionary representation.
|
|
28
|
+
|
|
29
|
+
Nested model objects are recursively converted to dictionaries.
|
|
30
|
+
|
|
31
|
+
:return: Dictionary representation of the request
|
|
32
|
+
:rtype: dict
|
|
33
|
+
"""
|
|
34
|
+
_map = super().to_dict()
|
|
35
|
+
if _map is not None:
|
|
36
|
+
return _map
|
|
37
|
+
result = dict()
|
|
38
|
+
return result
|
|
39
|
+
|
|
40
|
+
def from_dict(self, m):
|
|
41
|
+
"""
|
|
42
|
+
Populate the request entity from a dictionary.
|
|
43
|
+
|
|
44
|
+
Nested dictionaries are recursively converted to model objects.
|
|
45
|
+
|
|
46
|
+
:param m: Dictionary containing request data
|
|
47
|
+
:type m: dict
|
|
48
|
+
|
|
49
|
+
:return: Self reference for method chaining
|
|
50
|
+
:rtype: GetModelDetailsV2Request
|
|
51
|
+
|
|
52
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
53
|
+
:raises ValueError: If nested model conversion fails
|
|
54
|
+
"""
|
|
55
|
+
m = m or dict()
|
|
56
|
+
if m.get('modelId') is not None:
|
|
57
|
+
self.model_id = m.get('modelId')
|
|
58
|
+
return self
|