Skip to content

Commit 53f5bd8

Browse files
committed
Merge 'integration_2025-03-06_777772483330' into 'master'
merge branch integration_2025-03-06_777772483330 into master See merge request: !529
2 parents 1dca137 + 93286ed commit 53f5bd8

File tree

160 files changed

+22407
-633
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+22407
-633
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": "1.0.126",
3-
"meta_commit": "793d9102f87c8e9af5029920b8645fb983518914"
2+
"lasted": "1.0.127",
3+
"meta_commit": "aab29deec4400a0c26fb7c8794f29adb59a4e29f"
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 = "1.0.126"
6+
VERSION = "1.0.127"
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/1.0.126'
70+
self.user_agent = 'volcstack-python-sdk/1.0.127'
7171
self.client_side_validation = configuration.client_side_validation
7272

7373
def __del__(self):

volcenginesdkcore/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,5 +221,5 @@ def to_debug_report(self):
221221
"OS: {env}\n"\
222222
"Python Version: {pyversion}\n"\
223223
"Version of the API: 0.1.0\n"\
224-
"SDK Package Version: 1.0.126".\
224+
"SDK Package Version: 1.0.127".\
225225
format(env=sys.platform, pyversion=sys.version)

volcenginesdkecs/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
from volcenginesdkecs.models.create_dedicated_host_cluster_response import CreateDedicatedHostClusterResponse
4444
from volcenginesdkecs.models.create_deployment_set_request import CreateDeploymentSetRequest
4545
from volcenginesdkecs.models.create_deployment_set_response import CreateDeploymentSetResponse
46+
from volcenginesdkecs.models.create_hpc_cluster_request import CreateHpcClusterRequest
47+
from volcenginesdkecs.models.create_hpc_cluster_response import CreateHpcClusterResponse
4648
from volcenginesdkecs.models.create_image_request import CreateImageRequest
4749
from volcenginesdkecs.models.create_image_response import CreateImageResponse
4850
from volcenginesdkecs.models.create_key_pair_request import CreateKeyPairRequest
@@ -63,6 +65,8 @@
6365
from volcenginesdkecs.models.delete_dedicated_host_cluster_response import DeleteDedicatedHostClusterResponse
6466
from volcenginesdkecs.models.delete_deployment_set_request import DeleteDeploymentSetRequest
6567
from volcenginesdkecs.models.delete_deployment_set_response import DeleteDeploymentSetResponse
68+
from volcenginesdkecs.models.delete_hpc_cluster_request import DeleteHpcClusterRequest
69+
from volcenginesdkecs.models.delete_hpc_cluster_response import DeleteHpcClusterResponse
6670
from volcenginesdkecs.models.delete_images_request import DeleteImagesRequest
6771
from volcenginesdkecs.models.delete_images_response import DeleteImagesResponse
6872
from volcenginesdkecs.models.delete_instance_request import DeleteInstanceRequest
@@ -96,6 +100,8 @@
96100
from volcenginesdkecs.models.describe_deployment_sets_response import DescribeDeploymentSetsResponse
97101
from volcenginesdkecs.models.describe_event_types_request import DescribeEventTypesRequest
98102
from volcenginesdkecs.models.describe_event_types_response import DescribeEventTypesResponse
103+
from volcenginesdkecs.models.describe_hpc_clusters_request import DescribeHpcClustersRequest
104+
from volcenginesdkecs.models.describe_hpc_clusters_response import DescribeHpcClustersResponse
99105
from volcenginesdkecs.models.describe_image_share_permission_request import DescribeImageSharePermissionRequest
100106
from volcenginesdkecs.models.describe_image_share_permission_response import DescribeImageSharePermissionResponse
101107
from volcenginesdkecs.models.describe_images_request import DescribeImagesRequest
@@ -183,6 +189,7 @@
183189
from volcenginesdkecs.models.gpu_device_for_describe_instance_types_output import GpuDeviceForDescribeInstanceTypesOutput
184190
from volcenginesdkecs.models.gpu_for_describe_instance_types_output import GpuForDescribeInstanceTypesOutput
185191
from volcenginesdkecs.models.gpu_for_describe_spot_advice_input import GpuForDescribeSpotAdviceInput
192+
from volcenginesdkecs.models.hpc_cluster_for_describe_hpc_clusters_output import HpcClusterForDescribeHpcClustersOutput
186193
from volcenginesdkecs.models.image_for_describe_images_output import ImageForDescribeImagesOutput
187194
from volcenginesdkecs.models.import_image_request import ImportImageRequest
188195
from volcenginesdkecs.models.import_image_response import ImportImageResponse

volcenginesdkecs/api/ecs_api.py

Lines changed: 291 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,103 @@ def create_deployment_set_with_http_info(self, body, **kwargs): # noqa: E501
712712
_request_timeout=params.get('_request_timeout'),
713713
collection_formats=collection_formats)
714714

715+
def create_hpc_cluster(self, body, **kwargs): # noqa: E501
716+
"""create_hpc_cluster # noqa: E501
717+
718+
This method makes a synchronous HTTP request by default. To make an
719+
asynchronous HTTP request, please pass async_req=True
720+
>>> thread = api.create_hpc_cluster(body, async_req=True)
721+
>>> result = thread.get()
722+
723+
:param async_req bool
724+
:param CreateHpcClusterRequest body: (required)
725+
:return: CreateHpcClusterResponse
726+
If the method is called asynchronously,
727+
returns the request thread.
728+
"""
729+
kwargs['_return_http_data_only'] = True
730+
if kwargs.get('async_req'):
731+
return self.create_hpc_cluster_with_http_info(body, **kwargs) # noqa: E501
732+
else:
733+
(data) = self.create_hpc_cluster_with_http_info(body, **kwargs) # noqa: E501
734+
return data
735+
736+
def create_hpc_cluster_with_http_info(self, body, **kwargs): # noqa: E501
737+
"""create_hpc_cluster # noqa: E501
738+
739+
This method makes a synchronous HTTP request by default. To make an
740+
asynchronous HTTP request, please pass async_req=True
741+
>>> thread = api.create_hpc_cluster_with_http_info(body, async_req=True)
742+
>>> result = thread.get()
743+
744+
:param async_req bool
745+
:param CreateHpcClusterRequest body: (required)
746+
:return: CreateHpcClusterResponse
747+
If the method is called asynchronously,
748+
returns the request thread.
749+
"""
750+
751+
all_params = ['body'] # noqa: E501
752+
all_params.append('async_req')
753+
all_params.append('_return_http_data_only')
754+
all_params.append('_preload_content')
755+
all_params.append('_request_timeout')
756+
757+
params = locals()
758+
for key, val in six.iteritems(params['kwargs']):
759+
if key not in all_params:
760+
raise TypeError(
761+
"Got an unexpected keyword argument '%s'"
762+
" to method create_hpc_cluster" % key
763+
)
764+
params[key] = val
765+
del params['kwargs']
766+
# verify the required parameter 'body' is set
767+
if self.api_client.client_side_validation and ('body' not in params or
768+
params['body'] is None): # noqa: E501
769+
raise ValueError("Missing the required parameter `body` when calling `create_hpc_cluster`") # noqa: E501
770+
771+
collection_formats = {}
772+
773+
path_params = {}
774+
775+
query_params = []
776+
777+
header_params = {}
778+
779+
form_params = []
780+
local_var_files = {}
781+
782+
body_params = None
783+
if 'body' in params:
784+
body_params = params['body']
785+
# HTTP header `Accept`
786+
header_params['Accept'] = self.api_client.select_header_accept(
787+
['application/json']) # noqa: E501
788+
789+
# HTTP header `Content-Type`
790+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
791+
['text/plain']) # noqa: E501
792+
793+
# Authentication setting
794+
auth_settings = ['volcengineSign'] # noqa: E501
795+
796+
return self.api_client.call_api(
797+
'/CreateHpcCluster/2020-04-01/ecs/get/text_plain/', 'GET',
798+
path_params,
799+
query_params,
800+
header_params,
801+
body=body_params,
802+
post_params=form_params,
803+
files=local_var_files,
804+
response_type='CreateHpcClusterResponse', # noqa: E501
805+
auth_settings=auth_settings,
806+
async_req=params.get('async_req'),
807+
_return_http_data_only=params.get('_return_http_data_only'),
808+
_preload_content=params.get('_preload_content', True),
809+
_request_timeout=params.get('_request_timeout'),
810+
collection_formats=collection_formats)
811+
715812
def create_image(self, body, **kwargs): # noqa: E501
716813
"""create_image # noqa: E501
717814
@@ -1488,6 +1585,103 @@ def delete_deployment_set_with_http_info(self, body, **kwargs): # noqa: E501
14881585
_request_timeout=params.get('_request_timeout'),
14891586
collection_formats=collection_formats)
14901587

1588+
def delete_hpc_cluster(self, body, **kwargs): # noqa: E501
1589+
"""delete_hpc_cluster # noqa: E501
1590+
1591+
This method makes a synchronous HTTP request by default. To make an
1592+
asynchronous HTTP request, please pass async_req=True
1593+
>>> thread = api.delete_hpc_cluster(body, async_req=True)
1594+
>>> result = thread.get()
1595+
1596+
:param async_req bool
1597+
:param DeleteHpcClusterRequest body: (required)
1598+
:return: DeleteHpcClusterResponse
1599+
If the method is called asynchronously,
1600+
returns the request thread.
1601+
"""
1602+
kwargs['_return_http_data_only'] = True
1603+
if kwargs.get('async_req'):
1604+
return self.delete_hpc_cluster_with_http_info(body, **kwargs) # noqa: E501
1605+
else:
1606+
(data) = self.delete_hpc_cluster_with_http_info(body, **kwargs) # noqa: E501
1607+
return data
1608+
1609+
def delete_hpc_cluster_with_http_info(self, body, **kwargs): # noqa: E501
1610+
"""delete_hpc_cluster # noqa: E501
1611+
1612+
This method makes a synchronous HTTP request by default. To make an
1613+
asynchronous HTTP request, please pass async_req=True
1614+
>>> thread = api.delete_hpc_cluster_with_http_info(body, async_req=True)
1615+
>>> result = thread.get()
1616+
1617+
:param async_req bool
1618+
:param DeleteHpcClusterRequest body: (required)
1619+
:return: DeleteHpcClusterResponse
1620+
If the method is called asynchronously,
1621+
returns the request thread.
1622+
"""
1623+
1624+
all_params = ['body'] # noqa: E501
1625+
all_params.append('async_req')
1626+
all_params.append('_return_http_data_only')
1627+
all_params.append('_preload_content')
1628+
all_params.append('_request_timeout')
1629+
1630+
params = locals()
1631+
for key, val in six.iteritems(params['kwargs']):
1632+
if key not in all_params:
1633+
raise TypeError(
1634+
"Got an unexpected keyword argument '%s'"
1635+
" to method delete_hpc_cluster" % key
1636+
)
1637+
params[key] = val
1638+
del params['kwargs']
1639+
# verify the required parameter 'body' is set
1640+
if self.api_client.client_side_validation and ('body' not in params or
1641+
params['body'] is None): # noqa: E501
1642+
raise ValueError("Missing the required parameter `body` when calling `delete_hpc_cluster`") # noqa: E501
1643+
1644+
collection_formats = {}
1645+
1646+
path_params = {}
1647+
1648+
query_params = []
1649+
1650+
header_params = {}
1651+
1652+
form_params = []
1653+
local_var_files = {}
1654+
1655+
body_params = None
1656+
if 'body' in params:
1657+
body_params = params['body']
1658+
# HTTP header `Accept`
1659+
header_params['Accept'] = self.api_client.select_header_accept(
1660+
['application/json']) # noqa: E501
1661+
1662+
# HTTP header `Content-Type`
1663+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1664+
['text/plain']) # noqa: E501
1665+
1666+
# Authentication setting
1667+
auth_settings = ['volcengineSign'] # noqa: E501
1668+
1669+
return self.api_client.call_api(
1670+
'/DeleteHpcCluster/2020-04-01/ecs/get/text_plain/', 'GET',
1671+
path_params,
1672+
query_params,
1673+
header_params,
1674+
body=body_params,
1675+
post_params=form_params,
1676+
files=local_var_files,
1677+
response_type='DeleteHpcClusterResponse', # noqa: E501
1678+
auth_settings=auth_settings,
1679+
async_req=params.get('async_req'),
1680+
_return_http_data_only=params.get('_return_http_data_only'),
1681+
_preload_content=params.get('_preload_content', True),
1682+
_request_timeout=params.get('_request_timeout'),
1683+
collection_formats=collection_formats)
1684+
14911685
def delete_images(self, body, **kwargs): # noqa: E501
14921686
"""delete_images # noqa: E501
14931687
@@ -3040,6 +3234,103 @@ def describe_event_types_with_http_info(self, body, **kwargs): # noqa: E501
30403234
_request_timeout=params.get('_request_timeout'),
30413235
collection_formats=collection_formats)
30423236

3237+
def describe_hpc_clusters(self, body, **kwargs): # noqa: E501
3238+
"""describe_hpc_clusters # noqa: E501
3239+
3240+
This method makes a synchronous HTTP request by default. To make an
3241+
asynchronous HTTP request, please pass async_req=True
3242+
>>> thread = api.describe_hpc_clusters(body, async_req=True)
3243+
>>> result = thread.get()
3244+
3245+
:param async_req bool
3246+
:param DescribeHpcClustersRequest body: (required)
3247+
:return: DescribeHpcClustersResponse
3248+
If the method is called asynchronously,
3249+
returns the request thread.
3250+
"""
3251+
kwargs['_return_http_data_only'] = True
3252+
if kwargs.get('async_req'):
3253+
return self.describe_hpc_clusters_with_http_info(body, **kwargs) # noqa: E501
3254+
else:
3255+
(data) = self.describe_hpc_clusters_with_http_info(body, **kwargs) # noqa: E501
3256+
return data
3257+
3258+
def describe_hpc_clusters_with_http_info(self, body, **kwargs): # noqa: E501
3259+
"""describe_hpc_clusters # noqa: E501
3260+
3261+
This method makes a synchronous HTTP request by default. To make an
3262+
asynchronous HTTP request, please pass async_req=True
3263+
>>> thread = api.describe_hpc_clusters_with_http_info(body, async_req=True)
3264+
>>> result = thread.get()
3265+
3266+
:param async_req bool
3267+
:param DescribeHpcClustersRequest body: (required)
3268+
:return: DescribeHpcClustersResponse
3269+
If the method is called asynchronously,
3270+
returns the request thread.
3271+
"""
3272+
3273+
all_params = ['body'] # noqa: E501
3274+
all_params.append('async_req')
3275+
all_params.append('_return_http_data_only')
3276+
all_params.append('_preload_content')
3277+
all_params.append('_request_timeout')
3278+
3279+
params = locals()
3280+
for key, val in six.iteritems(params['kwargs']):
3281+
if key not in all_params:
3282+
raise TypeError(
3283+
"Got an unexpected keyword argument '%s'"
3284+
" to method describe_hpc_clusters" % key
3285+
)
3286+
params[key] = val
3287+
del params['kwargs']
3288+
# verify the required parameter 'body' is set
3289+
if self.api_client.client_side_validation and ('body' not in params or
3290+
params['body'] is None): # noqa: E501
3291+
raise ValueError("Missing the required parameter `body` when calling `describe_hpc_clusters`") # noqa: E501
3292+
3293+
collection_formats = {}
3294+
3295+
path_params = {}
3296+
3297+
query_params = []
3298+
3299+
header_params = {}
3300+
3301+
form_params = []
3302+
local_var_files = {}
3303+
3304+
body_params = None
3305+
if 'body' in params:
3306+
body_params = params['body']
3307+
# HTTP header `Accept`
3308+
header_params['Accept'] = self.api_client.select_header_accept(
3309+
['application/json']) # noqa: E501
3310+
3311+
# HTTP header `Content-Type`
3312+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
3313+
['text/plain']) # noqa: E501
3314+
3315+
# Authentication setting
3316+
auth_settings = ['volcengineSign'] # noqa: E501
3317+
3318+
return self.api_client.call_api(
3319+
'/DescribeHpcClusters/2020-04-01/ecs/get/text_plain/', 'GET',
3320+
path_params,
3321+
query_params,
3322+
header_params,
3323+
body=body_params,
3324+
post_params=form_params,
3325+
files=local_var_files,
3326+
response_type='DescribeHpcClustersResponse', # noqa: E501
3327+
auth_settings=auth_settings,
3328+
async_req=params.get('async_req'),
3329+
_return_http_data_only=params.get('_return_http_data_only'),
3330+
_preload_content=params.get('_preload_content', True),
3331+
_request_timeout=params.get('_request_timeout'),
3332+
collection_formats=collection_formats)
3333+
30433334
def describe_image_share_permission(self, body, **kwargs): # noqa: E501
30443335
"""describe_image_share_permission # noqa: E501
30453336

0 commit comments

Comments
 (0)