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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 79bde7d4ac82283458152a0aa6ab5e5bbfc509eb9373b3fbf58e7019f00a6d77
4
- data.tar.gz: '0618d9dd9e3e490eb6b2d9704190ccf8435fdf82e06eff6f5e15dd69be95bbad'
3
+ metadata.gz: e79682c37684d3dd49cebcafb353fc3e638c2891e8bd485e19915f13346253b0
4
+ data.tar.gz: 477e4d287afc8dc91ae0d8f18bbefc9ff98881cc7df85c5029ff7bc9f77b0576
5
5
  SHA512:
6
- metadata.gz: 61058ab931f3fd038b1ad657fabdf1e0b26bb1094d12a39a711d98300791d202e20b16c32ffaf3143ea3afe415bf641df25ac14dda83bbdb9094015399c41136
7
- data.tar.gz: 353941b354d1d2ab18fe11000859c9ecfa3378302e540b4d6fc8603b395baa8b0a454214d1ffe0509b2ea20dc4e04f860b959ff09cffc3b79ed55db4d0bb2e59
6
+ metadata.gz: 7389bd7504a1d0cc0e620ec828e30c02214a3538cae227c499ec4b1feba3bb53cef2be52a68f423c7e507e4ac7868941d185b87ef46a5767917798376f55e4c9
7
+ data.tar.gz: 5582cdf3ef292025c8cdd3a346ff3def07a020bfc937c1d3e45c257bc187a01aa993cd46aaccedbf53805b45a9b2e9557c11ee5103e41c2463f6d7de58c52b8e
@@ -30,6 +30,9 @@ module Google
30
30
  # V2 APIs for Security Center service.
31
31
  #
32
32
  class Client
33
+ # @private
34
+ API_VERSION = ""
35
+
33
36
  # @private
34
37
  DEFAULT_ENDPOINT_TEMPLATE = "securitycenter.$UNIVERSE_DOMAIN$"
35
38
 
@@ -234,10 +237,11 @@ module Google
234
237
  # Customize the options with defaults
235
238
  metadata = @config.rpcs.batch_create_resource_value_configs.metadata.to_h
236
239
 
237
- # Set x-goog-api-client and x-goog-user-project headers
240
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
238
241
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
239
242
  lib_name: @config.lib_name, lib_version: @config.lib_version,
240
243
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
244
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
241
245
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
242
246
 
243
247
  header_params = {}
@@ -359,10 +363,11 @@ module Google
359
363
  # Customize the options with defaults
360
364
  metadata = @config.rpcs.bulk_mute_findings.metadata.to_h
361
365
 
362
- # Set x-goog-api-client and x-goog-user-project headers
366
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
363
367
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
364
368
  lib_name: @config.lib_name, lib_version: @config.lib_version,
365
369
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
370
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
366
371
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
367
372
 
368
373
  header_params = {}
@@ -455,10 +460,11 @@ module Google
455
460
  # Customize the options with defaults
456
461
  metadata = @config.rpcs.create_big_query_export.metadata.to_h
457
462
 
458
- # Set x-goog-api-client and x-goog-user-project headers
463
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
459
464
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
460
465
  lib_name: @config.lib_name, lib_version: @config.lib_version,
461
466
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
467
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
462
468
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
463
469
 
464
470
  header_params = {}
@@ -553,10 +559,11 @@ module Google
553
559
  # Customize the options with defaults
554
560
  metadata = @config.rpcs.create_finding.metadata.to_h
555
561
 
556
- # Set x-goog-api-client and x-goog-user-project headers
562
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
557
563
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
558
564
  lib_name: @config.lib_name, lib_version: @config.lib_version,
559
565
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
566
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
560
567
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
561
568
 
562
569
  header_params = {}
@@ -648,10 +655,11 @@ module Google
648
655
  # Customize the options with defaults
649
656
  metadata = @config.rpcs.create_mute_config.metadata.to_h
650
657
 
651
- # Set x-goog-api-client and x-goog-user-project headers
658
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
652
659
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
653
660
  lib_name: @config.lib_name, lib_version: @config.lib_version,
654
661
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
662
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
655
663
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
656
664
 
657
665
  header_params = {}
@@ -760,10 +768,11 @@ module Google
760
768
  # Customize the options with defaults
761
769
  metadata = @config.rpcs.create_notification_config.metadata.to_h
762
770
 
763
- # Set x-goog-api-client and x-goog-user-project headers
771
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
764
772
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
765
773
  lib_name: @config.lib_name, lib_version: @config.lib_version,
766
774
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
775
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
767
776
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
768
777
 
769
778
  header_params = {}
@@ -849,10 +858,11 @@ module Google
849
858
  # Customize the options with defaults
850
859
  metadata = @config.rpcs.create_source.metadata.to_h
851
860
 
852
- # Set x-goog-api-client and x-goog-user-project headers
861
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
853
862
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
854
863
  lib_name: @config.lib_name, lib_version: @config.lib_version,
855
864
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
865
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
856
866
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
857
867
 
858
868
  header_params = {}
@@ -940,10 +950,11 @@ module Google
940
950
  # Customize the options with defaults
941
951
  metadata = @config.rpcs.delete_big_query_export.metadata.to_h
942
952
 
943
- # Set x-goog-api-client and x-goog-user-project headers
953
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
944
954
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
945
955
  lib_name: @config.lib_name, lib_version: @config.lib_version,
946
956
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
957
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
947
958
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
948
959
 
949
960
  header_params = {}
@@ -1035,10 +1046,11 @@ module Google
1035
1046
  # Customize the options with defaults
1036
1047
  metadata = @config.rpcs.delete_mute_config.metadata.to_h
1037
1048
 
1038
- # Set x-goog-api-client and x-goog-user-project headers
1049
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1039
1050
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1040
1051
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1041
1052
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
1053
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1042
1054
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1043
1055
 
1044
1056
  header_params = {}
@@ -1143,10 +1155,11 @@ module Google
1143
1155
  # Customize the options with defaults
1144
1156
  metadata = @config.rpcs.delete_notification_config.metadata.to_h
1145
1157
 
1146
- # Set x-goog-api-client and x-goog-user-project headers
1158
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1147
1159
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1148
1160
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1149
1161
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
1162
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1150
1163
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1151
1164
 
1152
1165
  header_params = {}
@@ -1228,10 +1241,11 @@ module Google
1228
1241
  # Customize the options with defaults
1229
1242
  metadata = @config.rpcs.delete_resource_value_config.metadata.to_h
1230
1243
 
1231
- # Set x-goog-api-client and x-goog-user-project headers
1244
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1232
1245
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1233
1246
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1234
1247
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
1248
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1235
1249
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1236
1250
 
1237
1251
  header_params = {}
@@ -1319,10 +1333,11 @@ module Google
1319
1333
  # Customize the options with defaults
1320
1334
  metadata = @config.rpcs.get_big_query_export.metadata.to_h
1321
1335
 
1322
- # Set x-goog-api-client and x-goog-user-project headers
1336
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1323
1337
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1324
1338
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1325
1339
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
1340
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1326
1341
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1327
1342
 
1328
1343
  header_params = {}
@@ -1409,10 +1424,11 @@ module Google
1409
1424
  # Customize the options with defaults
1410
1425
  metadata = @config.rpcs.get_simulation.metadata.to_h
1411
1426
 
1412
- # Set x-goog-api-client and x-goog-user-project headers
1427
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1413
1428
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1414
1429
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1415
1430
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
1431
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1416
1432
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1417
1433
 
1418
1434
  header_params = {}
@@ -1497,10 +1513,11 @@ module Google
1497
1513
  # Customize the options with defaults
1498
1514
  metadata = @config.rpcs.get_valued_resource.metadata.to_h
1499
1515
 
1500
- # Set x-goog-api-client and x-goog-user-project headers
1516
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1501
1517
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1502
1518
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1503
1519
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
1520
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1504
1521
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1505
1522
 
1506
1523
  header_params = {}
@@ -1586,10 +1603,11 @@ module Google
1586
1603
  # Customize the options with defaults
1587
1604
  metadata = @config.rpcs.get_iam_policy.metadata.to_h
1588
1605
 
1589
- # Set x-goog-api-client and x-goog-user-project headers
1606
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1590
1607
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1591
1608
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1592
1609
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
1610
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1593
1611
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1594
1612
 
1595
1613
  header_params = {}
@@ -1681,10 +1699,11 @@ module Google
1681
1699
  # Customize the options with defaults
1682
1700
  metadata = @config.rpcs.get_mute_config.metadata.to_h
1683
1701
 
1684
- # Set x-goog-api-client and x-goog-user-project headers
1702
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1685
1703
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1686
1704
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1687
1705
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
1706
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1688
1707
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1689
1708
 
1690
1709
  header_params = {}
@@ -1789,10 +1808,11 @@ module Google
1789
1808
  # Customize the options with defaults
1790
1809
  metadata = @config.rpcs.get_notification_config.metadata.to_h
1791
1810
 
1792
- # Set x-goog-api-client and x-goog-user-project headers
1811
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1793
1812
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1794
1813
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1795
1814
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
1815
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1796
1816
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1797
1817
 
1798
1818
  header_params = {}
@@ -1875,10 +1895,11 @@ module Google
1875
1895
  # Customize the options with defaults
1876
1896
  metadata = @config.rpcs.get_resource_value_config.metadata.to_h
1877
1897
 
1878
- # Set x-goog-api-client and x-goog-user-project headers
1898
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1879
1899
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1880
1900
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1881
1901
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
1902
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1882
1903
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1883
1904
 
1884
1905
  header_params = {}
@@ -1961,10 +1982,11 @@ module Google
1961
1982
  # Customize the options with defaults
1962
1983
  metadata = @config.rpcs.get_source.metadata.to_h
1963
1984
 
1964
- # Set x-goog-api-client and x-goog-user-project headers
1985
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1965
1986
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1966
1987
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1967
1988
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
1989
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1968
1990
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1969
1991
 
1970
1992
  header_params = {}
@@ -2096,14 +2118,6 @@ module Google
2096
2118
  # Required. Expression that defines what assets fields to use for grouping.
2097
2119
  # The string value should follow SQL syntax: comma separated list of fields.
2098
2120
  # For example: "parent,resource_name".
2099
- #
2100
- # The following fields are supported:
2101
- #
2102
- # * resource_name
2103
- # * category
2104
- # * state
2105
- # * parent
2106
- # * severity
2107
2121
  # @param page_token [::String]
2108
2122
  # The value returned by the last `GroupFindingsResponse`; indicates
2109
2123
  # that this is a continuation of a prior `GroupFindings` call, and
@@ -2150,10 +2164,11 @@ module Google
2150
2164
  # Customize the options with defaults
2151
2165
  metadata = @config.rpcs.group_findings.metadata.to_h
2152
2166
 
2153
- # Set x-goog-api-client and x-goog-user-project headers
2167
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2154
2168
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2155
2169
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2156
2170
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
2171
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2157
2172
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2158
2173
 
2159
2174
  header_params = {}
@@ -2259,10 +2274,11 @@ module Google
2259
2274
  # Customize the options with defaults
2260
2275
  metadata = @config.rpcs.list_attack_paths.metadata.to_h
2261
2276
 
2262
- # Set x-goog-api-client and x-goog-user-project headers
2277
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2263
2278
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2264
2279
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2265
2280
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
2281
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2266
2282
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2267
2283
 
2268
2284
  header_params = {}
@@ -2366,10 +2382,11 @@ module Google
2366
2382
  # Customize the options with defaults
2367
2383
  metadata = @config.rpcs.list_big_query_exports.metadata.to_h
2368
2384
 
2369
- # Set x-goog-api-client and x-goog-user-project headers
2385
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2370
2386
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2371
2387
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2372
2388
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
2389
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2373
2390
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2374
2391
 
2375
2392
  header_params = {}
@@ -2561,10 +2578,11 @@ module Google
2561
2578
  # Customize the options with defaults
2562
2579
  metadata = @config.rpcs.list_findings.metadata.to_h
2563
2580
 
2564
- # Set x-goog-api-client and x-goog-user-project headers
2581
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2565
2582
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2566
2583
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2567
2584
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
2585
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2568
2586
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2569
2587
 
2570
2588
  header_params = {}
@@ -2668,10 +2686,11 @@ module Google
2668
2686
  # Customize the options with defaults
2669
2687
  metadata = @config.rpcs.list_mute_configs.metadata.to_h
2670
2688
 
2671
- # Set x-goog-api-client and x-goog-user-project headers
2689
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2672
2690
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2673
2691
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2674
2692
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
2693
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2675
2694
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2676
2695
 
2677
2696
  header_params = {}
@@ -2784,10 +2803,11 @@ module Google
2784
2803
  # Customize the options with defaults
2785
2804
  metadata = @config.rpcs.list_notification_configs.metadata.to_h
2786
2805
 
2787
- # Set x-goog-api-client and x-goog-user-project headers
2806
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2788
2807
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2789
2808
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2790
2809
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
2810
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2791
2811
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2792
2812
 
2793
2813
  header_params = {}
@@ -2890,10 +2910,11 @@ module Google
2890
2910
  # Customize the options with defaults
2891
2911
  metadata = @config.rpcs.list_resource_value_configs.metadata.to_h
2892
2912
 
2893
- # Set x-goog-api-client and x-goog-user-project headers
2913
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2894
2914
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2895
2915
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2896
2916
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
2917
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2897
2918
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2898
2919
 
2899
2920
  header_params = {}
@@ -2989,10 +3010,11 @@ module Google
2989
3010
  # Customize the options with defaults
2990
3011
  metadata = @config.rpcs.list_sources.metadata.to_h
2991
3012
 
2992
- # Set x-goog-api-client and x-goog-user-project headers
3013
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2993
3014
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2994
3015
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2995
3016
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
3017
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2996
3018
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2997
3019
 
2998
3020
  header_params = {}
@@ -3114,10 +3136,11 @@ module Google
3114
3136
  # Customize the options with defaults
3115
3137
  metadata = @config.rpcs.list_valued_resources.metadata.to_h
3116
3138
 
3117
- # Set x-goog-api-client and x-goog-user-project headers
3139
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3118
3140
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3119
3141
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3120
3142
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
3143
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3121
3144
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3122
3145
 
3123
3146
  header_params = {}
@@ -3217,10 +3240,11 @@ module Google
3217
3240
  # Customize the options with defaults
3218
3241
  metadata = @config.rpcs.set_finding_state.metadata.to_h
3219
3242
 
3220
- # Set x-goog-api-client and x-goog-user-project headers
3243
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3221
3244
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3222
3245
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3223
3246
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
3247
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3224
3248
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3225
3249
 
3226
3250
  header_params = {}
@@ -3314,10 +3338,11 @@ module Google
3314
3338
  # Customize the options with defaults
3315
3339
  metadata = @config.rpcs.set_iam_policy.metadata.to_h
3316
3340
 
3317
- # Set x-goog-api-client and x-goog-user-project headers
3341
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3318
3342
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3319
3343
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3320
3344
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
3345
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3321
3346
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3322
3347
 
3323
3348
  header_params = {}
@@ -3416,10 +3441,11 @@ module Google
3416
3441
  # Customize the options with defaults
3417
3442
  metadata = @config.rpcs.set_mute.metadata.to_h
3418
3443
 
3419
- # Set x-goog-api-client and x-goog-user-project headers
3444
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3420
3445
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3421
3446
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3422
3447
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
3448
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3423
3449
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3424
3450
 
3425
3451
  header_params = {}
@@ -3507,10 +3533,11 @@ module Google
3507
3533
  # Customize the options with defaults
3508
3534
  metadata = @config.rpcs.test_iam_permissions.metadata.to_h
3509
3535
 
3510
- # Set x-goog-api-client and x-goog-user-project headers
3536
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3511
3537
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3512
3538
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3513
3539
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
3540
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3514
3541
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3515
3542
 
3516
3543
  header_params = {}
@@ -3595,10 +3622,11 @@ module Google
3595
3622
  # Customize the options with defaults
3596
3623
  metadata = @config.rpcs.update_big_query_export.metadata.to_h
3597
3624
 
3598
- # Set x-goog-api-client and x-goog-user-project headers
3625
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3599
3626
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3600
3627
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3601
3628
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
3629
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3602
3630
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3603
3631
 
3604
3632
  header_params = {}
@@ -3685,10 +3713,11 @@ module Google
3685
3713
  # Customize the options with defaults
3686
3714
  metadata = @config.rpcs.update_external_system.metadata.to_h
3687
3715
 
3688
- # Set x-goog-api-client and x-goog-user-project headers
3716
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3689
3717
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3690
3718
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3691
3719
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
3720
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3692
3721
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3693
3722
 
3694
3723
  header_params = {}
@@ -3785,10 +3814,11 @@ module Google
3785
3814
  # Customize the options with defaults
3786
3815
  metadata = @config.rpcs.update_finding.metadata.to_h
3787
3816
 
3788
- # Set x-goog-api-client and x-goog-user-project headers
3817
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3789
3818
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3790
3819
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3791
3820
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
3821
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3792
3822
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3793
3823
 
3794
3824
  header_params = {}
@@ -3874,10 +3904,11 @@ module Google
3874
3904
  # Customize the options with defaults
3875
3905
  metadata = @config.rpcs.update_mute_config.metadata.to_h
3876
3906
 
3877
- # Set x-goog-api-client and x-goog-user-project headers
3907
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3878
3908
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3879
3909
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3880
3910
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
3911
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3881
3912
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3882
3913
 
3883
3914
  header_params = {}
@@ -3979,10 +4010,11 @@ module Google
3979
4010
  # Customize the options with defaults
3980
4011
  metadata = @config.rpcs.update_notification_config.metadata.to_h
3981
4012
 
3982
- # Set x-goog-api-client and x-goog-user-project headers
4013
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3983
4014
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3984
4015
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3985
4016
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
4017
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3986
4018
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3987
4019
 
3988
4020
  header_params = {}
@@ -4033,6 +4065,10 @@ module Google
4033
4065
  # The list of fields to be updated.
4034
4066
  # If empty all mutable fields will be updated.
4035
4067
  #
4068
+ # To update nested fields, include the top level field in the mask
4069
+ # For example, to update gcp_metadata.resource_type, include the
4070
+ # "gcp_metadata" field mask
4071
+ #
4036
4072
  # @yield [response, operation] Access the result along with the RPC operation
4037
4073
  # @yieldparam response [::Google::Cloud::SecurityCenter::V2::ResourceValueConfig]
4038
4074
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
@@ -4067,10 +4103,11 @@ module Google
4067
4103
  # Customize the options with defaults
4068
4104
  metadata = @config.rpcs.update_resource_value_config.metadata.to_h
4069
4105
 
4070
- # Set x-goog-api-client and x-goog-user-project headers
4106
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4071
4107
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4072
4108
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4073
4109
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
4110
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4074
4111
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4075
4112
 
4076
4113
  header_params = {}
@@ -4160,10 +4197,11 @@ module Google
4160
4197
  # Customize the options with defaults
4161
4198
  metadata = @config.rpcs.update_security_marks.metadata.to_h
4162
4199
 
4163
- # Set x-goog-api-client and x-goog-user-project headers
4200
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4164
4201
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4165
4202
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4166
4203
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
4204
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4167
4205
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4168
4206
 
4169
4207
  header_params = {}
@@ -4249,10 +4287,11 @@ module Google
4249
4287
  # Customize the options with defaults
4250
4288
  metadata = @config.rpcs.update_source.metadata.to_h
4251
4289
 
4252
- # Set x-goog-api-client and x-goog-user-project headers
4290
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4253
4291
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4254
4292
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4255
4293
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
4294
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4256
4295
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4257
4296
 
4258
4297
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module SecurityCenter
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "securitycenter.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,