google-cloud-dlp-v2 0.18.0 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/dlp/v2/dlp_service/client.rb +582 -45
- data/lib/google/cloud/dlp/v2/dlp_service/paths.rb +19 -0
- data/lib/google/cloud/dlp/v2/dlp_service/rest/client.rb +547 -45
- data/lib/google/cloud/dlp/v2/dlp_service/rest/service_stub.rb +334 -0
- data/lib/google/cloud/dlp/v2/version.rb +1 -1
- data/lib/google/privacy/dlp/v2/dlp_pb.rb +42 -1
- data/lib/google/privacy/dlp/v2/dlp_services_pb.rb +10 -0
- data/lib/google/privacy/dlp/v2/storage_pb.rb +1 -1
- data/proto_docs/google/privacy/dlp/v2/dlp.rb +930 -111
- data/proto_docs/google/privacy/dlp/v2/storage.rb +83 -35
- metadata +2 -2
@@ -93,6 +93,25 @@ module Google
|
|
93
93
|
resource.call(**args)
|
94
94
|
end
|
95
95
|
|
96
|
+
##
|
97
|
+
# Create a fully-qualified DiscoveryConfig resource string.
|
98
|
+
#
|
99
|
+
# The resource will be in the following format:
|
100
|
+
#
|
101
|
+
# `projects/{project}/locations/{location}/discoveryConfigs/{discovery_config}`
|
102
|
+
#
|
103
|
+
# @param project [String]
|
104
|
+
# @param location [String]
|
105
|
+
# @param discovery_config [String]
|
106
|
+
#
|
107
|
+
# @return [::String]
|
108
|
+
def discovery_config_path project:, location:, discovery_config:
|
109
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
110
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
111
|
+
|
112
|
+
"projects/#{project}/locations/#{location}/discoveryConfigs/#{discovery_config}"
|
113
|
+
end
|
114
|
+
|
96
115
|
##
|
97
116
|
# Create a fully-qualified DlpJob resource string.
|
98
117
|
#
|