Skip to content

Commit 2c1efe5

Browse files
author
ci_volc_sdk_gen
committed
feat: auto generate for speech_saas_prod-Python-2025-05-20-online-1435-2025_08_07_17_33_37
1 parent ca3a8a1 commit 2c1efe5

15 files changed

+1261
-5
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": "4.0.9",
3-
"meta_commit": "253fa71ed837e52556b6a4f2837f11d39a49f74c"
2+
"lasted": "4.0.10",
3+
"meta_commit": "01f0e6950dd7091b50aa86550cbfbb97826a4817"
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 = "4.0.9"
6+
VERSION = "4.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
@@ -67,7 +67,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
6767
self.default_headers[header_name] = header_value
6868
self.cookie = cookie
6969
# Set default User-Agent.
70-
self.user_agent = 'volcstack-python-sdk/4.0.9'
70+
self.user_agent = 'volcstack-python-sdk/4.0.10'
7171
self.client_side_validation = configuration.client_side_validation
7272

7373
self.interceptor_chain = InterceptorChain()

volcenginesdkcore/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def to_debug_report(self):
267267
"OS: {env}\n" \
268268
"Python Version: {pyversion}\n" \
269269
"Version of the API: 0.1.0\n" \
270-
"SDK Package Version: 4.0.9".\
270+
"SDK Package Version: 4.0.10".\
271271
format(env=sys.platform, pyversion=sys.version)
272272

273273
@property
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# coding: utf-8
2+
3+
# flake8: noqa
4+
5+
"""
6+
speech_saas_prod
7+
8+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
9+
10+
OpenAPI spec version: common-version
11+
12+
Generated by: https://github.com/swagger-api/swagger-codegen.git
13+
"""
14+
15+
16+
from __future__ import absolute_import
17+
18+
# import apis into sdk package
19+
from volcenginesdkspeechsaasprod.api.speech_saas_prod_api import SPEECHSAASPRODApi
20+
21+
# import models into sdk package
22+
from volcenginesdkspeechsaasprod.models.category_for_list_big_model_tts_timbres_output import CategoryForListBigModelTTSTimbresOutput
23+
from volcenginesdkspeechsaasprod.models.emotion_for_list_big_model_tts_timbres_output import EmotionForListBigModelTTSTimbresOutput
24+
from volcenginesdkspeechsaasprod.models.list_big_model_tts_timbres_request import ListBigModelTTSTimbresRequest
25+
from volcenginesdkspeechsaasprod.models.list_big_model_tts_timbres_response import ListBigModelTTSTimbresResponse
26+
from volcenginesdkspeechsaasprod.models.next_category_for_list_big_model_tts_timbres_output import NextCategoryForListBigModelTTSTimbresOutput
27+
from volcenginesdkspeechsaasprod.models.timbre_for_list_big_model_tts_timbres_output import TimbreForListBigModelTTSTimbresOutput
28+
from volcenginesdkspeechsaasprod.models.timbre_info_for_list_big_model_tts_timbres_output import TimbreInfoForListBigModelTTSTimbresOutput
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from __future__ import absolute_import
2+
3+
# flake8: noqa
4+
5+
# import apis into api package
6+
from volcenginesdkspeechsaasprod.api.speech_saas_prod_api import SPEECHSAASPRODApi
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
# coding: utf-8
2+
3+
"""
4+
speech_saas_prod
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+
from __future__ import absolute_import
15+
16+
import re # noqa: F401
17+
18+
# python 2 and python 3 compatibility library
19+
import six
20+
21+
import volcenginesdkcore
22+
23+
24+
class SPEECHSAASPRODApi(object):
25+
"""NOTE: This class is auto generated by the swagger code generator program.
26+
27+
Do not edit the class manually.
28+
Ref: https://github.com/swagger-api/swagger-codegen
29+
"""
30+
31+
def __init__(self, api_client=None):
32+
if api_client is None:
33+
api_client = volcenginesdkcore.ApiClient()
34+
self.api_client = api_client
35+
36+
def list_big_model_tts_timbres(self, body, **kwargs): # noqa: E501
37+
"""list_big_model_tts_timbres # noqa: E501
38+
39+
This method makes a synchronous HTTP request by default. To make an
40+
asynchronous HTTP request, please pass async_req=True
41+
>>> thread = api.list_big_model_tts_timbres(body, async_req=True)
42+
>>> result = thread.get()
43+
44+
:param async_req bool
45+
:param ListBigModelTTSTimbresRequest body: (required)
46+
:return: ListBigModelTTSTimbresResponse
47+
If the method is called asynchronously,
48+
returns the request thread.
49+
"""
50+
kwargs['_return_http_data_only'] = True
51+
if kwargs.get('async_req'):
52+
return self.list_big_model_tts_timbres_with_http_info(body, **kwargs) # noqa: E501
53+
else:
54+
(data) = self.list_big_model_tts_timbres_with_http_info(body, **kwargs) # noqa: E501
55+
return data
56+
57+
def list_big_model_tts_timbres_with_http_info(self, body, **kwargs): # noqa: E501
58+
"""list_big_model_tts_timbres # noqa: E501
59+
60+
This method makes a synchronous HTTP request by default. To make an
61+
asynchronous HTTP request, please pass async_req=True
62+
>>> thread = api.list_big_model_tts_timbres_with_http_info(body, async_req=True)
63+
>>> result = thread.get()
64+
65+
:param async_req bool
66+
:param ListBigModelTTSTimbresRequest body: (required)
67+
:return: ListBigModelTTSTimbresResponse
68+
If the method is called asynchronously,
69+
returns the request thread.
70+
"""
71+
72+
all_params = ['body'] # noqa: E501
73+
all_params.append('async_req')
74+
all_params.append('_return_http_data_only')
75+
all_params.append('_preload_content')
76+
all_params.append('_request_timeout')
77+
78+
params = locals()
79+
for key, val in six.iteritems(params['kwargs']):
80+
if key not in all_params:
81+
raise TypeError(
82+
"Got an unexpected keyword argument '%s'"
83+
" to method list_big_model_tts_timbres" % key
84+
)
85+
params[key] = val
86+
del params['kwargs']
87+
# verify the required parameter 'body' is set
88+
if self.api_client.client_side_validation and ('body' not in params or
89+
params['body'] is None): # noqa: E501
90+
raise ValueError("Missing the required parameter `body` when calling `list_big_model_tts_timbres`") # noqa: E501
91+
92+
collection_formats = {}
93+
94+
path_params = {}
95+
96+
query_params = []
97+
98+
header_params = {}
99+
100+
form_params = []
101+
local_var_files = {}
102+
103+
body_params = None
104+
if 'body' in params:
105+
body_params = params['body']
106+
# HTTP header `Accept`
107+
header_params['Accept'] = self.api_client.select_header_accept(
108+
['application/json']) # noqa: E501
109+
110+
# HTTP header `Content-Type`
111+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
112+
['application/json']) # noqa: E501
113+
114+
# Authentication setting
115+
auth_settings = ['volcengineSign'] # noqa: E501
116+
117+
return self.api_client.call_api(
118+
'/ListBigModelTTSTimbres/2025-05-20/speech_saas_prod/post/application_json/', 'POST',
119+
path_params,
120+
query_params,
121+
header_params,
122+
body=body_params,
123+
post_params=form_params,
124+
files=local_var_files,
125+
response_type='ListBigModelTTSTimbresResponse', # noqa: E501
126+
auth_settings=auth_settings,
127+
async_req=params.get('async_req'),
128+
_return_http_data_only=params.get('_return_http_data_only'),
129+
_preload_content=params.get('_preload_content', True),
130+
_request_timeout=params.get('_request_timeout'),
131+
collection_formats=collection_formats)
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# coding: utf-8
2+
3+
# flake8: noqa
4+
"""
5+
speech_saas_prod
6+
7+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
8+
9+
OpenAPI spec version: common-version
10+
11+
Generated by: https://github.com/swagger-api/swagger-codegen.git
12+
"""
13+
14+
15+
from __future__ import absolute_import
16+
17+
# import models into model package
18+
from volcenginesdkspeechsaasprod.models.category_for_list_big_model_tts_timbres_output import CategoryForListBigModelTTSTimbresOutput
19+
from volcenginesdkspeechsaasprod.models.emotion_for_list_big_model_tts_timbres_output import EmotionForListBigModelTTSTimbresOutput
20+
from volcenginesdkspeechsaasprod.models.list_big_model_tts_timbres_request import ListBigModelTTSTimbresRequest
21+
from volcenginesdkspeechsaasprod.models.list_big_model_tts_timbres_response import ListBigModelTTSTimbresResponse
22+
from volcenginesdkspeechsaasprod.models.next_category_for_list_big_model_tts_timbres_output import NextCategoryForListBigModelTTSTimbresOutput
23+
from volcenginesdkspeechsaasprod.models.timbre_for_list_big_model_tts_timbres_output import TimbreForListBigModelTTSTimbresOutput
24+
from volcenginesdkspeechsaasprod.models.timbre_info_for_list_big_model_tts_timbres_output import TimbreInfoForListBigModelTTSTimbresOutput
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+
speech_saas_prod
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 CategoryForListBigModelTTSTimbresOutput(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+
'category': 'str',
37+
'next_category': 'NextCategoryForListBigModelTTSTimbresOutput'
38+
}
39+
40+
attribute_map = {
41+
'category': 'Category',
42+
'next_category': 'NextCategory'
43+
}
44+
45+
def __init__(self, category=None, next_category=None, _configuration=None): # noqa: E501
46+
"""CategoryForListBigModelTTSTimbresOutput - a model defined in Swagger""" # noqa: E501
47+
if _configuration is None:
48+
_configuration = Configuration()
49+
self._configuration = _configuration
50+
51+
self._category = None
52+
self._next_category = None
53+
self.discriminator = None
54+
55+
if category is not None:
56+
self.category = category
57+
if next_category is not None:
58+
self.next_category = next_category
59+
60+
@property
61+
def category(self):
62+
"""Gets the category of this CategoryForListBigModelTTSTimbresOutput. # noqa: E501
63+
64+
65+
:return: The category of this CategoryForListBigModelTTSTimbresOutput. # noqa: E501
66+
:rtype: str
67+
"""
68+
return self._category
69+
70+
@category.setter
71+
def category(self, category):
72+
"""Sets the category of this CategoryForListBigModelTTSTimbresOutput.
73+
74+
75+
:param category: The category of this CategoryForListBigModelTTSTimbresOutput. # noqa: E501
76+
:type: str
77+
"""
78+
79+
self._category = category
80+
81+
@property
82+
def next_category(self):
83+
"""Gets the next_category of this CategoryForListBigModelTTSTimbresOutput. # noqa: E501
84+
85+
86+
:return: The next_category of this CategoryForListBigModelTTSTimbresOutput. # noqa: E501
87+
:rtype: NextCategoryForListBigModelTTSTimbresOutput
88+
"""
89+
return self._next_category
90+
91+
@next_category.setter
92+
def next_category(self, next_category):
93+
"""Sets the next_category of this CategoryForListBigModelTTSTimbresOutput.
94+
95+
96+
:param next_category: The next_category of this CategoryForListBigModelTTSTimbresOutput. # noqa: E501
97+
:type: NextCategoryForListBigModelTTSTimbresOutput
98+
"""
99+
100+
self._next_category = next_category
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(CategoryForListBigModelTTSTimbresOutput, 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, CategoryForListBigModelTTSTimbresOutput):
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, CategoryForListBigModelTTSTimbresOutput):
147+
return True
148+
149+
return self.to_dict() != other.to_dict()

0 commit comments

Comments
 (0)