module Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Paths
Path helper methods for the RecaptchaEnterpriseService
API.
Public Instance Methods
assessment_path(project:, assessment: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/")
click to toggle source
Create a fully-qualified Assessment resource string.
The resource will be in the following format:
`projects/{project}/assessments/{assessment}`
@param project [String] @param assessment [String]
@return [::String]
# File lib/google/cloud/recaptcha_enterprise/v1/recaptcha_enterprise_service/paths.rb, line 38 def assessment_path project:, assessment: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/assessments/#{assessment}" end
key_path(project:, key: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/")
click to toggle source
Create a fully-qualified Key resource string.
The resource will be in the following format:
`projects/{project}/keys/{key}`
@param project [String] @param key [String]
@return [::String]
# File lib/google/cloud/recaptcha_enterprise/v1/recaptcha_enterprise_service/paths.rb, line 55 def key_path project:, key: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/keys/#{key}" end
project_path(project: "projects/
click to toggle source
Create a fully-qualified Project resource string.
The resource will be in the following format:
`projects/{project}`
@param project [String]
@return [::String]
# File lib/google/cloud/recaptcha_enterprise/v1/recaptcha_enterprise_service/paths.rb, line 71 def project_path project: "projects/#{project}" end