Skip to content

Commit 6718f61

Browse files
author
BitsAdmin
committed
Merge 'i18n_openapi-Python-2021-05-21-online-2374-2026_03_18_20_34_27' into 'integration_2026-03-19_1127023116802'
feat: [development task] i18n_openapi-2374-Python (2198825) See merge request: !1114
2 parents 566e925 + ab6776d commit 6718f61

180 files changed

Lines changed: 36086 additions & 124 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

volcenginesdki18nopenapi/__init__.py

Lines changed: 174 additions & 0 deletions
Large diffs are not rendered by default.

volcenginesdki18nopenapi/api/i18_n_openapi_api.py

Lines changed: 6709 additions & 113 deletions
Large diffs are not rendered by default.

volcenginesdki18nopenapi/models/__init__.py

Lines changed: 174 additions & 0 deletions
Large diffs are not rendered by default.
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+
i18n_openapi
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 BaseRespForVideoProjectTaskBatchStartAIFlowOutput(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+
'status_code': 'int',
37+
'status_message': 'str'
38+
}
39+
40+
attribute_map = {
41+
'status_code': 'StatusCode',
42+
'status_message': 'StatusMessage'
43+
}
44+
45+
def __init__(self, status_code=None, status_message=None, _configuration=None): # noqa: E501
46+
"""BaseRespForVideoProjectTaskBatchStartAIFlowOutput - a model defined in Swagger""" # noqa: E501
47+
if _configuration is None:
48+
_configuration = Configuration()
49+
self._configuration = _configuration
50+
51+
self._status_code = None
52+
self._status_message = None
53+
self.discriminator = None
54+
55+
if status_code is not None:
56+
self.status_code = status_code
57+
if status_message is not None:
58+
self.status_message = status_message
59+
60+
@property
61+
def status_code(self):
62+
"""Gets the status_code of this BaseRespForVideoProjectTaskBatchStartAIFlowOutput. # noqa: E501
63+
64+
65+
:return: The status_code of this BaseRespForVideoProjectTaskBatchStartAIFlowOutput. # noqa: E501
66+
:rtype: int
67+
"""
68+
return self._status_code
69+
70+
@status_code.setter
71+
def status_code(self, status_code):
72+
"""Sets the status_code of this BaseRespForVideoProjectTaskBatchStartAIFlowOutput.
73+
74+
75+
:param status_code: The status_code of this BaseRespForVideoProjectTaskBatchStartAIFlowOutput. # noqa: E501
76+
:type: int
77+
"""
78+
79+
self._status_code = status_code
80+
81+
@property
82+
def status_message(self):
83+
"""Gets the status_message of this BaseRespForVideoProjectTaskBatchStartAIFlowOutput. # noqa: E501
84+
85+
86+
:return: The status_message of this BaseRespForVideoProjectTaskBatchStartAIFlowOutput. # noqa: E501
87+
:rtype: str
88+
"""
89+
return self._status_message
90+
91+
@status_message.setter
92+
def status_message(self, status_message):
93+
"""Sets the status_message of this BaseRespForVideoProjectTaskBatchStartAIFlowOutput.
94+
95+
96+
:param status_message: The status_message of this BaseRespForVideoProjectTaskBatchStartAIFlowOutput. # noqa: E501
97+
:type: str
98+
"""
99+
100+
self._status_message = status_message
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(BaseRespForVideoProjectTaskBatchStartAIFlowOutput, 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, BaseRespForVideoProjectTaskBatchStartAIFlowOutput):
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, BaseRespForVideoProjectTaskBatchStartAIFlowOutput):
147+
return True
148+
149+
return self.to_dict() != other.to_dict()
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+
i18n_openapi
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 DataForLanguagesOutput(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+
'source_locale': 'str',
37+
'target_locales': 'list[str]'
38+
}
39+
40+
attribute_map = {
41+
'source_locale': 'sourceLocale',
42+
'target_locales': 'targetLocales'
43+
}
44+
45+
def __init__(self, source_locale=None, target_locales=None, _configuration=None): # noqa: E501
46+
"""DataForLanguagesOutput - a model defined in Swagger""" # noqa: E501
47+
if _configuration is None:
48+
_configuration = Configuration()
49+
self._configuration = _configuration
50+
51+
self._source_locale = None
52+
self._target_locales = None
53+
self.discriminator = None
54+
55+
if source_locale is not None:
56+
self.source_locale = source_locale
57+
if target_locales is not None:
58+
self.target_locales = target_locales
59+
60+
@property
61+
def source_locale(self):
62+
"""Gets the source_locale of this DataForLanguagesOutput. # noqa: E501
63+
64+
65+
:return: The source_locale of this DataForLanguagesOutput. # noqa: E501
66+
:rtype: str
67+
"""
68+
return self._source_locale
69+
70+
@source_locale.setter
71+
def source_locale(self, source_locale):
72+
"""Sets the source_locale of this DataForLanguagesOutput.
73+
74+
75+
:param source_locale: The source_locale of this DataForLanguagesOutput. # noqa: E501
76+
:type: str
77+
"""
78+
79+
self._source_locale = source_locale
80+
81+
@property
82+
def target_locales(self):
83+
"""Gets the target_locales of this DataForLanguagesOutput. # noqa: E501
84+
85+
86+
:return: The target_locales of this DataForLanguagesOutput. # noqa: E501
87+
:rtype: list[str]
88+
"""
89+
return self._target_locales
90+
91+
@target_locales.setter
92+
def target_locales(self, target_locales):
93+
"""Sets the target_locales of this DataForLanguagesOutput.
94+
95+
96+
:param target_locales: The target_locales of this DataForLanguagesOutput. # noqa: E501
97+
:type: list[str]
98+
"""
99+
100+
self._target_locales = target_locales
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(DataForLanguagesOutput, 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, DataForLanguagesOutput):
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, DataForLanguagesOutput):
147+
return True
148+
149+
return self.to_dict() != other.to_dict()

0 commit comments

Comments
 (0)