google-cloud-security_center-v1p1beta1 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/security_center/v1p1beta1/security_center/client.rb +503 -69
- data/lib/google/cloud/security_center/v1p1beta1/security_center/operations.rb +115 -12
- data/lib/google/cloud/security_center/v1p1beta1/version.rb +1 -1
- data/lib/google/cloud/securitycenter/v1p1beta1/asset_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1p1beta1/finding_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1p1beta1/folder_pb.rb +1 -1
- data/lib/google/cloud/securitycenter/v1p1beta1/notification_config_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1p1beta1/notification_message_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1p1beta1/organization_settings_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1p1beta1/resource_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1p1beta1/security_marks_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1p1beta1/securitycenter_service_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1p1beta1/securitycenter_service_services_pb.rb +1 -1
- data/lib/google/cloud/securitycenter/v1p1beta1/source_pb.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5578bc9d410525f6a41973673608d53b92a11276db989f6b7da31e796f55df0f
|
4
|
+
data.tar.gz: 9971bbd9fbe1e6c284cfb63c95435c71b78bff41250f6add2c9be296afc0de48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4e61afb0aa0a996f815711c2fc39b9b6bb31d409e1f494e0f7b8d0d949730576a7c3ae0e3aacb6f8589acf16ba55c797030d2bba4cfb1087b387abe36c8e737
|
7
|
+
data.tar.gz: 0fce8b67898544d298bf52161ed39a311e485b3d1c6aa5fcde09b6b934ea783332072bb3442878aa6c1ecf6de15833aa0b68e0cac0cbd5437740ce9936111da1
|
@@ -268,6 +268,21 @@ module Google
|
|
268
268
|
#
|
269
269
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
270
270
|
#
|
271
|
+
# @example Basic example
|
272
|
+
# require "google/cloud/security_center/v1p1beta1"
|
273
|
+
#
|
274
|
+
# # Create a client object. The client can be reused for multiple calls.
|
275
|
+
# client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
276
|
+
#
|
277
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
278
|
+
# request = Google::Cloud::SecurityCenter::V1p1beta1::CreateSourceRequest.new
|
279
|
+
#
|
280
|
+
# # Call the create_source method.
|
281
|
+
# result = client.create_source request
|
282
|
+
#
|
283
|
+
# # The returned object is of type Google::Cloud::SecurityCenter::V1p1beta1::Source.
|
284
|
+
# p result
|
285
|
+
#
|
271
286
|
def create_source request, options = nil
|
272
287
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
273
288
|
|
@@ -285,9 +300,11 @@ module Google
|
|
285
300
|
gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
|
286
301
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
287
302
|
|
288
|
-
header_params = {
|
289
|
-
|
290
|
-
|
303
|
+
header_params = {}
|
304
|
+
if request.parent
|
305
|
+
header_params["parent"] = request.parent
|
306
|
+
end
|
307
|
+
|
291
308
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
292
309
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
293
310
|
|
@@ -343,6 +360,21 @@ module Google
|
|
343
360
|
#
|
344
361
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
345
362
|
#
|
363
|
+
# @example Basic example
|
364
|
+
# require "google/cloud/security_center/v1p1beta1"
|
365
|
+
#
|
366
|
+
# # Create a client object. The client can be reused for multiple calls.
|
367
|
+
# client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
368
|
+
#
|
369
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
370
|
+
# request = Google::Cloud::SecurityCenter::V1p1beta1::CreateFindingRequest.new
|
371
|
+
#
|
372
|
+
# # Call the create_finding method.
|
373
|
+
# result = client.create_finding request
|
374
|
+
#
|
375
|
+
# # The returned object is of type Google::Cloud::SecurityCenter::V1p1beta1::Finding.
|
376
|
+
# p result
|
377
|
+
#
|
346
378
|
def create_finding request, options = nil
|
347
379
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
348
380
|
|
@@ -360,9 +392,11 @@ module Google
|
|
360
392
|
gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
|
361
393
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
362
394
|
|
363
|
-
header_params = {
|
364
|
-
|
365
|
-
|
395
|
+
header_params = {}
|
396
|
+
if request.parent
|
397
|
+
header_params["parent"] = request.parent
|
398
|
+
end
|
399
|
+
|
366
400
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
367
401
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
368
402
|
|
@@ -419,6 +453,21 @@ module Google
|
|
419
453
|
#
|
420
454
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
421
455
|
#
|
456
|
+
# @example Basic example
|
457
|
+
# require "google/cloud/security_center/v1p1beta1"
|
458
|
+
#
|
459
|
+
# # Create a client object. The client can be reused for multiple calls.
|
460
|
+
# client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
461
|
+
#
|
462
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
463
|
+
# request = Google::Cloud::SecurityCenter::V1p1beta1::CreateNotificationConfigRequest.new
|
464
|
+
#
|
465
|
+
# # Call the create_notification_config method.
|
466
|
+
# result = client.create_notification_config request
|
467
|
+
#
|
468
|
+
# # The returned object is of type Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig.
|
469
|
+
# p result
|
470
|
+
#
|
422
471
|
def create_notification_config request, options = nil
|
423
472
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
424
473
|
|
@@ -436,9 +485,11 @@ module Google
|
|
436
485
|
gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
|
437
486
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
438
487
|
|
439
|
-
header_params = {
|
440
|
-
|
441
|
-
|
488
|
+
header_params = {}
|
489
|
+
if request.parent
|
490
|
+
header_params["parent"] = request.parent
|
491
|
+
end
|
492
|
+
|
442
493
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
443
494
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
444
495
|
|
@@ -488,6 +539,21 @@ module Google
|
|
488
539
|
#
|
489
540
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
490
541
|
#
|
542
|
+
# @example Basic example
|
543
|
+
# require "google/cloud/security_center/v1p1beta1"
|
544
|
+
#
|
545
|
+
# # Create a client object. The client can be reused for multiple calls.
|
546
|
+
# client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
547
|
+
#
|
548
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
549
|
+
# request = Google::Cloud::SecurityCenter::V1p1beta1::DeleteNotificationConfigRequest.new
|
550
|
+
#
|
551
|
+
# # Call the delete_notification_config method.
|
552
|
+
# result = client.delete_notification_config request
|
553
|
+
#
|
554
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
555
|
+
# p result
|
556
|
+
#
|
491
557
|
def delete_notification_config request, options = nil
|
492
558
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
493
559
|
|
@@ -505,9 +571,11 @@ module Google
|
|
505
571
|
gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
|
506
572
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
507
573
|
|
508
|
-
header_params = {
|
509
|
-
|
510
|
-
|
574
|
+
header_params = {}
|
575
|
+
if request.name
|
576
|
+
header_params["name"] = request.name
|
577
|
+
end
|
578
|
+
|
511
579
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
512
580
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
513
581
|
|
@@ -560,6 +628,21 @@ module Google
|
|
560
628
|
#
|
561
629
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
562
630
|
#
|
631
|
+
# @example Basic example
|
632
|
+
# require "google/cloud/security_center/v1p1beta1"
|
633
|
+
#
|
634
|
+
# # Create a client object. The client can be reused for multiple calls.
|
635
|
+
# client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
636
|
+
#
|
637
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
638
|
+
# request = Google::Iam::V1::GetIamPolicyRequest.new
|
639
|
+
#
|
640
|
+
# # Call the get_iam_policy method.
|
641
|
+
# result = client.get_iam_policy request
|
642
|
+
#
|
643
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
644
|
+
# p result
|
645
|
+
#
|
563
646
|
def get_iam_policy request, options = nil
|
564
647
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
565
648
|
|
@@ -577,9 +660,11 @@ module Google
|
|
577
660
|
gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
|
578
661
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
579
662
|
|
580
|
-
header_params = {
|
581
|
-
|
582
|
-
|
663
|
+
header_params = {}
|
664
|
+
if request.resource
|
665
|
+
header_params["resource"] = request.resource
|
666
|
+
end
|
667
|
+
|
583
668
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
584
669
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
585
670
|
|
@@ -629,6 +714,21 @@ module Google
|
|
629
714
|
#
|
630
715
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
631
716
|
#
|
717
|
+
# @example Basic example
|
718
|
+
# require "google/cloud/security_center/v1p1beta1"
|
719
|
+
#
|
720
|
+
# # Create a client object. The client can be reused for multiple calls.
|
721
|
+
# client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
722
|
+
#
|
723
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
724
|
+
# request = Google::Cloud::SecurityCenter::V1p1beta1::GetNotificationConfigRequest.new
|
725
|
+
#
|
726
|
+
# # Call the get_notification_config method.
|
727
|
+
# result = client.get_notification_config request
|
728
|
+
#
|
729
|
+
# # The returned object is of type Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig.
|
730
|
+
# p result
|
731
|
+
#
|
632
732
|
def get_notification_config request, options = nil
|
633
733
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
634
734
|
|
@@ -646,9 +746,11 @@ module Google
|
|
646
746
|
gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
|
647
747
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
648
748
|
|
649
|
-
header_params = {
|
650
|
-
|
651
|
-
|
749
|
+
header_params = {}
|
750
|
+
if request.name
|
751
|
+
header_params["name"] = request.name
|
752
|
+
end
|
753
|
+
|
652
754
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
653
755
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
654
756
|
|
@@ -698,6 +800,21 @@ module Google
|
|
698
800
|
#
|
699
801
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
700
802
|
#
|
803
|
+
# @example Basic example
|
804
|
+
# require "google/cloud/security_center/v1p1beta1"
|
805
|
+
#
|
806
|
+
# # Create a client object. The client can be reused for multiple calls.
|
807
|
+
# client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
808
|
+
#
|
809
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
810
|
+
# request = Google::Cloud::SecurityCenter::V1p1beta1::GetOrganizationSettingsRequest.new
|
811
|
+
#
|
812
|
+
# # Call the get_organization_settings method.
|
813
|
+
# result = client.get_organization_settings request
|
814
|
+
#
|
815
|
+
# # The returned object is of type Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings.
|
816
|
+
# p result
|
817
|
+
#
|
701
818
|
def get_organization_settings request, options = nil
|
702
819
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
703
820
|
|
@@ -715,9 +832,11 @@ module Google
|
|
715
832
|
gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
|
716
833
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
717
834
|
|
718
|
-
header_params = {
|
719
|
-
|
720
|
-
|
835
|
+
header_params = {}
|
836
|
+
if request.name
|
837
|
+
header_params["name"] = request.name
|
838
|
+
end
|
839
|
+
|
721
840
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
722
841
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
723
842
|
|
@@ -767,6 +886,21 @@ module Google
|
|
767
886
|
#
|
768
887
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
769
888
|
#
|
889
|
+
# @example Basic example
|
890
|
+
# require "google/cloud/security_center/v1p1beta1"
|
891
|
+
#
|
892
|
+
# # Create a client object. The client can be reused for multiple calls.
|
893
|
+
# client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
894
|
+
#
|
895
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
896
|
+
# request = Google::Cloud::SecurityCenter::V1p1beta1::GetSourceRequest.new
|
897
|
+
#
|
898
|
+
# # Call the get_source method.
|
899
|
+
# result = client.get_source request
|
900
|
+
#
|
901
|
+
# # The returned object is of type Google::Cloud::SecurityCenter::V1p1beta1::Source.
|
902
|
+
# p result
|
903
|
+
#
|
770
904
|
def get_source request, options = nil
|
771
905
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
772
906
|
|
@@ -784,9 +918,11 @@ module Google
|
|
784
918
|
gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
|
785
919
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
786
920
|
|
787
|
-
header_params = {
|
788
|
-
|
789
|
-
|
921
|
+
header_params = {}
|
922
|
+
if request.name
|
923
|
+
header_params["name"] = request.name
|
924
|
+
end
|
925
|
+
|
790
926
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
791
927
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
792
928
|
|
@@ -960,6 +1096,27 @@ module Google
|
|
960
1096
|
#
|
961
1097
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
962
1098
|
#
|
1099
|
+
# @example Basic example
|
1100
|
+
# require "google/cloud/security_center/v1p1beta1"
|
1101
|
+
#
|
1102
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1103
|
+
# client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
1104
|
+
#
|
1105
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1106
|
+
# request = Google::Cloud::SecurityCenter::V1p1beta1::GroupAssetsRequest.new
|
1107
|
+
#
|
1108
|
+
# # Call the group_assets method.
|
1109
|
+
# result = client.group_assets request
|
1110
|
+
#
|
1111
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1112
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1113
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1114
|
+
# # methods are also available for managing paging directly.
|
1115
|
+
# result.each do |response|
|
1116
|
+
# # Each element is of type ::Google::Cloud::SecurityCenter::V1p1beta1::GroupResult.
|
1117
|
+
# p response
|
1118
|
+
# end
|
1119
|
+
#
|
963
1120
|
def group_assets request, options = nil
|
964
1121
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
965
1122
|
|
@@ -977,9 +1134,11 @@ module Google
|
|
977
1134
|
gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
|
978
1135
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
979
1136
|
|
980
|
-
header_params = {
|
981
|
-
|
982
|
-
|
1137
|
+
header_params = {}
|
1138
|
+
if request.parent
|
1139
|
+
header_params["parent"] = request.parent
|
1140
|
+
end
|
1141
|
+
|
983
1142
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
984
1143
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
985
1144
|
|
@@ -1153,6 +1312,27 @@ module Google
|
|
1153
1312
|
#
|
1154
1313
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1155
1314
|
#
|
1315
|
+
# @example Basic example
|
1316
|
+
# require "google/cloud/security_center/v1p1beta1"
|
1317
|
+
#
|
1318
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1319
|
+
# client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
1320
|
+
#
|
1321
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1322
|
+
# request = Google::Cloud::SecurityCenter::V1p1beta1::GroupFindingsRequest.new
|
1323
|
+
#
|
1324
|
+
# # Call the group_findings method.
|
1325
|
+
# result = client.group_findings request
|
1326
|
+
#
|
1327
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1328
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1329
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1330
|
+
# # methods are also available for managing paging directly.
|
1331
|
+
# result.each do |response|
|
1332
|
+
# # Each element is of type ::Google::Cloud::SecurityCenter::V1p1beta1::GroupResult.
|
1333
|
+
# p response
|
1334
|
+
# end
|
1335
|
+
#
|
1156
1336
|
def group_findings request, options = nil
|
1157
1337
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1158
1338
|
|
@@ -1170,9 +1350,11 @@ module Google
|
|
1170
1350
|
gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
|
1171
1351
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1172
1352
|
|
1173
|
-
header_params = {
|
1174
|
-
|
1175
|
-
|
1353
|
+
header_params = {}
|
1354
|
+
if request.parent
|
1355
|
+
header_params["parent"] = request.parent
|
1356
|
+
end
|
1357
|
+
|
1176
1358
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1177
1359
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1178
1360
|
|
@@ -1350,6 +1532,27 @@ module Google
|
|
1350
1532
|
#
|
1351
1533
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1352
1534
|
#
|
1535
|
+
# @example Basic example
|
1536
|
+
# require "google/cloud/security_center/v1p1beta1"
|
1537
|
+
#
|
1538
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1539
|
+
# client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
1540
|
+
#
|
1541
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1542
|
+
# request = Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsRequest.new
|
1543
|
+
#
|
1544
|
+
# # Call the list_assets method.
|
1545
|
+
# result = client.list_assets request
|
1546
|
+
#
|
1547
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1548
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1549
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1550
|
+
# # methods are also available for managing paging directly.
|
1551
|
+
# result.each do |response|
|
1552
|
+
# # Each element is of type ::Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsResponse::ListAssetsResult.
|
1553
|
+
# p response
|
1554
|
+
# end
|
1555
|
+
#
|
1353
1556
|
def list_assets request, options = nil
|
1354
1557
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1355
1558
|
|
@@ -1367,9 +1570,11 @@ module Google
|
|
1367
1570
|
gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
|
1368
1571
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1369
1572
|
|
1370
|
-
header_params = {
|
1371
|
-
|
1372
|
-
|
1573
|
+
header_params = {}
|
1574
|
+
if request.parent
|
1575
|
+
header_params["parent"] = request.parent
|
1576
|
+
end
|
1577
|
+
|
1373
1578
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1374
1579
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1375
1580
|
|
@@ -1544,6 +1749,27 @@ module Google
|
|
1544
1749
|
#
|
1545
1750
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1546
1751
|
#
|
1752
|
+
# @example Basic example
|
1753
|
+
# require "google/cloud/security_center/v1p1beta1"
|
1754
|
+
#
|
1755
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1756
|
+
# client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
1757
|
+
#
|
1758
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1759
|
+
# request = Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsRequest.new
|
1760
|
+
#
|
1761
|
+
# # Call the list_findings method.
|
1762
|
+
# result = client.list_findings request
|
1763
|
+
#
|
1764
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1765
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1766
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1767
|
+
# # methods are also available for managing paging directly.
|
1768
|
+
# result.each do |response|
|
1769
|
+
# # Each element is of type ::Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsResponse::ListFindingsResult.
|
1770
|
+
# p response
|
1771
|
+
# end
|
1772
|
+
#
|
1547
1773
|
def list_findings request, options = nil
|
1548
1774
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1549
1775
|
|
@@ -1561,9 +1787,11 @@ module Google
|
|
1561
1787
|
gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
|
1562
1788
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1563
1789
|
|
1564
|
-
header_params = {
|
1565
|
-
|
1566
|
-
|
1790
|
+
header_params = {}
|
1791
|
+
if request.parent
|
1792
|
+
header_params["parent"] = request.parent
|
1793
|
+
end
|
1794
|
+
|
1567
1795
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1568
1796
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1569
1797
|
|
@@ -1621,6 +1849,27 @@ module Google
|
|
1621
1849
|
#
|
1622
1850
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1623
1851
|
#
|
1852
|
+
# @example Basic example
|
1853
|
+
# require "google/cloud/security_center/v1p1beta1"
|
1854
|
+
#
|
1855
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1856
|
+
# client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
1857
|
+
#
|
1858
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1859
|
+
# request = Google::Cloud::SecurityCenter::V1p1beta1::ListNotificationConfigsRequest.new
|
1860
|
+
#
|
1861
|
+
# # Call the list_notification_configs method.
|
1862
|
+
# result = client.list_notification_configs request
|
1863
|
+
#
|
1864
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1865
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1866
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1867
|
+
# # methods are also available for managing paging directly.
|
1868
|
+
# result.each do |response|
|
1869
|
+
# # Each element is of type ::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig.
|
1870
|
+
# p response
|
1871
|
+
# end
|
1872
|
+
#
|
1624
1873
|
def list_notification_configs request, options = nil
|
1625
1874
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1626
1875
|
|
@@ -1638,9 +1887,11 @@ module Google
|
|
1638
1887
|
gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
|
1639
1888
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1640
1889
|
|
1641
|
-
header_params = {
|
1642
|
-
|
1643
|
-
|
1890
|
+
header_params = {}
|
1891
|
+
if request.parent
|
1892
|
+
header_params["parent"] = request.parent
|
1893
|
+
end
|
1894
|
+
|
1644
1895
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1645
1896
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1646
1897
|
|
@@ -1699,6 +1950,27 @@ module Google
|
|
1699
1950
|
#
|
1700
1951
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1701
1952
|
#
|
1953
|
+
# @example Basic example
|
1954
|
+
# require "google/cloud/security_center/v1p1beta1"
|
1955
|
+
#
|
1956
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1957
|
+
# client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
1958
|
+
#
|
1959
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1960
|
+
# request = Google::Cloud::SecurityCenter::V1p1beta1::ListSourcesRequest.new
|
1961
|
+
#
|
1962
|
+
# # Call the list_sources method.
|
1963
|
+
# result = client.list_sources request
|
1964
|
+
#
|
1965
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1966
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1967
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1968
|
+
# # methods are also available for managing paging directly.
|
1969
|
+
# result.each do |response|
|
1970
|
+
# # Each element is of type ::Google::Cloud::SecurityCenter::V1p1beta1::Source.
|
1971
|
+
# p response
|
1972
|
+
# end
|
1973
|
+
#
|
1702
1974
|
def list_sources request, options = nil
|
1703
1975
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1704
1976
|
|
@@ -1716,9 +1988,11 @@ module Google
|
|
1716
1988
|
gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
|
1717
1989
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1718
1990
|
|
1719
|
-
header_params = {
|
1720
|
-
|
1721
|
-
|
1991
|
+
header_params = {}
|
1992
|
+
if request.parent
|
1993
|
+
header_params["parent"] = request.parent
|
1994
|
+
end
|
1995
|
+
|
1722
1996
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1723
1997
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1724
1998
|
|
@@ -1774,6 +2048,28 @@ module Google
|
|
1774
2048
|
#
|
1775
2049
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1776
2050
|
#
|
2051
|
+
# @example Basic example
|
2052
|
+
# require "google/cloud/security_center/v1p1beta1"
|
2053
|
+
#
|
2054
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2055
|
+
# client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
2056
|
+
#
|
2057
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2058
|
+
# request = Google::Cloud::SecurityCenter::V1p1beta1::RunAssetDiscoveryRequest.new
|
2059
|
+
#
|
2060
|
+
# # Call the run_asset_discovery method.
|
2061
|
+
# result = client.run_asset_discovery request
|
2062
|
+
#
|
2063
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
2064
|
+
# # object to check the status of an operation, cancel it, or wait
|
2065
|
+
# # for results. Here is how to block until completion:
|
2066
|
+
# result.wait_until_done! timeout: 60
|
2067
|
+
# if result.response?
|
2068
|
+
# p result.response
|
2069
|
+
# else
|
2070
|
+
# puts "Error!"
|
2071
|
+
# end
|
2072
|
+
#
|
1777
2073
|
def run_asset_discovery request, options = nil
|
1778
2074
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1779
2075
|
|
@@ -1791,9 +2087,11 @@ module Google
|
|
1791
2087
|
gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
|
1792
2088
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1793
2089
|
|
1794
|
-
header_params = {
|
1795
|
-
|
1796
|
-
|
2090
|
+
header_params = {}
|
2091
|
+
if request.parent
|
2092
|
+
header_params["parent"] = request.parent
|
2093
|
+
end
|
2094
|
+
|
1797
2095
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1798
2096
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1799
2097
|
|
@@ -1850,6 +2148,21 @@ module Google
|
|
1850
2148
|
#
|
1851
2149
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1852
2150
|
#
|
2151
|
+
# @example Basic example
|
2152
|
+
# require "google/cloud/security_center/v1p1beta1"
|
2153
|
+
#
|
2154
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2155
|
+
# client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
2156
|
+
#
|
2157
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2158
|
+
# request = Google::Cloud::SecurityCenter::V1p1beta1::SetFindingStateRequest.new
|
2159
|
+
#
|
2160
|
+
# # Call the set_finding_state method.
|
2161
|
+
# result = client.set_finding_state request
|
2162
|
+
#
|
2163
|
+
# # The returned object is of type Google::Cloud::SecurityCenter::V1p1beta1::Finding.
|
2164
|
+
# p result
|
2165
|
+
#
|
1853
2166
|
def set_finding_state request, options = nil
|
1854
2167
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1855
2168
|
|
@@ -1867,9 +2180,11 @@ module Google
|
|
1867
2180
|
gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
|
1868
2181
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1869
2182
|
|
1870
|
-
header_params = {
|
1871
|
-
|
1872
|
-
|
2183
|
+
header_params = {}
|
2184
|
+
if request.name
|
2185
|
+
header_params["name"] = request.name
|
2186
|
+
end
|
2187
|
+
|
1873
2188
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1874
2189
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1875
2190
|
|
@@ -1924,6 +2239,21 @@ module Google
|
|
1924
2239
|
#
|
1925
2240
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1926
2241
|
#
|
2242
|
+
# @example Basic example
|
2243
|
+
# require "google/cloud/security_center/v1p1beta1"
|
2244
|
+
#
|
2245
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2246
|
+
# client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
2247
|
+
#
|
2248
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2249
|
+
# request = Google::Iam::V1::SetIamPolicyRequest.new
|
2250
|
+
#
|
2251
|
+
# # Call the set_iam_policy method.
|
2252
|
+
# result = client.set_iam_policy request
|
2253
|
+
#
|
2254
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
2255
|
+
# p result
|
2256
|
+
#
|
1927
2257
|
def set_iam_policy request, options = nil
|
1928
2258
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1929
2259
|
|
@@ -1941,9 +2271,11 @@ module Google
|
|
1941
2271
|
gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
|
1942
2272
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1943
2273
|
|
1944
|
-
header_params = {
|
1945
|
-
|
1946
|
-
|
2274
|
+
header_params = {}
|
2275
|
+
if request.resource
|
2276
|
+
header_params["resource"] = request.resource
|
2277
|
+
end
|
2278
|
+
|
1947
2279
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1948
2280
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1949
2281
|
|
@@ -1998,6 +2330,21 @@ module Google
|
|
1998
2330
|
#
|
1999
2331
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2000
2332
|
#
|
2333
|
+
# @example Basic example
|
2334
|
+
# require "google/cloud/security_center/v1p1beta1"
|
2335
|
+
#
|
2336
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2337
|
+
# client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
2338
|
+
#
|
2339
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2340
|
+
# request = Google::Iam::V1::TestIamPermissionsRequest.new
|
2341
|
+
#
|
2342
|
+
# # Call the test_iam_permissions method.
|
2343
|
+
# result = client.test_iam_permissions request
|
2344
|
+
#
|
2345
|
+
# # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
|
2346
|
+
# p result
|
2347
|
+
#
|
2001
2348
|
def test_iam_permissions request, options = nil
|
2002
2349
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2003
2350
|
|
@@ -2015,9 +2362,11 @@ module Google
|
|
2015
2362
|
gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
|
2016
2363
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2017
2364
|
|
2018
|
-
header_params = {
|
2019
|
-
|
2020
|
-
|
2365
|
+
header_params = {}
|
2366
|
+
if request.resource
|
2367
|
+
header_params["resource"] = request.resource
|
2368
|
+
end
|
2369
|
+
|
2021
2370
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2022
2371
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2023
2372
|
|
@@ -2080,6 +2429,21 @@ module Google
|
|
2080
2429
|
#
|
2081
2430
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2082
2431
|
#
|
2432
|
+
# @example Basic example
|
2433
|
+
# require "google/cloud/security_center/v1p1beta1"
|
2434
|
+
#
|
2435
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2436
|
+
# client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
2437
|
+
#
|
2438
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2439
|
+
# request = Google::Cloud::SecurityCenter::V1p1beta1::UpdateFindingRequest.new
|
2440
|
+
#
|
2441
|
+
# # Call the update_finding method.
|
2442
|
+
# result = client.update_finding request
|
2443
|
+
#
|
2444
|
+
# # The returned object is of type Google::Cloud::SecurityCenter::V1p1beta1::Finding.
|
2445
|
+
# p result
|
2446
|
+
#
|
2083
2447
|
def update_finding request, options = nil
|
2084
2448
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2085
2449
|
|
@@ -2097,9 +2461,11 @@ module Google
|
|
2097
2461
|
gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
|
2098
2462
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2099
2463
|
|
2100
|
-
header_params = {
|
2101
|
-
|
2102
|
-
|
2464
|
+
header_params = {}
|
2465
|
+
if request.finding&.name
|
2466
|
+
header_params["finding.name"] = request.finding.name
|
2467
|
+
end
|
2468
|
+
|
2103
2469
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2104
2470
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2105
2471
|
|
@@ -2153,6 +2519,21 @@ module Google
|
|
2153
2519
|
#
|
2154
2520
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2155
2521
|
#
|
2522
|
+
# @example Basic example
|
2523
|
+
# require "google/cloud/security_center/v1p1beta1"
|
2524
|
+
#
|
2525
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2526
|
+
# client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
2527
|
+
#
|
2528
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2529
|
+
# request = Google::Cloud::SecurityCenter::V1p1beta1::UpdateNotificationConfigRequest.new
|
2530
|
+
#
|
2531
|
+
# # Call the update_notification_config method.
|
2532
|
+
# result = client.update_notification_config request
|
2533
|
+
#
|
2534
|
+
# # The returned object is of type Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig.
|
2535
|
+
# p result
|
2536
|
+
#
|
2156
2537
|
def update_notification_config request, options = nil
|
2157
2538
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2158
2539
|
|
@@ -2170,9 +2551,11 @@ module Google
|
|
2170
2551
|
gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
|
2171
2552
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2172
2553
|
|
2173
|
-
header_params = {
|
2174
|
-
|
2175
|
-
|
2554
|
+
header_params = {}
|
2555
|
+
if request.notification_config&.name
|
2556
|
+
header_params["notification_config.name"] = request.notification_config.name
|
2557
|
+
end
|
2558
|
+
|
2176
2559
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2177
2560
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2178
2561
|
|
@@ -2225,6 +2608,21 @@ module Google
|
|
2225
2608
|
#
|
2226
2609
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2227
2610
|
#
|
2611
|
+
# @example Basic example
|
2612
|
+
# require "google/cloud/security_center/v1p1beta1"
|
2613
|
+
#
|
2614
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2615
|
+
# client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
2616
|
+
#
|
2617
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2618
|
+
# request = Google::Cloud::SecurityCenter::V1p1beta1::UpdateOrganizationSettingsRequest.new
|
2619
|
+
#
|
2620
|
+
# # Call the update_organization_settings method.
|
2621
|
+
# result = client.update_organization_settings request
|
2622
|
+
#
|
2623
|
+
# # The returned object is of type Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings.
|
2624
|
+
# p result
|
2625
|
+
#
|
2228
2626
|
def update_organization_settings request, options = nil
|
2229
2627
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2230
2628
|
|
@@ -2242,9 +2640,11 @@ module Google
|
|
2242
2640
|
gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
|
2243
2641
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2244
2642
|
|
2245
|
-
header_params = {
|
2246
|
-
|
2247
|
-
|
2643
|
+
header_params = {}
|
2644
|
+
if request.organization_settings&.name
|
2645
|
+
header_params["organization_settings.name"] = request.organization_settings.name
|
2646
|
+
end
|
2647
|
+
|
2248
2648
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2249
2649
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2250
2650
|
|
@@ -2297,6 +2697,21 @@ module Google
|
|
2297
2697
|
#
|
2298
2698
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2299
2699
|
#
|
2700
|
+
# @example Basic example
|
2701
|
+
# require "google/cloud/security_center/v1p1beta1"
|
2702
|
+
#
|
2703
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2704
|
+
# client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
2705
|
+
#
|
2706
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2707
|
+
# request = Google::Cloud::SecurityCenter::V1p1beta1::UpdateSourceRequest.new
|
2708
|
+
#
|
2709
|
+
# # Call the update_source method.
|
2710
|
+
# result = client.update_source request
|
2711
|
+
#
|
2712
|
+
# # The returned object is of type Google::Cloud::SecurityCenter::V1p1beta1::Source.
|
2713
|
+
# p result
|
2714
|
+
#
|
2300
2715
|
def update_source request, options = nil
|
2301
2716
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2302
2717
|
|
@@ -2314,9 +2729,11 @@ module Google
|
|
2314
2729
|
gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
|
2315
2730
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2316
2731
|
|
2317
|
-
header_params = {
|
2318
|
-
|
2319
|
-
|
2732
|
+
header_params = {}
|
2733
|
+
if request.source&.name
|
2734
|
+
header_params["source.name"] = request.source.name
|
2735
|
+
end
|
2736
|
+
|
2320
2737
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2321
2738
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2322
2739
|
|
@@ -2375,6 +2792,21 @@ module Google
|
|
2375
2792
|
#
|
2376
2793
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2377
2794
|
#
|
2795
|
+
# @example Basic example
|
2796
|
+
# require "google/cloud/security_center/v1p1beta1"
|
2797
|
+
#
|
2798
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2799
|
+
# client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
2800
|
+
#
|
2801
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2802
|
+
# request = Google::Cloud::SecurityCenter::V1p1beta1::UpdateSecurityMarksRequest.new
|
2803
|
+
#
|
2804
|
+
# # Call the update_security_marks method.
|
2805
|
+
# result = client.update_security_marks request
|
2806
|
+
#
|
2807
|
+
# # The returned object is of type Google::Cloud::SecurityCenter::V1p1beta1::SecurityMarks.
|
2808
|
+
# p result
|
2809
|
+
#
|
2378
2810
|
def update_security_marks request, options = nil
|
2379
2811
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2380
2812
|
|
@@ -2392,9 +2824,11 @@ module Google
|
|
2392
2824
|
gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
|
2393
2825
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2394
2826
|
|
2395
|
-
header_params = {
|
2396
|
-
|
2397
|
-
|
2827
|
+
header_params = {}
|
2828
|
+
if request.security_marks&.name
|
2829
|
+
header_params["security_marks.name"] = request.security_marks.name
|
2830
|
+
end
|
2831
|
+
|
2398
2832
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2399
2833
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2400
2834
|
|
@@ -143,6 +143,27 @@ module Google
|
|
143
143
|
#
|
144
144
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
145
145
|
#
|
146
|
+
# @example Basic example
|
147
|
+
# require "google/longrunning"
|
148
|
+
#
|
149
|
+
# # Create a client object. The client can be reused for multiple calls.
|
150
|
+
# client = Google::Longrunning::Operations::Client.new
|
151
|
+
#
|
152
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
153
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
154
|
+
#
|
155
|
+
# # Call the list_operations method.
|
156
|
+
# result = client.list_operations request
|
157
|
+
#
|
158
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
159
|
+
# # iterate over all elements by calling #each, and the enumerable
|
160
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
161
|
+
# # methods are also available for managing paging directly.
|
162
|
+
# result.each do |response|
|
163
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
164
|
+
# p response
|
165
|
+
# end
|
166
|
+
#
|
146
167
|
def list_operations request, options = nil
|
147
168
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
148
169
|
|
@@ -160,9 +181,11 @@ module Google
|
|
160
181
|
gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
|
161
182
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
162
183
|
|
163
|
-
header_params = {
|
164
|
-
|
165
|
-
|
184
|
+
header_params = {}
|
185
|
+
if request.name
|
186
|
+
header_params["name"] = request.name
|
187
|
+
end
|
188
|
+
|
166
189
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
167
190
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
168
191
|
|
@@ -215,6 +238,28 @@ module Google
|
|
215
238
|
#
|
216
239
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
217
240
|
#
|
241
|
+
# @example Basic example
|
242
|
+
# require "google/longrunning"
|
243
|
+
#
|
244
|
+
# # Create a client object. The client can be reused for multiple calls.
|
245
|
+
# client = Google::Longrunning::Operations::Client.new
|
246
|
+
#
|
247
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
248
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
249
|
+
#
|
250
|
+
# # Call the get_operation method.
|
251
|
+
# result = client.get_operation request
|
252
|
+
#
|
253
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
254
|
+
# # object to check the status of an operation, cancel it, or wait
|
255
|
+
# # for results. Here is how to block until completion:
|
256
|
+
# result.wait_until_done! timeout: 60
|
257
|
+
# if result.response?
|
258
|
+
# p result.response
|
259
|
+
# else
|
260
|
+
# puts "Error!"
|
261
|
+
# end
|
262
|
+
#
|
218
263
|
def get_operation request, options = nil
|
219
264
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
220
265
|
|
@@ -232,9 +277,11 @@ module Google
|
|
232
277
|
gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
|
233
278
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
234
279
|
|
235
|
-
header_params = {
|
236
|
-
|
237
|
-
|
280
|
+
header_params = {}
|
281
|
+
if request.name
|
282
|
+
header_params["name"] = request.name
|
283
|
+
end
|
284
|
+
|
238
285
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
239
286
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
240
287
|
|
@@ -287,6 +334,21 @@ module Google
|
|
287
334
|
#
|
288
335
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
289
336
|
#
|
337
|
+
# @example Basic example
|
338
|
+
# require "google/longrunning"
|
339
|
+
#
|
340
|
+
# # Create a client object. The client can be reused for multiple calls.
|
341
|
+
# client = Google::Longrunning::Operations::Client.new
|
342
|
+
#
|
343
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
344
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
345
|
+
#
|
346
|
+
# # Call the delete_operation method.
|
347
|
+
# result = client.delete_operation request
|
348
|
+
#
|
349
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
350
|
+
# p result
|
351
|
+
#
|
290
352
|
def delete_operation request, options = nil
|
291
353
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
292
354
|
|
@@ -304,9 +366,11 @@ module Google
|
|
304
366
|
gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
|
305
367
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
306
368
|
|
307
|
-
header_params = {
|
308
|
-
|
309
|
-
|
369
|
+
header_params = {}
|
370
|
+
if request.name
|
371
|
+
header_params["name"] = request.name
|
372
|
+
end
|
373
|
+
|
310
374
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
311
375
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
312
376
|
|
@@ -364,6 +428,21 @@ module Google
|
|
364
428
|
#
|
365
429
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
366
430
|
#
|
431
|
+
# @example Basic example
|
432
|
+
# require "google/longrunning"
|
433
|
+
#
|
434
|
+
# # Create a client object. The client can be reused for multiple calls.
|
435
|
+
# client = Google::Longrunning::Operations::Client.new
|
436
|
+
#
|
437
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
438
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
439
|
+
#
|
440
|
+
# # Call the cancel_operation method.
|
441
|
+
# result = client.cancel_operation request
|
442
|
+
#
|
443
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
444
|
+
# p result
|
445
|
+
#
|
367
446
|
def cancel_operation request, options = nil
|
368
447
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
369
448
|
|
@@ -381,9 +460,11 @@ module Google
|
|
381
460
|
gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
|
382
461
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
383
462
|
|
384
|
-
header_params = {
|
385
|
-
|
386
|
-
|
463
|
+
header_params = {}
|
464
|
+
if request.name
|
465
|
+
header_params["name"] = request.name
|
466
|
+
end
|
467
|
+
|
387
468
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
388
469
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
389
470
|
|
@@ -444,6 +525,28 @@ module Google
|
|
444
525
|
#
|
445
526
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
446
527
|
#
|
528
|
+
# @example Basic example
|
529
|
+
# require "google/longrunning"
|
530
|
+
#
|
531
|
+
# # Create a client object. The client can be reused for multiple calls.
|
532
|
+
# client = Google::Longrunning::Operations::Client.new
|
533
|
+
#
|
534
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
535
|
+
# request = Google::Longrunning::WaitOperationRequest.new
|
536
|
+
#
|
537
|
+
# # Call the wait_operation method.
|
538
|
+
# result = client.wait_operation request
|
539
|
+
#
|
540
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
541
|
+
# # object to check the status of an operation, cancel it, or wait
|
542
|
+
# # for results. Here is how to block until completion:
|
543
|
+
# result.wait_until_done! timeout: 60
|
544
|
+
# if result.response?
|
545
|
+
# p result.response
|
546
|
+
# else
|
547
|
+
# puts "Error!"
|
548
|
+
# end
|
549
|
+
#
|
447
550
|
def wait_operation request, options = nil
|
448
551
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
449
552
|
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/securitycenter/v1p1beta1/asset.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/resource_pb'
|
7
5
|
require 'google/cloud/securitycenter/v1p1beta1/folder_pb'
|
8
6
|
require 'google/cloud/securitycenter/v1p1beta1/security_marks_pb'
|
9
7
|
require 'google/protobuf/struct_pb'
|
10
8
|
require 'google/protobuf/timestamp_pb'
|
11
9
|
require 'google/api/annotations_pb'
|
10
|
+
require 'google/protobuf'
|
11
|
+
|
12
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
13
|
add_file("google/cloud/securitycenter/v1p1beta1/asset.proto", :syntax => :proto3) do
|
14
14
|
add_message "google.cloud.securitycenter.v1p1beta1.Asset" do
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/securitycenter/v1p1beta1/finding.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/resource_pb'
|
8
6
|
require 'google/cloud/securitycenter/v1p1beta1/security_marks_pb'
|
9
7
|
require 'google/protobuf/struct_pb'
|
10
8
|
require 'google/protobuf/timestamp_pb'
|
11
9
|
require 'google/api/annotations_pb'
|
10
|
+
require 'google/protobuf'
|
11
|
+
|
12
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
13
|
add_file("google/cloud/securitycenter/v1p1beta1/finding.proto", :syntax => :proto3) do
|
14
14
|
add_message "google.cloud.securitycenter.v1p1beta1.Finding" do
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/securitycenter/v1p1beta1/folder.proto
|
3
3
|
|
4
|
+
require 'google/api/annotations_pb'
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'google/api/annotations_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("google/cloud/securitycenter/v1p1beta1/folder.proto", :syntax => :proto3) do
|
9
9
|
add_message "google.cloud.securitycenter.v1p1beta1.Folder" do
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/securitycenter/v1p1beta1/notification_config.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/resource_pb'
|
8
6
|
require 'google/api/annotations_pb'
|
7
|
+
require 'google/protobuf'
|
8
|
+
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_file("google/cloud/securitycenter/v1p1beta1/notification_config.proto", :syntax => :proto3) do
|
11
11
|
add_message "google.cloud.securitycenter.v1p1beta1.NotificationConfig" do
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/securitycenter/v1p1beta1/notification_message.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/cloud/securitycenter/v1p1beta1/finding_pb'
|
7
5
|
require 'google/cloud/securitycenter/v1p1beta1/resource_pb'
|
8
6
|
require 'google/api/annotations_pb'
|
7
|
+
require 'google/protobuf'
|
8
|
+
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_file("google/cloud/securitycenter/v1p1beta1/notification_message.proto", :syntax => :proto3) do
|
11
11
|
add_message "google.cloud.securitycenter.v1p1beta1.NotificationMessage" do
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/securitycenter/v1p1beta1/organization_settings.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/resource_pb'
|
7
5
|
require 'google/api/annotations_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/cloud/securitycenter/v1p1beta1/organization_settings.proto", :syntax => :proto3) do
|
10
10
|
add_message "google.cloud.securitycenter.v1p1beta1.OrganizationSettings" do
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/securitycenter/v1p1beta1/resource.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/cloud/securitycenter/v1p1beta1/folder_pb'
|
8
6
|
require 'google/api/annotations_pb'
|
7
|
+
require 'google/protobuf'
|
8
|
+
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_file("google/cloud/securitycenter/v1p1beta1/resource.proto", :syntax => :proto3) do
|
11
11
|
add_message "google.cloud.securitycenter.v1p1beta1.Resource" do
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/protobuf/duration_pb'
|
7
5
|
require 'google/api/annotations_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.proto", :syntax => :proto3) do
|
10
10
|
add_message "google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse" do
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/securitycenter/v1p1beta1/security_marks.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/resource_pb'
|
7
5
|
require 'google/api/annotations_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/cloud/securitycenter/v1p1beta1/security_marks.proto", :syntax => :proto3) do
|
10
10
|
add_message "google.cloud.securitycenter.v1p1beta1.SecurityMarks" do
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/cloud/securitycenter/v1p1beta1/notification_message_pb'
|
7
5
|
require 'google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response_pb'
|
8
6
|
require 'google/api/annotations_pb'
|
@@ -24,6 +22,8 @@ require 'google/protobuf/empty_pb'
|
|
24
22
|
require 'google/protobuf/field_mask_pb'
|
25
23
|
require 'google/protobuf/struct_pb'
|
26
24
|
require 'google/protobuf/timestamp_pb'
|
25
|
+
require 'google/protobuf'
|
26
|
+
|
27
27
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
28
28
|
add_file("google/cloud/securitycenter/v1p1beta1/securitycenter_service.proto", :syntax => :proto3) do
|
29
29
|
add_message "google.cloud.securitycenter.v1p1beta1.CreateFindingRequest" do
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/securitycenter/v1p1beta1/source.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/resource_pb'
|
7
5
|
require 'google/api/annotations_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/cloud/securitycenter/v1p1beta1/source.proto", :syntax => :proto3) do
|
10
10
|
add_message "google.cloud.securitycenter.v1p1beta1.Source" do
|
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.7.
|
4
|
+
version: 0.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|