Generated from protobuf message google.cloud.secretmanager.v1.ListSecretsRequest
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 project associated with the Secrets, in the format projects/* or projects/*/locations/*
↳ 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.
Optional. Filter string, adhering to the rules in List-operation filtering. List only secrets matching the filter. If filter is empty, all secrets are listed.
getParent
Required. The resource name of the project associated with the
Secrets, in the format projects/*
or projects/*/locations/*
Returns
Type
Description
string
setParent
Required. The resource name of the project associated with the
Secrets, in the format projects/*
or projects/*/locations/*
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.
Optional. Filter string, adhering to the rules in
List-operation
filtering. List
only secrets matching the filter. If filter is empty, all secrets are
listed.
Returns
Type
Description
string
setFilter
Optional. Filter string, adhering to the rules in
List-operation
filtering. List
only secrets matching the filter. If filter is empty, all secrets are
listed.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameter
Name
Description
parent
string
Required. The resource name of the project associated with the
Secrets, in the format projects/*
or projects/*/locations/*
Please see SecretManagerServiceClient::projectName() 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 ListSecretsRequest (2.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.1 (latest)](/php/docs/reference/cloud-secret-manager/latest/V1.ListSecretsRequest)\n- [2.1.0](/php/docs/reference/cloud-secret-manager/2.1.0/V1.ListSecretsRequest)\n- [2.0.2](/php/docs/reference/cloud-secret-manager/2.0.2/V1.ListSecretsRequest)\n- [1.15.4](/php/docs/reference/cloud-secret-manager/1.15.4/V1.ListSecretsRequest)\n- [1.13.0](/php/docs/reference/cloud-secret-manager/1.13.0/V1.ListSecretsRequest)\n- [1.12.3](/php/docs/reference/cloud-secret-manager/1.12.3/V1.ListSecretsRequest)\n- [1.11.0](/php/docs/reference/cloud-secret-manager/1.11.0/V1.ListSecretsRequest)\n- [1.10.4](/php/docs/reference/cloud-secret-manager/1.10.4/V1.ListSecretsRequest)\n- [1.9.7](/php/docs/reference/cloud-secret-manager/1.9.7/V1.ListSecretsRequest) \nReference documentation and code samples for the Secret Manager V1 Client class ListSecretsRequest.\n\nRequest message for\n[SecretManagerService.ListSecrets](/php/docs/reference/cloud-secret-manager/latest/V1.Client.SecretManagerServiceClient#_Google_Cloud_SecretManager_V1_Client_SecretManagerServiceClient__listSecrets__).\n\nGenerated from protobuf message `google.cloud.secretmanager.v1.ListSecretsRequest`\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 project associated with the\n[Secrets](/php/docs/reference/cloud-secret-manager/latest/V1.Secret), in the format `projects/*`\nor `projects/*/locations/*`\n\n### setParent\n\nRequired. The resource name of the project associated with the\n[Secrets](/php/docs/reference/cloud-secret-manager/latest/V1.Secret), in the format `projects/*`\nor `projects/*/locations/*`\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\n[ListSecretsResponse.next_page_token](/php/docs/reference/cloud-secret-manager/latest/V1.ListSecretsResponse#_Google_Cloud_SecretManager_V1_ListSecretsResponse__getNextPageToken__).\n\n### setPageToken\n\nOptional. Pagination token, returned earlier via\n[ListSecretsResponse.next_page_token](/php/docs/reference/cloud-secret-manager/latest/V1.ListSecretsResponse#_Google_Cloud_SecretManager_V1_ListSecretsResponse__getNextPageToken__).\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 secrets matching the filter. If filter is empty, all secrets are\nlisted.\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 secrets matching the filter. If filter is empty, all secrets are\nlisted.\n\n### static::build"]]