@alicloud/emr-serverless-spark20230808 1.21.1 → 1.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -626,6 +626,24 @@ export default class Client extends OpenApi {
626
626
  * @returns ListCatalogsResponse
627
627
  */
628
628
  listCatalogs(workspaceId: string, request: $_model.ListCatalogsRequest): Promise<$_model.ListCatalogsResponse>;
629
+ /**
630
+ * 列出作业executor的日志文件列表
631
+ *
632
+ * @param request - ListExecutorLogsRequest
633
+ * @param headers - map
634
+ * @param runtime - runtime options for this request RuntimeOptions
635
+ * @returns ListExecutorLogsResponse
636
+ */
637
+ listExecutorLogsWithOptions(workspaceId: string, jobRunId: string, executorId: string, request: $_model.ListExecutorLogsRequest, headers: {
638
+ [key: string]: string;
639
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.ListExecutorLogsResponse>;
640
+ /**
641
+ * 列出作业executor的日志文件列表
642
+ *
643
+ * @param request - ListExecutorLogsRequest
644
+ * @returns ListExecutorLogsResponse
645
+ */
646
+ listExecutorLogs(workspaceId: string, jobRunId: string, executorId: string, request: $_model.ListExecutorLogsRequest): Promise<$_model.ListExecutorLogsResponse>;
629
647
  /**
630
648
  * 列出作业的executors
631
649
  *
package/dist/client.js CHANGED
@@ -1880,6 +1880,57 @@ class Client extends openapi_core_1.default {
1880
1880
  let headers = {};
1881
1881
  return await this.listCatalogsWithOptions(workspaceId, request, headers, runtime);
1882
1882
  }
1883
+ /**
1884
+ * 列出作业executor的日志文件列表
1885
+ *
1886
+ * @param request - ListExecutorLogsRequest
1887
+ * @param headers - map
1888
+ * @param runtime - runtime options for this request RuntimeOptions
1889
+ * @returns ListExecutorLogsResponse
1890
+ */
1891
+ async listExecutorLogsWithOptions(workspaceId, jobRunId, executorId, request, headers, runtime) {
1892
+ request.validate();
1893
+ let query = {};
1894
+ if (!$dara.isNull(request.logType)) {
1895
+ query["logType"] = request.logType;
1896
+ }
1897
+ if (!$dara.isNull(request.maxResults)) {
1898
+ query["maxResults"] = request.maxResults;
1899
+ }
1900
+ if (!$dara.isNull(request.nextToken)) {
1901
+ query["nextToken"] = request.nextToken;
1902
+ }
1903
+ if (!$dara.isNull(request.regionId)) {
1904
+ query["regionId"] = request.regionId;
1905
+ }
1906
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1907
+ headers: headers,
1908
+ query: openapi_core_2.OpenApiUtil.query(query),
1909
+ });
1910
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1911
+ action: "ListExecutorLogs",
1912
+ version: "2023-08-08",
1913
+ protocol: "HTTPS",
1914
+ pathname: `/api/v1/workspaces/${$dara.URL.percentEncode(workspaceId)}/jobRuns/${$dara.URL.percentEncode(jobRunId)}/executors/${$dara.URL.percentEncode(executorId)}/logs`,
1915
+ method: "GET",
1916
+ authType: "AK",
1917
+ style: "ROA",
1918
+ reqBodyType: "json",
1919
+ bodyType: "json",
1920
+ });
1921
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListExecutorLogsResponse({}));
1922
+ }
1923
+ /**
1924
+ * 列出作业executor的日志文件列表
1925
+ *
1926
+ * @param request - ListExecutorLogsRequest
1927
+ * @returns ListExecutorLogsResponse
1928
+ */
1929
+ async listExecutorLogs(workspaceId, jobRunId, executorId, request) {
1930
+ let runtime = new $dara.RuntimeOptions({});
1931
+ let headers = {};
1932
+ return await this.listExecutorLogsWithOptions(workspaceId, jobRunId, executorId, request, headers, runtime);
1933
+ }
1883
1934
  /**
1884
1935
  * 列出作业的executors
1885
1936
  *