From fdc59fe0289aff84073d18bfc4c02457740c4a41 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Sat, 29 Aug 2026 18:21:13 -0700 Subject: [PATCH] chore: regenerate cloudkms client --- .../v1/2.0.0/README.md | 4 +- .../api/services/cloudkms/v1/CloudKMS.java | 137 ++++++++++++++++++ .../cloudkms/v1/model/CryptoKeyVersion.java | 18 +-- .../v1/2.0.0/pom.xml | 4 +- .../google-api-services-cloudkms/v1/README.md | 4 +- 5 files changed, 152 insertions(+), 15 deletions(-) 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 05a801baac8..77c547b9070 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: com.google.apis google-api-services-cloudkms - v1-rev20260814-2.0.0 + v1-rev20260821-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-cloudkms:v1-rev20260814-2.0.0' + implementation 'com.google.apis:google-api-services-cloudkms:v1-rev20260821-2.0.0' } ``` diff --git a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/CloudKMS.java b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/CloudKMS.java index 2f643a388b0..0c9a5aee7a8 100644 --- a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/CloudKMS.java +++ b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/CloudKMS.java @@ -5806,6 +5806,143 @@ public Create set(String parameterName, Object value) { return (Create) super.set(parameterName, value); } } + /** + * Permanently deletes the given KeyRing. All child resources of the KeyRing must have been + * previously deleted using their corresponding Delete operations. The specified key ring will be + * immediately and permanently deleted upon calling this method. This action cannot be undone. Note: + * the key ring and its metadata will be remembered by KeyManagementService to prevent re-use of the + * key ring's resource name. + * + * Create a request for the method "keyRings.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 KeyRing 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 { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/keyRings/[^/]+$"); + + /** + * Permanently deletes the given KeyRing. All child resources of the KeyRing must have been + * previously deleted using their corresponding Delete operations. The specified key ring will be + * immediately and permanently deleted upon calling this method. This action cannot be undone. + * Note: the key ring and its metadata will be remembered by KeyManagementService to prevent re- + * use of the key ring's resource name. + * + * Create a request for the method "keyRings.delete". + * + * This request holds the parameters needed by the the cloudkms server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

{@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 KeyRing 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/[^/]+$"); + } + } + + @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 KeyRing to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the KeyRing to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the KeyRing 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/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } /** * Returns metadata for a given KeyRing. * diff --git a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/CryptoKeyVersion.java b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/CryptoKeyVersion.java index c5a37b65efe..e6ef90788e1 100644 --- a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/CryptoKeyVersion.java +++ b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/CryptoKeyVersion.java @@ -168,9 +168,9 @@ public final class CryptoKeyVersion extends com.google.api.client.json.GenericJs private java.lang.String state; /** - * Immutable. Field indicating that the key may be wrapped by a trusted key. This field can be set - * for all key purposes except ENCRYPT_DECRYPT, and is only valid for keys with protection level - * HSM_SINGLE_TENANT. This field can only be set at creation or import time via + * Optional. Immutable. Field indicating that the key may be wrapped by a trusted key. This field + * can be set for all key purposes except ENCRYPT_DECRYPT, and is only valid for keys with + * protection level HSM_SINGLE_TENANT. This field can only be set at creation or import time via * CreateCryptoKeyVersion, or ImportCryptoKeyVersion. * The value may be {@code null}. */ @@ -495,9 +495,9 @@ public CryptoKeyVersion setState(java.lang.String state) { } /** - * Immutable. Field indicating that the key may be wrapped by a trusted key. This field can be set - * for all key purposes except ENCRYPT_DECRYPT, and is only valid for keys with protection level - * HSM_SINGLE_TENANT. This field can only be set at creation or import time via + * Optional. Immutable. Field indicating that the key may be wrapped by a trusted key. This field + * can be set for all key purposes except ENCRYPT_DECRYPT, and is only valid for keys with + * protection level HSM_SINGLE_TENANT. This field can only be set at creation or import time via * CreateCryptoKeyVersion, or ImportCryptoKeyVersion. * @return value or {@code null} for none */ @@ -506,9 +506,9 @@ public java.lang.Boolean getTrustedWrappingEnabled() { } /** - * Immutable. Field indicating that the key may be wrapped by a trusted key. This field can be set - * for all key purposes except ENCRYPT_DECRYPT, and is only valid for keys with protection level - * HSM_SINGLE_TENANT. This field can only be set at creation or import time via + * Optional. Immutable. Field indicating that the key may be wrapped by a trusted key. This field + * can be set for all key purposes except ENCRYPT_DECRYPT, and is only valid for keys with + * protection level HSM_SINGLE_TENANT. This field can only be set at creation or import time via * CreateCryptoKeyVersion, or ImportCryptoKeyVersion. * @param trustedWrappingEnabled trustedWrappingEnabled or {@code null} for none */ 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 db784b26a9c..036a3689acb 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 @@ com.google.apis google-api-services-cloudkms - v1-rev20260814-2.0.0 - Cloud Key Management Service (KMS) API v1-rev20260814-2.0.0 + v1-rev20260821-2.0.0 + Cloud Key Management Service (KMS) API v1-rev20260821-2.0.0 jar 2011 diff --git a/clients/google-api-services-cloudkms/v1/README.md b/clients/google-api-services-cloudkms/v1/README.md index 05a801baac8..77c547b9070 100644 --- a/clients/google-api-services-cloudkms/v1/README.md +++ b/clients/google-api-services-cloudkms/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-cloudkms - v1-rev20260814-2.0.0 + v1-rev20260821-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-cloudkms:v1-rev20260814-2.0.0' + implementation 'com.google.apis:google-api-services-cloudkms:v1-rev20260821-2.0.0' } ```