Skip to content

Commit 2948f31

Browse files
Google APIscopybara-github
authored andcommitted
feat: In Secret Manager, users can now use filter to customize the output of ListSecrets/ListSecretVersions calls
PiperOrigin-RevId: 387156636
1 parent b69daf7 commit 2948f31

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

google/cloud/secretmanager/v1/service.proto

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,13 @@ message ListSecretsRequest {
221221
// Optional. Pagination token, returned earlier via
222222
// [ListSecretsResponse.next_page_token][google.cloud.secretmanager.v1.ListSecretsResponse.next_page_token].
223223
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
224+
225+
// Optional. Filter string, adhering to the rules in
226+
// [List-operation
227+
// filtering](https://cloud.google.com/secret-manager/docs/filtering). List
228+
// only secrets matching the filter. If filter is empty, all secrets are
229+
// listed.
230+
string filter = 4 [(google.api.field_behavior) = OPTIONAL];
224231
}
225232

226233
// Response message for [SecretManagerService.ListSecrets][google.cloud.secretmanager.v1.SecretManagerService.ListSecrets].
@@ -305,6 +312,13 @@ message ListSecretVersionsRequest {
305312
// Optional. Pagination token, returned earlier via
306313
// ListSecretVersionsResponse.next_page_token][].
307314
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
315+
316+
// Optional. Filter string, adhering to the rules in
317+
// [List-operation
318+
// filtering](https://cloud.google.com/secret-manager/docs/filtering). List
319+
// only secret versions matching the filter. If filter is empty, all secret
320+
// versions are listed.
321+
string filter = 4 [(google.api.field_behavior) = OPTIONAL];
308322
}
309323

310324
// Response message for [SecretManagerService.ListSecretVersions][google.cloud.secretmanager.v1.SecretManagerService.ListSecretVersions].

0 commit comments

Comments
 (0)