Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions clients/google-api-services-cloudtasks/v2/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-cloudtasks</artifactId>
<version>v2-rev20260609-2.0.0</version>
<version>v2-rev20260831-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -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'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,168 @@ public UpdateCmekConfig set(String parameterName, Object value) {
}
}

/**
* An accessor for creating requests from the Operations collection.
*
* <p>The typical use is:</p>
* <pre>
* {@code CloudTasks cloudtasks = new CloudTasks(...);}
* {@code CloudTasks.Operations.List request = cloudtasks.operations().list(parameters ...)}
* </pre>
*
* @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<com.google.api.services.cloudtasks.v2.model.Operation> {

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. <p>
* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor. </p>
*
* @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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
*
* <p> 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:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @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<String, java.lang.Object> 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<String, java.lang.Object> 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<String, java.lang.Object> 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<String, java.lang.Object> 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<String, java.lang.Object> 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<String, java.lang.Object> 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();
}

}
Loading
Loading