Module: Google::Cloud::ApiHub::V1::ApiHubDependencies::Paths
- Extended by:
- Paths
- Included in:
- Paths, Rest::Client
- Defined in:
- lib/google/cloud/api_hub/v1/api_hub_dependencies/paths.rb
Overview
Path helper methods for the ApiHubDependencies API.
Instance Method Summary collapse
-
#attribute_path(project:, location:, attribute:) ⇒ ::String
Create a fully-qualified Attribute resource string.
-
#dependency_path(project:, location:, dependency:) ⇒ ::String
Create a fully-qualified Dependency resource string.
-
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
Instance Method Details
#attribute_path(project:, location:, attribute:) ⇒ ::String
Create a fully-qualified Attribute resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/attributes/{attribute}
39 40 41 42 43 44 |
# File 'lib/google/cloud/api_hub/v1/api_hub_dependencies/paths.rb', line 39 def attribute_path project:, location:, attribute: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/attributes/#{attribute}" end |
#dependency_path(project:, location:, dependency:) ⇒ ::String
Create a fully-qualified Dependency resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/dependencies/{dependency}
58 59 60 61 62 63 |
# File 'lib/google/cloud/api_hub/v1/api_hub_dependencies/paths.rb', line 58 def dependency_path project:, location:, dependency: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/dependencies/#{dependency}" end |
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
The resource will be in the following format:
projects/{project}/locations/{location}
76 77 78 79 80 |
# File 'lib/google/cloud/api_hub/v1/api_hub_dependencies/paths.rb', line 76 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end |