module Google::Cloud::Dialogflow::CX::V3::Webhooks::Paths
Path helper methods for the Webhooks
API.
Public Instance Methods
Create a fully-qualified Agent resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/agents/{agent}`
@param project [String] @param location [String] @param agent [String]
@return [::String]
# File lib/google/cloud/dialogflow/cx/v3/webhooks/paths.rb, line 40 def agent_path project:, location:, agent: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/agents/#{agent}" end
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/dialogflow/cx/v3/webhooks/paths.rb, line 60 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
Create a fully-qualified Webhook
resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/agents/{agent}/webhooks/{webhook}`
@param project [String] @param location [String] @param agent [String] @param webhook [String]
@return [::String]
# File lib/google/cloud/dialogflow/cx/v3/webhooks/paths.rb, line 81 def webhook_path project:, location:, agent:, webhook: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/" "projects/#{project}/locations/#{location}/agents/#{agent}/webhooks/#{webhook}" end