google-cloud-bare_metal_solution-v2 0.7.2 → 0.8.1

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: 574292697ee037e02d0e7297039675196a4eae64d56dd1292b4cb01192bcfaf3
4
- data.tar.gz: f9dc1c5afbae8ee9313c7b8fae15eaad3f6e17f10729e07ee991a47fa8d352aa
3
+ metadata.gz: '09b55e8acafbcf64a65f479610b56582b774b2ae2e69a8bc41e665f07bace913'
4
+ data.tar.gz: a4e4476f403a8c7afb9bac113fbec2961e0d6db3503dad2c0301aaf4ed9cce45
5
5
  SHA512:
6
- metadata.gz: 38d9f077d768415d7051ee37241e5cad0b3a3e11f3f1022b501fc3d6977317ec45b0ea2acd690b3d4d4026f14e971036693565ee1aed124fbb2e07771ff2a8ee
7
- data.tar.gz: 93c00560f4956c95cb82dc2e0993e0fa2ce6d923d57cf945c2c0195981443b4a434cd2c5d77fa2d80d28b8b49e24223e5064076673c86c0deb483d1020a251af
6
+ metadata.gz: e6632cc7912b1649f8daab045abfa6c61e8acc2dfcf14d0bc7e56c67f1279f513a19bd8ff7a0a083996927438102c7594622a3c16ebbc039c0650a331bc0b493
7
+ data.tar.gz: 7ae7b16bdcf8d31dbc7a73020638c516dc16b11e59f3f02f1763a63ab79a79f482b466585a81379874ceb7fbabdfa2d0e887cc5148212fb344318d0206fa43ce
data/README.md CHANGED
@@ -76,7 +76,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
76
76
 
77
77
  ## Supported Ruby Versions
78
78
 
79
- This library is supported on Ruby 2.6+.
79
+ This library is supported on Ruby 2.7+.
80
80
 
81
81
  Google provides official support for Ruby versions that are actively supported
82
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -39,6 +39,9 @@ module Google
39
39
  # upon specific servers in your Bare Metal Solution environment.
40
40
  #
41
41
  class Client
42
+ # @private
43
+ API_VERSION = ""
44
+
42
45
  # @private
43
46
  DEFAULT_ENDPOINT_TEMPLATE = "baremetalsolution.$UNIVERSE_DOMAIN$"
44
47
 
@@ -279,10 +282,11 @@ module Google
279
282
  # Customize the options with defaults
280
283
  metadata = @config.rpcs.list_instances.metadata.to_h
281
284
 
282
- # Set x-goog-api-client and x-goog-user-project headers
285
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
283
286
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
284
287
  lib_name: @config.lib_name, lib_version: @config.lib_version,
285
288
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
289
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
286
290
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
287
291
 
288
292
  header_params = {}
@@ -365,10 +369,11 @@ module Google
365
369
  # Customize the options with defaults
366
370
  metadata = @config.rpcs.get_instance.metadata.to_h
367
371
 
368
- # Set x-goog-api-client and x-goog-user-project headers
372
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
369
373
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
370
374
  lib_name: @config.lib_name, lib_version: @config.lib_version,
371
375
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
376
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
372
377
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
373
378
 
374
379
  header_params = {}
@@ -466,10 +471,11 @@ module Google
466
471
  # Customize the options with defaults
467
472
  metadata = @config.rpcs.update_instance.metadata.to_h
468
473
 
469
- # Set x-goog-api-client and x-goog-user-project headers
474
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
470
475
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
471
476
  lib_name: @config.lib_name, lib_version: @config.lib_version,
472
477
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
478
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
473
479
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
474
480
 
475
481
  header_params = {}
@@ -556,10 +562,11 @@ module Google
556
562
  # Customize the options with defaults
557
563
  metadata = @config.rpcs.rename_instance.metadata.to_h
558
564
 
559
- # Set x-goog-api-client and x-goog-user-project headers
565
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
560
566
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
561
567
  lib_name: @config.lib_name, lib_version: @config.lib_version,
562
568
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
569
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
563
570
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
564
571
 
565
572
  header_params = {}
@@ -649,10 +656,11 @@ module Google
649
656
  # Customize the options with defaults
650
657
  metadata = @config.rpcs.reset_instance.metadata.to_h
651
658
 
652
- # Set x-goog-api-client and x-goog-user-project headers
659
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
653
660
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
654
661
  lib_name: @config.lib_name, lib_version: @config.lib_version,
655
662
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
663
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
656
664
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
657
665
 
658
666
  header_params = {}
@@ -742,10 +750,11 @@ module Google
742
750
  # Customize the options with defaults
743
751
  metadata = @config.rpcs.start_instance.metadata.to_h
744
752
 
745
- # Set x-goog-api-client and x-goog-user-project headers
753
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
746
754
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
747
755
  lib_name: @config.lib_name, lib_version: @config.lib_version,
748
756
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
757
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
749
758
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
750
759
 
751
760
  header_params = {}
@@ -835,10 +844,11 @@ module Google
835
844
  # Customize the options with defaults
836
845
  metadata = @config.rpcs.stop_instance.metadata.to_h
837
846
 
838
- # Set x-goog-api-client and x-goog-user-project headers
847
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
839
848
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
840
849
  lib_name: @config.lib_name, lib_version: @config.lib_version,
841
850
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
851
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
842
852
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
843
853
 
844
854
  header_params = {}
@@ -928,10 +938,11 @@ module Google
928
938
  # Customize the options with defaults
929
939
  metadata = @config.rpcs.enable_interactive_serial_console.metadata.to_h
930
940
 
931
- # Set x-goog-api-client and x-goog-user-project headers
941
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
932
942
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
933
943
  lib_name: @config.lib_name, lib_version: @config.lib_version,
934
944
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
945
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
935
946
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
936
947
 
937
948
  header_params = {}
@@ -1021,10 +1032,11 @@ module Google
1021
1032
  # Customize the options with defaults
1022
1033
  metadata = @config.rpcs.disable_interactive_serial_console.metadata.to_h
1023
1034
 
1024
- # Set x-goog-api-client and x-goog-user-project headers
1035
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1025
1036
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1026
1037
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1027
1038
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
1039
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1028
1040
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1029
1041
 
1030
1042
  header_params = {}
@@ -1118,10 +1130,11 @@ module Google
1118
1130
  # Customize the options with defaults
1119
1131
  metadata = @config.rpcs.detach_lun.metadata.to_h
1120
1132
 
1121
- # Set x-goog-api-client and x-goog-user-project headers
1133
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1122
1134
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1123
1135
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1124
1136
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
1137
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1125
1138
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1126
1139
 
1127
1140
  header_params = {}
@@ -1214,10 +1227,11 @@ module Google
1214
1227
  # Customize the options with defaults
1215
1228
  metadata = @config.rpcs.list_ssh_keys.metadata.to_h
1216
1229
 
1217
- # Set x-goog-api-client and x-goog-user-project headers
1230
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1218
1231
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1219
1232
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1220
1233
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
1234
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1221
1235
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1222
1236
 
1223
1237
  header_params = {}
@@ -1309,10 +1323,11 @@ module Google
1309
1323
  # Customize the options with defaults
1310
1324
  metadata = @config.rpcs.create_ssh_key.metadata.to_h
1311
1325
 
1312
- # Set x-goog-api-client and x-goog-user-project headers
1326
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1313
1327
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1314
1328
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1315
1329
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
1330
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1316
1331
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1317
1332
 
1318
1333
  header_params = {}
@@ -1395,10 +1410,11 @@ module Google
1395
1410
  # Customize the options with defaults
1396
1411
  metadata = @config.rpcs.delete_ssh_key.metadata.to_h
1397
1412
 
1398
- # Set x-goog-api-client and x-goog-user-project headers
1413
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1399
1414
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1400
1415
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1401
1416
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
1417
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1402
1418
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1403
1419
 
1404
1420
  header_params = {}
@@ -1491,10 +1507,11 @@ module Google
1491
1507
  # Customize the options with defaults
1492
1508
  metadata = @config.rpcs.list_volumes.metadata.to_h
1493
1509
 
1494
- # Set x-goog-api-client and x-goog-user-project headers
1510
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1495
1511
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1496
1512
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1497
1513
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
1514
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1498
1515
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1499
1516
 
1500
1517
  header_params = {}
@@ -1577,10 +1594,11 @@ module Google
1577
1594
  # Customize the options with defaults
1578
1595
  metadata = @config.rpcs.get_volume.metadata.to_h
1579
1596
 
1580
- # Set x-goog-api-client and x-goog-user-project headers
1597
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1581
1598
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1582
1599
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1583
1600
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
1601
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1584
1602
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1585
1603
 
1586
1604
  header_params = {}
@@ -1676,10 +1694,11 @@ module Google
1676
1694
  # Customize the options with defaults
1677
1695
  metadata = @config.rpcs.update_volume.metadata.to_h
1678
1696
 
1679
- # Set x-goog-api-client and x-goog-user-project headers
1697
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1680
1698
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1681
1699
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1682
1700
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
1701
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1683
1702
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1684
1703
 
1685
1704
  header_params = {}
@@ -1766,10 +1785,11 @@ module Google
1766
1785
  # Customize the options with defaults
1767
1786
  metadata = @config.rpcs.rename_volume.metadata.to_h
1768
1787
 
1769
- # Set x-goog-api-client and x-goog-user-project headers
1788
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1770
1789
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1771
1790
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1772
1791
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
1792
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1773
1793
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1774
1794
 
1775
1795
  header_params = {}
@@ -1859,10 +1879,11 @@ module Google
1859
1879
  # Customize the options with defaults
1860
1880
  metadata = @config.rpcs.evict_volume.metadata.to_h
1861
1881
 
1862
- # Set x-goog-api-client and x-goog-user-project headers
1882
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1863
1883
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1864
1884
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1865
1885
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
1886
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1866
1887
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1867
1888
 
1868
1889
  header_params = {}
@@ -1954,10 +1975,11 @@ module Google
1954
1975
  # Customize the options with defaults
1955
1976
  metadata = @config.rpcs.resize_volume.metadata.to_h
1956
1977
 
1957
- # Set x-goog-api-client and x-goog-user-project headers
1978
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1958
1979
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1959
1980
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1960
1981
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
1982
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1961
1983
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1962
1984
 
1963
1985
  header_params = {}
@@ -2051,10 +2073,11 @@ module Google
2051
2073
  # Customize the options with defaults
2052
2074
  metadata = @config.rpcs.list_networks.metadata.to_h
2053
2075
 
2054
- # Set x-goog-api-client and x-goog-user-project headers
2076
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2055
2077
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2056
2078
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2057
2079
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
2080
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2058
2081
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2059
2082
 
2060
2083
  header_params = {}
@@ -2138,10 +2161,11 @@ module Google
2138
2161
  # Customize the options with defaults
2139
2162
  metadata = @config.rpcs.list_network_usage.metadata.to_h
2140
2163
 
2141
- # Set x-goog-api-client and x-goog-user-project headers
2164
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2142
2165
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2143
2166
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2144
2167
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
2168
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2145
2169
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2146
2170
 
2147
2171
  header_params = {}
@@ -2223,10 +2247,11 @@ module Google
2223
2247
  # Customize the options with defaults
2224
2248
  metadata = @config.rpcs.get_network.metadata.to_h
2225
2249
 
2226
- # Set x-goog-api-client and x-goog-user-project headers
2250
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2227
2251
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2228
2252
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2229
2253
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
2254
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2230
2255
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2231
2256
 
2232
2257
  header_params = {}
@@ -2322,10 +2347,11 @@ module Google
2322
2347
  # Customize the options with defaults
2323
2348
  metadata = @config.rpcs.update_network.metadata.to_h
2324
2349
 
2325
- # Set x-goog-api-client and x-goog-user-project headers
2350
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2326
2351
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2327
2352
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2328
2353
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
2354
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2329
2355
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2330
2356
 
2331
2357
  header_params = {}
@@ -2411,10 +2437,11 @@ module Google
2411
2437
  # Customize the options with defaults
2412
2438
  metadata = @config.rpcs.create_volume_snapshot.metadata.to_h
2413
2439
 
2414
- # Set x-goog-api-client and x-goog-user-project headers
2440
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2415
2441
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2416
2442
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2417
2443
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
2444
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2418
2445
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2419
2446
 
2420
2447
  header_params = {}
@@ -2505,10 +2532,11 @@ module Google
2505
2532
  # Customize the options with defaults
2506
2533
  metadata = @config.rpcs.restore_volume_snapshot.metadata.to_h
2507
2534
 
2508
- # Set x-goog-api-client and x-goog-user-project headers
2535
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2509
2536
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2510
2537
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2511
2538
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
2539
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2512
2540
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2513
2541
 
2514
2542
  header_params = {}
@@ -2592,10 +2620,11 @@ module Google
2592
2620
  # Customize the options with defaults
2593
2621
  metadata = @config.rpcs.delete_volume_snapshot.metadata.to_h
2594
2622
 
2595
- # Set x-goog-api-client and x-goog-user-project headers
2623
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2596
2624
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2597
2625
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2598
2626
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
2627
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2599
2628
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2600
2629
 
2601
2630
  header_params = {}
@@ -2678,10 +2707,11 @@ module Google
2678
2707
  # Customize the options with defaults
2679
2708
  metadata = @config.rpcs.get_volume_snapshot.metadata.to_h
2680
2709
 
2681
- # Set x-goog-api-client and x-goog-user-project headers
2710
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2682
2711
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2683
2712
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2684
2713
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
2714
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2685
2715
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2686
2716
 
2687
2717
  header_params = {}
@@ -2774,10 +2804,11 @@ module Google
2774
2804
  # Customize the options with defaults
2775
2805
  metadata = @config.rpcs.list_volume_snapshots.metadata.to_h
2776
2806
 
2777
- # Set x-goog-api-client and x-goog-user-project headers
2807
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2778
2808
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2779
2809
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2780
2810
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
2811
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2781
2812
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2782
2813
 
2783
2814
  header_params = {}
@@ -2860,10 +2891,11 @@ module Google
2860
2891
  # Customize the options with defaults
2861
2892
  metadata = @config.rpcs.get_lun.metadata.to_h
2862
2893
 
2863
- # Set x-goog-api-client and x-goog-user-project headers
2894
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2864
2895
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2865
2896
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2866
2897
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
2898
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2867
2899
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2868
2900
 
2869
2901
  header_params = {}
@@ -2954,10 +2986,11 @@ module Google
2954
2986
  # Customize the options with defaults
2955
2987
  metadata = @config.rpcs.list_luns.metadata.to_h
2956
2988
 
2957
- # Set x-goog-api-client and x-goog-user-project headers
2989
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2958
2990
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2959
2991
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2960
2992
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
2993
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2961
2994
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2962
2995
 
2963
2996
  header_params = {}
@@ -3048,10 +3081,11 @@ module Google
3048
3081
  # Customize the options with defaults
3049
3082
  metadata = @config.rpcs.evict_lun.metadata.to_h
3050
3083
 
3051
- # Set x-goog-api-client and x-goog-user-project headers
3084
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3052
3085
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3053
3086
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3054
3087
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
3088
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3055
3089
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3056
3090
 
3057
3091
  header_params = {}
@@ -3134,10 +3168,11 @@ module Google
3134
3168
  # Customize the options with defaults
3135
3169
  metadata = @config.rpcs.get_nfs_share.metadata.to_h
3136
3170
 
3137
- # Set x-goog-api-client and x-goog-user-project headers
3171
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3138
3172
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3139
3173
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3140
3174
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
3175
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3141
3176
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3142
3177
 
3143
3178
  header_params = {}
@@ -3230,10 +3265,11 @@ module Google
3230
3265
  # Customize the options with defaults
3231
3266
  metadata = @config.rpcs.list_nfs_shares.metadata.to_h
3232
3267
 
3233
- # Set x-goog-api-client and x-goog-user-project headers
3268
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3234
3269
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3235
3270
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3236
3271
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
3272
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3237
3273
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3238
3274
 
3239
3275
  header_params = {}
@@ -3331,10 +3367,11 @@ module Google
3331
3367
  # Customize the options with defaults
3332
3368
  metadata = @config.rpcs.update_nfs_share.metadata.to_h
3333
3369
 
3334
- # Set x-goog-api-client and x-goog-user-project headers
3370
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3335
3371
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3336
3372
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3337
3373
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
3374
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3338
3375
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3339
3376
 
3340
3377
  header_params = {}
@@ -3426,10 +3463,11 @@ module Google
3426
3463
  # Customize the options with defaults
3427
3464
  metadata = @config.rpcs.create_nfs_share.metadata.to_h
3428
3465
 
3429
- # Set x-goog-api-client and x-goog-user-project headers
3466
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3430
3467
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3431
3468
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3432
3469
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
3470
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3433
3471
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3434
3472
 
3435
3473
  header_params = {}
@@ -3516,10 +3554,11 @@ module Google
3516
3554
  # Customize the options with defaults
3517
3555
  metadata = @config.rpcs.rename_nfs_share.metadata.to_h
3518
3556
 
3519
- # Set x-goog-api-client and x-goog-user-project headers
3557
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3520
3558
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3521
3559
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3522
3560
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
3561
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3523
3562
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3524
3563
 
3525
3564
  header_params = {}
@@ -3608,10 +3647,11 @@ module Google
3608
3647
  # Customize the options with defaults
3609
3648
  metadata = @config.rpcs.delete_nfs_share.metadata.to_h
3610
3649
 
3611
- # Set x-goog-api-client and x-goog-user-project headers
3650
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3612
3651
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3613
3652
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3614
3653
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
3654
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3615
3655
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3616
3656
 
3617
3657
  header_params = {}
@@ -3705,10 +3745,11 @@ module Google
3705
3745
  # Customize the options with defaults
3706
3746
  metadata = @config.rpcs.list_provisioning_quotas.metadata.to_h
3707
3747
 
3708
- # Set x-goog-api-client and x-goog-user-project headers
3748
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3709
3749
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3710
3750
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3711
3751
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
3752
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3712
3753
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3713
3754
 
3714
3755
  header_params = {}
@@ -3797,10 +3838,11 @@ module Google
3797
3838
  # Customize the options with defaults
3798
3839
  metadata = @config.rpcs.submit_provisioning_config.metadata.to_h
3799
3840
 
3800
- # Set x-goog-api-client and x-goog-user-project headers
3841
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3801
3842
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3802
3843
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3803
3844
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
3845
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3804
3846
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3805
3847
 
3806
3848
  header_params = {}
@@ -3882,10 +3924,11 @@ module Google
3882
3924
  # Customize the options with defaults
3883
3925
  metadata = @config.rpcs.get_provisioning_config.metadata.to_h
3884
3926
 
3885
- # Set x-goog-api-client and x-goog-user-project headers
3927
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3886
3928
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3887
3929
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3888
3930
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
3931
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3889
3932
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3890
3933
 
3891
3934
  header_params = {}
@@ -3973,10 +4016,11 @@ module Google
3973
4016
  # Customize the options with defaults
3974
4017
  metadata = @config.rpcs.create_provisioning_config.metadata.to_h
3975
4018
 
3976
- # Set x-goog-api-client and x-goog-user-project headers
4019
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3977
4020
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3978
4021
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3979
4022
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
4023
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3980
4024
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3981
4025
 
3982
4026
  header_params = {}
@@ -4063,10 +4107,11 @@ module Google
4063
4107
  # Customize the options with defaults
4064
4108
  metadata = @config.rpcs.update_provisioning_config.metadata.to_h
4065
4109
 
4066
- # 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
4067
4111
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4068
4112
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4069
4113
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
4114
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4070
4115
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4071
4116
 
4072
4117
  header_params = {}
@@ -4152,10 +4197,11 @@ module Google
4152
4197
  # Customize the options with defaults
4153
4198
  metadata = @config.rpcs.rename_network.metadata.to_h
4154
4199
 
4155
- # 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
4156
4201
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4157
4202
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4158
4203
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
4204
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4159
4205
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4160
4206
 
4161
4207
  header_params = {}
@@ -4248,10 +4294,11 @@ module Google
4248
4294
  # Customize the options with defaults
4249
4295
  metadata = @config.rpcs.list_os_images.metadata.to_h
4250
4296
 
4251
- # Set x-goog-api-client and x-goog-user-project headers
4297
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4252
4298
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4253
4299
  lib_name: @config.lib_name, lib_version: @config.lib_version,
4254
4300
  gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
4301
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4255
4302
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4256
4303
 
4257
4304
  header_params = {}