google-cloud-security_center-v1 0.26.0 → 0.27.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.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/security_center/v1/security_center/client.rb +856 -15
  4. data/lib/google/cloud/security_center/v1/security_center/operations.rb +2 -2
  5. data/lib/google/cloud/security_center/v1/security_center/paths.rb +147 -0
  6. data/lib/google/cloud/security_center/v1/security_center/rest/client.rb +647 -2
  7. data/lib/google/cloud/security_center/v1/security_center/rest/operations.rb +2 -2
  8. data/lib/google/cloud/security_center/v1/security_center/rest/service_stub.rb +590 -0
  9. data/lib/google/cloud/security_center/v1/version.rb +1 -1
  10. data/lib/google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module_pb.rb +35 -0
  11. data/lib/google/cloud/securitycenter/v1/finding_pb.rb +1 -0
  12. data/lib/google/cloud/securitycenter/v1/security_health_analytics_custom_config_pb.rb +50 -0
  13. data/lib/google/cloud/securitycenter/v1/security_health_analytics_custom_module_pb.rb +40 -0
  14. data/lib/google/cloud/securitycenter/v1/securitycenter_service_pb.rb +58 -1
  15. data/lib/google/cloud/securitycenter/v1/securitycenter_service_services_pb.rb +30 -0
  16. data/proto_docs/google/api/client.rb +57 -3
  17. data/proto_docs/google/cloud/securitycenter/v1/bigquery_export.rb +5 -5
  18. data/proto_docs/google/cloud/securitycenter/v1/contact_details.rb +2 -2
  19. data/proto_docs/google/cloud/securitycenter/v1/database.rb +1 -1
  20. data/proto_docs/google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module.rb +73 -0
  21. data/proto_docs/google/cloud/securitycenter/v1/exfiltration.rb +1 -1
  22. data/proto_docs/google/cloud/securitycenter/v1/finding.rb +11 -6
  23. data/proto_docs/google/cloud/securitycenter/v1/indicator.rb +4 -3
  24. data/proto_docs/google/cloud/securitycenter/v1/kernel_rootkit.rb +8 -8
  25. data/proto_docs/google/cloud/securitycenter/v1/kubernetes.rb +3 -3
  26. data/proto_docs/google/cloud/securitycenter/v1/mute_config.rb +5 -5
  27. data/proto_docs/google/cloud/securitycenter/v1/resource.rb +3 -3
  28. data/proto_docs/google/cloud/securitycenter/v1/security_health_analytics_custom_config.rb +112 -0
  29. data/proto_docs/google/cloud/securitycenter/v1/security_health_analytics_custom_module.rb +90 -0
  30. data/proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb +169 -0
  31. data/proto_docs/google/iam/v1/policy.rb +8 -4
  32. metadata +8 -2
@@ -620,9 +620,9 @@ module Google
620
620
  # * (`String`) The path to a service account key file in JSON format
621
621
  # * (`Hash`) A service account key as a Hash
622
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
623
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
624
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
625
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
626
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
627
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
628
628
  # * (`nil`) indicating no credentials
@@ -76,6 +76,58 @@ module Google
76
76
  resource.call(**args)
77
77
  end
78
78
 
79
+ ##
80
+ # Create a fully-qualified EffectiveSecurityHealthAnalyticsCustomModule resource string.
81
+ #
82
+ # @overload effective_security_health_analytics_custom_module_path(organization:, effective_custom_module:)
83
+ # The resource will be in the following format:
84
+ #
85
+ # `organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}`
86
+ #
87
+ # @param organization [String]
88
+ # @param effective_custom_module [String]
89
+ #
90
+ # @overload effective_security_health_analytics_custom_module_path(folder:, effective_custom_module:)
91
+ # The resource will be in the following format:
92
+ #
93
+ # `folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}`
94
+ #
95
+ # @param folder [String]
96
+ # @param effective_custom_module [String]
97
+ #
98
+ # @overload effective_security_health_analytics_custom_module_path(project:, effective_custom_module:)
99
+ # The resource will be in the following format:
100
+ #
101
+ # `projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}`
102
+ #
103
+ # @param project [String]
104
+ # @param effective_custom_module [String]
105
+ #
106
+ # @return [::String]
107
+ def effective_security_health_analytics_custom_module_path **args
108
+ resources = {
109
+ "effective_custom_module:organization" => (proc do |organization:, effective_custom_module:|
110
+ raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
111
+
112
+ "organizations/#{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/#{effective_custom_module}"
113
+ end),
114
+ "effective_custom_module:folder" => (proc do |folder:, effective_custom_module:|
115
+ raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
116
+
117
+ "folders/#{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/#{effective_custom_module}"
118
+ end),
119
+ "effective_custom_module:project" => (proc do |project:, effective_custom_module:|
120
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
121
+
122
+ "projects/#{project}/securityHealthAnalyticsSettings/effectiveCustomModules/#{effective_custom_module}"
123
+ end)
124
+ }
125
+
126
+ resource = resources[args.keys.sort.join(":")]
127
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
128
+ resource.call(**args)
129
+ end
130
+
79
131
  ##
80
132
  # Create a fully-qualified ExternalSystem resource string.
81
133
  #
@@ -358,6 +410,101 @@ module Google
358
410
  "projects/#{project}"
359
411
  end
360
412
 
413
+ ##
414
+ # Create a fully-qualified SecurityHealthAnalyticsCustomModule resource string.
415
+ #
416
+ # @overload security_health_analytics_custom_module_path(organization:, custom_module:)
417
+ # The resource will be in the following format:
418
+ #
419
+ # `organizations/{organization}/securityHealthAnalyticsSettings/customModules/{custom_module}`
420
+ #
421
+ # @param organization [String]
422
+ # @param custom_module [String]
423
+ #
424
+ # @overload security_health_analytics_custom_module_path(folder:, custom_module:)
425
+ # The resource will be in the following format:
426
+ #
427
+ # `folders/{folder}/securityHealthAnalyticsSettings/customModules/{custom_module}`
428
+ #
429
+ # @param folder [String]
430
+ # @param custom_module [String]
431
+ #
432
+ # @overload security_health_analytics_custom_module_path(project:, custom_module:)
433
+ # The resource will be in the following format:
434
+ #
435
+ # `projects/{project}/securityHealthAnalyticsSettings/customModules/{custom_module}`
436
+ #
437
+ # @param project [String]
438
+ # @param custom_module [String]
439
+ #
440
+ # @return [::String]
441
+ def security_health_analytics_custom_module_path **args
442
+ resources = {
443
+ "custom_module:organization" => (proc do |organization:, custom_module:|
444
+ raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
445
+
446
+ "organizations/#{organization}/securityHealthAnalyticsSettings/customModules/#{custom_module}"
447
+ end),
448
+ "custom_module:folder" => (proc do |folder:, custom_module:|
449
+ raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
450
+
451
+ "folders/#{folder}/securityHealthAnalyticsSettings/customModules/#{custom_module}"
452
+ end),
453
+ "custom_module:project" => (proc do |project:, custom_module:|
454
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
455
+
456
+ "projects/#{project}/securityHealthAnalyticsSettings/customModules/#{custom_module}"
457
+ end)
458
+ }
459
+
460
+ resource = resources[args.keys.sort.join(":")]
461
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
462
+ resource.call(**args)
463
+ end
464
+
465
+ ##
466
+ # Create a fully-qualified SecurityHealthAnalyticsSettings resource string.
467
+ #
468
+ # @overload security_health_analytics_settings_path(organization:)
469
+ # The resource will be in the following format:
470
+ #
471
+ # `organizations/{organization}/securityHealthAnalyticsSettings`
472
+ #
473
+ # @param organization [String]
474
+ #
475
+ # @overload security_health_analytics_settings_path(folder:)
476
+ # The resource will be in the following format:
477
+ #
478
+ # `folders/{folder}/securityHealthAnalyticsSettings`
479
+ #
480
+ # @param folder [String]
481
+ #
482
+ # @overload security_health_analytics_settings_path(project:)
483
+ # The resource will be in the following format:
484
+ #
485
+ # `projects/{project}/securityHealthAnalyticsSettings`
486
+ #
487
+ # @param project [String]
488
+ #
489
+ # @return [::String]
490
+ def security_health_analytics_settings_path **args
491
+ resources = {
492
+ "organization" => (proc do |organization:|
493
+ "organizations/#{organization}/securityHealthAnalyticsSettings"
494
+ end),
495
+ "folder" => (proc do |folder:|
496
+ "folders/#{folder}/securityHealthAnalyticsSettings"
497
+ end),
498
+ "project" => (proc do |project:|
499
+ "projects/#{project}/securityHealthAnalyticsSettings"
500
+ end)
501
+ }
502
+
503
+ resource = resources[args.keys.sort.join(":")]
504
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
505
+ resource.call(**args)
506
+ end
507
+
361
508
  ##
362
509
  # Create a fully-qualified SecurityMarks resource string.
363
510
  #