Secret Manager V1 API - Module Google::Cloud::SecretManager::V1::SecretManagerService::Paths (v1.4.0)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Secret Manager V1 API module Google::Cloud::SecretManager::V1::SecretManagerService::Paths.
Path helper methods for the SecretManagerService API.
Methods
#location_path
def location_path(project:, location:) -> ::String
Create a fully-qualified Location resource string.
The resource will be in the following format:
projects/{project}/locations/{location}
Parameters
-
project (String)
-
location (String)
#project_path
def project_path(project:) -> ::String
Create a fully-qualified Project resource string.
The resource will be in the following format:
projects/{project}
#secret_path
def secret_path(project:, secret:) -> ::String
def secret_path(project:, location:, secret:) -> ::String
Create a fully-qualified Secret resource string.
Overloads
def secret_path(project:, secret:) -> ::String
The resource will be in the following format:
projects/{project}/secrets/{secret}
Parameters
-
project (String)
-
secret (String)
def secret_path(project:, location:, secret:) -> ::String
The resource will be in the following format:
projects/{project}/locations/{location}/secrets/{secret}
Parameters
-
project (String)
-
location (String)
-
secret (String)
#secret_version_path
def secret_version_path(project:, secret:, secret_version:) -> ::String
def secret_version_path(project:, location:, secret:, secret_version:) -> ::String
Create a fully-qualified SecretVersion resource string.
Overloads
def secret_version_path(project:, secret:, secret_version:) -> ::String
The resource will be in the following format:
projects/{project}/secrets/{secret}/versions/{secret_version}
Parameters
-
project (String)
-
secret (String)
-
secret_version (String)
def secret_version_path(project:, location:, secret:, secret_version:) -> ::String
The resource will be in the following format:
projects/{project}/locations/{location}/secrets/{secret}/versions/{secret_version}
Parameters
-
project (String)
-
location (String)
-
secret (String)
-
secret_version (String)
#topic_path
def topic_path(project:, topic:) -> ::String
Create a fully-qualified Topic resource string.
The resource will be in the following format:
projects/{project}/topics/{topic}
Parameters
-
project (String)
-
topic (String)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-09 UTC.
[[["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-09 UTC."],[],[],null,["# Secret Manager V1 API - Module Google::Cloud::SecretManager::V1::SecretManagerService::Paths (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-SecretManagerService-Paths)\n- [1.3.0](/ruby/docs/reference/google-cloud-secret_manager-v1/1.3.0/Google-Cloud-SecretManager-V1-SecretManagerService-Paths)\n- [1.2.1](/ruby/docs/reference/google-cloud-secret_manager-v1/1.2.1/Google-Cloud-SecretManager-V1-SecretManagerService-Paths)\n- [1.1.0](/ruby/docs/reference/google-cloud-secret_manager-v1/1.1.0/Google-Cloud-SecretManager-V1-SecretManagerService-Paths)\n- [1.0.1](/ruby/docs/reference/google-cloud-secret_manager-v1/1.0.1/Google-Cloud-SecretManager-V1-SecretManagerService-Paths)\n- [0.21.0](/ruby/docs/reference/google-cloud-secret_manager-v1/0.21.0/Google-Cloud-SecretManager-V1-SecretManagerService-Paths)\n- [0.20.0](/ruby/docs/reference/google-cloud-secret_manager-v1/0.20.0/Google-Cloud-SecretManager-V1-SecretManagerService-Paths)\n- [0.19.2](/ruby/docs/reference/google-cloud-secret_manager-v1/0.19.2/Google-Cloud-SecretManager-V1-SecretManagerService-Paths)\n- [0.18.0](/ruby/docs/reference/google-cloud-secret_manager-v1/0.18.0/Google-Cloud-SecretManager-V1-SecretManagerService-Paths)\n- [0.17.2](/ruby/docs/reference/google-cloud-secret_manager-v1/0.17.2/Google-Cloud-SecretManager-V1-SecretManagerService-Paths)\n- [0.16.0](/ruby/docs/reference/google-cloud-secret_manager-v1/0.16.0/Google-Cloud-SecretManager-V1-SecretManagerService-Paths)\n- [0.15.0](/ruby/docs/reference/google-cloud-secret_manager-v1/0.15.0/Google-Cloud-SecretManager-V1-SecretManagerService-Paths)\n- [0.14.0](/ruby/docs/reference/google-cloud-secret_manager-v1/0.14.0/Google-Cloud-SecretManager-V1-SecretManagerService-Paths)\n- [0.13.0](/ruby/docs/reference/google-cloud-secret_manager-v1/0.13.0/Google-Cloud-SecretManager-V1-SecretManagerService-Paths)\n- [0.12.0](/ruby/docs/reference/google-cloud-secret_manager-v1/0.12.0/Google-Cloud-SecretManager-V1-SecretManagerService-Paths)\n- [0.11.3](/ruby/docs/reference/google-cloud-secret_manager-v1/0.11.3/Google-Cloud-SecretManager-V1-SecretManagerService-Paths) \nReference documentation and code samples for the Secret Manager V1 API module Google::Cloud::SecretManager::V1::SecretManagerService::Paths.\n\nPath helper methods for the SecretManagerService API. \n\nExtended By\n-----------\n\n- [Google::Cloud::SecretManager::V1::SecretManagerService::Paths](./Google-Cloud-SecretManager-V1-SecretManagerService-Paths)\n\nMethods\n-------\n\n### #location_path\n\n def location_path(project:, location:) -\u003e ::String\n\nCreate a fully-qualified Location resource string.\n\n\nThe resource will be in the following format:\n\n\u003cbr /\u003e\n\n`projects/{project}/locations/{location}` \n**Parameters**\n\n- **project** (String)\n- **location** (String) \n**Returns**\n\n- (::String) \n**Raises**\n\n- (::ArgumentError)\n\n### #project_path\n\n def project_path(project:) -\u003e ::String\n\nCreate a fully-qualified Project resource string.\n\n\nThe resource will be in the following format:\n\n\u003cbr /\u003e\n\n`projects/{project}` \n**Parameter**\n\n- **project** (String) \n**Returns**\n\n- (::String)\n\n### #secret_path\n\n def secret_path(project:, secret:) -\u003e ::String\n def secret_path(project:, location:, secret:) -\u003e ::String\n\nCreate a fully-qualified Secret resource string. \n**Overloads** \n\n def secret_path(project:, secret:) -\u003e ::String\n\nThe resource will be in the following format:\n\n\n`projects/{project}/secrets/{secret}` \n**Parameters**\n\n- **project** (String)\n- **secret** (String) \n\n def secret_path(project:, location:, secret:) -\u003e ::String\n\nThe resource will be in the following format:\n\n\n`projects/{project}/locations/{location}/secrets/{secret}` \n**Parameters**\n\n- **project** (String)\n- **location** (String)\n- **secret** (String) \n**Returns**\n\n- (::String) \n**Raises**\n\n- (::ArgumentError)\n\n### #secret_version_path\n\n def secret_version_path(project:, secret:, secret_version:) -\u003e ::String\n def secret_version_path(project:, location:, secret:, secret_version:) -\u003e ::String\n\nCreate a fully-qualified SecretVersion resource string. \n**Overloads** \n\n def secret_version_path(project:, secret:, secret_version:) -\u003e ::String\n\nThe resource will be in the following format:\n\n\n`projects/{project}/secrets/{secret}/versions/{secret_version}` \n**Parameters**\n\n- **project** (String)\n- **secret** (String)\n- **secret_version** (String) \n\n def secret_version_path(project:, location:, secret:, secret_version:) -\u003e ::String\n\nThe resource will be in the following format:\n\n\n`projects/{project}/locations/{location}/secrets/{secret}/versions/{secret_version}` \n**Parameters**\n\n- **project** (String)\n- **location** (String)\n- **secret** (String)\n- **secret_version** (String) \n**Returns**\n\n- (::String) \n**Raises**\n\n- (::ArgumentError)\n\n### #topic_path\n\n def topic_path(project:, topic:) -\u003e ::String\n\nCreate a fully-qualified Topic resource string.\n\n\nThe resource will be in the following format:\n\n\u003cbr /\u003e\n\n`projects/{project}/topics/{topic}` \n**Parameters**\n\n- **project** (String)\n- **topic** (String) \n**Returns**\n\n- (::String) \n**Raises**\n\n- (::ArgumentError)"]]