Skip to content

Commit 6823719

Browse files
author
BitsAdmin
committed
Merge 'emr-Python-2023-08-15-online-2387-2026_03_21_17_37_32' into 'integration_2026-03-24_1129258250242'
feat: [development task] emr-2387-Python (2214124) See merge request: !1120
2 parents 7ef7eb9 + 7944851 commit 6823719

12 files changed

Lines changed: 884 additions & 7 deletions

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.19",
3-
"meta_commit": "20c98aa4b89105e22fbc5d6034a5a3458a289d16"
2+
"lasted": "5.0.20",
3+
"meta_commit": "1a5af1e915812b284fb857948e1cd8a664b60d14"
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.19"
3+
version = "5.0.20"
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.19"
6+
VERSION = "5.0.20"
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.19'
67+
self.user_agent = 'volcstack-python-sdk/5.0.20'
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
@@ -291,7 +291,7 @@ def to_debug_report(self):
291291
"OS: {env}\n" \
292292
"Python Version: {pyversion}\n" \
293293
"Version of the API: 0.1.0\n" \
294-
"SDK Package Version: 5.0.19".\
294+
"SDK Package Version: 5.0.20".\
295295
format(env=sys.platform, pyversion=sys.version)
296296

297297
@property

volcenginesdkemr/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
from volcenginesdkemr.models.item_for_list_clusters_output import ItemForListClustersOutput
6565
from volcenginesdkemr.models.item_for_list_component_instances_output import ItemForListComponentInstancesOutput
6666
from volcenginesdkemr.models.item_for_list_components_output import ItemForListComponentsOutput
67+
from volcenginesdkemr.models.item_for_list_node_group_elastic_scheduled_instances_output import ItemForListNodeGroupElasticScheduledInstancesOutput
6768
from volcenginesdkemr.models.item_for_list_node_groups_output import ItemForListNodeGroupsOutput
6869
from volcenginesdkemr.models.item_for_list_nodes_output import ItemForListNodesOutput
6970
from volcenginesdkemr.models.item_for_list_operations_output import ItemForListOperationsOutput
@@ -85,6 +86,8 @@
8586
from volcenginesdkemr.models.list_component_instances_response import ListComponentInstancesResponse
8687
from volcenginesdkemr.models.list_components_request import ListComponentsRequest
8788
from volcenginesdkemr.models.list_components_response import ListComponentsResponse
89+
from volcenginesdkemr.models.list_node_group_elastic_scheduled_instances_request import ListNodeGroupElasticScheduledInstancesRequest
90+
from volcenginesdkemr.models.list_node_group_elastic_scheduled_instances_response import ListNodeGroupElasticScheduledInstancesResponse
8891
from volcenginesdkemr.models.list_node_groups_request import ListNodeGroupsRequest
8992
from volcenginesdkemr.models.list_node_groups_response import ListNodeGroupsResponse
9093
from volcenginesdkemr.models.list_nodes_request import ListNodesRequest

volcenginesdkemr/api/emr_api.py

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1876,6 +1876,103 @@ def list_components_with_http_info(self, body, **kwargs): # noqa: E501
18761876
_request_timeout=params.get('_request_timeout'),
18771877
collection_formats=collection_formats)
18781878

1879+
def list_node_group_elastic_scheduled_instances(self, body, **kwargs): # noqa: E501
1880+
"""list_node_group_elastic_scheduled_instances # noqa: E501
1881+
1882+
This method makes a synchronous HTTP request by default. To make an
1883+
asynchronous HTTP request, please pass async_req=True
1884+
>>> thread = api.list_node_group_elastic_scheduled_instances(body, async_req=True)
1885+
>>> result = thread.get()
1886+
1887+
:param async_req bool
1888+
:param ListNodeGroupElasticScheduledInstancesRequest body: (required)
1889+
:return: ListNodeGroupElasticScheduledInstancesResponse
1890+
If the method is called asynchronously,
1891+
returns the request thread.
1892+
"""
1893+
kwargs['_return_http_data_only'] = True
1894+
if kwargs.get('async_req'):
1895+
return self.list_node_group_elastic_scheduled_instances_with_http_info(body, **kwargs) # noqa: E501
1896+
else:
1897+
(data) = self.list_node_group_elastic_scheduled_instances_with_http_info(body, **kwargs) # noqa: E501
1898+
return data
1899+
1900+
def list_node_group_elastic_scheduled_instances_with_http_info(self, body, **kwargs): # noqa: E501
1901+
"""list_node_group_elastic_scheduled_instances # noqa: E501
1902+
1903+
This method makes a synchronous HTTP request by default. To make an
1904+
asynchronous HTTP request, please pass async_req=True
1905+
>>> thread = api.list_node_group_elastic_scheduled_instances_with_http_info(body, async_req=True)
1906+
>>> result = thread.get()
1907+
1908+
:param async_req bool
1909+
:param ListNodeGroupElasticScheduledInstancesRequest body: (required)
1910+
:return: ListNodeGroupElasticScheduledInstancesResponse
1911+
If the method is called asynchronously,
1912+
returns the request thread.
1913+
"""
1914+
1915+
all_params = ['body'] # noqa: E501
1916+
all_params.append('async_req')
1917+
all_params.append('_return_http_data_only')
1918+
all_params.append('_preload_content')
1919+
all_params.append('_request_timeout')
1920+
1921+
params = locals()
1922+
for key, val in six.iteritems(params['kwargs']):
1923+
if key not in all_params:
1924+
raise TypeError(
1925+
"Got an unexpected keyword argument '%s'"
1926+
" to method list_node_group_elastic_scheduled_instances" % key
1927+
)
1928+
params[key] = val
1929+
del params['kwargs']
1930+
# verify the required parameter 'body' is set
1931+
if self.api_client.client_side_validation and ('body' not in params or
1932+
params['body'] is None): # noqa: E501
1933+
raise ValueError("Missing the required parameter `body` when calling `list_node_group_elastic_scheduled_instances`") # noqa: E501
1934+
1935+
collection_formats = {}
1936+
1937+
path_params = {}
1938+
1939+
query_params = []
1940+
1941+
header_params = {}
1942+
1943+
form_params = []
1944+
local_var_files = {}
1945+
1946+
body_params = None
1947+
if 'body' in params:
1948+
body_params = params['body']
1949+
# HTTP header `Accept`
1950+
header_params['Accept'] = self.api_client.select_header_accept(
1951+
['application/json']) # noqa: E501
1952+
1953+
# HTTP header `Content-Type`
1954+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1955+
['application/json']) # noqa: E501
1956+
1957+
# Authentication setting
1958+
auth_settings = ['volcengineSign'] # noqa: E501
1959+
1960+
return self.api_client.call_api(
1961+
'/ListNodeGroupElasticScheduledInstances/2023-08-15/emr/post/application_json/', 'POST',
1962+
path_params,
1963+
query_params,
1964+
header_params,
1965+
body=body_params,
1966+
post_params=form_params,
1967+
files=local_var_files,
1968+
response_type='ListNodeGroupElasticScheduledInstancesResponse', # noqa: E501
1969+
auth_settings=auth_settings,
1970+
async_req=params.get('async_req'),
1971+
_return_http_data_only=params.get('_return_http_data_only'),
1972+
_preload_content=params.get('_preload_content', True),
1973+
_request_timeout=params.get('_request_timeout'),
1974+
collection_formats=collection_formats)
1975+
18791976
def list_node_groups(self, body, **kwargs): # noqa: E501
18801977
"""list_node_groups # noqa: E501
18811978

volcenginesdkemr/models/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
from volcenginesdkemr.models.item_for_list_clusters_output import ItemForListClustersOutput
6161
from volcenginesdkemr.models.item_for_list_component_instances_output import ItemForListComponentInstancesOutput
6262
from volcenginesdkemr.models.item_for_list_components_output import ItemForListComponentsOutput
63+
from volcenginesdkemr.models.item_for_list_node_group_elastic_scheduled_instances_output import ItemForListNodeGroupElasticScheduledInstancesOutput
6364
from volcenginesdkemr.models.item_for_list_node_groups_output import ItemForListNodeGroupsOutput
6465
from volcenginesdkemr.models.item_for_list_nodes_output import ItemForListNodesOutput
6566
from volcenginesdkemr.models.item_for_list_operations_output import ItemForListOperationsOutput
@@ -81,6 +82,8 @@
8182
from volcenginesdkemr.models.list_component_instances_response import ListComponentInstancesResponse
8283
from volcenginesdkemr.models.list_components_request import ListComponentsRequest
8384
from volcenginesdkemr.models.list_components_response import ListComponentsResponse
85+
from volcenginesdkemr.models.list_node_group_elastic_scheduled_instances_request import ListNodeGroupElasticScheduledInstancesRequest
86+
from volcenginesdkemr.models.list_node_group_elastic_scheduled_instances_response import ListNodeGroupElasticScheduledInstancesResponse
8487
from volcenginesdkemr.models.list_node_groups_request import ListNodeGroupsRequest
8588
from volcenginesdkemr.models.list_node_groups_response import ListNodeGroupsResponse
8689
from volcenginesdkemr.models.list_nodes_request import ListNodesRequest

0 commit comments

Comments
 (0)