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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 79bde7d4ac82283458152a0aa6ab5e5bbfc509eb9373b3fbf58e7019f00a6d77
4
- data.tar.gz: '0618d9dd9e3e490eb6b2d9704190ccf8435fdf82e06eff6f5e15dd69be95bbad'
3
+ metadata.gz: c82f2ac65f831d2dd5d20d7e32fb3259825466cf3fb87706c799ef4d33dbfa44
4
+ data.tar.gz: 39af88cfb103f52b59e11e0beca7f8dae0300e43ccb5d9256b07f3e56220fc3a
5
5
  SHA512:
6
- metadata.gz: 61058ab931f3fd038b1ad657fabdf1e0b26bb1094d12a39a711d98300791d202e20b16c32ffaf3143ea3afe415bf641df25ac14dda83bbdb9094015399c41136
7
- data.tar.gz: 353941b354d1d2ab18fe11000859c9ecfa3378302e540b4d6fc8603b395baa8b0a454214d1ffe0509b2ea20dc4e04f860b959ff09cffc3b79ed55db4d0bb2e59
6
+ metadata.gz: fc90cf23dd6f760a7169a486e141ae7d819a3888c7a9191ab6a7aad58c6c9ae421814f18644ee8b538aea2f8421b12e57d390d495724704dd7085ca98e9e6a66
7
+ data.tar.gz: c0e7be832a9970cefff81387323c0d06d40c0195434f18b6fe8268de260d67aedd6833d2a2cbd8bdae5ea53dd201a47adff965ef3552eb526709b1995daba0eb
@@ -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 = {}
@@ -2150,10 +2172,11 @@ module Google
2150
2172
  # Customize the options with defaults
2151
2173
  metadata = @config.rpcs.group_findings.metadata.to_h
2152
2174
 
2153
- # Set x-goog-api-client and x-goog-user-project headers
2175
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2154
2176
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2155
2177
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2156
2178
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
2179
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2157
2180
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2158
2181
 
2159
2182
  header_params = {}
@@ -2259,10 +2282,11 @@ module Google
2259
2282
  # Customize the options with defaults
2260
2283
  metadata = @config.rpcs.list_attack_paths.metadata.to_h
2261
2284
 
2262
- # Set x-goog-api-client and x-goog-user-project headers
2285
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2263
2286
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2264
2287
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2265
2288
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
2289
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2266
2290
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2267
2291
 
2268
2292
  header_params = {}
@@ -2366,10 +2390,11 @@ module Google
2366
2390
  # Customize the options with defaults
2367
2391
  metadata = @config.rpcs.list_big_query_exports.metadata.to_h
2368
2392
 
2369
- # Set x-goog-api-client and x-goog-user-project headers
2393
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2370
2394
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2371
2395
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2372
2396
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
2397
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2373
2398
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2374
2399
 
2375
2400
  header_params = {}
@@ -2561,10 +2586,11 @@ module Google
2561
2586
  # Customize the options with defaults
2562
2587
  metadata = @config.rpcs.list_findings.metadata.to_h
2563
2588
 
2564
- # Set x-goog-api-client and x-goog-user-project headers
2589
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2565
2590
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2566
2591
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2567
2592
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
2593
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2568
2594
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2569
2595
 
2570
2596
  header_params = {}
@@ -2668,10 +2694,11 @@ module Google
2668
2694
  # Customize the options with defaults
2669
2695
  metadata = @config.rpcs.list_mute_configs.metadata.to_h
2670
2696
 
2671
- # Set x-goog-api-client and x-goog-user-project headers
2697
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2672
2698
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2673
2699
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2674
2700
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
2701
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2675
2702
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2676
2703
 
2677
2704
  header_params = {}
@@ -2784,10 +2811,11 @@ module Google
2784
2811
  # Customize the options with defaults
2785
2812
  metadata = @config.rpcs.list_notification_configs.metadata.to_h
2786
2813
 
2787
- # Set x-goog-api-client and x-goog-user-project headers
2814
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2788
2815
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2789
2816
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2790
2817
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
2818
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2791
2819
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2792
2820
 
2793
2821
  header_params = {}
@@ -2890,10 +2918,11 @@ module Google
2890
2918
  # Customize the options with defaults
2891
2919
  metadata = @config.rpcs.list_resource_value_configs.metadata.to_h
2892
2920
 
2893
- # Set x-goog-api-client and x-goog-user-project headers
2921
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2894
2922
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2895
2923
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2896
2924
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
2925
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2897
2926
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2898
2927
 
2899
2928
  header_params = {}
@@ -2989,10 +3018,11 @@ module Google
2989
3018
  # Customize the options with defaults
2990
3019
  metadata = @config.rpcs.list_sources.metadata.to_h
2991
3020
 
2992
- # Set x-goog-api-client and x-goog-user-project headers
3021
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2993
3022
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2994
3023
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2995
3024
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
3025
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2996
3026
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2997
3027
 
2998
3028
  header_params = {}
@@ -3114,10 +3144,11 @@ module Google
3114
3144
  # Customize the options with defaults
3115
3145
  metadata = @config.rpcs.list_valued_resources.metadata.to_h
3116
3146
 
3117
- # Set x-goog-api-client and x-goog-user-project headers
3147
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3118
3148
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3119
3149
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3120
3150
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
3151
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3121
3152
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3122
3153
 
3123
3154
  header_params = {}
@@ -3217,10 +3248,11 @@ module Google
3217
3248
  # Customize the options with defaults
3218
3249
  metadata = @config.rpcs.set_finding_state.metadata.to_h
3219
3250
 
3220
- # 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
3221
3252
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3222
3253
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3223
3254
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
3255
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3224
3256
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3225
3257
 
3226
3258
  header_params = {}
@@ -3314,10 +3346,11 @@ module Google
3314
3346
  # Customize the options with defaults
3315
3347
  metadata = @config.rpcs.set_iam_policy.metadata.to_h
3316
3348
 
3317
- # Set x-goog-api-client and x-goog-user-project headers
3349
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3318
3350
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3319
3351
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3320
3352
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
3353
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3321
3354
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3322
3355
 
3323
3356
  header_params = {}
@@ -3416,10 +3449,11 @@ module Google
3416
3449
  # Customize the options with defaults
3417
3450
  metadata = @config.rpcs.set_mute.metadata.to_h
3418
3451
 
3419
- # Set x-goog-api-client and x-goog-user-project headers
3452
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3420
3453
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3421
3454
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3422
3455
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
3456
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3423
3457
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3424
3458
 
3425
3459
  header_params = {}
@@ -3507,10 +3541,11 @@ module Google
3507
3541
  # Customize the options with defaults
3508
3542
  metadata = @config.rpcs.test_iam_permissions.metadata.to_h
3509
3543
 
3510
- # Set x-goog-api-client and x-goog-user-project headers
3544
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3511
3545
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3512
3546
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3513
3547
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
3548
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3514
3549
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3515
3550
 
3516
3551
  header_params = {}
@@ -3595,10 +3630,11 @@ module Google
3595
3630
  # Customize the options with defaults
3596
3631
  metadata = @config.rpcs.update_big_query_export.metadata.to_h
3597
3632
 
3598
- # Set x-goog-api-client and x-goog-user-project headers
3633
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3599
3634
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3600
3635
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3601
3636
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
3637
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3602
3638
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3603
3639
 
3604
3640
  header_params = {}
@@ -3685,10 +3721,11 @@ module Google
3685
3721
  # Customize the options with defaults
3686
3722
  metadata = @config.rpcs.update_external_system.metadata.to_h
3687
3723
 
3688
- # Set x-goog-api-client and x-goog-user-project headers
3724
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3689
3725
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3690
3726
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3691
3727
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
3728
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3692
3729
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3693
3730
 
3694
3731
  header_params = {}
@@ -3785,10 +3822,11 @@ module Google
3785
3822
  # Customize the options with defaults
3786
3823
  metadata = @config.rpcs.update_finding.metadata.to_h
3787
3824
 
3788
- # Set x-goog-api-client and x-goog-user-project headers
3825
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3789
3826
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3790
3827
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3791
3828
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
3829
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3792
3830
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3793
3831
 
3794
3832
  header_params = {}
@@ -3874,10 +3912,11 @@ module Google
3874
3912
  # Customize the options with defaults
3875
3913
  metadata = @config.rpcs.update_mute_config.metadata.to_h
3876
3914
 
3877
- # Set x-goog-api-client and x-goog-user-project headers
3915
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3878
3916
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3879
3917
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3880
3918
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
3919
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3881
3920
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3882
3921
 
3883
3922
  header_params = {}
@@ -3979,10 +4018,11 @@ module Google
3979
4018
  # Customize the options with defaults
3980
4019
  metadata = @config.rpcs.update_notification_config.metadata.to_h
3981
4020
 
3982
- # Set x-goog-api-client and x-goog-user-project headers
4021
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3983
4022
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3984
4023
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3985
4024
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
4025
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3986
4026
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3987
4027
 
3988
4028
  header_params = {}
@@ -4067,10 +4107,11 @@ module Google
4067
4107
  # Customize the options with defaults
4068
4108
  metadata = @config.rpcs.update_resource_value_config.metadata.to_h
4069
4109
 
4070
- # Set x-goog-api-client and x-goog-user-project headers
4110
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4071
4111
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4072
4112
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4073
4113
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
4114
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4074
4115
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4075
4116
 
4076
4117
  header_params = {}
@@ -4160,10 +4201,11 @@ module Google
4160
4201
  # Customize the options with defaults
4161
4202
  metadata = @config.rpcs.update_security_marks.metadata.to_h
4162
4203
 
4163
- # Set x-goog-api-client and x-goog-user-project headers
4204
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4164
4205
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4165
4206
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4166
4207
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
4208
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4167
4209
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4168
4210
 
4169
4211
  header_params = {}
@@ -4249,10 +4291,11 @@ module Google
4249
4291
  # Customize the options with defaults
4250
4292
  metadata = @config.rpcs.update_source.metadata.to_h
4251
4293
 
4252
- # Set x-goog-api-client and x-goog-user-project headers
4294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4253
4295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4254
4296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4255
4297
  gapic_version: ::Google::Cloud::SecurityCenter::V2::VERSION
4298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4256
4299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4257
4300
 
4258
4301
  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,