google-cloud-dlp-v2 1.0.0 → 1.2.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 +470 -96
- data/lib/google/cloud/dlp/v2/dlp_service/paths.rb +76 -9
- data/lib/google/cloud/dlp/v2/dlp_service/rest/client.rb +449 -96
- data/lib/google/cloud/dlp/v2/dlp_service/rest/service_stub.rb +245 -10
- data/lib/google/cloud/dlp/v2/version.rb +1 -1
- data/lib/google/privacy/dlp/v2/dlp_pb.rb +31 -1
- data/lib/google/privacy/dlp/v2/dlp_services_pb.rb +9 -1
- data/lib/google/privacy/dlp/v2/storage_pb.rb +1 -1
- data/proto_docs/google/api/client.rb +14 -10
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/privacy/dlp/v2/dlp.rb +823 -108
- data/proto_docs/google/privacy/dlp/v2/storage.rb +9 -7
- metadata +2 -2
@@ -70,20 +70,44 @@ module Google
|
|
70
70
|
##
|
71
71
|
# Create a fully-qualified Connection resource string.
|
72
72
|
#
|
73
|
-
#
|
73
|
+
# @overload connection_path(project:, location:, connection:)
|
74
|
+
# The resource will be in the following format:
|
74
75
|
#
|
75
|
-
#
|
76
|
+
# `projects/{project}/locations/{location}/connections/{connection}`
|
76
77
|
#
|
77
|
-
#
|
78
|
-
#
|
79
|
-
#
|
78
|
+
# @param project [String]
|
79
|
+
# @param location [String]
|
80
|
+
# @param connection [String]
|
81
|
+
#
|
82
|
+
# @overload connection_path(organization:, location:, connection:)
|
83
|
+
# The resource will be in the following format:
|
84
|
+
#
|
85
|
+
# `organizations/{organization}/locations/{location}/connections/{connection}`
|
86
|
+
#
|
87
|
+
# @param organization [String]
|
88
|
+
# @param location [String]
|
89
|
+
# @param connection [String]
|
80
90
|
#
|
81
91
|
# @return [::String]
|
82
|
-
def connection_path
|
83
|
-
|
84
|
-
|
92
|
+
def connection_path **args
|
93
|
+
resources = {
|
94
|
+
"connection:location:project" => (proc do |project:, location:, connection:|
|
95
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
96
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
97
|
+
|
98
|
+
"projects/#{project}/locations/#{location}/connections/#{connection}"
|
99
|
+
end),
|
100
|
+
"connection:location:organization" => (proc do |organization:, location:, connection:|
|
101
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
102
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
103
|
+
|
104
|
+
"organizations/#{organization}/locations/#{location}/connections/#{connection}"
|
105
|
+
end)
|
106
|
+
}
|
85
107
|
|
86
|
-
"
|
108
|
+
resource = resources[args.keys.sort.join(":")]
|
109
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
110
|
+
resource.call(**args)
|
87
111
|
end
|
88
112
|
|
89
113
|
##
|
@@ -215,6 +239,49 @@ module Google
|
|
215
239
|
resource.call(**args)
|
216
240
|
end
|
217
241
|
|
242
|
+
##
|
243
|
+
# Create a fully-qualified FileStoreDataProfile resource string.
|
244
|
+
#
|
245
|
+
# @overload file_store_data_profile_path(organization:, location:, file_store_data_profile:)
|
246
|
+
# The resource will be in the following format:
|
247
|
+
#
|
248
|
+
# `organizations/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}`
|
249
|
+
#
|
250
|
+
# @param organization [String]
|
251
|
+
# @param location [String]
|
252
|
+
# @param file_store_data_profile [String]
|
253
|
+
#
|
254
|
+
# @overload file_store_data_profile_path(project:, location:, file_store_data_profile:)
|
255
|
+
# The resource will be in the following format:
|
256
|
+
#
|
257
|
+
# `projects/{project}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}`
|
258
|
+
#
|
259
|
+
# @param project [String]
|
260
|
+
# @param location [String]
|
261
|
+
# @param file_store_data_profile [String]
|
262
|
+
#
|
263
|
+
# @return [::String]
|
264
|
+
def file_store_data_profile_path **args
|
265
|
+
resources = {
|
266
|
+
"file_store_data_profile:location:organization" => (proc do |organization:, location:, file_store_data_profile:|
|
267
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
268
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
269
|
+
|
270
|
+
"organizations/#{organization}/locations/#{location}/fileStoreDataProfiles/#{file_store_data_profile}"
|
271
|
+
end),
|
272
|
+
"file_store_data_profile:location:project" => (proc do |project:, location:, file_store_data_profile:|
|
273
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
274
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
275
|
+
|
276
|
+
"projects/#{project}/locations/#{location}/fileStoreDataProfiles/#{file_store_data_profile}"
|
277
|
+
end)
|
278
|
+
}
|
279
|
+
|
280
|
+
resource = resources[args.keys.sort.join(":")]
|
281
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
282
|
+
resource.call(**args)
|
283
|
+
end
|
284
|
+
|
218
285
|
##
|
219
286
|
# Create a fully-qualified InspectTemplate resource string.
|
220
287
|
#
|