module Google::Cloud::ServiceDirectory::V1::LookupService::Paths
Path helper methods for the LookupService
API.
Public Instance Methods
service_path(project:, location:, namespace:, service: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/")
click to toggle source
Create a fully-qualified Service
resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`
@param project [String] @param location [String] @param namespace [String] @param service [String]
@return [::String]
# File lib/google/cloud/service_directory/v1/lookup_service/paths.rb, line 40 def service_path project:, location:, namespace:, service: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "namespace cannot contain /" if namespace.to_s.include? "/" "projects/#{project}/locations/#{location}/namespaces/#{namespace}/services/#{service}" end