From 6f5fdd896996bddf9f60e20ba4771a88c4f6eb9a Mon Sep 17 00:00:00 2001
From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com>
Date: Wed, 4 Feb 2026 18:13:53 -0800
Subject: [PATCH] chore: regenerate secretmanager client
---
.../v1/2.0.0/README.md | 4 +-
.../secretmanager/v1/SecretManager.java | 669 +++++++++++++++++-
.../v1/model/ListOperationsResponse.java | 120 ++++
.../secretmanager/v1/model/Operation.java | 195 +++++
.../v1/model/OperationMetadata.java | 216 ++++++
.../secretmanager/v1/model/Status.java | 127 ++++
.../v1/2.0.0/pom.xml | 4 +-
.../v1/README.md | 4 +-
.../v1beta1/2.0.0/README.md | 4 +-
.../secretmanager/v1beta1/SecretManager.java | 669 +++++++++++++++++-
.../v1beta1/model/ListOperationsResponse.java | 120 ++++
.../v1beta1/model/Operation.java | 195 +++++
.../v1beta1/model/OperationMetadata.java | 216 ++++++
.../secretmanager/v1beta1/model/Status.java | 127 ++++
.../v1beta1/2.0.0/pom.xml | 4 +-
.../v1beta1/README.md | 4 +-
.../v1beta2/2.0.0/README.md | 4 +-
.../secretmanager/v1beta2/SecretManager.java | 669 +++++++++++++++++-
.../v1beta2/model/ListOperationsResponse.java | 120 ++++
.../v1beta2/model/Operation.java | 195 +++++
.../v1beta2/model/OperationMetadata.java | 216 ++++++
.../secretmanager/v1beta2/model/Status.java | 127 ++++
.../v1beta2/2.0.0/pom.xml | 4 +-
.../v1beta2/README.md | 4 +-
24 files changed, 3993 insertions(+), 24 deletions(-)
create mode 100644 clients/google-api-services-secretmanager/v1/2.0.0/com/google/api/services/secretmanager/v1/model/ListOperationsResponse.java
create mode 100644 clients/google-api-services-secretmanager/v1/2.0.0/com/google/api/services/secretmanager/v1/model/Operation.java
create mode 100644 clients/google-api-services-secretmanager/v1/2.0.0/com/google/api/services/secretmanager/v1/model/OperationMetadata.java
create mode 100644 clients/google-api-services-secretmanager/v1/2.0.0/com/google/api/services/secretmanager/v1/model/Status.java
create mode 100644 clients/google-api-services-secretmanager/v1beta1/2.0.0/com/google/api/services/secretmanager/v1beta1/model/ListOperationsResponse.java
create mode 100644 clients/google-api-services-secretmanager/v1beta1/2.0.0/com/google/api/services/secretmanager/v1beta1/model/Operation.java
create mode 100644 clients/google-api-services-secretmanager/v1beta1/2.0.0/com/google/api/services/secretmanager/v1beta1/model/OperationMetadata.java
create mode 100644 clients/google-api-services-secretmanager/v1beta1/2.0.0/com/google/api/services/secretmanager/v1beta1/model/Status.java
create mode 100644 clients/google-api-services-secretmanager/v1beta2/2.0.0/com/google/api/services/secretmanager/v1beta2/model/ListOperationsResponse.java
create mode 100644 clients/google-api-services-secretmanager/v1beta2/2.0.0/com/google/api/services/secretmanager/v1beta2/model/Operation.java
create mode 100644 clients/google-api-services-secretmanager/v1beta2/2.0.0/com/google/api/services/secretmanager/v1beta2/model/OperationMetadata.java
create mode 100644 clients/google-api-services-secretmanager/v1beta2/2.0.0/com/google/api/services/secretmanager/v1beta2/model/Status.java
diff --git a/clients/google-api-services-secretmanager/v1/2.0.0/README.md b/clients/google-api-services-secretmanager/v1/2.0.0/README.md
index 546a3fb09bb..3b4648cb54f 100644
--- a/clients/google-api-services-secretmanager/v1/2.0.0/README.md
+++ b/clients/google-api-services-secretmanager/v1/2.0.0/README.md
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
+ * {@code SecretManager secretmanager = new SecretManager(...);}
+ * {@code SecretManager.Operations.List request = secretmanager.operations().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Operations operations() {
+ return new Operations();
+ }
+
+ /**
+ * The "operations" collection of methods.
+ */
+ public class Operations {
+
+ /**
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to
+ * cancel the operation, but success is not guaranteed. If the server doesn't support this method,
+ * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
+ * methods to check whether the cancellation succeeded or whether the operation completed despite
+ * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
+ * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to
+ * `Code.CANCELLED`.
+ *
+ * Create a request for the method "operations.cancel".
+ *
+ * This request holds the parameters needed by the secretmanager server. After setting any optional
+ * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
+ *
+ * @param name The name of the operation resource to be cancelled.
+ * @return the request
+ */
+ public Cancel cancel(java.lang.String name) throws java.io.IOException {
+ Cancel result = new Cancel(name);
+ initialize(result);
+ return result;
+ }
+
+ public class Cancel extends SecretManagerRequest{@link + * Cancel#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 to be cancelled. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(SecretManager.this, "POST", REST_PATH, null, com.google.api.services.secretmanager.v1.model.Empty.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 Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be cancelled. */ + public Cancel 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 Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the secretmanager server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be deleted. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends SecretManagerRequest{@link + * Delete#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 to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(SecretManager.this, "DELETE", REST_PATH, null, com.google.api.services.secretmanager.v1.model.Empty.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 Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be deleted. */ + public Delete 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 Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * 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 secretmanager 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 SecretManagerRequest+ * {@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(SecretManager.this, "GET", REST_PATH, null, com.google.api.services.secretmanager.v1.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); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the secretmanager server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends SecretManagerRequest+ * {@link List#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's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(SecretManager.this, "GET", REST_PATH, null, com.google.api.services.secretmanager.v1.model.ListOperationsResponse.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/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation's parent resource. */ + public List 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/[^/]+$"); + } + this.name = name; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } /** * An accessor for creating requests from the Secrets collection. * diff --git a/clients/google-api-services-secretmanager/v1/2.0.0/com/google/api/services/secretmanager/v1/model/ListOperationsResponse.java b/clients/google-api-services-secretmanager/v1/2.0.0/com/google/api/services/secretmanager/v1/model/ListOperationsResponse.java new file mode 100644 index 00000000000..55b5adb3619 --- /dev/null +++ b/clients/google-api-services-secretmanager/v1/2.0.0/com/google/api/services/secretmanager/v1/model/ListOperationsResponse.java @@ -0,0 +1,120 @@ +/* + * 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.secretmanager.v1.model; + +/** + * The response message for Operations.ListOperations. + * + *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 Secret Manager 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 ListOperationsResponse extends com.google.api.client.json.GenericJson { + + /** + * The standard List next-page token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * A list of operations that matches the specified filter in the request. + * 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 Secret Manager 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.MapThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Secret Manager 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 OperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. API version used to start the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiVersion; + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have been cancelled successfully have google.longrunning.Operation.error value + * with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requestedCancellation; + + /** + * Output only. Human-readable status of the operation, if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * Output only. Server-defined resource path for the target of the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String target; + + /** + * Output only. Name of the verb executed by the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verb; + + /** + * Output only. API version used to start the operation. + * @return value or {@code null} for none + */ + public java.lang.String getApiVersion() { + return apiVersion; + } + + /** + * Output only. API version used to start the operation. + * @param apiVersion apiVersion or {@code null} for none + */ + public OperationMetadata setApiVersion(java.lang.String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public OperationMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public OperationMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have been cancelled successfully have google.longrunning.Operation.error value + * with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequestedCancellation() { + return requestedCancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have been cancelled successfully have google.longrunning.Operation.error value + * with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. + * @param requestedCancellation requestedCancellation or {@code null} for none + */ + public OperationMetadata setRequestedCancellation(java.lang.Boolean requestedCancellation) { + this.requestedCancellation = requestedCancellation; + return this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @param statusMessage statusMessage or {@code null} for none + */ + public OperationMetadata setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @return value or {@code null} for none + */ + public java.lang.String getTarget() { + return target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @param target target or {@code null} for none + */ + public OperationMetadata setTarget(java.lang.String target) { + this.target = target; + return this; + } + + /** + * Output only. Name of the verb executed by the operation. + * @return value or {@code null} for none + */ + public java.lang.String getVerb() { + return verb; + } + + /** + * Output only. Name of the verb executed by the operation. + * @param verb verb or {@code null} for none + */ + public OperationMetadata setVerb(java.lang.String verb) { + this.verb = verb; + return this; + } + + @Override + public OperationMetadata set(String fieldName, Object value) { + return (OperationMetadata) super.set(fieldName, value); + } + + @Override + public OperationMetadata clone() { + return (OperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-secretmanager/v1/2.0.0/com/google/api/services/secretmanager/v1/model/Status.java b/clients/google-api-services-secretmanager/v1/2.0.0/com/google/api/services/secretmanager/v1/model/Status.java new file mode 100644 index 00000000000..45a371a770f --- /dev/null +++ b/clients/google-api-services-secretmanager/v1/2.0.0/com/google/api/services/secretmanager/v1/model/Status.java @@ -0,0 +1,127 @@ +/* + * 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.secretmanager.v1.model; + +/** + * The `Status` type defines a logical error model that is suitable for different programming + * environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). + * Each `Status` message contains three pieces of data: error code, error message, and error + * details. You can find out more about this error model and how to work with it in the [API Design + * Guide](https://cloud.google.com/apis/design/errors). + * + *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 Secret Manager 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 Status extends com.google.api.client.json.GenericJson { + + /** + * The status code, which should be an enum value of google.rpc.Code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer code; + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List
+ * {@code SecretManager secretmanager = new SecretManager(...);}
+ * {@code SecretManager.Operations.List request = secretmanager.operations().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Operations operations() {
+ return new Operations();
+ }
+
+ /**
+ * The "operations" collection of methods.
+ */
+ public class Operations {
+
+ /**
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to
+ * cancel the operation, but success is not guaranteed. If the server doesn't support this method,
+ * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
+ * methods to check whether the cancellation succeeded or whether the operation completed despite
+ * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
+ * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to
+ * `Code.CANCELLED`.
+ *
+ * Create a request for the method "operations.cancel".
+ *
+ * This request holds the parameters needed by the secretmanager server. After setting any optional
+ * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
+ *
+ * @param name The name of the operation resource to be cancelled.
+ * @return the request
+ */
+ public Cancel cancel(java.lang.String name) throws java.io.IOException {
+ Cancel result = new Cancel(name);
+ initialize(result);
+ return result;
+ }
+
+ public class Cancel extends SecretManagerRequest{@link + * Cancel#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 to be cancelled. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(SecretManager.this, "POST", REST_PATH, null, com.google.api.services.secretmanager.v1beta1.model.Empty.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 Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be cancelled. */ + public Cancel 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 Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the secretmanager server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be deleted. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends SecretManagerRequest{@link + * Delete#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 to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(SecretManager.this, "DELETE", REST_PATH, null, com.google.api.services.secretmanager.v1beta1.model.Empty.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 Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be deleted. */ + public Delete 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 Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * 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 secretmanager 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 SecretManagerRequest+ * {@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(SecretManager.this, "GET", REST_PATH, null, com.google.api.services.secretmanager.v1beta1.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); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the secretmanager server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends SecretManagerRequest+ * {@link List#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's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(SecretManager.this, "GET", REST_PATH, null, com.google.api.services.secretmanager.v1beta1.model.ListOperationsResponse.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/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation's parent resource. */ + public List 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/[^/]+$"); + } + this.name = name; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } } /** * An accessor for creating requests from the Secrets collection. diff --git a/clients/google-api-services-secretmanager/v1beta1/2.0.0/com/google/api/services/secretmanager/v1beta1/model/ListOperationsResponse.java b/clients/google-api-services-secretmanager/v1beta1/2.0.0/com/google/api/services/secretmanager/v1beta1/model/ListOperationsResponse.java new file mode 100644 index 00000000000..322a6ff131c --- /dev/null +++ b/clients/google-api-services-secretmanager/v1beta1/2.0.0/com/google/api/services/secretmanager/v1beta1/model/ListOperationsResponse.java @@ -0,0 +1,120 @@ +/* + * 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.secretmanager.v1beta1.model; + +/** + * The response message for Operations.ListOperations. + * + *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 Secret Manager 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 ListOperationsResponse extends com.google.api.client.json.GenericJson { + + /** + * The standard List next-page token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * A list of operations that matches the specified filter in the request. + * 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 Secret Manager 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.MapThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Secret Manager 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 OperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. API version used to start the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiVersion; + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have been cancelled successfully have google.longrunning.Operation.error value + * with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requestedCancellation; + + /** + * Output only. Human-readable status of the operation, if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * Output only. Server-defined resource path for the target of the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String target; + + /** + * Output only. Name of the verb executed by the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verb; + + /** + * Output only. API version used to start the operation. + * @return value or {@code null} for none + */ + public java.lang.String getApiVersion() { + return apiVersion; + } + + /** + * Output only. API version used to start the operation. + * @param apiVersion apiVersion or {@code null} for none + */ + public OperationMetadata setApiVersion(java.lang.String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public OperationMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public OperationMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have been cancelled successfully have google.longrunning.Operation.error value + * with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequestedCancellation() { + return requestedCancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have been cancelled successfully have google.longrunning.Operation.error value + * with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. + * @param requestedCancellation requestedCancellation or {@code null} for none + */ + public OperationMetadata setRequestedCancellation(java.lang.Boolean requestedCancellation) { + this.requestedCancellation = requestedCancellation; + return this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @param statusMessage statusMessage or {@code null} for none + */ + public OperationMetadata setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @return value or {@code null} for none + */ + public java.lang.String getTarget() { + return target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @param target target or {@code null} for none + */ + public OperationMetadata setTarget(java.lang.String target) { + this.target = target; + return this; + } + + /** + * Output only. Name of the verb executed by the operation. + * @return value or {@code null} for none + */ + public java.lang.String getVerb() { + return verb; + } + + /** + * Output only. Name of the verb executed by the operation. + * @param verb verb or {@code null} for none + */ + public OperationMetadata setVerb(java.lang.String verb) { + this.verb = verb; + return this; + } + + @Override + public OperationMetadata set(String fieldName, Object value) { + return (OperationMetadata) super.set(fieldName, value); + } + + @Override + public OperationMetadata clone() { + return (OperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-secretmanager/v1beta1/2.0.0/com/google/api/services/secretmanager/v1beta1/model/Status.java b/clients/google-api-services-secretmanager/v1beta1/2.0.0/com/google/api/services/secretmanager/v1beta1/model/Status.java new file mode 100644 index 00000000000..e72af740ccd --- /dev/null +++ b/clients/google-api-services-secretmanager/v1beta1/2.0.0/com/google/api/services/secretmanager/v1beta1/model/Status.java @@ -0,0 +1,127 @@ +/* + * 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.secretmanager.v1beta1.model; + +/** + * The `Status` type defines a logical error model that is suitable for different programming + * environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). + * Each `Status` message contains three pieces of data: error code, error message, and error + * details. You can find out more about this error model and how to work with it in the [API Design + * Guide](https://cloud.google.com/apis/design/errors). + * + *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 Secret Manager 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 Status extends com.google.api.client.json.GenericJson { + + /** + * The status code, which should be an enum value of google.rpc.Code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer code; + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List
+ * {@code SecretManager secretmanager = new SecretManager(...);}
+ * {@code SecretManager.Operations.List request = secretmanager.operations().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Operations operations() {
+ return new Operations();
+ }
+
+ /**
+ * The "operations" collection of methods.
+ */
+ public class Operations {
+
+ /**
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to
+ * cancel the operation, but success is not guaranteed. If the server doesn't support this method,
+ * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
+ * methods to check whether the cancellation succeeded or whether the operation completed despite
+ * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
+ * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to
+ * `Code.CANCELLED`.
+ *
+ * Create a request for the method "operations.cancel".
+ *
+ * This request holds the parameters needed by the secretmanager server. After setting any optional
+ * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
+ *
+ * @param name The name of the operation resource to be cancelled.
+ * @return the request
+ */
+ public Cancel cancel(java.lang.String name) throws java.io.IOException {
+ Cancel result = new Cancel(name);
+ initialize(result);
+ return result;
+ }
+
+ public class Cancel extends SecretManagerRequest{@link + * Cancel#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 to be cancelled. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(SecretManager.this, "POST", REST_PATH, null, com.google.api.services.secretmanager.v1beta2.model.Empty.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 Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be cancelled. */ + public Cancel 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 Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the secretmanager server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be deleted. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends SecretManagerRequest{@link + * Delete#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 to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(SecretManager.this, "DELETE", REST_PATH, null, com.google.api.services.secretmanager.v1beta2.model.Empty.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 Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be deleted. */ + public Delete 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 Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * 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 secretmanager 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 SecretManagerRequest+ * {@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(SecretManager.this, "GET", REST_PATH, null, com.google.api.services.secretmanager.v1beta2.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); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the secretmanager server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends SecretManagerRequest+ * {@link List#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's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(SecretManager.this, "GET", REST_PATH, null, com.google.api.services.secretmanager.v1beta2.model.ListOperationsResponse.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/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation's parent resource. */ + public List 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/[^/]+$"); + } + this.name = name; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } /** * An accessor for creating requests from the Secrets collection. * diff --git a/clients/google-api-services-secretmanager/v1beta2/2.0.0/com/google/api/services/secretmanager/v1beta2/model/ListOperationsResponse.java b/clients/google-api-services-secretmanager/v1beta2/2.0.0/com/google/api/services/secretmanager/v1beta2/model/ListOperationsResponse.java new file mode 100644 index 00000000000..05bf411054c --- /dev/null +++ b/clients/google-api-services-secretmanager/v1beta2/2.0.0/com/google/api/services/secretmanager/v1beta2/model/ListOperationsResponse.java @@ -0,0 +1,120 @@ +/* + * 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.secretmanager.v1beta2.model; + +/** + * The response message for Operations.ListOperations. + * + *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 Secret Manager 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 ListOperationsResponse extends com.google.api.client.json.GenericJson { + + /** + * The standard List next-page token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * A list of operations that matches the specified filter in the request. + * 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 Secret Manager 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.MapThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Secret Manager 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 OperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. API version used to start the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiVersion; + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have been cancelled successfully have google.longrunning.Operation.error value + * with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requestedCancellation; + + /** + * Output only. Human-readable status of the operation, if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * Output only. Server-defined resource path for the target of the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String target; + + /** + * Output only. Name of the verb executed by the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verb; + + /** + * Output only. API version used to start the operation. + * @return value or {@code null} for none + */ + public java.lang.String getApiVersion() { + return apiVersion; + } + + /** + * Output only. API version used to start the operation. + * @param apiVersion apiVersion or {@code null} for none + */ + public OperationMetadata setApiVersion(java.lang.String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public OperationMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public OperationMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have been cancelled successfully have google.longrunning.Operation.error value + * with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequestedCancellation() { + return requestedCancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have been cancelled successfully have google.longrunning.Operation.error value + * with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. + * @param requestedCancellation requestedCancellation or {@code null} for none + */ + public OperationMetadata setRequestedCancellation(java.lang.Boolean requestedCancellation) { + this.requestedCancellation = requestedCancellation; + return this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @param statusMessage statusMessage or {@code null} for none + */ + public OperationMetadata setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @return value or {@code null} for none + */ + public java.lang.String getTarget() { + return target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @param target target or {@code null} for none + */ + public OperationMetadata setTarget(java.lang.String target) { + this.target = target; + return this; + } + + /** + * Output only. Name of the verb executed by the operation. + * @return value or {@code null} for none + */ + public java.lang.String getVerb() { + return verb; + } + + /** + * Output only. Name of the verb executed by the operation. + * @param verb verb or {@code null} for none + */ + public OperationMetadata setVerb(java.lang.String verb) { + this.verb = verb; + return this; + } + + @Override + public OperationMetadata set(String fieldName, Object value) { + return (OperationMetadata) super.set(fieldName, value); + } + + @Override + public OperationMetadata clone() { + return (OperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-secretmanager/v1beta2/2.0.0/com/google/api/services/secretmanager/v1beta2/model/Status.java b/clients/google-api-services-secretmanager/v1beta2/2.0.0/com/google/api/services/secretmanager/v1beta2/model/Status.java new file mode 100644 index 00000000000..449a54064c0 --- /dev/null +++ b/clients/google-api-services-secretmanager/v1beta2/2.0.0/com/google/api/services/secretmanager/v1beta2/model/Status.java @@ -0,0 +1,127 @@ +/* + * 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.secretmanager.v1beta2.model; + +/** + * The `Status` type defines a logical error model that is suitable for different programming + * environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). + * Each `Status` message contains three pieces of data: error code, error message, and error + * details. You can find out more about this error model and how to work with it in the [API Design + * Guide](https://cloud.google.com/apis/design/errors). + * + *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 Secret Manager 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 Status extends com.google.api.client.json.GenericJson { + + /** + * The status code, which should be an enum value of google.rpc.Code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer code; + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List