[[["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 API - Class Google::Cloud::SecretManager::V1::ListSecretVersionsResponse (v1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-ListSecretVersionsResponse)\n- [1.3.0](/ruby/docs/reference/google-cloud-secret_manager-v1/1.3.0/Google-Cloud-SecretManager-V1-ListSecretVersionsResponse)\n- [1.2.1](/ruby/docs/reference/google-cloud-secret_manager-v1/1.2.1/Google-Cloud-SecretManager-V1-ListSecretVersionsResponse)\n- [1.1.0](/ruby/docs/reference/google-cloud-secret_manager-v1/1.1.0/Google-Cloud-SecretManager-V1-ListSecretVersionsResponse)\n- [1.0.1](/ruby/docs/reference/google-cloud-secret_manager-v1/1.0.1/Google-Cloud-SecretManager-V1-ListSecretVersionsResponse)\n- [0.21.0](/ruby/docs/reference/google-cloud-secret_manager-v1/0.21.0/Google-Cloud-SecretManager-V1-ListSecretVersionsResponse)\n- [0.20.0](/ruby/docs/reference/google-cloud-secret_manager-v1/0.20.0/Google-Cloud-SecretManager-V1-ListSecretVersionsResponse)\n- [0.19.2](/ruby/docs/reference/google-cloud-secret_manager-v1/0.19.2/Google-Cloud-SecretManager-V1-ListSecretVersionsResponse)\n- [0.18.0](/ruby/docs/reference/google-cloud-secret_manager-v1/0.18.0/Google-Cloud-SecretManager-V1-ListSecretVersionsResponse)\n- [0.17.2](/ruby/docs/reference/google-cloud-secret_manager-v1/0.17.2/Google-Cloud-SecretManager-V1-ListSecretVersionsResponse)\n- [0.16.0](/ruby/docs/reference/google-cloud-secret_manager-v1/0.16.0/Google-Cloud-SecretManager-V1-ListSecretVersionsResponse)\n- [0.15.0](/ruby/docs/reference/google-cloud-secret_manager-v1/0.15.0/Google-Cloud-SecretManager-V1-ListSecretVersionsResponse)\n- [0.14.0](/ruby/docs/reference/google-cloud-secret_manager-v1/0.14.0/Google-Cloud-SecretManager-V1-ListSecretVersionsResponse)\n- [0.13.0](/ruby/docs/reference/google-cloud-secret_manager-v1/0.13.0/Google-Cloud-SecretManager-V1-ListSecretVersionsResponse)\n- [0.12.0](/ruby/docs/reference/google-cloud-secret_manager-v1/0.12.0/Google-Cloud-SecretManager-V1-ListSecretVersionsResponse)\n- [0.11.3](/ruby/docs/reference/google-cloud-secret_manager-v1/0.11.3/Google-Cloud-SecretManager-V1-ListSecretVersionsResponse) \nReference documentation and code samples for the Secret Manager V1 API class Google::Cloud::SecretManager::V1::ListSecretVersionsResponse.\n\nResponse message for\n[SecretManagerService.ListSecretVersions](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretManagerService-Client#Google__Cloud__SecretManager__V1__SecretManagerService__Client_list_secret_versions_instance_ \"Google::Cloud::SecretManager::V1::SecretManagerService::Client#list_secret_versions (method)\"). \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #next_page_token\n\n def next_page_token() -\u003e ::String\n\n**Returns**\n\n- (::String) --- A token to retrieve the next page of results. Pass this value in [ListSecretVersionsRequest.page_token](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-ListSecretVersionsRequest#Google__Cloud__SecretManager__V1__ListSecretVersionsRequest_page_token_instance_ \"Google::Cloud::SecretManager::V1::ListSecretVersionsRequest#page_token (method)\") to retrieve the next page.\n\n### #next_page_token=\n\n def next_page_token=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- A token to retrieve the next page of results. Pass this value in [ListSecretVersionsRequest.page_token](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-ListSecretVersionsRequest#Google__Cloud__SecretManager__V1__ListSecretVersionsRequest_page_token_instance_ \"Google::Cloud::SecretManager::V1::ListSecretVersionsRequest#page_token (method)\") to retrieve the next page. \n**Returns**\n\n- (::String) --- A token to retrieve the next page of results. Pass this value in [ListSecretVersionsRequest.page_token](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-ListSecretVersionsRequest#Google__Cloud__SecretManager__V1__ListSecretVersionsRequest_page_token_instance_ \"Google::Cloud::SecretManager::V1::ListSecretVersionsRequest#page_token (method)\") to retrieve the next page.\n\n### #total_size\n\n def total_size() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- The total number of [SecretVersions](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion \"Google::Cloud::SecretManager::V1::SecretVersion (class)\") but 0 when the [ListSecretsRequest.filter](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-ListSecretsRequest#Google__Cloud__SecretManager__V1__ListSecretsRequest_filter_instance_ \"Google::Cloud::SecretManager::V1::ListSecretsRequest#filter (method)\") field is set.\n\n### #total_size=\n\n def total_size=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- The total number of [SecretVersions](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion \"Google::Cloud::SecretManager::V1::SecretVersion (class)\") but 0 when the [ListSecretsRequest.filter](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-ListSecretsRequest#Google__Cloud__SecretManager__V1__ListSecretsRequest_filter_instance_ \"Google::Cloud::SecretManager::V1::ListSecretsRequest#filter (method)\") field is set. \n**Returns**\n\n- (::Integer) --- The total number of [SecretVersions](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion \"Google::Cloud::SecretManager::V1::SecretVersion (class)\") but 0 when the [ListSecretsRequest.filter](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-ListSecretsRequest#Google__Cloud__SecretManager__V1__ListSecretsRequest_filter_instance_ \"Google::Cloud::SecretManager::V1::ListSecretsRequest#filter (method)\") field is set.\n\n### #versions\n\n def versions() -\u003e ::Array\u003c::Google::Cloud::SecretManager::V1::SecretVersion\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::SecretManager::V1::SecretVersion](./Google-Cloud-SecretManager-V1-SecretVersion)\\\u003e) --- The list of [SecretVersions](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion \"Google::Cloud::SecretManager::V1::SecretVersion (class)\") sorted in reverse by create_time (newest first).\n\n### #versions=\n\n def versions=(value) -\u003e ::Array\u003c::Google::Cloud::SecretManager::V1::SecretVersion\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::SecretManager::V1::SecretVersion](./Google-Cloud-SecretManager-V1-SecretVersion)\\\u003e) --- The list of [SecretVersions](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion \"Google::Cloud::SecretManager::V1::SecretVersion (class)\") sorted in reverse by create_time (newest first). \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::SecretManager::V1::SecretVersion](./Google-Cloud-SecretManager-V1-SecretVersion)\\\u003e) --- The list of [SecretVersions](/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion \"Google::Cloud::SecretManager::V1::SecretVersion (class)\") sorted in reverse by create_time (newest first)."]]