Module: Google::Cloud::Dialogflow::CX::V3::SecuritySettingsService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/dialogflow/cx/v3/security_settings_service/paths.rb
Overview
Path helper methods for the SecuritySettingsService API.
Instance Method Summary collapse
-
#deidentify_template_path(**args) ⇒ ::String
Create a fully-qualified DeidentifyTemplate resource string.
-
#inspect_template_path(**args) ⇒ ::String
Create a fully-qualified InspectTemplate resource string.
-
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
-
#security_settings_path(project:, location:, security_settings:) ⇒ ::String
Create a fully-qualified SecuritySettings resource string.
Instance Method Details
#deidentify_template_path(organization: , location: , deidentify_template: ) ⇒ ::String #deidentify_template_path(project: , location: , deidentify_template: ) ⇒ ::String
Create a fully-qualified DeidentifyTemplate resource string.
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/google/cloud/dialogflow/cx/v3/security_settings_service/paths.rb', line 50 def deidentify_template_path **args resources = { "deidentify_template:location:organization" => (proc do |organization:, location:, deidentify_template:| raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "organizations/#{organization}/locations/#{location}/deidentifyTemplates/#{deidentify_template}" end), "deidentify_template:location:project" => (proc do |project:, location:, deidentify_template:| raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/deidentifyTemplates/#{deidentify_template}" end) } resource = resources[args.keys.sort.join(":")] raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil? resource.call(**args) end |
#inspect_template_path(organization: , location: , inspect_template: ) ⇒ ::String #inspect_template_path(project: , location: , inspect_template: ) ⇒ ::String
Create a fully-qualified InspectTemplate resource string.
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/google/cloud/dialogflow/cx/v3/security_settings_service/paths.rb', line 93 def inspect_template_path **args resources = { "inspect_template:location:organization" => (proc do |organization:, location:, inspect_template:| raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "organizations/#{organization}/locations/#{location}/inspectTemplates/#{inspect_template}" end), "inspect_template:location:project" => (proc do |project:, location:, inspect_template:| raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/inspectTemplates/#{inspect_template}" end) } resource = resources[args.keys.sort.join(":")] raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil? resource.call(**args) end |
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
The resource will be in the following format:
projects/{project}/locations/{location}
125 126 127 128 129 |
# File 'lib/google/cloud/dialogflow/cx/v3/security_settings_service/paths.rb', line 125 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end |
#security_settings_path(project:, location:, security_settings:) ⇒ ::String
Create a fully-qualified SecuritySettings resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/securitySettings/{security_settings}
143 144 145 146 147 148 |
# File 'lib/google/cloud/dialogflow/cx/v3/security_settings_service/paths.rb', line 143 def security_settings_path project:, location:, security_settings: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/securitySettings/#{security_settings}" end |