google-cloud-security_center-v1 0.31.1 → 0.33.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -313,6 +313,29 @@ module Google
313
313
  # @return [::Gapic::Operation]
314
314
  #
315
315
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
316
+ #
317
+ # @example Basic example
318
+ # require "google/cloud/security_center/v1"
319
+ #
320
+ # # Create a client object. The client can be reused for multiple calls.
321
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
322
+ #
323
+ # # Create a request. To set request fields, pass in keyword arguments.
324
+ # request = Google::Cloud::SecurityCenter::V1::BulkMuteFindingsRequest.new
325
+ #
326
+ # # Call the bulk_mute_findings method.
327
+ # result = client.bulk_mute_findings request
328
+ #
329
+ # # The returned object is of type Gapic::Operation. You can use it to
330
+ # # check the status of an operation, cancel it, or wait for results.
331
+ # # Here is how to wait for a response.
332
+ # result.wait_until_done! timeout: 60
333
+ # if result.response?
334
+ # p result.response
335
+ # else
336
+ # puts "No response received."
337
+ # end
338
+ #
316
339
  def bulk_mute_findings request, options = nil
317
340
  raise ::ArgumentError, "request must be provided" if request.nil?
318
341
 
@@ -386,6 +409,22 @@ module Google
386
409
  # @return [::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule]
387
410
  #
388
411
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
412
+ #
413
+ # @example Basic example
414
+ # require "google/cloud/security_center/v1"
415
+ #
416
+ # # Create a client object. The client can be reused for multiple calls.
417
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
418
+ #
419
+ # # Create a request. To set request fields, pass in keyword arguments.
420
+ # request = Google::Cloud::SecurityCenter::V1::CreateSecurityHealthAnalyticsCustomModuleRequest.new
421
+ #
422
+ # # Call the create_security_health_analytics_custom_module method.
423
+ # result = client.create_security_health_analytics_custom_module request
424
+ #
425
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule.
426
+ # p result
427
+ #
389
428
  def create_security_health_analytics_custom_module request, options = nil
390
429
  raise ::ArgumentError, "request must be provided" if request.nil?
391
430
 
@@ -452,6 +491,22 @@ module Google
452
491
  # @return [::Google::Cloud::SecurityCenter::V1::Source]
453
492
  #
454
493
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
494
+ #
495
+ # @example Basic example
496
+ # require "google/cloud/security_center/v1"
497
+ #
498
+ # # Create a client object. The client can be reused for multiple calls.
499
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
500
+ #
501
+ # # Create a request. To set request fields, pass in keyword arguments.
502
+ # request = Google::Cloud::SecurityCenter::V1::CreateSourceRequest.new
503
+ #
504
+ # # Call the create_source method.
505
+ # result = client.create_source request
506
+ #
507
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::Source.
508
+ # p result
509
+ #
455
510
  def create_source request, options = nil
456
511
  raise ::ArgumentError, "request must be provided" if request.nil?
457
512
 
@@ -523,6 +578,22 @@ module Google
523
578
  # @return [::Google::Cloud::SecurityCenter::V1::Finding]
524
579
  #
525
580
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
581
+ #
582
+ # @example Basic example
583
+ # require "google/cloud/security_center/v1"
584
+ #
585
+ # # Create a client object. The client can be reused for multiple calls.
586
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
587
+ #
588
+ # # Create a request. To set request fields, pass in keyword arguments.
589
+ # request = Google::Cloud::SecurityCenter::V1::CreateFindingRequest.new
590
+ #
591
+ # # Call the create_finding method.
592
+ # result = client.create_finding request
593
+ #
594
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::Finding.
595
+ # p result
596
+ #
526
597
  def create_finding request, options = nil
527
598
  raise ::ArgumentError, "request must be provided" if request.nil?
528
599
 
@@ -594,6 +665,22 @@ module Google
594
665
  # @return [::Google::Cloud::SecurityCenter::V1::MuteConfig]
595
666
  #
596
667
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
668
+ #
669
+ # @example Basic example
670
+ # require "google/cloud/security_center/v1"
671
+ #
672
+ # # Create a client object. The client can be reused for multiple calls.
673
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
674
+ #
675
+ # # Create a request. To set request fields, pass in keyword arguments.
676
+ # request = Google::Cloud::SecurityCenter::V1::CreateMuteConfigRequest.new
677
+ #
678
+ # # Call the create_mute_config method.
679
+ # result = client.create_mute_config request
680
+ #
681
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::MuteConfig.
682
+ # p result
683
+ #
597
684
  def create_mute_config request, options = nil
598
685
  raise ::ArgumentError, "request must be provided" if request.nil?
599
686
 
@@ -667,6 +754,22 @@ module Google
667
754
  # @return [::Google::Cloud::SecurityCenter::V1::NotificationConfig]
668
755
  #
669
756
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
757
+ #
758
+ # @example Basic example
759
+ # require "google/cloud/security_center/v1"
760
+ #
761
+ # # Create a client object. The client can be reused for multiple calls.
762
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
763
+ #
764
+ # # Create a request. To set request fields, pass in keyword arguments.
765
+ # request = Google::Cloud::SecurityCenter::V1::CreateNotificationConfigRequest.new
766
+ #
767
+ # # Call the create_notification_config method.
768
+ # result = client.create_notification_config request
769
+ #
770
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::NotificationConfig.
771
+ # p result
772
+ #
670
773
  def create_notification_config request, options = nil
671
774
  raise ::ArgumentError, "request must be provided" if request.nil?
672
775
 
@@ -732,6 +835,22 @@ module Google
732
835
  # @return [::Google::Protobuf::Empty]
733
836
  #
734
837
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
838
+ #
839
+ # @example Basic example
840
+ # require "google/cloud/security_center/v1"
841
+ #
842
+ # # Create a client object. The client can be reused for multiple calls.
843
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
844
+ #
845
+ # # Create a request. To set request fields, pass in keyword arguments.
846
+ # request = Google::Cloud::SecurityCenter::V1::DeleteMuteConfigRequest.new
847
+ #
848
+ # # Call the delete_mute_config method.
849
+ # result = client.delete_mute_config request
850
+ #
851
+ # # The returned object is of type Google::Protobuf::Empty.
852
+ # p result
853
+ #
735
854
  def delete_mute_config request, options = nil
736
855
  raise ::ArgumentError, "request must be provided" if request.nil?
737
856
 
@@ -797,6 +916,22 @@ module Google
797
916
  # @return [::Google::Protobuf::Empty]
798
917
  #
799
918
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
919
+ #
920
+ # @example Basic example
921
+ # require "google/cloud/security_center/v1"
922
+ #
923
+ # # Create a client object. The client can be reused for multiple calls.
924
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
925
+ #
926
+ # # Create a request. To set request fields, pass in keyword arguments.
927
+ # request = Google::Cloud::SecurityCenter::V1::DeleteNotificationConfigRequest.new
928
+ #
929
+ # # Call the delete_notification_config method.
930
+ # result = client.delete_notification_config request
931
+ #
932
+ # # The returned object is of type Google::Protobuf::Empty.
933
+ # p result
934
+ #
800
935
  def delete_notification_config request, options = nil
801
936
  raise ::ArgumentError, "request must be provided" if request.nil?
802
937
 
@@ -865,6 +1000,22 @@ module Google
865
1000
  # @return [::Google::Protobuf::Empty]
866
1001
  #
867
1002
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1003
+ #
1004
+ # @example Basic example
1005
+ # require "google/cloud/security_center/v1"
1006
+ #
1007
+ # # Create a client object. The client can be reused for multiple calls.
1008
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
1009
+ #
1010
+ # # Create a request. To set request fields, pass in keyword arguments.
1011
+ # request = Google::Cloud::SecurityCenter::V1::DeleteSecurityHealthAnalyticsCustomModuleRequest.new
1012
+ #
1013
+ # # Call the delete_security_health_analytics_custom_module method.
1014
+ # result = client.delete_security_health_analytics_custom_module request
1015
+ #
1016
+ # # The returned object is of type Google::Protobuf::Empty.
1017
+ # p result
1018
+ #
868
1019
  def delete_security_health_analytics_custom_module request, options = nil
869
1020
  raise ::ArgumentError, "request must be provided" if request.nil?
870
1021
 
@@ -930,6 +1081,22 @@ module Google
930
1081
  # @return [::Google::Cloud::SecurityCenter::V1::BigQueryExport]
931
1082
  #
932
1083
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1084
+ #
1085
+ # @example Basic example
1086
+ # require "google/cloud/security_center/v1"
1087
+ #
1088
+ # # Create a client object. The client can be reused for multiple calls.
1089
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
1090
+ #
1091
+ # # Create a request. To set request fields, pass in keyword arguments.
1092
+ # request = Google::Cloud::SecurityCenter::V1::GetBigQueryExportRequest.new
1093
+ #
1094
+ # # Call the get_big_query_export method.
1095
+ # result = client.get_big_query_export request
1096
+ #
1097
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::BigQueryExport.
1098
+ # p result
1099
+ #
933
1100
  def get_big_query_export request, options = nil
934
1101
  raise ::ArgumentError, "request must be provided" if request.nil?
935
1102
 
@@ -996,6 +1163,22 @@ module Google
996
1163
  # @return [::Google::Iam::V1::Policy]
997
1164
  #
998
1165
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1166
+ #
1167
+ # @example Basic example
1168
+ # require "google/cloud/security_center/v1"
1169
+ #
1170
+ # # Create a client object. The client can be reused for multiple calls.
1171
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
1172
+ #
1173
+ # # Create a request. To set request fields, pass in keyword arguments.
1174
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
1175
+ #
1176
+ # # Call the get_iam_policy method.
1177
+ # result = client.get_iam_policy request
1178
+ #
1179
+ # # The returned object is of type Google::Iam::V1::Policy.
1180
+ # p result
1181
+ #
999
1182
  def get_iam_policy request, options = nil
1000
1183
  raise ::ArgumentError, "request must be provided" if request.nil?
1001
1184
 
@@ -1061,6 +1244,22 @@ module Google
1061
1244
  # @return [::Google::Cloud::SecurityCenter::V1::MuteConfig]
1062
1245
  #
1063
1246
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1247
+ #
1248
+ # @example Basic example
1249
+ # require "google/cloud/security_center/v1"
1250
+ #
1251
+ # # Create a client object. The client can be reused for multiple calls.
1252
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
1253
+ #
1254
+ # # Create a request. To set request fields, pass in keyword arguments.
1255
+ # request = Google::Cloud::SecurityCenter::V1::GetMuteConfigRequest.new
1256
+ #
1257
+ # # Call the get_mute_config method.
1258
+ # result = client.get_mute_config request
1259
+ #
1260
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::MuteConfig.
1261
+ # p result
1262
+ #
1064
1263
  def get_mute_config request, options = nil
1065
1264
  raise ::ArgumentError, "request must be provided" if request.nil?
1066
1265
 
@@ -1126,6 +1325,22 @@ module Google
1126
1325
  # @return [::Google::Cloud::SecurityCenter::V1::NotificationConfig]
1127
1326
  #
1128
1327
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1328
+ #
1329
+ # @example Basic example
1330
+ # require "google/cloud/security_center/v1"
1331
+ #
1332
+ # # Create a client object. The client can be reused for multiple calls.
1333
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
1334
+ #
1335
+ # # Create a request. To set request fields, pass in keyword arguments.
1336
+ # request = Google::Cloud::SecurityCenter::V1::GetNotificationConfigRequest.new
1337
+ #
1338
+ # # Call the get_notification_config method.
1339
+ # result = client.get_notification_config request
1340
+ #
1341
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::NotificationConfig.
1342
+ # p result
1343
+ #
1129
1344
  def get_notification_config request, options = nil
1130
1345
  raise ::ArgumentError, "request must be provided" if request.nil?
1131
1346
 
@@ -1189,6 +1404,22 @@ module Google
1189
1404
  # @return [::Google::Cloud::SecurityCenter::V1::OrganizationSettings]
1190
1405
  #
1191
1406
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1407
+ #
1408
+ # @example Basic example
1409
+ # require "google/cloud/security_center/v1"
1410
+ #
1411
+ # # Create a client object. The client can be reused for multiple calls.
1412
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
1413
+ #
1414
+ # # Create a request. To set request fields, pass in keyword arguments.
1415
+ # request = Google::Cloud::SecurityCenter::V1::GetOrganizationSettingsRequest.new
1416
+ #
1417
+ # # Call the get_organization_settings method.
1418
+ # result = client.get_organization_settings request
1419
+ #
1420
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::OrganizationSettings.
1421
+ # p result
1422
+ #
1192
1423
  def get_organization_settings request, options = nil
1193
1424
  raise ::ArgumentError, "request must be provided" if request.nil?
1194
1425
 
@@ -1255,6 +1486,22 @@ module Google
1255
1486
  # @return [::Google::Cloud::SecurityCenter::V1::EffectiveSecurityHealthAnalyticsCustomModule]
1256
1487
  #
1257
1488
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1489
+ #
1490
+ # @example Basic example
1491
+ # require "google/cloud/security_center/v1"
1492
+ #
1493
+ # # Create a client object. The client can be reused for multiple calls.
1494
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
1495
+ #
1496
+ # # Create a request. To set request fields, pass in keyword arguments.
1497
+ # request = Google::Cloud::SecurityCenter::V1::GetEffectiveSecurityHealthAnalyticsCustomModuleRequest.new
1498
+ #
1499
+ # # Call the get_effective_security_health_analytics_custom_module method.
1500
+ # result = client.get_effective_security_health_analytics_custom_module request
1501
+ #
1502
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::EffectiveSecurityHealthAnalyticsCustomModule.
1503
+ # p result
1504
+ #
1258
1505
  def get_effective_security_health_analytics_custom_module request, options = nil
1259
1506
  raise ::ArgumentError, "request must be provided" if request.nil?
1260
1507
 
@@ -1321,6 +1568,22 @@ module Google
1321
1568
  # @return [::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule]
1322
1569
  #
1323
1570
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1571
+ #
1572
+ # @example Basic example
1573
+ # require "google/cloud/security_center/v1"
1574
+ #
1575
+ # # Create a client object. The client can be reused for multiple calls.
1576
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
1577
+ #
1578
+ # # Create a request. To set request fields, pass in keyword arguments.
1579
+ # request = Google::Cloud::SecurityCenter::V1::GetSecurityHealthAnalyticsCustomModuleRequest.new
1580
+ #
1581
+ # # Call the get_security_health_analytics_custom_module method.
1582
+ # result = client.get_security_health_analytics_custom_module request
1583
+ #
1584
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule.
1585
+ # p result
1586
+ #
1324
1587
  def get_security_health_analytics_custom_module request, options = nil
1325
1588
  raise ::ArgumentError, "request must be provided" if request.nil?
1326
1589
 
@@ -1384,6 +1647,22 @@ module Google
1384
1647
  # @return [::Google::Cloud::SecurityCenter::V1::Source]
1385
1648
  #
1386
1649
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1650
+ #
1651
+ # @example Basic example
1652
+ # require "google/cloud/security_center/v1"
1653
+ #
1654
+ # # Create a client object. The client can be reused for multiple calls.
1655
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
1656
+ #
1657
+ # # Create a request. To set request fields, pass in keyword arguments.
1658
+ # request = Google::Cloud::SecurityCenter::V1::GetSourceRequest.new
1659
+ #
1660
+ # # Call the get_source method.
1661
+ # result = client.get_source request
1662
+ #
1663
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::Source.
1664
+ # p result
1665
+ #
1387
1666
  def get_source request, options = nil
1388
1667
  raise ::ArgumentError, "request must be provided" if request.nil?
1389
1668
 
@@ -1571,6 +1850,26 @@ module Google
1571
1850
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::GroupResult>]
1572
1851
  #
1573
1852
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1853
+ #
1854
+ # @example Basic example
1855
+ # require "google/cloud/security_center/v1"
1856
+ #
1857
+ # # Create a client object. The client can be reused for multiple calls.
1858
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
1859
+ #
1860
+ # # Create a request. To set request fields, pass in keyword arguments.
1861
+ # request = Google::Cloud::SecurityCenter::V1::GroupAssetsRequest.new
1862
+ #
1863
+ # # Call the group_assets method.
1864
+ # result = client.group_assets request
1865
+ #
1866
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1867
+ # # over elements, and API calls will be issued to fetch pages as needed.
1868
+ # result.each do |item|
1869
+ # # Each element is of type ::Google::Cloud::SecurityCenter::V1::GroupResult.
1870
+ # p item
1871
+ # end
1872
+ #
1574
1873
  def group_assets request, options = nil
1575
1874
  raise ::ArgumentError, "request must be provided" if request.nil?
1576
1875
 
@@ -1767,6 +2066,26 @@ module Google
1767
2066
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::GroupResult>]
1768
2067
  #
1769
2068
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2069
+ #
2070
+ # @example Basic example
2071
+ # require "google/cloud/security_center/v1"
2072
+ #
2073
+ # # Create a client object. The client can be reused for multiple calls.
2074
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
2075
+ #
2076
+ # # Create a request. To set request fields, pass in keyword arguments.
2077
+ # request = Google::Cloud::SecurityCenter::V1::GroupFindingsRequest.new
2078
+ #
2079
+ # # Call the group_findings method.
2080
+ # result = client.group_findings request
2081
+ #
2082
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2083
+ # # over elements, and API calls will be issued to fetch pages as needed.
2084
+ # result.each do |item|
2085
+ # # Each element is of type ::Google::Cloud::SecurityCenter::V1::GroupResult.
2086
+ # p item
2087
+ # end
2088
+ #
1770
2089
  def group_findings request, options = nil
1771
2090
  raise ::ArgumentError, "request must be provided" if request.nil?
1772
2091
 
@@ -1960,6 +2279,26 @@ module Google
1960
2279
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::ListAssetsResponse::ListAssetsResult>]
1961
2280
  #
1962
2281
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2282
+ #
2283
+ # @example Basic example
2284
+ # require "google/cloud/security_center/v1"
2285
+ #
2286
+ # # Create a client object. The client can be reused for multiple calls.
2287
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
2288
+ #
2289
+ # # Create a request. To set request fields, pass in keyword arguments.
2290
+ # request = Google::Cloud::SecurityCenter::V1::ListAssetsRequest.new
2291
+ #
2292
+ # # Call the list_assets method.
2293
+ # result = client.list_assets request
2294
+ #
2295
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2296
+ # # over elements, and API calls will be issued to fetch pages as needed.
2297
+ # result.each do |item|
2298
+ # # Each element is of type ::Google::Cloud::SecurityCenter::V1::ListAssetsResponse::ListAssetsResult.
2299
+ # p item
2300
+ # end
2301
+ #
1963
2302
  def list_assets request, options = nil
1964
2303
  raise ::ArgumentError, "request must be provided" if request.nil?
1965
2304
 
@@ -2032,6 +2371,26 @@ module Google
2032
2371
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule>]
2033
2372
  #
2034
2373
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2374
+ #
2375
+ # @example Basic example
2376
+ # require "google/cloud/security_center/v1"
2377
+ #
2378
+ # # Create a client object. The client can be reused for multiple calls.
2379
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
2380
+ #
2381
+ # # Create a request. To set request fields, pass in keyword arguments.
2382
+ # request = Google::Cloud::SecurityCenter::V1::ListDescendantSecurityHealthAnalyticsCustomModulesRequest.new
2383
+ #
2384
+ # # Call the list_descendant_security_health_analytics_custom_modules method.
2385
+ # result = client.list_descendant_security_health_analytics_custom_modules request
2386
+ #
2387
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2388
+ # # over elements, and API calls will be issued to fetch pages as needed.
2389
+ # result.each do |item|
2390
+ # # Each element is of type ::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule.
2391
+ # p item
2392
+ # end
2393
+ #
2035
2394
  def list_descendant_security_health_analytics_custom_modules request, options = nil
2036
2395
  raise ::ArgumentError, "request must be provided" if request.nil?
2037
2396
 
@@ -2231,6 +2590,26 @@ module Google
2231
2590
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::ListFindingsResponse::ListFindingsResult>]
2232
2591
  #
2233
2592
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2593
+ #
2594
+ # @example Basic example
2595
+ # require "google/cloud/security_center/v1"
2596
+ #
2597
+ # # Create a client object. The client can be reused for multiple calls.
2598
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
2599
+ #
2600
+ # # Create a request. To set request fields, pass in keyword arguments.
2601
+ # request = Google::Cloud::SecurityCenter::V1::ListFindingsRequest.new
2602
+ #
2603
+ # # Call the list_findings method.
2604
+ # result = client.list_findings request
2605
+ #
2606
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2607
+ # # over elements, and API calls will be issued to fetch pages as needed.
2608
+ # result.each do |item|
2609
+ # # Each element is of type ::Google::Cloud::SecurityCenter::V1::ListFindingsResponse::ListFindingsResult.
2610
+ # p item
2611
+ # end
2612
+ #
2234
2613
  def list_findings request, options = nil
2235
2614
  raise ::ArgumentError, "request must be provided" if request.nil?
2236
2615
 
@@ -2307,6 +2686,26 @@ module Google
2307
2686
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::MuteConfig>]
2308
2687
  #
2309
2688
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2689
+ #
2690
+ # @example Basic example
2691
+ # require "google/cloud/security_center/v1"
2692
+ #
2693
+ # # Create a client object. The client can be reused for multiple calls.
2694
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
2695
+ #
2696
+ # # Create a request. To set request fields, pass in keyword arguments.
2697
+ # request = Google::Cloud::SecurityCenter::V1::ListMuteConfigsRequest.new
2698
+ #
2699
+ # # Call the list_mute_configs method.
2700
+ # result = client.list_mute_configs request
2701
+ #
2702
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2703
+ # # over elements, and API calls will be issued to fetch pages as needed.
2704
+ # result.each do |item|
2705
+ # # Each element is of type ::Google::Cloud::SecurityCenter::V1::MuteConfig.
2706
+ # p item
2707
+ # end
2708
+ #
2310
2709
  def list_mute_configs request, options = nil
2311
2710
  raise ::ArgumentError, "request must be provided" if request.nil?
2312
2711
 
@@ -2379,6 +2778,26 @@ module Google
2379
2778
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::NotificationConfig>]
2380
2779
  #
2381
2780
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2781
+ #
2782
+ # @example Basic example
2783
+ # require "google/cloud/security_center/v1"
2784
+ #
2785
+ # # Create a client object. The client can be reused for multiple calls.
2786
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
2787
+ #
2788
+ # # Create a request. To set request fields, pass in keyword arguments.
2789
+ # request = Google::Cloud::SecurityCenter::V1::ListNotificationConfigsRequest.new
2790
+ #
2791
+ # # Call the list_notification_configs method.
2792
+ # result = client.list_notification_configs request
2793
+ #
2794
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2795
+ # # over elements, and API calls will be issued to fetch pages as needed.
2796
+ # result.each do |item|
2797
+ # # Each element is of type ::Google::Cloud::SecurityCenter::V1::NotificationConfig.
2798
+ # p item
2799
+ # end
2800
+ #
2382
2801
  def list_notification_configs request, options = nil
2383
2802
  raise ::ArgumentError, "request must be provided" if request.nil?
2384
2803
 
@@ -2452,6 +2871,26 @@ module Google
2452
2871
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::EffectiveSecurityHealthAnalyticsCustomModule>]
2453
2872
  #
2454
2873
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2874
+ #
2875
+ # @example Basic example
2876
+ # require "google/cloud/security_center/v1"
2877
+ #
2878
+ # # Create a client object. The client can be reused for multiple calls.
2879
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
2880
+ #
2881
+ # # Create a request. To set request fields, pass in keyword arguments.
2882
+ # request = Google::Cloud::SecurityCenter::V1::ListEffectiveSecurityHealthAnalyticsCustomModulesRequest.new
2883
+ #
2884
+ # # Call the list_effective_security_health_analytics_custom_modules method.
2885
+ # result = client.list_effective_security_health_analytics_custom_modules request
2886
+ #
2887
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2888
+ # # over elements, and API calls will be issued to fetch pages as needed.
2889
+ # result.each do |item|
2890
+ # # Each element is of type ::Google::Cloud::SecurityCenter::V1::EffectiveSecurityHealthAnalyticsCustomModule.
2891
+ # p item
2892
+ # end
2893
+ #
2455
2894
  def list_effective_security_health_analytics_custom_modules request, options = nil
2456
2895
  raise ::ArgumentError, "request must be provided" if request.nil?
2457
2896
 
@@ -2525,6 +2964,26 @@ module Google
2525
2964
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule>]
2526
2965
  #
2527
2966
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2967
+ #
2968
+ # @example Basic example
2969
+ # require "google/cloud/security_center/v1"
2970
+ #
2971
+ # # Create a client object. The client can be reused for multiple calls.
2972
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
2973
+ #
2974
+ # # Create a request. To set request fields, pass in keyword arguments.
2975
+ # request = Google::Cloud::SecurityCenter::V1::ListSecurityHealthAnalyticsCustomModulesRequest.new
2976
+ #
2977
+ # # Call the list_security_health_analytics_custom_modules method.
2978
+ # result = client.list_security_health_analytics_custom_modules request
2979
+ #
2980
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2981
+ # # over elements, and API calls will be issued to fetch pages as needed.
2982
+ # result.each do |item|
2983
+ # # Each element is of type ::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule.
2984
+ # p item
2985
+ # end
2986
+ #
2528
2987
  def list_security_health_analytics_custom_modules request, options = nil
2529
2988
  raise ::ArgumentError, "request must be provided" if request.nil?
2530
2989
 
@@ -2597,6 +3056,26 @@ module Google
2597
3056
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::Source>]
2598
3057
  #
2599
3058
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3059
+ #
3060
+ # @example Basic example
3061
+ # require "google/cloud/security_center/v1"
3062
+ #
3063
+ # # Create a client object. The client can be reused for multiple calls.
3064
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
3065
+ #
3066
+ # # Create a request. To set request fields, pass in keyword arguments.
3067
+ # request = Google::Cloud::SecurityCenter::V1::ListSourcesRequest.new
3068
+ #
3069
+ # # Call the list_sources method.
3070
+ # result = client.list_sources request
3071
+ #
3072
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
3073
+ # # over elements, and API calls will be issued to fetch pages as needed.
3074
+ # result.each do |item|
3075
+ # # Each element is of type ::Google::Cloud::SecurityCenter::V1::Source.
3076
+ # p item
3077
+ # end
3078
+ #
2600
3079
  def list_sources request, options = nil
2601
3080
  raise ::ArgumentError, "request must be provided" if request.nil?
2602
3081
 
@@ -2666,6 +3145,29 @@ module Google
2666
3145
  # @return [::Gapic::Operation]
2667
3146
  #
2668
3147
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3148
+ #
3149
+ # @example Basic example
3150
+ # require "google/cloud/security_center/v1"
3151
+ #
3152
+ # # Create a client object. The client can be reused for multiple calls.
3153
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
3154
+ #
3155
+ # # Create a request. To set request fields, pass in keyword arguments.
3156
+ # request = Google::Cloud::SecurityCenter::V1::RunAssetDiscoveryRequest.new
3157
+ #
3158
+ # # Call the run_asset_discovery method.
3159
+ # result = client.run_asset_discovery request
3160
+ #
3161
+ # # The returned object is of type Gapic::Operation. You can use it to
3162
+ # # check the status of an operation, cancel it, or wait for results.
3163
+ # # Here is how to wait for a response.
3164
+ # result.wait_until_done! timeout: 60
3165
+ # if result.response?
3166
+ # p result.response
3167
+ # else
3168
+ # puts "No response received."
3169
+ # end
3170
+ #
2669
3171
  def run_asset_discovery request, options = nil
2670
3172
  raise ::ArgumentError, "request must be provided" if request.nil?
2671
3173
 
@@ -2738,6 +3240,22 @@ module Google
2738
3240
  # @return [::Google::Cloud::SecurityCenter::V1::Finding]
2739
3241
  #
2740
3242
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3243
+ #
3244
+ # @example Basic example
3245
+ # require "google/cloud/security_center/v1"
3246
+ #
3247
+ # # Create a client object. The client can be reused for multiple calls.
3248
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
3249
+ #
3250
+ # # Create a request. To set request fields, pass in keyword arguments.
3251
+ # request = Google::Cloud::SecurityCenter::V1::SetFindingStateRequest.new
3252
+ #
3253
+ # # Call the set_finding_state method.
3254
+ # result = client.set_finding_state request
3255
+ #
3256
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::Finding.
3257
+ # p result
3258
+ #
2741
3259
  def set_finding_state request, options = nil
2742
3260
  raise ::ArgumentError, "request must be provided" if request.nil?
2743
3261
 
@@ -2807,6 +3325,22 @@ module Google
2807
3325
  # @return [::Google::Cloud::SecurityCenter::V1::Finding]
2808
3326
  #
2809
3327
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3328
+ #
3329
+ # @example Basic example
3330
+ # require "google/cloud/security_center/v1"
3331
+ #
3332
+ # # Create a client object. The client can be reused for multiple calls.
3333
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
3334
+ #
3335
+ # # Create a request. To set request fields, pass in keyword arguments.
3336
+ # request = Google::Cloud::SecurityCenter::V1::SetMuteRequest.new
3337
+ #
3338
+ # # Call the set_mute method.
3339
+ # result = client.set_mute request
3340
+ #
3341
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::Finding.
3342
+ # p result
3343
+ #
2810
3344
  def set_mute request, options = nil
2811
3345
  raise ::ArgumentError, "request must be provided" if request.nil?
2812
3346
 
@@ -2881,6 +3415,22 @@ module Google
2881
3415
  # @return [::Google::Iam::V1::Policy]
2882
3416
  #
2883
3417
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3418
+ #
3419
+ # @example Basic example
3420
+ # require "google/cloud/security_center/v1"
3421
+ #
3422
+ # # Create a client object. The client can be reused for multiple calls.
3423
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
3424
+ #
3425
+ # # Create a request. To set request fields, pass in keyword arguments.
3426
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
3427
+ #
3428
+ # # Call the set_iam_policy method.
3429
+ # result = client.set_iam_policy request
3430
+ #
3431
+ # # The returned object is of type Google::Iam::V1::Policy.
3432
+ # p result
3433
+ #
2884
3434
  def set_iam_policy request, options = nil
2885
3435
  raise ::ArgumentError, "request must be provided" if request.nil?
2886
3436
 
@@ -2949,6 +3499,22 @@ module Google
2949
3499
  # @return [::Google::Iam::V1::TestIamPermissionsResponse]
2950
3500
  #
2951
3501
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3502
+ #
3503
+ # @example Basic example
3504
+ # require "google/cloud/security_center/v1"
3505
+ #
3506
+ # # Create a client object. The client can be reused for multiple calls.
3507
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
3508
+ #
3509
+ # # Create a request. To set request fields, pass in keyword arguments.
3510
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
3511
+ #
3512
+ # # Call the test_iam_permissions method.
3513
+ # result = client.test_iam_permissions request
3514
+ #
3515
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
3516
+ # p result
3517
+ #
2952
3518
  def test_iam_permissions request, options = nil
2953
3519
  raise ::ArgumentError, "request must be provided" if request.nil?
2954
3520
 
@@ -2984,6 +3550,92 @@ module Google
2984
3550
  raise ::Google::Cloud::Error.from_error(e)
2985
3551
  end
2986
3552
 
3553
+ ##
3554
+ # Simulates a given SecurityHealthAnalyticsCustomModule and Resource.
3555
+ #
3556
+ # @overload simulate_security_health_analytics_custom_module(request, options = nil)
3557
+ # Pass arguments to `simulate_security_health_analytics_custom_module` via a request object, either of type
3558
+ # {::Google::Cloud::SecurityCenter::V1::SimulateSecurityHealthAnalyticsCustomModuleRequest} or an equivalent Hash.
3559
+ #
3560
+ # @param request [::Google::Cloud::SecurityCenter::V1::SimulateSecurityHealthAnalyticsCustomModuleRequest, ::Hash]
3561
+ # A request object representing the call parameters. Required. To specify no
3562
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3563
+ # @param options [::Gapic::CallOptions, ::Hash]
3564
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3565
+ #
3566
+ # @overload simulate_security_health_analytics_custom_module(parent: nil, custom_config: nil, resource: nil)
3567
+ # Pass arguments to `simulate_security_health_analytics_custom_module` via keyword arguments. Note that at
3568
+ # least one keyword argument is required. To specify no parameters, or to keep all
3569
+ # the default parameter values, pass an empty Hash as a request object (see above).
3570
+ #
3571
+ # @param parent [::String]
3572
+ # Required. The relative resource name of the organization, project, or
3573
+ # folder. See:
3574
+ # https://cloud.google.com/apis/design/resource_names#relative_resource_name
3575
+ # An example is:
3576
+ # "organizations/\\{organization_id}".
3577
+ # @param custom_config [::Google::Cloud::SecurityCenter::V1::CustomConfig, ::Hash]
3578
+ # Required. The user specified custom configuration to test.
3579
+ # @param resource [::Google::Cloud::SecurityCenter::V1::SimulateSecurityHealthAnalyticsCustomModuleRequest::SimulatedResource, ::Hash]
3580
+ # Required. Resource data to simulate custom module against.
3581
+ # @yield [result, operation] Access the result along with the TransportOperation object
3582
+ # @yieldparam result [::Google::Cloud::SecurityCenter::V1::SimulateSecurityHealthAnalyticsCustomModuleResponse]
3583
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3584
+ #
3585
+ # @return [::Google::Cloud::SecurityCenter::V1::SimulateSecurityHealthAnalyticsCustomModuleResponse]
3586
+ #
3587
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3588
+ #
3589
+ # @example Basic example
3590
+ # require "google/cloud/security_center/v1"
3591
+ #
3592
+ # # Create a client object. The client can be reused for multiple calls.
3593
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
3594
+ #
3595
+ # # Create a request. To set request fields, pass in keyword arguments.
3596
+ # request = Google::Cloud::SecurityCenter::V1::SimulateSecurityHealthAnalyticsCustomModuleRequest.new
3597
+ #
3598
+ # # Call the simulate_security_health_analytics_custom_module method.
3599
+ # result = client.simulate_security_health_analytics_custom_module request
3600
+ #
3601
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::SimulateSecurityHealthAnalyticsCustomModuleResponse.
3602
+ # p result
3603
+ #
3604
+ def simulate_security_health_analytics_custom_module request, options = nil
3605
+ raise ::ArgumentError, "request must be provided" if request.nil?
3606
+
3607
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1::SimulateSecurityHealthAnalyticsCustomModuleRequest
3608
+
3609
+ # Converts hash and nil to an options object
3610
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3611
+
3612
+ # Customize the options with defaults
3613
+ call_metadata = @config.rpcs.simulate_security_health_analytics_custom_module.metadata.to_h
3614
+
3615
+ # Set x-goog-api-client and x-goog-user-project headers
3616
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3617
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3618
+ gapic_version: ::Google::Cloud::SecurityCenter::V1::VERSION,
3619
+ transports_version_send: [:rest]
3620
+
3621
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3622
+
3623
+ options.apply_defaults timeout: @config.rpcs.simulate_security_health_analytics_custom_module.timeout,
3624
+ metadata: call_metadata,
3625
+ retry_policy: @config.rpcs.simulate_security_health_analytics_custom_module.retry_policy
3626
+
3627
+ options.apply_defaults timeout: @config.timeout,
3628
+ metadata: @config.metadata,
3629
+ retry_policy: @config.retry_policy
3630
+
3631
+ @security_center_stub.simulate_security_health_analytics_custom_module request, options do |result, operation|
3632
+ yield result, operation if block_given?
3633
+ return result
3634
+ end
3635
+ rescue ::Gapic::Rest::Error => e
3636
+ raise ::Google::Cloud::Error.from_error(e)
3637
+ end
3638
+
2987
3639
  ##
2988
3640
  # Updates external system. This is for a given finding.
2989
3641
  #
@@ -3015,6 +3667,22 @@ module Google
3015
3667
  # @return [::Google::Cloud::SecurityCenter::V1::ExternalSystem]
3016
3668
  #
3017
3669
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3670
+ #
3671
+ # @example Basic example
3672
+ # require "google/cloud/security_center/v1"
3673
+ #
3674
+ # # Create a client object. The client can be reused for multiple calls.
3675
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
3676
+ #
3677
+ # # Create a request. To set request fields, pass in keyword arguments.
3678
+ # request = Google::Cloud::SecurityCenter::V1::UpdateExternalSystemRequest.new
3679
+ #
3680
+ # # Call the update_external_system method.
3681
+ # result = client.update_external_system request
3682
+ #
3683
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::ExternalSystem.
3684
+ # p result
3685
+ #
3018
3686
  def update_external_system request, options = nil
3019
3687
  raise ::ArgumentError, "request must be provided" if request.nil?
3020
3688
 
@@ -3091,6 +3759,22 @@ module Google
3091
3759
  # @return [::Google::Cloud::SecurityCenter::V1::Finding]
3092
3760
  #
3093
3761
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3762
+ #
3763
+ # @example Basic example
3764
+ # require "google/cloud/security_center/v1"
3765
+ #
3766
+ # # Create a client object. The client can be reused for multiple calls.
3767
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
3768
+ #
3769
+ # # Create a request. To set request fields, pass in keyword arguments.
3770
+ # request = Google::Cloud::SecurityCenter::V1::UpdateFindingRequest.new
3771
+ #
3772
+ # # Call the update_finding method.
3773
+ # result = client.update_finding request
3774
+ #
3775
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::Finding.
3776
+ # p result
3777
+ #
3094
3778
  def update_finding request, options = nil
3095
3779
  raise ::ArgumentError, "request must be provided" if request.nil?
3096
3780
 
@@ -3156,6 +3840,22 @@ module Google
3156
3840
  # @return [::Google::Cloud::SecurityCenter::V1::MuteConfig]
3157
3841
  #
3158
3842
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3843
+ #
3844
+ # @example Basic example
3845
+ # require "google/cloud/security_center/v1"
3846
+ #
3847
+ # # Create a client object. The client can be reused for multiple calls.
3848
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
3849
+ #
3850
+ # # Create a request. To set request fields, pass in keyword arguments.
3851
+ # request = Google::Cloud::SecurityCenter::V1::UpdateMuteConfigRequest.new
3852
+ #
3853
+ # # Call the update_mute_config method.
3854
+ # result = client.update_mute_config request
3855
+ #
3856
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::MuteConfig.
3857
+ # p result
3858
+ #
3159
3859
  def update_mute_config request, options = nil
3160
3860
  raise ::ArgumentError, "request must be provided" if request.nil?
3161
3861
 
@@ -3223,6 +3923,22 @@ module Google
3223
3923
  # @return [::Google::Cloud::SecurityCenter::V1::NotificationConfig]
3224
3924
  #
3225
3925
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3926
+ #
3927
+ # @example Basic example
3928
+ # require "google/cloud/security_center/v1"
3929
+ #
3930
+ # # Create a client object. The client can be reused for multiple calls.
3931
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
3932
+ #
3933
+ # # Create a request. To set request fields, pass in keyword arguments.
3934
+ # request = Google::Cloud::SecurityCenter::V1::UpdateNotificationConfigRequest.new
3935
+ #
3936
+ # # Call the update_notification_config method.
3937
+ # result = client.update_notification_config request
3938
+ #
3939
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::NotificationConfig.
3940
+ # p result
3941
+ #
3226
3942
  def update_notification_config request, options = nil
3227
3943
  raise ::ArgumentError, "request must be provided" if request.nil?
3228
3944
 
@@ -3289,6 +4005,22 @@ module Google
3289
4005
  # @return [::Google::Cloud::SecurityCenter::V1::OrganizationSettings]
3290
4006
  #
3291
4007
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4008
+ #
4009
+ # @example Basic example
4010
+ # require "google/cloud/security_center/v1"
4011
+ #
4012
+ # # Create a client object. The client can be reused for multiple calls.
4013
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
4014
+ #
4015
+ # # Create a request. To set request fields, pass in keyword arguments.
4016
+ # request = Google::Cloud::SecurityCenter::V1::UpdateOrganizationSettingsRequest.new
4017
+ #
4018
+ # # Call the update_organization_settings method.
4019
+ # result = client.update_organization_settings request
4020
+ #
4021
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::OrganizationSettings.
4022
+ # p result
4023
+ #
3292
4024
  def update_organization_settings request, options = nil
3293
4025
  raise ::ArgumentError, "request must be provided" if request.nil?
3294
4026
 
@@ -3357,6 +4089,22 @@ module Google
3357
4089
  # @return [::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule]
3358
4090
  #
3359
4091
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4092
+ #
4093
+ # @example Basic example
4094
+ # require "google/cloud/security_center/v1"
4095
+ #
4096
+ # # Create a client object. The client can be reused for multiple calls.
4097
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
4098
+ #
4099
+ # # Create a request. To set request fields, pass in keyword arguments.
4100
+ # request = Google::Cloud::SecurityCenter::V1::UpdateSecurityHealthAnalyticsCustomModuleRequest.new
4101
+ #
4102
+ # # Call the update_security_health_analytics_custom_module method.
4103
+ # result = client.update_security_health_analytics_custom_module request
4104
+ #
4105
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule.
4106
+ # p result
4107
+ #
3360
4108
  def update_security_health_analytics_custom_module request, options = nil
3361
4109
  raise ::ArgumentError, "request must be provided" if request.nil?
3362
4110
 
@@ -3423,6 +4171,22 @@ module Google
3423
4171
  # @return [::Google::Cloud::SecurityCenter::V1::Source]
3424
4172
  #
3425
4173
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4174
+ #
4175
+ # @example Basic example
4176
+ # require "google/cloud/security_center/v1"
4177
+ #
4178
+ # # Create a client object. The client can be reused for multiple calls.
4179
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
4180
+ #
4181
+ # # Create a request. To set request fields, pass in keyword arguments.
4182
+ # request = Google::Cloud::SecurityCenter::V1::UpdateSourceRequest.new
4183
+ #
4184
+ # # Call the update_source method.
4185
+ # result = client.update_source request
4186
+ #
4187
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::Source.
4188
+ # p result
4189
+ #
3426
4190
  def update_source request, options = nil
3427
4191
  raise ::ArgumentError, "request must be provided" if request.nil?
3428
4192
 
@@ -3496,6 +4260,22 @@ module Google
3496
4260
  # @return [::Google::Cloud::SecurityCenter::V1::SecurityMarks]
3497
4261
  #
3498
4262
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4263
+ #
4264
+ # @example Basic example
4265
+ # require "google/cloud/security_center/v1"
4266
+ #
4267
+ # # Create a client object. The client can be reused for multiple calls.
4268
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
4269
+ #
4270
+ # # Create a request. To set request fields, pass in keyword arguments.
4271
+ # request = Google::Cloud::SecurityCenter::V1::UpdateSecurityMarksRequest.new
4272
+ #
4273
+ # # Call the update_security_marks method.
4274
+ # result = client.update_security_marks request
4275
+ #
4276
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::SecurityMarks.
4277
+ # p result
4278
+ #
3499
4279
  def update_security_marks request, options = nil
3500
4280
  raise ::ArgumentError, "request must be provided" if request.nil?
3501
4281
 
@@ -3567,6 +4347,22 @@ module Google
3567
4347
  # @return [::Google::Cloud::SecurityCenter::V1::BigQueryExport]
3568
4348
  #
3569
4349
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4350
+ #
4351
+ # @example Basic example
4352
+ # require "google/cloud/security_center/v1"
4353
+ #
4354
+ # # Create a client object. The client can be reused for multiple calls.
4355
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
4356
+ #
4357
+ # # Create a request. To set request fields, pass in keyword arguments.
4358
+ # request = Google::Cloud::SecurityCenter::V1::CreateBigQueryExportRequest.new
4359
+ #
4360
+ # # Call the create_big_query_export method.
4361
+ # result = client.create_big_query_export request
4362
+ #
4363
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::BigQueryExport.
4364
+ # p result
4365
+ #
3570
4366
  def create_big_query_export request, options = nil
3571
4367
  raise ::ArgumentError, "request must be provided" if request.nil?
3572
4368
 
@@ -3632,6 +4428,22 @@ module Google
3632
4428
  # @return [::Google::Protobuf::Empty]
3633
4429
  #
3634
4430
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4431
+ #
4432
+ # @example Basic example
4433
+ # require "google/cloud/security_center/v1"
4434
+ #
4435
+ # # Create a client object. The client can be reused for multiple calls.
4436
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
4437
+ #
4438
+ # # Create a request. To set request fields, pass in keyword arguments.
4439
+ # request = Google::Cloud::SecurityCenter::V1::DeleteBigQueryExportRequest.new
4440
+ #
4441
+ # # Call the delete_big_query_export method.
4442
+ # result = client.delete_big_query_export request
4443
+ #
4444
+ # # The returned object is of type Google::Protobuf::Empty.
4445
+ # p result
4446
+ #
3635
4447
  def delete_big_query_export request, options = nil
3636
4448
  raise ::ArgumentError, "request must be provided" if request.nil?
3637
4449
 
@@ -3697,6 +4509,22 @@ module Google
3697
4509
  # @return [::Google::Cloud::SecurityCenter::V1::BigQueryExport]
3698
4510
  #
3699
4511
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4512
+ #
4513
+ # @example Basic example
4514
+ # require "google/cloud/security_center/v1"
4515
+ #
4516
+ # # Create a client object. The client can be reused for multiple calls.
4517
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
4518
+ #
4519
+ # # Create a request. To set request fields, pass in keyword arguments.
4520
+ # request = Google::Cloud::SecurityCenter::V1::UpdateBigQueryExportRequest.new
4521
+ #
4522
+ # # Call the update_big_query_export method.
4523
+ # result = client.update_big_query_export request
4524
+ #
4525
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::BigQueryExport.
4526
+ # p result
4527
+ #
3700
4528
  def update_big_query_export request, options = nil
3701
4529
  raise ::ArgumentError, "request must be provided" if request.nil?
3702
4530
 
@@ -3775,6 +4603,26 @@ module Google
3775
4603
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::BigQueryExport>]
3776
4604
  #
3777
4605
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4606
+ #
4607
+ # @example Basic example
4608
+ # require "google/cloud/security_center/v1"
4609
+ #
4610
+ # # Create a client object. The client can be reused for multiple calls.
4611
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
4612
+ #
4613
+ # # Create a request. To set request fields, pass in keyword arguments.
4614
+ # request = Google::Cloud::SecurityCenter::V1::ListBigQueryExportsRequest.new
4615
+ #
4616
+ # # Call the list_big_query_exports method.
4617
+ # result = client.list_big_query_exports request
4618
+ #
4619
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
4620
+ # # over elements, and API calls will be issued to fetch pages as needed.
4621
+ # result.each do |item|
4622
+ # # Each element is of type ::Google::Cloud::SecurityCenter::V1::BigQueryExport.
4623
+ # p item
4624
+ # end
4625
+ #
3778
4626
  def list_big_query_exports request, options = nil
3779
4627
  raise ::ArgumentError, "request must be provided" if request.nil?
3780
4628
 
@@ -4097,6 +4945,11 @@ module Google
4097
4945
  #
4098
4946
  attr_reader :test_iam_permissions
4099
4947
  ##
4948
+ # RPC-specific configuration for `simulate_security_health_analytics_custom_module`
4949
+ # @return [::Gapic::Config::Method]
4950
+ #
4951
+ attr_reader :simulate_security_health_analytics_custom_module
4952
+ ##
4100
4953
  # RPC-specific configuration for `update_external_system`
4101
4954
  # @return [::Gapic::Config::Method]
4102
4955
  #
@@ -4223,6 +5076,8 @@ module Google
4223
5076
  @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
4224
5077
  test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
4225
5078
  @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
5079
+ simulate_security_health_analytics_custom_module_config = parent_rpcs.simulate_security_health_analytics_custom_module if parent_rpcs.respond_to? :simulate_security_health_analytics_custom_module
5080
+ @simulate_security_health_analytics_custom_module = ::Gapic::Config::Method.new simulate_security_health_analytics_custom_module_config
4226
5081
  update_external_system_config = parent_rpcs.update_external_system if parent_rpcs.respond_to? :update_external_system
4227
5082
  @update_external_system = ::Gapic::Config::Method.new update_external_system_config
4228
5083
  update_finding_config = parent_rpcs.update_finding if parent_rpcs.respond_to? :update_finding