{@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 @@