Skip to content

Commit d90a036

Browse files
author
ci_volc_sdk_gen
committed
feat: auto generate for livesaas-Python-2023-08-01-online-1489-2025_08_28_10_21_35
1 parent d6f9351 commit d90a036

File tree

9 files changed

+324
-5
lines changed

9 files changed

+324
-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.14",
3-
"meta_commit": "93c9640711600061c9f71895df3781d2dc070044"
2+
"lasted": "4.0.15",
3+
"meta_commit": "161fdc1d91a20ab3358ab150ea31f919aa38ad4f"
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.14"
6+
VERSION = "4.0.15"
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.14'
70+
self.user_agent = 'volcstack-python-sdk/4.0.15'
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.14".\
270+
"SDK Package Version: 4.0.15".\
271271
format(env=sys.platform, pyversion=sys.version)
272272

273273
@property

volcenginesdklivesaas20230801/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@
210210
from volcenginesdklivesaas20230801.models.generate_activity_stream_slice_response import GenerateActivityStreamSliceResponse
211211
from volcenginesdklivesaas20230801.models.get_account_aggregated_statistics_request import GetAccountAggregatedStatisticsRequest
212212
from volcenginesdklivesaas20230801.models.get_account_aggregated_statistics_response import GetAccountAggregatedStatisticsResponse
213+
from volcenginesdklivesaas20230801.models.get_account_real_time_online_number_request import GetAccountRealTimeOnlineNumberRequest
214+
from volcenginesdklivesaas20230801.models.get_account_real_time_online_number_response import GetAccountRealTimeOnlineNumberResponse
213215
from volcenginesdklivesaas20230801.models.get_account_user_track_data_request import GetAccountUserTrackDataRequest
214216
from volcenginesdklivesaas20230801.models.get_account_user_track_data_response import GetAccountUserTrackDataResponse
215217
from volcenginesdklivesaas20230801.models.get_activity_all_coupons_pick_data_request import GetActivityAllCouponsPickDataRequest

volcenginesdklivesaas20230801/api/livesaas20230801_api.py

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4786,6 +4786,103 @@ def get_account_aggregated_statistics_with_http_info(self, body, **kwargs): # n
47864786
_request_timeout=params.get('_request_timeout'),
47874787
collection_formats=collection_formats)
47884788

4789+
def get_account_real_time_online_number(self, body, **kwargs): # noqa: E501
4790+
"""get_account_real_time_online_number # noqa: E501
4791+
4792+
This method makes a synchronous HTTP request by default. To make an
4793+
asynchronous HTTP request, please pass async_req=True
4794+
>>> thread = api.get_account_real_time_online_number(body, async_req=True)
4795+
>>> result = thread.get()
4796+
4797+
:param async_req bool
4798+
:param GetAccountRealTimeOnlineNumberRequest body: (required)
4799+
:return: GetAccountRealTimeOnlineNumberResponse
4800+
If the method is called asynchronously,
4801+
returns the request thread.
4802+
"""
4803+
kwargs['_return_http_data_only'] = True
4804+
if kwargs.get('async_req'):
4805+
return self.get_account_real_time_online_number_with_http_info(body, **kwargs) # noqa: E501
4806+
else:
4807+
(data) = self.get_account_real_time_online_number_with_http_info(body, **kwargs) # noqa: E501
4808+
return data
4809+
4810+
def get_account_real_time_online_number_with_http_info(self, body, **kwargs): # noqa: E501
4811+
"""get_account_real_time_online_number # noqa: E501
4812+
4813+
This method makes a synchronous HTTP request by default. To make an
4814+
asynchronous HTTP request, please pass async_req=True
4815+
>>> thread = api.get_account_real_time_online_number_with_http_info(body, async_req=True)
4816+
>>> result = thread.get()
4817+
4818+
:param async_req bool
4819+
:param GetAccountRealTimeOnlineNumberRequest body: (required)
4820+
:return: GetAccountRealTimeOnlineNumberResponse
4821+
If the method is called asynchronously,
4822+
returns the request thread.
4823+
"""
4824+
4825+
all_params = ['body'] # noqa: E501
4826+
all_params.append('async_req')
4827+
all_params.append('_return_http_data_only')
4828+
all_params.append('_preload_content')
4829+
all_params.append('_request_timeout')
4830+
4831+
params = locals()
4832+
for key, val in six.iteritems(params['kwargs']):
4833+
if key not in all_params:
4834+
raise TypeError(
4835+
"Got an unexpected keyword argument '%s'"
4836+
" to method get_account_real_time_online_number" % key
4837+
)
4838+
params[key] = val
4839+
del params['kwargs']
4840+
# verify the required parameter 'body' is set
4841+
if self.api_client.client_side_validation and ('body' not in params or
4842+
params['body'] is None): # noqa: E501
4843+
raise ValueError("Missing the required parameter `body` when calling `get_account_real_time_online_number`") # noqa: E501
4844+
4845+
collection_formats = {}
4846+
4847+
path_params = {}
4848+
4849+
query_params = []
4850+
4851+
header_params = {}
4852+
4853+
form_params = []
4854+
local_var_files = {}
4855+
4856+
body_params = None
4857+
if 'body' in params:
4858+
body_params = params['body']
4859+
# HTTP header `Accept`
4860+
header_params['Accept'] = self.api_client.select_header_accept(
4861+
['application/json']) # noqa: E501
4862+
4863+
# HTTP header `Content-Type`
4864+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
4865+
['application/json']) # noqa: E501
4866+
4867+
# Authentication setting
4868+
auth_settings = ['volcengineSign'] # noqa: E501
4869+
4870+
return self.api_client.call_api(
4871+
'/GetAccountRealTimeOnlineNumber/2023-08-01/livesaas/post/application_json/', 'POST',
4872+
path_params,
4873+
query_params,
4874+
header_params,
4875+
body=body_params,
4876+
post_params=form_params,
4877+
files=local_var_files,
4878+
response_type='GetAccountRealTimeOnlineNumberResponse', # noqa: E501
4879+
auth_settings=auth_settings,
4880+
async_req=params.get('async_req'),
4881+
_return_http_data_only=params.get('_return_http_data_only'),
4882+
_preload_content=params.get('_preload_content', True),
4883+
_request_timeout=params.get('_request_timeout'),
4884+
collection_formats=collection_formats)
4885+
47894886
def get_account_user_track_data(self, body, **kwargs): # noqa: E501
47904887
"""get_account_user_track_data # noqa: E501
47914888

volcenginesdklivesaas20230801/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@
206206
from volcenginesdklivesaas20230801.models.generate_activity_stream_slice_response import GenerateActivityStreamSliceResponse
207207
from volcenginesdklivesaas20230801.models.get_account_aggregated_statistics_request import GetAccountAggregatedStatisticsRequest
208208
from volcenginesdklivesaas20230801.models.get_account_aggregated_statistics_response import GetAccountAggregatedStatisticsResponse
209+
from volcenginesdklivesaas20230801.models.get_account_real_time_online_number_request import GetAccountRealTimeOnlineNumberRequest
210+
from volcenginesdklivesaas20230801.models.get_account_real_time_online_number_response import GetAccountRealTimeOnlineNumberResponse
209211
from volcenginesdklivesaas20230801.models.get_account_user_track_data_request import GetAccountUserTrackDataRequest
210212
from volcenginesdklivesaas20230801.models.get_account_user_track_data_response import GetAccountUserTrackDataResponse
211213
from volcenginesdklivesaas20230801.models.get_activity_all_coupons_pick_data_request import GetActivityAllCouponsPickDataRequest
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
# coding: utf-8
2+
3+
"""
4+
livesaas20230801
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 GetAccountRealTimeOnlineNumberRequest(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+
}
37+
38+
attribute_map = {
39+
}
40+
41+
def __init__(self, _configuration=None): # noqa: E501
42+
"""GetAccountRealTimeOnlineNumberRequest - a model defined in Swagger""" # noqa: E501
43+
if _configuration is None:
44+
_configuration = Configuration()
45+
self._configuration = _configuration
46+
self.discriminator = None
47+
48+
def to_dict(self):
49+
"""Returns the model properties as a dict"""
50+
result = {}
51+
52+
for attr, _ in six.iteritems(self.swagger_types):
53+
value = getattr(self, attr)
54+
if isinstance(value, list):
55+
result[attr] = list(map(
56+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
57+
value
58+
))
59+
elif hasattr(value, "to_dict"):
60+
result[attr] = value.to_dict()
61+
elif isinstance(value, dict):
62+
result[attr] = dict(map(
63+
lambda item: (item[0], item[1].to_dict())
64+
if hasattr(item[1], "to_dict") else item,
65+
value.items()
66+
))
67+
else:
68+
result[attr] = value
69+
if issubclass(GetAccountRealTimeOnlineNumberRequest, dict):
70+
for key, value in self.items():
71+
result[key] = value
72+
73+
return result
74+
75+
def to_str(self):
76+
"""Returns the string representation of the model"""
77+
return pprint.pformat(self.to_dict())
78+
79+
def __repr__(self):
80+
"""For `print` and `pprint`"""
81+
return self.to_str()
82+
83+
def __eq__(self, other):
84+
"""Returns true if both objects are equal"""
85+
if not isinstance(other, GetAccountRealTimeOnlineNumberRequest):
86+
return False
87+
88+
return self.to_dict() == other.to_dict()
89+
90+
def __ne__(self, other):
91+
"""Returns true if both objects are not equal"""
92+
if not isinstance(other, GetAccountRealTimeOnlineNumberRequest):
93+
return True
94+
95+
return self.to_dict() != other.to_dict()
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
# coding: utf-8
2+
3+
"""
4+
livesaas20230801
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 GetAccountRealTimeOnlineNumberResponse(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+
'uv': 'int'
37+
}
38+
39+
attribute_map = {
40+
'uv': 'UV'
41+
}
42+
43+
def __init__(self, uv=None, _configuration=None): # noqa: E501
44+
"""GetAccountRealTimeOnlineNumberResponse - a model defined in Swagger""" # noqa: E501
45+
if _configuration is None:
46+
_configuration = Configuration()
47+
self._configuration = _configuration
48+
49+
self._uv = None
50+
self.discriminator = None
51+
52+
if uv is not None:
53+
self.uv = uv
54+
55+
@property
56+
def uv(self):
57+
"""Gets the uv of this GetAccountRealTimeOnlineNumberResponse. # noqa: E501
58+
59+
60+
:return: The uv of this GetAccountRealTimeOnlineNumberResponse. # noqa: E501
61+
:rtype: int
62+
"""
63+
return self._uv
64+
65+
@uv.setter
66+
def uv(self, uv):
67+
"""Sets the uv of this GetAccountRealTimeOnlineNumberResponse.
68+
69+
70+
:param uv: The uv of this GetAccountRealTimeOnlineNumberResponse. # noqa: E501
71+
:type: int
72+
"""
73+
74+
self._uv = uv
75+
76+
def to_dict(self):
77+
"""Returns the model properties as a dict"""
78+
result = {}
79+
80+
for attr, _ in six.iteritems(self.swagger_types):
81+
value = getattr(self, attr)
82+
if isinstance(value, list):
83+
result[attr] = list(map(
84+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
85+
value
86+
))
87+
elif hasattr(value, "to_dict"):
88+
result[attr] = value.to_dict()
89+
elif isinstance(value, dict):
90+
result[attr] = dict(map(
91+
lambda item: (item[0], item[1].to_dict())
92+
if hasattr(item[1], "to_dict") else item,
93+
value.items()
94+
))
95+
else:
96+
result[attr] = value
97+
if issubclass(GetAccountRealTimeOnlineNumberResponse, dict):
98+
for key, value in self.items():
99+
result[key] = value
100+
101+
return result
102+
103+
def to_str(self):
104+
"""Returns the string representation of the model"""
105+
return pprint.pformat(self.to_dict())
106+
107+
def __repr__(self):
108+
"""For `print` and `pprint`"""
109+
return self.to_str()
110+
111+
def __eq__(self, other):
112+
"""Returns true if both objects are equal"""
113+
if not isinstance(other, GetAccountRealTimeOnlineNumberResponse):
114+
return False
115+
116+
return self.to_dict() == other.to_dict()
117+
118+
def __ne__(self, other):
119+
"""Returns true if both objects are not equal"""
120+
if not isinstance(other, GetAccountRealTimeOnlineNumberResponse):
121+
return True
122+
123+
return self.to_dict() != other.to_dict()

0 commit comments

Comments
 (0)