google-cloud-security_center_management-v1 0.1.0 → 0.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/security_center_management/v1/security_center_management/client.rb +415 -68
- data/lib/google/cloud/security_center_management/v1/security_center_management/paths.rb +58 -0
- data/lib/google/cloud/security_center_management/v1/security_center_management/rest/client.rb +394 -68
- data/lib/google/cloud/security_center_management/v1/security_center_management/rest/service_stub.rb +222 -0
- data/lib/google/cloud/security_center_management/v1/version.rb +1 -1
- data/lib/google/cloud/securitycentermanagement/v1/security_center_management_pb.rb +9 -2
- data/lib/google/cloud/securitycentermanagement/v1/security_center_management_services_pb.rb +7 -0
- data/proto_docs/google/cloud/securitycentermanagement/v1/security_center_management.rb +252 -77
- metadata +2 -2
@@ -249,6 +249,64 @@ module Google
|
|
249
249
|
"organizations/#{organization}/locations/#{location}"
|
250
250
|
end
|
251
251
|
|
252
|
+
##
|
253
|
+
# Create a fully-qualified SecurityCenterService resource string.
|
254
|
+
#
|
255
|
+
# @overload security_center_service_path(project:, location:, service:)
|
256
|
+
# The resource will be in the following format:
|
257
|
+
#
|
258
|
+
# `projects/{project}/locations/{location}/securityCenterServices/{service}`
|
259
|
+
#
|
260
|
+
# @param project [String]
|
261
|
+
# @param location [String]
|
262
|
+
# @param service [String]
|
263
|
+
#
|
264
|
+
# @overload security_center_service_path(folder:, location:, service:)
|
265
|
+
# The resource will be in the following format:
|
266
|
+
#
|
267
|
+
# `folders/{folder}/locations/{location}/securityCenterServices/{service}`
|
268
|
+
#
|
269
|
+
# @param folder [String]
|
270
|
+
# @param location [String]
|
271
|
+
# @param service [String]
|
272
|
+
#
|
273
|
+
# @overload security_center_service_path(organization:, location:, service:)
|
274
|
+
# The resource will be in the following format:
|
275
|
+
#
|
276
|
+
# `organizations/{organization}/locations/{location}/securityCenterServices/{service}`
|
277
|
+
#
|
278
|
+
# @param organization [String]
|
279
|
+
# @param location [String]
|
280
|
+
# @param service [String]
|
281
|
+
#
|
282
|
+
# @return [::String]
|
283
|
+
def security_center_service_path **args
|
284
|
+
resources = {
|
285
|
+
"location:project:service" => (proc do |project:, location:, service:|
|
286
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
287
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
288
|
+
|
289
|
+
"projects/#{project}/locations/#{location}/securityCenterServices/#{service}"
|
290
|
+
end),
|
291
|
+
"folder:location:service" => (proc do |folder:, location:, service:|
|
292
|
+
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
293
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
294
|
+
|
295
|
+
"folders/#{folder}/locations/#{location}/securityCenterServices/#{service}"
|
296
|
+
end),
|
297
|
+
"location:organization:service" => (proc do |organization:, location:, service:|
|
298
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
299
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
300
|
+
|
301
|
+
"organizations/#{organization}/locations/#{location}/securityCenterServices/#{service}"
|
302
|
+
end)
|
303
|
+
}
|
304
|
+
|
305
|
+
resource = resources[args.keys.sort.join(":")]
|
306
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
307
|
+
resource.call(**args)
|
308
|
+
end
|
309
|
+
|
252
310
|
##
|
253
311
|
# Create a fully-qualified SecurityHealthAnalyticsCustomModule resource string.
|
254
312
|
#
|