Module: Google::Cloud::Dlp::V2::DlpService::Paths

Extended by:
Paths
Included in:
Client, Paths, Rest::Client
Defined in:
lib/google/cloud/dlp/v2/dlp_service/paths.rb

Overview

Path helper methods for the DlpService API.

Instance Method Summary collapse

Instance Method Details

#column_data_profile_path(organization: , location: , column_data_profile: ) ⇒ ::String #column_data_profile_path(project: , location: , column_data_profile: ) ⇒ ::String

Create a fully-qualified ColumnDataProfile resource string.

Overloads:

  • #column_data_profile_path(organization: , location: , column_data_profile: ) ⇒ ::String

    The resource will be in the following format:

    organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}

    Parameters:

    • organization (String) (defaults to: )
    • location (String) (defaults to: )
    • column_data_profile (String) (defaults to: )
  • #column_data_profile_path(project: , location: , column_data_profile: ) ⇒ ::String

    The resource will be in the following format:

    projects/{project}/locations/{location}/columnDataProfiles/{column_data_profile}

    Parameters:

    • project (String) (defaults to: )
    • location (String) (defaults to: )
    • column_data_profile (String) (defaults to: )

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/google/cloud/dlp/v2/dlp_service/paths.rb', line 49

def column_data_profile_path **args
  resources = {
    "column_data_profile:location:organization" => (proc do |organization:, location:, column_data_profile:|
      raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
      raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

      "organizations/#{organization}/locations/#{location}/columnDataProfiles/#{column_data_profile}"
    end),
    "column_data_profile:location:project" => (proc do |project:, location:, column_data_profile:|
      raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
      raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

      "projects/#{project}/locations/#{location}/columnDataProfiles/#{column_data_profile}"
    end)
  }

  resource = resources[args.keys.sort.join(":")]
  raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
  resource.call(**args)
end

#connection_path(project: , location: , connection: ) ⇒ ::String #connection_path(organization: , location: , connection: ) ⇒ ::String

Create a fully-qualified Connection resource string.

Overloads:

  • #connection_path(project: , location: , connection: ) ⇒ ::String

    The resource will be in the following format:

    projects/{project}/locations/{location}/connections/{connection}

    Parameters:

    • project (String) (defaults to: )
    • location (String) (defaults to: )
    • connection (String) (defaults to: )
  • #connection_path(organization: , location: , connection: ) ⇒ ::String

    The resource will be in the following format:

    organizations/{organization}/locations/{location}/connections/{connection}

    Parameters:

    • organization (String) (defaults to: )
    • location (String) (defaults to: )
    • connection (String) (defaults to: )

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/google/cloud/dlp/v2/dlp_service/paths.rb', line 92

def connection_path **args
  resources = {
    "connection:location:project" => (proc do |project:, location:, connection:|
      raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
      raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

      "projects/#{project}/locations/#{location}/connections/#{connection}"
    end),
    "connection:location:organization" => (proc do |organization:, location:, connection:|
      raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
      raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

      "organizations/#{organization}/locations/#{location}/connections/#{connection}"
    end)
  }

  resource = resources[args.keys.sort.join(":")]
  raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
  resource.call(**args)
end

#deidentify_template_path(organization: , deidentify_template: ) ⇒ ::String #deidentify_template_path(project: , deidentify_template: ) ⇒ ::String #deidentify_template_path(organization: , location: , deidentify_template: ) ⇒ ::String #deidentify_template_path(project: , location: , deidentify_template: ) ⇒ ::String

Create a fully-qualified DeidentifyTemplate resource string.

Overloads:

  • #deidentify_template_path(organization: , deidentify_template: ) ⇒ ::String

    The resource will be in the following format:

    organizations/{organization}/deidentifyTemplates/{deidentify_template}

    Parameters:

    • organization (String) (defaults to: )
    • deidentify_template (String) (defaults to: )
  • #deidentify_template_path(project: , deidentify_template: ) ⇒ ::String

    The resource will be in the following format:

    projects/{project}/deidentifyTemplates/{deidentify_template}

    Parameters:

    • project (String) (defaults to: )
    • deidentify_template (String) (defaults to: )
  • #deidentify_template_path(organization: , location: , deidentify_template: ) ⇒ ::String

    The resource will be in the following format:

    organizations/{organization}/locations/{location}/deidentifyTemplates/{deidentify_template}

    Parameters:

    • organization (String) (defaults to: )
    • location (String) (defaults to: )
    • deidentify_template (String) (defaults to: )
  • #deidentify_template_path(project: , location: , deidentify_template: ) ⇒ ::String

    The resource will be in the following format:

    projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}

    Parameters:

    • project (String) (defaults to: )
    • location (String) (defaults to: )
    • deidentify_template (String) (defaults to: )

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
# File 'lib/google/cloud/dlp/v2/dlp_service/paths.rb', line 151

def deidentify_template_path **args
  resources = {
    "deidentify_template:organization" => (proc do |organization:, deidentify_template:|
      raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"

      "organizations/#{organization}/deidentifyTemplates/#{deidentify_template}"
    end),
    "deidentify_template:project" => (proc do |project:, deidentify_template:|
      raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

      "projects/#{project}/deidentifyTemplates/#{deidentify_template}"
    end),
    "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

#discovery_config_path(project:, location:, discovery_config:) ⇒ ::String

Create a fully-qualified DiscoveryConfig resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/discoveryConfigs/{discovery_config}

Parameters:

  • project (String)
  • location (String)
  • discovery_config (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


194
195
196
197
198
199
# File 'lib/google/cloud/dlp/v2/dlp_service/paths.rb', line 194

def discovery_config_path project:, location:, discovery_config:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/discoveryConfigs/#{discovery_config}"
end

#dlp_job_path(project: , dlp_job: ) ⇒ ::String #dlp_job_path(project: , location: , dlp_job: ) ⇒ ::String

Create a fully-qualified DlpJob resource string.

Overloads:

  • #dlp_job_path(project: , dlp_job: ) ⇒ ::String

    The resource will be in the following format:

    projects/{project}/dlpJobs/{dlp_job}

    Parameters:

    • project (String) (defaults to: )
    • dlp_job (String) (defaults to: )
  • #dlp_job_path(project: , location: , dlp_job: ) ⇒ ::String

    The resource will be in the following format:

    projects/{project}/locations/{location}/dlpJobs/{dlp_job}

    Parameters:

    • project (String) (defaults to: )
    • location (String) (defaults to: )
    • dlp_job (String) (defaults to: )

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
# File 'lib/google/cloud/dlp/v2/dlp_service/paths.rb', line 222

def dlp_job_path **args
  resources = {
    "dlp_job:project" => (proc do |project:, dlp_job:|
      raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

      "projects/#{project}/dlpJobs/#{dlp_job}"
    end),
    "dlp_job:location:project" => (proc do |project:, location:, dlp_job:|
      raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
      raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

      "projects/#{project}/locations/#{location}/dlpJobs/#{dlp_job}"
    end)
  }

  resource = resources[args.keys.sort.join(":")]
  raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
  resource.call(**args)
end

#file_store_data_profile_path(organization: , location: , file_store_data_profile: ) ⇒ ::String #file_store_data_profile_path(project: , location: , file_store_data_profile: ) ⇒ ::String

Create a fully-qualified FileStoreDataProfile resource string.

Overloads:

  • #file_store_data_profile_path(organization: , location: , file_store_data_profile: ) ⇒ ::String

    The resource will be in the following format:

    organizations/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}

    Parameters:

    • organization (String) (defaults to: )
    • location (String) (defaults to: )
    • file_store_data_profile (String) (defaults to: )
  • #file_store_data_profile_path(project: , location: , file_store_data_profile: ) ⇒ ::String

    The resource will be in the following format:

    projects/{project}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}

    Parameters:

    • project (String) (defaults to: )
    • location (String) (defaults to: )
    • file_store_data_profile (String) (defaults to: )

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
# File 'lib/google/cloud/dlp/v2/dlp_service/paths.rb', line 264

def file_store_data_profile_path **args
  resources = {
    "file_store_data_profile:location:organization" => (proc do |organization:, location:, file_store_data_profile:|
      raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
      raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

      "organizations/#{organization}/locations/#{location}/fileStoreDataProfiles/#{file_store_data_profile}"
    end),
    "file_store_data_profile:location:project" => (proc do |project:, location:, file_store_data_profile:|
      raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
      raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

      "projects/#{project}/locations/#{location}/fileStoreDataProfiles/#{file_store_data_profile}"
    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: , inspect_template: ) ⇒ ::String #inspect_template_path(project: , inspect_template: ) ⇒ ::String #inspect_template_path(organization: , location: , inspect_template: ) ⇒ ::String #inspect_template_path(project: , location: , inspect_template: ) ⇒ ::String

Create a fully-qualified InspectTemplate resource string.

Overloads:

  • #inspect_template_path(organization: , inspect_template: ) ⇒ ::String

    The resource will be in the following format:

    organizations/{organization}/inspectTemplates/{inspect_template}

    Parameters:

    • organization (String) (defaults to: )
    • inspect_template (String) (defaults to: )
  • #inspect_template_path(project: , inspect_template: ) ⇒ ::String

    The resource will be in the following format:

    projects/{project}/inspectTemplates/{inspect_template}

    Parameters:

    • project (String) (defaults to: )
    • inspect_template (String) (defaults to: )
  • #inspect_template_path(organization: , location: , inspect_template: ) ⇒ ::String

    The resource will be in the following format:

    organizations/{organization}/locations/{location}/inspectTemplates/{inspect_template}

    Parameters:

    • organization (String) (defaults to: )
    • location (String) (defaults to: )
    • inspect_template (String) (defaults to: )
  • #inspect_template_path(project: , location: , inspect_template: ) ⇒ ::String

    The resource will be in the following format:

    projects/{project}/locations/{location}/inspectTemplates/{inspect_template}

    Parameters:

    • project (String) (defaults to: )
    • location (String) (defaults to: )
    • inspect_template (String) (defaults to: )

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
# File 'lib/google/cloud/dlp/v2/dlp_service/paths.rb', line 323

def inspect_template_path **args
  resources = {
    "inspect_template:organization" => (proc do |organization:, inspect_template:|
      raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"

      "organizations/#{organization}/inspectTemplates/#{inspect_template}"
    end),
    "inspect_template:project" => (proc do |project:, inspect_template:|
      raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

      "projects/#{project}/inspectTemplates/#{inspect_template}"
    end),
    "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

#job_trigger_path(project: , job_trigger: ) ⇒ ::String #job_trigger_path(project: , location: , job_trigger: ) ⇒ ::String

Create a fully-qualified JobTrigger resource string.

Overloads:

  • #job_trigger_path(project: , job_trigger: ) ⇒ ::String

    The resource will be in the following format:

    projects/{project}/jobTriggers/{job_trigger}

    Parameters:

    • project (String) (defaults to: )
    • job_trigger (String) (defaults to: )
  • #job_trigger_path(project: , location: , job_trigger: ) ⇒ ::String

    The resource will be in the following format:

    projects/{project}/locations/{location}/jobTriggers/{job_trigger}

    Parameters:

    • project (String) (defaults to: )
    • location (String) (defaults to: )
    • job_trigger (String) (defaults to: )

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
# File 'lib/google/cloud/dlp/v2/dlp_service/paths.rb', line 375

def job_trigger_path **args
  resources = {
    "job_trigger:project" => (proc do |project:, job_trigger:|
      raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

      "projects/#{project}/jobTriggers/#{job_trigger}"
    end),
    "job_trigger:location:project" => (proc do |project:, location:, job_trigger:|
      raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
      raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

      "projects/#{project}/locations/#{location}/jobTriggers/#{job_trigger}"
    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}

Parameters:

  • project (String)
  • location (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


406
407
408
409
410
# File 'lib/google/cloud/dlp/v2/dlp_service/paths.rb', line 406

def location_path project:, location:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

  "projects/#{project}/locations/#{location}"
end

#organization_location_path(organization:, location:) ⇒ ::String

Create a fully-qualified OrganizationLocation resource string.

The resource will be in the following format:

organizations/{organization}/locations/{location}

Parameters:

  • organization (String)
  • location (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


437
438
439
440
441
# File 'lib/google/cloud/dlp/v2/dlp_service/paths.rb', line 437

def organization_location_path organization:, location:
  raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"

  "organizations/#{organization}/locations/#{location}"
end

#organization_path(organization:) ⇒ ::String

Create a fully-qualified Organization resource string.

The resource will be in the following format:

organizations/{organization}

Parameters:

  • organization (String)

Returns:

  • (::String)


422
423
424
# File 'lib/google/cloud/dlp/v2/dlp_service/paths.rb', line 422

def organization_path organization:
  "organizations/#{organization}"
end

#project_data_profile_path(organization: , location: , project_data_profile: ) ⇒ ::String #project_data_profile_path(project: , location: , project_data_profile: ) ⇒ ::String

Create a fully-qualified ProjectDataProfile resource string.

Overloads:

  • #project_data_profile_path(organization: , location: , project_data_profile: ) ⇒ ::String

    The resource will be in the following format:

    organizations/{organization}/locations/{location}/projectDataProfiles/{project_data_profile}

    Parameters:

    • organization (String) (defaults to: )
    • location (String) (defaults to: )
    • project_data_profile (String) (defaults to: )
  • #project_data_profile_path(project: , location: , project_data_profile: ) ⇒ ::String

    The resource will be in the following format:

    projects/{project}/locations/{location}/projectDataProfiles/{project_data_profile}

    Parameters:

    • project (String) (defaults to: )
    • location (String) (defaults to: )
    • project_data_profile (String) (defaults to: )

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
# File 'lib/google/cloud/dlp/v2/dlp_service/paths.rb', line 479

def project_data_profile_path **args
  resources = {
    "location:organization:project_data_profile" => (proc do |organization:, location:, project_data_profile:|
      raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
      raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

      "organizations/#{organization}/locations/#{location}/projectDataProfiles/#{project_data_profile}"
    end),
    "location:project:project_data_profile" => (proc do |project:, location:, project_data_profile:|
      raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
      raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

      "projects/#{project}/locations/#{location}/projectDataProfiles/#{project_data_profile}"
    end)
  }

  resource = resources[args.keys.sort.join(":")]
  raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
  resource.call(**args)
end

#project_path(project:) ⇒ ::String

Create a fully-qualified Project resource string.

The resource will be in the following format:

projects/{project}

Parameters:

  • project (String)

Returns:

  • (::String)


453
454
455
# File 'lib/google/cloud/dlp/v2/dlp_service/paths.rb', line 453

def project_path project:
  "projects/#{project}"
end

#stored_info_type_path(organization: , stored_info_type: ) ⇒ ::String #stored_info_type_path(project: , stored_info_type: ) ⇒ ::String #stored_info_type_path(organization: , location: , stored_info_type: ) ⇒ ::String #stored_info_type_path(project: , location: , stored_info_type: ) ⇒ ::String

Create a fully-qualified StoredInfoType resource string.

Overloads:

  • #stored_info_type_path(organization: , stored_info_type: ) ⇒ ::String

    The resource will be in the following format:

    organizations/{organization}/storedInfoTypes/{stored_info_type}

    Parameters:

    • organization (String) (defaults to: )
    • stored_info_type (String) (defaults to: )
  • #stored_info_type_path(project: , stored_info_type: ) ⇒ ::String

    The resource will be in the following format:

    projects/{project}/storedInfoTypes/{stored_info_type}

    Parameters:

    • project (String) (defaults to: )
    • stored_info_type (String) (defaults to: )
  • #stored_info_type_path(organization: , location: , stored_info_type: ) ⇒ ::String

    The resource will be in the following format:

    organizations/{organization}/locations/{location}/storedInfoTypes/{stored_info_type}

    Parameters:

    • organization (String) (defaults to: )
    • location (String) (defaults to: )
    • stored_info_type (String) (defaults to: )
  • #stored_info_type_path(project: , location: , stored_info_type: ) ⇒ ::String

    The resource will be in the following format:

    projects/{project}/locations/{location}/storedInfoTypes/{stored_info_type}

    Parameters:

    • project (String) (defaults to: )
    • location (String) (defaults to: )
    • stored_info_type (String) (defaults to: )

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
# File 'lib/google/cloud/dlp/v2/dlp_service/paths.rb', line 538

def stored_info_type_path **args
  resources = {
    "organization:stored_info_type" => (proc do |organization:, stored_info_type:|
      raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"

      "organizations/#{organization}/storedInfoTypes/#{stored_info_type}"
    end),
    "project:stored_info_type" => (proc do |project:, stored_info_type:|
      raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

      "projects/#{project}/storedInfoTypes/#{stored_info_type}"
    end),
    "location:organization:stored_info_type" => (proc do |organization:, location:, stored_info_type:|
      raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
      raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

      "organizations/#{organization}/locations/#{location}/storedInfoTypes/#{stored_info_type}"
    end),
    "location:project:stored_info_type" => (proc do |project:, location:, stored_info_type:|
      raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
      raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

      "projects/#{project}/locations/#{location}/storedInfoTypes/#{stored_info_type}"
    end)
  }

  resource = resources[args.keys.sort.join(":")]
  raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
  resource.call(**args)
end

#table_data_profile_path(organization: , location: , table_data_profile: ) ⇒ ::String #table_data_profile_path(project: , location: , table_data_profile: ) ⇒ ::String

Create a fully-qualified TableDataProfile resource string.

Overloads:

  • #table_data_profile_path(organization: , location: , table_data_profile: ) ⇒ ::String

    The resource will be in the following format:

    organizations/{organization}/locations/{location}/tableDataProfiles/{table_data_profile}

    Parameters:

    • organization (String) (defaults to: )
    • location (String) (defaults to: )
    • table_data_profile (String) (defaults to: )
  • #table_data_profile_path(project: , location: , table_data_profile: ) ⇒ ::String

    The resource will be in the following format:

    projects/{project}/locations/{location}/tableDataProfiles/{table_data_profile}

    Parameters:

    • project (String) (defaults to: )
    • location (String) (defaults to: )
    • table_data_profile (String) (defaults to: )

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
# File 'lib/google/cloud/dlp/v2/dlp_service/paths.rb', line 591

def table_data_profile_path **args
  resources = {
    "location:organization:table_data_profile" => (proc do |organization:, location:, table_data_profile:|
      raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
      raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

      "organizations/#{organization}/locations/#{location}/tableDataProfiles/#{table_data_profile}"
    end),
    "location:project:table_data_profile" => (proc do |project:, location:, table_data_profile:|
      raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
      raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

      "projects/#{project}/locations/#{location}/tableDataProfiles/#{table_data_profile}"
    end)
  }

  resource = resources[args.keys.sort.join(":")]
  raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
  resource.call(**args)
end