From 30379636958590114f5d56febfaa62d80f91b4e0 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Sat, 5 Sep 2026 18:24:00 -0700 Subject: [PATCH] chore: regenerate cloudtasks client --- .../v2/2.0.0/README.md | 4 +- .../services/cloudtasks/v2/CloudTasks.java | 162 +++++++++++++++ .../cloudtasks/v2/model/HttpTarget.java | 2 +- .../cloudtasks/v2/model/Operation.java | 195 ++++++++++++++++++ .../v2/2.0.0/pom.xml | 4 +- .../v2/README.md | 4 +- .../v2beta2/2.0.0/README.md | 4 +- .../cloudtasks/v2beta2/model/HttpTarget.java | 2 +- .../v2beta2/2.0.0/pom.xml | 4 +- .../v2beta2/README.md | 4 +- .../v2beta3/2.0.0/README.md | 4 +- .../cloudtasks/v2beta3/model/HttpTarget.java | 2 +- .../v2beta3/2.0.0/pom.xml | 4 +- .../v2beta3/README.md | 4 +- 14 files changed, 378 insertions(+), 21 deletions(-) create mode 100644 clients/google-api-services-cloudtasks/v2/2.0.0/com/google/api/services/cloudtasks/v2/model/Operation.java diff --git a/clients/google-api-services-cloudtasks/v2/2.0.0/README.md b/clients/google-api-services-cloudtasks/v2/2.0.0/README.md index 77162071b09..994d5c053b1 100644 --- a/clients/google-api-services-cloudtasks/v2/2.0.0/README.md +++ b/clients/google-api-services-cloudtasks/v2/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-cloudtasks - v2-rev20260609-2.0.0 + v2-rev20260831-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-cloudtasks:v2-rev20260609-2.0.0' + implementation 'com.google.apis:google-api-services-cloudtasks:v2-rev20260831-2.0.0' } ``` diff --git a/clients/google-api-services-cloudtasks/v2/2.0.0/com/google/api/services/cloudtasks/v2/CloudTasks.java b/clients/google-api-services-cloudtasks/v2/2.0.0/com/google/api/services/cloudtasks/v2/CloudTasks.java index 4bf54dcfb94..4aee5f0a4ed 100644 --- a/clients/google-api-services-cloudtasks/v2/2.0.0/com/google/api/services/cloudtasks/v2/CloudTasks.java +++ b/clients/google-api-services-cloudtasks/v2/2.0.0/com/google/api/services/cloudtasks/v2/CloudTasks.java @@ -857,6 +857,168 @@ public UpdateCmekConfig set(String parameterName, Object value) { } } + /** + * An accessor for creating requests from the Operations collection. + * + *

The typical use is:

+ *
+       *   {@code CloudTasks cloudtasks = new CloudTasks(...);}
+       *   {@code CloudTasks.Operations.List request = cloudtasks.operations().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Operations operations() { + return new Operations(); + } + + /** + * The "operations" collection of methods. + */ + public class Operations { + + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the cloudtasks server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends CloudTasksRequest { + + private static final String REST_PATH = "v2/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the the cloudtasks server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param name The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CloudTasks.this, "GET", REST_PATH, null, com.google.api.services.cloudtasks.v2.model.Operation.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/[^/]+/operations/[^/]+$"); + } + } + + @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 Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource. */ + public Get 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/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + + } /** * An accessor for creating requests from the Queues collection. * diff --git a/clients/google-api-services-cloudtasks/v2/2.0.0/com/google/api/services/cloudtasks/v2/model/HttpTarget.java b/clients/google-api-services-cloudtasks/v2/2.0.0/com/google/api/services/cloudtasks/v2/model/HttpTarget.java index 0e3cd2bcc31..8c24cdbc626 100644 --- a/clients/google-api-services-cloudtasks/v2/2.0.0/com/google/api/services/cloudtasks/v2/model/HttpTarget.java +++ b/clients/google-api-services-cloudtasks/v2/2.0.0/com/google/api/services/cloudtasks/v2/model/HttpTarget.java @@ -17,7 +17,7 @@ package com.google.api.services.cloudtasks.v2.model; /** - * HTTP target. When specified as a Queue, all the tasks with [HttpRequest] will be overridden + * HTTP target. When specified at the Queue level, all tasks with HttpRequest are overridden * according to the target. * *

This is the Java data model class that specifies how to parse/serialize into the JSON that is diff --git a/clients/google-api-services-cloudtasks/v2/2.0.0/com/google/api/services/cloudtasks/v2/model/Operation.java b/clients/google-api-services-cloudtasks/v2/2.0.0/com/google/api/services/cloudtasks/v2/model/Operation.java new file mode 100644 index 00000000000..812c0f028d2 --- /dev/null +++ b/clients/google-api-services-cloudtasks/v2/2.0.0/com/google/api/services/cloudtasks/v2/model/Operation.java @@ -0,0 +1,195 @@ +/* + * 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.cloudtasks.v2.model; + +/** + * This resource represents a long-running operation that is the result of a network API call. + * + *

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 Cloud Tasks 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 Operation extends com.google.api.client.json.GenericJson { + + /** + * If the value is `false`, it means the operation is still in progress. If `true`, the operation + * is completed, and either `error` or `response` is available. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean done; + + /** + * The error result of the operation in case of failure or cancellation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Status error; + + /** + * Service-specific metadata associated with the operation. It typically contains progress + * information and common metadata such as create time. Some services might not provide such + * metadata. Any method that returns a long-running operation should document the metadata type, + * if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map metadata; + + /** + * The server-assigned name, which is only unique within the same service that originally returns + * it. If you use the default HTTP mapping, the `name` should be a resource name ending with + * `operations/{unique_id}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The normal, successful response of the operation. If the original method returns no data on + * success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is + * standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the + * response should have the type `XxxResponse`, where `Xxx` is the original method name. For + * example, if the original method name is `TakeSnapshot()`, the inferred response type is + * `TakeSnapshotResponse`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map response; + + /** + * If the value is `false`, it means the operation is still in progress. If `true`, the operation + * is completed, and either `error` or `response` is available. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDone() { + return done; + } + + /** + * If the value is `false`, it means the operation is still in progress. If `true`, the operation + * is completed, and either `error` or `response` is available. + * @param done done or {@code null} for none + */ + public Operation setDone(java.lang.Boolean done) { + this.done = done; + return this; + } + + /** + * The error result of the operation in case of failure or cancellation. + * @return value or {@code null} for none + */ + public Status getError() { + return error; + } + + /** + * The error result of the operation in case of failure or cancellation. + * @param error error or {@code null} for none + */ + public Operation setError(Status error) { + this.error = error; + return this; + } + + /** + * Service-specific metadata associated with the operation. It typically contains progress + * information and common metadata such as create time. Some services might not provide such + * metadata. Any method that returns a long-running operation should document the metadata type, + * if any. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Service-specific metadata associated with the operation. It typically contains progress + * information and common metadata such as create time. Some services might not provide such + * metadata. Any method that returns a long-running operation should document the metadata type, + * if any. + * @param metadata metadata or {@code null} for none + */ + public Operation setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * The server-assigned name, which is only unique within the same service that originally returns + * it. If you use the default HTTP mapping, the `name` should be a resource name ending with + * `operations/{unique_id}`. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The server-assigned name, which is only unique within the same service that originally returns + * it. If you use the default HTTP mapping, the `name` should be a resource name ending with + * `operations/{unique_id}`. + * @param name name or {@code null} for none + */ + public Operation setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The normal, successful response of the operation. If the original method returns no data on + * success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is + * standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the + * response should have the type `XxxResponse`, where `Xxx` is the original method name. For + * example, if the original method name is `TakeSnapshot()`, the inferred response type is + * `TakeSnapshotResponse`. + * @return value or {@code null} for none + */ + public java.util.Map getResponse() { + return response; + } + + /** + * The normal, successful response of the operation. If the original method returns no data on + * success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is + * standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the + * response should have the type `XxxResponse`, where `Xxx` is the original method name. For + * example, if the original method name is `TakeSnapshot()`, the inferred response type is + * `TakeSnapshotResponse`. + * @param response response or {@code null} for none + */ + public Operation setResponse(java.util.Map response) { + this.response = response; + return this; + } + + @Override + public Operation set(String fieldName, Object value) { + return (Operation) super.set(fieldName, value); + } + + @Override + public Operation clone() { + return (Operation) super.clone(); + } + +} diff --git a/clients/google-api-services-cloudtasks/v2/2.0.0/pom.xml b/clients/google-api-services-cloudtasks/v2/2.0.0/pom.xml index 28afbc423b6..13e11951f2e 100644 --- a/clients/google-api-services-cloudtasks/v2/2.0.0/pom.xml +++ b/clients/google-api-services-cloudtasks/v2/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-cloudtasks - v2-rev20260609-2.0.0 - Cloud Tasks API v2-rev20260609-2.0.0 + v2-rev20260831-2.0.0 + Cloud Tasks API v2-rev20260831-2.0.0 jar 2011 diff --git a/clients/google-api-services-cloudtasks/v2/README.md b/clients/google-api-services-cloudtasks/v2/README.md index 77162071b09..994d5c053b1 100644 --- a/clients/google-api-services-cloudtasks/v2/README.md +++ b/clients/google-api-services-cloudtasks/v2/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-cloudtasks - v2-rev20260609-2.0.0 + v2-rev20260831-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-cloudtasks:v2-rev20260609-2.0.0' + implementation 'com.google.apis:google-api-services-cloudtasks:v2-rev20260831-2.0.0' } ``` diff --git a/clients/google-api-services-cloudtasks/v2beta2/2.0.0/README.md b/clients/google-api-services-cloudtasks/v2beta2/2.0.0/README.md index 0178db6f111..22dc2a43821 100644 --- a/clients/google-api-services-cloudtasks/v2beta2/2.0.0/README.md +++ b/clients/google-api-services-cloudtasks/v2beta2/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-cloudtasks - v2beta2-rev20260722-2.0.0 + v2beta2-rev20260831-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-cloudtasks:v2beta2-rev20260722-2.0.0' + implementation 'com.google.apis:google-api-services-cloudtasks:v2beta2-rev20260831-2.0.0' } ``` diff --git a/clients/google-api-services-cloudtasks/v2beta2/2.0.0/com/google/api/services/cloudtasks/v2beta2/model/HttpTarget.java b/clients/google-api-services-cloudtasks/v2beta2/2.0.0/com/google/api/services/cloudtasks/v2beta2/model/HttpTarget.java index 0818679d7f1..d7fbbd1bad1 100644 --- a/clients/google-api-services-cloudtasks/v2beta2/2.0.0/com/google/api/services/cloudtasks/v2beta2/model/HttpTarget.java +++ b/clients/google-api-services-cloudtasks/v2beta2/2.0.0/com/google/api/services/cloudtasks/v2beta2/model/HttpTarget.java @@ -17,7 +17,7 @@ package com.google.api.services.cloudtasks.v2beta2.model; /** - * HTTP target. When specified as a Queue, all the tasks with [HttpRequest] will be overridden + * HTTP target. When specified at the Queue level, all tasks with HttpRequest are overridden * according to the target. * *

This is the Java data model class that specifies how to parse/serialize into the JSON that is diff --git a/clients/google-api-services-cloudtasks/v2beta2/2.0.0/pom.xml b/clients/google-api-services-cloudtasks/v2beta2/2.0.0/pom.xml index 6c65a1512c2..b52874fd162 100644 --- a/clients/google-api-services-cloudtasks/v2beta2/2.0.0/pom.xml +++ b/clients/google-api-services-cloudtasks/v2beta2/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-cloudtasks - v2beta2-rev20260722-2.0.0 - Cloud Tasks API v2beta2-rev20260722-2.0.0 + v2beta2-rev20260831-2.0.0 + Cloud Tasks API v2beta2-rev20260831-2.0.0 jar 2011 diff --git a/clients/google-api-services-cloudtasks/v2beta2/README.md b/clients/google-api-services-cloudtasks/v2beta2/README.md index 0178db6f111..22dc2a43821 100644 --- a/clients/google-api-services-cloudtasks/v2beta2/README.md +++ b/clients/google-api-services-cloudtasks/v2beta2/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-cloudtasks - v2beta2-rev20260722-2.0.0 + v2beta2-rev20260831-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-cloudtasks:v2beta2-rev20260722-2.0.0' + implementation 'com.google.apis:google-api-services-cloudtasks:v2beta2-rev20260831-2.0.0' } ``` diff --git a/clients/google-api-services-cloudtasks/v2beta3/2.0.0/README.md b/clients/google-api-services-cloudtasks/v2beta3/2.0.0/README.md index 9b577b0f0c8..69a9888b86e 100644 --- a/clients/google-api-services-cloudtasks/v2beta3/2.0.0/README.md +++ b/clients/google-api-services-cloudtasks/v2beta3/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-cloudtasks - v2beta3-rev20260722-2.0.0 + v2beta3-rev20260831-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-cloudtasks:v2beta3-rev20260722-2.0.0' + implementation 'com.google.apis:google-api-services-cloudtasks:v2beta3-rev20260831-2.0.0' } ``` diff --git a/clients/google-api-services-cloudtasks/v2beta3/2.0.0/com/google/api/services/cloudtasks/v2beta3/model/HttpTarget.java b/clients/google-api-services-cloudtasks/v2beta3/2.0.0/com/google/api/services/cloudtasks/v2beta3/model/HttpTarget.java index d3b8beccd68..5f4cd7fbb16 100644 --- a/clients/google-api-services-cloudtasks/v2beta3/2.0.0/com/google/api/services/cloudtasks/v2beta3/model/HttpTarget.java +++ b/clients/google-api-services-cloudtasks/v2beta3/2.0.0/com/google/api/services/cloudtasks/v2beta3/model/HttpTarget.java @@ -17,7 +17,7 @@ package com.google.api.services.cloudtasks.v2beta3.model; /** - * HTTP target. When specified as a Queue, all the tasks with [HttpRequest] will be overridden + * HTTP target. When specified at the Queue level, all tasks with HttpRequest are overridden * according to the target. * *

This is the Java data model class that specifies how to parse/serialize into the JSON that is diff --git a/clients/google-api-services-cloudtasks/v2beta3/2.0.0/pom.xml b/clients/google-api-services-cloudtasks/v2beta3/2.0.0/pom.xml index 0873f62b13b..46237565a08 100644 --- a/clients/google-api-services-cloudtasks/v2beta3/2.0.0/pom.xml +++ b/clients/google-api-services-cloudtasks/v2beta3/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-cloudtasks - v2beta3-rev20260722-2.0.0 - Cloud Tasks API v2beta3-rev20260722-2.0.0 + v2beta3-rev20260831-2.0.0 + Cloud Tasks API v2beta3-rev20260831-2.0.0 jar 2011 diff --git a/clients/google-api-services-cloudtasks/v2beta3/README.md b/clients/google-api-services-cloudtasks/v2beta3/README.md index 9b577b0f0c8..69a9888b86e 100644 --- a/clients/google-api-services-cloudtasks/v2beta3/README.md +++ b/clients/google-api-services-cloudtasks/v2beta3/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-cloudtasks - v2beta3-rev20260722-2.0.0 + v2beta3-rev20260831-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-cloudtasks:v2beta3-rev20260722-2.0.0' + implementation 'com.google.apis:google-api-services-cloudtasks:v2beta3-rev20260831-2.0.0' } ```