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 386d76cc5dd..48c9ec08296 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:
The typical use is:
+ *
+ * {@code CloudKMS cloudkms = new CloudKMS(...);}
+ * {@code CloudKMS.Folders.List request = cloudkms.folders().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Folders folders() {
+ return new Folders();
+ }
+
+ /**
+ * The "folders" collection of methods.
+ */
+ public class Folders {
+
+ /**
+ * Returns the AutokeyConfig for a folder.
+ *
+ * Create a request for the method "folders.getAutokeyConfig".
+ *
+ * This request holds the parameters needed by the cloudkms server. After setting any optional
+ * parameters, call the {@link GetAutokeyConfig#execute()} method to invoke the remote operation.
+ *
+ * @param name Required. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`.
+ * @return the request
+ */
+ public GetAutokeyConfig getAutokeyConfig(java.lang.String name) throws java.io.IOException {
+ GetAutokeyConfig result = new GetAutokeyConfig(name);
+ initialize(result);
+ return result;
+ }
+
+ public class GetAutokeyConfig extends CloudKMSRequest{@link GetAutokeyConfig#initialize(com.google.api.client.googleapis.services.Abs + * tractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
+ * + * @param name Required. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`. + * @since 1.13 + */ + protected GetAutokeyConfig(java.lang.String name) { + super(CloudKMS.this, "GET", REST_PATH, null, com.google.api.services.cloudkms.v1.model.AutokeyConfig.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 " + + "^folders/[^/]+/autokeyConfig$"); + } + } + + @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 GetAutokeyConfig set$Xgafv(java.lang.String $Xgafv) { + return (GetAutokeyConfig) super.set$Xgafv($Xgafv); + } + + @Override + public GetAutokeyConfig setAccessToken(java.lang.String accessToken) { + return (GetAutokeyConfig) super.setAccessToken(accessToken); + } + + @Override + public GetAutokeyConfig setAlt(java.lang.String alt) { + return (GetAutokeyConfig) super.setAlt(alt); + } + + @Override + public GetAutokeyConfig setCallback(java.lang.String callback) { + return (GetAutokeyConfig) super.setCallback(callback); + } + + @Override + public GetAutokeyConfig setFields(java.lang.String fields) { + return (GetAutokeyConfig) super.setFields(fields); + } + + @Override + public GetAutokeyConfig setKey(java.lang.String key) { + return (GetAutokeyConfig) super.setKey(key); + } + + @Override + public GetAutokeyConfig setOauthToken(java.lang.String oauthToken) { + return (GetAutokeyConfig) super.setOauthToken(oauthToken); + } + + @Override + public GetAutokeyConfig setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetAutokeyConfig) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetAutokeyConfig setQuotaUser(java.lang.String quotaUser) { + return (GetAutokeyConfig) super.setQuotaUser(quotaUser); + } + + @Override + public GetAutokeyConfig setUploadType(java.lang.String uploadType) { + return (GetAutokeyConfig) super.setUploadType(uploadType); + } + + @Override + public GetAutokeyConfig setUploadProtocol(java.lang.String uploadProtocol) { + return (GetAutokeyConfig) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`. + */ + public GetAutokeyConfig 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 " + + "^folders/[^/]+/autokeyConfig$"); + } + this.name = name; + return this; + } + + @Override + public GetAutokeyConfig set(String parameterName, Object value) { + return (GetAutokeyConfig) super.set(parameterName, value); + } + } + /** + * Updates the AutokeyConfig for a folder. The caller must have both + * `cloudkms.autokeyConfigs.update` permission on the parent folder and + * `cloudkms.cryptoKeys.setIamPolicy` permission on the provided key project. An empty key project + * may be provided to clear the configuration. + * + * Create a request for the method "folders.updateAutokeyConfig". + * + * This request holds the parameters needed by the cloudkms server. After setting any optional + * parameters, call the {@link UpdateAutokeyConfig#execute()} method to invoke the remote operation. + * + * @param name Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`. + * @param content the {@link com.google.api.services.cloudkms.v1.model.AutokeyConfig} + * @return the request + */ + public UpdateAutokeyConfig updateAutokeyConfig(java.lang.String name, com.google.api.services.cloudkms.v1.model.AutokeyConfig content) throws java.io.IOException { + UpdateAutokeyConfig result = new UpdateAutokeyConfig(name, content); + initialize(result); + return result; + } + + public class UpdateAutokeyConfig extends CloudKMSRequest{@link UpdateAutokeyConfig#initialize(com.google.api.client.googleapis.services. + * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
+ * + * @param name Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`. + * @param content the {@link com.google.api.services.cloudkms.v1.model.AutokeyConfig} + * @since 1.13 + */ + protected UpdateAutokeyConfig(java.lang.String name, com.google.api.services.cloudkms.v1.model.AutokeyConfig content) { + super(CloudKMS.this, "PATCH", REST_PATH, content, com.google.api.services.cloudkms.v1.model.AutokeyConfig.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 " + + "^folders/[^/]+/autokeyConfig$"); + } + } + + @Override + public UpdateAutokeyConfig set$Xgafv(java.lang.String $Xgafv) { + return (UpdateAutokeyConfig) super.set$Xgafv($Xgafv); + } + + @Override + public UpdateAutokeyConfig setAccessToken(java.lang.String accessToken) { + return (UpdateAutokeyConfig) super.setAccessToken(accessToken); + } + + @Override + public UpdateAutokeyConfig setAlt(java.lang.String alt) { + return (UpdateAutokeyConfig) super.setAlt(alt); + } + + @Override + public UpdateAutokeyConfig setCallback(java.lang.String callback) { + return (UpdateAutokeyConfig) super.setCallback(callback); + } + + @Override + public UpdateAutokeyConfig setFields(java.lang.String fields) { + return (UpdateAutokeyConfig) super.setFields(fields); + } + + @Override + public UpdateAutokeyConfig setKey(java.lang.String key) { + return (UpdateAutokeyConfig) super.setKey(key); + } + + @Override + public UpdateAutokeyConfig setOauthToken(java.lang.String oauthToken) { + return (UpdateAutokeyConfig) super.setOauthToken(oauthToken); + } + + @Override + public UpdateAutokeyConfig setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdateAutokeyConfig) super.setPrettyPrint(prettyPrint); + } + + @Override + public UpdateAutokeyConfig setQuotaUser(java.lang.String quotaUser) { + return (UpdateAutokeyConfig) super.setQuotaUser(quotaUser); + } + + @Override + public UpdateAutokeyConfig setUploadType(java.lang.String uploadType) { + return (UpdateAutokeyConfig) super.setUploadType(uploadType); + } + + @Override + public UpdateAutokeyConfig setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdateAutokeyConfig) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. Name of the AutokeyConfig resource, e.g. + * `folders/{FOLDER_NUMBER}/autokeyConfig`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Name of the AutokeyConfig resource, e.g. + * `folders/{FOLDER_NUMBER}/autokeyConfig`. + */ + public UpdateAutokeyConfig 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 " + + "^folders/[^/]+/autokeyConfig$"); + } + this.name = name; + return this; + } + + /** Required. Masks which fields of the AutokeyConfig to update, e.g. `keyProject`. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. Masks which fields of the AutokeyConfig to update, e.g. `keyProject`. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Required. Masks which fields of the AutokeyConfig to update, e.g. `keyProject`. */ + public UpdateAutokeyConfig setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public UpdateAutokeyConfig set(String parameterName, Object value) { + return (UpdateAutokeyConfig) super.set(parameterName, value); + } + } + + } + /** * An accessor for creating requests from the Projects collection. * @@ -153,6 +478,161 @@ public Projects projects() { */ public class Projects { + /** + * Returns the effective Cloud KMS Autokey configuration for a given project. + * + * Create a request for the method "projects.showEffectiveAutokeyConfig". + * + * This request holds the parameters needed by the cloudkms server. After setting any optional + * parameters, call the {@link ShowEffectiveAutokeyConfig#execute()} method to invoke the remote + * operation. + * + * @param parent Required. Name of the resource project to the show effective Cloud KMS Autokey configuration for. + * This may be helpful for interrogating the effect of nested folder configurations on a + * given resource project. + * @return the request + */ + public ShowEffectiveAutokeyConfig showEffectiveAutokeyConfig(java.lang.String parent) throws java.io.IOException { + ShowEffectiveAutokeyConfig result = new ShowEffectiveAutokeyConfig(parent); + initialize(result); + return result; + } + + public class ShowEffectiveAutokeyConfig extends CloudKMSRequest{@link ShowEffectiveAutokeyConfig#initialize(com.google.api.client.google + * apis.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.
+ * + * @param parent Required. Name of the resource project to the show effective Cloud KMS Autokey configuration for. + * This may be helpful for interrogating the effect of nested folder configurations on a + * given resource project. + * @since 1.13 + */ + protected ShowEffectiveAutokeyConfig(java.lang.String parent) { + super(CloudKMS.this, "GET", REST_PATH, null, com.google.api.services.cloudkms.v1.model.ShowEffectiveAutokeyConfigResponse.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/[^/]+$"); + } + } + + @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 ShowEffectiveAutokeyConfig set$Xgafv(java.lang.String $Xgafv) { + return (ShowEffectiveAutokeyConfig) super.set$Xgafv($Xgafv); + } + + @Override + public ShowEffectiveAutokeyConfig setAccessToken(java.lang.String accessToken) { + return (ShowEffectiveAutokeyConfig) super.setAccessToken(accessToken); + } + + @Override + public ShowEffectiveAutokeyConfig setAlt(java.lang.String alt) { + return (ShowEffectiveAutokeyConfig) super.setAlt(alt); + } + + @Override + public ShowEffectiveAutokeyConfig setCallback(java.lang.String callback) { + return (ShowEffectiveAutokeyConfig) super.setCallback(callback); + } + + @Override + public ShowEffectiveAutokeyConfig setFields(java.lang.String fields) { + return (ShowEffectiveAutokeyConfig) super.setFields(fields); + } + + @Override + public ShowEffectiveAutokeyConfig setKey(java.lang.String key) { + return (ShowEffectiveAutokeyConfig) super.setKey(key); + } + + @Override + public ShowEffectiveAutokeyConfig setOauthToken(java.lang.String oauthToken) { + return (ShowEffectiveAutokeyConfig) super.setOauthToken(oauthToken); + } + + @Override + public ShowEffectiveAutokeyConfig setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ShowEffectiveAutokeyConfig) super.setPrettyPrint(prettyPrint); + } + + @Override + public ShowEffectiveAutokeyConfig setQuotaUser(java.lang.String quotaUser) { + return (ShowEffectiveAutokeyConfig) super.setQuotaUser(quotaUser); + } + + @Override + public ShowEffectiveAutokeyConfig setUploadType(java.lang.String uploadType) { + return (ShowEffectiveAutokeyConfig) super.setUploadType(uploadType); + } + + @Override + public ShowEffectiveAutokeyConfig setUploadProtocol(java.lang.String uploadProtocol) { + return (ShowEffectiveAutokeyConfig) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Name of the resource project to the show effective Cloud KMS Autokey + * configuration for. This may be helpful for interrogating the effect of nested folder + * configurations on a given resource project. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Name of the resource project to the show effective Cloud KMS Autokey configuration for. + This may be helpful for interrogating the effect of nested folder configurations on a given + resource project. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Name of the resource project to the show effective Cloud KMS Autokey + * configuration for. This may be helpful for interrogating the effect of nested folder + * configurations on a given resource project. + */ + public ShowEffectiveAutokeyConfig 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/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public ShowEffectiveAutokeyConfig set(String parameterName, Object value) { + return (ShowEffectiveAutokeyConfig) super.set(parameterName, value); + } + } + /** * An accessor for creating requests from the Locations collection. * @@ -2711,33 +3191,511 @@ public class VerifyConnectivity extends CloudKMSRequestThe typical use is:
+ *
+ * {@code CloudKMS cloudkms = new CloudKMS(...);}
+ * {@code CloudKMS.KeyHandles.List request = cloudkms.keyHandles().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public KeyHandles keyHandles() {
+ return new KeyHandles();
+ }
+
+ /**
+ * The "keyHandles" collection of methods.
+ */
+ public class KeyHandles {
+
+ /**
+ * Creates a new KeyHandle, triggering the provisioning of a new CryptoKey for CMEK use with the
+ * given resource type in the configured key project and the same location. GetOperation should be
+ * used to resolve the resulting long-running operation and get the resulting KeyHandle and
+ * CryptoKey.
+ *
+ * Create a request for the method "keyHandles.create".
+ *
+ * This request holds the parameters needed by the cloudkms server. After setting any optional
+ * parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. Name of the resource project and location to create the KeyHandle in, e.g.
+ * `projects/{PROJECT_ID}/locations/{LOCATION}`.
+ * @param content the {@link com.google.api.services.cloudkms.v1.model.KeyHandle}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.cloudkms.v1.model.KeyHandle content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends CloudKMSRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. Name of the resource project and location to create the KeyHandle in, e.g. + * `projects/{PROJECT_ID}/locations/{LOCATION}`. + * @param content the {@link com.google.api.services.cloudkms.v1.model.KeyHandle} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.cloudkms.v1.model.KeyHandle content) { + super(CloudKMS.this, "POST", REST_PATH, content, com.google.api.services.cloudkms.v1.model.Operation.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 Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Name of the resource project and location to create the KeyHandle in, e.g. + * `projects/{PROJECT_ID}/locations/{LOCATION}`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Name of the resource project and location to create the KeyHandle in, e.g. + `projects/{PROJECT_ID}/locations/{LOCATION}`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Name of the resource project and location to create the KeyHandle in, e.g. + * `projects/{PROJECT_ID}/locations/{LOCATION}`. + */ + public Create 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. Id of the KeyHandle. Must be unique to the resource project and location. If + * not provided by the caller, a new UUID is used. + */ + @com.google.api.client.util.Key + private java.lang.String keyHandleId; + + /** Optional. Id of the KeyHandle. Must be unique to the resource project and location. If not provided + by the caller, a new UUID is used. + */ + public java.lang.String getKeyHandleId() { + return keyHandleId; + } + + /** + * Optional. Id of the KeyHandle. Must be unique to the resource project and location. If + * not provided by the caller, a new UUID is used. + */ + public Create setKeyHandleId(java.lang.String keyHandleId) { + this.keyHandleId = keyHandleId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Returns the KeyHandle. + * + * Create a request for the method "keyHandles.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. Name of the KeyHandle resource, e.g. + * `projects/{PROJECT_ID}/locations/{LOCATION}/keyHandles/{KEY_HANDLE_ID}`. + * @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. Name of the KeyHandle resource, e.g. + * `projects/{PROJECT_ID}/locations/{LOCATION}/keyHandles/{KEY_HANDLE_ID}`. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CloudKMS.this, "GET", REST_PATH, null, com.google.api.services.cloudkms.v1.model.KeyHandle.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/[^/]+/keyHandles/[^/]+$"); + } + } + + @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. Name of the KeyHandle resource, e.g. + * `projects/{PROJECT_ID}/locations/{LOCATION}/keyHandles/{KEY_HANDLE_ID}`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the KeyHandle resource, e.g. + `projects/{PROJECT_ID}/locations/{LOCATION}/keyHandles/{KEY_HANDLE_ID}`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Name of the KeyHandle resource, e.g. + * `projects/{PROJECT_ID}/locations/{LOCATION}/keyHandles/{KEY_HANDLE_ID}`. + */ + 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/[^/]+/keyHandles/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists KeyHandles. + * + * Create a request for the method "keyHandles.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. Name of the resource project and location from which to list KeyHandles, e.g. + * `projects/{PROJECT_ID}/locations/{LOCATION}`. + * @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 VerifyConnectivity#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.+ * {@link List#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 EkmConnection to verify. + * @param parent Required. Name of the resource project and location from which to list KeyHandles, e.g. + * `projects/{PROJECT_ID}/locations/{LOCATION}`. * @since 1.13 */ - protected VerifyConnectivity(java.lang.String name) { - super(CloudKMS.this, "GET", REST_PATH, null, com.google.api.services.cloudkms.v1.model.VerifyConnectivityResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected List(java.lang.String parent) { + super(CloudKMS.this, "GET", REST_PATH, null, com.google.api.services.cloudkms.v1.model.ListKeyHandlesResponse.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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/ekmConnections/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @@ -2752,84 +3710,114 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public VerifyConnectivity set$Xgafv(java.lang.String $Xgafv) { - return (VerifyConnectivity) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public VerifyConnectivity setAccessToken(java.lang.String accessToken) { - return (VerifyConnectivity) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public VerifyConnectivity setAlt(java.lang.String alt) { - return (VerifyConnectivity) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public VerifyConnectivity setCallback(java.lang.String callback) { - return (VerifyConnectivity) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public VerifyConnectivity setFields(java.lang.String fields) { - return (VerifyConnectivity) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public VerifyConnectivity setKey(java.lang.String key) { - return (VerifyConnectivity) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public VerifyConnectivity setOauthToken(java.lang.String oauthToken) { - return (VerifyConnectivity) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public VerifyConnectivity setPrettyPrint(java.lang.Boolean prettyPrint) { - return (VerifyConnectivity) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public VerifyConnectivity setQuotaUser(java.lang.String quotaUser) { - return (VerifyConnectivity) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public VerifyConnectivity setUploadType(java.lang.String uploadType) { - return (VerifyConnectivity) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public VerifyConnectivity setUploadProtocol(java.lang.String uploadProtocol) { - return (VerifyConnectivity) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } - /** Required. The name of the EkmConnection to verify. */ + /** + * Required. Name of the resource project and location from which to list KeyHandles, e.g. + * `projects/{PROJECT_ID}/locations/{LOCATION}`. + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** Required. The name of the EkmConnection to verify. + /** Required. Name of the resource project and location from which to list KeyHandles, e.g. + `projects/{PROJECT_ID}/locations/{LOCATION}`. */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } - /** Required. The name of the EkmConnection to verify. */ - public VerifyConnectivity setName(java.lang.String name) { + /** + * Required. Name of the resource project and location from which to list KeyHandles, e.g. + * `projects/{PROJECT_ID}/locations/{LOCATION}`. + */ + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/ekmConnections/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.name = name; + this.parent = parent; + return this; + } + + /** + * Optional. Filter to apply when listing KeyHandles, e.g. + * `resource_type_selector="{SERVICE}.googleapis.com/{TYPE}"`. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to apply when listing KeyHandles, e.g. + `resource_type_selector="{SERVICE}.googleapis.com/{TYPE}"`. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to apply when listing KeyHandles, e.g. + * `resource_type_selector="{SERVICE}.googleapis.com/{TYPE}"`. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; return this; } @Override - public VerifyConnectivity set(String parameterName, Object value) { - return (VerifyConnectivity) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } @@ -8700,6 +9688,168 @@ public TestIamPermissions set(String parameterName, Object value) { } } + /** + * An accessor for creating requests from the Operations collection. + * + *The typical use is:
+ *
+ * {@code CloudKMS cloudkms = new CloudKMS(...);}
+ * {@code CloudKMS.Operations.List request = cloudkms.operations().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Operations operations() {
+ return new Operations();
+ }
+
+ /**
+ * The "operations" collection of methods.
+ */
+ public class Operations {
+
+ /**
+ * Gets the latest state of a long-running operation. Clients can use this method to poll the
+ * operation result at intervals as recommended by the API service.
+ *
+ * Create a request for the method "operations.get".
+ *
+ * This request holds the parameters needed by the cloudkms 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 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 The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CloudKMS.this, "GET", 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/[^/]+/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); + } + } + + } } } diff --git a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/AutokeyConfig.java b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/AutokeyConfig.java new file mode 100644 index 00000000000..675d169740c --- /dev/null +++ b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/AutokeyConfig.java @@ -0,0 +1,106 @@ +/* + * 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; + +/** + * Cloud KMS Autokey configuration for a folder. + * + *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 AutokeyConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Name of the key project, e.g. `projects/{PROJECT_ID}` or `projects/{PROJECT_NUMBER}`, + * where Cloud KMS Autokey will provision new CryptoKeys. On UpdateAutokeyConfig, the caller will + * require `cloudkms.cryptoKeys.setIamPolicy` permission on this key project. Once configured, for + * Cloud KMS Autokey to function properly, this key project must have the Cloud KMS API activated + * and the Cloud KMS Service Agent for this key project must be granted the `cloudkms.admin` role + * (or pertinent permissions). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String keyProject; + + /** + * Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. Name of the key project, e.g. `projects/{PROJECT_ID}` or `projects/{PROJECT_NUMBER}`, + * where Cloud KMS Autokey will provision new CryptoKeys. On UpdateAutokeyConfig, the caller will + * require `cloudkms.cryptoKeys.setIamPolicy` permission on this key project. Once configured, for + * Cloud KMS Autokey to function properly, this key project must have the Cloud KMS API activated + * and the Cloud KMS Service Agent for this key project must be granted the `cloudkms.admin` role + * (or pertinent permissions). + * @return value or {@code null} for none + */ + public java.lang.String getKeyProject() { + return keyProject; + } + + /** + * Optional. Name of the key project, e.g. `projects/{PROJECT_ID}` or `projects/{PROJECT_NUMBER}`, + * where Cloud KMS Autokey will provision new CryptoKeys. On UpdateAutokeyConfig, the caller will + * require `cloudkms.cryptoKeys.setIamPolicy` permission on this key project. Once configured, for + * Cloud KMS Autokey to function properly, this key project must have the Cloud KMS API activated + * and the Cloud KMS Service Agent for this key project must be granted the `cloudkms.admin` role + * (or pertinent permissions). + * @param keyProject keyProject or {@code null} for none + */ + public AutokeyConfig setKeyProject(java.lang.String keyProject) { + this.keyProject = keyProject; + return this; + } + + /** + * Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`. + * @param name name or {@code null} for none + */ + public AutokeyConfig setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public AutokeyConfig set(String fieldName, Object value) { + return (AutokeyConfig) super.set(fieldName, value); + } + + @Override + public AutokeyConfig clone() { + return (AutokeyConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/KeyHandle.java b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/KeyHandle.java new file mode 100644 index 00000000000..a0542465330 --- /dev/null +++ b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/KeyHandle.java @@ -0,0 +1,125 @@ +/* + * 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; + +/** + * Resource-oriented representation of a request to Cloud KMS Autokey and the resulting provisioning + * of a CryptoKey. + * + *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 KeyHandle extends com.google.api.client.json.GenericJson { + + /** + * Output only. Name of a CryptoKey that has been provisioned for Customer Managed Encryption Key + * (CMEK) use in the KeyHandle's project and location for the requested resource type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kmsKey; + + /** + * Output only. Identifier. Name of the [KeyHandle] resource, e.g. + * `projects/{PROJECT_ID}/locations/{LOCATION}/keyHandles/{KEY_HANDLE_ID}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. Indicates the resource type that the resulting CryptoKey is meant to protect, e.g. + * `{SERVICE}.googleapis.com/{TYPE}`. See documentation for supported resource types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resourceTypeSelector; + + /** + * Output only. Name of a CryptoKey that has been provisioned for Customer Managed Encryption Key + * (CMEK) use in the KeyHandle's project and location for the requested resource type. + * @return value or {@code null} for none + */ + public java.lang.String getKmsKey() { + return kmsKey; + } + + /** + * Output only. Name of a CryptoKey that has been provisioned for Customer Managed Encryption Key + * (CMEK) use in the KeyHandle's project and location for the requested resource type. + * @param kmsKey kmsKey or {@code null} for none + */ + public KeyHandle setKmsKey(java.lang.String kmsKey) { + this.kmsKey = kmsKey; + return this; + } + + /** + * Output only. Identifier. Name of the [KeyHandle] resource, e.g. + * `projects/{PROJECT_ID}/locations/{LOCATION}/keyHandles/{KEY_HANDLE_ID}`. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. Identifier. Name of the [KeyHandle] resource, e.g. + * `projects/{PROJECT_ID}/locations/{LOCATION}/keyHandles/{KEY_HANDLE_ID}`. + * @param name name or {@code null} for none + */ + public KeyHandle setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Required. Indicates the resource type that the resulting CryptoKey is meant to protect, e.g. + * `{SERVICE}.googleapis.com/{TYPE}`. See documentation for supported resource types. + * @return value or {@code null} for none + */ + public java.lang.String getResourceTypeSelector() { + return resourceTypeSelector; + } + + /** + * Required. Indicates the resource type that the resulting CryptoKey is meant to protect, e.g. + * `{SERVICE}.googleapis.com/{TYPE}`. See documentation for supported resource types. + * @param resourceTypeSelector resourceTypeSelector or {@code null} for none + */ + public KeyHandle setResourceTypeSelector(java.lang.String resourceTypeSelector) { + this.resourceTypeSelector = resourceTypeSelector; + return this; + } + + @Override + public KeyHandle set(String fieldName, Object value) { + return (KeyHandle) super.set(fieldName, value); + } + + @Override + public KeyHandle clone() { + return (KeyHandle) super.clone(); + } + +} diff --git a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/ListKeyHandlesResponse.java b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/ListKeyHandlesResponse.java new file mode 100644 index 00000000000..5921d8538fb --- /dev/null +++ b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/ListKeyHandlesResponse.java @@ -0,0 +1,73 @@ +/* + * 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 Autokey.ListKeyHandles. + * + *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 ListKeyHandlesResponse extends com.google.api.client.json.GenericJson { + + /** + * Resulting KeyHandles. + * 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 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 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 ShowEffectiveAutokeyConfigResponse extends com.google.api.client.json.GenericJson { + + /** + * Name of the key project configured in the resource project's folder ancestry. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String keyProject; + + /** + * Name of the key project configured in the resource project's folder ancestry. + * @return value or {@code null} for none + */ + public java.lang.String getKeyProject() { + return keyProject; + } + + /** + * Name of the key project configured in the resource project's folder ancestry. + * @param keyProject keyProject or {@code null} for none + */ + public ShowEffectiveAutokeyConfigResponse setKeyProject(java.lang.String keyProject) { + this.keyProject = keyProject; + return this; + } + + @Override + public ShowEffectiveAutokeyConfigResponse set(String fieldName, Object value) { + return (ShowEffectiveAutokeyConfigResponse) super.set(fieldName, value); + } + + @Override + public ShowEffectiveAutokeyConfigResponse clone() { + return (ShowEffectiveAutokeyConfigResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/Status.java b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/Status.java new file mode 100644 index 00000000000..cf08ce0bdc6 --- /dev/null +++ b/clients/google-api-services-cloudkms/v1/2.0.0/com/google/api/services/cloudkms/v1/model/Status.java @@ -0,0 +1,128 @@ +/* + * 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; + +/** + * 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 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 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