A token to retrieve the next page of results. Pass this value in
[ListSecretsRequest.page_token][google.cloud.secretmanager.v1beta2.ListSecretsRequest.page_token]
to retrieve the next page.
The total number of [Secrets][google.cloud.secretmanager.v1beta2.Secret]
but 0 when the
[ListSecretsRequest.filter][google.cloud.secretmanager.v1beta2.ListSecretsRequest.filter]
field is set.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eListSecretsResponse\u003c/code\u003e class is a response message for the \u003ccode\u003eSecretManagerService.ListSecrets\u003c/code\u003e API method in the Secret Manager v1beta2 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIPageResponse<Secret>\u003c/code\u003e, \u003ccode\u003eIEnumerable<Secret>\u003c/code\u003e, \u003ccode\u003eIEnumerable\u003c/code\u003e, \u003ccode\u003eIMessage<ListSecretsResponse>\u003c/code\u003e, \u003ccode\u003eIEquatable<ListSecretsResponse>\u003c/code\u003e, \u003ccode\u003eIDeepCloneable<ListSecretsResponse>\u003c/code\u003e, \u003ccode\u003eIBufferMessage\u003c/code\u003e, and \u003ccode\u003eIMessage\u003c/code\u003e, indicating its capabilities for handling paged responses, enumeration, and message operations.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eListSecretsResponse\u003c/code\u003e contains properties such as \u003ccode\u003eNextPageToken\u003c/code\u003e for retrieving subsequent result pages, \u003ccode\u003eSecrets\u003c/code\u003e for accessing the list of secrets, and \u003ccode\u003eTotalSize\u003c/code\u003e to get the total number of secrets, which may be 0 depending on if a filter was set.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides two constructors, one default and one for creating a copy of another \u003ccode\u003eListSecretsResponse\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetEnumerator()\u003c/code\u003e method allows for iterating through the resources contained within the response, enabling easy access to each \u003ccode\u003eSecret\u003c/code\u003e in the returned list.\u003c/p\u003e\n"]]],[],null,["# Secret Manager v1beta2 API - Class ListSecretsResponse (1.0.0-beta03)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta03 (latest)](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.ListSecretsResponse)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/1.0.0-beta02/Google.Cloud.SecretManager.V1Beta2.ListSecretsResponse) \n\n public sealed class ListSecretsResponse : IPageResponse\u003cSecret\u003e, IEnumerable\u003cSecret\u003e, IEnumerable, IMessage\u003cListSecretsResponse\u003e, IEquatable\u003cListSecretsResponse\u003e, IDeepCloneable\u003cListSecretsResponse\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Secret Manager v1beta2 API class ListSecretsResponse.\n\nResponse message for\n\\[SecretManagerService.ListSecrets\\]\\[google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecrets\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ListSecretsResponse \n\nImplements\n----------\n\n[IPageResponse](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/PagedEnumerableCommon.cs)[Secret](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.Secret), [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)[Secret](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.Secret), [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.ienumerable), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ListSecretsResponse](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.ListSecretsResponse), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ListSecretsResponse](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.ListSecretsResponse), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ListSecretsResponse](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.ListSecretsResponse), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.SecretManager.V1Beta2](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2)\n\nAssembly\n--------\n\nGoogle.Cloud.SecretManager.V1Beta2.dll\n\nConstructors\n------------\n\n### ListSecretsResponse()\n\n public ListSecretsResponse()\n\n### ListSecretsResponse(ListSecretsResponse)\n\n public ListSecretsResponse(ListSecretsResponse other)\n\nProperties\n----------\n\n### NextPageToken\n\n public string NextPageToken { get; set; }\n\nA token to retrieve the next page of results. Pass this value in\n\\[ListSecretsRequest.page_token\\]\\[google.cloud.secretmanager.v1beta2.ListSecretsRequest.page_token\\]\nto retrieve the next page.\n\n### Secrets\n\n public RepeatedField\u003cSecret\u003e Secrets { get; }\n\nThe list of \\[Secrets\\]\\[google.cloud.secretmanager.v1beta2.Secret\\] sorted in\nreverse by create_time (newest first).\n\n### TotalSize\n\n public int TotalSize { get; set; }\n\nThe total number of \\[Secrets\\]\\[google.cloud.secretmanager.v1beta2.Secret\\]\nbut 0 when the\n\\[ListSecretsRequest.filter\\]\\[google.cloud.secretmanager.v1beta2.ListSecretsRequest.filter\\]\nfield is set.\n\nMethods\n-------\n\n### GetEnumerator()\n\n public IEnumerator\u003cSecret\u003e GetEnumerator()\n\nReturns an enumerator that iterates through the resources in this response."]]