Skip to content

Commit 2ab2008

Browse files
author
ci_volc_sdk_gen
committed
feat: auto generate for vod-Python-2025-01-01-online-1262-2025_06_09_14_25_11
1 parent bb3579d commit 2ab2008

File tree

8 files changed

+185
-6
lines changed

8 files changed

+185
-6
lines changed

meta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"lasted": "3.0.9",
3-
"meta_commit": "34a57dda59d72d6cef78cb1f932dafdd8f550972"
2+
"lasted": "3.0.10",
3+
"meta_commit": "f6a85518f3e7f957819ca2089e4f2ef641d2b445"
44
}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from setuptools import setup, find_packages # noqa: H301
44

55
NAME = "volcengine-python-sdk"
6-
VERSION = "3.0.9"
6+
VERSION = "3.0.10"
77
# To install the library, run the following
88
#
99
# python setup.py install

volcenginesdkcore/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
6363
self.default_headers[header_name] = header_value
6464
self.cookie = cookie
6565
# Set default User-Agent.
66-
self.user_agent = 'volcstack-python-sdk/3.0.9'
66+
self.user_agent = 'volcstack-python-sdk/3.0.10'
6767
self.client_side_validation = configuration.client_side_validation
6868

6969
self.interceptor_chain = InterceptorChain()

volcenginesdkcore/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,5 +257,5 @@ def to_debug_report(self):
257257
"OS: {env}\n" \
258258
"Python Version: {pyversion}\n" \
259259
"Version of the API: 0.1.0\n" \
260-
"SDK Package Version: 3.0.9".\
260+
"SDK Package Version: 3.0.10".\
261261
format(env=sys.platform, pyversion=sys.version)

volcenginesdkvod20250101/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
from volcenginesdkvod20250101.models.output_video_for_list_ai_translation_project_output import OutputVideoForListAITranslationProjectOutput
9494
from volcenginesdkvod20250101.models.preview_video_for_get_ai_translation_project_output import PreviewVideoForGetAITranslationProjectOutput
9595
from volcenginesdkvod20250101.models.preview_video_muted_for_get_ai_translation_project_output import PreviewVideoMutedForGetAITranslationProjectOutput
96+
from volcenginesdkvod20250101.models.project_base_info_for_submit_ai_translation_workflow_output import ProjectBaseInfoForSubmitAITranslationWorkflowOutput
9697
from volcenginesdkvod20250101.models.project_for_list_ai_translation_project_output import ProjectForListAITranslationProjectOutput
9798
from volcenginesdkvod20250101.models.project_info_for_get_ai_translation_project_output import ProjectInfoForGetAITranslationProjectOutput
9899
from volcenginesdkvod20250101.models.segment_for_get_execution_output import SegmentForGetExecutionOutput

volcenginesdkvod20250101/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
from volcenginesdkvod20250101.models.output_video_for_list_ai_translation_project_output import OutputVideoForListAITranslationProjectOutput
9090
from volcenginesdkvod20250101.models.preview_video_for_get_ai_translation_project_output import PreviewVideoForGetAITranslationProjectOutput
9191
from volcenginesdkvod20250101.models.preview_video_muted_for_get_ai_translation_project_output import PreviewVideoMutedForGetAITranslationProjectOutput
92+
from volcenginesdkvod20250101.models.project_base_info_for_submit_ai_translation_workflow_output import ProjectBaseInfoForSubmitAITranslationWorkflowOutput
9293
from volcenginesdkvod20250101.models.project_for_list_ai_translation_project_output import ProjectForListAITranslationProjectOutput
9394
from volcenginesdkvod20250101.models.project_info_for_get_ai_translation_project_output import ProjectInfoForGetAITranslationProjectOutput
9495
from volcenginesdkvod20250101.models.segment_for_get_execution_output import SegmentForGetExecutionOutput
Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
# coding: utf-8
2+
3+
"""
4+
vod20250101
5+
6+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7+
8+
OpenAPI spec version: common-version
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
"""
12+
13+
14+
import pprint
15+
import re # noqa: F401
16+
17+
import six
18+
19+
from volcenginesdkcore.configuration import Configuration
20+
21+
22+
class ProjectBaseInfoForSubmitAITranslationWorkflowOutput(object):
23+
"""NOTE: This class is auto generated by the swagger code generator program.
24+
25+
Do not edit the class manually.
26+
"""
27+
28+
"""
29+
Attributes:
30+
swagger_types (dict): The key is attribute name
31+
and the value is attribute type.
32+
attribute_map (dict): The key is attribute name
33+
and the value is json key in definition.
34+
"""
35+
swagger_types = {
36+
'project_id': 'str',
37+
'project_version': 'str'
38+
}
39+
40+
attribute_map = {
41+
'project_id': 'ProjectId',
42+
'project_version': 'ProjectVersion'
43+
}
44+
45+
def __init__(self, project_id=None, project_version=None, _configuration=None): # noqa: E501
46+
"""ProjectBaseInfoForSubmitAITranslationWorkflowOutput - a model defined in Swagger""" # noqa: E501
47+
if _configuration is None:
48+
_configuration = Configuration()
49+
self._configuration = _configuration
50+
51+
self._project_id = None
52+
self._project_version = None
53+
self.discriminator = None
54+
55+
if project_id is not None:
56+
self.project_id = project_id
57+
if project_version is not None:
58+
self.project_version = project_version
59+
60+
@property
61+
def project_id(self):
62+
"""Gets the project_id of this ProjectBaseInfoForSubmitAITranslationWorkflowOutput. # noqa: E501
63+
64+
65+
:return: The project_id of this ProjectBaseInfoForSubmitAITranslationWorkflowOutput. # noqa: E501
66+
:rtype: str
67+
"""
68+
return self._project_id
69+
70+
@project_id.setter
71+
def project_id(self, project_id):
72+
"""Sets the project_id of this ProjectBaseInfoForSubmitAITranslationWorkflowOutput.
73+
74+
75+
:param project_id: The project_id of this ProjectBaseInfoForSubmitAITranslationWorkflowOutput. # noqa: E501
76+
:type: str
77+
"""
78+
79+
self._project_id = project_id
80+
81+
@property
82+
def project_version(self):
83+
"""Gets the project_version of this ProjectBaseInfoForSubmitAITranslationWorkflowOutput. # noqa: E501
84+
85+
86+
:return: The project_version of this ProjectBaseInfoForSubmitAITranslationWorkflowOutput. # noqa: E501
87+
:rtype: str
88+
"""
89+
return self._project_version
90+
91+
@project_version.setter
92+
def project_version(self, project_version):
93+
"""Sets the project_version of this ProjectBaseInfoForSubmitAITranslationWorkflowOutput.
94+
95+
96+
:param project_version: The project_version of this ProjectBaseInfoForSubmitAITranslationWorkflowOutput. # noqa: E501
97+
:type: str
98+
"""
99+
100+
self._project_version = project_version
101+
102+
def to_dict(self):
103+
"""Returns the model properties as a dict"""
104+
result = {}
105+
106+
for attr, _ in six.iteritems(self.swagger_types):
107+
value = getattr(self, attr)
108+
if isinstance(value, list):
109+
result[attr] = list(map(
110+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
111+
value
112+
))
113+
elif hasattr(value, "to_dict"):
114+
result[attr] = value.to_dict()
115+
elif isinstance(value, dict):
116+
result[attr] = dict(map(
117+
lambda item: (item[0], item[1].to_dict())
118+
if hasattr(item[1], "to_dict") else item,
119+
value.items()
120+
))
121+
else:
122+
result[attr] = value
123+
if issubclass(ProjectBaseInfoForSubmitAITranslationWorkflowOutput, dict):
124+
for key, value in self.items():
125+
result[key] = value
126+
127+
return result
128+
129+
def to_str(self):
130+
"""Returns the string representation of the model"""
131+
return pprint.pformat(self.to_dict())
132+
133+
def __repr__(self):
134+
"""For `print` and `pprint`"""
135+
return self.to_str()
136+
137+
def __eq__(self, other):
138+
"""Returns true if both objects are equal"""
139+
if not isinstance(other, ProjectBaseInfoForSubmitAITranslationWorkflowOutput):
140+
return False
141+
142+
return self.to_dict() == other.to_dict()
143+
144+
def __ne__(self, other):
145+
"""Returns true if both objects are not equal"""
146+
if not isinstance(other, ProjectBaseInfoForSubmitAITranslationWorkflowOutput):
147+
return True
148+
149+
return self.to_dict() != other.to_dict()

volcenginesdkvod20250101/models/submit_ai_translation_workflow_response.py

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,46 @@ class SubmitAITranslationWorkflowResponse(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36+
'project_base_info': 'ProjectBaseInfoForSubmitAITranslationWorkflowOutput'
3637
}
3738

3839
attribute_map = {
40+
'project_base_info': 'ProjectBaseInfo'
3941
}
4042

41-
def __init__(self, _configuration=None): # noqa: E501
43+
def __init__(self, project_base_info=None, _configuration=None): # noqa: E501
4244
"""SubmitAITranslationWorkflowResponse - a model defined in Swagger""" # noqa: E501
4345
if _configuration is None:
4446
_configuration = Configuration()
4547
self._configuration = _configuration
48+
49+
self._project_base_info = None
4650
self.discriminator = None
4751

52+
if project_base_info is not None:
53+
self.project_base_info = project_base_info
54+
55+
@property
56+
def project_base_info(self):
57+
"""Gets the project_base_info of this SubmitAITranslationWorkflowResponse. # noqa: E501
58+
59+
60+
:return: The project_base_info of this SubmitAITranslationWorkflowResponse. # noqa: E501
61+
:rtype: ProjectBaseInfoForSubmitAITranslationWorkflowOutput
62+
"""
63+
return self._project_base_info
64+
65+
@project_base_info.setter
66+
def project_base_info(self, project_base_info):
67+
"""Sets the project_base_info of this SubmitAITranslationWorkflowResponse.
68+
69+
70+
:param project_base_info: The project_base_info of this SubmitAITranslationWorkflowResponse. # noqa: E501
71+
:type: ProjectBaseInfoForSubmitAITranslationWorkflowOutput
72+
"""
73+
74+
self._project_base_info = project_base_info
75+
4876
def to_dict(self):
4977
"""Returns the model properties as a dict"""
5078
result = {}

0 commit comments

Comments
 (0)