(::String) โ Required. The resource name of the
SecretVersion in the
format projects/*/secrets/*/versions/* or
projects/*/locations/*/secrets/*/versions/*.
projects/*/secrets/*/versions/latest or
projects/*/locations/*/secrets/*/versions/latest is an alias to the most
recently created
SecretVersion.
#name=
defname=(value)->::String
Parameter
value (::String) โ Required. The resource name of the
SecretVersion in the
format projects/*/secrets/*/versions/* or
projects/*/locations/*/secrets/*/versions/*.
projects/*/secrets/*/versions/latest or
projects/*/locations/*/secrets/*/versions/latest is an alias to the most
recently created
SecretVersion.
Returns
(::String) โ Required. The resource name of the
SecretVersion in the
format projects/*/secrets/*/versions/* or
projects/*/locations/*/secrets/*/versions/*.
projects/*/secrets/*/versions/latest or
projects/*/locations/*/secrets/*/versions/latest is an alias to the most
recently created
SecretVersion.
[[["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-03 UTC."],[],[],null,["# Secret Manager V1BETA2 API - Class Google::Cloud::SecretManager::V1beta2::GetSecretVersionRequest (v0.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.0 (latest)](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-GetSecretVersionRequest)\n- [0.3.1](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/0.3.1/Google-Cloud-SecretManager-V1beta2-GetSecretVersionRequest)\n- [0.2.0](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/0.2.0/Google-Cloud-SecretManager-V1beta2-GetSecretVersionRequest)\n- [0.1.1](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/0.1.1/Google-Cloud-SecretManager-V1beta2-GetSecretVersionRequest) \nReference documentation and code samples for the Secret Manager V1BETA2 API class Google::Cloud::SecretManager::V1beta2::GetSecretVersionRequest.\n\nRequest message for\n[SecretManagerService.GetSecretVersion](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretManagerService-Client#Google__Cloud__SecretManager__V1beta2__SecretManagerService__Client_get_secret_version_instance_ \"Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client#get_secret_version (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### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The resource name of the [SecretVersion](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion \"Google::Cloud::SecretManager::V1beta2::SecretVersion (class)\") in the format `projects/*/secrets/*/versions/*` or `projects/*/locations/*/secrets/*/versions/*`.\n\n\n `projects/*/secrets/*/versions/latest` or\n `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most\n recently created\n [SecretVersion](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion \"Google::Cloud::SecretManager::V1beta2::SecretVersion (class)\").\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The resource name of the [SecretVersion](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion \"Google::Cloud::SecretManager::V1beta2::SecretVersion (class)\") in the format `projects/*/secrets/*/versions/*` or `projects/*/locations/*/secrets/*/versions/*`.\n\n\n `projects/*/secrets/*/versions/latest` or\n `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most\n recently created\n[SecretVersion](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion \"Google::Cloud::SecretManager::V1beta2::SecretVersion (class)\"). \n**Returns**\n\n- (::String) --- Required. The resource name of the [SecretVersion](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion \"Google::Cloud::SecretManager::V1beta2::SecretVersion (class)\") in the format `projects/*/secrets/*/versions/*` or `projects/*/locations/*/secrets/*/versions/*`.\n\n\n `projects/*/secrets/*/versions/latest` or\n `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most\n recently created\n [SecretVersion](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion \"Google::Cloud::SecretManager::V1beta2::SecretVersion (class)\")."]]