{@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
{@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.ListThis 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