google-cloud-security_center-v1p1beta1 0.11.2 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ecc08e003f99544112d3f781b9feaa0983e0cba2ea61ddcd81a4b48bd8f50d2f
4
- data.tar.gz: 810302ce3f4e01c3558271fc3378253fc2401613bfa21001ef34af8d598d9a27
3
+ metadata.gz: 86db7fc959e9992ff6475d26ee9a956f0ec341d3d3accd724cc7f8a35988cabf
4
+ data.tar.gz: 5304790f8097518ac07ad2a8b3d4f71198bd0b25e9759e05d81a5ca4eca86599
5
5
  SHA512:
6
- metadata.gz: c33ec495b10182a7218db7784779fa1f6b1a8c18796261c21b2a1ad866413f5a4f208f65135f16ba285cc885eaaf8c52477e3345a1534cfeaf39b40b6550accf
7
- data.tar.gz: afbfd285e4b3112df7a6eaf3059900165ebb99bce4eabd29246c245bcfd2cb8c2c82e42407d21cca4d28004f9a2911b5243611a9b54ab9aa9d709cb213a2cd6c
6
+ metadata.gz: b540c8a2eee883922021dd48b036c2745c98f66444bc7bafeed530d20eb42854faa2c29a0df14cb443ab0d0ec86b191ce89928de2bccb02e2c68f34e50d2f342
7
+ data.tar.gz: a163757e0ca173a8b8789cb51f392efe261ac50fe7ea9c06e4bdc77fe480e1016db36b741a10067fd09f603c9679d03f32d825c0ab40af90144f5f55128b8818
@@ -223,7 +223,8 @@ module Google
223
223
  credentials: credentials,
224
224
  endpoint: @config.endpoint,
225
225
  channel_args: @config.channel_args,
226
- interceptors: @config.interceptors
226
+ interceptors: @config.interceptors,
227
+ channel_pool_config: @config.channel_pool
227
228
  )
228
229
  end
229
230
 
@@ -2962,6 +2963,14 @@ module Google
2962
2963
  end
2963
2964
  end
2964
2965
 
2966
+ ##
2967
+ # Configuration for the channel pool
2968
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
2969
+ #
2970
+ def channel_pool
2971
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
2972
+ end
2973
+
2965
2974
  ##
2966
2975
  # Configuration RPC class for the SecurityCenter API.
2967
2976
  #
@@ -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
  #
@@ -258,6 +258,22 @@ module Google
258
258
  # @return [::Google::Cloud::SecurityCenter::V1p1beta1::Source]
259
259
  #
260
260
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
261
+ #
262
+ # @example Basic example
263
+ # require "google/cloud/security_center/v1p1beta1"
264
+ #
265
+ # # Create a client object. The client can be reused for multiple calls.
266
+ # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Rest::Client.new
267
+ #
268
+ # # Create a request. To set request fields, pass in keyword arguments.
269
+ # request = Google::Cloud::SecurityCenter::V1p1beta1::CreateSourceRequest.new
270
+ #
271
+ # # Call the create_source method.
272
+ # result = client.create_source request
273
+ #
274
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1p1beta1::Source.
275
+ # p result
276
+ #
261
277
  def create_source request, options = nil
262
278
  raise ::ArgumentError, "request must be provided" if request.nil?
263
279
 
@@ -327,6 +343,22 @@ module Google
327
343
  # @return [::Google::Cloud::SecurityCenter::V1p1beta1::Finding]
328
344
  #
329
345
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
346
+ #
347
+ # @example Basic example
348
+ # require "google/cloud/security_center/v1p1beta1"
349
+ #
350
+ # # Create a client object. The client can be reused for multiple calls.
351
+ # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Rest::Client.new
352
+ #
353
+ # # Create a request. To set request fields, pass in keyword arguments.
354
+ # request = Google::Cloud::SecurityCenter::V1p1beta1::CreateFindingRequest.new
355
+ #
356
+ # # Call the create_finding method.
357
+ # result = client.create_finding request
358
+ #
359
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1p1beta1::Finding.
360
+ # p result
361
+ #
330
362
  def create_finding request, options = nil
331
363
  raise ::ArgumentError, "request must be provided" if request.nil?
332
364
 
@@ -397,6 +429,22 @@ module Google
397
429
  # @return [::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
398
430
  #
399
431
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
432
+ #
433
+ # @example Basic example
434
+ # require "google/cloud/security_center/v1p1beta1"
435
+ #
436
+ # # Create a client object. The client can be reused for multiple calls.
437
+ # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Rest::Client.new
438
+ #
439
+ # # Create a request. To set request fields, pass in keyword arguments.
440
+ # request = Google::Cloud::SecurityCenter::V1p1beta1::CreateNotificationConfigRequest.new
441
+ #
442
+ # # Call the create_notification_config method.
443
+ # result = client.create_notification_config request
444
+ #
445
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig.
446
+ # p result
447
+ #
400
448
  def create_notification_config request, options = nil
401
449
  raise ::ArgumentError, "request must be provided" if request.nil?
402
450
 
@@ -460,6 +508,22 @@ module Google
460
508
  # @return [::Google::Protobuf::Empty]
461
509
  #
462
510
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
511
+ #
512
+ # @example Basic example
513
+ # require "google/cloud/security_center/v1p1beta1"
514
+ #
515
+ # # Create a client object. The client can be reused for multiple calls.
516
+ # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Rest::Client.new
517
+ #
518
+ # # Create a request. To set request fields, pass in keyword arguments.
519
+ # request = Google::Cloud::SecurityCenter::V1p1beta1::DeleteNotificationConfigRequest.new
520
+ #
521
+ # # Call the delete_notification_config method.
522
+ # result = client.delete_notification_config request
523
+ #
524
+ # # The returned object is of type Google::Protobuf::Empty.
525
+ # p result
526
+ #
463
527
  def delete_notification_config request, options = nil
464
528
  raise ::ArgumentError, "request must be provided" if request.nil?
465
529
 
@@ -526,6 +590,22 @@ module Google
526
590
  # @return [::Google::Iam::V1::Policy]
527
591
  #
528
592
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
593
+ #
594
+ # @example Basic example
595
+ # require "google/cloud/security_center/v1p1beta1"
596
+ #
597
+ # # Create a client object. The client can be reused for multiple calls.
598
+ # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Rest::Client.new
599
+ #
600
+ # # Create a request. To set request fields, pass in keyword arguments.
601
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
602
+ #
603
+ # # Call the get_iam_policy method.
604
+ # result = client.get_iam_policy request
605
+ #
606
+ # # The returned object is of type Google::Iam::V1::Policy.
607
+ # p result
608
+ #
529
609
  def get_iam_policy request, options = nil
530
610
  raise ::ArgumentError, "request must be provided" if request.nil?
531
611
 
@@ -589,6 +669,22 @@ module Google
589
669
  # @return [::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
590
670
  #
591
671
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
672
+ #
673
+ # @example Basic example
674
+ # require "google/cloud/security_center/v1p1beta1"
675
+ #
676
+ # # Create a client object. The client can be reused for multiple calls.
677
+ # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Rest::Client.new
678
+ #
679
+ # # Create a request. To set request fields, pass in keyword arguments.
680
+ # request = Google::Cloud::SecurityCenter::V1p1beta1::GetNotificationConfigRequest.new
681
+ #
682
+ # # Call the get_notification_config method.
683
+ # result = client.get_notification_config request
684
+ #
685
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig.
686
+ # p result
687
+ #
592
688
  def get_notification_config request, options = nil
593
689
  raise ::ArgumentError, "request must be provided" if request.nil?
594
690
 
@@ -652,6 +748,22 @@ module Google
652
748
  # @return [::Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings]
653
749
  #
654
750
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
751
+ #
752
+ # @example Basic example
753
+ # require "google/cloud/security_center/v1p1beta1"
754
+ #
755
+ # # Create a client object. The client can be reused for multiple calls.
756
+ # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Rest::Client.new
757
+ #
758
+ # # Create a request. To set request fields, pass in keyword arguments.
759
+ # request = Google::Cloud::SecurityCenter::V1p1beta1::GetOrganizationSettingsRequest.new
760
+ #
761
+ # # Call the get_organization_settings method.
762
+ # result = client.get_organization_settings request
763
+ #
764
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings.
765
+ # p result
766
+ #
655
767
  def get_organization_settings request, options = nil
656
768
  raise ::ArgumentError, "request must be provided" if request.nil?
657
769
 
@@ -715,6 +827,22 @@ module Google
715
827
  # @return [::Google::Cloud::SecurityCenter::V1p1beta1::Source]
716
828
  #
717
829
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
830
+ #
831
+ # @example Basic example
832
+ # require "google/cloud/security_center/v1p1beta1"
833
+ #
834
+ # # Create a client object. The client can be reused for multiple calls.
835
+ # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Rest::Client.new
836
+ #
837
+ # # Create a request. To set request fields, pass in keyword arguments.
838
+ # request = Google::Cloud::SecurityCenter::V1p1beta1::GetSourceRequest.new
839
+ #
840
+ # # Call the get_source method.
841
+ # result = client.get_source request
842
+ #
843
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1p1beta1::Source.
844
+ # p result
845
+ #
718
846
  def get_source request, options = nil
719
847
  raise ::ArgumentError, "request must be provided" if request.nil?
720
848
 
@@ -902,6 +1030,26 @@ module Google
902
1030
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::GroupResult>]
903
1031
  #
904
1032
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1033
+ #
1034
+ # @example Basic example
1035
+ # require "google/cloud/security_center/v1p1beta1"
1036
+ #
1037
+ # # Create a client object. The client can be reused for multiple calls.
1038
+ # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Rest::Client.new
1039
+ #
1040
+ # # Create a request. To set request fields, pass in keyword arguments.
1041
+ # request = Google::Cloud::SecurityCenter::V1p1beta1::GroupAssetsRequest.new
1042
+ #
1043
+ # # Call the group_assets method.
1044
+ # result = client.group_assets request
1045
+ #
1046
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1047
+ # # over elements, and API calls will be issued to fetch pages as needed.
1048
+ # result.each do |item|
1049
+ # # Each element is of type ::Google::Cloud::SecurityCenter::V1p1beta1::GroupResult.
1050
+ # p item
1051
+ # end
1052
+ #
905
1053
  def group_assets request, options = nil
906
1054
  raise ::ArgumentError, "request must be provided" if request.nil?
907
1055
 
@@ -1089,6 +1237,26 @@ module Google
1089
1237
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::GroupResult>]
1090
1238
  #
1091
1239
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1240
+ #
1241
+ # @example Basic example
1242
+ # require "google/cloud/security_center/v1p1beta1"
1243
+ #
1244
+ # # Create a client object. The client can be reused for multiple calls.
1245
+ # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Rest::Client.new
1246
+ #
1247
+ # # Create a request. To set request fields, pass in keyword arguments.
1248
+ # request = Google::Cloud::SecurityCenter::V1p1beta1::GroupFindingsRequest.new
1249
+ #
1250
+ # # Call the group_findings method.
1251
+ # result = client.group_findings request
1252
+ #
1253
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1254
+ # # over elements, and API calls will be issued to fetch pages as needed.
1255
+ # result.each do |item|
1256
+ # # Each element is of type ::Google::Cloud::SecurityCenter::V1p1beta1::GroupResult.
1257
+ # p item
1258
+ # end
1259
+ #
1092
1260
  def group_findings request, options = nil
1093
1261
  raise ::ArgumentError, "request must be provided" if request.nil?
1094
1262
 
@@ -1280,6 +1448,26 @@ module Google
1280
1448
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsResponse::ListAssetsResult>]
1281
1449
  #
1282
1450
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1451
+ #
1452
+ # @example Basic example
1453
+ # require "google/cloud/security_center/v1p1beta1"
1454
+ #
1455
+ # # Create a client object. The client can be reused for multiple calls.
1456
+ # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Rest::Client.new
1457
+ #
1458
+ # # Create a request. To set request fields, pass in keyword arguments.
1459
+ # request = Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsRequest.new
1460
+ #
1461
+ # # Call the list_assets method.
1462
+ # result = client.list_assets request
1463
+ #
1464
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1465
+ # # over elements, and API calls will be issued to fetch pages as needed.
1466
+ # result.each do |item|
1467
+ # # Each element is of type ::Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsResponse::ListAssetsResult.
1468
+ # p item
1469
+ # end
1470
+ #
1283
1471
  def list_assets request, options = nil
1284
1472
  raise ::ArgumentError, "request must be provided" if request.nil?
1285
1473
 
@@ -1468,6 +1656,26 @@ module Google
1468
1656
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsResponse::ListFindingsResult>]
1469
1657
  #
1470
1658
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1659
+ #
1660
+ # @example Basic example
1661
+ # require "google/cloud/security_center/v1p1beta1"
1662
+ #
1663
+ # # Create a client object. The client can be reused for multiple calls.
1664
+ # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Rest::Client.new
1665
+ #
1666
+ # # Create a request. To set request fields, pass in keyword arguments.
1667
+ # request = Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsRequest.new
1668
+ #
1669
+ # # Call the list_findings method.
1670
+ # result = client.list_findings request
1671
+ #
1672
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1673
+ # # over elements, and API calls will be issued to fetch pages as needed.
1674
+ # result.each do |item|
1675
+ # # Each element is of type ::Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsResponse::ListFindingsResult.
1676
+ # p item
1677
+ # end
1678
+ #
1471
1679
  def list_findings request, options = nil
1472
1680
  raise ::ArgumentError, "request must be provided" if request.nil?
1473
1681
 
@@ -1539,6 +1747,26 @@ module Google
1539
1747
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig>]
1540
1748
  #
1541
1749
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1750
+ #
1751
+ # @example Basic example
1752
+ # require "google/cloud/security_center/v1p1beta1"
1753
+ #
1754
+ # # Create a client object. The client can be reused for multiple calls.
1755
+ # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Rest::Client.new
1756
+ #
1757
+ # # Create a request. To set request fields, pass in keyword arguments.
1758
+ # request = Google::Cloud::SecurityCenter::V1p1beta1::ListNotificationConfigsRequest.new
1759
+ #
1760
+ # # Call the list_notification_configs method.
1761
+ # result = client.list_notification_configs request
1762
+ #
1763
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1764
+ # # over elements, and API calls will be issued to fetch pages as needed.
1765
+ # result.each do |item|
1766
+ # # Each element is of type ::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig.
1767
+ # p item
1768
+ # end
1769
+ #
1542
1770
  def list_notification_configs request, options = nil
1543
1771
  raise ::ArgumentError, "request must be provided" if request.nil?
1544
1772
 
@@ -1611,6 +1839,26 @@ module Google
1611
1839
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::Source>]
1612
1840
  #
1613
1841
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1842
+ #
1843
+ # @example Basic example
1844
+ # require "google/cloud/security_center/v1p1beta1"
1845
+ #
1846
+ # # Create a client object. The client can be reused for multiple calls.
1847
+ # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Rest::Client.new
1848
+ #
1849
+ # # Create a request. To set request fields, pass in keyword arguments.
1850
+ # request = Google::Cloud::SecurityCenter::V1p1beta1::ListSourcesRequest.new
1851
+ #
1852
+ # # Call the list_sources method.
1853
+ # result = client.list_sources request
1854
+ #
1855
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1856
+ # # over elements, and API calls will be issued to fetch pages as needed.
1857
+ # result.each do |item|
1858
+ # # Each element is of type ::Google::Cloud::SecurityCenter::V1p1beta1::Source.
1859
+ # p item
1860
+ # end
1861
+ #
1614
1862
  def list_sources request, options = nil
1615
1863
  raise ::ArgumentError, "request must be provided" if request.nil?
1616
1864
 
@@ -1680,6 +1928,29 @@ module Google
1680
1928
  # @return [::Gapic::Operation]
1681
1929
  #
1682
1930
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1931
+ #
1932
+ # @example Basic example
1933
+ # require "google/cloud/security_center/v1p1beta1"
1934
+ #
1935
+ # # Create a client object. The client can be reused for multiple calls.
1936
+ # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Rest::Client.new
1937
+ #
1938
+ # # Create a request. To set request fields, pass in keyword arguments.
1939
+ # request = Google::Cloud::SecurityCenter::V1p1beta1::RunAssetDiscoveryRequest.new
1940
+ #
1941
+ # # Call the run_asset_discovery method.
1942
+ # result = client.run_asset_discovery request
1943
+ #
1944
+ # # The returned object is of type Gapic::Operation. You can use it to
1945
+ # # check the status of an operation, cancel it, or wait for results.
1946
+ # # Here is how to wait for a response.
1947
+ # result.wait_until_done! timeout: 60
1948
+ # if result.response?
1949
+ # p result.response
1950
+ # else
1951
+ # puts "No response received."
1952
+ # end
1953
+ #
1683
1954
  def run_asset_discovery request, options = nil
1684
1955
  raise ::ArgumentError, "request must be provided" if request.nil?
1685
1956
 
@@ -1750,6 +2021,22 @@ module Google
1750
2021
  # @return [::Google::Cloud::SecurityCenter::V1p1beta1::Finding]
1751
2022
  #
1752
2023
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2024
+ #
2025
+ # @example Basic example
2026
+ # require "google/cloud/security_center/v1p1beta1"
2027
+ #
2028
+ # # Create a client object. The client can be reused for multiple calls.
2029
+ # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Rest::Client.new
2030
+ #
2031
+ # # Create a request. To set request fields, pass in keyword arguments.
2032
+ # request = Google::Cloud::SecurityCenter::V1p1beta1::SetFindingStateRequest.new
2033
+ #
2034
+ # # Call the set_finding_state method.
2035
+ # result = client.set_finding_state request
2036
+ #
2037
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1p1beta1::Finding.
2038
+ # p result
2039
+ #
1753
2040
  def set_finding_state request, options = nil
1754
2041
  raise ::ArgumentError, "request must be provided" if request.nil?
1755
2042
 
@@ -1824,6 +2111,22 @@ module Google
1824
2111
  # @return [::Google::Iam::V1::Policy]
1825
2112
  #
1826
2113
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2114
+ #
2115
+ # @example Basic example
2116
+ # require "google/cloud/security_center/v1p1beta1"
2117
+ #
2118
+ # # Create a client object. The client can be reused for multiple calls.
2119
+ # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Rest::Client.new
2120
+ #
2121
+ # # Create a request. To set request fields, pass in keyword arguments.
2122
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
2123
+ #
2124
+ # # Call the set_iam_policy method.
2125
+ # result = client.set_iam_policy request
2126
+ #
2127
+ # # The returned object is of type Google::Iam::V1::Policy.
2128
+ # p result
2129
+ #
1827
2130
  def set_iam_policy request, options = nil
1828
2131
  raise ::ArgumentError, "request must be provided" if request.nil?
1829
2132
 
@@ -1892,6 +2195,22 @@ module Google
1892
2195
  # @return [::Google::Iam::V1::TestIamPermissionsResponse]
1893
2196
  #
1894
2197
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2198
+ #
2199
+ # @example Basic example
2200
+ # require "google/cloud/security_center/v1p1beta1"
2201
+ #
2202
+ # # Create a client object. The client can be reused for multiple calls.
2203
+ # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Rest::Client.new
2204
+ #
2205
+ # # Create a request. To set request fields, pass in keyword arguments.
2206
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
2207
+ #
2208
+ # # Call the test_iam_permissions method.
2209
+ # result = client.test_iam_permissions request
2210
+ #
2211
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
2212
+ # p result
2213
+ #
1895
2214
  def test_iam_permissions request, options = nil
1896
2215
  raise ::ArgumentError, "request must be provided" if request.nil?
1897
2216
 
@@ -1968,6 +2287,22 @@ module Google
1968
2287
  # @return [::Google::Cloud::SecurityCenter::V1p1beta1::Finding]
1969
2288
  #
1970
2289
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2290
+ #
2291
+ # @example Basic example
2292
+ # require "google/cloud/security_center/v1p1beta1"
2293
+ #
2294
+ # # Create a client object. The client can be reused for multiple calls.
2295
+ # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Rest::Client.new
2296
+ #
2297
+ # # Create a request. To set request fields, pass in keyword arguments.
2298
+ # request = Google::Cloud::SecurityCenter::V1p1beta1::UpdateFindingRequest.new
2299
+ #
2300
+ # # Call the update_finding method.
2301
+ # result = client.update_finding request
2302
+ #
2303
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1p1beta1::Finding.
2304
+ # p result
2305
+ #
1971
2306
  def update_finding request, options = nil
1972
2307
  raise ::ArgumentError, "request must be provided" if request.nil?
1973
2308
 
@@ -2035,6 +2370,22 @@ module Google
2035
2370
  # @return [::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
2036
2371
  #
2037
2372
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2373
+ #
2374
+ # @example Basic example
2375
+ # require "google/cloud/security_center/v1p1beta1"
2376
+ #
2377
+ # # Create a client object. The client can be reused for multiple calls.
2378
+ # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Rest::Client.new
2379
+ #
2380
+ # # Create a request. To set request fields, pass in keyword arguments.
2381
+ # request = Google::Cloud::SecurityCenter::V1p1beta1::UpdateNotificationConfigRequest.new
2382
+ #
2383
+ # # Call the update_notification_config method.
2384
+ # result = client.update_notification_config request
2385
+ #
2386
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig.
2387
+ # p result
2388
+ #
2038
2389
  def update_notification_config request, options = nil
2039
2390
  raise ::ArgumentError, "request must be provided" if request.nil?
2040
2391
 
@@ -2101,6 +2452,22 @@ module Google
2101
2452
  # @return [::Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings]
2102
2453
  #
2103
2454
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2455
+ #
2456
+ # @example Basic example
2457
+ # require "google/cloud/security_center/v1p1beta1"
2458
+ #
2459
+ # # Create a client object. The client can be reused for multiple calls.
2460
+ # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Rest::Client.new
2461
+ #
2462
+ # # Create a request. To set request fields, pass in keyword arguments.
2463
+ # request = Google::Cloud::SecurityCenter::V1p1beta1::UpdateOrganizationSettingsRequest.new
2464
+ #
2465
+ # # Call the update_organization_settings method.
2466
+ # result = client.update_organization_settings request
2467
+ #
2468
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings.
2469
+ # p result
2470
+ #
2104
2471
  def update_organization_settings request, options = nil
2105
2472
  raise ::ArgumentError, "request must be provided" if request.nil?
2106
2473
 
@@ -2167,6 +2534,22 @@ module Google
2167
2534
  # @return [::Google::Cloud::SecurityCenter::V1p1beta1::Source]
2168
2535
  #
2169
2536
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2537
+ #
2538
+ # @example Basic example
2539
+ # require "google/cloud/security_center/v1p1beta1"
2540
+ #
2541
+ # # Create a client object. The client can be reused for multiple calls.
2542
+ # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Rest::Client.new
2543
+ #
2544
+ # # Create a request. To set request fields, pass in keyword arguments.
2545
+ # request = Google::Cloud::SecurityCenter::V1p1beta1::UpdateSourceRequest.new
2546
+ #
2547
+ # # Call the update_source method.
2548
+ # result = client.update_source request
2549
+ #
2550
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1p1beta1::Source.
2551
+ # p result
2552
+ #
2170
2553
  def update_source request, options = nil
2171
2554
  raise ::ArgumentError, "request must be provided" if request.nil?
2172
2555
 
@@ -2239,6 +2622,22 @@ module Google
2239
2622
  # @return [::Google::Cloud::SecurityCenter::V1p1beta1::SecurityMarks]
2240
2623
  #
2241
2624
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2625
+ #
2626
+ # @example Basic example
2627
+ # require "google/cloud/security_center/v1p1beta1"
2628
+ #
2629
+ # # Create a client object. The client can be reused for multiple calls.
2630
+ # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Rest::Client.new
2631
+ #
2632
+ # # Create a request. To set request fields, pass in keyword arguments.
2633
+ # request = Google::Cloud::SecurityCenter::V1p1beta1::UpdateSecurityMarksRequest.new
2634
+ #
2635
+ # # Call the update_security_marks method.
2636
+ # result = client.update_security_marks request
2637
+ #
2638
+ # # The returned object is of type Google::Cloud::SecurityCenter::V1p1beta1::SecurityMarks.
2639
+ # p result
2640
+ #
2242
2641
  def update_security_marks request, options = nil
2243
2642
  raise ::ArgumentError, "request must be provided" if request.nil?
2244
2643
 
@@ -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 V1p1beta1
24
- VERSION = "0.11.2"
24
+ VERSION = "0.12.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-v1p1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.12.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
@@ -256,7 +256,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
256
256
  - !ruby/object:Gem::Version
257
257
  version: '0'
258
258
  requirements: []
259
- rubygems_version: 3.4.2
259
+ rubygems_version: 3.4.19
260
260
  signing_key:
261
261
  specification_version: 4
262
262
  summary: Security Command Center API provides access to temporal views of assets and