From ae68b4f58d2ad6b2c99e362d1c2d3d68b02f99a3 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Thu, 22 Dec 2022 01:40:25 +0000 Subject: [PATCH] feat(workflowexecutions): update the API #### workflowexecutions:v1beta The following keys were changed: - schemas.Execution.properties.callLogLevel.enumDescriptions - schemas.Execution.properties.status.description - schemas.Status.description #### workflowexecutions:v1 The following keys were added: - schemas.Execution.properties.duration.description - schemas.Execution.properties.duration.format - schemas.Execution.properties.duration.readOnly - schemas.Execution.properties.duration.type The following keys were changed: - resources.projects.resources.locations.resources.workflows.resources.executions.methods.get.parameters.view.enumDescriptions - resources.projects.resources.locations.resources.workflows.resources.executions.methods.list.parameters.view.enumDescriptions - schemas.Execution.properties.callLogLevel.enumDescriptions - schemas.Execution.properties.status.description - schemas.Status.description --- discovery/workflowexecutions-v1.json | 18 ++++++++++++------ discovery/workflowexecutions-v1beta.json | 8 ++++---- src/apis/workflowexecutions/v1.ts | 13 +++++++++++-- src/apis/workflowexecutions/v1beta.ts | 4 ++-- 4 files changed, 29 insertions(+), 14 deletions(-) diff --git a/discovery/workflowexecutions-v1.json b/discovery/workflowexecutions-v1.json index 2af8d32332..16975d4783 100644 --- a/discovery/workflowexecutions-v1.json +++ b/discovery/workflowexecutions-v1.json @@ -224,7 +224,7 @@ ], "enumDescriptions": [ "The default / unset value.", - "Includes only basic metadata about the execution. Following fields are returned: name, start_time, end_time, state and workflow_revision_id.", + "Includes only basic metadata about the execution. Following fields are returned: name, start_time, end_time, duration, state and workflow_revision_id.", "Includes all data." ], "location": "query", @@ -275,7 +275,7 @@ ], "enumDescriptions": [ "The default / unset value.", - "Includes only basic metadata about the execution. Following fields are returned: name, start_time, end_time, state and workflow_revision_id.", + "Includes only basic metadata about the execution. Following fields are returned: name, start_time, end_time, duration, state and workflow_revision_id.", "Includes all data." ], "location": "query", @@ -299,7 +299,7 @@ } } }, - "revision": "20220908", + "revision": "20221206", "rootUrl": "https://workflowexecutions.googleapis.com/", "schemas": { "CancelExecutionRequest": { @@ -343,12 +343,18 @@ "LOG_ERRORS_ONLY" ], "enumDescriptions": [ - "No call logging specified.", + "No call logging level specified.", "Log all call steps within workflows, all call returns, and all exceptions raised.", "Log only exceptions that are raised from call steps within workflows." ], "type": "string" }, + "duration": { + "description": "Output only. Measures the duration of the execution.", + "format": "google-duration", + "readOnly": true, + "type": "string" + }, "endTime": { "description": "Output only. Marks the end of execution, successful or not.", "format": "google-datetime", @@ -397,7 +403,7 @@ }, "status": { "$ref": "Status", - "description": "Output only. Status tracks the current steps and progress data of this execution. > **Preview:** This field is covered by the > [Pre-GA Offerings Terms](https://cloud.google.com/terms/service-terms) of > the Google Cloud Terms of Service. Pre-GA features might have limited > support, and changes to pre-GA features might not be compatible with > other pre-GA versions. For more information, see the > [launch stage descriptions](https://cloud.google.com/products#product-launch-stages). > This field is usable only if your project has access. See the > [access request page](https://docs.google.com/forms/d/e/1FAIpQLSdgwrSV8Y4xZv_tvI6X2JEGX1-ty9yizv3_EAOVHWVKXvDLEA/viewform).", + "description": "Output only. Status tracks the current steps and progress data of this execution.", "readOnly": true }, "workflowRevisionId": { @@ -514,7 +520,7 @@ "type": "object" }, "Status": { - "description": "> **Preview:** This field is covered by the > [Pre-GA Offerings Terms](https://cloud.google.com/terms/service-terms) of > the Google Cloud Terms of Service. Pre-GA features might have limited > support, and changes to pre-GA features might not be compatible with > other pre-GA versions. For more information, see the > [launch stage descriptions](https://cloud.google.com/products#product-launch-stages). > This field is usable only if your project has access. See the > [access request page](https://docs.google.com/forms/d/e/1FAIpQLSdgwrSV8Y4xZv_tvI6X2JEGX1-ty9yizv3_EAOVHWVKXvDLEA/viewform). Represents the current status of this execution.", + "description": "Represents the current status of this execution.", "id": "Status", "properties": { "currentSteps": { diff --git a/discovery/workflowexecutions-v1beta.json b/discovery/workflowexecutions-v1beta.json index 7192f07734..105228604a 100644 --- a/discovery/workflowexecutions-v1beta.json +++ b/discovery/workflowexecutions-v1beta.json @@ -269,7 +269,7 @@ } } }, - "revision": "20220908", + "revision": "20221206", "rootUrl": "https://workflowexecutions.googleapis.com/", "schemas": { "CancelExecutionRequest": { @@ -313,7 +313,7 @@ "LOG_ERRORS_ONLY" ], "enumDescriptions": [ - "No call logging specified.", + "No call logging level specified.", "Log all call steps within workflows, all call returns, and all exceptions raised.", "Log only exceptions that are raised from call steps within workflows." ], @@ -367,7 +367,7 @@ }, "status": { "$ref": "Status", - "description": "Output only. Status tracks the current steps and progress data of this execution. > **Preview:** This field is covered by the > [Pre-GA Offerings Terms](https://cloud.google.com/terms/service-terms) of > the Google Cloud Terms of Service. Pre-GA features might have limited > support, and changes to pre-GA features might not be compatible with > other pre-GA versions. For more information, see the > [launch stage descriptions](https://cloud.google.com/products#product-launch-stages). > This field is usable only if your project has access. See the > [access request page](https://docs.google.com/forms/d/e/1FAIpQLSdgwrSV8Y4xZv_tvI6X2JEGX1-ty9yizv3_EAOVHWVKXvDLEA/viewform).", + "description": "Output only. Status tracks the current steps and progress data of this execution.", "readOnly": true }, "workflowRevisionId": { @@ -452,7 +452,7 @@ "type": "object" }, "Status": { - "description": "> **Preview:** This field is covered by the > [Pre-GA Offerings Terms](https://cloud.google.com/terms/service-terms) of > the Google Cloud Terms of Service. Pre-GA features might have limited > support, and changes to pre-GA features might not be compatible with > other pre-GA versions. For more information, see the > [launch stage descriptions](https://cloud.google.com/products#product-launch-stages). > This field is usable only if your project has access. See the > [access request page](https://docs.google.com/forms/d/e/1FAIpQLSdgwrSV8Y4xZv_tvI6X2JEGX1-ty9yizv3_EAOVHWVKXvDLEA/viewform). Represents the current status of this execution.", + "description": "Represents the current status of this execution.", "id": "Status", "properties": { "currentSteps": { diff --git a/src/apis/workflowexecutions/v1.ts b/src/apis/workflowexecutions/v1.ts index 7f8b0f60aa..68d110f165 100644 --- a/src/apis/workflowexecutions/v1.ts +++ b/src/apis/workflowexecutions/v1.ts @@ -157,6 +157,10 @@ export namespace workflowexecutions_v1 { * The call logging level associated to this execution. */ callLogLevel?: string | null; + /** + * Output only. Measures the duration of the execution. + */ + duration?: string | null; /** * Output only. Marks the end of execution, successful or not. */ @@ -182,7 +186,7 @@ export namespace workflowexecutions_v1 { */ state?: string | null; /** - * Output only. Status tracks the current steps and progress data of this execution. \> **Preview:** This field is covered by the \> [Pre-GA Offerings Terms](https://cloud.google.com/terms/service-terms) of \> the Google Cloud Terms of Service. Pre-GA features might have limited \> support, and changes to pre-GA features might not be compatible with \> other pre-GA versions. For more information, see the \> [launch stage descriptions](https://cloud.google.com/products#product-launch-stages). \> This field is usable only if your project has access. See the \> [access request page](https://docs.google.com/forms/d/e/1FAIpQLSdgwrSV8Y4xZv_tvI6X2JEGX1-ty9yizv3_EAOVHWVKXvDLEA/viewform). + * Output only. Status tracks the current steps and progress data of this execution. */ status?: Schema$Status; /** @@ -272,7 +276,7 @@ export namespace workflowexecutions_v1 { step?: string | null; } /** - * \> **Preview:** This field is covered by the \> [Pre-GA Offerings Terms](https://cloud.google.com/terms/service-terms) of \> the Google Cloud Terms of Service. Pre-GA features might have limited \> support, and changes to pre-GA features might not be compatible with \> other pre-GA versions. For more information, see the \> [launch stage descriptions](https://cloud.google.com/products#product-launch-stages). \> This field is usable only if your project has access. See the \> [access request page](https://docs.google.com/forms/d/e/1FAIpQLSdgwrSV8Y4xZv_tvI6X2JEGX1-ty9yizv3_EAOVHWVKXvDLEA/viewform). Represents the current status of this execution. + * Represents the current status of this execution. */ export interface Schema$Status { /** @@ -389,6 +393,7 @@ export namespace workflowexecutions_v1 { * // { * // "argument": "my_argument", * // "callLogLevel": "my_callLogLevel", + * // "duration": "my_duration", * // "endTime": "my_endTime", * // "error": {}, * // "name": "my_name", @@ -558,6 +563,7 @@ export namespace workflowexecutions_v1 { * // { * // "argument": "my_argument", * // "callLogLevel": "my_callLogLevel", + * // "duration": "my_duration", * // "endTime": "my_endTime", * // "error": {}, * // "name": "my_name", @@ -696,6 +702,7 @@ export namespace workflowexecutions_v1 { * // { * // "argument": "my_argument", * // "callLogLevel": "my_callLogLevel", + * // "duration": "my_duration", * // "endTime": "my_endTime", * // "error": {}, * // "name": "my_name", @@ -713,6 +720,7 @@ export namespace workflowexecutions_v1 { * // { * // "argument": "my_argument", * // "callLogLevel": "my_callLogLevel", + * // "duration": "my_duration", * // "endTime": "my_endTime", * // "error": {}, * // "name": "my_name", @@ -856,6 +864,7 @@ export namespace workflowexecutions_v1 { * // { * // "argument": "my_argument", * // "callLogLevel": "my_callLogLevel", + * // "duration": "my_duration", * // "endTime": "my_endTime", * // "error": {}, * // "name": "my_name", diff --git a/src/apis/workflowexecutions/v1beta.ts b/src/apis/workflowexecutions/v1beta.ts index 0243a73d36..32958a6ca6 100644 --- a/src/apis/workflowexecutions/v1beta.ts +++ b/src/apis/workflowexecutions/v1beta.ts @@ -182,7 +182,7 @@ export namespace workflowexecutions_v1beta { */ state?: string | null; /** - * Output only. Status tracks the current steps and progress data of this execution. \> **Preview:** This field is covered by the \> [Pre-GA Offerings Terms](https://cloud.google.com/terms/service-terms) of \> the Google Cloud Terms of Service. Pre-GA features might have limited \> support, and changes to pre-GA features might not be compatible with \> other pre-GA versions. For more information, see the \> [launch stage descriptions](https://cloud.google.com/products#product-launch-stages). \> This field is usable only if your project has access. See the \> [access request page](https://docs.google.com/forms/d/e/1FAIpQLSdgwrSV8Y4xZv_tvI6X2JEGX1-ty9yizv3_EAOVHWVKXvDLEA/viewform). + * Output only. Status tracks the current steps and progress data of this execution. */ status?: Schema$Status; /** @@ -247,7 +247,7 @@ export namespace workflowexecutions_v1beta { step?: string | null; } /** - * \> **Preview:** This field is covered by the \> [Pre-GA Offerings Terms](https://cloud.google.com/terms/service-terms) of \> the Google Cloud Terms of Service. Pre-GA features might have limited \> support, and changes to pre-GA features might not be compatible with \> other pre-GA versions. For more information, see the \> [launch stage descriptions](https://cloud.google.com/products#product-launch-stages). \> This field is usable only if your project has access. See the \> [access request page](https://docs.google.com/forms/d/e/1FAIpQLSdgwrSV8Y4xZv_tvI6X2JEGX1-ty9yizv3_EAOVHWVKXvDLEA/viewform). Represents the current status of this execution. + * Represents the current status of this execution. */ export interface Schema$Status { /**