Secret Manager V1 Client - Class ListSecretVersionsResponse (1.15.3)

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

Response message for SecretManagerService.ListSecretVersions.

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

Namespace

Google \ Cloud \ SecretManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ versions array<Google\Cloud\SecretManager\V1\SecretVersion>

The list of SecretVersions 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 ListSecretVersionsRequest.page_token to retrieve the next page.

↳ total_size int

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
Type Description
Google\Protobuf\Internal\RepeatedField

setVersions

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

Parameter
Name Description
var array<Google\Cloud\SecretManager\V1\SecretVersion>
Returns
Type Description
$this

getNextPageToken

A token to retrieve the next page of results. Pass this value in ListSecretVersionsRequest.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 ListSecretVersionsRequest.page_token to retrieve the next page.

Parameter
Name Description
var string
Returns
Type Description
$this

getTotalSize

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

Returns
Type Description
int

setTotalSize

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

Parameter
Name Description
var int
Returns
Type Description
$this