Skip to content

Commit cfcc844

Browse files
author
ci_volc_sdk_gen
committed
feat: auto generate for vmp-Python-2021-03-03-online-2010-2026_01_05_20_28_40
1 parent 85e2fad commit cfcc844

23 files changed

+962
-88
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": "5.0.3",
3-
"meta_commit": "487c1300ffb24e485bab78fe84ff6579697838d4"
2+
"lasted": "5.0.4",
3+
"meta_commit": "fc58bee8f59c5355479ca410e764cb9134712087"
44
}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "volcengine-python-sdk"
3-
version = "5.0.3"
3+
version = "5.0.4"
44
authors = [
55
{name = "volc-engine", email = "volc-sdk-team@bytedance.com"},
66
]

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 = "5.0.3"
6+
VERSION = "5.0.4"
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
@@ -64,7 +64,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
6464
self.default_headers[header_name] = header_value
6565
self.cookie = cookie
6666
# Set default User-Agent.
67-
self.user_agent = 'volcstack-python-sdk/5.0.3'
67+
self.user_agent = 'volcstack-python-sdk/5.0.4'
6868
self.client_side_validation = configuration.client_side_validation
6969

7070
self.interceptor_chain = InterceptorChain()

volcenginesdkcore/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def to_debug_report(self):
272272
"OS: {env}\n" \
273273
"Python Version: {pyversion}\n" \
274274
"Version of the API: 0.1.0\n" \
275-
"SDK Package Version: 5.0.3".\
275+
"SDK Package Version: 5.0.4".\
276276
format(env=sys.platform, pyversion=sys.version)
277277

278278
@property

volcenginesdkvmp/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@
6262
from volcenginesdkvmp.models.cross_workspace_for_create_aggregate_workspace_input import CrossWorkspaceForCreateAggregateWorkspaceInput
6363
from volcenginesdkvmp.models.cross_workspace_for_get_aggregate_workspace_output import CrossWorkspaceForGetAggregateWorkspaceOutput
6464
from volcenginesdkvmp.models.cross_workspace_for_update_aggregate_workspace_input import CrossWorkspaceForUpdateAggregateWorkspaceInput
65-
from volcenginesdkvmp.models.custom_headers_for_create_external_prometheus_input import CustomHeadersForCreateExternalPrometheusInput
66-
from volcenginesdkvmp.models.custom_headers_for_get_external_prometheus_output import CustomHeadersForGetExternalPrometheusOutput
67-
from volcenginesdkvmp.models.custom_headers_for_update_external_prometheus_input import CustomHeadersForUpdateExternalPrometheusInput
65+
from volcenginesdkvmp.models.custom_header_kv_for_create_external_prometheus_input import CustomHeaderKVForCreateExternalPrometheusInput
66+
from volcenginesdkvmp.models.custom_header_kv_for_get_external_prometheus_output import CustomHeaderKVForGetExternalPrometheusOutput
67+
from volcenginesdkvmp.models.custom_header_kv_for_update_external_prometheus_input import CustomHeaderKVForUpdateExternalPrometheusInput
6868
from volcenginesdkvmp.models.data_for_delete_alerting_rules_output import DataForDeleteAlertingRulesOutput
6969
from volcenginesdkvmp.models.data_for_delete_contact_groups_output import DataForDeleteContactGroupsOutput
7070
from volcenginesdkvmp.models.data_for_delete_contacts_output import DataForDeleteContactsOutput
@@ -160,6 +160,8 @@
160160
from volcenginesdkvmp.models.get_notify_policy_response import GetNotifyPolicyResponse
161161
from volcenginesdkvmp.models.get_rule_file_request import GetRuleFileRequest
162162
from volcenginesdkvmp.models.get_rule_file_response import GetRuleFileResponse
163+
from volcenginesdkvmp.models.get_workspace_auth_info_request import GetWorkspaceAuthInfoRequest
164+
from volcenginesdkvmp.models.get_workspace_auth_info_response import GetWorkspaceAuthInfoResponse
163165
from volcenginesdkvmp.models.get_workspace_request import GetWorkspaceRequest
164166
from volcenginesdkvmp.models.get_workspace_response import GetWorkspaceResponse
165167
from volcenginesdkvmp.models.instance_type_for_get_aggregate_workspace_output import InstanceTypeForGetAggregateWorkspaceOutput

volcenginesdkvmp/api/vmp_api.py

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4010,6 +4010,103 @@ def get_workspace_with_http_info(self, body, **kwargs): # noqa: E501
40104010
_request_timeout=params.get('_request_timeout'),
40114011
collection_formats=collection_formats)
40124012

4013+
def get_workspace_auth_info(self, body, **kwargs): # noqa: E501
4014+
"""get_workspace_auth_info # noqa: E501
4015+
4016+
This method makes a synchronous HTTP request by default. To make an
4017+
asynchronous HTTP request, please pass async_req=True
4018+
>>> thread = api.get_workspace_auth_info(body, async_req=True)
4019+
>>> result = thread.get()
4020+
4021+
:param async_req bool
4022+
:param GetWorkspaceAuthInfoRequest body: (required)
4023+
:return: GetWorkspaceAuthInfoResponse
4024+
If the method is called asynchronously,
4025+
returns the request thread.
4026+
"""
4027+
kwargs['_return_http_data_only'] = True
4028+
if kwargs.get('async_req'):
4029+
return self.get_workspace_auth_info_with_http_info(body, **kwargs) # noqa: E501
4030+
else:
4031+
(data) = self.get_workspace_auth_info_with_http_info(body, **kwargs) # noqa: E501
4032+
return data
4033+
4034+
def get_workspace_auth_info_with_http_info(self, body, **kwargs): # noqa: E501
4035+
"""get_workspace_auth_info # noqa: E501
4036+
4037+
This method makes a synchronous HTTP request by default. To make an
4038+
asynchronous HTTP request, please pass async_req=True
4039+
>>> thread = api.get_workspace_auth_info_with_http_info(body, async_req=True)
4040+
>>> result = thread.get()
4041+
4042+
:param async_req bool
4043+
:param GetWorkspaceAuthInfoRequest body: (required)
4044+
:return: GetWorkspaceAuthInfoResponse
4045+
If the method is called asynchronously,
4046+
returns the request thread.
4047+
"""
4048+
4049+
all_params = ['body'] # noqa: E501
4050+
all_params.append('async_req')
4051+
all_params.append('_return_http_data_only')
4052+
all_params.append('_preload_content')
4053+
all_params.append('_request_timeout')
4054+
4055+
params = locals()
4056+
for key, val in six.iteritems(params['kwargs']):
4057+
if key not in all_params:
4058+
raise TypeError(
4059+
"Got an unexpected keyword argument '%s'"
4060+
" to method get_workspace_auth_info" % key
4061+
)
4062+
params[key] = val
4063+
del params['kwargs']
4064+
# verify the required parameter 'body' is set
4065+
if self.api_client.client_side_validation and ('body' not in params or
4066+
params['body'] is None): # noqa: E501
4067+
raise ValueError("Missing the required parameter `body` when calling `get_workspace_auth_info`") # noqa: E501
4068+
4069+
collection_formats = {}
4070+
4071+
path_params = {}
4072+
4073+
query_params = []
4074+
4075+
header_params = {}
4076+
4077+
form_params = []
4078+
local_var_files = {}
4079+
4080+
body_params = None
4081+
if 'body' in params:
4082+
body_params = params['body']
4083+
# HTTP header `Accept`
4084+
header_params['Accept'] = self.api_client.select_header_accept(
4085+
['application/json']) # noqa: E501
4086+
4087+
# HTTP header `Content-Type`
4088+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
4089+
['application/json']) # noqa: E501
4090+
4091+
# Authentication setting
4092+
auth_settings = ['volcengineSign'] # noqa: E501
4093+
4094+
return self.api_client.call_api(
4095+
'/GetWorkspaceAuthInfo/2021-03-03/vmp/post/application_json/', 'POST',
4096+
path_params,
4097+
query_params,
4098+
header_params,
4099+
body=body_params,
4100+
post_params=form_params,
4101+
files=local_var_files,
4102+
response_type='GetWorkspaceAuthInfoResponse', # noqa: E501
4103+
auth_settings=auth_settings,
4104+
async_req=params.get('async_req'),
4105+
_return_http_data_only=params.get('_return_http_data_only'),
4106+
_preload_content=params.get('_preload_content', True),
4107+
_request_timeout=params.get('_request_timeout'),
4108+
collection_formats=collection_formats)
4109+
40134110
def list_alert_samples(self, body, **kwargs): # noqa: E501
40144111
"""list_alert_samples # noqa: E501
40154112

volcenginesdkvmp/models/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@
5858
from volcenginesdkvmp.models.cross_workspace_for_create_aggregate_workspace_input import CrossWorkspaceForCreateAggregateWorkspaceInput
5959
from volcenginesdkvmp.models.cross_workspace_for_get_aggregate_workspace_output import CrossWorkspaceForGetAggregateWorkspaceOutput
6060
from volcenginesdkvmp.models.cross_workspace_for_update_aggregate_workspace_input import CrossWorkspaceForUpdateAggregateWorkspaceInput
61-
from volcenginesdkvmp.models.custom_headers_for_create_external_prometheus_input import CustomHeadersForCreateExternalPrometheusInput
62-
from volcenginesdkvmp.models.custom_headers_for_get_external_prometheus_output import CustomHeadersForGetExternalPrometheusOutput
63-
from volcenginesdkvmp.models.custom_headers_for_update_external_prometheus_input import CustomHeadersForUpdateExternalPrometheusInput
61+
from volcenginesdkvmp.models.custom_header_kv_for_create_external_prometheus_input import CustomHeaderKVForCreateExternalPrometheusInput
62+
from volcenginesdkvmp.models.custom_header_kv_for_get_external_prometheus_output import CustomHeaderKVForGetExternalPrometheusOutput
63+
from volcenginesdkvmp.models.custom_header_kv_for_update_external_prometheus_input import CustomHeaderKVForUpdateExternalPrometheusInput
6464
from volcenginesdkvmp.models.data_for_delete_alerting_rules_output import DataForDeleteAlertingRulesOutput
6565
from volcenginesdkvmp.models.data_for_delete_contact_groups_output import DataForDeleteContactGroupsOutput
6666
from volcenginesdkvmp.models.data_for_delete_contacts_output import DataForDeleteContactsOutput
@@ -156,6 +156,8 @@
156156
from volcenginesdkvmp.models.get_notify_policy_response import GetNotifyPolicyResponse
157157
from volcenginesdkvmp.models.get_rule_file_request import GetRuleFileRequest
158158
from volcenginesdkvmp.models.get_rule_file_response import GetRuleFileResponse
159+
from volcenginesdkvmp.models.get_workspace_auth_info_request import GetWorkspaceAuthInfoRequest
160+
from volcenginesdkvmp.models.get_workspace_auth_info_response import GetWorkspaceAuthInfoResponse
159161
from volcenginesdkvmp.models.get_workspace_request import GetWorkspaceRequest
160162
from volcenginesdkvmp.models.get_workspace_response import GetWorkspaceResponse
161163
from volcenginesdkvmp.models.instance_type_for_get_aggregate_workspace_output import InstanceTypeForGetAggregateWorkspaceOutput

volcenginesdkvmp/models/create_aggregate_workspace_request.py

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ class CreateAggregateWorkspaceRequest(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36+
'auth_type': 'str',
37+
'bearer_token': 'str',
3638
'cross_workspaces': 'list[CrossWorkspaceForCreateAggregateWorkspaceInput]',
3739
'description': 'str',
3840
'external_prometheus': 'list[str]',
@@ -47,6 +49,8 @@ class CreateAggregateWorkspaceRequest(object):
4749
}
4850

4951
attribute_map = {
52+
'auth_type': 'AuthType',
53+
'bearer_token': 'BearerToken',
5054
'cross_workspaces': 'CrossWorkspaces',
5155
'description': 'Description',
5256
'external_prometheus': 'ExternalPrometheus',
@@ -60,12 +64,14 @@ class CreateAggregateWorkspaceRequest(object):
6064
'workspaces': 'Workspaces'
6165
}
6266

63-
def __init__(self, cross_workspaces=None, description=None, external_prometheus=None, ignore_error=None, max_query_rate=None, name=None, password=None, project_name=None, tags=None, username=None, workspaces=None, _configuration=None): # noqa: E501
67+
def __init__(self, auth_type=None, bearer_token=None, cross_workspaces=None, description=None, external_prometheus=None, ignore_error=None, max_query_rate=None, name=None, password=None, project_name=None, tags=None, username=None, workspaces=None, _configuration=None): # noqa: E501
6468
"""CreateAggregateWorkspaceRequest - a model defined in Swagger""" # noqa: E501
6569
if _configuration is None:
6670
_configuration = Configuration()
6771
self._configuration = _configuration
6872

73+
self._auth_type = None
74+
self._bearer_token = None
6975
self._cross_workspaces = None
7076
self._description = None
7177
self._external_prometheus = None
@@ -79,6 +85,10 @@ def __init__(self, cross_workspaces=None, description=None, external_prometheus=
7985
self._workspaces = None
8086
self.discriminator = None
8187

88+
if auth_type is not None:
89+
self.auth_type = auth_type
90+
if bearer_token is not None:
91+
self.bearer_token = bearer_token
8292
if cross_workspaces is not None:
8393
self.cross_workspaces = cross_workspaces
8494
if description is not None:
@@ -101,6 +111,48 @@ def __init__(self, cross_workspaces=None, description=None, external_prometheus=
101111
if workspaces is not None:
102112
self.workspaces = workspaces
103113

114+
@property
115+
def auth_type(self):
116+
"""Gets the auth_type of this CreateAggregateWorkspaceRequest. # noqa: E501
117+
118+
119+
:return: The auth_type of this CreateAggregateWorkspaceRequest. # noqa: E501
120+
:rtype: str
121+
"""
122+
return self._auth_type
123+
124+
@auth_type.setter
125+
def auth_type(self, auth_type):
126+
"""Sets the auth_type of this CreateAggregateWorkspaceRequest.
127+
128+
129+
:param auth_type: The auth_type of this CreateAggregateWorkspaceRequest. # noqa: E501
130+
:type: str
131+
"""
132+
133+
self._auth_type = auth_type
134+
135+
@property
136+
def bearer_token(self):
137+
"""Gets the bearer_token of this CreateAggregateWorkspaceRequest. # noqa: E501
138+
139+
140+
:return: The bearer_token of this CreateAggregateWorkspaceRequest. # noqa: E501
141+
:rtype: str
142+
"""
143+
return self._bearer_token
144+
145+
@bearer_token.setter
146+
def bearer_token(self, bearer_token):
147+
"""Sets the bearer_token of this CreateAggregateWorkspaceRequest.
148+
149+
150+
:param bearer_token: The bearer_token of this CreateAggregateWorkspaceRequest. # noqa: E501
151+
:type: str
152+
"""
153+
154+
self._bearer_token = bearer_token
155+
104156
@property
105157
def cross_workspaces(self):
106158
"""Gets the cross_workspaces of this CreateAggregateWorkspaceRequest. # noqa: E501

volcenginesdkvmp/models/create_external_prometheus_request.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class CreateExternalPrometheusRequest(object):
3434
"""
3535
swagger_types = {
3636
'auth_type': 'str',
37-
'custom_headers': 'CustomHeadersForCreateExternalPrometheusInput',
37+
'custom_header_kvs': 'list[CustomHeaderKVForCreateExternalPrometheusInput]',
3838
'description': 'str',
3939
'encrypted_bearer_token': 'str',
4040
'encrypted_password': 'str',
@@ -51,7 +51,7 @@ class CreateExternalPrometheusRequest(object):
5151

5252
attribute_map = {
5353
'auth_type': 'AuthType',
54-
'custom_headers': 'CustomHeaders',
54+
'custom_header_kvs': 'CustomHeaderKVs',
5555
'description': 'Description',
5656
'encrypted_bearer_token': 'EncryptedBearerToken',
5757
'encrypted_password': 'EncryptedPassword',
@@ -66,14 +66,14 @@ class CreateExternalPrometheusRequest(object):
6666
'vpcid': 'VPCId'
6767
}
6868

69-
def __init__(self, auth_type=None, custom_headers=None, description=None, encrypted_bearer_token=None, encrypted_password=None, max_query_rate=None, name=None, project_name=None, subnet_ids=None, tags=None, type=None, url=None, username=None, vpcid=None, _configuration=None): # noqa: E501
69+
def __init__(self, auth_type=None, custom_header_kvs=None, description=None, encrypted_bearer_token=None, encrypted_password=None, max_query_rate=None, name=None, project_name=None, subnet_ids=None, tags=None, type=None, url=None, username=None, vpcid=None, _configuration=None): # noqa: E501
7070
"""CreateExternalPrometheusRequest - a model defined in Swagger""" # noqa: E501
7171
if _configuration is None:
7272
_configuration = Configuration()
7373
self._configuration = _configuration
7474

7575
self._auth_type = None
76-
self._custom_headers = None
76+
self._custom_header_kvs = None
7777
self._description = None
7878
self._encrypted_bearer_token = None
7979
self._encrypted_password = None
@@ -90,8 +90,8 @@ def __init__(self, auth_type=None, custom_headers=None, description=None, encryp
9090

9191
if auth_type is not None:
9292
self.auth_type = auth_type
93-
if custom_headers is not None:
94-
self.custom_headers = custom_headers
93+
if custom_header_kvs is not None:
94+
self.custom_header_kvs = custom_header_kvs
9595
if description is not None:
9696
self.description = description
9797
if encrypted_bearer_token is not None:
@@ -137,25 +137,25 @@ def auth_type(self, auth_type):
137137
self._auth_type = auth_type
138138

139139
@property
140-
def custom_headers(self):
141-
"""Gets the custom_headers of this CreateExternalPrometheusRequest. # noqa: E501
140+
def custom_header_kvs(self):
141+
"""Gets the custom_header_kvs of this CreateExternalPrometheusRequest. # noqa: E501
142142
143143
144-
:return: The custom_headers of this CreateExternalPrometheusRequest. # noqa: E501
145-
:rtype: CustomHeadersForCreateExternalPrometheusInput
144+
:return: The custom_header_kvs of this CreateExternalPrometheusRequest. # noqa: E501
145+
:rtype: list[CustomHeaderKVForCreateExternalPrometheusInput]
146146
"""
147-
return self._custom_headers
147+
return self._custom_header_kvs
148148

149-
@custom_headers.setter
150-
def custom_headers(self, custom_headers):
151-
"""Sets the custom_headers of this CreateExternalPrometheusRequest.
149+
@custom_header_kvs.setter
150+
def custom_header_kvs(self, custom_header_kvs):
151+
"""Sets the custom_header_kvs of this CreateExternalPrometheusRequest.
152152
153153
154-
:param custom_headers: The custom_headers of this CreateExternalPrometheusRequest. # noqa: E501
155-
:type: CustomHeadersForCreateExternalPrometheusInput
154+
:param custom_header_kvs: The custom_header_kvs of this CreateExternalPrometheusRequest. # noqa: E501
155+
:type: list[CustomHeaderKVForCreateExternalPrometheusInput]
156156
"""
157157

158-
self._custom_headers = custom_headers
158+
self._custom_header_kvs = custom_header_kvs
159159

160160
@property
161161
def description(self):

0 commit comments

Comments
 (0)