google-cloud-security_center-v1 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +0 -1
- data/lib/google/cloud/security_center/v1/security_center/client.rb +2096 -182
- data/lib/google/cloud/security_center/v1/security_center/paths.rb +313 -0
- data/lib/google/cloud/security_center/v1/security_center/rest/client.rb +1977 -189
- data/lib/google/cloud/security_center/v1/security_center/rest/service_stub.rb +1926 -595
- data/lib/google/cloud/security_center/v1/version.rb +1 -1
- data/lib/google/cloud/securitycenter/v1/asset_pb.rb +1 -1
- data/lib/google/cloud/securitycenter/v1/attack_exposure_pb.rb +46 -0
- data/lib/google/cloud/securitycenter/v1/attack_path_pb.rb +49 -0
- data/lib/google/cloud/securitycenter/v1/bigquery_export_pb.rb +1 -1
- data/lib/google/cloud/securitycenter/v1/effective_event_threat_detection_custom_module_pb.rb +48 -0
- data/lib/google/cloud/securitycenter/v1/event_threat_detection_custom_module_pb.rb +50 -0
- data/lib/google/cloud/securitycenter/v1/event_threat_detection_custom_module_validation_errors_pb.rb +44 -0
- data/lib/google/cloud/securitycenter/v1/external_system_pb.rb +1 -1
- data/lib/google/cloud/securitycenter/v1/finding_pb.rb +6 -1
- data/lib/google/cloud/securitycenter/v1/mitre_attack_pb.rb +1 -1
- data/lib/google/cloud/securitycenter/v1/mute_config_pb.rb +2 -1
- data/lib/google/cloud/securitycenter/v1/notification_config_pb.rb +1 -1
- data/lib/google/cloud/securitycenter/v1/organization_settings_pb.rb +1 -1
- data/lib/google/cloud/securitycenter/v1/resource_pb.rb +13 -1
- data/lib/google/cloud/securitycenter/v1/resource_value_config_pb.rb +50 -0
- data/lib/google/cloud/securitycenter/v1/securitycenter_service_pb.rb +45 -2
- data/lib/google/cloud/securitycenter/v1/securitycenter_service_services_pb.rb +54 -0
- data/lib/google/cloud/securitycenter/v1/simulation_pb.rb +50 -0
- data/lib/google/cloud/securitycenter/v1/valued_resource_pb.rb +46 -0
- data/lib/google/cloud/securitycenter/v1/vulnerability_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/cloud/securitycenter/v1/attack_exposure.rb +73 -0
- data/proto_docs/google/cloud/securitycenter/v1/attack_path.rb +147 -0
- data/proto_docs/google/cloud/securitycenter/v1/cloud_armor.rb +6 -6
- data/proto_docs/google/cloud/securitycenter/v1/effective_event_threat_detection_custom_module.rb +77 -0
- data/proto_docs/google/cloud/securitycenter/v1/event_threat_detection_custom_module.rb +88 -0
- data/proto_docs/google/cloud/securitycenter/v1/event_threat_detection_custom_module_validation_errors.rb +69 -0
- data/proto_docs/google/cloud/securitycenter/v1/finding.rb +50 -0
- data/proto_docs/google/cloud/securitycenter/v1/mitre_attack.rb +19 -1
- data/proto_docs/google/cloud/securitycenter/v1/mute_config.rb +36 -3
- data/proto_docs/google/cloud/securitycenter/v1/resource.rb +223 -0
- data/proto_docs/google/cloud/securitycenter/v1/resource_value_config.rb +125 -0
- data/proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb +626 -87
- data/proto_docs/google/cloud/securitycenter/v1/simulation.rb +46 -0
- data/proto_docs/google/cloud/securitycenter/v1/valued_resource.rb +86 -0
- data/proto_docs/google/cloud/securitycenter/v1/vulnerability.rb +3 -0
- metadata +18 -2
@@ -117,6 +117,58 @@ module Google
|
|
117
117
|
resource.call(**args)
|
118
118
|
end
|
119
119
|
|
120
|
+
##
|
121
|
+
# Create a fully-qualified EffectiveEventThreatDetectionCustomModule resource string.
|
122
|
+
#
|
123
|
+
# @overload effective_event_threat_detection_custom_module_path(organization:, module_param:)
|
124
|
+
# The resource will be in the following format:
|
125
|
+
#
|
126
|
+
# `organizations/{organization}/eventThreatDetectionSettings/effectiveCustomModules/{module_param}`
|
127
|
+
#
|
128
|
+
# @param organization [String]
|
129
|
+
# @param module_param [String]
|
130
|
+
#
|
131
|
+
# @overload effective_event_threat_detection_custom_module_path(folder:, module_param:)
|
132
|
+
# The resource will be in the following format:
|
133
|
+
#
|
134
|
+
# `folders/{folder}/eventThreatDetectionSettings/effectiveCustomModules/{module_param}`
|
135
|
+
#
|
136
|
+
# @param folder [String]
|
137
|
+
# @param module_param [String]
|
138
|
+
#
|
139
|
+
# @overload effective_event_threat_detection_custom_module_path(project:, module_param:)
|
140
|
+
# The resource will be in the following format:
|
141
|
+
#
|
142
|
+
# `projects/{project}/eventThreatDetectionSettings/effectiveCustomModules/{module_param}`
|
143
|
+
#
|
144
|
+
# @param project [String]
|
145
|
+
# @param module_param [String]
|
146
|
+
#
|
147
|
+
# @return [::String]
|
148
|
+
def effective_event_threat_detection_custom_module_path **args
|
149
|
+
resources = {
|
150
|
+
"module_param:organization" => (proc do |organization:, module_param:|
|
151
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
152
|
+
|
153
|
+
"organizations/#{organization}/eventThreatDetectionSettings/effectiveCustomModules/#{module_param}"
|
154
|
+
end),
|
155
|
+
"folder:module_param" => (proc do |folder:, module_param:|
|
156
|
+
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
157
|
+
|
158
|
+
"folders/#{folder}/eventThreatDetectionSettings/effectiveCustomModules/#{module_param}"
|
159
|
+
end),
|
160
|
+
"module_param:project" => (proc do |project:, module_param:|
|
161
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
162
|
+
|
163
|
+
"projects/#{project}/eventThreatDetectionSettings/effectiveCustomModules/#{module_param}"
|
164
|
+
end)
|
165
|
+
}
|
166
|
+
|
167
|
+
resource = resources[args.keys.sort.join(":")]
|
168
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
169
|
+
resource.call(**args)
|
170
|
+
end
|
171
|
+
|
120
172
|
##
|
121
173
|
# Create a fully-qualified EffectiveSecurityHealthAnalyticsCustomModule resource string.
|
122
174
|
#
|
@@ -169,6 +221,101 @@ module Google
|
|
169
221
|
resource.call(**args)
|
170
222
|
end
|
171
223
|
|
224
|
+
##
|
225
|
+
# Create a fully-qualified EventThreatDetectionCustomModule resource string.
|
226
|
+
#
|
227
|
+
# @overload event_threat_detection_custom_module_path(organization:, module_param:)
|
228
|
+
# The resource will be in the following format:
|
229
|
+
#
|
230
|
+
# `organizations/{organization}/eventThreatDetectionSettings/customModules/{module_param}`
|
231
|
+
#
|
232
|
+
# @param organization [String]
|
233
|
+
# @param module_param [String]
|
234
|
+
#
|
235
|
+
# @overload event_threat_detection_custom_module_path(folder:, module_param:)
|
236
|
+
# The resource will be in the following format:
|
237
|
+
#
|
238
|
+
# `folders/{folder}/eventThreatDetectionSettings/customModules/{module_param}`
|
239
|
+
#
|
240
|
+
# @param folder [String]
|
241
|
+
# @param module_param [String]
|
242
|
+
#
|
243
|
+
# @overload event_threat_detection_custom_module_path(project:, module_param:)
|
244
|
+
# The resource will be in the following format:
|
245
|
+
#
|
246
|
+
# `projects/{project}/eventThreatDetectionSettings/customModules/{module_param}`
|
247
|
+
#
|
248
|
+
# @param project [String]
|
249
|
+
# @param module_param [String]
|
250
|
+
#
|
251
|
+
# @return [::String]
|
252
|
+
def event_threat_detection_custom_module_path **args
|
253
|
+
resources = {
|
254
|
+
"module_param:organization" => (proc do |organization:, module_param:|
|
255
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
256
|
+
|
257
|
+
"organizations/#{organization}/eventThreatDetectionSettings/customModules/#{module_param}"
|
258
|
+
end),
|
259
|
+
"folder:module_param" => (proc do |folder:, module_param:|
|
260
|
+
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
261
|
+
|
262
|
+
"folders/#{folder}/eventThreatDetectionSettings/customModules/#{module_param}"
|
263
|
+
end),
|
264
|
+
"module_param:project" => (proc do |project:, module_param:|
|
265
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
266
|
+
|
267
|
+
"projects/#{project}/eventThreatDetectionSettings/customModules/#{module_param}"
|
268
|
+
end)
|
269
|
+
}
|
270
|
+
|
271
|
+
resource = resources[args.keys.sort.join(":")]
|
272
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
273
|
+
resource.call(**args)
|
274
|
+
end
|
275
|
+
|
276
|
+
##
|
277
|
+
# Create a fully-qualified EventThreatDetectionSettings resource string.
|
278
|
+
#
|
279
|
+
# @overload event_threat_detection_settings_path(organization:)
|
280
|
+
# The resource will be in the following format:
|
281
|
+
#
|
282
|
+
# `organizations/{organization}/eventThreatDetectionSettings`
|
283
|
+
#
|
284
|
+
# @param organization [String]
|
285
|
+
#
|
286
|
+
# @overload event_threat_detection_settings_path(folder:)
|
287
|
+
# The resource will be in the following format:
|
288
|
+
#
|
289
|
+
# `folders/{folder}/eventThreatDetectionSettings`
|
290
|
+
#
|
291
|
+
# @param folder [String]
|
292
|
+
#
|
293
|
+
# @overload event_threat_detection_settings_path(project:)
|
294
|
+
# The resource will be in the following format:
|
295
|
+
#
|
296
|
+
# `projects/{project}/eventThreatDetectionSettings`
|
297
|
+
#
|
298
|
+
# @param project [String]
|
299
|
+
#
|
300
|
+
# @return [::String]
|
301
|
+
def event_threat_detection_settings_path **args
|
302
|
+
resources = {
|
303
|
+
"organization" => (proc do |organization:|
|
304
|
+
"organizations/#{organization}/eventThreatDetectionSettings"
|
305
|
+
end),
|
306
|
+
"folder" => (proc do |folder:|
|
307
|
+
"folders/#{folder}/eventThreatDetectionSettings"
|
308
|
+
end),
|
309
|
+
"project" => (proc do |project:|
|
310
|
+
"projects/#{project}/eventThreatDetectionSettings"
|
311
|
+
end)
|
312
|
+
}
|
313
|
+
|
314
|
+
resource = resources[args.keys.sort.join(":")]
|
315
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
316
|
+
resource.call(**args)
|
317
|
+
end
|
318
|
+
|
172
319
|
##
|
173
320
|
# Create a fully-qualified ExternalSystem resource string.
|
174
321
|
#
|
@@ -305,6 +452,40 @@ module Google
|
|
305
452
|
"folders/#{folder}"
|
306
453
|
end
|
307
454
|
|
455
|
+
##
|
456
|
+
# Create a fully-qualified FolderLocation resource string.
|
457
|
+
#
|
458
|
+
# The resource will be in the following format:
|
459
|
+
#
|
460
|
+
# `folders/{folder}/locations/{location}`
|
461
|
+
#
|
462
|
+
# @param folder [String]
|
463
|
+
# @param location [String]
|
464
|
+
#
|
465
|
+
# @return [::String]
|
466
|
+
def folder_location_path folder:, location:
|
467
|
+
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
468
|
+
|
469
|
+
"folders/#{folder}/locations/#{location}"
|
470
|
+
end
|
471
|
+
|
472
|
+
##
|
473
|
+
# Create a fully-qualified Location resource string.
|
474
|
+
#
|
475
|
+
# The resource will be in the following format:
|
476
|
+
#
|
477
|
+
# `projects/{project}/locations/{location}`
|
478
|
+
#
|
479
|
+
# @param project [String]
|
480
|
+
# @param location [String]
|
481
|
+
#
|
482
|
+
# @return [::String]
|
483
|
+
def location_path project:, location:
|
484
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
485
|
+
|
486
|
+
"projects/#{project}/locations/#{location}"
|
487
|
+
end
|
488
|
+
|
308
489
|
##
|
309
490
|
# Create a fully-qualified MuteConfig resource string.
|
310
491
|
#
|
@@ -332,6 +513,33 @@ module Google
|
|
332
513
|
# @param project [String]
|
333
514
|
# @param mute_config [String]
|
334
515
|
#
|
516
|
+
# @overload mute_config_path(organization:, location:, mute_config:)
|
517
|
+
# The resource will be in the following format:
|
518
|
+
#
|
519
|
+
# `organizations/{organization}/locations/{location}/muteConfigs/{mute_config}`
|
520
|
+
#
|
521
|
+
# @param organization [String]
|
522
|
+
# @param location [String]
|
523
|
+
# @param mute_config [String]
|
524
|
+
#
|
525
|
+
# @overload mute_config_path(folder:, location:, mute_config:)
|
526
|
+
# The resource will be in the following format:
|
527
|
+
#
|
528
|
+
# `folders/{folder}/locations/{location}/muteConfigs/{mute_config}`
|
529
|
+
#
|
530
|
+
# @param folder [String]
|
531
|
+
# @param location [String]
|
532
|
+
# @param mute_config [String]
|
533
|
+
#
|
534
|
+
# @overload mute_config_path(project:, location:, mute_config:)
|
535
|
+
# The resource will be in the following format:
|
536
|
+
#
|
537
|
+
# `projects/{project}/locations/{location}/muteConfigs/{mute_config}`
|
538
|
+
#
|
539
|
+
# @param project [String]
|
540
|
+
# @param location [String]
|
541
|
+
# @param mute_config [String]
|
542
|
+
#
|
335
543
|
# @return [::String]
|
336
544
|
def mute_config_path **args
|
337
545
|
resources = {
|
@@ -349,6 +557,24 @@ module Google
|
|
349
557
|
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
350
558
|
|
351
559
|
"projects/#{project}/muteConfigs/#{mute_config}"
|
560
|
+
end),
|
561
|
+
"location:mute_config:organization" => (proc do |organization:, location:, mute_config:|
|
562
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
563
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
564
|
+
|
565
|
+
"organizations/#{organization}/locations/#{location}/muteConfigs/#{mute_config}"
|
566
|
+
end),
|
567
|
+
"folder:location:mute_config" => (proc do |folder:, location:, mute_config:|
|
568
|
+
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
569
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
570
|
+
|
571
|
+
"folders/#{folder}/locations/#{location}/muteConfigs/#{mute_config}"
|
572
|
+
end),
|
573
|
+
"location:mute_config:project" => (proc do |project:, location:, mute_config:|
|
574
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
575
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
576
|
+
|
577
|
+
"projects/#{project}/locations/#{location}/muteConfigs/#{mute_config}"
|
352
578
|
end)
|
353
579
|
}
|
354
580
|
|
@@ -423,6 +649,23 @@ module Google
|
|
423
649
|
"organizations/#{organization}"
|
424
650
|
end
|
425
651
|
|
652
|
+
##
|
653
|
+
# Create a fully-qualified OrganizationLocation resource string.
|
654
|
+
#
|
655
|
+
# The resource will be in the following format:
|
656
|
+
#
|
657
|
+
# `organizations/{organization}/locations/{location}`
|
658
|
+
#
|
659
|
+
# @param organization [String]
|
660
|
+
# @param location [String]
|
661
|
+
#
|
662
|
+
# @return [::String]
|
663
|
+
def organization_location_path organization:, location:
|
664
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
665
|
+
|
666
|
+
"organizations/#{organization}/locations/#{location}"
|
667
|
+
end
|
668
|
+
|
426
669
|
##
|
427
670
|
# Create a fully-qualified OrganizationSettings resource string.
|
428
671
|
#
|
@@ -437,6 +680,23 @@ module Google
|
|
437
680
|
"organizations/#{organization}/organizationSettings"
|
438
681
|
end
|
439
682
|
|
683
|
+
##
|
684
|
+
# Create a fully-qualified OrganizationSimulation resource string.
|
685
|
+
#
|
686
|
+
# The resource will be in the following format:
|
687
|
+
#
|
688
|
+
# `organizations/{organization}/simulations/{simulation}`
|
689
|
+
#
|
690
|
+
# @param organization [String]
|
691
|
+
# @param simulation [String]
|
692
|
+
#
|
693
|
+
# @return [::String]
|
694
|
+
def organization_simulation_path organization:, simulation:
|
695
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
696
|
+
|
697
|
+
"organizations/#{organization}/simulations/#{simulation}"
|
698
|
+
end
|
699
|
+
|
440
700
|
##
|
441
701
|
# Create a fully-qualified Policy resource string.
|
442
702
|
#
|
@@ -503,6 +763,23 @@ module Google
|
|
503
763
|
"projects/#{project}"
|
504
764
|
end
|
505
765
|
|
766
|
+
##
|
767
|
+
# Create a fully-qualified ResourceValueConfig resource string.
|
768
|
+
#
|
769
|
+
# The resource will be in the following format:
|
770
|
+
#
|
771
|
+
# `organizations/{organization}/resourceValueConfigs/{resource_value_config}`
|
772
|
+
#
|
773
|
+
# @param organization [String]
|
774
|
+
# @param resource_value_config [String]
|
775
|
+
#
|
776
|
+
# @return [::String]
|
777
|
+
def resource_value_config_path organization:, resource_value_config:
|
778
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
779
|
+
|
780
|
+
"organizations/#{organization}/resourceValueConfigs/#{resource_value_config}"
|
781
|
+
end
|
782
|
+
|
506
783
|
##
|
507
784
|
# Create a fully-qualified SecurityHealthAnalyticsCustomModule resource string.
|
508
785
|
#
|
@@ -695,6 +972,23 @@ module Google
|
|
695
972
|
resource.call(**args)
|
696
973
|
end
|
697
974
|
|
975
|
+
##
|
976
|
+
# Create a fully-qualified Simulation resource string.
|
977
|
+
#
|
978
|
+
# The resource will be in the following format:
|
979
|
+
#
|
980
|
+
# `organizations/{organization}/simulations/{simulation}`
|
981
|
+
#
|
982
|
+
# @param organization [String]
|
983
|
+
# @param simulation [String]
|
984
|
+
#
|
985
|
+
# @return [::String]
|
986
|
+
def simulation_path organization:, simulation:
|
987
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
988
|
+
|
989
|
+
"organizations/#{organization}/simulations/#{simulation}"
|
990
|
+
end
|
991
|
+
|
698
992
|
##
|
699
993
|
# Create a fully-qualified Source resource string.
|
700
994
|
#
|
@@ -805,6 +1099,25 @@ module Google
|
|
805
1099
|
"projects/#{project}/topics/#{topic}"
|
806
1100
|
end
|
807
1101
|
|
1102
|
+
##
|
1103
|
+
# Create a fully-qualified ValuedResource resource string.
|
1104
|
+
#
|
1105
|
+
# The resource will be in the following format:
|
1106
|
+
#
|
1107
|
+
# `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`
|
1108
|
+
#
|
1109
|
+
# @param organization [String]
|
1110
|
+
# @param simulation [String]
|
1111
|
+
# @param valued_resource [String]
|
1112
|
+
#
|
1113
|
+
# @return [::String]
|
1114
|
+
def valued_resource_path organization:, simulation:, valued_resource:
|
1115
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
1116
|
+
raise ::ArgumentError, "simulation cannot contain /" if simulation.to_s.include? "/"
|
1117
|
+
|
1118
|
+
"organizations/#{organization}/simulations/#{simulation}/valuedResources/#{valued_resource}"
|
1119
|
+
end
|
1120
|
+
|
808
1121
|
extend self
|
809
1122
|
end
|
810
1123
|
end
|