Skip to content

Commit

Permalink
feat: In Secret Manager, users can now use filter to customize the ou…
Browse files Browse the repository at this point in the history
…tput of ListSecrets/ListSecretVersions calls (#283)

* feat: In Secret Manager, users can now use filter to customize the output of ListSecrets/ListSecretVersions calls

PiperOrigin-RevId: 387156636

Source-Link: googleapis/googleapis@2948f31

Source-Link: googleapis/googleapis-gen@1e23916

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Jul 30, 2021
1 parent 2e85020 commit a59cd38
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,13 @@ message ListSecretsRequest {
// Optional. Pagination token, returned earlier via
// [ListSecretsResponse.next_page_token][google.cloud.secretmanager.v1.ListSecretsResponse.next_page_token].
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];

// Optional. Filter string, adhering to the rules in
// [List-operation
// filtering](https://cloud.google.com/secret-manager/docs/filtering). List
// only secrets matching the filter. If filter is empty, all secrets are
// listed.
string filter = 4 [(google.api.field_behavior) = OPTIONAL];
}

// Response message for [SecretManagerService.ListSecrets][google.cloud.secretmanager.v1.SecretManagerService.ListSecrets].
Expand Down Expand Up @@ -305,6 +312,13 @@ message ListSecretVersionsRequest {
// Optional. Pagination token, returned earlier via
// ListSecretVersionsResponse.next_page_token][].
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];

// Optional. Filter string, adhering to the rules in
// [List-operation
// filtering](https://cloud.google.com/secret-manager/docs/filtering). List
// only secret versions matching the filter. If filter is empty, all secret
// versions are listed.
string filter = 4 [(google.api.field_behavior) = OPTIONAL];
}

// Response message for [SecretManagerService.ListSecretVersions][google.cloud.secretmanager.v1.SecretManagerService.ListSecretVersions].
Expand Down
12 changes: 12 additions & 0 deletions packages/google-cloud-secretmanager/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 44 additions & 0 deletions packages/google-cloud-secretmanager/protos/protos.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions packages/google-cloud-secretmanager/protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -1652,6 +1652,12 @@ export class SecretManagerServiceClient {
* @param {string} [request.pageToken]
* Optional. Pagination token, returned earlier via
* {@link google.cloud.secretmanager.v1.ListSecretsResponse.next_page_token|ListSecretsResponse.next_page_token}.
* @param {string} [request.filter]
* Optional. Filter string, adhering to the rules in
* [List-operation
* filtering](https://cloud.google.com/secret-manager/docs/filtering). List
* only secrets matching the filter. If filter is empty, all secrets are
* listed.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
Expand Down Expand Up @@ -1723,6 +1729,12 @@ export class SecretManagerServiceClient {
* @param {string} [request.pageToken]
* Optional. Pagination token, returned earlier via
* {@link google.cloud.secretmanager.v1.ListSecretsResponse.next_page_token|ListSecretsResponse.next_page_token}.
* @param {string} [request.filter]
* Optional. Filter string, adhering to the rules in
* [List-operation
* filtering](https://cloud.google.com/secret-manager/docs/filtering). List
* only secrets matching the filter. If filter is empty, all secrets are
* listed.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Stream}
Expand Down Expand Up @@ -1772,6 +1784,12 @@ export class SecretManagerServiceClient {
* @param {string} [request.pageToken]
* Optional. Pagination token, returned earlier via
* {@link google.cloud.secretmanager.v1.ListSecretsResponse.next_page_token|ListSecretsResponse.next_page_token}.
* @param {string} [request.filter]
* Optional. Filter string, adhering to the rules in
* [List-operation
* filtering](https://cloud.google.com/secret-manager/docs/filtering). List
* only secrets matching the filter. If filter is empty, all secrets are
* listed.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Object}
Expand Down Expand Up @@ -1857,6 +1875,12 @@ export class SecretManagerServiceClient {
* @param {string} [request.pageToken]
* Optional. Pagination token, returned earlier via
* ListSecretVersionsResponse.next_page_token][].
* @param {string} [request.filter]
* Optional. Filter string, adhering to the rules in
* [List-operation
* filtering](https://cloud.google.com/secret-manager/docs/filtering). List
* only secret versions matching the filter. If filter is empty, all secret
* versions are listed.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
Expand Down Expand Up @@ -1929,6 +1953,12 @@ export class SecretManagerServiceClient {
* @param {string} [request.pageToken]
* Optional. Pagination token, returned earlier via
* ListSecretVersionsResponse.next_page_token][].
* @param {string} [request.filter]
* Optional. Filter string, adhering to the rules in
* [List-operation
* filtering](https://cloud.google.com/secret-manager/docs/filtering). List
* only secret versions matching the filter. If filter is empty, all secret
* versions are listed.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Stream}
Expand Down Expand Up @@ -1979,6 +2009,12 @@ export class SecretManagerServiceClient {
* @param {string} [request.pageToken]
* Optional. Pagination token, returned earlier via
* ListSecretVersionsResponse.next_page_token][].
* @param {string} [request.filter]
* Optional. Filter string, adhering to the rules in
* [List-operation
* filtering](https://cloud.google.com/secret-manager/docs/filtering). List
* only secret versions matching the filter. If filter is empty, all secret
* versions are listed.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Object}
Expand Down

0 comments on commit a59cd38

Please sign in to comment.