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
@@ -66,6 +66,8 @@ module Google
66
66
  end
67
67
  default_config = Client::Configuration.new parent_config
68
68
 
69
+ default_config.rpcs.create_security_health_analytics_custom_module.timeout = 60.0
70
+
69
71
  default_config.rpcs.create_source.timeout = 60.0
70
72
 
71
73
  default_config.rpcs.create_finding.timeout = 60.0
@@ -74,6 +76,8 @@ module Google
74
76
 
75
77
  default_config.rpcs.delete_notification_config.timeout = 60.0
76
78
 
79
+ default_config.rpcs.delete_security_health_analytics_custom_module.timeout = 60.0
80
+
77
81
  default_config.rpcs.get_iam_policy.timeout = 60.0
78
82
  default_config.rpcs.get_iam_policy.retry_policy = {
79
83
  initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
@@ -89,6 +93,16 @@ module Google
89
93
  initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
90
94
  }
91
95
 
96
+ default_config.rpcs.get_effective_security_health_analytics_custom_module.timeout = 60.0
97
+ default_config.rpcs.get_effective_security_health_analytics_custom_module.retry_policy = {
98
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
99
+ }
100
+
101
+ default_config.rpcs.get_security_health_analytics_custom_module.timeout = 60.0
102
+ default_config.rpcs.get_security_health_analytics_custom_module.retry_policy = {
103
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
104
+ }
105
+
92
106
  default_config.rpcs.get_source.timeout = 60.0
93
107
  default_config.rpcs.get_source.retry_policy = {
94
108
  initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
@@ -109,6 +123,11 @@ module Google
109
123
  initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
110
124
  }
111
125
 
126
+ default_config.rpcs.list_descendant_security_health_analytics_custom_modules.timeout = 60.0
127
+ default_config.rpcs.list_descendant_security_health_analytics_custom_modules.retry_policy = {
128
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
129
+ }
130
+
112
131
  default_config.rpcs.list_findings.timeout = 480.0
113
132
  default_config.rpcs.list_findings.retry_policy = {
114
133
  initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
@@ -119,6 +138,16 @@ module Google
119
138
  initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
120
139
  }
121
140
 
141
+ default_config.rpcs.list_effective_security_health_analytics_custom_modules.timeout = 60.0
142
+ default_config.rpcs.list_effective_security_health_analytics_custom_modules.retry_policy = {
143
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
144
+ }
145
+
146
+ default_config.rpcs.list_security_health_analytics_custom_modules.timeout = 60.0
147
+ default_config.rpcs.list_security_health_analytics_custom_modules.retry_policy = {
148
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
149
+ }
150
+
122
151
  default_config.rpcs.list_sources.timeout = 60.0
123
152
  default_config.rpcs.list_sources.retry_policy = {
124
153
  initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
@@ -141,6 +170,8 @@ module Google
141
170
 
142
171
  default_config.rpcs.update_organization_settings.timeout = 60.0
143
172
 
173
+ default_config.rpcs.update_security_health_analytics_custom_module.timeout = 60.0
174
+
144
175
  default_config.rpcs.update_source.timeout = 60.0
145
176
 
146
177
  default_config.rpcs.update_security_marks.timeout = 480.0
@@ -318,6 +349,78 @@ module Google
318
349
  raise ::Google::Cloud::Error.from_error(e)
319
350
  end
320
351
 
352
+ ##
353
+ # Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the
354
+ # given CRM parent, and also creates inherited
355
+ # SecurityHealthAnalyticsCustomModules for all CRM descendants of the given
356
+ # parent. These modules are enabled by default.
357
+ #
358
+ # @overload create_security_health_analytics_custom_module(request, options = nil)
359
+ # Pass arguments to `create_security_health_analytics_custom_module` via a request object, either of type
360
+ # {::Google::Cloud::SecurityCenter::V1::CreateSecurityHealthAnalyticsCustomModuleRequest} or an equivalent Hash.
361
+ #
362
+ # @param request [::Google::Cloud::SecurityCenter::V1::CreateSecurityHealthAnalyticsCustomModuleRequest, ::Hash]
363
+ # A request object representing the call parameters. Required. To specify no
364
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
365
+ # @param options [::Gapic::CallOptions, ::Hash]
366
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
367
+ #
368
+ # @overload create_security_health_analytics_custom_module(parent: nil, security_health_analytics_custom_module: nil)
369
+ # Pass arguments to `create_security_health_analytics_custom_module` via keyword arguments. Note that at
370
+ # least one keyword argument is required. To specify no parameters, or to keep all
371
+ # the default parameter values, pass an empty Hash as a request object (see above).
372
+ #
373
+ # @param parent [::String]
374
+ # Required. Resource name of the new custom module's parent. Its format is
375
+ # "organizations/\\{organization}/securityHealthAnalyticsSettings",
376
+ # "folders/\\{folder}/securityHealthAnalyticsSettings", or
377
+ # "projects/\\{project}/securityHealthAnalyticsSettings"
378
+ # @param security_health_analytics_custom_module [::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule, ::Hash]
379
+ # Required. SecurityHealthAnalytics custom module to create. The provided
380
+ # name is ignored and reset with provided parent information and
381
+ # server-generated ID.
382
+ # @yield [result, operation] Access the result along with the TransportOperation object
383
+ # @yieldparam result [::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule]
384
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
385
+ #
386
+ # @return [::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule]
387
+ #
388
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
389
+ def create_security_health_analytics_custom_module request, options = nil
390
+ raise ::ArgumentError, "request must be provided" if request.nil?
391
+
392
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::CreateSecurityHealthAnalyticsCustomModuleRequest
393
+
394
+ # Converts hash and nil to an options object
395
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
396
+
397
+ # Customize the options with defaults
398
+ call_metadata = @config.rpcs.create_security_health_analytics_custom_module.metadata.to_h
399
+
400
+ # Set x-goog-api-client and x-goog-user-project headers
401
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
402
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
403
+ gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION,
404
+ transports_version_send: [:rest]
405
+
406
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
407
+
408
+ options.apply_defaults timeout: @config.rpcs.create_security_health_analytics_custom_module.timeout,
409
+ metadata: call_metadata,
410
+ retry_policy: @config.rpcs.create_security_health_analytics_custom_module.retry_policy
411
+
412
+ options.apply_defaults timeout: @config.timeout,
413
+ metadata: @config.metadata,
414
+ retry_policy: @config.retry_policy
415
+
416
+ @security_center_stub.create_security_health_analytics_custom_module request, options do |result, operation|
417
+ yield result, operation if block_given?
418
+ return result
419
+ end
420
+ rescue ::Gapic::Rest::Error => e
421
+ raise ::Google::Cloud::Error.from_error(e)
422
+ end
423
+
321
424
  ##
322
425
  # Creates a source.
323
426
  #
@@ -729,6 +832,74 @@ module Google
729
832
  raise ::Google::Cloud::Error.from_error(e)
730
833
  end
731
834
 
835
+ ##
836
+ # Deletes the specified SecurityHealthAnalyticsCustomModule and all of its
837
+ # descendants in the CRM hierarchy. This method is only supported for
838
+ # resident custom modules.
839
+ #
840
+ # @overload delete_security_health_analytics_custom_module(request, options = nil)
841
+ # Pass arguments to `delete_security_health_analytics_custom_module` via a request object, either of type
842
+ # {::Google::Cloud::SecurityCenter::V1::DeleteSecurityHealthAnalyticsCustomModuleRequest} or an equivalent Hash.
843
+ #
844
+ # @param request [::Google::Cloud::SecurityCenter::V1::DeleteSecurityHealthAnalyticsCustomModuleRequest, ::Hash]
845
+ # A request object representing the call parameters. Required. To specify no
846
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
847
+ # @param options [::Gapic::CallOptions, ::Hash]
848
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
849
+ #
850
+ # @overload delete_security_health_analytics_custom_module(name: nil)
851
+ # Pass arguments to `delete_security_health_analytics_custom_module` via keyword arguments. Note that at
852
+ # least one keyword argument is required. To specify no parameters, or to keep all
853
+ # the default parameter values, pass an empty Hash as a request object (see above).
854
+ #
855
+ # @param name [::String]
856
+ # Required. Name of the custom module to delete. Its format is
857
+ # "organizations/\\{organization}/securityHealthAnalyticsSettings/customModules/\\{customModule}",
858
+ # "folders/\\{folder}/securityHealthAnalyticsSettings/customModules/\\{customModule}",
859
+ # or
860
+ # "projects/\\{project}/securityHealthAnalyticsSettings/customModules/\\{customModule}"
861
+ # @yield [result, operation] Access the result along with the TransportOperation object
862
+ # @yieldparam result [::Google::Protobuf::Empty]
863
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
864
+ #
865
+ # @return [::Google::Protobuf::Empty]
866
+ #
867
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
868
+ def delete_security_health_analytics_custom_module request, options = nil
869
+ raise ::ArgumentError, "request must be provided" if request.nil?
870
+
871
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::DeleteSecurityHealthAnalyticsCustomModuleRequest
872
+
873
+ # Converts hash and nil to an options object
874
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
875
+
876
+ # Customize the options with defaults
877
+ call_metadata = @config.rpcs.delete_security_health_analytics_custom_module.metadata.to_h
878
+
879
+ # Set x-goog-api-client and x-goog-user-project headers
880
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
881
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
882
+ gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION,
883
+ transports_version_send: [:rest]
884
+
885
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
886
+
887
+ options.apply_defaults timeout: @config.rpcs.delete_security_health_analytics_custom_module.timeout,
888
+ metadata: call_metadata,
889
+ retry_policy: @config.rpcs.delete_security_health_analytics_custom_module.retry_policy
890
+
891
+ options.apply_defaults timeout: @config.timeout,
892
+ metadata: @config.metadata,
893
+ retry_policy: @config.retry_policy
894
+
895
+ @security_center_stub.delete_security_health_analytics_custom_module request, options do |result, operation|
896
+ yield result, operation if block_given?
897
+ return result
898
+ end
899
+ rescue ::Gapic::Rest::Error => e
900
+ raise ::Google::Cloud::Error.from_error(e)
901
+ end
902
+
732
903
  ##
733
904
  # Gets a BigQuery export.
734
905
  #
@@ -1053,6 +1224,138 @@ module Google
1053
1224
  raise ::Google::Cloud::Error.from_error(e)
1054
1225
  end
1055
1226
 
1227
+ ##
1228
+ # Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.
1229
+ #
1230
+ # @overload get_effective_security_health_analytics_custom_module(request, options = nil)
1231
+ # Pass arguments to `get_effective_security_health_analytics_custom_module` via a request object, either of type
1232
+ # {::Google::Cloud::SecurityCenter::V1::GetEffectiveSecurityHealthAnalyticsCustomModuleRequest} or an equivalent Hash.
1233
+ #
1234
+ # @param request [::Google::Cloud::SecurityCenter::V1::GetEffectiveSecurityHealthAnalyticsCustomModuleRequest, ::Hash]
1235
+ # A request object representing the call parameters. Required. To specify no
1236
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1237
+ # @param options [::Gapic::CallOptions, ::Hash]
1238
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1239
+ #
1240
+ # @overload get_effective_security_health_analytics_custom_module(name: nil)
1241
+ # Pass arguments to `get_effective_security_health_analytics_custom_module` via keyword arguments. Note that at
1242
+ # least one keyword argument is required. To specify no parameters, or to keep all
1243
+ # the default parameter values, pass an empty Hash as a request object (see above).
1244
+ #
1245
+ # @param name [::String]
1246
+ # Required. Name of the effective custom module to get. Its format is
1247
+ # "organizations/\\{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/\\{customModule}",
1248
+ # "folders/\\{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/\\{customModule}",
1249
+ # or
1250
+ # "projects/\\{project}/securityHealthAnalyticsSettings/effectiveCustomModules/\\{customModule}"
1251
+ # @yield [result, operation] Access the result along with the TransportOperation object
1252
+ # @yieldparam result [::Google::Cloud::SecurityCenter::V1::EffectiveSecurityHealthAnalyticsCustomModule]
1253
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1254
+ #
1255
+ # @return [::Google::Cloud::SecurityCenter::V1::EffectiveSecurityHealthAnalyticsCustomModule]
1256
+ #
1257
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1258
+ def get_effective_security_health_analytics_custom_module request, options = nil
1259
+ raise ::ArgumentError, "request must be provided" if request.nil?
1260
+
1261
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::GetEffectiveSecurityHealthAnalyticsCustomModuleRequest
1262
+
1263
+ # Converts hash and nil to an options object
1264
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1265
+
1266
+ # Customize the options with defaults
1267
+ call_metadata = @config.rpcs.get_effective_security_health_analytics_custom_module.metadata.to_h
1268
+
1269
+ # Set x-goog-api-client and x-goog-user-project headers
1270
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1271
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1272
+ gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION,
1273
+ transports_version_send: [:rest]
1274
+
1275
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1276
+
1277
+ options.apply_defaults timeout: @config.rpcs.get_effective_security_health_analytics_custom_module.timeout,
1278
+ metadata: call_metadata,
1279
+ retry_policy: @config.rpcs.get_effective_security_health_analytics_custom_module.retry_policy
1280
+
1281
+ options.apply_defaults timeout: @config.timeout,
1282
+ metadata: @config.metadata,
1283
+ retry_policy: @config.retry_policy
1284
+
1285
+ @security_center_stub.get_effective_security_health_analytics_custom_module request, options do |result, operation|
1286
+ yield result, operation if block_given?
1287
+ return result
1288
+ end
1289
+ rescue ::Gapic::Rest::Error => e
1290
+ raise ::Google::Cloud::Error.from_error(e)
1291
+ end
1292
+
1293
+ ##
1294
+ # Retrieves a SecurityHealthAnalyticsCustomModule.
1295
+ #
1296
+ # @overload get_security_health_analytics_custom_module(request, options = nil)
1297
+ # Pass arguments to `get_security_health_analytics_custom_module` via a request object, either of type
1298
+ # {::Google::Cloud::SecurityCenter::V1::GetSecurityHealthAnalyticsCustomModuleRequest} or an equivalent Hash.
1299
+ #
1300
+ # @param request [::Google::Cloud::SecurityCenter::V1::GetSecurityHealthAnalyticsCustomModuleRequest, ::Hash]
1301
+ # A request object representing the call parameters. Required. To specify no
1302
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1303
+ # @param options [::Gapic::CallOptions, ::Hash]
1304
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1305
+ #
1306
+ # @overload get_security_health_analytics_custom_module(name: nil)
1307
+ # Pass arguments to `get_security_health_analytics_custom_module` via keyword arguments. Note that at
1308
+ # least one keyword argument is required. To specify no parameters, or to keep all
1309
+ # the default parameter values, pass an empty Hash as a request object (see above).
1310
+ #
1311
+ # @param name [::String]
1312
+ # Required. Name of the custom module to get. Its format is
1313
+ # "organizations/\\{organization}/securityHealthAnalyticsSettings/customModules/\\{customModule}",
1314
+ # "folders/\\{folder}/securityHealthAnalyticsSettings/customModules/\\{customModule}",
1315
+ # or
1316
+ # "projects/\\{project}/securityHealthAnalyticsSettings/customModules/\\{customModule}"
1317
+ # @yield [result, operation] Access the result along with the TransportOperation object
1318
+ # @yieldparam result [::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule]
1319
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1320
+ #
1321
+ # @return [::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule]
1322
+ #
1323
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1324
+ def get_security_health_analytics_custom_module request, options = nil
1325
+ raise ::ArgumentError, "request must be provided" if request.nil?
1326
+
1327
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::GetSecurityHealthAnalyticsCustomModuleRequest
1328
+
1329
+ # Converts hash and nil to an options object
1330
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1331
+
1332
+ # Customize the options with defaults
1333
+ call_metadata = @config.rpcs.get_security_health_analytics_custom_module.metadata.to_h
1334
+
1335
+ # Set x-goog-api-client and x-goog-user-project headers
1336
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1337
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1338
+ gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION,
1339
+ transports_version_send: [:rest]
1340
+
1341
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1342
+
1343
+ options.apply_defaults timeout: @config.rpcs.get_security_health_analytics_custom_module.timeout,
1344
+ metadata: call_metadata,
1345
+ retry_policy: @config.rpcs.get_security_health_analytics_custom_module.retry_policy
1346
+
1347
+ options.apply_defaults timeout: @config.timeout,
1348
+ metadata: @config.metadata,
1349
+ retry_policy: @config.retry_policy
1350
+
1351
+ @security_center_stub.get_security_health_analytics_custom_module request, options do |result, operation|
1352
+ yield result, operation if block_given?
1353
+ return result
1354
+ end
1355
+ rescue ::Gapic::Rest::Error => e
1356
+ raise ::Google::Cloud::Error.from_error(e)
1357
+ end
1358
+
1056
1359
  ##
1057
1360
  # Gets a source.
1058
1361
  #
@@ -1693,6 +1996,78 @@ module Google
1693
1996
  raise ::Google::Cloud::Error.from_error(e)
1694
1997
  end
1695
1998
 
1999
+ ##
2000
+ # Returns a list of all resident SecurityHealthAnalyticsCustomModules under
2001
+ # the given CRM parent and all of the parent’s CRM descendants.
2002
+ #
2003
+ # @overload list_descendant_security_health_analytics_custom_modules(request, options = nil)
2004
+ # Pass arguments to `list_descendant_security_health_analytics_custom_modules` via a request object, either of type
2005
+ # {::Google::Cloud::SecurityCenter::V1::ListDescendantSecurityHealthAnalyticsCustomModulesRequest} or an equivalent Hash.
2006
+ #
2007
+ # @param request [::Google::Cloud::SecurityCenter::V1::ListDescendantSecurityHealthAnalyticsCustomModulesRequest, ::Hash]
2008
+ # A request object representing the call parameters. Required. To specify no
2009
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2010
+ # @param options [::Gapic::CallOptions, ::Hash]
2011
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2012
+ #
2013
+ # @overload list_descendant_security_health_analytics_custom_modules(parent: nil, page_size: nil, page_token: nil)
2014
+ # Pass arguments to `list_descendant_security_health_analytics_custom_modules` via keyword arguments. Note that at
2015
+ # least one keyword argument is required. To specify no parameters, or to keep all
2016
+ # the default parameter values, pass an empty Hash as a request object (see above).
2017
+ #
2018
+ # @param parent [::String]
2019
+ # Required. Name of parent to list descendant custom modules. Its format is
2020
+ # "organizations/\\{organization}/securityHealthAnalyticsSettings",
2021
+ # "folders/\\{folder}/securityHealthAnalyticsSettings", or
2022
+ # "projects/\\{project}/securityHealthAnalyticsSettings"
2023
+ # @param page_size [::Integer]
2024
+ # The maximum number of results to return in a single response. Default is
2025
+ # 10, minimum is 1, maximum is 1000.
2026
+ # @param page_token [::String]
2027
+ # The value returned by the last call indicating a continuation
2028
+ # @yield [result, operation] Access the result along with the TransportOperation object
2029
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule>]
2030
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2031
+ #
2032
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule>]
2033
+ #
2034
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2035
+ def list_descendant_security_health_analytics_custom_modules request, options = nil
2036
+ raise ::ArgumentError, "request must be provided" if request.nil?
2037
+
2038
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::ListDescendantSecurityHealthAnalyticsCustomModulesRequest
2039
+
2040
+ # Converts hash and nil to an options object
2041
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2042
+
2043
+ # Customize the options with defaults
2044
+ call_metadata = @config.rpcs.list_descendant_security_health_analytics_custom_modules.metadata.to_h
2045
+
2046
+ # Set x-goog-api-client and x-goog-user-project headers
2047
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2048
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2049
+ gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION,
2050
+ transports_version_send: [:rest]
2051
+
2052
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2053
+
2054
+ options.apply_defaults timeout: @config.rpcs.list_descendant_security_health_analytics_custom_modules.timeout,
2055
+ metadata: call_metadata,
2056
+ retry_policy: @config.rpcs.list_descendant_security_health_analytics_custom_modules.retry_policy
2057
+
2058
+ options.apply_defaults timeout: @config.timeout,
2059
+ metadata: @config.metadata,
2060
+ retry_policy: @config.retry_policy
2061
+
2062
+ @security_center_stub.list_descendant_security_health_analytics_custom_modules request, options do |result, operation|
2063
+ result = ::Gapic::Rest::PagedEnumerable.new @security_center_stub, :list_descendant_security_health_analytics_custom_modules, "security_health_analytics_custom_modules", request, result, options
2064
+ yield result, operation if block_given?
2065
+ return result
2066
+ end
2067
+ rescue ::Gapic::Rest::Error => e
2068
+ raise ::Google::Cloud::Error.from_error(e)
2069
+ end
2070
+
1696
2071
  ##
1697
2072
  # Lists an organization or source's findings.
1698
2073
  #
@@ -2040,6 +2415,152 @@ module Google
2040
2415
  raise ::Google::Cloud::Error.from_error(e)
2041
2416
  end
2042
2417
 
2418
+ ##
2419
+ # Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the
2420
+ # given parent. This includes resident modules defined at the scope of the
2421
+ # parent, and inherited modules, inherited from CRM ancestors.
2422
+ #
2423
+ # @overload list_effective_security_health_analytics_custom_modules(request, options = nil)
2424
+ # Pass arguments to `list_effective_security_health_analytics_custom_modules` via a request object, either of type
2425
+ # {::Google::Cloud::SecurityCenter::V1::ListEffectiveSecurityHealthAnalyticsCustomModulesRequest} or an equivalent Hash.
2426
+ #
2427
+ # @param request [::Google::Cloud::SecurityCenter::V1::ListEffectiveSecurityHealthAnalyticsCustomModulesRequest, ::Hash]
2428
+ # A request object representing the call parameters. Required. To specify no
2429
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2430
+ # @param options [::Gapic::CallOptions, ::Hash]
2431
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2432
+ #
2433
+ # @overload list_effective_security_health_analytics_custom_modules(parent: nil, page_size: nil, page_token: nil)
2434
+ # Pass arguments to `list_effective_security_health_analytics_custom_modules` via keyword arguments. Note that at
2435
+ # least one keyword argument is required. To specify no parameters, or to keep all
2436
+ # the default parameter values, pass an empty Hash as a request object (see above).
2437
+ #
2438
+ # @param parent [::String]
2439
+ # Required. Name of parent to list effective custom modules. Its format is
2440
+ # "organizations/\\{organization}/securityHealthAnalyticsSettings",
2441
+ # "folders/\\{folder}/securityHealthAnalyticsSettings", or
2442
+ # "projects/\\{project}/securityHealthAnalyticsSettings"
2443
+ # @param page_size [::Integer]
2444
+ # The maximum number of results to return in a single response. Default is
2445
+ # 10, minimum is 1, maximum is 1000.
2446
+ # @param page_token [::String]
2447
+ # The value returned by the last call indicating a continuation
2448
+ # @yield [result, operation] Access the result along with the TransportOperation object
2449
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::EffectiveSecurityHealthAnalyticsCustomModule>]
2450
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2451
+ #
2452
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::EffectiveSecurityHealthAnalyticsCustomModule>]
2453
+ #
2454
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2455
+ def list_effective_security_health_analytics_custom_modules request, options = nil
2456
+ raise ::ArgumentError, "request must be provided" if request.nil?
2457
+
2458
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::ListEffectiveSecurityHealthAnalyticsCustomModulesRequest
2459
+
2460
+ # Converts hash and nil to an options object
2461
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2462
+
2463
+ # Customize the options with defaults
2464
+ call_metadata = @config.rpcs.list_effective_security_health_analytics_custom_modules.metadata.to_h
2465
+
2466
+ # Set x-goog-api-client and x-goog-user-project headers
2467
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2468
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2469
+ gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION,
2470
+ transports_version_send: [:rest]
2471
+
2472
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2473
+
2474
+ options.apply_defaults timeout: @config.rpcs.list_effective_security_health_analytics_custom_modules.timeout,
2475
+ metadata: call_metadata,
2476
+ retry_policy: @config.rpcs.list_effective_security_health_analytics_custom_modules.retry_policy
2477
+
2478
+ options.apply_defaults timeout: @config.timeout,
2479
+ metadata: @config.metadata,
2480
+ retry_policy: @config.retry_policy
2481
+
2482
+ @security_center_stub.list_effective_security_health_analytics_custom_modules request, options do |result, operation|
2483
+ result = ::Gapic::Rest::PagedEnumerable.new @security_center_stub, :list_effective_security_health_analytics_custom_modules, "effective_security_health_analytics_custom_modules", request, result, options
2484
+ yield result, operation if block_given?
2485
+ return result
2486
+ end
2487
+ rescue ::Gapic::Rest::Error => e
2488
+ raise ::Google::Cloud::Error.from_error(e)
2489
+ end
2490
+
2491
+ ##
2492
+ # Returns a list of all SecurityHealthAnalyticsCustomModules for the given
2493
+ # parent. This includes resident modules defined at the scope of the parent,
2494
+ # and inherited modules, inherited from CRM ancestors.
2495
+ #
2496
+ # @overload list_security_health_analytics_custom_modules(request, options = nil)
2497
+ # Pass arguments to `list_security_health_analytics_custom_modules` via a request object, either of type
2498
+ # {::Google::Cloud::SecurityCenter::V1::ListSecurityHealthAnalyticsCustomModulesRequest} or an equivalent Hash.
2499
+ #
2500
+ # @param request [::Google::Cloud::SecurityCenter::V1::ListSecurityHealthAnalyticsCustomModulesRequest, ::Hash]
2501
+ # A request object representing the call parameters. Required. To specify no
2502
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2503
+ # @param options [::Gapic::CallOptions, ::Hash]
2504
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2505
+ #
2506
+ # @overload list_security_health_analytics_custom_modules(parent: nil, page_size: nil, page_token: nil)
2507
+ # Pass arguments to `list_security_health_analytics_custom_modules` via keyword arguments. Note that at
2508
+ # least one keyword argument is required. To specify no parameters, or to keep all
2509
+ # the default parameter values, pass an empty Hash as a request object (see above).
2510
+ #
2511
+ # @param parent [::String]
2512
+ # Required. Name of parent to list custom modules. Its format is
2513
+ # "organizations/\\{organization}/securityHealthAnalyticsSettings",
2514
+ # "folders/\\{folder}/securityHealthAnalyticsSettings", or
2515
+ # "projects/\\{project}/securityHealthAnalyticsSettings"
2516
+ # @param page_size [::Integer]
2517
+ # The maximum number of results to return in a single response. Default is
2518
+ # 10, minimum is 1, maximum is 1000.
2519
+ # @param page_token [::String]
2520
+ # The value returned by the last call indicating a continuation
2521
+ # @yield [result, operation] Access the result along with the TransportOperation object
2522
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule>]
2523
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2524
+ #
2525
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule>]
2526
+ #
2527
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2528
+ def list_security_health_analytics_custom_modules request, options = nil
2529
+ raise ::ArgumentError, "request must be provided" if request.nil?
2530
+
2531
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::ListSecurityHealthAnalyticsCustomModulesRequest
2532
+
2533
+ # Converts hash and nil to an options object
2534
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2535
+
2536
+ # Customize the options with defaults
2537
+ call_metadata = @config.rpcs.list_security_health_analytics_custom_modules.metadata.to_h
2538
+
2539
+ # Set x-goog-api-client and x-goog-user-project headers
2540
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2541
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2542
+ gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION,
2543
+ transports_version_send: [:rest]
2544
+
2545
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2546
+
2547
+ options.apply_defaults timeout: @config.rpcs.list_security_health_analytics_custom_modules.timeout,
2548
+ metadata: call_metadata,
2549
+ retry_policy: @config.rpcs.list_security_health_analytics_custom_modules.retry_policy
2550
+
2551
+ options.apply_defaults timeout: @config.timeout,
2552
+ metadata: @config.metadata,
2553
+ retry_policy: @config.retry_policy
2554
+
2555
+ @security_center_stub.list_security_health_analytics_custom_modules request, options do |result, operation|
2556
+ result = ::Gapic::Rest::PagedEnumerable.new @security_center_stub, :list_security_health_analytics_custom_modules, "security_health_analytics_custom_modules", request, result, options
2557
+ yield result, operation if block_given?
2558
+ return result
2559
+ end
2560
+ rescue ::Gapic::Rest::Error => e
2561
+ raise ::Google::Cloud::Error.from_error(e)
2562
+ end
2563
+
2043
2564
  ##
2044
2565
  # Lists all sources belonging to an organization.
2045
2566
  #
@@ -2803,6 +3324,74 @@ module Google
2803
3324
  raise ::Google::Cloud::Error.from_error(e)
2804
3325
  end
2805
3326
 
3327
+ ##
3328
+ # Updates the SecurityHealthAnalyticsCustomModule under the given name based
3329
+ # on the given update mask. Updating the enablement state is supported on
3330
+ # both resident and inherited modules (though resident modules cannot have an
3331
+ # enablement state of “inherited”). Updating the display name and custom
3332
+ # config of a module is supported on resident modules only.
3333
+ #
3334
+ # @overload update_security_health_analytics_custom_module(request, options = nil)
3335
+ # Pass arguments to `update_security_health_analytics_custom_module` via a request object, either of type
3336
+ # {::Google::Cloud::SecurityCenter::V1::UpdateSecurityHealthAnalyticsCustomModuleRequest} or an equivalent Hash.
3337
+ #
3338
+ # @param request [::Google::Cloud::SecurityCenter::V1::UpdateSecurityHealthAnalyticsCustomModuleRequest, ::Hash]
3339
+ # A request object representing the call parameters. Required. To specify no
3340
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3341
+ # @param options [::Gapic::CallOptions, ::Hash]
3342
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3343
+ #
3344
+ # @overload update_security_health_analytics_custom_module(security_health_analytics_custom_module: nil, update_mask: nil)
3345
+ # Pass arguments to `update_security_health_analytics_custom_module` via keyword arguments. Note that at
3346
+ # least one keyword argument is required. To specify no parameters, or to keep all
3347
+ # the default parameter values, pass an empty Hash as a request object (see above).
3348
+ #
3349
+ # @param security_health_analytics_custom_module [::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule, ::Hash]
3350
+ # Required. The SecurityHealthAnalytics custom module to update.
3351
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
3352
+ # The list of fields to update.
3353
+ # @yield [result, operation] Access the result along with the TransportOperation object
3354
+ # @yieldparam result [::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule]
3355
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3356
+ #
3357
+ # @return [::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule]
3358
+ #
3359
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3360
+ def update_security_health_analytics_custom_module request, options = nil
3361
+ raise ::ArgumentError, "request must be provided" if request.nil?
3362
+
3363
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::UpdateSecurityHealthAnalyticsCustomModuleRequest
3364
+
3365
+ # Converts hash and nil to an options object
3366
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3367
+
3368
+ # Customize the options with defaults
3369
+ call_metadata = @config.rpcs.update_security_health_analytics_custom_module.metadata.to_h
3370
+
3371
+ # Set x-goog-api-client and x-goog-user-project headers
3372
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3373
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3374
+ gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION,
3375
+ transports_version_send: [:rest]
3376
+
3377
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3378
+
3379
+ options.apply_defaults timeout: @config.rpcs.update_security_health_analytics_custom_module.timeout,
3380
+ metadata: call_metadata,
3381
+ retry_policy: @config.rpcs.update_security_health_analytics_custom_module.retry_policy
3382
+
3383
+ options.apply_defaults timeout: @config.timeout,
3384
+ metadata: @config.metadata,
3385
+ retry_policy: @config.retry_policy
3386
+
3387
+ @security_center_stub.update_security_health_analytics_custom_module request, options do |result, operation|
3388
+ yield result, operation if block_given?
3389
+ return result
3390
+ end
3391
+ rescue ::Gapic::Rest::Error => e
3392
+ raise ::Google::Cloud::Error.from_error(e)
3393
+ end
3394
+
2806
3395
  ##
2807
3396
  # Updates a source.
2808
3397
  #
@@ -3260,9 +3849,9 @@ module Google
3260
3849
  # * (`String`) The path to a service account key file in JSON format
3261
3850
  # * (`Hash`) A service account key as a Hash
3262
3851
  # * (`Google::Auth::Credentials`) A googleauth credentials object
3263
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
3852
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
3264
3853
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
3265
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
3854
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
3266
3855
  # * (`nil`) indicating no credentials
3267
3856
  # @return [::Object]
3268
3857
  # @!attribute [rw] scope
@@ -3351,6 +3940,11 @@ module Google
3351
3940
  #
3352
3941
  attr_reader :bulk_mute_findings
3353
3942
  ##
3943
+ # RPC-specific configuration for `create_security_health_analytics_custom_module`
3944
+ # @return [::Gapic::Config::Method]
3945
+ #
3946
+ attr_reader :create_security_health_analytics_custom_module
3947
+ ##
3354
3948
  # RPC-specific configuration for `create_source`
3355
3949
  # @return [::Gapic::Config::Method]
3356
3950
  #
@@ -3381,6 +3975,11 @@ module Google
3381
3975
  #
3382
3976
  attr_reader :delete_notification_config
3383
3977
  ##
3978
+ # RPC-specific configuration for `delete_security_health_analytics_custom_module`
3979
+ # @return [::Gapic::Config::Method]
3980
+ #
3981
+ attr_reader :delete_security_health_analytics_custom_module
3982
+ ##
3384
3983
  # RPC-specific configuration for `get_big_query_export`
3385
3984
  # @return [::Gapic::Config::Method]
3386
3985
  #
@@ -3406,6 +4005,16 @@ module Google
3406
4005
  #
3407
4006
  attr_reader :get_organization_settings
3408
4007
  ##
4008
+ # RPC-specific configuration for `get_effective_security_health_analytics_custom_module`
4009
+ # @return [::Gapic::Config::Method]
4010
+ #
4011
+ attr_reader :get_effective_security_health_analytics_custom_module
4012
+ ##
4013
+ # RPC-specific configuration for `get_security_health_analytics_custom_module`
4014
+ # @return [::Gapic::Config::Method]
4015
+ #
4016
+ attr_reader :get_security_health_analytics_custom_module
4017
+ ##
3409
4018
  # RPC-specific configuration for `get_source`
3410
4019
  # @return [::Gapic::Config::Method]
3411
4020
  #
@@ -3426,6 +4035,11 @@ module Google
3426
4035
  #
3427
4036
  attr_reader :list_assets
3428
4037
  ##
4038
+ # RPC-specific configuration for `list_descendant_security_health_analytics_custom_modules`
4039
+ # @return [::Gapic::Config::Method]
4040
+ #
4041
+ attr_reader :list_descendant_security_health_analytics_custom_modules
4042
+ ##
3429
4043
  # RPC-specific configuration for `list_findings`
3430
4044
  # @return [::Gapic::Config::Method]
3431
4045
  #
@@ -3441,6 +4055,16 @@ module Google
3441
4055
  #
3442
4056
  attr_reader :list_notification_configs
3443
4057
  ##
4058
+ # RPC-specific configuration for `list_effective_security_health_analytics_custom_modules`
4059
+ # @return [::Gapic::Config::Method]
4060
+ #
4061
+ attr_reader :list_effective_security_health_analytics_custom_modules
4062
+ ##
4063
+ # RPC-specific configuration for `list_security_health_analytics_custom_modules`
4064
+ # @return [::Gapic::Config::Method]
4065
+ #
4066
+ attr_reader :list_security_health_analytics_custom_modules
4067
+ ##
3444
4068
  # RPC-specific configuration for `list_sources`
3445
4069
  # @return [::Gapic::Config::Method]
3446
4070
  #
@@ -3496,6 +4120,11 @@ module Google
3496
4120
  #
3497
4121
  attr_reader :update_organization_settings
3498
4122
  ##
4123
+ # RPC-specific configuration for `update_security_health_analytics_custom_module`
4124
+ # @return [::Gapic::Config::Method]
4125
+ #
4126
+ attr_reader :update_security_health_analytics_custom_module
4127
+ ##
3499
4128
  # RPC-specific configuration for `update_source`
3500
4129
  # @return [::Gapic::Config::Method]
3501
4130
  #
@@ -3530,6 +4159,8 @@ module Google
3530
4159
  def initialize parent_rpcs = nil
3531
4160
  bulk_mute_findings_config = parent_rpcs.bulk_mute_findings if parent_rpcs.respond_to? :bulk_mute_findings
3532
4161
  @bulk_mute_findings = ::Gapic::Config::Method.new bulk_mute_findings_config
4162
+ create_security_health_analytics_custom_module_config = parent_rpcs.create_security_health_analytics_custom_module if parent_rpcs.respond_to? :create_security_health_analytics_custom_module
4163
+ @create_security_health_analytics_custom_module = ::Gapic::Config::Method.new create_security_health_analytics_custom_module_config
3533
4164
  create_source_config = parent_rpcs.create_source if parent_rpcs.respond_to? :create_source
3534
4165
  @create_source = ::Gapic::Config::Method.new create_source_config
3535
4166
  create_finding_config = parent_rpcs.create_finding if parent_rpcs.respond_to? :create_finding
@@ -3542,6 +4173,8 @@ module Google
3542
4173
  @delete_mute_config = ::Gapic::Config::Method.new delete_mute_config_config
3543
4174
  delete_notification_config_config = parent_rpcs.delete_notification_config if parent_rpcs.respond_to? :delete_notification_config
3544
4175
  @delete_notification_config = ::Gapic::Config::Method.new delete_notification_config_config
4176
+ delete_security_health_analytics_custom_module_config = parent_rpcs.delete_security_health_analytics_custom_module if parent_rpcs.respond_to? :delete_security_health_analytics_custom_module
4177
+ @delete_security_health_analytics_custom_module = ::Gapic::Config::Method.new delete_security_health_analytics_custom_module_config
3545
4178
  get_big_query_export_config = parent_rpcs.get_big_query_export if parent_rpcs.respond_to? :get_big_query_export
3546
4179
  @get_big_query_export = ::Gapic::Config::Method.new get_big_query_export_config
3547
4180
  get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
@@ -3552,6 +4185,10 @@ module Google
3552
4185
  @get_notification_config = ::Gapic::Config::Method.new get_notification_config_config
3553
4186
  get_organization_settings_config = parent_rpcs.get_organization_settings if parent_rpcs.respond_to? :get_organization_settings
3554
4187
  @get_organization_settings = ::Gapic::Config::Method.new get_organization_settings_config
4188
+ get_effective_security_health_analytics_custom_module_config = parent_rpcs.get_effective_security_health_analytics_custom_module if parent_rpcs.respond_to? :get_effective_security_health_analytics_custom_module
4189
+ @get_effective_security_health_analytics_custom_module = ::Gapic::Config::Method.new get_effective_security_health_analytics_custom_module_config
4190
+ get_security_health_analytics_custom_module_config = parent_rpcs.get_security_health_analytics_custom_module if parent_rpcs.respond_to? :get_security_health_analytics_custom_module
4191
+ @get_security_health_analytics_custom_module = ::Gapic::Config::Method.new get_security_health_analytics_custom_module_config
3555
4192
  get_source_config = parent_rpcs.get_source if parent_rpcs.respond_to? :get_source
3556
4193
  @get_source = ::Gapic::Config::Method.new get_source_config
3557
4194
  group_assets_config = parent_rpcs.group_assets if parent_rpcs.respond_to? :group_assets
@@ -3560,12 +4197,18 @@ module Google
3560
4197
  @group_findings = ::Gapic::Config::Method.new group_findings_config
3561
4198
  list_assets_config = parent_rpcs.list_assets if parent_rpcs.respond_to? :list_assets
3562
4199
  @list_assets = ::Gapic::Config::Method.new list_assets_config
4200
+ list_descendant_security_health_analytics_custom_modules_config = parent_rpcs.list_descendant_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_descendant_security_health_analytics_custom_modules
4201
+ @list_descendant_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_descendant_security_health_analytics_custom_modules_config
3563
4202
  list_findings_config = parent_rpcs.list_findings if parent_rpcs.respond_to? :list_findings
3564
4203
  @list_findings = ::Gapic::Config::Method.new list_findings_config
3565
4204
  list_mute_configs_config = parent_rpcs.list_mute_configs if parent_rpcs.respond_to? :list_mute_configs
3566
4205
  @list_mute_configs = ::Gapic::Config::Method.new list_mute_configs_config
3567
4206
  list_notification_configs_config = parent_rpcs.list_notification_configs if parent_rpcs.respond_to? :list_notification_configs
3568
4207
  @list_notification_configs = ::Gapic::Config::Method.new list_notification_configs_config
4208
+ list_effective_security_health_analytics_custom_modules_config = parent_rpcs.list_effective_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_effective_security_health_analytics_custom_modules
4209
+ @list_effective_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_effective_security_health_analytics_custom_modules_config
4210
+ list_security_health_analytics_custom_modules_config = parent_rpcs.list_security_health_analytics_custom_modules if parent_rpcs.respond_to? :list_security_health_analytics_custom_modules
4211
+ @list_security_health_analytics_custom_modules = ::Gapic::Config::Method.new list_security_health_analytics_custom_modules_config
3569
4212
  list_sources_config = parent_rpcs.list_sources if parent_rpcs.respond_to? :list_sources
3570
4213
  @list_sources = ::Gapic::Config::Method.new list_sources_config
3571
4214
  run_asset_discovery_config = parent_rpcs.run_asset_discovery if parent_rpcs.respond_to? :run_asset_discovery
@@ -3588,6 +4231,8 @@ module Google
3588
4231
  @update_notification_config = ::Gapic::Config::Method.new update_notification_config_config
3589
4232
  update_organization_settings_config = parent_rpcs.update_organization_settings if parent_rpcs.respond_to? :update_organization_settings
3590
4233
  @update_organization_settings = ::Gapic::Config::Method.new update_organization_settings_config
4234
+ update_security_health_analytics_custom_module_config = parent_rpcs.update_security_health_analytics_custom_module if parent_rpcs.respond_to? :update_security_health_analytics_custom_module
4235
+ @update_security_health_analytics_custom_module = ::Gapic::Config::Method.new update_security_health_analytics_custom_module_config
3591
4236
  update_source_config = parent_rpcs.update_source if parent_rpcs.respond_to? :update_source
3592
4237
  @update_source = ::Gapic::Config::Method.new update_source_config
3593
4238
  update_security_marks_config = parent_rpcs.update_security_marks if parent_rpcs.respond_to? :update_security_marks