Skip to content

Commit a4e0add

Browse files
author
BitsAdmin
committed
Merge branch 'tis-Python-2024-07-31-online-1338-2025_07_01_14_05_27' into 'integration_2025-07-10_995600327426'
feat: [development task] tis-1338-Python (1438942) See merge request iaasng/volcengine-python-sdk!707
2 parents 04659ab + e99efb2 commit a4e0add

File tree

6 files changed

+65
-262
lines changed

6 files changed

+65
-262
lines changed

volcenginesdktis/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
from volcenginesdktis.models.buy_resource_package_response import BuyResourcePackageResponse
2525
from volcenginesdktis.models.clear_device_long_memory_request import ClearDeviceLongMemoryRequest
2626
from volcenginesdktis.models.clear_device_long_memory_response import ClearDeviceLongMemoryResponse
27-
from volcenginesdktis.models.get_access_token_request import GetAccessTokenRequest
28-
from volcenginesdktis.models.get_access_token_response import GetAccessTokenResponse
27+
from volcenginesdktis.models.device_info_list_for_get_quota_info_output import DeviceInfoListForGetQuotaInfoOutput
2928
from volcenginesdktis.models.get_agent_list_request import GetAgentListRequest
3029
from volcenginesdktis.models.get_agent_list_response import GetAgentListResponse
3130
from volcenginesdktis.models.get_quota_info_request import GetQuotaInfoRequest

volcenginesdktis/api/tis_api.py

Lines changed: 0 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -227,103 +227,6 @@ def clear_device_long_memory_with_http_info(self, body, **kwargs): # noqa: E501
227227
_request_timeout=params.get('_request_timeout'),
228228
collection_formats=collection_formats)
229229

230-
def get_access_token(self, body, **kwargs): # noqa: E501
231-
"""get_access_token # noqa: E501
232-
233-
This method makes a synchronous HTTP request by default. To make an
234-
asynchronous HTTP request, please pass async_req=True
235-
>>> thread = api.get_access_token(body, async_req=True)
236-
>>> result = thread.get()
237-
238-
:param async_req bool
239-
:param GetAccessTokenRequest body: (required)
240-
:return: GetAccessTokenResponse
241-
If the method is called asynchronously,
242-
returns the request thread.
243-
"""
244-
kwargs['_return_http_data_only'] = True
245-
if kwargs.get('async_req'):
246-
return self.get_access_token_with_http_info(body, **kwargs) # noqa: E501
247-
else:
248-
(data) = self.get_access_token_with_http_info(body, **kwargs) # noqa: E501
249-
return data
250-
251-
def get_access_token_with_http_info(self, body, **kwargs): # noqa: E501
252-
"""get_access_token # noqa: E501
253-
254-
This method makes a synchronous HTTP request by default. To make an
255-
asynchronous HTTP request, please pass async_req=True
256-
>>> thread = api.get_access_token_with_http_info(body, async_req=True)
257-
>>> result = thread.get()
258-
259-
:param async_req bool
260-
:param GetAccessTokenRequest body: (required)
261-
:return: GetAccessTokenResponse
262-
If the method is called asynchronously,
263-
returns the request thread.
264-
"""
265-
266-
all_params = ['body'] # noqa: E501
267-
all_params.append('async_req')
268-
all_params.append('_return_http_data_only')
269-
all_params.append('_preload_content')
270-
all_params.append('_request_timeout')
271-
272-
params = locals()
273-
for key, val in six.iteritems(params['kwargs']):
274-
if key not in all_params:
275-
raise TypeError(
276-
"Got an unexpected keyword argument '%s'"
277-
" to method get_access_token" % key
278-
)
279-
params[key] = val
280-
del params['kwargs']
281-
# verify the required parameter 'body' is set
282-
if self.api_client.client_side_validation and ('body' not in params or
283-
params['body'] is None): # noqa: E501
284-
raise ValueError("Missing the required parameter `body` when calling `get_access_token`") # noqa: E501
285-
286-
collection_formats = {}
287-
288-
path_params = {}
289-
290-
query_params = []
291-
292-
header_params = {}
293-
294-
form_params = []
295-
local_var_files = {}
296-
297-
body_params = None
298-
if 'body' in params:
299-
body_params = params['body']
300-
# HTTP header `Accept`
301-
header_params['Accept'] = self.api_client.select_header_accept(
302-
['application/json']) # noqa: E501
303-
304-
# HTTP header `Content-Type`
305-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
306-
['application/json']) # noqa: E501
307-
308-
# Authentication setting
309-
auth_settings = ['volcengineSign'] # noqa: E501
310-
311-
return self.api_client.call_api(
312-
'/GetAccessToken/2024-07-31/tis/post/application_json/', 'POST',
313-
path_params,
314-
query_params,
315-
header_params,
316-
body=body_params,
317-
post_params=form_params,
318-
files=local_var_files,
319-
response_type='GetAccessTokenResponse', # noqa: E501
320-
auth_settings=auth_settings,
321-
async_req=params.get('async_req'),
322-
_return_http_data_only=params.get('_return_http_data_only'),
323-
_preload_content=params.get('_preload_content', True),
324-
_request_timeout=params.get('_request_timeout'),
325-
collection_formats=collection_formats)
326-
327230
def get_agent_list(self, body, **kwargs): # noqa: E501
328231
"""get_agent_list # noqa: E501
329232

volcenginesdktis/models/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
from volcenginesdktis.models.buy_resource_package_response import BuyResourcePackageResponse
2121
from volcenginesdktis.models.clear_device_long_memory_request import ClearDeviceLongMemoryRequest
2222
from volcenginesdktis.models.clear_device_long_memory_response import ClearDeviceLongMemoryResponse
23-
from volcenginesdktis.models.get_access_token_request import GetAccessTokenRequest
24-
from volcenginesdktis.models.get_access_token_response import GetAccessTokenResponse
23+
from volcenginesdktis.models.device_info_list_for_get_quota_info_output import DeviceInfoListForGetQuotaInfoOutput
2524
from volcenginesdktis.models.get_agent_list_request import GetAgentListRequest
2625
from volcenginesdktis.models.get_agent_list_response import GetAgentListResponse
2726
from volcenginesdktis.models.get_quota_info_request import GetQuotaInfoRequest

volcenginesdktis/models/get_access_token_response.py renamed to volcenginesdktis/models/device_info_list_for_get_quota_info_output.py

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from volcenginesdkcore.configuration import Configuration
2020

2121

22-
class GetAccessTokenResponse(object):
22+
class DeviceInfoListForGetQuotaInfoOutput(object):
2323
"""NOTE: This class is auto generated by the swagger code generator program.
2424
2525
Do not edit the class manually.
@@ -33,71 +33,71 @@ class GetAccessTokenResponse(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36-
'access_token': 'str',
37-
'expire_time': 'int'
36+
'field_name': 'str',
37+
'field_value': 'str'
3838
}
3939

4040
attribute_map = {
41-
'access_token': 'AccessToken',
42-
'expire_time': 'ExpireTime'
41+
'field_name': 'fieldName',
42+
'field_value': 'fieldValue'
4343
}
4444

45-
def __init__(self, access_token=None, expire_time=None, _configuration=None): # noqa: E501
46-
"""GetAccessTokenResponse - a model defined in Swagger""" # noqa: E501
45+
def __init__(self, field_name=None, field_value=None, _configuration=None): # noqa: E501
46+
"""DeviceInfoListForGetQuotaInfoOutput - a model defined in Swagger""" # noqa: E501
4747
if _configuration is None:
4848
_configuration = Configuration()
4949
self._configuration = _configuration
5050

51-
self._access_token = None
52-
self._expire_time = None
51+
self._field_name = None
52+
self._field_value = None
5353
self.discriminator = None
5454

55-
if access_token is not None:
56-
self.access_token = access_token
57-
if expire_time is not None:
58-
self.expire_time = expire_time
55+
if field_name is not None:
56+
self.field_name = field_name
57+
if field_value is not None:
58+
self.field_value = field_value
5959

6060
@property
61-
def access_token(self):
62-
"""Gets the access_token of this GetAccessTokenResponse. # noqa: E501
61+
def field_name(self):
62+
"""Gets the field_name of this DeviceInfoListForGetQuotaInfoOutput. # noqa: E501
6363
6464
65-
:return: The access_token of this GetAccessTokenResponse. # noqa: E501
65+
:return: The field_name of this DeviceInfoListForGetQuotaInfoOutput. # noqa: E501
6666
:rtype: str
6767
"""
68-
return self._access_token
68+
return self._field_name
6969

70-
@access_token.setter
71-
def access_token(self, access_token):
72-
"""Sets the access_token of this GetAccessTokenResponse.
70+
@field_name.setter
71+
def field_name(self, field_name):
72+
"""Sets the field_name of this DeviceInfoListForGetQuotaInfoOutput.
7373
7474
75-
:param access_token: The access_token of this GetAccessTokenResponse. # noqa: E501
75+
:param field_name: The field_name of this DeviceInfoListForGetQuotaInfoOutput. # noqa: E501
7676
:type: str
7777
"""
7878

79-
self._access_token = access_token
79+
self._field_name = field_name
8080

8181
@property
82-
def expire_time(self):
83-
"""Gets the expire_time of this GetAccessTokenResponse. # noqa: E501
82+
def field_value(self):
83+
"""Gets the field_value of this DeviceInfoListForGetQuotaInfoOutput. # noqa: E501
8484
8585
86-
:return: The expire_time of this GetAccessTokenResponse. # noqa: E501
87-
:rtype: int
86+
:return: The field_value of this DeviceInfoListForGetQuotaInfoOutput. # noqa: E501
87+
:rtype: str
8888
"""
89-
return self._expire_time
89+
return self._field_value
9090

91-
@expire_time.setter
92-
def expire_time(self, expire_time):
93-
"""Sets the expire_time of this GetAccessTokenResponse.
91+
@field_value.setter
92+
def field_value(self, field_value):
93+
"""Sets the field_value of this DeviceInfoListForGetQuotaInfoOutput.
9494
9595
96-
:param expire_time: The expire_time of this GetAccessTokenResponse. # noqa: E501
97-
:type: int
96+
:param field_value: The field_value of this DeviceInfoListForGetQuotaInfoOutput. # noqa: E501
97+
:type: str
9898
"""
9999

100-
self._expire_time = expire_time
100+
self._field_value = field_value
101101

102102
def to_dict(self):
103103
"""Returns the model properties as a dict"""
@@ -120,7 +120,7 @@ def to_dict(self):
120120
))
121121
else:
122122
result[attr] = value
123-
if issubclass(GetAccessTokenResponse, dict):
123+
if issubclass(DeviceInfoListForGetQuotaInfoOutput, dict):
124124
for key, value in self.items():
125125
result[key] = value
126126

@@ -136,14 +136,14 @@ def __repr__(self):
136136

137137
def __eq__(self, other):
138138
"""Returns true if both objects are equal"""
139-
if not isinstance(other, GetAccessTokenResponse):
139+
if not isinstance(other, DeviceInfoListForGetQuotaInfoOutput):
140140
return False
141141

142142
return self.to_dict() == other.to_dict()
143143

144144
def __ne__(self, other):
145145
"""Returns true if both objects are not equal"""
146-
if not isinstance(other, GetAccessTokenResponse):
146+
if not isinstance(other, DeviceInfoListForGetQuotaInfoOutput):
147147
return True
148148

149149
return self.to_dict() != other.to_dict()

volcenginesdktis/models/get_access_token_request.py

Lines changed: 0 additions & 124 deletions
This file was deleted.

0 commit comments

Comments
 (0)