google-cloud-security_center-v2 0.1.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/security_center/v2/security_center/client.rb +87 -48
  3. data/lib/google/cloud/security_center/v2/security_center/operations.rb +13 -5
  4. data/lib/google/cloud/security_center/v2/security_center/paths.rb +118 -23
  5. data/lib/google/cloud/security_center/v2/security_center/rest/client.rb +87 -48
  6. data/lib/google/cloud/security_center/v2/security_center/rest/operations.rb +11 -4
  7. data/lib/google/cloud/security_center/v2/security_center/rest/service_stub.rb +65 -0
  8. data/lib/google/cloud/security_center/v2/version.rb +1 -1
  9. data/lib/google/cloud/securitycenter/v2/attack_path_pb.rb +1 -1
  10. data/lib/google/cloud/securitycenter/v2/cloud_armor_pb.rb +49 -0
  11. data/lib/google/cloud/securitycenter/v2/finding_pb.rb +9 -1
  12. data/lib/google/cloud/securitycenter/v2/folder_pb.rb +42 -0
  13. data/lib/google/cloud/securitycenter/v2/group_membership_pb.rb +43 -0
  14. data/lib/google/cloud/securitycenter/v2/mitre_attack_pb.rb +1 -1
  15. data/lib/google/cloud/securitycenter/v2/notebook_pb.rb +45 -0
  16. data/lib/google/cloud/securitycenter/v2/resource_pb.rb +16 -1
  17. data/lib/google/cloud/securitycenter/v2/resource_value_config_pb.rb +2 -1
  18. data/lib/google/cloud/securitycenter/v2/securitycenter_service_pb.rb +3 -1
  19. data/lib/google/cloud/securitycenter/v2/simulation_pb.rb +2 -1
  20. data/lib/google/cloud/securitycenter/v2/toxic_combination_pb.rb +42 -0
  21. data/lib/google/cloud/securitycenter/v2/valued_resource_pb.rb +1 -1
  22. data/proto_docs/google/cloud/securitycenter/v2/cloud_armor.rb +128 -0
  23. data/proto_docs/google/cloud/securitycenter/v2/finding.rb +22 -0
  24. data/proto_docs/google/cloud/securitycenter/v2/folder.rb +40 -0
  25. data/proto_docs/google/cloud/securitycenter/v2/group_membership.rb +48 -0
  26. data/proto_docs/google/cloud/securitycenter/v2/mitre_attack.rb +13 -1
  27. data/proto_docs/google/cloud/securitycenter/v2/notebook.rb +46 -0
  28. data/proto_docs/google/cloud/securitycenter/v2/resource.rb +247 -0
  29. data/proto_docs/google/cloud/securitycenter/v2/resource_value_config.rb +22 -18
  30. data/proto_docs/google/cloud/securitycenter/v2/securitycenter_service.rb +37 -8
  31. data/proto_docs/google/cloud/securitycenter/v2/simulation.rb +3 -0
  32. data/proto_docs/google/cloud/securitycenter/v2/toxic_combination.rb +46 -0
  33. metadata +12 -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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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,
@@ -1911,14 +1933,6 @@ module Google
1911
1933
  # Required. Expression that defines what assets fields to use for grouping.
1912
1934
  # The string value should follow SQL syntax: comma separated list of fields.
1913
1935
  # For example: "parent,resource_name".
1914
- #
1915
- # The following fields are supported:
1916
- #
1917
- # * resource_name
1918
- # * category
1919
- # * state
1920
- # * parent
1921
- # * severity
1922
1936
  # @param page_token [::String]
1923
1937
  # The value returned by the last `GroupFindingsResponse`; indicates
1924
1938
  # that this is a continuation of a prior `GroupFindings` call, and
@@ -1964,12 +1978,13 @@ module Google
1964
1978
  # Customize the options with defaults
1965
1979
  call_metadata = @config.rpcs.group_findings.metadata.to_h
1966
1980
 
1967
- # Set x-goog-api-client and x-goog-user-project headers
1981
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1968
1982
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1969
1983
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1970
1984
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
1971
1985
  transports_version_send: [:rest]
1972
1986
 
1987
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1973
1988
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1974
1989
 
1975
1990
  options.apply_defaults timeout: @config.rpcs.group_findings.timeout,
@@ -2066,12 +2081,13 @@ module Google
2066
2081
  # Customize the options with defaults
2067
2082
  call_metadata = @config.rpcs.list_attack_paths.metadata.to_h
2068
2083
 
2069
- # Set x-goog-api-client and x-goog-user-project headers
2084
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2070
2085
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2071
2086
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2072
2087
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
2073
2088
  transports_version_send: [:rest]
2074
2089
 
2090
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2075
2091
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2076
2092
 
2077
2093
  options.apply_defaults timeout: @config.rpcs.list_attack_paths.timeout,
@@ -2166,12 +2182,13 @@ module Google
2166
2182
  # Customize the options with defaults
2167
2183
  call_metadata = @config.rpcs.list_big_query_exports.metadata.to_h
2168
2184
 
2169
- # Set x-goog-api-client and x-goog-user-project headers
2185
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2170
2186
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2171
2187
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2172
2188
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
2173
2189
  transports_version_send: [:rest]
2174
2190
 
2191
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2175
2192
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2176
2193
 
2177
2194
  options.apply_defaults timeout: @config.rpcs.list_big_query_exports.timeout,
@@ -2354,12 +2371,13 @@ module Google
2354
2371
  # Customize the options with defaults
2355
2372
  call_metadata = @config.rpcs.list_findings.metadata.to_h
2356
2373
 
2357
- # Set x-goog-api-client and x-goog-user-project headers
2374
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2358
2375
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2359
2376
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2360
2377
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
2361
2378
  transports_version_send: [:rest]
2362
2379
 
2380
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2363
2381
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2364
2382
 
2365
2383
  options.apply_defaults timeout: @config.rpcs.list_findings.timeout,
@@ -2454,12 +2472,13 @@ module Google
2454
2472
  # Customize the options with defaults
2455
2473
  call_metadata = @config.rpcs.list_mute_configs.metadata.to_h
2456
2474
 
2457
- # Set x-goog-api-client and x-goog-user-project headers
2475
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2458
2476
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2459
2477
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2460
2478
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
2461
2479
  transports_version_send: [:rest]
2462
2480
 
2481
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2463
2482
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2464
2483
 
2465
2484
  options.apply_defaults timeout: @config.rpcs.list_mute_configs.timeout,
@@ -2548,12 +2567,13 @@ module Google
2548
2567
  # Customize the options with defaults
2549
2568
  call_metadata = @config.rpcs.list_notification_configs.metadata.to_h
2550
2569
 
2551
- # Set x-goog-api-client and x-goog-user-project headers
2570
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2552
2571
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2553
2572
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2554
2573
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
2555
2574
  transports_version_send: [:rest]
2556
2575
 
2576
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2557
2577
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2558
2578
 
2559
2579
  options.apply_defaults timeout: @config.rpcs.list_notification_configs.timeout,
@@ -2647,12 +2667,13 @@ module Google
2647
2667
  # Customize the options with defaults
2648
2668
  call_metadata = @config.rpcs.list_resource_value_configs.metadata.to_h
2649
2669
 
2650
- # Set x-goog-api-client and x-goog-user-project headers
2670
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2651
2671
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2652
2672
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2653
2673
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
2654
2674
  transports_version_send: [:rest]
2655
2675
 
2676
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2656
2677
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2657
2678
 
2658
2679
  options.apply_defaults timeout: @config.rpcs.list_resource_value_configs.timeout,
@@ -2739,12 +2760,13 @@ module Google
2739
2760
  # Customize the options with defaults
2740
2761
  call_metadata = @config.rpcs.list_sources.metadata.to_h
2741
2762
 
2742
- # Set x-goog-api-client and x-goog-user-project headers
2763
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2743
2764
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2744
2765
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2745
2766
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
2746
2767
  transports_version_send: [:rest]
2747
2768
 
2769
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2748
2770
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2749
2771
 
2750
2772
  options.apply_defaults timeout: @config.rpcs.list_sources.timeout,
@@ -2857,12 +2879,13 @@ module Google
2857
2879
  # Customize the options with defaults
2858
2880
  call_metadata = @config.rpcs.list_valued_resources.metadata.to_h
2859
2881
 
2860
- # Set x-goog-api-client and x-goog-user-project headers
2882
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2861
2883
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2862
2884
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2863
2885
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
2864
2886
  transports_version_send: [:rest]
2865
2887
 
2888
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2866
2889
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2867
2890
 
2868
2891
  options.apply_defaults timeout: @config.rpcs.list_valued_resources.timeout,
@@ -2953,12 +2976,13 @@ module Google
2953
2976
  # Customize the options with defaults
2954
2977
  call_metadata = @config.rpcs.set_finding_state.metadata.to_h
2955
2978
 
2956
- # Set x-goog-api-client and x-goog-user-project headers
2979
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2957
2980
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2958
2981
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2959
2982
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
2960
2983
  transports_version_send: [:rest]
2961
2984
 
2985
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2962
2986
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2963
2987
 
2964
2988
  options.apply_defaults timeout: @config.rpcs.set_finding_state.timeout,
@@ -3043,12 +3067,13 @@ module Google
3043
3067
  # Customize the options with defaults
3044
3068
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
3045
3069
 
3046
- # Set x-goog-api-client and x-goog-user-project headers
3070
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3047
3071
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3048
3072
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3049
3073
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
3050
3074
  transports_version_send: [:rest]
3051
3075
 
3076
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3052
3077
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3053
3078
 
3054
3079
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -3138,12 +3163,13 @@ module Google
3138
3163
  # Customize the options with defaults
3139
3164
  call_metadata = @config.rpcs.set_mute.metadata.to_h
3140
3165
 
3141
- # Set x-goog-api-client and x-goog-user-project headers
3166
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3142
3167
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3143
3168
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3144
3169
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
3145
3170
  transports_version_send: [:rest]
3146
3171
 
3172
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3147
3173
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3148
3174
 
3149
3175
  options.apply_defaults timeout: @config.rpcs.set_mute.timeout,
@@ -3222,12 +3248,13 @@ module Google
3222
3248
  # Customize the options with defaults
3223
3249
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
3224
3250
 
3225
- # Set x-goog-api-client and x-goog-user-project headers
3251
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3226
3252
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3227
3253
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3228
3254
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
3229
3255
  transports_version_send: [:rest]
3230
3256
 
3257
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3231
3258
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3232
3259
 
3233
3260
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -3303,12 +3330,13 @@ module Google
3303
3330
  # Customize the options with defaults
3304
3331
  call_metadata = @config.rpcs.update_big_query_export.metadata.to_h
3305
3332
 
3306
- # Set x-goog-api-client and x-goog-user-project headers
3333
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3307
3334
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3308
3335
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3309
3336
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
3310
3337
  transports_version_send: [:rest]
3311
3338
 
3339
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3312
3340
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3313
3341
 
3314
3342
  options.apply_defaults timeout: @config.rpcs.update_big_query_export.timeout,
@@ -3386,12 +3414,13 @@ module Google
3386
3414
  # Customize the options with defaults
3387
3415
  call_metadata = @config.rpcs.update_external_system.metadata.to_h
3388
3416
 
3389
- # Set x-goog-api-client and x-goog-user-project headers
3417
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3390
3418
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3391
3419
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3392
3420
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
3393
3421
  transports_version_send: [:rest]
3394
3422
 
3423
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3395
3424
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3396
3425
 
3397
3426
  options.apply_defaults timeout: @config.rpcs.update_external_system.timeout,
@@ -3479,12 +3508,13 @@ module Google
3479
3508
  # Customize the options with defaults
3480
3509
  call_metadata = @config.rpcs.update_finding.metadata.to_h
3481
3510
 
3482
- # Set x-goog-api-client and x-goog-user-project headers
3511
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3483
3512
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3484
3513
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3485
3514
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
3486
3515
  transports_version_send: [:rest]
3487
3516
 
3517
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3488
3518
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3489
3519
 
3490
3520
  options.apply_defaults timeout: @config.rpcs.update_finding.timeout,
@@ -3561,12 +3591,13 @@ module Google
3561
3591
  # Customize the options with defaults
3562
3592
  call_metadata = @config.rpcs.update_mute_config.metadata.to_h
3563
3593
 
3564
- # Set x-goog-api-client and x-goog-user-project headers
3594
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3565
3595
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3566
3596
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3567
3597
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
3568
3598
  transports_version_send: [:rest]
3569
3599
 
3600
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3570
3601
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3571
3602
 
3572
3603
  options.apply_defaults timeout: @config.rpcs.update_mute_config.timeout,
@@ -3644,12 +3675,13 @@ module Google
3644
3675
  # Customize the options with defaults
3645
3676
  call_metadata = @config.rpcs.update_notification_config.metadata.to_h
3646
3677
 
3647
- # Set x-goog-api-client and x-goog-user-project headers
3678
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3648
3679
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3649
3680
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3650
3681
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
3651
3682
  transports_version_send: [:rest]
3652
3683
 
3684
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3653
3685
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3654
3686
 
3655
3687
  options.apply_defaults timeout: @config.rpcs.update_notification_config.timeout,
@@ -3691,6 +3723,10 @@ module Google
3691
3723
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
3692
3724
  # The list of fields to be updated.
3693
3725
  # If empty all mutable fields will be updated.
3726
+ #
3727
+ # To update nested fields, include the top level field in the mask
3728
+ # For example, to update gcp_metadata.resource_type, include the
3729
+ # "gcp_metadata" field mask
3694
3730
  # @yield [result, operation] Access the result along with the TransportOperation object
3695
3731
  # @yieldparam result [::Google::Cloud::SecurityCenter::V2::ResourceValueConfig]
3696
3732
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -3725,12 +3761,13 @@ module Google
3725
3761
  # Customize the options with defaults
3726
3762
  call_metadata = @config.rpcs.update_resource_value_config.metadata.to_h
3727
3763
 
3728
- # Set x-goog-api-client and x-goog-user-project headers
3764
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3729
3765
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3730
3766
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3731
3767
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
3732
3768
  transports_version_send: [:rest]
3733
3769
 
3770
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3734
3771
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3735
3772
 
3736
3773
  options.apply_defaults timeout: @config.rpcs.update_resource_value_config.timeout,
@@ -3811,12 +3848,13 @@ module Google
3811
3848
  # Customize the options with defaults
3812
3849
  call_metadata = @config.rpcs.update_security_marks.metadata.to_h
3813
3850
 
3814
- # Set x-goog-api-client and x-goog-user-project headers
3851
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3815
3852
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3816
3853
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3817
3854
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
3818
3855
  transports_version_send: [:rest]
3819
3856
 
3857
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3820
3858
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3821
3859
 
3822
3860
  options.apply_defaults timeout: @config.rpcs.update_security_marks.timeout,
@@ -3893,12 +3931,13 @@ module Google
3893
3931
  # Customize the options with defaults
3894
3932
  call_metadata = @config.rpcs.update_source.metadata.to_h
3895
3933
 
3896
- # Set x-goog-api-client and x-goog-user-project headers
3934
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3897
3935
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3898
3936
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3899
3937
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION,
3900
3938
  transports_version_send: [:rest]
3901
3939
 
3940
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3902
3941
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3903
3942
 
3904
3943
  options.apply_defaults timeout: @config.rpcs.update_source.timeout,