Secret Manager V1 Client - Class ListSecretsResponse (2.2.1)

Reference documentation and code samples for the Secret Manager V1 Client class ListSecretsResponse.

Response message for SecretManagerService.ListSecrets.

Generated from protobuf message google.cloud.secretmanager.v1.ListSecretsResponse

Namespace

Google \ Cloud \ SecretManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ secrets array<Secret>

The list of Secrets sorted in reverse by create_time (newest first).

↳ next_page_token string

A token to retrieve the next page of results. Pass this value in ListSecretsRequest.page_token to retrieve the next page.

↳ total_size int

The total number of Secrets but 0 when the ListSecretsRequest.filter field is set.

getSecrets

The list of Secrets sorted in reverse by create_time (newest first).

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setSecrets

The list of Secrets sorted in reverse by create_time (newest first).

Parameter
Name Description
var array<Secret>
Returns
Type Description
$this

getNextPageToken

A token to retrieve the next page of results. Pass this value in ListSecretsRequest.page_token to retrieve the next page.

Returns
Type Description
string

setNextPageToken

A token to retrieve the next page of results. Pass this value in ListSecretsRequest.page_token to retrieve the next page.

Parameter
Name Description
var string
Returns
Type Description
$this

getTotalSize

The total number of Secrets but 0 when the ListSecretsRequest.filter field is set.

Returns
Type Description
int

setTotalSize

The total number of Secrets but 0 when the ListSecretsRequest.filter field is set.

Parameter
Name Description
var int
Returns
Type Description
$this

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.