diff --git a/clients/google-api-services-kmsinventory/v1/2.0.0/README.md b/clients/google-api-services-kmsinventory/v1/2.0.0/README.md
index 24e5daa7931..56116e67b98 100644
--- a/clients/google-api-services-kmsinventory/v1/2.0.0/README.md
+++ b/clients/google-api-services-kmsinventory/v1/2.0.0/README.md
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
+ * {@code Kmsinventory kmsinventory = new Kmsinventory(...);}
+ * {@code Kmsinventory.ProtectedResources.List request = kmsinventory.protectedResources().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public ProtectedResources protectedResources() {
+ return new ProtectedResources();
+ }
+
+ /**
+ * The "protectedResources" collection of methods.
+ */
+ public class ProtectedResources {
+
+ /**
+ * Returns metadata about the resources protected by the given Cloud KMS CryptoKey in the given
+ * Cloud organization/project.
+ *
+ * Create a request for the method "protectedResources.search".
+ *
+ * This request holds the parameters needed by the kmsinventory server. After setting any optional
+ * parameters, call the {@link Search#execute()} method to invoke the remote operation.
+ *
+ * @param scope Required. A scope can be an organization or a project. Resources protected by the crypto key in
+ * provided scope will be returned. The following values are allowed: *
+ * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/12345678") *
+ * projects/{PROJECT_ID} (e.g., "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g.,
+ * "projects/12345678")
+ * @return the request
+ */
+ public Search search(java.lang.String scope) throws java.io.IOException {
+ Search result = new Search(scope);
+ initialize(result);
+ return result;
+ }
+
+ public class Search extends KmsinventoryRequest{@link + * Search#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param scope Required. A scope can be an organization or a project. Resources protected by the crypto key in + * provided scope will be returned. The following values are allowed: * + * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/12345678") * + * projects/{PROJECT_ID} (e.g., "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., + * "projects/12345678") + * @since 1.13 + */ + protected Search(java.lang.String scope) { + super(Kmsinventory.this, "GET", REST_PATH, null, com.google.api.services.kmsinventory.v1.model.GoogleCloudKmsInventoryV1SearchProtectedResourcesResponse.class); + this.scope = com.google.api.client.util.Preconditions.checkNotNull(scope, "Required parameter scope must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SCOPE_PATTERN.matcher(scope).matches(), + "Parameter scope 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 Search set$Xgafv(java.lang.String $Xgafv) { + return (Search) super.set$Xgafv($Xgafv); + } + + @Override + public Search setAccessToken(java.lang.String accessToken) { + return (Search) super.setAccessToken(accessToken); + } + + @Override + public Search setAlt(java.lang.String alt) { + return (Search) super.setAlt(alt); + } + + @Override + public Search setCallback(java.lang.String callback) { + return (Search) super.setCallback(callback); + } + + @Override + public Search setFields(java.lang.String fields) { + return (Search) super.setFields(fields); + } + + @Override + public Search setKey(java.lang.String key) { + return (Search) super.setKey(key); + } + + @Override + public Search setOauthToken(java.lang.String oauthToken) { + return (Search) super.setOauthToken(oauthToken); + } + + @Override + public Search setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Search) super.setPrettyPrint(prettyPrint); + } + + @Override + public Search setQuotaUser(java.lang.String quotaUser) { + return (Search) super.setQuotaUser(quotaUser); + } + + @Override + public Search setUploadType(java.lang.String uploadType) { + return (Search) super.setUploadType(uploadType); + } + + @Override + public Search setUploadProtocol(java.lang.String uploadProtocol) { + return (Search) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. A scope can be an organization or a project. Resources protected by the crypto + * key in provided scope will be returned. The following values are allowed: * + * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/12345678") * + * projects/{PROJECT_ID} (e.g., "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., + * "projects/12345678") + */ + @com.google.api.client.util.Key + private java.lang.String scope; + + /** Required. A scope can be an organization or a project. Resources protected by the crypto key in + provided scope will be returned. The following values are allowed: * + organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/12345678") * projects/{PROJECT_ID} (e.g., + "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") + */ + public java.lang.String getScope() { + return scope; + } + + /** + * Required. A scope can be an organization or a project. Resources protected by the crypto + * key in provided scope will be returned. The following values are allowed: * + * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/12345678") * + * projects/{PROJECT_ID} (e.g., "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., + * "projects/12345678") + */ + public Search setScope(java.lang.String scope) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SCOPE_PATTERN.matcher(scope).matches(), + "Parameter scope must conform to the pattern " + + "^projects/[^/]+$"); + } + this.scope = scope; + return this; + } + + /** Required. The resource name of the CryptoKey. */ + @com.google.api.client.util.Key + private java.lang.String cryptoKey; + + /** Required. The resource name of the CryptoKey. + */ + public java.lang.String getCryptoKey() { + return cryptoKey; + } + + /** Required. The resource name of the CryptoKey. */ + public Search setCryptoKey(java.lang.String cryptoKey) { + this.cryptoKey = cryptoKey; + return this; + } + + /** + * The maximum number of resources to return. The service may return fewer than this value. + * If unspecified, at most 500 resources will be returned. The maximum value is 500; values + * above 500 will be coerced to 500. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of resources to return. The service may return fewer than this value. If + unspecified, at most 500 resources will be returned. The maximum value is 500; values above 500 + will be coerced to 500. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * The maximum number of resources to return. The service may return fewer than this value. + * If unspecified, at most 500 resources will be returned. The maximum value is 500; values + * above 500 will be coerced to 500. + */ + public Search setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * A page token, received from a previous KeyTrackingService.SearchProtectedResources call. + * Provide this to retrieve the subsequent page. When paginating, all other parameters + * provided to KeyTrackingService.SearchProtectedResources must match the call that provided + * the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** A page token, received from a previous KeyTrackingService.SearchProtectedResources call. Provide + this to retrieve the subsequent page. When paginating, all other parameters provided to + KeyTrackingService.SearchProtectedResources must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * A page token, received from a previous KeyTrackingService.SearchProtectedResources call. + * Provide this to retrieve the subsequent page. When paginating, all other parameters + * provided to KeyTrackingService.SearchProtectedResources must match the call that provided + * the page token. + */ + public Search setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Optional. A list of resource types that this request searches for. If empty, it will + * search all the [trackable resource types](https://cloud.google.com/kms/docs/view-key- + * usage#tracked-resource-types). Regular expressions are also supported. For example: * + * `compute.googleapis.com.*` snapshots resources whose type starts with + * `compute.googleapis.com`. * `.*Image` snapshots resources whose type ends with `Image`. * + * `.*Image.*` snapshots resources whose type contains `Image`. See + * [RE2](https://github.com/google/re2/wiki/Syntax) for all supported regular expression + * syntax. If the regular expression does not match any supported resource type, an + * INVALID_ARGUMENT error will be returned. + */ + @com.google.api.client.util.Key + private java.util.List 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 KMS Inventory API. For a detailed explanation see:
@@ -74,6 +74,15 @@ public final class GoogleCloudKmsInventoryV1ProtectedResourcesSummary extends co
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.util.Map 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 KMS Inventory API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ *