google-cloud-security_center-v2 0.1.0 → 0.2.0
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/v2/security_center/client.rb +83 -40
- data/lib/google/cloud/security_center/v2/security_center/operations.rb +13 -5
- data/lib/google/cloud/security_center/v2/security_center/rest/client.rb +83 -40
- data/lib/google/cloud/security_center/v2/security_center/rest/operations.rb +11 -4
- data/lib/google/cloud/security_center/v2/version.rb +1 -1
- data/lib/google/cloud/securitycenter/v2/finding_pb.rb +5 -1
- data/lib/google/cloud/securitycenter/v2/group_membership_pb.rb +43 -0
- data/lib/google/cloud/securitycenter/v2/toxic_combination_pb.rb +42 -0
- data/proto_docs/google/cloud/securitycenter/v2/finding.rb +16 -0
- data/proto_docs/google/cloud/securitycenter/v2/group_membership.rb +48 -0
- data/proto_docs/google/cloud/securitycenter/v2/toxic_combination.rb +46 -0
- metadata +6 -2
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# V2 APIs for Security Center service.
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
API_VERSION = ""
|
37
|
+
|
35
38
|
# @private
|
36
39
|
DEFAULT_ENDPOINT_TEMPLATE = "securitycenter.$UNIVERSE_DOMAIN$"
|
37
40
|
|
@@ -226,12 +229,13 @@ module Google
|
|
226
229
|
# Customize the options with defaults
|
227
230
|
call_metadata = @config.rpcs.batch_create_resource_value_configs.metadata.to_h
|
228
231
|
|
229
|
-
# Set x-goog-api-client
|
232
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
230
233
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
231
234
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
232
235
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
233
236
|
transports_version_send: [:rest]
|
234
237
|
|
238
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
235
239
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
236
240
|
|
237
241
|
options.apply_defaults timeout: @config.rpcs.batch_create_resource_value_configs.timeout,
|
@@ -344,12 +348,13 @@ module Google
|
|
344
348
|
# Customize the options with defaults
|
345
349
|
call_metadata = @config.rpcs.bulk_mute_findings.metadata.to_h
|
346
350
|
|
347
|
-
# Set x-goog-api-client
|
351
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
348
352
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
349
353
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
350
354
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
351
355
|
transports_version_send: [:rest]
|
352
356
|
|
357
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
353
358
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
354
359
|
|
355
360
|
options.apply_defaults timeout: @config.rpcs.bulk_mute_findings.timeout,
|
@@ -433,12 +438,13 @@ module Google
|
|
433
438
|
# Customize the options with defaults
|
434
439
|
call_metadata = @config.rpcs.create_big_query_export.metadata.to_h
|
435
440
|
|
436
|
-
# Set x-goog-api-client
|
441
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
437
442
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
438
443
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
439
444
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
440
445
|
transports_version_send: [:rest]
|
441
446
|
|
447
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
442
448
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
443
449
|
|
444
450
|
options.apply_defaults timeout: @config.rpcs.create_big_query_export.timeout,
|
@@ -524,12 +530,13 @@ module Google
|
|
524
530
|
# Customize the options with defaults
|
525
531
|
call_metadata = @config.rpcs.create_finding.metadata.to_h
|
526
532
|
|
527
|
-
# Set x-goog-api-client
|
533
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
528
534
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
529
535
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
530
536
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
531
537
|
transports_version_send: [:rest]
|
532
538
|
|
539
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
533
540
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
534
541
|
|
535
542
|
options.apply_defaults timeout: @config.rpcs.create_finding.timeout,
|
@@ -612,12 +619,13 @@ module Google
|
|
612
619
|
# Customize the options with defaults
|
613
620
|
call_metadata = @config.rpcs.create_mute_config.metadata.to_h
|
614
621
|
|
615
|
-
# Set x-goog-api-client
|
622
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
616
623
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
617
624
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
618
625
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
619
626
|
transports_version_send: [:rest]
|
620
627
|
|
628
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
621
629
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
622
630
|
|
623
631
|
options.apply_defaults timeout: @config.rpcs.create_mute_config.timeout,
|
@@ -702,12 +710,13 @@ module Google
|
|
702
710
|
# Customize the options with defaults
|
703
711
|
call_metadata = @config.rpcs.create_notification_config.metadata.to_h
|
704
712
|
|
705
|
-
# Set x-goog-api-client
|
713
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
706
714
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
707
715
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
708
716
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
709
717
|
transports_version_send: [:rest]
|
710
718
|
|
719
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
711
720
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
712
721
|
|
713
722
|
options.apply_defaults timeout: @config.rpcs.create_notification_config.timeout,
|
@@ -784,12 +793,13 @@ module Google
|
|
784
793
|
# Customize the options with defaults
|
785
794
|
call_metadata = @config.rpcs.create_source.metadata.to_h
|
786
795
|
|
787
|
-
# Set x-goog-api-client
|
796
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
788
797
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
789
798
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
790
799
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
791
800
|
transports_version_send: [:rest]
|
792
801
|
|
802
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
793
803
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
794
804
|
|
795
805
|
options.apply_defaults timeout: @config.rpcs.create_source.timeout,
|
@@ -868,12 +878,13 @@ module Google
|
|
868
878
|
# Customize the options with defaults
|
869
879
|
call_metadata = @config.rpcs.delete_big_query_export.metadata.to_h
|
870
880
|
|
871
|
-
# Set x-goog-api-client
|
881
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
872
882
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
873
883
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
874
884
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
875
885
|
transports_version_send: [:rest]
|
876
886
|
|
887
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
877
888
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
878
889
|
|
879
890
|
options.apply_defaults timeout: @config.rpcs.delete_big_query_export.timeout,
|
@@ -956,12 +967,13 @@ module Google
|
|
956
967
|
# Customize the options with defaults
|
957
968
|
call_metadata = @config.rpcs.delete_mute_config.metadata.to_h
|
958
969
|
|
959
|
-
# Set x-goog-api-client
|
970
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
960
971
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
961
972
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
962
973
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
963
974
|
transports_version_send: [:rest]
|
964
975
|
|
976
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
965
977
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
966
978
|
|
967
979
|
options.apply_defaults timeout: @config.rpcs.delete_mute_config.timeout,
|
@@ -1042,12 +1054,13 @@ module Google
|
|
1042
1054
|
# Customize the options with defaults
|
1043
1055
|
call_metadata = @config.rpcs.delete_notification_config.metadata.to_h
|
1044
1056
|
|
1045
|
-
# Set x-goog-api-client
|
1057
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1046
1058
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1047
1059
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1048
1060
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
1049
1061
|
transports_version_send: [:rest]
|
1050
1062
|
|
1063
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1051
1064
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1052
1065
|
|
1053
1066
|
options.apply_defaults timeout: @config.rpcs.delete_notification_config.timeout,
|
@@ -1120,12 +1133,13 @@ module Google
|
|
1120
1133
|
# Customize the options with defaults
|
1121
1134
|
call_metadata = @config.rpcs.delete_resource_value_config.metadata.to_h
|
1122
1135
|
|
1123
|
-
# Set x-goog-api-client
|
1136
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1124
1137
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1125
1138
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1126
1139
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
1127
1140
|
transports_version_send: [:rest]
|
1128
1141
|
|
1142
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1129
1143
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1130
1144
|
|
1131
1145
|
options.apply_defaults timeout: @config.rpcs.delete_resource_value_config.timeout,
|
@@ -1204,12 +1218,13 @@ module Google
|
|
1204
1218
|
# Customize the options with defaults
|
1205
1219
|
call_metadata = @config.rpcs.get_big_query_export.metadata.to_h
|
1206
1220
|
|
1207
|
-
# Set x-goog-api-client
|
1221
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1208
1222
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1209
1223
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1210
1224
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
1211
1225
|
transports_version_send: [:rest]
|
1212
1226
|
|
1227
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1213
1228
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1214
1229
|
|
1215
1230
|
options.apply_defaults timeout: @config.rpcs.get_big_query_export.timeout,
|
@@ -1287,12 +1302,13 @@ module Google
|
|
1287
1302
|
# Customize the options with defaults
|
1288
1303
|
call_metadata = @config.rpcs.get_simulation.metadata.to_h
|
1289
1304
|
|
1290
|
-
# Set x-goog-api-client
|
1305
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1291
1306
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1292
1307
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1293
1308
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
1294
1309
|
transports_version_send: [:rest]
|
1295
1310
|
|
1311
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1296
1312
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1297
1313
|
|
1298
1314
|
options.apply_defaults timeout: @config.rpcs.get_simulation.timeout,
|
@@ -1368,12 +1384,13 @@ module Google
|
|
1368
1384
|
# Customize the options with defaults
|
1369
1385
|
call_metadata = @config.rpcs.get_valued_resource.metadata.to_h
|
1370
1386
|
|
1371
|
-
# Set x-goog-api-client
|
1387
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1372
1388
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1373
1389
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1374
1390
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
1375
1391
|
transports_version_send: [:rest]
|
1376
1392
|
|
1393
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1377
1394
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1378
1395
|
|
1379
1396
|
options.apply_defaults timeout: @config.rpcs.get_valued_resource.timeout,
|
@@ -1450,12 +1467,13 @@ module Google
|
|
1450
1467
|
# Customize the options with defaults
|
1451
1468
|
call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
1452
1469
|
|
1453
|
-
# Set x-goog-api-client
|
1470
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1454
1471
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1455
1472
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1456
1473
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
1457
1474
|
transports_version_send: [:rest]
|
1458
1475
|
|
1476
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1459
1477
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1460
1478
|
|
1461
1479
|
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
@@ -1538,12 +1556,13 @@ module Google
|
|
1538
1556
|
# Customize the options with defaults
|
1539
1557
|
call_metadata = @config.rpcs.get_mute_config.metadata.to_h
|
1540
1558
|
|
1541
|
-
# Set x-goog-api-client
|
1559
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1542
1560
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1543
1561
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1544
1562
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
1545
1563
|
transports_version_send: [:rest]
|
1546
1564
|
|
1565
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1547
1566
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1548
1567
|
|
1549
1568
|
options.apply_defaults timeout: @config.rpcs.get_mute_config.timeout,
|
@@ -1624,12 +1643,13 @@ module Google
|
|
1624
1643
|
# Customize the options with defaults
|
1625
1644
|
call_metadata = @config.rpcs.get_notification_config.metadata.to_h
|
1626
1645
|
|
1627
|
-
# Set x-goog-api-client
|
1646
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1628
1647
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1629
1648
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1630
1649
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
1631
1650
|
transports_version_send: [:rest]
|
1632
1651
|
|
1652
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1633
1653
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1634
1654
|
|
1635
1655
|
options.apply_defaults timeout: @config.rpcs.get_notification_config.timeout,
|
@@ -1703,12 +1723,13 @@ module Google
|
|
1703
1723
|
# Customize the options with defaults
|
1704
1724
|
call_metadata = @config.rpcs.get_resource_value_config.metadata.to_h
|
1705
1725
|
|
1706
|
-
# Set x-goog-api-client
|
1726
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1707
1727
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1708
1728
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1709
1729
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
1710
1730
|
transports_version_send: [:rest]
|
1711
1731
|
|
1732
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1712
1733
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1713
1734
|
|
1714
1735
|
options.apply_defaults timeout: @config.rpcs.get_resource_value_config.timeout,
|
@@ -1782,12 +1803,13 @@ module Google
|
|
1782
1803
|
# Customize the options with defaults
|
1783
1804
|
call_metadata = @config.rpcs.get_source.metadata.to_h
|
1784
1805
|
|
1785
|
-
# Set x-goog-api-client
|
1806
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1786
1807
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1787
1808
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1788
1809
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
1789
1810
|
transports_version_send: [:rest]
|
1790
1811
|
|
1812
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1791
1813
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1792
1814
|
|
1793
1815
|
options.apply_defaults timeout: @config.rpcs.get_source.timeout,
|
@@ -1964,12 +1986,13 @@ module Google
|
|
1964
1986
|
# Customize the options with defaults
|
1965
1987
|
call_metadata = @config.rpcs.group_findings.metadata.to_h
|
1966
1988
|
|
1967
|
-
# Set x-goog-api-client
|
1989
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1968
1990
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1969
1991
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1970
1992
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
1971
1993
|
transports_version_send: [:rest]
|
1972
1994
|
|
1995
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1973
1996
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1974
1997
|
|
1975
1998
|
options.apply_defaults timeout: @config.rpcs.group_findings.timeout,
|
@@ -2066,12 +2089,13 @@ module Google
|
|
2066
2089
|
# Customize the options with defaults
|
2067
2090
|
call_metadata = @config.rpcs.list_attack_paths.metadata.to_h
|
2068
2091
|
|
2069
|
-
# Set x-goog-api-client
|
2092
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2070
2093
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2071
2094
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2072
2095
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
2073
2096
|
transports_version_send: [:rest]
|
2074
2097
|
|
2098
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2075
2099
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2076
2100
|
|
2077
2101
|
options.apply_defaults timeout: @config.rpcs.list_attack_paths.timeout,
|
@@ -2166,12 +2190,13 @@ module Google
|
|
2166
2190
|
# Customize the options with defaults
|
2167
2191
|
call_metadata = @config.rpcs.list_big_query_exports.metadata.to_h
|
2168
2192
|
|
2169
|
-
# Set x-goog-api-client
|
2193
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2170
2194
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2171
2195
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2172
2196
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
2173
2197
|
transports_version_send: [:rest]
|
2174
2198
|
|
2199
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2175
2200
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2176
2201
|
|
2177
2202
|
options.apply_defaults timeout: @config.rpcs.list_big_query_exports.timeout,
|
@@ -2354,12 +2379,13 @@ module Google
|
|
2354
2379
|
# Customize the options with defaults
|
2355
2380
|
call_metadata = @config.rpcs.list_findings.metadata.to_h
|
2356
2381
|
|
2357
|
-
# Set x-goog-api-client
|
2382
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2358
2383
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2359
2384
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2360
2385
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
2361
2386
|
transports_version_send: [:rest]
|
2362
2387
|
|
2388
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2363
2389
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2364
2390
|
|
2365
2391
|
options.apply_defaults timeout: @config.rpcs.list_findings.timeout,
|
@@ -2454,12 +2480,13 @@ module Google
|
|
2454
2480
|
# Customize the options with defaults
|
2455
2481
|
call_metadata = @config.rpcs.list_mute_configs.metadata.to_h
|
2456
2482
|
|
2457
|
-
# Set x-goog-api-client
|
2483
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2458
2484
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2459
2485
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2460
2486
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
2461
2487
|
transports_version_send: [:rest]
|
2462
2488
|
|
2489
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2463
2490
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2464
2491
|
|
2465
2492
|
options.apply_defaults timeout: @config.rpcs.list_mute_configs.timeout,
|
@@ -2548,12 +2575,13 @@ module Google
|
|
2548
2575
|
# Customize the options with defaults
|
2549
2576
|
call_metadata = @config.rpcs.list_notification_configs.metadata.to_h
|
2550
2577
|
|
2551
|
-
# Set x-goog-api-client
|
2578
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2552
2579
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2553
2580
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2554
2581
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
2555
2582
|
transports_version_send: [:rest]
|
2556
2583
|
|
2584
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2557
2585
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2558
2586
|
|
2559
2587
|
options.apply_defaults timeout: @config.rpcs.list_notification_configs.timeout,
|
@@ -2647,12 +2675,13 @@ module Google
|
|
2647
2675
|
# Customize the options with defaults
|
2648
2676
|
call_metadata = @config.rpcs.list_resource_value_configs.metadata.to_h
|
2649
2677
|
|
2650
|
-
# Set x-goog-api-client
|
2678
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2651
2679
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2652
2680
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2653
2681
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
2654
2682
|
transports_version_send: [:rest]
|
2655
2683
|
|
2684
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2656
2685
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2657
2686
|
|
2658
2687
|
options.apply_defaults timeout: @config.rpcs.list_resource_value_configs.timeout,
|
@@ -2739,12 +2768,13 @@ module Google
|
|
2739
2768
|
# Customize the options with defaults
|
2740
2769
|
call_metadata = @config.rpcs.list_sources.metadata.to_h
|
2741
2770
|
|
2742
|
-
# Set x-goog-api-client
|
2771
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2743
2772
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2744
2773
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2745
2774
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
2746
2775
|
transports_version_send: [:rest]
|
2747
2776
|
|
2777
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2748
2778
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2749
2779
|
|
2750
2780
|
options.apply_defaults timeout: @config.rpcs.list_sources.timeout,
|
@@ -2857,12 +2887,13 @@ module Google
|
|
2857
2887
|
# Customize the options with defaults
|
2858
2888
|
call_metadata = @config.rpcs.list_valued_resources.metadata.to_h
|
2859
2889
|
|
2860
|
-
# Set x-goog-api-client
|
2890
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2861
2891
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2862
2892
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2863
2893
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
2864
2894
|
transports_version_send: [:rest]
|
2865
2895
|
|
2896
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2866
2897
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2867
2898
|
|
2868
2899
|
options.apply_defaults timeout: @config.rpcs.list_valued_resources.timeout,
|
@@ -2953,12 +2984,13 @@ module Google
|
|
2953
2984
|
# Customize the options with defaults
|
2954
2985
|
call_metadata = @config.rpcs.set_finding_state.metadata.to_h
|
2955
2986
|
|
2956
|
-
# Set x-goog-api-client
|
2987
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2957
2988
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2958
2989
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2959
2990
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
2960
2991
|
transports_version_send: [:rest]
|
2961
2992
|
|
2993
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2962
2994
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2963
2995
|
|
2964
2996
|
options.apply_defaults timeout: @config.rpcs.set_finding_state.timeout,
|
@@ -3043,12 +3075,13 @@ module Google
|
|
3043
3075
|
# Customize the options with defaults
|
3044
3076
|
call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
3045
3077
|
|
3046
|
-
# Set x-goog-api-client
|
3078
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3047
3079
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3048
3080
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3049
3081
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
3050
3082
|
transports_version_send: [:rest]
|
3051
3083
|
|
3084
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3052
3085
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3053
3086
|
|
3054
3087
|
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
@@ -3138,12 +3171,13 @@ module Google
|
|
3138
3171
|
# Customize the options with defaults
|
3139
3172
|
call_metadata = @config.rpcs.set_mute.metadata.to_h
|
3140
3173
|
|
3141
|
-
# Set x-goog-api-client
|
3174
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3142
3175
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3143
3176
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3144
3177
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
3145
3178
|
transports_version_send: [:rest]
|
3146
3179
|
|
3180
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3147
3181
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3148
3182
|
|
3149
3183
|
options.apply_defaults timeout: @config.rpcs.set_mute.timeout,
|
@@ -3222,12 +3256,13 @@ module Google
|
|
3222
3256
|
# Customize the options with defaults
|
3223
3257
|
call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
3224
3258
|
|
3225
|
-
# Set x-goog-api-client
|
3259
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3226
3260
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3227
3261
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3228
3262
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
3229
3263
|
transports_version_send: [:rest]
|
3230
3264
|
|
3265
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3231
3266
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3232
3267
|
|
3233
3268
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
@@ -3303,12 +3338,13 @@ module Google
|
|
3303
3338
|
# Customize the options with defaults
|
3304
3339
|
call_metadata = @config.rpcs.update_big_query_export.metadata.to_h
|
3305
3340
|
|
3306
|
-
# Set x-goog-api-client
|
3341
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3307
3342
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3308
3343
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3309
3344
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
3310
3345
|
transports_version_send: [:rest]
|
3311
3346
|
|
3347
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3312
3348
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3313
3349
|
|
3314
3350
|
options.apply_defaults timeout: @config.rpcs.update_big_query_export.timeout,
|
@@ -3386,12 +3422,13 @@ module Google
|
|
3386
3422
|
# Customize the options with defaults
|
3387
3423
|
call_metadata = @config.rpcs.update_external_system.metadata.to_h
|
3388
3424
|
|
3389
|
-
# Set x-goog-api-client
|
3425
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3390
3426
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3391
3427
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3392
3428
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
3393
3429
|
transports_version_send: [:rest]
|
3394
3430
|
|
3431
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3395
3432
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3396
3433
|
|
3397
3434
|
options.apply_defaults timeout: @config.rpcs.update_external_system.timeout,
|
@@ -3479,12 +3516,13 @@ module Google
|
|
3479
3516
|
# Customize the options with defaults
|
3480
3517
|
call_metadata = @config.rpcs.update_finding.metadata.to_h
|
3481
3518
|
|
3482
|
-
# Set x-goog-api-client
|
3519
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3483
3520
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3484
3521
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3485
3522
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
3486
3523
|
transports_version_send: [:rest]
|
3487
3524
|
|
3525
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3488
3526
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3489
3527
|
|
3490
3528
|
options.apply_defaults timeout: @config.rpcs.update_finding.timeout,
|
@@ -3561,12 +3599,13 @@ module Google
|
|
3561
3599
|
# Customize the options with defaults
|
3562
3600
|
call_metadata = @config.rpcs.update_mute_config.metadata.to_h
|
3563
3601
|
|
3564
|
-
# Set x-goog-api-client
|
3602
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3565
3603
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3566
3604
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3567
3605
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
3568
3606
|
transports_version_send: [:rest]
|
3569
3607
|
|
3608
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3570
3609
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3571
3610
|
|
3572
3611
|
options.apply_defaults timeout: @config.rpcs.update_mute_config.timeout,
|
@@ -3644,12 +3683,13 @@ module Google
|
|
3644
3683
|
# Customize the options with defaults
|
3645
3684
|
call_metadata = @config.rpcs.update_notification_config.metadata.to_h
|
3646
3685
|
|
3647
|
-
# Set x-goog-api-client
|
3686
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3648
3687
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3649
3688
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3650
3689
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
3651
3690
|
transports_version_send: [:rest]
|
3652
3691
|
|
3692
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3653
3693
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3654
3694
|
|
3655
3695
|
options.apply_defaults timeout: @config.rpcs.update_notification_config.timeout,
|
@@ -3725,12 +3765,13 @@ module Google
|
|
3725
3765
|
# Customize the options with defaults
|
3726
3766
|
call_metadata = @config.rpcs.update_resource_value_config.metadata.to_h
|
3727
3767
|
|
3728
|
-
# Set x-goog-api-client
|
3768
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3729
3769
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3730
3770
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3731
3771
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
3732
3772
|
transports_version_send: [:rest]
|
3733
3773
|
|
3774
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3734
3775
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3735
3776
|
|
3736
3777
|
options.apply_defaults timeout: @config.rpcs.update_resource_value_config.timeout,
|
@@ -3811,12 +3852,13 @@ module Google
|
|
3811
3852
|
# Customize the options with defaults
|
3812
3853
|
call_metadata = @config.rpcs.update_security_marks.metadata.to_h
|
3813
3854
|
|
3814
|
-
# Set x-goog-api-client
|
3855
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3815
3856
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3816
3857
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3817
3858
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
3818
3859
|
transports_version_send: [:rest]
|
3819
3860
|
|
3861
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3820
3862
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3821
3863
|
|
3822
3864
|
options.apply_defaults timeout: @config.rpcs.update_security_marks.timeout,
|
@@ -3893,12 +3935,13 @@ module Google
|
|
3893
3935
|
# Customize the options with defaults
|
3894
3936
|
call_metadata = @config.rpcs.update_source.metadata.to_h
|
3895
3937
|
|
3896
|
-
# Set x-goog-api-client
|
3938
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3897
3939
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3898
3940
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3899
3941
|
gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
|
3900
3942
|
transports_version_send: [:rest]
|
3901
3943
|
|
3944
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3902
3945
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3903
3946
|
|
3904
3947
|
options.apply_defaults timeout: @config.rpcs.update_source.timeout,
|