lib/google/cloud/dialogflow/cx/v3/environments/paths.rb in google-cloud-dialogflow-cx-v3-0.1.1 vs lib/google/cloud/dialogflow/cx/v3/environments/paths.rb in google-cloud-dialogflow-cx-v3-0.2.0
- old
+ new
@@ -64,9 +64,30 @@
"projects/#{project}/locations/#{location}/agents/#{agent}/environments/#{environment}"
end
##
+ # Create a fully-qualified TestCase resource string.
+ #
+ # The resource will be in the following format:
+ #
+ # `projects/{project}/locations/{location}/agents/{agent}/testCases/{test_case}`
+ #
+ # @param project [String]
+ # @param location [String]
+ # @param agent [String]
+ # @param test_case [String]
+ #
+ # @return [::String]
+ def test_case_path project:, location:, agent:, test_case:
+ 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}/testCases/#{test_case}"
+ end
+
+ ##
# Create a fully-qualified Version resource string.
#
# The resource will be in the following format:
#
# `projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/versions/{version}`