From 88d88c188df0bbe0badac1426cf806729f67e848 Mon Sep 17 00:00:00 2001
From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com>
Date: Fri, 20 Feb 2026 13:06:32 -0800
Subject: [PATCH] chore: regenerate cloudkms client
---
.../v1/2.0.0/README.md | 4 +-
.../api/services/cloudkms/v1/CloudKMS.java | 674 +++++++++++++++++-
.../cloudkms/v1/model/AutokeyConfig.java | 36 +-
.../services/cloudkms/v1/model/Digest.java | 62 ++
.../services/cloudkms/v1/model/ImportJob.java | 9 +-
.../model/ListRetiredResourcesResponse.java | 118 +++
.../cloudkms/v1/model/RetiredResource.java | 150 ++++
.../v1/2.0.0/pom.xml | 4 +-
.../google-api-services-cloudkms/v1/README.md | 4 +-
9 files changed, 1034 insertions(+), 27 deletions(-)
create mode 100644 clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/ListRetiredResourcesResponse.java
create mode 100644 clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/RetiredResource.java
diff --git a/clients/google-api-services-cloudkms/v1/2.0.0/README.md b/clients/google-api-services-cloudkms/v1/2.0.0/README.md
index 42099a899bb..eccaee3de28 100644
--- a/clients/google-api-services-cloudkms/v1/2.0.0/README.md
+++ b/clients/google-api-services-cloudkms/v1/2.0.0/README.md
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The name of the CryptoKey to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CloudKMS.this, "DELETE", REST_PATH, null, com.google.api.services.cloudkms.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/[^/]+/keyRings/[^/]+/cryptoKeys/[^/]+$"); + } + } + + @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); + } + + /** Required. The name of the CryptoKey to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the CryptoKey to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the CryptoKey to delete. */ + 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/[^/]+/keyRings/[^/]+/cryptoKeys/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } /** * Encrypts data, so that it can only be recovered by a call to Decrypt. The CryptoKey.purpose must * be ENCRYPT_DECRYPT. @@ -8714,6 +8859,143 @@ public Decapsulate set(String parameterName, Object value) { return (Decapsulate) super.set(parameterName, value); } } + /** + * Permanently deletes the given CryptoKeyVersion. Only possible if the version has not been + * previously imported and if its state is one of DESTROYED, IMPORT_FAILED, or GENERATION_FAILED. + * Successfully imported CryptoKeyVersions cannot be deleted at this time. The specified version + * will be immediately and permanently deleted upon calling this method. This action cannot be + * undone. + * + * Create a request for the method "cryptoKeyVersions.delete". + * + * This request holds the parameters needed by the cloudkms server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the CryptoKeyVersion to delete. + * @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 CloudKMSRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The name of the CryptoKeyVersion to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CloudKMS.this, "DELETE", REST_PATH, null, com.google.api.services.cloudkms.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/[^/]+/keyRings/[^/]+/cryptoKeys/[^/]+/cryptoKeyVersions/[^/]+$"); + } + } + + @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); + } + + /** Required. The name of the CryptoKeyVersion to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the CryptoKeyVersion to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the CryptoKeyVersion to delete. */ + 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/[^/]+/keyRings/[^/]+/cryptoKeys/[^/]+/cryptoKeyVersions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } /** * Schedule a CryptoKeyVersion for destruction. Upon calling this method, CryptoKeyVersion.state * will be set to DESTROY_SCHEDULED, and destroy_time will be set to the time @@ -11617,6 +11899,369 @@ public Get set(String parameterName, Object value) { } } + } + /** + * An accessor for creating requests from the RetiredResources collection. + * + *The typical use is:
+ *
+ * {@code CloudKMS cloudkms = new CloudKMS(...);}
+ * {@code CloudKMS.RetiredResources.List request = cloudkms.retiredResources().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public RetiredResources retiredResources() {
+ return new RetiredResources();
+ }
+
+ /**
+ * The "retiredResources" collection of methods.
+ */
+ public class RetiredResources {
+
+ /**
+ * Retrieves a specific RetiredResource resource, which represents the record of a deleted
+ * CryptoKey.
+ *
+ * Create a request for the method "retiredResources.get".
+ *
+ * This request holds the parameters needed by the cloudkms server. After setting any optional
+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.
+ *
+ * @param name Required. The name of the RetiredResource to get.
+ * @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 CloudKMSRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The name of the RetiredResource to get. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CloudKMS.this, "GET", REST_PATH, null, com.google.api.services.cloudkms.v1.model.RetiredResource.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/[^/]+/retiredResources/[^/]+$"); + } + } + + @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); + } + + /** Required. The name of the RetiredResource to get. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the RetiredResource to get. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the RetiredResource to get. */ + 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/[^/]+/retiredResources/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists the RetiredResources which are the records of deleted CryptoKeys. RetiredResources prevent + * the reuse of these resource names after deletion. + * + * Create a request for the method "retiredResources.list". + * + * This request holds the parameters needed by the cloudkms server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The project-specific location holding the RetiredResources, in the format + * `projects/locations`. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends CloudKMSRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The project-specific location holding the RetiredResources, in the format + * `projects/locations`. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CloudKMS.this, "GET", REST_PATH, null, com.google.api.services.cloudkms.v1.model.ListRetiredResourcesResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The project-specific location holding the RetiredResources, in the format + * `projects/locations`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The project-specific location holding the RetiredResources, in the format + `projects/locations`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The project-specific location holding the RetiredResources, in the format + * `projects/locations`. + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Optional limit on the number of RetiredResources to be included in the + * response. Further RetiredResources can subsequently be obtained by including the + * ListRetiredResourcesResponse.next_page_token in a subsequent request. If unspecified, + * the server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Optional limit on the number of RetiredResources to be included in the response. Further + RetiredResources can subsequently be obtained by including the + ListRetiredResourcesResponse.next_page_token in a subsequent request. If unspecified, the server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Optional limit on the number of RetiredResources to be included in the + * response. Further RetiredResources can subsequently be obtained by including the + * ListRetiredResourcesResponse.next_page_token in a subsequent request. If unspecified, + * the server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. Optional pagination token, returned earlier via + * ListRetiredResourcesResponse.next_page_token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. Optional pagination token, returned earlier via + ListRetiredResourcesResponse.next_page_token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. Optional pagination token, returned earlier via + * ListRetiredResourcesResponse.next_page_token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + } /** * An accessor for creating requests from the SingleTenantHsmInstances collection. @@ -13251,8 +13896,7 @@ private static String chooseEndpoint(com.google.api.client.http.HttpTransport tr * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport} *+ * The value is encoded Base64 or {@code null} for none. + *
+ * + * @since 1.14 + */ + public Digest encodeExternalMu(byte[] externalMu) { + this.externalMu = com.google.api.client.util.Base64.encodeBase64URLSafeString(externalMu); + return this; + } + /** * A message digest produced with the SHA-256 algorithm. * @see #decodeSha256() diff --git a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/ImportJob.java b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/ImportJob.java index 1122eec2403..7c3ca8ceffd 100644 --- a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/ImportJob.java +++ b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/ImportJob.java @@ -64,7 +64,8 @@ public final class ImportJob extends com.google.api.client.json.GenericJson { * Immutable. The resource name of the backend environment where the key material for the wrapping * key resides and where all related cryptographic operations are performed. Currently, this field * is only populated for keys stored in HSM_SINGLE_TENANT. Note, this list is non-exhaustive and - * may apply to additional ProtectionLevels in the future. + * may apply to additional ProtectionLevels in the future. Supported resources: * + * `"projects/locations/singleTenantHsmInstances"` * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -174,7 +175,8 @@ public ImportJob setCreateTime(String createTime) { * Immutable. The resource name of the backend environment where the key material for the wrapping * key resides and where all related cryptographic operations are performed. Currently, this field * is only populated for keys stored in HSM_SINGLE_TENANT. Note, this list is non-exhaustive and - * may apply to additional ProtectionLevels in the future. + * may apply to additional ProtectionLevels in the future. Supported resources: * + * `"projects/locations/singleTenantHsmInstances"` * @return value or {@code null} for none */ public java.lang.String getCryptoKeyBackend() { @@ -185,7 +187,8 @@ public java.lang.String getCryptoKeyBackend() { * Immutable. The resource name of the backend environment where the key material for the wrapping * key resides and where all related cryptographic operations are performed. Currently, this field * is only populated for keys stored in HSM_SINGLE_TENANT. Note, this list is non-exhaustive and - * may apply to additional ProtectionLevels in the future. + * may apply to additional ProtectionLevels in the future. Supported resources: * + * `"projects/locations/singleTenantHsmInstances"` * @param cryptoKeyBackend cryptoKeyBackend or {@code null} for none */ public ImportJob setCryptoKeyBackend(java.lang.String cryptoKeyBackend) { diff --git a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/ListRetiredResourcesResponse.java b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/ListRetiredResourcesResponse.java new file mode 100644 index 00000000000..93dd576c492 --- /dev/null +++ b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/ListRetiredResourcesResponse.java @@ -0,0 +1,118 @@ +/* + * 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.cloudkms.v1.model; + +/** + * Response message for KeyManagementService.ListRetiredResources. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud Key Management Service (KMS) 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 ListRetiredResourcesResponse extends com.google.api.client.json.GenericJson { + + /** + * A token to retrieve the next page of results. Pass this value in + * ListRetiredResourcesRequest.page_token to retrieve the next page of results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of RetiredResources. + * 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 Cloud Key Management Service (KMS) 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 RetiredResource extends com.google.api.client.json.GenericJson { + + /** + * Output only. The time at which the original resource was deleted and this RetiredResource + * record was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String deleteTime; + + /** + * Output only. Identifier. The resource name for this RetiredResource in the format + * `projects/locations/retiredResources`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The full resource name of the original CryptoKey that was deleted in the format + * `projects/locations/keyRings/cryptoKeys`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String originalResource; + + /** + * Output only. The resource type of the original deleted resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resourceType; + + /** + * Output only. The time at which the original resource was deleted and this RetiredResource + * record was created. + * @return value or {@code null} for none + */ + public String getDeleteTime() { + return deleteTime; + } + + /** + * Output only. The time at which the original resource was deleted and this RetiredResource + * record was created. + * @param deleteTime deleteTime or {@code null} for none + */ + public RetiredResource setDeleteTime(String deleteTime) { + this.deleteTime = deleteTime; + return this; + } + + /** + * Output only. Identifier. The resource name for this RetiredResource in the format + * `projects/locations/retiredResources`. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. Identifier. The resource name for this RetiredResource in the format + * `projects/locations/retiredResources`. + * @param name name or {@code null} for none + */ + public RetiredResource setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The full resource name of the original CryptoKey that was deleted in the format + * `projects/locations/keyRings/cryptoKeys`. + * @return value or {@code null} for none + */ + public java.lang.String getOriginalResource() { + return originalResource; + } + + /** + * Output only. The full resource name of the original CryptoKey that was deleted in the format + * `projects/locations/keyRings/cryptoKeys`. + * @param originalResource originalResource or {@code null} for none + */ + public RetiredResource setOriginalResource(java.lang.String originalResource) { + this.originalResource = originalResource; + return this; + } + + /** + * Output only. The resource type of the original deleted resource. + * @return value or {@code null} for none + */ + public java.lang.String getResourceType() { + return resourceType; + } + + /** + * Output only. The resource type of the original deleted resource. + * @param resourceType resourceType or {@code null} for none + */ + public RetiredResource setResourceType(java.lang.String resourceType) { + this.resourceType = resourceType; + return this; + } + + @Override + public RetiredResource set(String fieldName, Object value) { + return (RetiredResource) super.set(fieldName, value); + } + + @Override + public RetiredResource clone() { + return (RetiredResource) super.clone(); + } + +} diff --git a/clients/google-api-services-cloudkms/v1/2.0.0/pom.xml b/clients/google-api-services-cloudkms/v1/2.0.0/pom.xml index e6b3ba6c13e..491244236a0 100644 --- a/clients/google-api-services-cloudkms/v1/2.0.0/pom.xml +++ b/clients/google-api-services-cloudkms/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@