Module: Google::Cloud::Dialogflow::CX::V3::Changelogs::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/dialogflow/cx/v3/changelogs/paths.rb
Overview
Path helper methods for the Changelogs API.
Instance Method Summary collapse
-
#agent_path(project:, location:, agent:) ⇒ ::String
Create a fully-qualified Agent resource string.
-
#changelog_path(project:, location:, agent:, changelog:) ⇒ ::String
Create a fully-qualified Changelog resource string.
Instance Method Details
#agent_path(project:, location:, agent:) ⇒ ::String
Create a fully-qualified Agent resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/agents/{agent}
40 41 42 43 44 45 |
# File 'lib/google/cloud/dialogflow/cx/v3/changelogs/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 |
#changelog_path(project:, location:, agent:, changelog:) ⇒ ::String
Create a fully-qualified Changelog resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/agents/{agent}/changelogs/{changelog}
60 61 62 63 64 65 66 |
# File 'lib/google/cloud/dialogflow/cx/v3/changelogs/paths.rb', line 60 def changelog_path project:, location:, agent:, changelog: 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}/changelogs/#{changelog}" end |