Generated from protobuf message google.cloud.secretmanager.v1.ListSecretVersionsRequest
Namespace
Google \ Cloud \ SecretManager \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The resource name of the Secret associated with the SecretVersions to list, in the format projects/*/secrets/* or projects/*/locations/*/secrets/*.
↳ page_size
int
Optional. The maximum number of results to be returned in a single page. If set to 0, the server decides the number of results to return. If the number is greater than 25000, it is capped at 25000.
↳ page_token
string
Optional. Pagination token, returned earlier via ListSecretVersionsResponse.next_page_token][].
↳ filter
string
Optional. Filter string, adhering to the rules in List-operation filtering. List only secret versions matching the filter. If filter is empty, all secret versions are listed.
getParent
Required. The resource name of the
Secret associated with the
SecretVersions to list, in
the format projects/*/secrets/* or projects/*/locations/*/secrets/*.
Returns
Type
Description
string
setParent
Required. The resource name of the
Secret associated with the
SecretVersions to list, in
the format projects/*/secrets/* or projects/*/locations/*/secrets/*.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPageSize
Optional. The maximum number of results to be returned in a single page. If
set to 0, the server decides the number of results to return. If the
number is greater than 25000, it is capped at 25000.
Returns
Type
Description
int
setPageSize
Optional. The maximum number of results to be returned in a single page. If
set to 0, the server decides the number of results to return. If the
number is greater than 25000, it is capped at 25000.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getPageToken
Optional. Pagination token, returned earlier via
ListSecretVersionsResponse.next_page_token][].
Returns
Type
Description
string
setPageToken
Optional. Pagination token, returned earlier via
ListSecretVersionsResponse.next_page_token][].
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getFilter
Optional. Filter string, adhering to the rules in
List-operation
filtering. List
only secret versions matching the filter. If filter is empty, all secret
versions are listed.
Returns
Type
Description
string
setFilter
Optional. Filter string, adhering to the rules in
List-operation
filtering. List
only secret versions matching the filter. If filter is empty, all secret
versions are listed.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameter
Name
Description
parent
string
Required. The resource name of the
Secret associated with the
SecretVersions to list, in
the format projects/*/secrets/* or projects/*/locations/*/secrets/*. Please see
SecretManagerServiceClient::secretName() for help formatting this field.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Secret Manager V1 Client - Class ListSecretVersionsRequest (2.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.1 (latest)](/php/docs/reference/cloud-secret-manager/latest/V1.ListSecretVersionsRequest)\n- [2.1.0](/php/docs/reference/cloud-secret-manager/2.1.0/V1.ListSecretVersionsRequest)\n- [2.0.2](/php/docs/reference/cloud-secret-manager/2.0.2/V1.ListSecretVersionsRequest)\n- [1.15.4](/php/docs/reference/cloud-secret-manager/1.15.4/V1.ListSecretVersionsRequest)\n- [1.13.0](/php/docs/reference/cloud-secret-manager/1.13.0/V1.ListSecretVersionsRequest)\n- [1.12.3](/php/docs/reference/cloud-secret-manager/1.12.3/V1.ListSecretVersionsRequest)\n- [1.11.0](/php/docs/reference/cloud-secret-manager/1.11.0/V1.ListSecretVersionsRequest)\n- [1.10.4](/php/docs/reference/cloud-secret-manager/1.10.4/V1.ListSecretVersionsRequest)\n- [1.9.7](/php/docs/reference/cloud-secret-manager/1.9.7/V1.ListSecretVersionsRequest) \nReference documentation and code samples for the Secret Manager V1 Client class ListSecretVersionsRequest.\n\nRequest message for\n[SecretManagerService.ListSecretVersions](/php/docs/reference/cloud-secret-manager/latest/V1.Client.SecretManagerServiceClient#_Google_Cloud_SecretManager_V1_Client_SecretManagerServiceClient__listSecretVersions__).\n\nGenerated from protobuf message `google.cloud.secretmanager.v1.ListSecretVersionsRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ SecretManager \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The resource name of the\n[Secret](/php/docs/reference/cloud-secret-manager/latest/V1.Secret) associated with the\n[SecretVersions](/php/docs/reference/cloud-secret-manager/latest/V1.SecretVersion) to list, in\nthe format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.\n\n### setParent\n\nRequired. The resource name of the\n[Secret](/php/docs/reference/cloud-secret-manager/latest/V1.Secret) associated with the\n[SecretVersions](/php/docs/reference/cloud-secret-manager/latest/V1.SecretVersion) to list, in\nthe format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.\n\n### getPageSize\n\nOptional. The maximum number of results to be returned in a single page. If\nset to 0, the server decides the number of results to return. If the\nnumber is greater than 25000, it is capped at 25000.\n\n### setPageSize\n\nOptional. The maximum number of results to be returned in a single page. If\nset to 0, the server decides the number of results to return. If the\nnumber is greater than 25000, it is capped at 25000.\n\n### getPageToken\n\nOptional. Pagination token, returned earlier via\nListSecretVersionsResponse.next_page_token\\]\\[\\].\n\n### setPageToken\n\nOptional. Pagination token, returned earlier via\nListSecretVersionsResponse.next_page_token\\]\\[\\].\n\n### getFilter\n\nOptional. Filter string, adhering to the rules in\n[List-operation\nfiltering](https://cloud.google.com/secret-manager/docs/filtering). List\nonly secret versions matching the filter. If filter is empty, all secret\nversions are listed.\n\n### setFilter\n\nOptional. Filter string, adhering to the rules in\n[List-operation\nfiltering](https://cloud.google.com/secret-manager/docs/filtering). List\nonly secret versions matching the filter. If filter is empty, all secret\nversions are listed.\n\n### static::build"]]