Module: Google::Cloud::ApiHub::V1::ApiHubPlugin::Paths
- Extended by:
- Paths
- Included in:
- Paths, Rest::Client
- Defined in:
- lib/google/cloud/api_hub/v1/api_hub_plugin/paths.rb
Overview
Path helper methods for the ApiHubPlugin API.
Instance Method Summary collapse
-
#plugin_path(project:, location:, plugin:) ⇒ ::String
Create a fully-qualified Plugin resource string.
Instance Method Details
#plugin_path(project:, location:, plugin:) ⇒ ::String
Create a fully-qualified Plugin resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/plugins/{plugin}
39 40 41 42 43 44 |
# File 'lib/google/cloud/api_hub/v1/api_hub_plugin/paths.rb', line 39 def plugin_path project:, location:, plugin: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/plugins/#{plugin}" end |