diff --git a/clients/google-api-services-workflowexecutions/v1/2.0.0/README.md b/clients/google-api-services-workflowexecutions/v1/2.0.0/README.md index 20e0575fb04..e2d329b9749 100644 --- a/clients/google-api-services-workflowexecutions/v1/2.0.0/README.md +++ b/clients/google-api-services-workflowexecutions/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-workflowexecutions - v1-rev20230719-2.0.0 + v1-rev20230829-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-workflowexecutions:v1-rev20230719-2.0.0' + implementation 'com.google.apis:google-api-services-workflowexecutions:v1-rev20230829-2.0.0' } ``` diff --git a/clients/google-api-services-workflowexecutions/v1/2.0.0/com/google/api/services/workflowexecutions/v1/WorkflowExecutions.java b/clients/google-api-services-workflowexecutions/v1/2.0.0/com/google/api/services/workflowexecutions/v1/WorkflowExecutions.java index 82838fa39f7..0aa8f3c2f1c 100644 --- a/clients/google-api-services-workflowexecutions/v1/2.0.0/com/google/api/services/workflowexecutions/v1/WorkflowExecutions.java +++ b/clients/google-api-services-workflowexecutions/v1/2.0.0/com/google/api/services/workflowexecutions/v1/WorkflowExecutions.java @@ -642,6 +642,156 @@ public Create set(String parameterName, Object value) { return (Create) super.set(parameterName, value); } } + /** + * Returns all metadata stored about an execution, excluding most data that is already accessible + * via other API methods. + * + * Create a request for the method "executions.exportData". + * + * This request holds the parameters needed by the workflowexecutions server. After setting any + * optional parameters, call the {@link ExportData#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the execution to be data exported. Format: + * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution} + * @return the request + */ + public ExportData exportData(java.lang.String name) throws java.io.IOException { + ExportData result = new ExportData(name); + initialize(result); + return result; + } + + public class ExportData extends WorkflowExecutionsRequest { + + private static final String REST_PATH = "v1/{+name}:exportData"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/workflows/[^/]+/executions/[^/]+$"); + + /** + * Returns all metadata stored about an execution, excluding most data that is already accessible + * via other API methods. + * + * Create a request for the method "executions.exportData". + * + * This request holds the parameters needed by the the workflowexecutions server. After setting + * any optional parameters, call the {@link ExportData#execute()} method to invoke the remote + * operation.

{@link + * ExportData#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Name of the execution to be data exported. Format: + * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution} + * @since 1.13 + */ + protected ExportData(java.lang.String name) { + super(WorkflowExecutions.this, "GET", REST_PATH, null, com.google.api.services.workflowexecutions.v1.model.ExportDataResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/workflows/[^/]+/executions/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public ExportData set$Xgafv(java.lang.String $Xgafv) { + return (ExportData) super.set$Xgafv($Xgafv); + } + + @Override + public ExportData setAccessToken(java.lang.String accessToken) { + return (ExportData) super.setAccessToken(accessToken); + } + + @Override + public ExportData setAlt(java.lang.String alt) { + return (ExportData) super.setAlt(alt); + } + + @Override + public ExportData setCallback(java.lang.String callback) { + return (ExportData) super.setCallback(callback); + } + + @Override + public ExportData setFields(java.lang.String fields) { + return (ExportData) super.setFields(fields); + } + + @Override + public ExportData setKey(java.lang.String key) { + return (ExportData) super.setKey(key); + } + + @Override + public ExportData setOauthToken(java.lang.String oauthToken) { + return (ExportData) super.setOauthToken(oauthToken); + } + + @Override + public ExportData setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ExportData) super.setPrettyPrint(prettyPrint); + } + + @Override + public ExportData setQuotaUser(java.lang.String quotaUser) { + return (ExportData) super.setQuotaUser(quotaUser); + } + + @Override + public ExportData setUploadType(java.lang.String uploadType) { + return (ExportData) super.setUploadType(uploadType); + } + + @Override + public ExportData setUploadProtocol(java.lang.String uploadProtocol) { + return (ExportData) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Name of the execution to be data exported. Format: + * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the execution to be data exported. Format: + projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Name of the execution to be data exported. Format: + * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution} + */ + public ExportData setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/workflows/[^/]+/executions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public ExportData set(String parameterName, Object value) { + return (ExportData) super.set(parameterName, value); + } + } /** * Returns an execution of the given name. * @@ -1103,6 +1253,229 @@ public List set(String parameterName, Object value) { } } + /** + * An accessor for creating requests from the Callbacks collection. + * + *

The typical use is:

+ *
+           *   {@code WorkflowExecutions workflowexecutions = new WorkflowExecutions(...);}
+           *   {@code WorkflowExecutions.Callbacks.List request = workflowexecutions.callbacks().list(parameters ...)}
+           * 
+ * + * @return the resource collection + */ + public Callbacks callbacks() { + return new Callbacks(); + } + + /** + * The "callbacks" collection of methods. + */ + public class Callbacks { + + /** + * Returns a list of active callbacks which belong to the execution with the given name. The + * returned callbacks are ordered by callback ID. first). + * + * Create a request for the method "callbacks.list". + * + * This request holds the parameters needed by the workflowexecutions server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. Name of the execution for which the callbacks should be listed. Format: + * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution} + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends WorkflowExecutionsRequest { + + private static final String REST_PATH = "v1/{+parent}/callbacks"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/workflows/[^/]+/executions/[^/]+$"); + + /** + * Returns a list of active callbacks which belong to the execution with the given name. The + * returned callbacks are ordered by callback ID. first). + * + * Create a request for the method "callbacks.list". + * + * This request holds the parameters needed by the the workflowexecutions server. After setting + * any optional parameters, call the {@link List#execute()} method to invoke the remote operation. + *

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. Name of the execution for which the callbacks should be listed. Format: + * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(WorkflowExecutions.this, "GET", REST_PATH, null, com.google.api.services.workflowexecutions.v1.model.ListCallbacksResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/workflows/[^/]+/executions/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Name of the execution for which the callbacks should be listed. Format: + * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Name of the execution for which the callbacks should be listed. Format: + projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Name of the execution for which the callbacks should be listed. Format: + * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution} + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/workflows/[^/]+/executions/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Maximum number of callbacks to return per call. The default value is 100 and is + * also the maximum value. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Maximum number of callbacks to return per call. The default value is 100 and is also the maximum + value. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Maximum number of callbacks to return per call. The default value is 100 and is + * also the maximum value. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * A page token, received from a previous `ListCallbacks` call. Provide this to + * retrieve the subsequent page. Note that pagination is applied to dynamic data. The + * list of callbacks returned can change between page requests if callbacks are + * created or deleted. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** A page token, received from a previous `ListCallbacks` call. Provide this to retrieve the + subsequent page. Note that pagination is applied to dynamic data. The list of callbacks returned + can change between page requests if callbacks are created or deleted. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * A page token, received from a previous `ListCallbacks` call. Provide this to + * retrieve the subsequent page. Note that pagination is applied to dynamic data. The + * list of callbacks returned can change between page requests if callbacks are + * created or deleted. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } } } } diff --git a/clients/google-api-services-workflowexecutions/v1/2.0.0/com/google/api/services/workflowexecutions/v1/model/Callback.java b/clients/google-api-services-workflowexecutions/v1/2.0.0/com/google/api/services/workflowexecutions/v1/model/Callback.java new file mode 100644 index 00000000000..4e08e7ffebf --- /dev/null +++ b/clients/google-api-services-workflowexecutions/v1/2.0.0/com/google/api/services/workflowexecutions/v1/model/Callback.java @@ -0,0 +1,145 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.workflowexecutions.v1.model; + +/** + * An instance of a Callback created by an execution. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Workflow Executions API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Callback extends com.google.api.client.json.GenericJson { + + /** + * Output only. The payloads received by the callback that have not been processed by a waiting + * execution step. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List availablePayloads; + + /** + * Output only. The method accepted by the callback. E.g. GET, POST, PUT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String method; + + /** + * Output only. The resource name of the callback. Format: projects/{project}/locations/{location} + * /workflows/{workflow}/executions/{execution}/callback/{callback} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Number of execution steps waiting on this callback. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long waiters; + + /** + * Output only. The payloads received by the callback that have not been processed by a waiting + * execution step. + * @return value or {@code null} for none + */ + public java.util.List getAvailablePayloads() { + return availablePayloads; + } + + /** + * Output only. The payloads received by the callback that have not been processed by a waiting + * execution step. + * @param availablePayloads availablePayloads or {@code null} for none + */ + public Callback setAvailablePayloads(java.util.List availablePayloads) { + this.availablePayloads = availablePayloads; + return this; + } + + /** + * Output only. The method accepted by the callback. E.g. GET, POST, PUT. + * @return value or {@code null} for none + */ + public java.lang.String getMethod() { + return method; + } + + /** + * Output only. The method accepted by the callback. E.g. GET, POST, PUT. + * @param method method or {@code null} for none + */ + public Callback setMethod(java.lang.String method) { + this.method = method; + return this; + } + + /** + * Output only. The resource name of the callback. Format: projects/{project}/locations/{location} + * /workflows/{workflow}/executions/{execution}/callback/{callback} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. The resource name of the callback. Format: projects/{project}/locations/{location} + * /workflows/{workflow}/executions/{execution}/callback/{callback} + * @param name name or {@code null} for none + */ + public Callback setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Number of execution steps waiting on this callback. + * @return value or {@code null} for none + */ + public java.lang.Long getWaiters() { + return waiters; + } + + /** + * Output only. Number of execution steps waiting on this callback. + * @param waiters waiters or {@code null} for none + */ + public Callback setWaiters(java.lang.Long waiters) { + this.waiters = waiters; + return this; + } + + @Override + public Callback set(String fieldName, Object value) { + return (Callback) super.set(fieldName, value); + } + + @Override + public Callback clone() { + return (Callback) super.clone(); + } + +} diff --git a/clients/google-api-services-workflowexecutions/v1/2.0.0/com/google/api/services/workflowexecutions/v1/model/ExportDataResponse.java b/clients/google-api-services-workflowexecutions/v1/2.0.0/com/google/api/services/workflowexecutions/v1/model/ExportDataResponse.java new file mode 100644 index 00000000000..470950eb9c6 --- /dev/null +++ b/clients/google-api-services-workflowexecutions/v1/2.0.0/com/google/api/services/workflowexecutions/v1/model/ExportDataResponse.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.workflowexecutions.v1.model; + +/** + * Response for the ExportData method. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Workflow Executions API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExportDataResponse extends com.google.api.client.json.GenericJson { + + /** + * The JSON string with customer data and metadata of an execution of the given name + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String data; + + /** + * The JSON string with customer data and metadata of an execution of the given name + * @return value or {@code null} for none + */ + public java.lang.String getData() { + return data; + } + + /** + * The JSON string with customer data and metadata of an execution of the given name + * @param data data or {@code null} for none + */ + public ExportDataResponse setData(java.lang.String data) { + this.data = data; + return this; + } + + @Override + public ExportDataResponse set(String fieldName, Object value) { + return (ExportDataResponse) super.set(fieldName, value); + } + + @Override + public ExportDataResponse clone() { + return (ExportDataResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-workflowexecutions/v1/2.0.0/com/google/api/services/workflowexecutions/v1/model/ListCallbacksResponse.java b/clients/google-api-services-workflowexecutions/v1/2.0.0/com/google/api/services/workflowexecutions/v1/model/ListCallbacksResponse.java new file mode 100644 index 00000000000..4ffe1153136 --- /dev/null +++ b/clients/google-api-services-workflowexecutions/v1/2.0.0/com/google/api/services/workflowexecutions/v1/model/ListCallbacksResponse.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.workflowexecutions.v1.model; + +/** + * RPC response object for the ListCallbacks method. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Workflow Executions API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListCallbacksResponse extends com.google.api.client.json.GenericJson { + + /** + * The callbacks which match the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List callbacks; + + static { + // hack to force ProGuard to consider Callback used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Callback.class); + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The callbacks which match the request. + * @return value or {@code null} for none + */ + public java.util.List getCallbacks() { + return callbacks; + } + + /** + * The callbacks which match the request. + * @param callbacks callbacks or {@code null} for none + */ + public ListCallbacksResponse setCallbacks(java.util.List callbacks) { + this.callbacks = callbacks; + return this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListCallbacksResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListCallbacksResponse set(String fieldName, Object value) { + return (ListCallbacksResponse) super.set(fieldName, value); + } + + @Override + public ListCallbacksResponse clone() { + return (ListCallbacksResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-workflowexecutions/v1/2.0.0/pom.xml b/clients/google-api-services-workflowexecutions/v1/2.0.0/pom.xml index 9a333c7fa96..6e747c0d50b 100644 --- a/clients/google-api-services-workflowexecutions/v1/2.0.0/pom.xml +++ b/clients/google-api-services-workflowexecutions/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-workflowexecutions - v1-rev20230719-2.0.0 - Workflow Executions API v1-rev20230719-2.0.0 + v1-rev20230829-2.0.0 + Workflow Executions API v1-rev20230829-2.0.0 jar 2011