Secret Manager V1beta2 Client - Class ListSecretVersionsResponse (2.0.2)

Reference documentation and code samples for the Secret Manager V1beta2 Client class ListSecretVersionsResponse.

Response message for SecretManagerService.ListSecretVersions.

Generated from protobuf message google.cloud.secretmanager.v1beta2.ListSecretVersionsResponse

Namespace

Google \ Cloud \ SecretManager \ V1beta2

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ versionsarray<SecretVersion>

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

↳ next_page_tokenstring

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

↳ total_sizeint

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

getVersions

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setVersions

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

Parameter
NameDescription
vararray<SecretVersion>
Returns
TypeDescription
$this

getNextPageToken

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

Returns
TypeDescription
string

setNextPageToken

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

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getTotalSize

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

Returns
TypeDescription
int

setTotalSize

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

Parameter
NameDescription
varint
Returns
TypeDescription
$this