Skip to content

Commit 7d9bf71

Browse files
author
BitsAdmin
committed
Merge 'insight-Python-2025-09-05-online-2026-2026_01_12_14_41_21' into 'integration_2026-01-15_1104105318146'
feat: [development task] insight-2026-Python (2032464) See merge request: !1027
2 parents 4f9f29b + 0c95245 commit 7d9bf71

File tree

8 files changed

+1534
-0
lines changed

8 files changed

+1534
-0
lines changed

volcenginesdkinsight/__init__.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# coding: utf-8
2+
3+
# flake8: noqa
4+
5+
"""
6+
insight
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 volcenginesdkinsight.api.insight_api import INSIGHTApi
20+
21+
# import models into sdk package
22+
from volcenginesdkinsight.models.item_doc_for_pull_post_output import ItemDocForPullPostOutput
23+
from volcenginesdkinsight.models.location_for_pull_post_output import LocationForPullPostOutput
24+
from volcenginesdkinsight.models.pull_post_request import PullPostRequest
25+
from volcenginesdkinsight.models.pull_post_response import PullPostResponse
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 volcenginesdkinsight.api.insight_api import INSIGHTApi
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+
insight
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 INSIGHTApi(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 pull_post(self, body, **kwargs): # noqa: E501
37+
"""pull_post # 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.pull_post(body, async_req=True)
42+
>>> result = thread.get()
43+
44+
:param async_req bool
45+
:param PullPostRequest body: (required)
46+
:return: PullPostResponse
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.pull_post_with_http_info(body, **kwargs) # noqa: E501
53+
else:
54+
(data) = self.pull_post_with_http_info(body, **kwargs) # noqa: E501
55+
return data
56+
57+
def pull_post_with_http_info(self, body, **kwargs): # noqa: E501
58+
"""pull_post # 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.pull_post_with_http_info(body, async_req=True)
63+
>>> result = thread.get()
64+
65+
:param async_req bool
66+
:param PullPostRequest body: (required)
67+
:return: PullPostResponse
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 pull_post" % 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 `pull_post`") # 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+
'/PullPost/2025-09-05/insight/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='PullPostResponse', # 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: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# coding: utf-8
2+
3+
# flake8: noqa
4+
"""
5+
insight
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 volcenginesdkinsight.models.item_doc_for_pull_post_output import ItemDocForPullPostOutput
19+
from volcenginesdkinsight.models.location_for_pull_post_output import LocationForPullPostOutput
20+
from volcenginesdkinsight.models.pull_post_request import PullPostRequest
21+
from volcenginesdkinsight.models.pull_post_response import PullPostResponse

0 commit comments

Comments
 (0)