google-cloud-security_center-v1 0.31.1 → 0.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ddee7a55f87e082e2dc3853e661f9305b89465f508016a08cbace223e8da506
4
- data.tar.gz: 9becf7c8a1b2a17e8a80bf0cce5ee4b87f375289ff3210b9f6617ddebdb38329
3
+ metadata.gz: cb5f5353f5de55f1dc9bf90184f56161fdbb5924cd9d8fb1198bc481563a94c8
4
+ data.tar.gz: 70253ea6af60231b4a3d12959812797536b46b878387c2896861534502c97fb5
5
5
  SHA512:
6
- metadata.gz: 7fdf0f3394c8aad14c46e4deb949d45e034a3d9c18a4e5e2ade035560de84f73e3094214d9a6fe6dc77d30c75c513dff3431b5a1d22b7a60d1b8f05f652bdc91
7
- data.tar.gz: ccc30fb3f795199348dd1fdef19ce3f5062db72e15759dfdc9607e75bf0b8406e0e7305174ed5cf402da751d4076ca1c79e4a771b5656d357d2217b1d6d2b45f
6
+ metadata.gz: 96603c6e7fa25639bccac2877cff799588e283a23a75666cfb952594949030b550ce3f8a2ce0961a1566d3314484a420abb717a3e73eca99e557fd93ab10ed84
7
+ data.tar.gz: 43fbb35193c78344b9e2ad056447a03117d5b9b4da55c691237cc470202566b6119bc3ccfe86e26010193378f3de39ea1113fad9b513d6ece513f160d67ca043
@@ -254,7 +254,8 @@ module Google
254
254
  credentials: credentials,
255
255
  endpoint: @config.endpoint,
256
256
  channel_args: @config.channel_args,
257
- interceptors: @config.interceptors
257
+ interceptors: @config.interceptors,
258
+ channel_pool_config: @config.channel_pool
258
259
  )
259
260
  end
260
261
 
@@ -5015,6 +5016,14 @@ module Google
5015
5016
  end
5016
5017
  end
5017
5018
 
5019
+ ##
5020
+ # Configuration for the channel pool
5021
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
5022
+ #
5023
+ def channel_pool
5024
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
5025
+ end
5026
+
5018
5027
  ##
5019
5028
  # Configuration RPC class for the SecurityCenter API.
5020
5029
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #
@@ -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
 
@@ -3015,6 +3581,22 @@ module Google
3015
3581
  # @return [::Google::Cloud::SecurityCenter::V1::ExternalSystem]
3016
3582
  #
3017
3583
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3584
+ #
3585
+ # @example Basic example
3586
+ # require "google/cloud/security_center/v1"
3587
+ #
3588
+ # # Create a client object. The client can be reused for multiple calls.
3589
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
3590
+ #
3591
+ # # Create a request. To set request fields, pass in keyword arguments.
3592
+ # request = Google::Cloud::SecurityCenter::V1::UpdateExternalSystemRequest.new
3593
+ #
3594
+ # # Call the update_external_system method.
3595
+ # result = client.update_external_system request
3596
+ #
3597
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::ExternalSystem.
3598
+ # p result
3599
+ #
3018
3600
  def update_external_system request, options = nil
3019
3601
  raise ::ArgumentError, "request must be provided" if request.nil?
3020
3602
 
@@ -3091,6 +3673,22 @@ module Google
3091
3673
  # @return [::Google::Cloud::SecurityCenter::V1::Finding]
3092
3674
  #
3093
3675
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3676
+ #
3677
+ # @example Basic example
3678
+ # require "google/cloud/security_center/v1"
3679
+ #
3680
+ # # Create a client object. The client can be reused for multiple calls.
3681
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
3682
+ #
3683
+ # # Create a request. To set request fields, pass in keyword arguments.
3684
+ # request = Google::Cloud::SecurityCenter::V1::UpdateFindingRequest.new
3685
+ #
3686
+ # # Call the update_finding method.
3687
+ # result = client.update_finding request
3688
+ #
3689
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::Finding.
3690
+ # p result
3691
+ #
3094
3692
  def update_finding request, options = nil
3095
3693
  raise ::ArgumentError, "request must be provided" if request.nil?
3096
3694
 
@@ -3156,6 +3754,22 @@ module Google
3156
3754
  # @return [::Google::Cloud::SecurityCenter::V1::MuteConfig]
3157
3755
  #
3158
3756
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3757
+ #
3758
+ # @example Basic example
3759
+ # require "google/cloud/security_center/v1"
3760
+ #
3761
+ # # Create a client object. The client can be reused for multiple calls.
3762
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
3763
+ #
3764
+ # # Create a request. To set request fields, pass in keyword arguments.
3765
+ # request = Google::Cloud::SecurityCenter::V1::UpdateMuteConfigRequest.new
3766
+ #
3767
+ # # Call the update_mute_config method.
3768
+ # result = client.update_mute_config request
3769
+ #
3770
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::MuteConfig.
3771
+ # p result
3772
+ #
3159
3773
  def update_mute_config request, options = nil
3160
3774
  raise ::ArgumentError, "request must be provided" if request.nil?
3161
3775
 
@@ -3223,6 +3837,22 @@ module Google
3223
3837
  # @return [::Google::Cloud::SecurityCenter::V1::NotificationConfig]
3224
3838
  #
3225
3839
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3840
+ #
3841
+ # @example Basic example
3842
+ # require "google/cloud/security_center/v1"
3843
+ #
3844
+ # # Create a client object. The client can be reused for multiple calls.
3845
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
3846
+ #
3847
+ # # Create a request. To set request fields, pass in keyword arguments.
3848
+ # request = Google::Cloud::SecurityCenter::V1::UpdateNotificationConfigRequest.new
3849
+ #
3850
+ # # Call the update_notification_config method.
3851
+ # result = client.update_notification_config request
3852
+ #
3853
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::NotificationConfig.
3854
+ # p result
3855
+ #
3226
3856
  def update_notification_config request, options = nil
3227
3857
  raise ::ArgumentError, "request must be provided" if request.nil?
3228
3858
 
@@ -3289,6 +3919,22 @@ module Google
3289
3919
  # @return [::Google::Cloud::SecurityCenter::V1::OrganizationSettings]
3290
3920
  #
3291
3921
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3922
+ #
3923
+ # @example Basic example
3924
+ # require "google/cloud/security_center/v1"
3925
+ #
3926
+ # # Create a client object. The client can be reused for multiple calls.
3927
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
3928
+ #
3929
+ # # Create a request. To set request fields, pass in keyword arguments.
3930
+ # request = Google::Cloud::SecurityCenter::V1::UpdateOrganizationSettingsRequest.new
3931
+ #
3932
+ # # Call the update_organization_settings method.
3933
+ # result = client.update_organization_settings request
3934
+ #
3935
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::OrganizationSettings.
3936
+ # p result
3937
+ #
3292
3938
  def update_organization_settings request, options = nil
3293
3939
  raise ::ArgumentError, "request must be provided" if request.nil?
3294
3940
 
@@ -3357,6 +4003,22 @@ module Google
3357
4003
  # @return [::Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule]
3358
4004
  #
3359
4005
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4006
+ #
4007
+ # @example Basic example
4008
+ # require "google/cloud/security_center/v1"
4009
+ #
4010
+ # # Create a client object. The client can be reused for multiple calls.
4011
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
4012
+ #
4013
+ # # Create a request. To set request fields, pass in keyword arguments.
4014
+ # request = Google::Cloud::SecurityCenter::V1::UpdateSecurityHealthAnalyticsCustomModuleRequest.new
4015
+ #
4016
+ # # Call the update_security_health_analytics_custom_module method.
4017
+ # result = client.update_security_health_analytics_custom_module request
4018
+ #
4019
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::SecurityHealthAnalyticsCustomModule.
4020
+ # p result
4021
+ #
3360
4022
  def update_security_health_analytics_custom_module request, options = nil
3361
4023
  raise ::ArgumentError, "request must be provided" if request.nil?
3362
4024
 
@@ -3423,6 +4085,22 @@ module Google
3423
4085
  # @return [::Google::Cloud::SecurityCenter::V1::Source]
3424
4086
  #
3425
4087
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4088
+ #
4089
+ # @example Basic example
4090
+ # require "google/cloud/security_center/v1"
4091
+ #
4092
+ # # Create a client object. The client can be reused for multiple calls.
4093
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
4094
+ #
4095
+ # # Create a request. To set request fields, pass in keyword arguments.
4096
+ # request = Google::Cloud::SecurityCenter::V1::UpdateSourceRequest.new
4097
+ #
4098
+ # # Call the update_source method.
4099
+ # result = client.update_source request
4100
+ #
4101
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::Source.
4102
+ # p result
4103
+ #
3426
4104
  def update_source request, options = nil
3427
4105
  raise ::ArgumentError, "request must be provided" if request.nil?
3428
4106
 
@@ -3496,6 +4174,22 @@ module Google
3496
4174
  # @return [::Google::Cloud::SecurityCenter::V1::SecurityMarks]
3497
4175
  #
3498
4176
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4177
+ #
4178
+ # @example Basic example
4179
+ # require "google/cloud/security_center/v1"
4180
+ #
4181
+ # # Create a client object. The client can be reused for multiple calls.
4182
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
4183
+ #
4184
+ # # Create a request. To set request fields, pass in keyword arguments.
4185
+ # request = Google::Cloud::SecurityCenter::V1::UpdateSecurityMarksRequest.new
4186
+ #
4187
+ # # Call the update_security_marks method.
4188
+ # result = client.update_security_marks request
4189
+ #
4190
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::SecurityMarks.
4191
+ # p result
4192
+ #
3499
4193
  def update_security_marks request, options = nil
3500
4194
  raise ::ArgumentError, "request must be provided" if request.nil?
3501
4195
 
@@ -3567,6 +4261,22 @@ module Google
3567
4261
  # @return [::Google::Cloud::SecurityCenter::V1::BigQueryExport]
3568
4262
  #
3569
4263
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4264
+ #
4265
+ # @example Basic example
4266
+ # require "google/cloud/security_center/v1"
4267
+ #
4268
+ # # Create a client object. The client can be reused for multiple calls.
4269
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
4270
+ #
4271
+ # # Create a request. To set request fields, pass in keyword arguments.
4272
+ # request = Google::Cloud::SecurityCenter::V1::CreateBigQueryExportRequest.new
4273
+ #
4274
+ # # Call the create_big_query_export method.
4275
+ # result = client.create_big_query_export request
4276
+ #
4277
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::BigQueryExport.
4278
+ # p result
4279
+ #
3570
4280
  def create_big_query_export request, options = nil
3571
4281
  raise ::ArgumentError, "request must be provided" if request.nil?
3572
4282
 
@@ -3632,6 +4342,22 @@ module Google
3632
4342
  # @return [::Google::Protobuf::Empty]
3633
4343
  #
3634
4344
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4345
+ #
4346
+ # @example Basic example
4347
+ # require "google/cloud/security_center/v1"
4348
+ #
4349
+ # # Create a client object. The client can be reused for multiple calls.
4350
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
4351
+ #
4352
+ # # Create a request. To set request fields, pass in keyword arguments.
4353
+ # request = Google::Cloud::SecurityCenter::V1::DeleteBigQueryExportRequest.new
4354
+ #
4355
+ # # Call the delete_big_query_export method.
4356
+ # result = client.delete_big_query_export request
4357
+ #
4358
+ # # The returned object is of type Google::Protobuf::Empty.
4359
+ # p result
4360
+ #
3635
4361
  def delete_big_query_export request, options = nil
3636
4362
  raise ::ArgumentError, "request must be provided" if request.nil?
3637
4363
 
@@ -3697,6 +4423,22 @@ module Google
3697
4423
  # @return [::Google::Cloud::SecurityCenter::V1::BigQueryExport]
3698
4424
  #
3699
4425
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4426
+ #
4427
+ # @example Basic example
4428
+ # require "google/cloud/security_center/v1"
4429
+ #
4430
+ # # Create a client object. The client can be reused for multiple calls.
4431
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
4432
+ #
4433
+ # # Create a request. To set request fields, pass in keyword arguments.
4434
+ # request = Google::Cloud::SecurityCenter::V1::UpdateBigQueryExportRequest.new
4435
+ #
4436
+ # # Call the update_big_query_export method.
4437
+ # result = client.update_big_query_export request
4438
+ #
4439
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1::BigQueryExport.
4440
+ # p result
4441
+ #
3700
4442
  def update_big_query_export request, options = nil
3701
4443
  raise ::ArgumentError, "request must be provided" if request.nil?
3702
4444
 
@@ -3775,6 +4517,26 @@ module Google
3775
4517
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecurityCenter::V1::BigQueryExport>]
3776
4518
  #
3777
4519
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
4520
+ #
4521
+ # @example Basic example
4522
+ # require "google/cloud/security_center/v1"
4523
+ #
4524
+ # # Create a client object. The client can be reused for multiple calls.
4525
+ # client = Google::Cloud::SecurityCenter::V1::SecurityCenter::Rest::Client.new
4526
+ #
4527
+ # # Create a request. To set request fields, pass in keyword arguments.
4528
+ # request = Google::Cloud::SecurityCenter::V1::ListBigQueryExportsRequest.new
4529
+ #
4530
+ # # Call the list_big_query_exports method.
4531
+ # result = client.list_big_query_exports request
4532
+ #
4533
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
4534
+ # # over elements, and API calls will be issued to fetch pages as needed.
4535
+ # result.each do |item|
4536
+ # # Each element is of type ::Google::Cloud::SecurityCenter::V1::BigQueryExport.
4537
+ # p item
4538
+ # end
4539
+ #
3778
4540
  def list_big_query_exports request, options = nil
3779
4541
  raise ::ArgumentError, "request must be provided" if request.nil?
3780
4542
 
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module SecurityCenter
23
23
  module V1
24
- VERSION = "0.31.1"
24
+ VERSION = "0.32.0"
25
25
  end
26
26
  end
27
27
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-security_center-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.1
4
+ version: 0.32.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-04 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.1
19
+ version: 0.20.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -303,7 +303,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
303
303
  - !ruby/object:Gem::Version
304
304
  version: '0'
305
305
  requirements: []
306
- rubygems_version: 3.4.2
306
+ rubygems_version: 3.4.19
307
307
  signing_key:
308
308
  specification_version: 4
309
309
  summary: Security Command Center API provides access to temporal views of assets and