Skip to content

Commit c3c8727

Browse files
author
BitsAdmin
committed
Merge 'vikingdb-Python-2025-06-09-online-2005-2026_01_05_14_53_46' into 'integration_2026-01-08_1102078773250'
feat: [development task] vikingdb-2005-Python (2009569) See merge request: !1005
2 parents 64eb058 + d1b31a6 commit c3c8727

19 files changed

+2302
-21
lines changed

volcenginesdkvikingdb/models/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@
6666
from volcenginesdkvikingdb.models.get_vikingdb_task_request import GetVikingdbTaskRequest
6767
from volcenginesdkvikingdb.models.get_vikingdb_task_response import GetVikingdbTaskResponse
6868
from volcenginesdkvikingdb.models.index_for_list_vikingdb_index_output import IndexForListVikingdbIndexOutput
69+
from volcenginesdkvikingdb.models.instruction_for_create_vikingdb_collection_input import InstructionForCreateVikingdbCollectionInput
70+
from volcenginesdkvikingdb.models.instruction_for_get_vikingdb_collection_output import InstructionForGetVikingdbCollectionOutput
71+
from volcenginesdkvikingdb.models.instruction_for_list_vikingdb_collection_output import InstructionForListVikingdbCollectionOutput
6972
from volcenginesdkvikingdb.models.list_vikingdb_collection_request import ListVikingdbCollectionRequest
7073
from volcenginesdkvikingdb.models.list_vikingdb_collection_response import ListVikingdbCollectionResponse
7174
from volcenginesdkvikingdb.models.list_vikingdb_index_request import ListVikingdbIndexRequest
@@ -102,6 +105,9 @@
102105
from volcenginesdkvikingdb.models.task_for_list_vikingdb_task_output import TaskForListVikingdbTaskOutput
103106
from volcenginesdkvikingdb.models.task_process_info_for_get_vikingdb_task_output import TaskProcessInfoForGetVikingdbTaskOutput
104107
from volcenginesdkvikingdb.models.task_process_info_for_list_vikingdb_task_output import TaskProcessInfoForListVikingdbTaskOutput
108+
from volcenginesdkvikingdb.models.tensor_for_create_vikingdb_collection_input import TensorForCreateVikingdbCollectionInput
109+
from volcenginesdkvikingdb.models.tensor_for_get_vikingdb_collection_output import TensorForGetVikingdbCollectionOutput
110+
from volcenginesdkvikingdb.models.tensor_for_list_vikingdb_collection_output import TensorForListVikingdbCollectionOutput
105111
# from volcenginesdkvikingdb.models.update_fields_for_create_vikingdb_task_input import UpdateFieldsForCreateVikingdbTaskInput
106112
# from volcenginesdkvikingdb.models.update_fields_for_get_vikingdb_task_output import UpdateFieldsForGetVikingdbTaskOutput
107113
# from volcenginesdkvikingdb.models.update_fields_for_list_vikingdb_task_output import UpdateFieldsForListVikingdbTaskOutput

volcenginesdkvikingdb/models/dense_for_create_vikingdb_collection_input.py

Lines changed: 112 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,31 +35,43 @@ class DenseForCreateVikingdbCollectionInput(object):
3535
swagger_types = {
3636
'dim': 'int',
3737
'image_field': 'str',
38+
'instruction': 'InstructionForCreateVikingdbCollectionInput',
3839
'model_name': 'str',
3940
'model_version': 'str',
41+
'n_dim': 'int',
42+
'shape': 'list[int]',
43+
'tensor_quant_type': 'str',
4044
'text_field': 'str',
4145
'video_field': 'str'
4246
}
4347

4448
attribute_map = {
4549
'dim': 'Dim',
4650
'image_field': 'ImageField',
51+
'instruction': 'Instruction',
4752
'model_name': 'ModelName',
4853
'model_version': 'ModelVersion',
54+
'n_dim': 'NDim',
55+
'shape': 'Shape',
56+
'tensor_quant_type': 'TensorQuantType',
4957
'text_field': 'TextField',
5058
'video_field': 'VideoField'
5159
}
5260

53-
def __init__(self, dim=None, image_field=None, model_name=None, model_version=None, text_field=None, video_field=None, _configuration=None): # noqa: E501
61+
def __init__(self, dim=None, image_field=None, instruction=None, model_name=None, model_version=None, n_dim=None, shape=None, tensor_quant_type=None, text_field=None, video_field=None, _configuration=None): # noqa: E501
5462
"""DenseForCreateVikingdbCollectionInput - a model defined in Swagger""" # noqa: E501
5563
if _configuration is None:
5664
_configuration = Configuration()
5765
self._configuration = _configuration
5866

5967
self._dim = None
6068
self._image_field = None
69+
self._instruction = None
6170
self._model_name = None
6271
self._model_version = None
72+
self._n_dim = None
73+
self._shape = None
74+
self._tensor_quant_type = None
6375
self._text_field = None
6476
self._video_field = None
6577
self.discriminator = None
@@ -68,10 +80,18 @@ def __init__(self, dim=None, image_field=None, model_name=None, model_version=No
6880
self.dim = dim
6981
if image_field is not None:
7082
self.image_field = image_field
83+
if instruction is not None:
84+
self.instruction = instruction
7185
if model_name is not None:
7286
self.model_name = model_name
7387
if model_version is not None:
7488
self.model_version = model_version
89+
if n_dim is not None:
90+
self.n_dim = n_dim
91+
if shape is not None:
92+
self.shape = shape
93+
if tensor_quant_type is not None:
94+
self.tensor_quant_type = tensor_quant_type
7595
if text_field is not None:
7696
self.text_field = text_field
7797
if video_field is not None:
@@ -119,6 +139,27 @@ def image_field(self, image_field):
119139

120140
self._image_field = image_field
121141

142+
@property
143+
def instruction(self):
144+
"""Gets the instruction of this DenseForCreateVikingdbCollectionInput. # noqa: E501
145+
146+
147+
:return: The instruction of this DenseForCreateVikingdbCollectionInput. # noqa: E501
148+
:rtype: InstructionForCreateVikingdbCollectionInput
149+
"""
150+
return self._instruction
151+
152+
@instruction.setter
153+
def instruction(self, instruction):
154+
"""Sets the instruction of this DenseForCreateVikingdbCollectionInput.
155+
156+
157+
:param instruction: The instruction of this DenseForCreateVikingdbCollectionInput. # noqa: E501
158+
:type: InstructionForCreateVikingdbCollectionInput
159+
"""
160+
161+
self._instruction = instruction
162+
122163
@property
123164
def model_name(self):
124165
"""Gets the model_name of this DenseForCreateVikingdbCollectionInput. # noqa: E501
@@ -168,6 +209,76 @@ def model_version(self, model_version):
168209

169210
self._model_version = model_version
170211

212+
@property
213+
def n_dim(self):
214+
"""Gets the n_dim of this DenseForCreateVikingdbCollectionInput. # noqa: E501
215+
216+
217+
:return: The n_dim of this DenseForCreateVikingdbCollectionInput. # noqa: E501
218+
:rtype: int
219+
"""
220+
return self._n_dim
221+
222+
@n_dim.setter
223+
def n_dim(self, n_dim):
224+
"""Sets the n_dim of this DenseForCreateVikingdbCollectionInput.
225+
226+
227+
:param n_dim: The n_dim of this DenseForCreateVikingdbCollectionInput. # noqa: E501
228+
:type: int
229+
"""
230+
231+
self._n_dim = n_dim
232+
233+
@property
234+
def shape(self):
235+
"""Gets the shape of this DenseForCreateVikingdbCollectionInput. # noqa: E501
236+
237+
238+
:return: The shape of this DenseForCreateVikingdbCollectionInput. # noqa: E501
239+
:rtype: list[int]
240+
"""
241+
return self._shape
242+
243+
@shape.setter
244+
def shape(self, shape):
245+
"""Sets the shape of this DenseForCreateVikingdbCollectionInput.
246+
247+
248+
:param shape: The shape of this DenseForCreateVikingdbCollectionInput. # noqa: E501
249+
:type: list[int]
250+
"""
251+
252+
self._shape = shape
253+
254+
@property
255+
def tensor_quant_type(self):
256+
"""Gets the tensor_quant_type of this DenseForCreateVikingdbCollectionInput. # noqa: E501
257+
258+
259+
:return: The tensor_quant_type of this DenseForCreateVikingdbCollectionInput. # noqa: E501
260+
:rtype: str
261+
"""
262+
return self._tensor_quant_type
263+
264+
@tensor_quant_type.setter
265+
def tensor_quant_type(self, tensor_quant_type):
266+
"""Sets the tensor_quant_type of this DenseForCreateVikingdbCollectionInput.
267+
268+
269+
:param tensor_quant_type: The tensor_quant_type of this DenseForCreateVikingdbCollectionInput. # noqa: E501
270+
:type: str
271+
"""
272+
allowed_values = ["int8"] # noqa: E501
273+
if (self._configuration.client_side_validation and
274+
tensor_quant_type not in allowed_values):
275+
raise ValueError(
276+
"Invalid value for `tensor_quant_type` ({0}), must be one of {1}" # noqa: E501
277+
.format(tensor_quant_type, allowed_values)
278+
)
279+
280+
self._tensor_quant_type = tensor_quant_type
281+
171282
@property
172283
def text_field(self):
173284
"""Gets the text_field of this DenseForCreateVikingdbCollectionInput. # noqa: E501

volcenginesdkvikingdb/models/dense_for_get_vikingdb_collection_output.py

Lines changed: 105 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,31 +35,43 @@ class DenseForGetVikingdbCollectionOutput(object):
3535
swagger_types = {
3636
'dim': 'int',
3737
'image_field': 'str',
38+
'instruction': 'InstructionForGetVikingdbCollectionOutput',
3839
'model_name': 'str',
3940
'model_version': 'str',
41+
'n_dim': 'int',
42+
'shape': 'list[int]',
43+
'tensor_quant_type': 'str',
4044
'text_field': 'str',
4145
'video_field': 'str'
4246
}
4347

4448
attribute_map = {
4549
'dim': 'Dim',
4650
'image_field': 'ImageField',
51+
'instruction': 'Instruction',
4752
'model_name': 'ModelName',
4853
'model_version': 'ModelVersion',
54+
'n_dim': 'NDim',
55+
'shape': 'Shape',
56+
'tensor_quant_type': 'TensorQuantType',
4957
'text_field': 'TextField',
5058
'video_field': 'VideoField'
5159
}
5260

53-
def __init__(self, dim=None, image_field=None, model_name=None, model_version=None, text_field=None, video_field=None, _configuration=None): # noqa: E501
61+
def __init__(self, dim=None, image_field=None, instruction=None, model_name=None, model_version=None, n_dim=None, shape=None, tensor_quant_type=None, text_field=None, video_field=None, _configuration=None): # noqa: E501
5462
"""DenseForGetVikingdbCollectionOutput - a model defined in Swagger""" # noqa: E501
5563
if _configuration is None:
5664
_configuration = Configuration()
5765
self._configuration = _configuration
5866

5967
self._dim = None
6068
self._image_field = None
69+
self._instruction = None
6170
self._model_name = None
6271
self._model_version = None
72+
self._n_dim = None
73+
self._shape = None
74+
self._tensor_quant_type = None
6375
self._text_field = None
6476
self._video_field = None
6577
self.discriminator = None
@@ -68,10 +80,18 @@ def __init__(self, dim=None, image_field=None, model_name=None, model_version=No
6880
self.dim = dim
6981
if image_field is not None:
7082
self.image_field = image_field
83+
if instruction is not None:
84+
self.instruction = instruction
7185
if model_name is not None:
7286
self.model_name = model_name
7387
if model_version is not None:
7488
self.model_version = model_version
89+
if n_dim is not None:
90+
self.n_dim = n_dim
91+
if shape is not None:
92+
self.shape = shape
93+
if tensor_quant_type is not None:
94+
self.tensor_quant_type = tensor_quant_type
7595
if text_field is not None:
7696
self.text_field = text_field
7797
if video_field is not None:
@@ -119,6 +139,27 @@ def image_field(self, image_field):
119139

120140
self._image_field = image_field
121141

142+
@property
143+
def instruction(self):
144+
"""Gets the instruction of this DenseForGetVikingdbCollectionOutput. # noqa: E501
145+
146+
147+
:return: The instruction of this DenseForGetVikingdbCollectionOutput. # noqa: E501
148+
:rtype: InstructionForGetVikingdbCollectionOutput
149+
"""
150+
return self._instruction
151+
152+
@instruction.setter
153+
def instruction(self, instruction):
154+
"""Sets the instruction of this DenseForGetVikingdbCollectionOutput.
155+
156+
157+
:param instruction: The instruction of this DenseForGetVikingdbCollectionOutput. # noqa: E501
158+
:type: InstructionForGetVikingdbCollectionOutput
159+
"""
160+
161+
self._instruction = instruction
162+
122163
@property
123164
def model_name(self):
124165
"""Gets the model_name of this DenseForGetVikingdbCollectionOutput. # noqa: E501
@@ -161,6 +202,69 @@ def model_version(self, model_version):
161202

162203
self._model_version = model_version
163204

205+
@property
206+
def n_dim(self):
207+
"""Gets the n_dim of this DenseForGetVikingdbCollectionOutput. # noqa: E501
208+
209+
210+
:return: The n_dim of this DenseForGetVikingdbCollectionOutput. # noqa: E501
211+
:rtype: int
212+
"""
213+
return self._n_dim
214+
215+
@n_dim.setter
216+
def n_dim(self, n_dim):
217+
"""Sets the n_dim of this DenseForGetVikingdbCollectionOutput.
218+
219+
220+
:param n_dim: The n_dim of this DenseForGetVikingdbCollectionOutput. # noqa: E501
221+
:type: int
222+
"""
223+
224+
self._n_dim = n_dim
225+
226+
@property
227+
def shape(self):
228+
"""Gets the shape of this DenseForGetVikingdbCollectionOutput. # noqa: E501
229+
230+
231+
:return: The shape of this DenseForGetVikingdbCollectionOutput. # noqa: E501
232+
:rtype: list[int]
233+
"""
234+
return self._shape
235+
236+
@shape.setter
237+
def shape(self, shape):
238+
"""Sets the shape of this DenseForGetVikingdbCollectionOutput.
239+
240+
241+
:param shape: The shape of this DenseForGetVikingdbCollectionOutput. # noqa: E501
242+
:type: list[int]
243+
"""
244+
245+
self._shape = shape
246+
247+
@property
248+
def tensor_quant_type(self):
249+
"""Gets the tensor_quant_type of this DenseForGetVikingdbCollectionOutput. # noqa: E501
250+
251+
252+
:return: The tensor_quant_type of this DenseForGetVikingdbCollectionOutput. # noqa: E501
253+
:rtype: str
254+
"""
255+
return self._tensor_quant_type
256+
257+
@tensor_quant_type.setter
258+
def tensor_quant_type(self, tensor_quant_type):
259+
"""Sets the tensor_quant_type of this DenseForGetVikingdbCollectionOutput.
260+
261+
262+
:param tensor_quant_type: The tensor_quant_type of this DenseForGetVikingdbCollectionOutput. # noqa: E501
263+
:type: str
264+
"""
265+
266+
self._tensor_quant_type = tensor_quant_type
267+
164268
@property
165269
def text_field(self):
166270
"""Gets the text_field of this DenseForGetVikingdbCollectionOutput. # noqa: E501

0 commit comments

Comments
 (0)