google-cloud-dlp-v2 0.21.0 → 0.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/dlp/v2/dlp_service/client.rb +980 -171
- data/lib/google/cloud/dlp/v2/dlp_service/paths.rb +129 -0
- data/lib/google/cloud/dlp/v2/dlp_service/rest/client.rb +906 -139
- data/lib/google/cloud/dlp/v2/dlp_service/rest/service_stub.rb +396 -0
- data/lib/google/cloud/dlp/v2/dlp_service/rest.rb +1 -1
- data/lib/google/cloud/dlp/v2/dlp_service.rb +1 -1
- data/lib/google/cloud/dlp/v2/version.rb +1 -1
- data/lib/google/privacy/dlp/v2/dlp_pb.rb +12 -1
- data/lib/google/privacy/dlp/v2/dlp_services_pb.rb +112 -50
- data/proto_docs/google/privacy/dlp/v2/dlp.rb +399 -55
- data/proto_docs/google/privacy/dlp/v2/storage.rb +35 -18
- metadata +4 -4
@@ -24,6 +24,49 @@ module Google
|
|
24
24
|
module DlpService
|
25
25
|
# Path helper methods for the DlpService API.
|
26
26
|
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified ColumnDataProfile resource string.
|
29
|
+
#
|
30
|
+
# @overload column_data_profile_path(organization:, location:, column_data_profile:)
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}`
|
34
|
+
#
|
35
|
+
# @param organization [String]
|
36
|
+
# @param location [String]
|
37
|
+
# @param column_data_profile [String]
|
38
|
+
#
|
39
|
+
# @overload column_data_profile_path(project:, location:, column_data_profile:)
|
40
|
+
# The resource will be in the following format:
|
41
|
+
#
|
42
|
+
# `projects/{project}/locations/{location}/columnDataProfiles/{column_data_profile}`
|
43
|
+
#
|
44
|
+
# @param project [String]
|
45
|
+
# @param location [String]
|
46
|
+
# @param column_data_profile [String]
|
47
|
+
#
|
48
|
+
# @return [::String]
|
49
|
+
def column_data_profile_path **args
|
50
|
+
resources = {
|
51
|
+
"column_data_profile:location:organization" => (proc do |organization:, location:, column_data_profile:|
|
52
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
53
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
54
|
+
|
55
|
+
"organizations/#{organization}/locations/#{location}/columnDataProfiles/#{column_data_profile}"
|
56
|
+
end),
|
57
|
+
"column_data_profile:location:project" => (proc do |project:, location:, column_data_profile:|
|
58
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
59
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
60
|
+
|
61
|
+
"projects/#{project}/locations/#{location}/columnDataProfiles/#{column_data_profile}"
|
62
|
+
end)
|
63
|
+
}
|
64
|
+
|
65
|
+
resource = resources[args.keys.sort.join(":")]
|
66
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
67
|
+
resource.call(**args)
|
68
|
+
end
|
69
|
+
|
27
70
|
##
|
28
71
|
# Create a fully-qualified DeidentifyTemplate resource string.
|
29
72
|
#
|
@@ -325,6 +368,49 @@ module Google
|
|
325
368
|
"projects/#{project}"
|
326
369
|
end
|
327
370
|
|
371
|
+
##
|
372
|
+
# Create a fully-qualified ProjectDataProfile resource string.
|
373
|
+
#
|
374
|
+
# @overload project_data_profile_path(organization:, location:, project_data_profile:)
|
375
|
+
# The resource will be in the following format:
|
376
|
+
#
|
377
|
+
# `organizations/{organization}/locations/{location}/projectDataProfiles/{project_data_profile}`
|
378
|
+
#
|
379
|
+
# @param organization [String]
|
380
|
+
# @param location [String]
|
381
|
+
# @param project_data_profile [String]
|
382
|
+
#
|
383
|
+
# @overload project_data_profile_path(project:, location:, project_data_profile:)
|
384
|
+
# The resource will be in the following format:
|
385
|
+
#
|
386
|
+
# `projects/{project}/locations/{location}/projectDataProfiles/{project_data_profile}`
|
387
|
+
#
|
388
|
+
# @param project [String]
|
389
|
+
# @param location [String]
|
390
|
+
# @param project_data_profile [String]
|
391
|
+
#
|
392
|
+
# @return [::String]
|
393
|
+
def project_data_profile_path **args
|
394
|
+
resources = {
|
395
|
+
"location:organization:project_data_profile" => (proc do |organization:, location:, project_data_profile:|
|
396
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
397
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
398
|
+
|
399
|
+
"organizations/#{organization}/locations/#{location}/projectDataProfiles/#{project_data_profile}"
|
400
|
+
end),
|
401
|
+
"location:project:project_data_profile" => (proc do |project:, location:, project_data_profile:|
|
402
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
403
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
404
|
+
|
405
|
+
"projects/#{project}/locations/#{location}/projectDataProfiles/#{project_data_profile}"
|
406
|
+
end)
|
407
|
+
}
|
408
|
+
|
409
|
+
resource = resources[args.keys.sort.join(":")]
|
410
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
411
|
+
resource.call(**args)
|
412
|
+
end
|
413
|
+
|
328
414
|
##
|
329
415
|
# Create a fully-qualified StoredInfoType resource string.
|
330
416
|
#
|
@@ -394,6 +480,49 @@ module Google
|
|
394
480
|
resource.call(**args)
|
395
481
|
end
|
396
482
|
|
483
|
+
##
|
484
|
+
# Create a fully-qualified TableDataProfile resource string.
|
485
|
+
#
|
486
|
+
# @overload table_data_profile_path(organization:, location:, table_data_profile:)
|
487
|
+
# The resource will be in the following format:
|
488
|
+
#
|
489
|
+
# `organizations/{organization}/locations/{location}/tableDataProfiles/{table_data_profile}`
|
490
|
+
#
|
491
|
+
# @param organization [String]
|
492
|
+
# @param location [String]
|
493
|
+
# @param table_data_profile [String]
|
494
|
+
#
|
495
|
+
# @overload table_data_profile_path(project:, location:, table_data_profile:)
|
496
|
+
# The resource will be in the following format:
|
497
|
+
#
|
498
|
+
# `projects/{project}/locations/{location}/tableDataProfiles/{table_data_profile}`
|
499
|
+
#
|
500
|
+
# @param project [String]
|
501
|
+
# @param location [String]
|
502
|
+
# @param table_data_profile [String]
|
503
|
+
#
|
504
|
+
# @return [::String]
|
505
|
+
def table_data_profile_path **args
|
506
|
+
resources = {
|
507
|
+
"location:organization:table_data_profile" => (proc do |organization:, location:, table_data_profile:|
|
508
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
509
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
510
|
+
|
511
|
+
"organizations/#{organization}/locations/#{location}/tableDataProfiles/#{table_data_profile}"
|
512
|
+
end),
|
513
|
+
"location:project:table_data_profile" => (proc do |project:, location:, table_data_profile:|
|
514
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
515
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
516
|
+
|
517
|
+
"projects/#{project}/locations/#{location}/tableDataProfiles/#{table_data_profile}"
|
518
|
+
end)
|
519
|
+
}
|
520
|
+
|
521
|
+
resource = resources[args.keys.sort.join(":")]
|
522
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
523
|
+
resource.call(**args)
|
524
|
+
end
|
525
|
+
|
397
526
|
extend self
|
398
527
|
end
|
399
528
|
end
|