diff --git a/KmsInventory/metadata/V1/KeyTrackingService.php b/KmsInventory/metadata/V1/KeyTrackingService.php
index 7014d34a4725..173c5497c8ef 100644
--- a/KmsInventory/metadata/V1/KeyTrackingService.php
+++ b/KmsInventory/metadata/V1/KeyTrackingService.php
@@ -21,7 +21,7 @@ public static function initOnce() {
\GPBMetadata\Google\Protobuf\Timestamp::initOnce();
$pool->internalAddGeneratedFile(
'
-�
+�
8google/cloud/kms/inventory/v1/key_tracking_service.protogoogle.cloud.kms.inventory.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.protogoogle/protobuf/timestamp.proto"r
#GetProtectedResourcesSummaryRequestK
name ( B=�A�A7
@@ -42,7 +42,7 @@ public static function initOnce() {
LocationsEntry
key (
value (:8:��A�
-5kmsinventory.googleapis.com/ProtectedResourcesSummarymprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/protectedResourcesSummary�projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}/protectedResourcesSummary"�
+5kmsinventory.googleapis.com/ProtectedResourcesSummarymprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/protectedResourcesSummary�projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}/protectedResourcesSummary"�
SearchProtectedResourcesRequestG
scope ( B8�A�A2
0cloudresourcemanager.googleapis.com/Organization
@@ -51,7 +51,8 @@ public static function initOnce() {
*
page_size (
-page_token ( "�
+page_token (
+resource_types ( B�A"�
SearchProtectedResourcesResponseM
protected_resources (20.google.cloud.kms.inventory.v1.ProtectedResource
next_page_token ( "�
diff --git a/KmsInventory/src/V1/Gapic/KeyTrackingServiceGapicClient.php b/KmsInventory/src/V1/Gapic/KeyTrackingServiceGapicClient.php
index 06bf2794e6fc..33356a8cab1e 100644
--- a/KmsInventory/src/V1/Gapic/KeyTrackingServiceGapicClient.php
+++ b/KmsInventory/src/V1/Gapic/KeyTrackingServiceGapicClient.php
@@ -491,6 +491,21 @@ public function getProtectedResourcesSummary(
* If no page token is specified (the default), the first page
* of values will be returned. Any page token used here must have
* been generated by a previous call to the API.
+ * @type string[] $resourceTypes
+ * 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.
* @type RetrySettings|array $retrySettings
* Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
* associative array of retry settings parameters. See the documentation on
@@ -519,6 +534,10 @@ public function searchProtectedResources(
$request->setPageToken($optionalArgs['pageToken']);
}
+ if (isset($optionalArgs['resourceTypes'])) {
+ $request->setResourceTypes($optionalArgs['resourceTypes']);
+ }
+
$requestParams = new RequestParamsHeaderDescriptor(
$requestParamHeaders
);
diff --git a/KmsInventory/src/V1/SearchProtectedResourcesRequest.php b/KmsInventory/src/V1/SearchProtectedResourcesRequest.php
index 9ef9326de649..99b4f92617c6 100644
--- a/KmsInventory/src/V1/SearchProtectedResourcesRequest.php
+++ b/KmsInventory/src/V1/SearchProtectedResourcesRequest.php
@@ -50,6 +50,22 @@ class SearchProtectedResourcesRequest extends \Google\Protobuf\Internal\Message
* Generated from protobuf field string page_token = 4;
*/
protected $page_token = '';
+ /**
+ * 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.
+ *
+ * Generated from protobuf field repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $resource_types;
/**
* @param string $scope Required. Resource name of the organization.
@@ -93,6 +109,18 @@ public static function build(string $scope, string $cryptoKey): self
* When paginating, all other parameters provided to
* [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources]
* must match the call that provided the page token.
+ * @type array|\Google\Protobuf\Internal\RepeatedField $resource_types
+ * 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.
* }
*/
public function __construct($data = NULL) {
@@ -224,5 +252,51 @@ public function setPageToken($var)
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.
+ *
+ * Generated from protobuf field repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];
+ * @return \Google\Protobuf\Internal\RepeatedField
+ */
+ public function getResourceTypes()
+ {
+ return $this->resource_types;
+ }
+
+ /**
+ * 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.
+ *
+ * Generated from protobuf field repeated string resource_types = 5 [(.google.api.field_behavior) = OPTIONAL];
+ * @param array|\Google\Protobuf\Internal\RepeatedField $var
+ * @return $this
+ */
+ public function setResourceTypes($var)
+ {
+ $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
+ $this->resource_types = $arr;
+
+ return $this;
+ }
+
}