Skip to content

Commit 9554aa2

Browse files
committed
Support API ListExecutorEvents.
1 parent de1e70f commit 9554aa2

File tree

5 files changed

+400
-2
lines changed

5 files changed

+400
-2
lines changed

ehpcinstant-20230701/ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2025-12-11 Version: 3.4.0
2+
- Support API ListExecutorEvents.
3+
4+
15
2025-11-27 Version: 3.3.0
26
- Support API DeleteJobRecords.
37
- Update API ListExecutors: add request parameters Filter.VpcId.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '3.3.0'
1+
__version__ = '3.4.0'

ehpcinstant-20230701/alibabacloud_ehpcinstant20230701/client.py

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1957,6 +1957,118 @@ async def list_action_plans_async(
19571957
runtime = util_models.RuntimeOptions()
19581958
return await self.list_action_plans_with_options_async(request, runtime)
19591959

1960+
def list_executor_events_with_options(
1961+
self,
1962+
tmp_req: ehpc_instant_20230701_models.ListExecutorEventsRequest,
1963+
runtime: util_models.RuntimeOptions,
1964+
) -> ehpc_instant_20230701_models.ListExecutorEventsResponse:
1965+
"""
1966+
@summary 查询Executor的事件信息
1967+
1968+
@param tmp_req: ListExecutorEventsRequest
1969+
@param runtime: runtime options for this request RuntimeOptions
1970+
@return: ListExecutorEventsResponse
1971+
"""
1972+
UtilClient.validate_model(tmp_req)
1973+
request = ehpc_instant_20230701_models.ListExecutorEventsShrinkRequest()
1974+
OpenApiUtilClient.convert(tmp_req, request)
1975+
if not UtilClient.is_unset(tmp_req.filter):
1976+
request.filter_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.filter, 'Filter', 'json')
1977+
query = {}
1978+
if not UtilClient.is_unset(request.filter_shrink):
1979+
query['Filter'] = request.filter_shrink
1980+
if not UtilClient.is_unset(request.page_number):
1981+
query['PageNumber'] = request.page_number
1982+
if not UtilClient.is_unset(request.page_size):
1983+
query['PageSize'] = request.page_size
1984+
req = open_api_models.OpenApiRequest(
1985+
query=OpenApiUtilClient.query(query)
1986+
)
1987+
params = open_api_models.Params(
1988+
action='ListExecutorEvents',
1989+
version='2023-07-01',
1990+
protocol='HTTPS',
1991+
pathname='/',
1992+
method='POST',
1993+
auth_type='AK',
1994+
style='RPC',
1995+
req_body_type='formData',
1996+
body_type='json'
1997+
)
1998+
return TeaCore.from_map(
1999+
ehpc_instant_20230701_models.ListExecutorEventsResponse(),
2000+
self.call_api(params, req, runtime)
2001+
)
2002+
2003+
async def list_executor_events_with_options_async(
2004+
self,
2005+
tmp_req: ehpc_instant_20230701_models.ListExecutorEventsRequest,
2006+
runtime: util_models.RuntimeOptions,
2007+
) -> ehpc_instant_20230701_models.ListExecutorEventsResponse:
2008+
"""
2009+
@summary 查询Executor的事件信息
2010+
2011+
@param tmp_req: ListExecutorEventsRequest
2012+
@param runtime: runtime options for this request RuntimeOptions
2013+
@return: ListExecutorEventsResponse
2014+
"""
2015+
UtilClient.validate_model(tmp_req)
2016+
request = ehpc_instant_20230701_models.ListExecutorEventsShrinkRequest()
2017+
OpenApiUtilClient.convert(tmp_req, request)
2018+
if not UtilClient.is_unset(tmp_req.filter):
2019+
request.filter_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.filter, 'Filter', 'json')
2020+
query = {}
2021+
if not UtilClient.is_unset(request.filter_shrink):
2022+
query['Filter'] = request.filter_shrink
2023+
if not UtilClient.is_unset(request.page_number):
2024+
query['PageNumber'] = request.page_number
2025+
if not UtilClient.is_unset(request.page_size):
2026+
query['PageSize'] = request.page_size
2027+
req = open_api_models.OpenApiRequest(
2028+
query=OpenApiUtilClient.query(query)
2029+
)
2030+
params = open_api_models.Params(
2031+
action='ListExecutorEvents',
2032+
version='2023-07-01',
2033+
protocol='HTTPS',
2034+
pathname='/',
2035+
method='POST',
2036+
auth_type='AK',
2037+
style='RPC',
2038+
req_body_type='formData',
2039+
body_type='json'
2040+
)
2041+
return TeaCore.from_map(
2042+
ehpc_instant_20230701_models.ListExecutorEventsResponse(),
2043+
await self.call_api_async(params, req, runtime)
2044+
)
2045+
2046+
def list_executor_events(
2047+
self,
2048+
request: ehpc_instant_20230701_models.ListExecutorEventsRequest,
2049+
) -> ehpc_instant_20230701_models.ListExecutorEventsResponse:
2050+
"""
2051+
@summary 查询Executor的事件信息
2052+
2053+
@param request: ListExecutorEventsRequest
2054+
@return: ListExecutorEventsResponse
2055+
"""
2056+
runtime = util_models.RuntimeOptions()
2057+
return self.list_executor_events_with_options(request, runtime)
2058+
2059+
async def list_executor_events_async(
2060+
self,
2061+
request: ehpc_instant_20230701_models.ListExecutorEventsRequest,
2062+
) -> ehpc_instant_20230701_models.ListExecutorEventsResponse:
2063+
"""
2064+
@summary 查询Executor的事件信息
2065+
2066+
@param request: ListExecutorEventsRequest
2067+
@return: ListExecutorEventsResponse
2068+
"""
2069+
runtime = util_models.RuntimeOptions()
2070+
return await self.list_executor_events_with_options_async(request, runtime)
2071+
19602072
def list_executors_with_options(
19612073
self,
19622074
tmp_req: ehpc_instant_20230701_models.ListExecutorsRequest,

0 commit comments

Comments
 (0)