google-cloud-security_center-v1 0.25.1 → 0.27.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/google/cloud/security_center/v1/rest.rb +37 -0
- data/lib/google/cloud/security_center/v1/security_center/client.rb +907 -82
- data/lib/google/cloud/security_center/v1/security_center/operations.rb +14 -16
- data/lib/google/cloud/security_center/v1/security_center/paths.rb +147 -0
- data/lib/google/cloud/security_center/v1/security_center/rest/client.rb +4259 -0
- data/lib/google/cloud/security_center/v1/security_center/rest/operations.rb +792 -0
- data/lib/google/cloud/security_center/v1/security_center/rest/service_stub.rb +3200 -0
- data/lib/google/cloud/security_center/v1/security_center/rest.rb +53 -0
- data/lib/google/cloud/security_center/v1/security_center.rb +6 -0
- data/lib/google/cloud/security_center/v1/version.rb +1 -1
- data/lib/google/cloud/security_center/v1.rb +5 -0
- data/lib/google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module_pb.rb +35 -0
- data/lib/google/cloud/securitycenter/v1/finding_pb.rb +1 -0
- data/lib/google/cloud/securitycenter/v1/security_health_analytics_custom_config_pb.rb +50 -0
- data/lib/google/cloud/securitycenter/v1/security_health_analytics_custom_module_pb.rb +40 -0
- data/lib/google/cloud/securitycenter/v1/securitycenter_service_pb.rb +58 -1
- data/lib/google/cloud/securitycenter/v1/securitycenter_service_services_pb.rb +30 -0
- data/proto_docs/google/api/client.rb +57 -3
- data/proto_docs/google/cloud/securitycenter/v1/bigquery_export.rb +5 -5
- data/proto_docs/google/cloud/securitycenter/v1/contact_details.rb +2 -2
- data/proto_docs/google/cloud/securitycenter/v1/database.rb +1 -1
- data/proto_docs/google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module.rb +73 -0
- data/proto_docs/google/cloud/securitycenter/v1/exfiltration.rb +1 -1
- data/proto_docs/google/cloud/securitycenter/v1/finding.rb +11 -6
- data/proto_docs/google/cloud/securitycenter/v1/indicator.rb +4 -3
- data/proto_docs/google/cloud/securitycenter/v1/kernel_rootkit.rb +8 -8
- data/proto_docs/google/cloud/securitycenter/v1/kubernetes.rb +3 -3
- data/proto_docs/google/cloud/securitycenter/v1/mute_config.rb +5 -5
- data/proto_docs/google/cloud/securitycenter/v1/resource.rb +3 -3
- data/proto_docs/google/cloud/securitycenter/v1/security_health_analytics_custom_config.rb +112 -0
- data/proto_docs/google/cloud/securitycenter/v1/security_health_analytics_custom_module.rb +90 -0
- data/proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb +169 -0
- data/proto_docs/google/iam/v1/policy.rb +8 -4
- metadata +19 -7
@@ -158,13 +158,11 @@ module Google
|
|
158
158
|
# # Call the list_operations method.
|
159
159
|
# result = client.list_operations request
|
160
160
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|
@@ -622,9 +620,9 @@ module Google
|
|
622
620
|
# * (`String`) The path to a service account key file in JSON format
|
623
621
|
# * (`Hash`) A service account key as a Hash
|
624
622
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
625
|
-
# (see the [googleauth docs](https://
|
623
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
626
624
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
627
|
-
# (see the [signet docs](https://
|
625
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
628
626
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
629
627
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
630
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
|
#
|